hadoop_0.20.205.0.xml 3.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516715177151871519715207152171522715237152471525715267152771528715297153071531715327153371534715357153671537715387153971540715417154271543715447154571546715477154871549715507155171552715537155471555715567155771558715597156071561715627156371564715657156671567715687156971570715717157271573715747157571576715777157871579715807158171582715837158471585715867158771588715897159071591715927159371594715957159671597715987159971600716017160271603716047160571606716077160871609716107161171612716137161471615716167161771618716197162071621716227162371624716257162671627716287162971630716317163271633716347163571636716377163871639716407164171642716437164471645716467164771648716497165071651716527165371654716557165671657716587165971660716617166271663716647166571666716677166871669716707167171672716737167471675716767167771678716797168071681716827168371684716857168671687716887168971690716917169271693716947169571696716977169871699717007170171702717037170471705717067170771708717097171071711717127171371714717157171671717717187171971720717217172271723717247172571726717277172871729717307173171732717337173471735717367173771738717397174071741717427174371744717457174671747717487174971750717517175271753717547175571756717577175871759717607176171762717637176471765717667176771768717697177071771717727177371774717757177671777717787177971780717817178271783717847178571786717877178871789717907179171792717937179471795717967179771798717997180071801718027180371804718057180671807718087180971810718117181271813718147181571816718177181871819718207182171822718237182471825718267182771828718297183071831718327183371834718357183671837718387183971840718417184271843718447184571846718477184871849718507185171852718537185471855718567185771858718597186071861718627186371864718657186671867718687186971870718717187271873718747187571876718777187871879718807188171882718837188471885718867188771888718897189071891718927189371894718957189671897718987189971900719017190271903719047190571906719077190871909719107191171912719137191471915719167191771918719197192071921719227192371924719257192671927719287192971930719317193271933719347193571936719377193871939719407194171942719437194471945719467194771948719497195071951719527195371954719557195671957719587195971960719617196271963719647196571966719677196871969719707197171972719737197471975719767197771978719797198071981719827198371984719857198671987719887198971990719917199271993719947199571996719977199871999720007200172002720037200472005720067200772008720097201072011720127201372014720157201672017720187201972020720217202272023720247202572026720277202872029720307203172032720337203472035720367203772038720397204072041720427204372044720457204672047720487204972050720517205272053720547205572056720577205872059720607206172062720637206472065720667206772068720697207072071720727207372074720757207672077720787207972080720817208272083720847208572086720877208872089720907209172092720937209472095720967209772098720997210072101721027210372104721057210672107721087210972110721117211272113721147211572116721177211872119721207212172122721237212472125721267212772128721297213072131721327213372134721357213672137721387213972140721417214272143721447214572146721477214872149721507215172152721537215472155721567215772158721597216072161721627216372164721657216672167721687216972170721717217272173721747217572176721777217872179721807218172182721837218472185721867218772188721897219072191721927219372194721957219672197721987219972200722017220272203722047220572206722077220872209722107221172212722137221472215722167221772218722197222072221722227222372224722257222672227722287222972230722317223272233722347223572236722377223872239722407224172242722437224472245722467224772248722497225072251722527225372254722557225672257722587225972260722617226272263722647226572266722677226872269722707227172272722737227472275722767227772278722797228072281722827228372284722857228672287722887228972290722917229272293722947229572296722977229872299723007230172302723037230472305723067230772308723097231072311723127231372314723157231672317723187231972320723217232272323723247232572326723277232872329723307233172332723337233472335723367233772338723397234072341723427234372344723457234672347723487234972350723517235272353723547235572356723577235872359723607236172362723637236472365723667236772368723697237072371723727237372374723757237672377723787237972380723817238272383723847238572386723877238872389723907239172392723937239472395723967239772398723997240072401724027240372404724057240672407724087240972410724117241272413724147241572416724177241872419724207242172422724237242472425724267242772428724297243072431724327243372434724357243672437724387243972440724417244272443724447244572446724477244872449724507245172452724537245472455724567245772458724597246072461724627246372464724657246672467724687246972470724717247272473724747247572476724777247872479724807248172482724837248472485724867248772488724897249072491724927249372494724957249672497724987249972500725017250272503725047250572506725077250872509725107251172512725137251472515725167251772518725197252072521725227252372524725257252672527725287252972530725317253272533725347253572536725377253872539725407254172542725437254472545725467254772548725497255072551725527255372554725557255672557725587255972560725617256272563725647256572566725677256872569725707257172572725737257472575725767257772578725797258072581725827258372584725857258672587725887258972590725917259272593725947259572596725977259872599726007260172602726037260472605726067260772608726097261072611726127261372614726157261672617726187261972620726217262272623726247262572626726277262872629726307263172632726337263472635726367263772638726397264072641726427264372644726457264672647726487264972650726517265272653726547265572656726577265872659726607266172662726637266472665726667266772668726697267072671726727267372674726757267672677726787267972680726817268272683726847268572686726877268872689726907269172692726937269472695726967269772698726997270072701727027270372704727057270672707727087270972710727117271272713727147271572716727177271872719727207272172722727237272472725727267272772728727297273072731727327273372734727357273672737727387273972740727417274272743727447274572746727477274872749727507275172752727537275472755727567275772758727597276072761727627276372764727657276672767727687276972770727717277272773727747277572776727777277872779727807278172782727837278472785727867278772788727897279072791727927279372794727957279672797727987279972800728017280272803728047280572806728077280872809728107281172812728137281472815728167281772818728197282072821728227282372824728257282672827728287282972830728317283272833728347283572836728377283872839728407284172842728437284472845728467284772848728497285072851728527285372854728557285672857728587285972860728617286272863728647286572866728677286872869728707287172872728737287472875728767287772878728797288072881728827288372884728857288672887728887288972890728917289272893728947289572896728977289872899729007290172902729037290472905729067290772908729097291072911729127291372914729157291672917729187291972920729217292272923729247292572926729277292872929729307293172932729337293472935729367293772938729397294072941729427294372944729457294672947729487294972950729517295272953729547295572956729577295872959729607296172962729637296472965729667296772968729697297072971729727297372974729757297672977729787297972980729817298272983729847298572986729877298872989729907299172992729937299472995729967299772998729997300073001730027300373004730057300673007730087300973010730117301273013730147301573016730177301873019730207302173022730237302473025730267302773028730297303073031730327303373034730357303673037730387303973040730417304273043730447304573046730477304873049730507305173052730537305473055730567305773058730597306073061730627306373064730657306673067730687306973070730717307273073730747307573076730777307873079730807308173082730837308473085730867308773088730897309073091730927309373094730957309673097730987309973100731017310273103731047310573106731077310873109731107311173112731137311473115731167311773118731197312073121731227312373124731257312673127731287312973130731317313273133731347313573136731377313873139731407314173142731437314473145731467314773148731497315073151731527315373154731557315673157731587315973160731617316273163731647316573166731677316873169731707317173172731737317473175731767317773178731797318073181731827318373184731857318673187731887318973190731917319273193731947319573196731977319873199732007320173202732037320473205732067320773208732097321073211732127321373214732157321673217732187321973220732217322273223732247322573226732277322873229732307323173232732337323473235732367323773238732397324073241732427324373244732457324673247732487324973250732517325273253732547325573256732577325873259732607326173262732637326473265732667326773268732697327073271732727327373274732757327673277732787327973280732817328273283732847328573286732877328873289732907329173292732937329473295732967329773298732997330073301733027330373304733057330673307733087330973310733117331273313733147331573316733177331873319733207332173322733237332473325733267332773328733297333073331733327333373334733357333673337733387333973340733417334273343733447334573346733477334873349733507335173352733537335473355733567335773358733597336073361733627336373364733657336673367733687336973370733717337273373733747337573376733777337873379733807338173382733837338473385733867338773388733897339073391733927339373394733957339673397733987339973400734017340273403734047340573406734077340873409734107341173412734137341473415734167341773418734197342073421734227342373424734257342673427734287342973430734317343273433734347343573436734377343873439734407344173442734437344473445734467344773448734497345073451734527345373454734557345673457734587345973460734617346273463734647346573466734677346873469734707347173472734737347473475734767347773478734797348073481734827348373484734857348673487734887348973490734917349273493734947349573496734977349873499735007350173502735037350473505735067350773508735097351073511735127351373514735157351673517735187351973520735217352273523735247352573526735277352873529735307353173532735337353473535735367353773538735397354073541735427354373544735457354673547735487354973550735517355273553735547355573556735577355873559735607356173562735637356473565735667356773568735697357073571735727357373574735757357673577735787357973580735817358273583735847358573586735877358873589735907359173592735937359473595735967359773598735997360073601736027360373604736057360673607736087360973610736117361273613736147361573616736177361873619736207362173622736237362473625736267362773628736297363073631736327363373634736357363673637736387363973640736417364273643736447364573646736477364873649736507365173652736537365473655736567365773658736597366073661736627366373664736657366673667736687366973670736717367273673736747367573676736777367873679736807368173682736837368473685736867368773688736897369073691736927369373694736957369673697736987369973700737017370273703737047370573706737077370873709737107371173712737137371473715737167371773718737197372073721737227372373724737257372673727737287372973730737317373273733737347373573736737377373873739737407374173742737437374473745737467374773748737497375073751737527375373754737557375673757737587375973760737617376273763737647376573766737677376873769737707377173772737737377473775737767377773778737797378073781737827378373784737857378673787737887378973790737917379273793737947379573796737977379873799738007380173802738037380473805738067380773808738097381073811738127381373814738157381673817738187381973820738217382273823738247382573826738277382873829738307383173832738337383473835738367383773838738397384073841738427384373844738457384673847738487384973850738517385273853738547385573856738577385873859738607386173862738637386473865738667386773868738697387073871738727387373874738757387673877738787387973880738817388273883738847388573886738877388873889738907389173892738937389473895738967389773898738997390073901739027390373904739057390673907739087390973910739117391273913739147391573916739177391873919739207392173922739237392473925739267392773928739297393073931739327393373934739357393673937739387393973940739417394273943739447394573946739477394873949739507395173952739537395473955739567395773958739597396073961739627396373964739657396673967739687396973970739717397273973739747397573976739777397873979739807398173982739837398473985739867398773988739897399073991739927399373994739957399673997739987399974000740017400274003740047400574006740077400874009740107401174012740137401474015740167401774018740197402074021740227402374024740257402674027740287402974030740317403274033740347403574036740377403874039740407404174042740437404474045740467404774048740497405074051740527405374054740557405674057740587405974060740617406274063740647406574066740677406874069740707407174072740737407474075740767407774078740797408074081740827408374084740857408674087740887408974090740917409274093740947409574096740977409874099741007410174102741037410474105741067410774108741097411074111741127411374114741157411674117741187411974120741217412274123741247412574126741277412874129741307413174132741337413474135741367413774138741397414074141741427414374144741457414674147741487414974150741517415274153741547415574156741577415874159741607416174162741637416474165741667416774168741697417074171741727417374174741757417674177741787417974180741817418274183741847418574186741877418874189741907419174192741937419474195741967419774198741997420074201742027420374204742057420674207742087420974210742117421274213742147421574216742177421874219742207422174222742237422474225742267422774228742297423074231742327423374234742357423674237742387423974240742417424274243742447424574246742477424874249742507425174252742537425474255742567425774258742597426074261742627426374264742657426674267742687426974270742717427274273742747427574276742777427874279742807428174282742837428474285742867428774288742897429074291742927429374294742957429674297742987429974300743017430274303743047430574306743077430874309743107431174312743137431474315743167431774318743197432074321743227432374324743257432674327743287432974330743317433274333743347433574336743377433874339743407434174342743437434474345743467434774348743497435074351743527435374354743557435674357743587435974360743617436274363743647436574366743677436874369743707437174372743737437474375743767437774378743797438074381743827438374384743857438674387743887438974390743917439274393743947439574396743977439874399744007440174402744037440474405744067440774408744097441074411744127441374414744157441674417744187441974420744217442274423744247442574426744277442874429744307443174432744337443474435744367443774438744397444074441744427444374444744457444674447744487444974450744517445274453744547445574456744577445874459744607446174462744637446474465744667446774468744697447074471744727447374474744757447674477744787447974480744817448274483744847448574486744877448874489744907449174492744937449474495744967449774498744997450074501745027450374504745057450674507745087450974510745117451274513745147451574516745177451874519745207452174522745237452474525745267452774528745297453074531745327453374534745357453674537745387453974540745417454274543745447454574546745477454874549745507455174552745537455474555745567455774558745597456074561745627456374564745657456674567745687456974570745717457274573745747457574576745777457874579745807458174582745837458474585745867458774588745897459074591745927459374594745957459674597745987459974600746017460274603746047460574606746077460874609746107461174612746137461474615746167461774618746197462074621746227462374624746257462674627746287462974630746317463274633746347463574636746377463874639746407464174642746437464474645746467464774648746497465074651746527465374654746557465674657746587465974660746617466274663746647466574666746677466874669746707467174672746737467474675746767467774678746797468074681746827468374684746857468674687746887468974690746917469274693746947469574696746977469874699747007470174702747037470474705747067470774708747097471074711747127471374714747157471674717747187471974720747217472274723747247472574726747277472874729747307473174732747337473474735747367473774738747397474074741747427474374744747457474674747747487474974750747517475274753747547475574756747577475874759747607476174762747637476474765747667476774768747697477074771747727477374774747757477674777747787477974780747817478274783747847478574786747877478874789747907479174792747937479474795747967479774798747997480074801748027480374804748057480674807748087480974810748117481274813748147481574816748177481874819748207482174822748237482474825748267482774828748297483074831748327483374834748357483674837748387483974840748417484274843748447484574846748477484874849748507485174852748537485474855748567485774858748597486074861748627486374864748657486674867748687486974870748717487274873748747487574876748777487874879748807488174882748837488474885748867488774888748897489074891748927489374894748957489674897748987489974900749017490274903749047490574906749077490874909749107491174912749137491474915749167491774918749197492074921749227492374924749257492674927749287492974930749317493274933749347493574936749377493874939749407494174942749437494474945749467494774948749497495074951749527495374954749557495674957749587495974960749617496274963749647496574966749677496874969749707497174972749737497474975749767497774978749797498074981749827498374984749857498674987749887498974990749917499274993749947499574996749977499874999750007500175002750037500475005750067500775008750097501075011750127501375014750157501675017750187501975020750217502275023750247502575026750277502875029750307503175032750337503475035750367503775038750397504075041750427504375044750457504675047750487504975050750517505275053750547505575056750577505875059750607506175062750637506475065750667506775068750697507075071750727507375074750757507675077750787507975080750817508275083750847508575086750877508875089750907509175092750937509475095750967509775098750997510075101751027510375104751057510675107751087510975110751117511275113751147511575116751177511875119751207512175122751237512475125751267512775128751297513075131751327513375134751357513675137751387513975140751417514275143751447514575146751477514875149751507515175152751537515475155751567515775158751597516075161751627516375164751657516675167751687516975170751717517275173751747517575176751777517875179751807518175182751837518475185751867518775188751897519075191751927519375194751957519675197751987519975200752017520275203752047520575206752077520875209752107521175212752137521475215752167521775218752197522075221752227522375224752257522675227752287522975230752317523275233752347523575236752377523875239752407524175242752437524475245752467524775248752497525075251752527525375254752557525675257752587525975260752617526275263752647526575266752677526875269752707527175272752737527475275752767527775278752797528075281752827528375284752857528675287752887528975290752917529275293752947529575296752977529875299753007530175302753037530475305753067530775308753097531075311753127531375314753157531675317753187531975320753217532275323753247532575326753277532875329753307533175332753337533475335753367533775338753397534075341753427534375344753457534675347753487534975350753517535275353753547535575356753577535875359753607536175362753637536475365753667536775368753697537075371753727537375374753757537675377753787537975380753817538275383753847538575386753877538875389753907539175392753937539475395753967539775398753997540075401754027540375404754057540675407754087540975410754117541275413754147541575416754177541875419754207542175422754237542475425754267542775428754297543075431754327543375434754357543675437754387543975440754417544275443754447544575446754477544875449754507545175452754537545475455754567545775458754597546075461754627546375464754657546675467754687546975470754717547275473754747547575476754777547875479754807548175482754837548475485754867548775488754897549075491754927549375494754957549675497754987549975500755017550275503755047550575506755077550875509755107551175512755137551475515755167551775518755197552075521755227552375524755257552675527755287552975530755317553275533755347553575536755377553875539755407554175542755437554475545755467554775548755497555075551755527555375554755557555675557755587555975560755617556275563755647556575566755677556875569755707557175572755737557475575755767557775578755797558075581755827558375584755857558675587755887558975590755917559275593755947559575596755977559875599756007560175602756037560475605756067560775608756097561075611756127561375614756157561675617756187561975620756217562275623756247562575626756277562875629756307563175632756337563475635756367563775638756397564075641756427564375644756457564675647756487564975650756517565275653756547565575656756577565875659756607566175662756637566475665756667566775668756697567075671756727567375674756757567675677756787567975680756817568275683756847568575686756877568875689756907569175692756937569475695756967569775698756997570075701757027570375704757057570675707757087570975710757117571275713757147571575716757177571875719757207572175722757237572475725757267572775728757297573075731757327573375734757357573675737757387573975740757417574275743757447574575746757477574875749757507575175752757537575475755757567575775758757597576075761757627576375764757657576675767757687576975770757717577275773757747577575776757777577875779757807578175782757837578475785757867578775788757897579075791757927579375794757957579675797757987579975800758017580275803758047580575806758077580875809758107581175812758137581475815758167581775818758197582075821758227582375824758257582675827758287582975830758317583275833758347583575836758377583875839758407584175842758437584475845758467584775848758497585075851758527585375854758557585675857758587585975860758617586275863758647586575866758677586875869758707587175872758737587475875758767587775878758797588075881
  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 Tue Oct 18 11:53:08 PDT 2011 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 0.20.205.0"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /Users/mfoley/projects/java/hadoop-0.20-security-branches/hadoop-0.20-security-205/build/ivy/lib/Hadoop/jdiff/jdiff-1.0.9.jar:/Users/mfoley/projects/java/hadoop-0.20-security-branches/hadoop-0.20-security-205/build/ivy/lib/Hadoop/jdiff/xerces-1.4.4.jar -classpath /Users/mfoley/projects/java/hadoop-0.20-security-branches/hadoop-0.20-security-205/build/classes:/Users/mfoley/projects/java/hadoop-0.20-security-branches/hadoop-0.20-security-205/lib/hsqldb-1.8.0.10.jar:/Users/mfoley/projects/java/hadoop-0.20-security-branches/hadoop-0.20-security-205/lib/jsp-2.1/jsp-2.1.jar:/Users/mfoley/projects/java/hadoop-0.20-security-branches/hadoop-0.20-security-205/lib/jsp-2.1/jsp-api-2.1.jar:/Users/mfoley/projects/java/hadoop-0.20-security-branches/hadoop-0.20-security-205/lib/kfs-0.2.2.jar:/Users/mfoley/.ivy2/cache/log4j/log4j/jars/log4j-1.2.15.jar:/Users/mfoley/.ivy2/cache/commons-httpclient/commons-httpclient/jars/commons-httpclient-3.0.1.jar:/Users/mfoley/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.4.jar:/Users/mfoley/.ivy2/cache/commons-cli/commons-cli/jars/commons-cli-1.2.jar:/Users/mfoley/.ivy2/cache/xmlenc/xmlenc/jars/xmlenc-0.52.jar:/Users/mfoley/.ivy2/cache/commons-daemon/commons-daemon/jars/commons-daemon-1.0.1.jar:/Users/mfoley/.ivy2/cache/net.java.dev.jets3t/jets3t/jars/jets3t-0.6.1.jar:/Users/mfoley/.ivy2/cache/commons-net/commons-net/jars/commons-net-1.4.1.jar:/Users/mfoley/.ivy2/cache/oro/oro/jars/oro-2.0.8.jar:/Users/mfoley/.ivy2/cache/org.mortbay.jetty/jetty/jars/jetty-6.1.26.jar:/Users/mfoley/.ivy2/cache/org.mortbay.jetty/jetty-util/jars/jetty-util-6.1.26.jar:/Users/mfoley/.ivy2/cache/org.mortbay.jetty/servlet-api/jars/servlet-api-2.5-20081211.jar:/Users/mfoley/.ivy2/cache/asm/asm/jars/asm-3.2.jar:/Users/mfoley/.ivy2/cache/com.sun.jersey/jersey-core/bundles/jersey-core-1.8.jar:/Users/mfoley/.ivy2/cache/com.sun.jersey/jersey-json/bundles/jersey-json-1.8.jar:/Users/mfoley/.ivy2/cache/com.sun.jersey/jersey-server/bundles/jersey-server-1.8.jar:/Users/mfoley/.ivy2/cache/tomcat/jasper-runtime/jars/jasper-runtime-5.5.12.jar:/Users/mfoley/.ivy2/cache/tomcat/jasper-compiler/jars/jasper-compiler-5.5.12.jar:/Users/mfoley/.ivy2/cache/commons-el/commons-el/jars/commons-el-1.0.jar:/Users/mfoley/.ivy2/cache/commons-configuration/commons-configuration/jars/commons-configuration-1.6.jar:/Users/mfoley/.ivy2/cache/commons-collections/commons-collections/jars/commons-collections-3.2.1.jar:/Users/mfoley/.ivy2/cache/commons-lang/commons-lang/jars/commons-lang-2.4.jar:/Users/mfoley/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.1.1.jar:/Users/mfoley/.ivy2/cache/commons-digester/commons-digester/jars/commons-digester-1.8.jar:/Users/mfoley/.ivy2/cache/commons-beanutils/commons-beanutils/jars/commons-beanutils-1.7.0.jar:/Users/mfoley/.ivy2/cache/commons-beanutils/commons-beanutils-core/jars/commons-beanutils-core-1.8.0.jar:/Users/mfoley/.ivy2/cache/org.apache.commons/commons-math/jars/commons-math-2.1.jar:/Users/mfoley/.ivy2/cache/junit/junit/jars/junit-4.5.jar:/Users/mfoley/.ivy2/cache/commons-logging/commons-logging-api/jars/commons-logging-api-1.0.4.jar:/Users/mfoley/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.4.3.jar:/Users/mfoley/.ivy2/cache/org.eclipse.jdt/core/jars/core-3.1.1.jar:/Users/mfoley/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.4.3.jar:/Users/mfoley/.ivy2/cache/org.codehaus.jackson/jackson-mapper-asl/jars/jackson-mapper-asl-1.0.1.jar:/Users/mfoley/.ivy2/cache/org.codehaus.jackson/jackson-core-asl/jars/jackson-core-asl-1.0.1.jar:/Users/mfoley/.ivy2/cache/org.mockito/mockito-all/jars/mockito-all-1.8.5.jar:/Users/mfoley/.ivy2/cache/com.jcraft/jsch/jars/jsch-0.1.42.jar:/Users/mfoley/.ivy2/cache/org.aspectj/aspectjrt/jars/aspectjrt-1.6.5.jar:/Users/mfoley/.ivy2/cache/org.aspectj/aspectjtools/jars/aspectjtools-1.6.5.jar:/Users/mfoley/.ivy2/cache/org.vafer/jdeb/maven-plugins/jdeb-0.8.jar:/Users/mfoley/projects/java/hadoop-0.20-security-branches/hadoop-0.20-security-205/conf:/Users/mfoley/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.0.4.jar:/Users/mfoley/.ivy2/cache/jdiff/jdiff/jars/jdiff-1.0.9.jar:/Users/mfoley/.ivy2/cache/xerces/xerces/jars/xerces-1.4.4.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant-jmf.jar:/usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant-junit4.jar:/usr/share/ant/lib/ant-swing.jar:/usr/share/ant/lib/ant-testutil.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ivy-current.jar -sourcepath /Users/mfoley/projects/java/hadoop-0.20-security-branches/hadoop-0.20-security-205/src/core:/Users/mfoley/projects/java/hadoop-0.20-security-branches/hadoop-0.20-security-205/src/mapred:/Users/mfoley/projects/java/hadoop-0.20-security-branches/hadoop-0.20-security-205/src/tools -apidir /Users/mfoley/projects/java/hadoop-0.20-security-branches/hadoop-0.20-security-205/lib/jdiff -apiname hadoop 0.20.205.0 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start interface org.apache.hadoop.HadoopVersionAnnotation -->
  13. <interface name="HadoopVersionAnnotation" abstract="true"
  14. static="false" final="false" visibility="public"
  15. deprecated="not deprecated">
  16. <implements name="java.lang.annotation.Annotation"/>
  17. <method name="version" return="java.lang.String"
  18. abstract="false" native="false" synchronized="false"
  19. static="false" final="false" visibility="public"
  20. deprecated="not deprecated">
  21. <doc>
  22. <![CDATA[Get the Hadoop version
  23. @return the version string "0.6.3-dev"]]>
  24. </doc>
  25. </method>
  26. <method name="user" return="java.lang.String"
  27. abstract="false" native="false" synchronized="false"
  28. static="false" final="false" visibility="public"
  29. deprecated="not deprecated">
  30. <doc>
  31. <![CDATA[Get the username that compiled Hadoop.]]>
  32. </doc>
  33. </method>
  34. <method name="date" return="java.lang.String"
  35. abstract="false" native="false" synchronized="false"
  36. static="false" final="false" visibility="public"
  37. deprecated="not deprecated">
  38. <doc>
  39. <![CDATA[Get the date when Hadoop was compiled.
  40. @return the date in unix 'date' format]]>
  41. </doc>
  42. </method>
  43. <method name="url" return="java.lang.String"
  44. abstract="false" native="false" synchronized="false"
  45. static="false" final="false" visibility="public"
  46. deprecated="not deprecated">
  47. <doc>
  48. <![CDATA[Get the url for the subversion repository.]]>
  49. </doc>
  50. </method>
  51. <method name="revision" return="java.lang.String"
  52. abstract="false" native="false" synchronized="false"
  53. static="false" final="false" visibility="public"
  54. deprecated="not deprecated">
  55. <doc>
  56. <![CDATA[Get the subversion revision.
  57. @return the revision number as a string (eg. "451451")]]>
  58. </doc>
  59. </method>
  60. <doc>
  61. <![CDATA[A package attribute that captures the version of Hadoop that was compiled.]]>
  62. </doc>
  63. </interface>
  64. <!-- end interface org.apache.hadoop.HadoopVersionAnnotation -->
  65. </package>
  66. <package name="org.apache.hadoop.classification">
  67. <!-- start class org.apache.hadoop.classification.InterfaceAudience -->
  68. <class name="InterfaceAudience" extends="java.lang.Object"
  69. abstract="false"
  70. static="false" final="false" visibility="public"
  71. deprecated="not deprecated">
  72. <doc>
  73. <![CDATA[Annotation to inform users of a package, class or method's intended audience.]]>
  74. </doc>
  75. </class>
  76. <!-- end class org.apache.hadoop.classification.InterfaceAudience -->
  77. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  78. <interface name="InterfaceAudience.LimitedPrivate" abstract="true"
  79. static="true" final="false" visibility="public"
  80. deprecated="not deprecated">
  81. <implements name="java.lang.annotation.Annotation"/>
  82. <method name="value" return="java.lang.String[]"
  83. abstract="false" native="false" synchronized="false"
  84. static="false" final="false" visibility="public"
  85. deprecated="not deprecated">
  86. </method>
  87. <doc>
  88. <![CDATA[Intended only for the project(s) specified in the annotation.
  89. For example, "Common", "HDFS", "MapReduce", "ZooKeeper", "HBase".]]>
  90. </doc>
  91. </interface>
  92. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  93. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.Private -->
  94. <interface name="InterfaceAudience.Private" abstract="true"
  95. static="true" final="false" visibility="public"
  96. deprecated="not deprecated">
  97. <implements name="java.lang.annotation.Annotation"/>
  98. <doc>
  99. <![CDATA[Intended for use only within Hadoop itself.]]>
  100. </doc>
  101. </interface>
  102. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.Private -->
  103. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.Public -->
  104. <interface name="InterfaceAudience.Public" abstract="true"
  105. static="true" final="false" visibility="public"
  106. deprecated="not deprecated">
  107. <implements name="java.lang.annotation.Annotation"/>
  108. <doc>
  109. <![CDATA[Intended for use by any project or application.]]>
  110. </doc>
  111. </interface>
  112. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.Public -->
  113. <!-- start class org.apache.hadoop.classification.InterfaceStability -->
  114. <class name="InterfaceStability" extends="java.lang.Object"
  115. abstract="false"
  116. static="false" final="false" visibility="public"
  117. deprecated="not deprecated">
  118. <constructor name="InterfaceStability"
  119. static="false" final="false" visibility="public"
  120. deprecated="not deprecated">
  121. </constructor>
  122. <doc>
  123. <![CDATA[Annotation to inform users of how much to rely on a particular package,
  124. class or method not changing over time.]]>
  125. </doc>
  126. </class>
  127. <!-- end class org.apache.hadoop.classification.InterfaceStability -->
  128. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Evolving -->
  129. <interface name="InterfaceStability.Evolving" abstract="true"
  130. static="true" final="false" visibility="public"
  131. deprecated="not deprecated">
  132. <implements name="java.lang.annotation.Annotation"/>
  133. <doc>
  134. <![CDATA[Evolving, but can break compatibility at minor release (i.e. m.x)]]>
  135. </doc>
  136. </interface>
  137. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Evolving -->
  138. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Stable -->
  139. <interface name="InterfaceStability.Stable" abstract="true"
  140. static="true" final="false" visibility="public"
  141. deprecated="not deprecated">
  142. <implements name="java.lang.annotation.Annotation"/>
  143. <doc>
  144. <![CDATA[Can evolve while retaining compatibility for minor release boundaries.;
  145. can break compatibility only at major release (ie. at m.0).]]>
  146. </doc>
  147. </interface>
  148. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Stable -->
  149. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Unstable -->
  150. <interface name="InterfaceStability.Unstable" abstract="true"
  151. static="true" final="false" visibility="public"
  152. deprecated="not deprecated">
  153. <implements name="java.lang.annotation.Annotation"/>
  154. <doc>
  155. <![CDATA[No guarantee is provided as to reliability or stability across any
  156. level of release granularity.]]>
  157. </doc>
  158. </interface>
  159. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Unstable -->
  160. </package>
  161. <package name="org.apache.hadoop.conf">
  162. <!-- start interface org.apache.hadoop.conf.Configurable -->
  163. <interface name="Configurable" abstract="true"
  164. static="false" final="false" visibility="public"
  165. deprecated="not deprecated">
  166. <method name="setConf"
  167. abstract="false" native="false" synchronized="false"
  168. static="false" final="false" visibility="public"
  169. deprecated="not deprecated">
  170. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  171. <doc>
  172. <![CDATA[Set the configuration to be used by this object.]]>
  173. </doc>
  174. </method>
  175. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  176. abstract="false" native="false" synchronized="false"
  177. static="false" final="false" visibility="public"
  178. deprecated="not deprecated">
  179. <doc>
  180. <![CDATA[Return the configuration used by this object.]]>
  181. </doc>
  182. </method>
  183. <doc>
  184. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  185. </doc>
  186. </interface>
  187. <!-- end interface org.apache.hadoop.conf.Configurable -->
  188. <!-- start class org.apache.hadoop.conf.Configuration -->
  189. <class name="Configuration" extends="java.lang.Object"
  190. abstract="false"
  191. static="false" final="false" visibility="public"
  192. deprecated="not deprecated">
  193. <implements name="java.lang.Iterable"/>
  194. <implements name="org.apache.hadoop.io.Writable"/>
  195. <constructor name="Configuration"
  196. static="false" final="false" visibility="public"
  197. deprecated="not deprecated">
  198. <doc>
  199. <![CDATA[A new configuration.]]>
  200. </doc>
  201. </constructor>
  202. <constructor name="Configuration" type="boolean"
  203. static="false" final="false" visibility="public"
  204. deprecated="not deprecated">
  205. <doc>
  206. <![CDATA[A new configuration where the behavior of reading from the default
  207. resources can be turned off.
  208. If the parameter {@code loadDefaults} is false, the new instance
  209. will not load resources from the default files.
  210. @param loadDefaults specifies whether to load from the default files]]>
  211. </doc>
  212. </constructor>
  213. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  214. static="false" final="false" visibility="public"
  215. deprecated="not deprecated">
  216. <doc>
  217. <![CDATA[A new configuration with the same settings cloned from another.
  218. @param other the configuration from which to clone settings.]]>
  219. </doc>
  220. </constructor>
  221. <method name="addDefaultResource"
  222. abstract="false" native="false" synchronized="true"
  223. static="true" final="false" visibility="public"
  224. deprecated="not deprecated">
  225. <param name="name" type="java.lang.String"/>
  226. <doc>
  227. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  228. added.
  229. @param name file name. File should be present in the classpath.]]>
  230. </doc>
  231. </method>
  232. <method name="addResource"
  233. abstract="false" native="false" synchronized="false"
  234. static="false" final="false" visibility="public"
  235. deprecated="not deprecated">
  236. <param name="name" type="java.lang.String"/>
  237. <doc>
  238. <![CDATA[Add a configuration resource.
  239. The properties of this resource will override properties of previously
  240. added resources, unless they were marked <a href="#Final">final</a>.
  241. @param name resource to be added, the classpath is examined for a file
  242. with that name.]]>
  243. </doc>
  244. </method>
  245. <method name="addResource"
  246. abstract="false" native="false" synchronized="false"
  247. static="false" final="false" visibility="public"
  248. deprecated="not deprecated">
  249. <param name="url" type="java.net.URL"/>
  250. <doc>
  251. <![CDATA[Add a configuration resource.
  252. The properties of this resource will override properties of previously
  253. added resources, unless they were marked <a href="#Final">final</a>.
  254. @param url url of the resource to be added, the local filesystem is
  255. examined directly to find the resource, without referring to
  256. the classpath.]]>
  257. </doc>
  258. </method>
  259. <method name="addResource"
  260. abstract="false" native="false" synchronized="false"
  261. static="false" final="false" visibility="public"
  262. deprecated="not deprecated">
  263. <param name="file" type="org.apache.hadoop.fs.Path"/>
  264. <doc>
  265. <![CDATA[Add a configuration resource.
  266. The properties of this resource will override properties of previously
  267. added resources, unless they were marked <a href="#Final">final</a>.
  268. @param file file-path of resource to be added, the local filesystem is
  269. examined directly to find the resource, without referring to
  270. the classpath.]]>
  271. </doc>
  272. </method>
  273. <method name="addResource"
  274. abstract="false" native="false" synchronized="false"
  275. static="false" final="false" visibility="public"
  276. deprecated="not deprecated">
  277. <param name="in" type="java.io.InputStream"/>
  278. <doc>
  279. <![CDATA[Add a configuration resource.
  280. The properties of this resource will override properties of previously
  281. added resources, unless they were marked <a href="#Final">final</a>.
  282. @param in InputStream to deserialize the object from.]]>
  283. </doc>
  284. </method>
  285. <method name="reloadConfiguration"
  286. abstract="false" native="false" synchronized="true"
  287. static="false" final="false" visibility="public"
  288. deprecated="not deprecated">
  289. <doc>
  290. <![CDATA[Reload configuration from previously added resources.
  291. This method will clear all the configuration read from the added
  292. resources, and final parameters. This will make the resources to
  293. be read again before accessing the values. Values that are added
  294. via set methods will overlay values read from the resources.]]>
  295. </doc>
  296. </method>
  297. <method name="get" return="java.lang.String"
  298. abstract="false" native="false" synchronized="false"
  299. static="false" final="false" visibility="public"
  300. deprecated="not deprecated">
  301. <param name="name" type="java.lang.String"/>
  302. <doc>
  303. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  304. no such property exists.
  305. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  306. before being returned.
  307. @param name the property name.
  308. @return the value of the <code>name</code> property,
  309. or null if no such property exists.]]>
  310. </doc>
  311. </method>
  312. <method name="getRaw" return="java.lang.String"
  313. abstract="false" native="false" synchronized="false"
  314. static="false" final="false" visibility="public"
  315. deprecated="not deprecated">
  316. <param name="name" type="java.lang.String"/>
  317. <doc>
  318. <![CDATA[Get the value of the <code>name</code> property, without doing
  319. <a href="#VariableExpansion">variable expansion</a>.
  320. @param name the property name.
  321. @return the value of the <code>name</code> property,
  322. or null if no such property exists.]]>
  323. </doc>
  324. </method>
  325. <method name="set"
  326. abstract="false" native="false" synchronized="false"
  327. static="false" final="false" visibility="public"
  328. deprecated="not deprecated">
  329. <param name="name" type="java.lang.String"/>
  330. <param name="value" type="java.lang.String"/>
  331. <doc>
  332. <![CDATA[Set the <code>value</code> of the <code>name</code> property.
  333. @param name property name.
  334. @param value property value.]]>
  335. </doc>
  336. </method>
  337. <method name="setIfUnset"
  338. abstract="false" native="false" synchronized="false"
  339. static="false" final="false" visibility="public"
  340. deprecated="not deprecated">
  341. <param name="name" type="java.lang.String"/>
  342. <param name="value" type="java.lang.String"/>
  343. <doc>
  344. <![CDATA[Sets a property if it is currently unset.
  345. @param name the property name
  346. @param value the new value]]>
  347. </doc>
  348. </method>
  349. <method name="get" return="java.lang.String"
  350. abstract="false" native="false" synchronized="false"
  351. static="false" final="false" visibility="public"
  352. deprecated="not deprecated">
  353. <param name="name" type="java.lang.String"/>
  354. <param name="defaultValue" type="java.lang.String"/>
  355. <doc>
  356. <![CDATA[Get the value of the <code>name</code> property. If no such property
  357. exists, then <code>defaultValue</code> is returned.
  358. @param name property name.
  359. @param defaultValue default value.
  360. @return property value, or <code>defaultValue</code> if the property
  361. doesn't exist.]]>
  362. </doc>
  363. </method>
  364. <method name="getInt" return="int"
  365. abstract="false" native="false" synchronized="false"
  366. static="false" final="false" visibility="public"
  367. deprecated="not deprecated">
  368. <param name="name" type="java.lang.String"/>
  369. <param name="defaultValue" type="int"/>
  370. <doc>
  371. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  372. If no such property exists, or if the specified value is not a valid
  373. <code>int</code>, then <code>defaultValue</code> is returned.
  374. @param name property name.
  375. @param defaultValue default value.
  376. @return property value as an <code>int</code>,
  377. or <code>defaultValue</code>.]]>
  378. </doc>
  379. </method>
  380. <method name="setInt"
  381. abstract="false" native="false" synchronized="false"
  382. static="false" final="false" visibility="public"
  383. deprecated="not deprecated">
  384. <param name="name" type="java.lang.String"/>
  385. <param name="value" type="int"/>
  386. <doc>
  387. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  388. @param name property name.
  389. @param value <code>int</code> value of the property.]]>
  390. </doc>
  391. </method>
  392. <method name="getLong" return="long"
  393. abstract="false" native="false" synchronized="false"
  394. static="false" final="false" visibility="public"
  395. deprecated="not deprecated">
  396. <param name="name" type="java.lang.String"/>
  397. <param name="defaultValue" type="long"/>
  398. <doc>
  399. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  400. If no such property is specified, or if the specified value is not a valid
  401. <code>long</code>, then <code>defaultValue</code> is returned.
  402. @param name property name.
  403. @param defaultValue default value.
  404. @return property value as a <code>long</code>,
  405. or <code>defaultValue</code>.]]>
  406. </doc>
  407. </method>
  408. <method name="setLong"
  409. abstract="false" native="false" synchronized="false"
  410. static="false" final="false" visibility="public"
  411. deprecated="not deprecated">
  412. <param name="name" type="java.lang.String"/>
  413. <param name="value" type="long"/>
  414. <doc>
  415. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  416. @param name property name.
  417. @param value <code>long</code> value of the property.]]>
  418. </doc>
  419. </method>
  420. <method name="getFloat" return="float"
  421. abstract="false" native="false" synchronized="false"
  422. static="false" final="false" visibility="public"
  423. deprecated="not deprecated">
  424. <param name="name" type="java.lang.String"/>
  425. <param name="defaultValue" type="float"/>
  426. <doc>
  427. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  428. If no such property is specified, or if the specified value is not a valid
  429. <code>float</code>, then <code>defaultValue</code> is returned.
  430. @param name property name.
  431. @param defaultValue default value.
  432. @return property value as a <code>float</code>,
  433. or <code>defaultValue</code>.]]>
  434. </doc>
  435. </method>
  436. <method name="setFloat"
  437. abstract="false" native="false" synchronized="false"
  438. static="false" final="false" visibility="public"
  439. deprecated="not deprecated">
  440. <param name="name" type="java.lang.String"/>
  441. <param name="value" type="float"/>
  442. <doc>
  443. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  444. @param name property name.
  445. @param value property value.]]>
  446. </doc>
  447. </method>
  448. <method name="getBoolean" return="boolean"
  449. abstract="false" native="false" synchronized="false"
  450. static="false" final="false" visibility="public"
  451. deprecated="not deprecated">
  452. <param name="name" type="java.lang.String"/>
  453. <param name="defaultValue" type="boolean"/>
  454. <doc>
  455. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  456. If no such property is specified, or if the specified value is not a valid
  457. <code>boolean</code>, then <code>defaultValue</code> is returned.
  458. @param name property name.
  459. @param defaultValue default value.
  460. @return property value as a <code>boolean</code>,
  461. or <code>defaultValue</code>.]]>
  462. </doc>
  463. </method>
  464. <method name="setBoolean"
  465. abstract="false" native="false" synchronized="false"
  466. static="false" final="false" visibility="public"
  467. deprecated="not deprecated">
  468. <param name="name" type="java.lang.String"/>
  469. <param name="value" type="boolean"/>
  470. <doc>
  471. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  472. @param name property name.
  473. @param value <code>boolean</code> value of the property.]]>
  474. </doc>
  475. </method>
  476. <method name="setBooleanIfUnset"
  477. abstract="false" native="false" synchronized="false"
  478. static="false" final="false" visibility="public"
  479. deprecated="not deprecated">
  480. <param name="name" type="java.lang.String"/>
  481. <param name="value" type="boolean"/>
  482. <doc>
  483. <![CDATA[Set the given property, if it is currently unset.
  484. @param name property name
  485. @param value new value]]>
  486. </doc>
  487. </method>
  488. <method name="setEnum"
  489. abstract="false" native="false" synchronized="false"
  490. static="false" final="false" visibility="public"
  491. deprecated="not deprecated">
  492. <param name="name" type="java.lang.String"/>
  493. <param name="value" type="java.lang.Enum"/>
  494. <doc>
  495. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  496. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  497. @param name property name
  498. @param value new value]]>
  499. </doc>
  500. </method>
  501. <method name="getEnum" return="java.lang.Enum"
  502. abstract="false" native="false" synchronized="false"
  503. static="false" final="false" visibility="public"
  504. deprecated="not deprecated">
  505. <param name="name" type="java.lang.String"/>
  506. <param name="defaultValue" type="java.lang.Enum"/>
  507. <doc>
  508. <![CDATA[Return value matching this enumerated type.
  509. @param name Property name
  510. @param defaultValue Value returned if no mapping exists
  511. @throws IllegalArgumentException If mapping is illegal for the type
  512. provided]]>
  513. </doc>
  514. </method>
  515. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  516. abstract="false" native="false" synchronized="false"
  517. static="false" final="false" visibility="public"
  518. deprecated="not deprecated">
  519. <param name="name" type="java.lang.String"/>
  520. <param name="defaultValue" type="java.lang.String"/>
  521. <doc>
  522. <![CDATA[Parse the given attribute as a set of integer ranges
  523. @param name the attribute name
  524. @param defaultValue the default value if it is not set
  525. @return a new set of ranges from the configured value]]>
  526. </doc>
  527. </method>
  528. <method name="getStringCollection" return="java.util.Collection"
  529. abstract="false" native="false" synchronized="false"
  530. static="false" final="false" visibility="public"
  531. deprecated="not deprecated">
  532. <param name="name" type="java.lang.String"/>
  533. <doc>
  534. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  535. a collection of <code>String</code>s.
  536. If no such property is specified then empty collection is returned.
  537. <p>
  538. This is an optimized version of {@link #getStrings(String)}
  539. @param name property name.
  540. @return property value as a collection of <code>String</code>s.]]>
  541. </doc>
  542. </method>
  543. <method name="getStrings" return="java.lang.String[]"
  544. abstract="false" native="false" synchronized="false"
  545. static="false" final="false" visibility="public"
  546. deprecated="not deprecated">
  547. <param name="name" type="java.lang.String"/>
  548. <doc>
  549. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  550. an array of <code>String</code>s.
  551. If no such property is specified then <code>null</code> is returned.
  552. @param name property name.
  553. @return property value as an array of <code>String</code>s,
  554. or <code>null</code>.]]>
  555. </doc>
  556. </method>
  557. <method name="getStrings" return="java.lang.String[]"
  558. abstract="false" native="false" synchronized="false"
  559. static="false" final="false" visibility="public"
  560. deprecated="not deprecated">
  561. <param name="name" type="java.lang.String"/>
  562. <param name="defaultValue" type="java.lang.String[]"/>
  563. <doc>
  564. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  565. an array of <code>String</code>s.
  566. If no such property is specified then default value is returned.
  567. @param name property name.
  568. @param defaultValue The default value
  569. @return property value as an array of <code>String</code>s,
  570. or default value.]]>
  571. </doc>
  572. </method>
  573. <method name="setStrings"
  574. abstract="false" native="false" synchronized="false"
  575. static="false" final="false" visibility="public"
  576. deprecated="not deprecated">
  577. <param name="name" type="java.lang.String"/>
  578. <param name="values" type="java.lang.String[]"/>
  579. <doc>
  580. <![CDATA[Set the array of string values for the <code>name</code> property as
  581. as comma delimited values.
  582. @param name property name.
  583. @param values The values]]>
  584. </doc>
  585. </method>
  586. <method name="getClassByName" return="java.lang.Class"
  587. abstract="false" native="false" synchronized="false"
  588. static="false" final="false" visibility="public"
  589. deprecated="not deprecated">
  590. <param name="name" type="java.lang.String"/>
  591. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  592. <doc>
  593. <![CDATA[Load a class by name.
  594. @param name the class name.
  595. @return the class object.
  596. @throws ClassNotFoundException if the class is not found.]]>
  597. </doc>
  598. </method>
  599. <method name="getClasses" return="java.lang.Class[]"
  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="defaultValue" type="java.lang.Class[]"/>
  605. <doc>
  606. <![CDATA[Get the value of the <code>name</code> property
  607. as an array of <code>Class</code>.
  608. The value of the property specifies a list of comma separated class names.
  609. If no such property is specified, then <code>defaultValue</code> is
  610. returned.
  611. @param name the property name.
  612. @param defaultValue default value.
  613. @return property value as a <code>Class[]</code>,
  614. or <code>defaultValue</code>.]]>
  615. </doc>
  616. </method>
  617. <method name="getClass" return="java.lang.Class"
  618. abstract="false" native="false" synchronized="false"
  619. static="false" final="false" visibility="public"
  620. deprecated="not deprecated">
  621. <param name="name" type="java.lang.String"/>
  622. <param name="defaultValue" type="java.lang.Class"/>
  623. <doc>
  624. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  625. If no such property is specified, then <code>defaultValue</code> is
  626. returned.
  627. @param name the class name.
  628. @param defaultValue default value.
  629. @return property value as a <code>Class</code>,
  630. or <code>defaultValue</code>.]]>
  631. </doc>
  632. </method>
  633. <method name="getClass" return="java.lang.Class"
  634. abstract="false" native="false" synchronized="false"
  635. static="false" final="false" visibility="public"
  636. deprecated="not deprecated">
  637. <param name="name" type="java.lang.String"/>
  638. <param name="defaultValue" type="java.lang.Class"/>
  639. <param name="xface" type="java.lang.Class"/>
  640. <doc>
  641. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  642. implementing the interface specified by <code>xface</code>.
  643. If no such property is specified, then <code>defaultValue</code> is
  644. returned.
  645. An exception is thrown if the returned class does not implement the named
  646. interface.
  647. @param name the class name.
  648. @param defaultValue default value.
  649. @param xface the interface implemented by the named class.
  650. @return property value as a <code>Class</code>,
  651. or <code>defaultValue</code>.]]>
  652. </doc>
  653. </method>
  654. <method name="setClass"
  655. abstract="false" native="false" synchronized="false"
  656. static="false" final="false" visibility="public"
  657. deprecated="not deprecated">
  658. <param name="name" type="java.lang.String"/>
  659. <param name="theClass" type="java.lang.Class"/>
  660. <param name="xface" type="java.lang.Class"/>
  661. <doc>
  662. <![CDATA[Set the value of the <code>name</code> property to the name of a
  663. <code>theClass</code> implementing the given interface <code>xface</code>.
  664. An exception is thrown if <code>theClass</code> does not implement the
  665. interface <code>xface</code>.
  666. @param name property name.
  667. @param theClass property value.
  668. @param xface the interface implemented by the named class.]]>
  669. </doc>
  670. </method>
  671. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  672. abstract="false" native="false" synchronized="false"
  673. static="false" final="false" visibility="public"
  674. deprecated="not deprecated">
  675. <param name="dirsProp" type="java.lang.String"/>
  676. <param name="path" type="java.lang.String"/>
  677. <exception name="IOException" type="java.io.IOException"/>
  678. <doc>
  679. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  680. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  681. then one is chosen based on <i>path</i>'s hash code. If the selected
  682. directory does not exist, an attempt is made to create it.
  683. @param dirsProp directory in which to locate the file.
  684. @param path file-path.
  685. @return local file under the directory with the given path.]]>
  686. </doc>
  687. </method>
  688. <method name="getFile" return="java.io.File"
  689. abstract="false" native="false" synchronized="false"
  690. static="false" final="false" visibility="public"
  691. deprecated="not deprecated">
  692. <param name="dirsProp" type="java.lang.String"/>
  693. <param name="path" type="java.lang.String"/>
  694. <exception name="IOException" type="java.io.IOException"/>
  695. <doc>
  696. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  697. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  698. then one is chosen based on <i>path</i>'s hash code. If the selected
  699. directory does not exist, an attempt is made to create it.
  700. @param dirsProp directory in which to locate the file.
  701. @param path file-path.
  702. @return local file under the directory with the given path.]]>
  703. </doc>
  704. </method>
  705. <method name="getResource" return="java.net.URL"
  706. abstract="false" native="false" synchronized="false"
  707. static="false" final="false" visibility="public"
  708. deprecated="not deprecated">
  709. <param name="name" type="java.lang.String"/>
  710. <doc>
  711. <![CDATA[Get the {@link URL} for the named resource.
  712. @param name resource name.
  713. @return the url for the named resource.]]>
  714. </doc>
  715. </method>
  716. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  717. abstract="false" native="false" synchronized="false"
  718. static="false" final="false" visibility="public"
  719. deprecated="not deprecated">
  720. <param name="name" type="java.lang.String"/>
  721. <doc>
  722. <![CDATA[Get an input stream attached to the configuration resource with the
  723. given <code>name</code>.
  724. @param name configuration resource name.
  725. @return an input stream attached to the resource.]]>
  726. </doc>
  727. </method>
  728. <method name="getConfResourceAsReader" return="java.io.Reader"
  729. abstract="false" native="false" synchronized="false"
  730. static="false" final="false" visibility="public"
  731. deprecated="not deprecated">
  732. <param name="name" type="java.lang.String"/>
  733. <doc>
  734. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  735. given <code>name</code>.
  736. @param name configuration resource name.
  737. @return a reader attached to the resource.]]>
  738. </doc>
  739. </method>
  740. <method name="size" return="int"
  741. abstract="false" native="false" synchronized="false"
  742. static="false" final="false" visibility="public"
  743. deprecated="not deprecated">
  744. <doc>
  745. <![CDATA[Return the number of keys in the configuration.
  746. @return number of keys in the configuration.]]>
  747. </doc>
  748. </method>
  749. <method name="clear"
  750. abstract="false" native="false" synchronized="false"
  751. static="false" final="false" visibility="public"
  752. deprecated="not deprecated">
  753. <doc>
  754. <![CDATA[Clears all keys from the configuration.]]>
  755. </doc>
  756. </method>
  757. <method name="iterator" return="java.util.Iterator"
  758. abstract="false" native="false" synchronized="false"
  759. static="false" final="false" visibility="public"
  760. deprecated="not deprecated">
  761. <doc>
  762. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  763. key-value pairs in the configuration.
  764. @return an iterator over the entries.]]>
  765. </doc>
  766. </method>
  767. <method name="writeXml"
  768. abstract="false" native="false" synchronized="false"
  769. static="false" final="false" visibility="public"
  770. deprecated="not deprecated">
  771. <param name="out" type="java.io.OutputStream"/>
  772. <exception name="IOException" type="java.io.IOException"/>
  773. <doc>
  774. <![CDATA[Write out the non-default properties in this configuration to the give
  775. {@link OutputStream}.
  776. @param out the output stream to write to.]]>
  777. </doc>
  778. </method>
  779. <method name="dumpConfiguration"
  780. abstract="false" native="false" synchronized="false"
  781. static="true" final="false" visibility="public"
  782. deprecated="not deprecated">
  783. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  784. <param name="out" type="java.io.Writer"/>
  785. <exception name="IOException" type="java.io.IOException"/>
  786. <doc>
  787. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  788. the given {@link Writer}
  789. The format of the output would be
  790. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  791. key2.isFinal,key2.resource}... ] }
  792. It does not output the parameters of the configuration object which is
  793. loaded from an input stream.
  794. @param out the Writer to write to
  795. @throws IOException]]>
  796. </doc>
  797. </method>
  798. <method name="getClassLoader" return="java.lang.ClassLoader"
  799. abstract="false" native="false" synchronized="false"
  800. static="false" final="false" visibility="public"
  801. deprecated="not deprecated">
  802. <doc>
  803. <![CDATA[Get the {@link ClassLoader} for this job.
  804. @return the correct class loader.]]>
  805. </doc>
  806. </method>
  807. <method name="setClassLoader"
  808. abstract="false" native="false" synchronized="false"
  809. static="false" final="false" visibility="public"
  810. deprecated="not deprecated">
  811. <param name="classLoader" type="java.lang.ClassLoader"/>
  812. <doc>
  813. <![CDATA[Set the class loader that will be used to load the various objects.
  814. @param classLoader the new class loader.]]>
  815. </doc>
  816. </method>
  817. <method name="toString" return="java.lang.String"
  818. abstract="false" native="false" synchronized="false"
  819. static="false" final="false" visibility="public"
  820. deprecated="not deprecated">
  821. </method>
  822. <method name="setQuietMode"
  823. abstract="false" native="false" synchronized="true"
  824. static="false" final="false" visibility="public"
  825. deprecated="not deprecated">
  826. <param name="quietmode" type="boolean"/>
  827. <doc>
  828. <![CDATA[Set the quietness-mode.
  829. In the quiet-mode, error and informational messages might not be logged.
  830. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  831. to turn it off.]]>
  832. </doc>
  833. </method>
  834. <method name="main"
  835. abstract="false" native="false" synchronized="false"
  836. static="true" final="false" visibility="public"
  837. deprecated="not deprecated">
  838. <param name="args" type="java.lang.String[]"/>
  839. <exception name="Exception" type="java.lang.Exception"/>
  840. <doc>
  841. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  842. </doc>
  843. </method>
  844. <method name="readFields"
  845. abstract="false" native="false" synchronized="false"
  846. static="false" final="false" visibility="public"
  847. deprecated="not deprecated">
  848. <param name="in" type="java.io.DataInput"/>
  849. <exception name="IOException" type="java.io.IOException"/>
  850. </method>
  851. <method name="write"
  852. abstract="false" native="false" synchronized="false"
  853. static="false" final="false" visibility="public"
  854. deprecated="not deprecated">
  855. <param name="out" type="java.io.DataOutput"/>
  856. <exception name="IOException" type="java.io.IOException"/>
  857. </method>
  858. <method name="getValByRegex" return="java.util.Map"
  859. abstract="false" native="false" synchronized="false"
  860. static="false" final="false" visibility="public"
  861. deprecated="not deprecated">
  862. <param name="regex" type="java.lang.String"/>
  863. <doc>
  864. <![CDATA[get keys matching the the regex
  865. @param regex
  866. @return Map<String,String> with matching keys]]>
  867. </doc>
  868. </method>
  869. <doc>
  870. <![CDATA[Provides access to configuration parameters.
  871. <h4 id="Resources">Resources</h4>
  872. <p>Configurations are specified by resources. A resource contains a set of
  873. name/value pairs as XML data. Each resource is named by either a
  874. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  875. then the classpath is examined for a file with that name. If named by a
  876. <code>Path</code>, then the local filesystem is examined directly, without
  877. referring to the classpath.
  878. <p>Unless explicitly turned off, Hadoop by default specifies two
  879. resources, loaded in-order from the classpath: <ol>
  880. <li><tt><a href="{@docRoot}/../core-default.html">core-default.xml</a>
  881. </tt>: Read-only defaults for hadoop.</li>
  882. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  883. installation.</li>
  884. </ol>
  885. Applications may add additional resources, which are loaded
  886. subsequent to these resources in the order they are added.
  887. <h4 id="FinalParams">Final Parameters</h4>
  888. <p>Configuration parameters may be declared <i>final</i>.
  889. Once a resource declares a value final, no subsequently-loaded
  890. resource can alter that value.
  891. For example, one might define a final parameter with:
  892. <tt><pre>
  893. &lt;property&gt;
  894. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  895. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  896. <b>&lt;final&gt;true&lt;/final&gt;</b>
  897. &lt;/property&gt;</pre></tt>
  898. Administrators typically define parameters as final in
  899. <tt>core-site.xml</tt> for values that user applications may not alter.
  900. <h4 id="VariableExpansion">Variable Expansion</h4>
  901. <p>Value strings are first processed for <i>variable expansion</i>. The
  902. available properties are:<ol>
  903. <li>Other properties defined in this Configuration; and, if a name is
  904. undefined here,</li>
  905. <li>Properties in {@link System#getProperties()}.</li>
  906. </ol>
  907. <p>For example, if a configuration resource contains the following property
  908. definitions:
  909. <tt><pre>
  910. &lt;property&gt;
  911. &lt;name&gt;basedir&lt;/name&gt;
  912. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  913. &lt;/property&gt;
  914. &lt;property&gt;
  915. &lt;name&gt;tempdir&lt;/name&gt;
  916. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  917. &lt;/property&gt;</pre></tt>
  918. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  919. will be resolved to another property in this Configuration, while
  920. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  921. of the System property with that name.]]>
  922. </doc>
  923. </class>
  924. <!-- end class org.apache.hadoop.conf.Configuration -->
  925. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  926. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  927. abstract="false"
  928. static="true" final="false" visibility="public"
  929. deprecated="not deprecated">
  930. <constructor name="Configuration.IntegerRanges"
  931. static="false" final="false" visibility="public"
  932. deprecated="not deprecated">
  933. </constructor>
  934. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  935. static="false" final="false" visibility="public"
  936. deprecated="not deprecated">
  937. </constructor>
  938. <method name="isIncluded" return="boolean"
  939. abstract="false" native="false" synchronized="false"
  940. static="false" final="false" visibility="public"
  941. deprecated="not deprecated">
  942. <param name="value" type="int"/>
  943. <doc>
  944. <![CDATA[Is the given value in the set of ranges
  945. @param value the value to check
  946. @return is the value in the ranges?]]>
  947. </doc>
  948. </method>
  949. <method name="toString" return="java.lang.String"
  950. abstract="false" native="false" synchronized="false"
  951. static="false" final="false" visibility="public"
  952. deprecated="not deprecated">
  953. </method>
  954. <doc>
  955. <![CDATA[A class that represents a set of positive integer ranges. It parses
  956. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  957. the lower/upper bounds are separated by dash. Either the lower or upper
  958. bound may be omitted meaning all values up to or over. So the string
  959. above means 2, 3, 5, and 7, 8, 9, ...]]>
  960. </doc>
  961. </class>
  962. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  963. <!-- start class org.apache.hadoop.conf.Configured -->
  964. <class name="Configured" extends="java.lang.Object"
  965. abstract="false"
  966. static="false" final="false" visibility="public"
  967. deprecated="not deprecated">
  968. <implements name="org.apache.hadoop.conf.Configurable"/>
  969. <constructor name="Configured"
  970. static="false" final="false" visibility="public"
  971. deprecated="not deprecated">
  972. <doc>
  973. <![CDATA[Construct a Configured.]]>
  974. </doc>
  975. </constructor>
  976. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  977. static="false" final="false" visibility="public"
  978. deprecated="not deprecated">
  979. <doc>
  980. <![CDATA[Construct a Configured.]]>
  981. </doc>
  982. </constructor>
  983. <method name="setConf"
  984. abstract="false" native="false" synchronized="false"
  985. static="false" final="false" visibility="public"
  986. deprecated="not deprecated">
  987. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  988. </method>
  989. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  990. abstract="false" native="false" synchronized="false"
  991. static="false" final="false" visibility="public"
  992. deprecated="not deprecated">
  993. </method>
  994. <doc>
  995. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  996. </doc>
  997. </class>
  998. <!-- end class org.apache.hadoop.conf.Configured -->
  999. </package>
  1000. <package name="org.apache.hadoop.fs">
  1001. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  1002. <class name="BlockLocation" extends="java.lang.Object"
  1003. abstract="false"
  1004. static="false" final="false" visibility="public"
  1005. deprecated="not deprecated">
  1006. <implements name="org.apache.hadoop.io.Writable"/>
  1007. <constructor name="BlockLocation"
  1008. static="false" final="false" visibility="public"
  1009. deprecated="not deprecated">
  1010. <doc>
  1011. <![CDATA[Default Constructor]]>
  1012. </doc>
  1013. </constructor>
  1014. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  1015. static="false" final="false" visibility="public"
  1016. deprecated="not deprecated">
  1017. <doc>
  1018. <![CDATA[Constructor with host, name, offset and length]]>
  1019. </doc>
  1020. </constructor>
  1021. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  1022. static="false" final="false" visibility="public"
  1023. deprecated="not deprecated">
  1024. <doc>
  1025. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  1026. </doc>
  1027. </constructor>
  1028. <method name="getHosts" return="java.lang.String[]"
  1029. abstract="false" native="false" synchronized="false"
  1030. static="false" final="false" visibility="public"
  1031. deprecated="not deprecated">
  1032. <exception name="IOException" type="java.io.IOException"/>
  1033. <doc>
  1034. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  1035. </doc>
  1036. </method>
  1037. <method name="getNames" return="java.lang.String[]"
  1038. abstract="false" native="false" synchronized="false"
  1039. static="false" final="false" visibility="public"
  1040. deprecated="not deprecated">
  1041. <exception name="IOException" type="java.io.IOException"/>
  1042. <doc>
  1043. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  1044. </doc>
  1045. </method>
  1046. <method name="getTopologyPaths" return="java.lang.String[]"
  1047. abstract="false" native="false" synchronized="false"
  1048. static="false" final="false" visibility="public"
  1049. deprecated="not deprecated">
  1050. <exception name="IOException" type="java.io.IOException"/>
  1051. <doc>
  1052. <![CDATA[Get the list of network topology paths for each of the hosts.
  1053. The last component of the path is the host.]]>
  1054. </doc>
  1055. </method>
  1056. <method name="getOffset" return="long"
  1057. abstract="false" native="false" synchronized="false"
  1058. static="false" final="false" visibility="public"
  1059. deprecated="not deprecated">
  1060. <doc>
  1061. <![CDATA[Get the start offset of file associated with this block]]>
  1062. </doc>
  1063. </method>
  1064. <method name="getLength" return="long"
  1065. abstract="false" native="false" synchronized="false"
  1066. static="false" final="false" visibility="public"
  1067. deprecated="not deprecated">
  1068. <doc>
  1069. <![CDATA[Get the length of the block]]>
  1070. </doc>
  1071. </method>
  1072. <method name="setOffset"
  1073. abstract="false" native="false" synchronized="false"
  1074. static="false" final="false" visibility="public"
  1075. deprecated="not deprecated">
  1076. <param name="offset" type="long"/>
  1077. <doc>
  1078. <![CDATA[Set the start offset of file associated with this block]]>
  1079. </doc>
  1080. </method>
  1081. <method name="setLength"
  1082. abstract="false" native="false" synchronized="false"
  1083. static="false" final="false" visibility="public"
  1084. deprecated="not deprecated">
  1085. <param name="length" type="long"/>
  1086. <doc>
  1087. <![CDATA[Set the length of block]]>
  1088. </doc>
  1089. </method>
  1090. <method name="setHosts"
  1091. abstract="false" native="false" synchronized="false"
  1092. static="false" final="false" visibility="public"
  1093. deprecated="not deprecated">
  1094. <param name="hosts" type="java.lang.String[]"/>
  1095. <exception name="IOException" type="java.io.IOException"/>
  1096. <doc>
  1097. <![CDATA[Set the hosts hosting this block]]>
  1098. </doc>
  1099. </method>
  1100. <method name="setNames"
  1101. abstract="false" native="false" synchronized="false"
  1102. static="false" final="false" visibility="public"
  1103. deprecated="not deprecated">
  1104. <param name="names" type="java.lang.String[]"/>
  1105. <exception name="IOException" type="java.io.IOException"/>
  1106. <doc>
  1107. <![CDATA[Set the names (host:port) hosting this block]]>
  1108. </doc>
  1109. </method>
  1110. <method name="setTopologyPaths"
  1111. abstract="false" native="false" synchronized="false"
  1112. static="false" final="false" visibility="public"
  1113. deprecated="not deprecated">
  1114. <param name="topologyPaths" type="java.lang.String[]"/>
  1115. <exception name="IOException" type="java.io.IOException"/>
  1116. <doc>
  1117. <![CDATA[Set the network topology paths of the hosts]]>
  1118. </doc>
  1119. </method>
  1120. <method name="write"
  1121. abstract="false" native="false" synchronized="false"
  1122. static="false" final="false" visibility="public"
  1123. deprecated="not deprecated">
  1124. <param name="out" type="java.io.DataOutput"/>
  1125. <exception name="IOException" type="java.io.IOException"/>
  1126. <doc>
  1127. <![CDATA[Implement write of Writable]]>
  1128. </doc>
  1129. </method>
  1130. <method name="readFields"
  1131. abstract="false" native="false" synchronized="false"
  1132. static="false" final="false" visibility="public"
  1133. deprecated="not deprecated">
  1134. <param name="in" type="java.io.DataInput"/>
  1135. <exception name="IOException" type="java.io.IOException"/>
  1136. <doc>
  1137. <![CDATA[Implement readFields of Writable]]>
  1138. </doc>
  1139. </method>
  1140. <method name="toString" return="java.lang.String"
  1141. abstract="false" native="false" synchronized="false"
  1142. static="false" final="false" visibility="public"
  1143. deprecated="not deprecated">
  1144. </method>
  1145. </class>
  1146. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  1147. <!-- start class org.apache.hadoop.fs.BufferedFSInputStream -->
  1148. <class name="BufferedFSInputStream" extends="java.io.BufferedInputStream"
  1149. abstract="false"
  1150. static="false" final="false" visibility="public"
  1151. deprecated="not deprecated">
  1152. <implements name="org.apache.hadoop.fs.Seekable"/>
  1153. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  1154. <constructor name="BufferedFSInputStream" type="org.apache.hadoop.fs.FSInputStream, int"
  1155. static="false" final="false" visibility="public"
  1156. deprecated="not deprecated">
  1157. <doc>
  1158. <![CDATA[Creates a <code>BufferedFSInputStream</code>
  1159. with the specified buffer size,
  1160. and saves its argument, the input stream
  1161. <code>in</code>, for later use. An internal
  1162. buffer array of length <code>size</code>
  1163. is created and stored in <code>buf</code>.
  1164. @param in the underlying input stream.
  1165. @param size the buffer size.
  1166. @exception IllegalArgumentException if size <= 0.]]>
  1167. </doc>
  1168. </constructor>
  1169. <method name="getPos" return="long"
  1170. abstract="false" native="false" synchronized="false"
  1171. static="false" final="false" visibility="public"
  1172. deprecated="not deprecated">
  1173. <exception name="IOException" type="java.io.IOException"/>
  1174. </method>
  1175. <method name="skip" return="long"
  1176. abstract="false" native="false" synchronized="false"
  1177. static="false" final="false" visibility="public"
  1178. deprecated="not deprecated">
  1179. <param name="n" type="long"/>
  1180. <exception name="IOException" type="java.io.IOException"/>
  1181. </method>
  1182. <method name="seek"
  1183. abstract="false" native="false" synchronized="false"
  1184. static="false" final="false" visibility="public"
  1185. deprecated="not deprecated">
  1186. <param name="pos" type="long"/>
  1187. <exception name="IOException" type="java.io.IOException"/>
  1188. </method>
  1189. <method name="seekToNewSource" return="boolean"
  1190. abstract="false" native="false" synchronized="false"
  1191. static="false" final="false" visibility="public"
  1192. deprecated="not deprecated">
  1193. <param name="targetPos" type="long"/>
  1194. <exception name="IOException" type="java.io.IOException"/>
  1195. </method>
  1196. <method name="read" return="int"
  1197. abstract="false" native="false" synchronized="false"
  1198. static="false" final="false" visibility="public"
  1199. deprecated="not deprecated">
  1200. <param name="position" type="long"/>
  1201. <param name="buffer" type="byte[]"/>
  1202. <param name="offset" type="int"/>
  1203. <param name="length" type="int"/>
  1204. <exception name="IOException" type="java.io.IOException"/>
  1205. </method>
  1206. <method name="readFully"
  1207. abstract="false" native="false" synchronized="false"
  1208. static="false" final="false" visibility="public"
  1209. deprecated="not deprecated">
  1210. <param name="position" type="long"/>
  1211. <param name="buffer" type="byte[]"/>
  1212. <param name="offset" type="int"/>
  1213. <param name="length" type="int"/>
  1214. <exception name="IOException" type="java.io.IOException"/>
  1215. </method>
  1216. <method name="readFully"
  1217. abstract="false" native="false" synchronized="false"
  1218. static="false" final="false" visibility="public"
  1219. deprecated="not deprecated">
  1220. <param name="position" type="long"/>
  1221. <param name="buffer" type="byte[]"/>
  1222. <exception name="IOException" type="java.io.IOException"/>
  1223. </method>
  1224. <doc>
  1225. <![CDATA[A class optimizes reading from FSInputStream by bufferring]]>
  1226. </doc>
  1227. </class>
  1228. <!-- end class org.apache.hadoop.fs.BufferedFSInputStream -->
  1229. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  1230. <class name="ChecksumException" extends="java.io.IOException"
  1231. abstract="false"
  1232. static="false" final="false" visibility="public"
  1233. deprecated="not deprecated">
  1234. <constructor name="ChecksumException" type="java.lang.String, long"
  1235. static="false" final="false" visibility="public"
  1236. deprecated="not deprecated">
  1237. </constructor>
  1238. <method name="getPos" return="long"
  1239. abstract="false" native="false" synchronized="false"
  1240. static="false" final="false" visibility="public"
  1241. deprecated="not deprecated">
  1242. </method>
  1243. <doc>
  1244. <![CDATA[Thrown for checksum errors.]]>
  1245. </doc>
  1246. </class>
  1247. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  1248. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  1249. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  1250. abstract="true"
  1251. static="false" final="false" visibility="public"
  1252. deprecated="not deprecated">
  1253. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  1254. static="false" final="false" visibility="public"
  1255. deprecated="not deprecated">
  1256. </constructor>
  1257. <method name="getApproxChkSumLength" return="double"
  1258. abstract="false" native="false" synchronized="false"
  1259. static="true" final="false" visibility="public"
  1260. deprecated="not deprecated">
  1261. <param name="size" type="long"/>
  1262. </method>
  1263. <method name="setConf"
  1264. abstract="false" native="false" synchronized="false"
  1265. static="false" final="false" visibility="public"
  1266. deprecated="not deprecated">
  1267. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1268. </method>
  1269. <method name="setVerifyChecksum"
  1270. abstract="false" native="false" synchronized="false"
  1271. static="false" final="false" visibility="public"
  1272. deprecated="not deprecated">
  1273. <param name="verifyChecksum" type="boolean"/>
  1274. <doc>
  1275. <![CDATA[Set whether to verify checksum.]]>
  1276. </doc>
  1277. </method>
  1278. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  1279. abstract="false" native="false" synchronized="false"
  1280. static="false" final="false" visibility="public"
  1281. deprecated="not deprecated">
  1282. <doc>
  1283. <![CDATA[get the raw file system]]>
  1284. </doc>
  1285. </method>
  1286. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  1287. abstract="false" native="false" synchronized="false"
  1288. static="false" final="false" visibility="public"
  1289. deprecated="not deprecated">
  1290. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1291. <doc>
  1292. <![CDATA[Return the name of the checksum file associated with a file.]]>
  1293. </doc>
  1294. </method>
  1295. <method name="isChecksumFile" return="boolean"
  1296. abstract="false" native="false" synchronized="false"
  1297. static="true" final="false" visibility="public"
  1298. deprecated="not deprecated">
  1299. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1300. <doc>
  1301. <![CDATA[Return true iff file is a checksum file name.]]>
  1302. </doc>
  1303. </method>
  1304. <method name="getChecksumFileLength" return="long"
  1305. abstract="false" native="false" synchronized="false"
  1306. static="false" final="false" visibility="public"
  1307. deprecated="not deprecated">
  1308. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1309. <param name="fileSize" type="long"/>
  1310. <doc>
  1311. <![CDATA[Return the length of the checksum file given the size of the
  1312. actual file.]]>
  1313. </doc>
  1314. </method>
  1315. <method name="getBytesPerSum" return="int"
  1316. abstract="false" native="false" synchronized="false"
  1317. static="false" final="false" visibility="public"
  1318. deprecated="not deprecated">
  1319. <doc>
  1320. <![CDATA[Return the bytes Per Checksum]]>
  1321. </doc>
  1322. </method>
  1323. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1324. abstract="false" native="false" synchronized="false"
  1325. static="false" final="false" visibility="public"
  1326. deprecated="not deprecated">
  1327. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1328. <param name="bufferSize" type="int"/>
  1329. <exception name="IOException" type="java.io.IOException"/>
  1330. <doc>
  1331. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  1332. @param f the file name to open
  1333. @param bufferSize the size of the buffer to be used.]]>
  1334. </doc>
  1335. </method>
  1336. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  1337. abstract="false" native="false" synchronized="false"
  1338. static="false" final="false" visibility="public"
  1339. deprecated="not deprecated">
  1340. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1341. <param name="bufferSize" type="int"/>
  1342. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1343. <exception name="IOException" type="java.io.IOException"/>
  1344. <doc>
  1345. <![CDATA[{@inheritDoc}]]>
  1346. </doc>
  1347. </method>
  1348. <method name="getChecksumLength" return="long"
  1349. abstract="false" native="false" synchronized="false"
  1350. static="true" final="false" visibility="public"
  1351. deprecated="not deprecated">
  1352. <param name="size" type="long"/>
  1353. <param name="bytesPerSum" type="int"/>
  1354. <doc>
  1355. <![CDATA[Calculated the length of the checksum file in bytes.
  1356. @param size the length of the data file in bytes
  1357. @param bytesPerSum the number of bytes in a checksum block
  1358. @return the number of bytes in the checksum file]]>
  1359. </doc>
  1360. </method>
  1361. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1362. abstract="false" native="false" synchronized="false"
  1363. static="false" final="false" visibility="public"
  1364. deprecated="not deprecated">
  1365. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1366. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1367. <param name="overwrite" type="boolean"/>
  1368. <param name="bufferSize" type="int"/>
  1369. <param name="replication" type="short"/>
  1370. <param name="blockSize" type="long"/>
  1371. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1372. <exception name="IOException" type="java.io.IOException"/>
  1373. <doc>
  1374. <![CDATA[{@inheritDoc}]]>
  1375. </doc>
  1376. </method>
  1377. <method name="setReplication" return="boolean"
  1378. abstract="false" native="false" synchronized="false"
  1379. static="false" final="false" visibility="public"
  1380. deprecated="not deprecated">
  1381. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1382. <param name="replication" type="short"/>
  1383. <exception name="IOException" type="java.io.IOException"/>
  1384. <doc>
  1385. <![CDATA[Set replication for an existing file.
  1386. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  1387. @param src file name
  1388. @param replication new replication
  1389. @throws IOException
  1390. @return true if successful;
  1391. false if file does not exist or is a directory]]>
  1392. </doc>
  1393. </method>
  1394. <method name="rename" return="boolean"
  1395. abstract="false" native="false" synchronized="false"
  1396. static="false" final="false" visibility="public"
  1397. deprecated="not deprecated">
  1398. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1399. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1400. <exception name="IOException" type="java.io.IOException"/>
  1401. <doc>
  1402. <![CDATA[Rename files/dirs]]>
  1403. </doc>
  1404. </method>
  1405. <method name="delete" return="boolean"
  1406. abstract="false" native="false" synchronized="false"
  1407. static="false" final="false" visibility="public"
  1408. deprecated="not deprecated">
  1409. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1410. <param name="recursive" type="boolean"/>
  1411. <exception name="IOException" type="java.io.IOException"/>
  1412. <doc>
  1413. <![CDATA[Implement the delete(Path, boolean) in checksum
  1414. file system.]]>
  1415. </doc>
  1416. </method>
  1417. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1418. abstract="false" native="false" synchronized="false"
  1419. static="false" final="false" visibility="public"
  1420. deprecated="not deprecated">
  1421. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1422. <exception name="IOException" type="java.io.IOException"/>
  1423. <doc>
  1424. <![CDATA[List the statuses of the files/directories in the given path if the path is
  1425. a directory.
  1426. @param f
  1427. given path
  1428. @return the statuses of the files/directories in the given patch
  1429. @throws IOException]]>
  1430. </doc>
  1431. </method>
  1432. <method name="mkdirs" return="boolean"
  1433. abstract="false" native="false" synchronized="false"
  1434. static="false" final="false" visibility="public"
  1435. deprecated="not deprecated">
  1436. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1437. <exception name="IOException" type="java.io.IOException"/>
  1438. </method>
  1439. <method name="copyFromLocalFile"
  1440. abstract="false" native="false" synchronized="false"
  1441. static="false" final="false" visibility="public"
  1442. deprecated="not deprecated">
  1443. <param name="delSrc" type="boolean"/>
  1444. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1445. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1446. <exception name="IOException" type="java.io.IOException"/>
  1447. </method>
  1448. <method name="copyToLocalFile"
  1449. abstract="false" native="false" synchronized="false"
  1450. static="false" final="false" visibility="public"
  1451. deprecated="not deprecated">
  1452. <param name="delSrc" type="boolean"/>
  1453. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1454. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1455. <exception name="IOException" type="java.io.IOException"/>
  1456. <doc>
  1457. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1458. Copy it from FS control to the local dst name.]]>
  1459. </doc>
  1460. </method>
  1461. <method name="copyToLocalFile"
  1462. abstract="false" native="false" synchronized="false"
  1463. static="false" final="false" visibility="public"
  1464. deprecated="not deprecated">
  1465. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1466. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1467. <param name="copyCrc" type="boolean"/>
  1468. <exception name="IOException" type="java.io.IOException"/>
  1469. <doc>
  1470. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1471. Copy it from FS control to the local dst name.
  1472. If src and dst are directories, the copyCrc parameter
  1473. determines whether to copy CRC files.]]>
  1474. </doc>
  1475. </method>
  1476. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  1477. abstract="false" native="false" synchronized="false"
  1478. static="false" final="false" visibility="public"
  1479. deprecated="not deprecated">
  1480. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1481. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1482. <exception name="IOException" type="java.io.IOException"/>
  1483. </method>
  1484. <method name="completeLocalOutput"
  1485. abstract="false" native="false" synchronized="false"
  1486. static="false" final="false" visibility="public"
  1487. deprecated="not deprecated">
  1488. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1489. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1490. <exception name="IOException" type="java.io.IOException"/>
  1491. </method>
  1492. <method name="reportChecksumFailure" return="boolean"
  1493. abstract="false" native="false" synchronized="false"
  1494. static="false" final="false" visibility="public"
  1495. deprecated="not deprecated">
  1496. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1497. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1498. <param name="inPos" type="long"/>
  1499. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1500. <param name="sumsPos" type="long"/>
  1501. <doc>
  1502. <![CDATA[Report a checksum error to the file system.
  1503. @param f the file name containing the error
  1504. @param in the stream open on the file
  1505. @param inPos the position of the beginning of the bad data in the file
  1506. @param sums the stream open on the checksum file
  1507. @param sumsPos the position of the beginning of the bad data in the checksum file
  1508. @return if retry is neccessary]]>
  1509. </doc>
  1510. </method>
  1511. <doc>
  1512. <![CDATA[Abstract Checksumed FileSystem.
  1513. It provide a basice implementation of a Checksumed FileSystem,
  1514. which creates a checksum file for each raw file.
  1515. It generates & verifies checksums at the client side.]]>
  1516. </doc>
  1517. </class>
  1518. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  1519. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1520. <class name="CommonConfigurationKeys" extends="java.lang.Object"
  1521. abstract="false"
  1522. static="false" final="false" visibility="public"
  1523. deprecated="not deprecated">
  1524. <constructor name="CommonConfigurationKeys"
  1525. static="false" final="false" visibility="public"
  1526. deprecated="not deprecated">
  1527. </constructor>
  1528. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  1529. transient="false" volatile="false"
  1530. static="true" final="true" visibility="public"
  1531. deprecated="not deprecated">
  1532. <doc>
  1533. <![CDATA[See src/core/core-default.xml]]>
  1534. </doc>
  1535. </field>
  1536. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  1537. transient="false" volatile="false"
  1538. static="true" final="true" visibility="public"
  1539. deprecated="not deprecated">
  1540. </field>
  1541. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  1542. transient="false" volatile="false"
  1543. static="true" final="true" visibility="public"
  1544. deprecated="not deprecated">
  1545. <doc>
  1546. <![CDATA[See src/core/core-default.xml]]>
  1547. </doc>
  1548. </field>
  1549. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  1550. transient="false" volatile="false"
  1551. static="true" final="true" visibility="public"
  1552. deprecated="not deprecated">
  1553. <doc>
  1554. <![CDATA[See src/core/core-default.xml]]>
  1555. </doc>
  1556. </field>
  1557. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  1558. transient="false" volatile="false"
  1559. static="true" final="true" visibility="public"
  1560. deprecated="not deprecated">
  1561. <doc>
  1562. <![CDATA[See src/core/core-default.xml]]>
  1563. </doc>
  1564. </field>
  1565. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  1566. transient="false" volatile="false"
  1567. static="true" final="true" visibility="public"
  1568. deprecated="not deprecated">
  1569. <doc>
  1570. <![CDATA[See src/core/core-default.xml]]>
  1571. </doc>
  1572. </field>
  1573. <field name="HADOOP_SECURITY_TOKEN_SERVICE_USE_IP" type="java.lang.String"
  1574. transient="false" volatile="false"
  1575. static="true" final="true" visibility="public"
  1576. deprecated="not deprecated">
  1577. <doc>
  1578. <![CDATA[See src/core/core-default.xml]]>
  1579. </doc>
  1580. </field>
  1581. <field name="HADOOP_SECURITY_TOKEN_SERVICE_USE_IP_DEFAULT" type="boolean"
  1582. transient="false" volatile="false"
  1583. static="true" final="true" visibility="public"
  1584. deprecated="not deprecated">
  1585. </field>
  1586. <field name="IPC_SERVER_RPC_READ_THREADS_KEY" type="java.lang.String"
  1587. transient="false" volatile="false"
  1588. static="true" final="true" visibility="public"
  1589. deprecated="not deprecated">
  1590. </field>
  1591. <field name="IPC_SERVER_RPC_READ_THREADS_DEFAULT" type="int"
  1592. transient="false" volatile="false"
  1593. static="true" final="true" visibility="public"
  1594. deprecated="not deprecated">
  1595. </field>
  1596. <doc>
  1597. <![CDATA[This class contains constants for configuration keys used
  1598. in the common code.]]>
  1599. </doc>
  1600. </class>
  1601. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1602. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1603. <class name="ContentSummary" extends="java.lang.Object"
  1604. abstract="false"
  1605. static="false" final="false" visibility="public"
  1606. deprecated="not deprecated">
  1607. <implements name="org.apache.hadoop.io.Writable"/>
  1608. <constructor name="ContentSummary"
  1609. static="false" final="false" visibility="public"
  1610. deprecated="not deprecated">
  1611. <doc>
  1612. <![CDATA[Constructor]]>
  1613. </doc>
  1614. </constructor>
  1615. <constructor name="ContentSummary" type="long, long, long"
  1616. static="false" final="false" visibility="public"
  1617. deprecated="not deprecated">
  1618. <doc>
  1619. <![CDATA[Constructor]]>
  1620. </doc>
  1621. </constructor>
  1622. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  1623. static="false" final="false" visibility="public"
  1624. deprecated="not deprecated">
  1625. <doc>
  1626. <![CDATA[Constructor]]>
  1627. </doc>
  1628. </constructor>
  1629. <method name="getLength" return="long"
  1630. abstract="false" native="false" synchronized="false"
  1631. static="false" final="false" visibility="public"
  1632. deprecated="not deprecated">
  1633. <doc>
  1634. <![CDATA[@return the length]]>
  1635. </doc>
  1636. </method>
  1637. <method name="getDirectoryCount" return="long"
  1638. abstract="false" native="false" synchronized="false"
  1639. static="false" final="false" visibility="public"
  1640. deprecated="not deprecated">
  1641. <doc>
  1642. <![CDATA[@return the directory count]]>
  1643. </doc>
  1644. </method>
  1645. <method name="getFileCount" return="long"
  1646. abstract="false" native="false" synchronized="false"
  1647. static="false" final="false" visibility="public"
  1648. deprecated="not deprecated">
  1649. <doc>
  1650. <![CDATA[@return the file count]]>
  1651. </doc>
  1652. </method>
  1653. <method name="getQuota" return="long"
  1654. abstract="false" native="false" synchronized="false"
  1655. static="false" final="false" visibility="public"
  1656. deprecated="not deprecated">
  1657. <doc>
  1658. <![CDATA[Return the directory quota]]>
  1659. </doc>
  1660. </method>
  1661. <method name="getSpaceConsumed" return="long"
  1662. abstract="false" native="false" synchronized="false"
  1663. static="false" final="false" visibility="public"
  1664. deprecated="not deprecated">
  1665. <doc>
  1666. <![CDATA[Retuns (disk) space consumed]]>
  1667. </doc>
  1668. </method>
  1669. <method name="getSpaceQuota" return="long"
  1670. abstract="false" native="false" synchronized="false"
  1671. static="false" final="false" visibility="public"
  1672. deprecated="not deprecated">
  1673. <doc>
  1674. <![CDATA[Returns (disk) space quota]]>
  1675. </doc>
  1676. </method>
  1677. <method name="write"
  1678. abstract="false" native="false" synchronized="false"
  1679. static="false" final="false" visibility="public"
  1680. deprecated="not deprecated">
  1681. <param name="out" type="java.io.DataOutput"/>
  1682. <exception name="IOException" type="java.io.IOException"/>
  1683. <doc>
  1684. <![CDATA[{@inheritDoc}]]>
  1685. </doc>
  1686. </method>
  1687. <method name="readFields"
  1688. abstract="false" native="false" synchronized="false"
  1689. static="false" final="false" visibility="public"
  1690. deprecated="not deprecated">
  1691. <param name="in" type="java.io.DataInput"/>
  1692. <exception name="IOException" type="java.io.IOException"/>
  1693. <doc>
  1694. <![CDATA[{@inheritDoc}]]>
  1695. </doc>
  1696. </method>
  1697. <method name="getHeader" return="java.lang.String"
  1698. abstract="false" native="false" synchronized="false"
  1699. static="true" final="false" visibility="public"
  1700. deprecated="not deprecated">
  1701. <param name="qOption" type="boolean"/>
  1702. <doc>
  1703. <![CDATA[Return the header of the output.
  1704. if qOption is false, output directory count, file count, and content size;
  1705. if qOption is true, output quota and remaining quota as well.
  1706. @param qOption a flag indicating if quota needs to be printed or not
  1707. @return the header of the output]]>
  1708. </doc>
  1709. </method>
  1710. <method name="toString" return="java.lang.String"
  1711. abstract="false" native="false" synchronized="false"
  1712. static="false" final="false" visibility="public"
  1713. deprecated="not deprecated">
  1714. <doc>
  1715. <![CDATA[{@inheritDoc}]]>
  1716. </doc>
  1717. </method>
  1718. <method name="toString" return="java.lang.String"
  1719. abstract="false" native="false" synchronized="false"
  1720. static="false" final="false" visibility="public"
  1721. deprecated="not deprecated">
  1722. <param name="qOption" type="boolean"/>
  1723. <doc>
  1724. <![CDATA[Return the string representation of the object in the output format.
  1725. if qOption is false, output directory count, file count, and content size;
  1726. if qOption is true, output quota and remaining quota as well.
  1727. @param qOption a flag indicating if quota needs to be printed or not
  1728. @return the string representation of the object]]>
  1729. </doc>
  1730. </method>
  1731. <doc>
  1732. <![CDATA[Store the summary of a content (a directory or a file).]]>
  1733. </doc>
  1734. </class>
  1735. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  1736. <!-- start class org.apache.hadoop.fs.DF -->
  1737. <class name="DF" extends="org.apache.hadoop.util.Shell"
  1738. abstract="false"
  1739. static="false" final="false" visibility="public"
  1740. deprecated="not deprecated">
  1741. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1742. static="false" final="false" visibility="public"
  1743. deprecated="not deprecated">
  1744. <exception name="IOException" type="java.io.IOException"/>
  1745. </constructor>
  1746. <constructor name="DF" type="java.io.File, long"
  1747. static="false" final="false" visibility="public"
  1748. deprecated="not deprecated">
  1749. <exception name="IOException" type="java.io.IOException"/>
  1750. </constructor>
  1751. <method name="getDirPath" return="java.lang.String"
  1752. abstract="false" native="false" synchronized="false"
  1753. static="false" final="false" visibility="public"
  1754. deprecated="not deprecated">
  1755. <doc>
  1756. <![CDATA[@return the canonical path to the volume we're checking.]]>
  1757. </doc>
  1758. </method>
  1759. <method name="getFilesystem" return="java.lang.String"
  1760. abstract="false" native="false" synchronized="false"
  1761. static="false" final="false" visibility="public"
  1762. deprecated="not deprecated">
  1763. <exception name="IOException" type="java.io.IOException"/>
  1764. <doc>
  1765. <![CDATA[@return a string indicating which filesystem volume we're checking.]]>
  1766. </doc>
  1767. </method>
  1768. <method name="getCapacity" return="long"
  1769. abstract="false" native="false" synchronized="false"
  1770. static="false" final="false" visibility="public"
  1771. deprecated="not deprecated">
  1772. <doc>
  1773. <![CDATA[@return the capacity of the measured filesystem in bytes.]]>
  1774. </doc>
  1775. </method>
  1776. <method name="getUsed" return="long"
  1777. abstract="false" native="false" synchronized="false"
  1778. static="false" final="false" visibility="public"
  1779. deprecated="not deprecated">
  1780. <doc>
  1781. <![CDATA[@return the total used space on the filesystem in bytes.]]>
  1782. </doc>
  1783. </method>
  1784. <method name="getAvailable" return="long"
  1785. abstract="false" native="false" synchronized="false"
  1786. static="false" final="false" visibility="public"
  1787. deprecated="not deprecated">
  1788. <doc>
  1789. <![CDATA[@return the usable space remaining on the filesystem in bytes.]]>
  1790. </doc>
  1791. </method>
  1792. <method name="getPercentUsed" return="int"
  1793. abstract="false" native="false" synchronized="false"
  1794. static="false" final="false" visibility="public"
  1795. deprecated="not deprecated">
  1796. <doc>
  1797. <![CDATA[@return the amount of the volume full, as a percent.]]>
  1798. </doc>
  1799. </method>
  1800. <method name="getMount" return="java.lang.String"
  1801. abstract="false" native="false" synchronized="false"
  1802. static="false" final="false" visibility="public"
  1803. deprecated="not deprecated">
  1804. <exception name="IOException" type="java.io.IOException"/>
  1805. <doc>
  1806. <![CDATA[@return the filesystem mount point for the indicated volume]]>
  1807. </doc>
  1808. </method>
  1809. <method name="toString" return="java.lang.String"
  1810. abstract="false" native="false" synchronized="false"
  1811. static="false" final="false" visibility="public"
  1812. deprecated="not deprecated">
  1813. </method>
  1814. <method name="getExecString" return="java.lang.String[]"
  1815. abstract="false" native="false" synchronized="false"
  1816. static="false" final="false" visibility="protected"
  1817. deprecated="not deprecated">
  1818. </method>
  1819. <method name="parseExecResult"
  1820. abstract="false" native="false" synchronized="false"
  1821. static="false" final="false" visibility="protected"
  1822. deprecated="not deprecated">
  1823. <param name="lines" type="java.io.BufferedReader"/>
  1824. <exception name="IOException" type="java.io.IOException"/>
  1825. </method>
  1826. <method name="main"
  1827. abstract="false" native="false" synchronized="false"
  1828. static="true" final="false" visibility="public"
  1829. deprecated="not deprecated">
  1830. <param name="args" type="java.lang.String[]"/>
  1831. <exception name="Exception" type="java.lang.Exception"/>
  1832. </method>
  1833. <field name="DF_INTERVAL_DEFAULT" type="long"
  1834. transient="false" volatile="false"
  1835. static="true" final="true" visibility="public"
  1836. deprecated="not deprecated">
  1837. <doc>
  1838. <![CDATA[Default DF refresh interval.]]>
  1839. </doc>
  1840. </field>
  1841. <doc>
  1842. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program to get
  1843. mount points, and java.io.File for space utilization. Tested on Linux,
  1844. FreeBSD, Cygwin.]]>
  1845. </doc>
  1846. </class>
  1847. <!-- end class org.apache.hadoop.fs.DF -->
  1848. <!-- start class org.apache.hadoop.fs.DU -->
  1849. <class name="DU" extends="org.apache.hadoop.util.Shell"
  1850. abstract="false"
  1851. static="false" final="false" visibility="public"
  1852. deprecated="not deprecated">
  1853. <constructor name="DU" type="java.io.File, long"
  1854. static="false" final="false" visibility="public"
  1855. deprecated="not deprecated">
  1856. <exception name="IOException" type="java.io.IOException"/>
  1857. <doc>
  1858. <![CDATA[Keeps track of disk usage.
  1859. @param path the path to check disk usage in
  1860. @param interval refresh the disk usage at this interval
  1861. @throws IOException if we fail to refresh the disk usage]]>
  1862. </doc>
  1863. </constructor>
  1864. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1865. static="false" final="false" visibility="public"
  1866. deprecated="not deprecated">
  1867. <exception name="IOException" type="java.io.IOException"/>
  1868. <doc>
  1869. <![CDATA[Keeps track of disk usage.
  1870. @param path the path to check disk usage in
  1871. @param conf configuration object
  1872. @throws IOException if we fail to refresh the disk usage]]>
  1873. </doc>
  1874. </constructor>
  1875. <method name="decDfsUsed"
  1876. abstract="false" native="false" synchronized="false"
  1877. static="false" final="false" visibility="public"
  1878. deprecated="not deprecated">
  1879. <param name="value" type="long"/>
  1880. <doc>
  1881. <![CDATA[Decrease how much disk space we use.
  1882. @param value decrease by this value]]>
  1883. </doc>
  1884. </method>
  1885. <method name="incDfsUsed"
  1886. abstract="false" native="false" synchronized="false"
  1887. static="false" final="false" visibility="public"
  1888. deprecated="not deprecated">
  1889. <param name="value" type="long"/>
  1890. <doc>
  1891. <![CDATA[Increase how much disk space we use.
  1892. @param value increase by this value]]>
  1893. </doc>
  1894. </method>
  1895. <method name="getUsed" return="long"
  1896. abstract="false" native="false" synchronized="false"
  1897. static="false" final="false" visibility="public"
  1898. deprecated="not deprecated">
  1899. <exception name="IOException" type="java.io.IOException"/>
  1900. <doc>
  1901. <![CDATA[@return disk space used
  1902. @throws IOException if the shell command fails]]>
  1903. </doc>
  1904. </method>
  1905. <method name="getDirPath" return="java.lang.String"
  1906. abstract="false" native="false" synchronized="false"
  1907. static="false" final="false" visibility="public"
  1908. deprecated="not deprecated">
  1909. <doc>
  1910. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  1911. </doc>
  1912. </method>
  1913. <method name="start"
  1914. abstract="false" native="false" synchronized="false"
  1915. static="false" final="false" visibility="public"
  1916. deprecated="not deprecated">
  1917. <doc>
  1918. <![CDATA[Start the disk usage checking thread.]]>
  1919. </doc>
  1920. </method>
  1921. <method name="shutdown"
  1922. abstract="false" native="false" synchronized="false"
  1923. static="false" final="false" visibility="public"
  1924. deprecated="not deprecated">
  1925. <doc>
  1926. <![CDATA[Shut down the refreshing thread.]]>
  1927. </doc>
  1928. </method>
  1929. <method name="toString" return="java.lang.String"
  1930. abstract="false" native="false" synchronized="false"
  1931. static="false" final="false" visibility="public"
  1932. deprecated="not deprecated">
  1933. </method>
  1934. <method name="getExecString" return="java.lang.String[]"
  1935. abstract="false" native="false" synchronized="false"
  1936. static="false" final="false" visibility="protected"
  1937. deprecated="not deprecated">
  1938. </method>
  1939. <method name="parseExecResult"
  1940. abstract="false" native="false" synchronized="false"
  1941. static="false" final="false" visibility="protected"
  1942. deprecated="not deprecated">
  1943. <param name="lines" type="java.io.BufferedReader"/>
  1944. <exception name="IOException" type="java.io.IOException"/>
  1945. </method>
  1946. <method name="main"
  1947. abstract="false" native="false" synchronized="false"
  1948. static="true" final="false" visibility="public"
  1949. deprecated="not deprecated">
  1950. <param name="args" type="java.lang.String[]"/>
  1951. <exception name="Exception" type="java.lang.Exception"/>
  1952. </method>
  1953. <doc>
  1954. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  1955. </doc>
  1956. </class>
  1957. <!-- end class org.apache.hadoop.fs.DU -->
  1958. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  1959. <class name="FileChecksum" extends="java.lang.Object"
  1960. abstract="true"
  1961. static="false" final="false" visibility="public"
  1962. deprecated="not deprecated">
  1963. <implements name="org.apache.hadoop.io.Writable"/>
  1964. <constructor name="FileChecksum"
  1965. static="false" final="false" visibility="public"
  1966. deprecated="not deprecated">
  1967. </constructor>
  1968. <method name="getAlgorithmName" return="java.lang.String"
  1969. abstract="true" native="false" synchronized="false"
  1970. static="false" final="false" visibility="public"
  1971. deprecated="not deprecated">
  1972. <doc>
  1973. <![CDATA[The checksum algorithm name]]>
  1974. </doc>
  1975. </method>
  1976. <method name="getLength" return="int"
  1977. abstract="true" native="false" synchronized="false"
  1978. static="false" final="false" visibility="public"
  1979. deprecated="not deprecated">
  1980. <doc>
  1981. <![CDATA[The length of the checksum in bytes]]>
  1982. </doc>
  1983. </method>
  1984. <method name="getBytes" return="byte[]"
  1985. abstract="true" native="false" synchronized="false"
  1986. static="false" final="false" visibility="public"
  1987. deprecated="not deprecated">
  1988. <doc>
  1989. <![CDATA[The value of the checksum in bytes]]>
  1990. </doc>
  1991. </method>
  1992. <method name="equals" return="boolean"
  1993. abstract="false" native="false" synchronized="false"
  1994. static="false" final="false" visibility="public"
  1995. deprecated="not deprecated">
  1996. <param name="other" type="java.lang.Object"/>
  1997. <doc>
  1998. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  1999. </doc>
  2000. </method>
  2001. <method name="hashCode" return="int"
  2002. abstract="false" native="false" synchronized="false"
  2003. static="false" final="false" visibility="public"
  2004. deprecated="not deprecated">
  2005. <doc>
  2006. <![CDATA[{@inheritDoc}]]>
  2007. </doc>
  2008. </method>
  2009. <doc>
  2010. <![CDATA[An abstract class representing file checksums for files.]]>
  2011. </doc>
  2012. </class>
  2013. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2014. <!-- start class org.apache.hadoop.fs.FileStatus -->
  2015. <class name="FileStatus" extends="java.lang.Object"
  2016. abstract="false"
  2017. static="false" final="false" visibility="public"
  2018. deprecated="not deprecated">
  2019. <implements name="org.apache.hadoop.io.Writable"/>
  2020. <implements name="java.lang.Comparable"/>
  2021. <constructor name="FileStatus"
  2022. static="false" final="false" visibility="public"
  2023. deprecated="not deprecated">
  2024. </constructor>
  2025. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  2026. static="false" final="false" visibility="public"
  2027. deprecated="not deprecated">
  2028. </constructor>
  2029. <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"
  2030. static="false" final="false" visibility="public"
  2031. deprecated="not deprecated">
  2032. </constructor>
  2033. <method name="getLen" return="long"
  2034. abstract="false" native="false" synchronized="false"
  2035. static="false" final="false" visibility="public"
  2036. deprecated="not deprecated">
  2037. </method>
  2038. <method name="isDir" return="boolean"
  2039. abstract="false" native="false" synchronized="false"
  2040. static="false" final="false" visibility="public"
  2041. deprecated="not deprecated">
  2042. <doc>
  2043. <![CDATA[Is this a directory?
  2044. @return true if this is a directory]]>
  2045. </doc>
  2046. </method>
  2047. <method name="getBlockSize" return="long"
  2048. abstract="false" native="false" synchronized="false"
  2049. static="false" final="false" visibility="public"
  2050. deprecated="not deprecated">
  2051. <doc>
  2052. <![CDATA[Get the block size of the file.
  2053. @return the number of bytes]]>
  2054. </doc>
  2055. </method>
  2056. <method name="getReplication" return="short"
  2057. abstract="false" native="false" synchronized="false"
  2058. static="false" final="false" visibility="public"
  2059. deprecated="not deprecated">
  2060. <doc>
  2061. <![CDATA[Get the replication factor of a file.
  2062. @return the replication factor of a file.]]>
  2063. </doc>
  2064. </method>
  2065. <method name="getModificationTime" return="long"
  2066. abstract="false" native="false" synchronized="false"
  2067. static="false" final="false" visibility="public"
  2068. deprecated="not deprecated">
  2069. <doc>
  2070. <![CDATA[Get the modification time of the file.
  2071. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2072. </doc>
  2073. </method>
  2074. <method name="getAccessTime" return="long"
  2075. abstract="false" native="false" synchronized="false"
  2076. static="false" final="false" visibility="public"
  2077. deprecated="not deprecated">
  2078. <doc>
  2079. <![CDATA[Get the access time of the file.
  2080. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  2081. </doc>
  2082. </method>
  2083. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2084. abstract="false" native="false" synchronized="false"
  2085. static="false" final="false" visibility="public"
  2086. deprecated="not deprecated">
  2087. <doc>
  2088. <![CDATA[Get FsPermission associated with the file.
  2089. @return permssion. If a filesystem does not have a notion of permissions
  2090. or if permissions could not be determined, then default
  2091. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2092. </doc>
  2093. </method>
  2094. <method name="getOwner" return="java.lang.String"
  2095. abstract="false" native="false" synchronized="false"
  2096. static="false" final="false" visibility="public"
  2097. deprecated="not deprecated">
  2098. <doc>
  2099. <![CDATA[Get the owner of the file.
  2100. @return owner of the file. The string could be empty if there is no
  2101. notion of owner of a file in a filesystem or if it could not
  2102. be determined (rare).]]>
  2103. </doc>
  2104. </method>
  2105. <method name="getGroup" return="java.lang.String"
  2106. abstract="false" native="false" synchronized="false"
  2107. static="false" final="false" visibility="public"
  2108. deprecated="not deprecated">
  2109. <doc>
  2110. <![CDATA[Get the group associated with the file.
  2111. @return group for the file. The string could be empty if there is no
  2112. notion of group of a file in a filesystem or if it could not
  2113. be determined (rare).]]>
  2114. </doc>
  2115. </method>
  2116. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2117. abstract="false" native="false" synchronized="false"
  2118. static="false" final="false" visibility="public"
  2119. deprecated="not deprecated">
  2120. </method>
  2121. <method name="setPermission"
  2122. abstract="false" native="false" synchronized="false"
  2123. static="false" final="false" visibility="protected"
  2124. deprecated="not deprecated">
  2125. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2126. <doc>
  2127. <![CDATA[Sets permission.
  2128. @param permission if permission is null, default value is set]]>
  2129. </doc>
  2130. </method>
  2131. <method name="setOwner"
  2132. abstract="false" native="false" synchronized="false"
  2133. static="false" final="false" visibility="protected"
  2134. deprecated="not deprecated">
  2135. <param name="owner" type="java.lang.String"/>
  2136. <doc>
  2137. <![CDATA[Sets owner.
  2138. @param owner if it is null, default value is set]]>
  2139. </doc>
  2140. </method>
  2141. <method name="setGroup"
  2142. abstract="false" native="false" synchronized="false"
  2143. static="false" final="false" visibility="protected"
  2144. deprecated="not deprecated">
  2145. <param name="group" type="java.lang.String"/>
  2146. <doc>
  2147. <![CDATA[Sets group.
  2148. @param group if it is null, default value is set]]>
  2149. </doc>
  2150. </method>
  2151. <method name="write"
  2152. abstract="false" native="false" synchronized="false"
  2153. static="false" final="false" visibility="public"
  2154. deprecated="not deprecated">
  2155. <param name="out" type="java.io.DataOutput"/>
  2156. <exception name="IOException" type="java.io.IOException"/>
  2157. </method>
  2158. <method name="readFields"
  2159. abstract="false" native="false" synchronized="false"
  2160. static="false" final="false" visibility="public"
  2161. deprecated="not deprecated">
  2162. <param name="in" type="java.io.DataInput"/>
  2163. <exception name="IOException" type="java.io.IOException"/>
  2164. </method>
  2165. <method name="compareTo" return="int"
  2166. abstract="false" native="false" synchronized="false"
  2167. static="false" final="false" visibility="public"
  2168. deprecated="not deprecated">
  2169. <param name="o" type="java.lang.Object"/>
  2170. <doc>
  2171. <![CDATA[Compare this object to another object
  2172. @param o the object to be compared.
  2173. @return a negative integer, zero, or a positive integer as this object
  2174. is less than, equal to, or greater than the specified object.
  2175. @throws ClassCastException if the specified object's is not of
  2176. type FileStatus]]>
  2177. </doc>
  2178. </method>
  2179. <method name="equals" return="boolean"
  2180. abstract="false" native="false" synchronized="false"
  2181. static="false" final="false" visibility="public"
  2182. deprecated="not deprecated">
  2183. <param name="o" type="java.lang.Object"/>
  2184. <doc>
  2185. <![CDATA[Compare if this object is equal to another object
  2186. @param o the object to be compared.
  2187. @return true if two file status has the same path name; false if not.]]>
  2188. </doc>
  2189. </method>
  2190. <method name="hashCode" return="int"
  2191. abstract="false" native="false" synchronized="false"
  2192. static="false" final="false" visibility="public"
  2193. deprecated="not deprecated">
  2194. <doc>
  2195. <![CDATA[Returns a hash code value for the object, which is defined as
  2196. the hash code of the path name.
  2197. @return a hash code value for the path name.]]>
  2198. </doc>
  2199. </method>
  2200. <doc>
  2201. <![CDATA[Interface that represents the client side information for a file.]]>
  2202. </doc>
  2203. </class>
  2204. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2205. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2206. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2207. abstract="true"
  2208. static="false" final="false" visibility="public"
  2209. deprecated="not deprecated">
  2210. <implements name="java.io.Closeable"/>
  2211. <constructor name="FileSystem"
  2212. static="false" final="false" visibility="protected"
  2213. deprecated="not deprecated">
  2214. </constructor>
  2215. <method name="addFileSystemForTesting"
  2216. abstract="false" native="false" synchronized="false"
  2217. static="true" final="false" visibility="public"
  2218. deprecated="not deprecated">
  2219. <param name="uri" type="java.net.URI"/>
  2220. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2221. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2222. <exception name="IOException" type="java.io.IOException"/>
  2223. <doc>
  2224. <![CDATA[This method adds a file system for testing so that we can find it later.
  2225. It is only for testing.
  2226. @param uri the uri to store it under
  2227. @param conf the configuration to store it under
  2228. @param fs the file system to store
  2229. @throws IOException]]>
  2230. </doc>
  2231. </method>
  2232. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2233. abstract="false" native="false" synchronized="false"
  2234. static="true" final="false" visibility="public"
  2235. deprecated="not deprecated">
  2236. <param name="uri" type="java.net.URI"/>
  2237. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2238. <param name="user" type="java.lang.String"/>
  2239. <exception name="IOException" type="java.io.IOException"/>
  2240. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  2241. </method>
  2242. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2243. abstract="false" native="false" synchronized="false"
  2244. static="true" final="false" visibility="public"
  2245. deprecated="not deprecated">
  2246. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2247. <exception name="IOException" type="java.io.IOException"/>
  2248. <doc>
  2249. <![CDATA[Returns the configured filesystem implementation.]]>
  2250. </doc>
  2251. </method>
  2252. <method name="getDefaultUri" return="java.net.URI"
  2253. abstract="false" native="false" synchronized="false"
  2254. static="true" final="false" visibility="public"
  2255. deprecated="not deprecated">
  2256. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2257. <doc>
  2258. <![CDATA[Get the default filesystem URI from a configuration.
  2259. @param conf the configuration to access
  2260. @return the uri of the default filesystem]]>
  2261. </doc>
  2262. </method>
  2263. <method name="setDefaultUri"
  2264. abstract="false" native="false" synchronized="false"
  2265. static="true" final="false" visibility="public"
  2266. deprecated="not deprecated">
  2267. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2268. <param name="uri" type="java.net.URI"/>
  2269. <doc>
  2270. <![CDATA[Set the default filesystem URI in a configuration.
  2271. @param conf the configuration to alter
  2272. @param uri the new default filesystem uri]]>
  2273. </doc>
  2274. </method>
  2275. <method name="setDefaultUri"
  2276. abstract="false" native="false" synchronized="false"
  2277. static="true" final="false" visibility="public"
  2278. deprecated="not deprecated">
  2279. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2280. <param name="uri" type="java.lang.String"/>
  2281. <doc>
  2282. <![CDATA[Set the default filesystem URI in a configuration.
  2283. @param conf the configuration to alter
  2284. @param uri the new default filesystem uri]]>
  2285. </doc>
  2286. </method>
  2287. <method name="initialize"
  2288. abstract="false" native="false" synchronized="false"
  2289. static="false" final="false" visibility="public"
  2290. deprecated="not deprecated">
  2291. <param name="name" type="java.net.URI"/>
  2292. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2293. <exception name="IOException" type="java.io.IOException"/>
  2294. <doc>
  2295. <![CDATA[Called after a new FileSystem instance is constructed.
  2296. @param name a uri whose authority section names the host, port, etc.
  2297. for this FileSystem
  2298. @param conf the configuration]]>
  2299. </doc>
  2300. </method>
  2301. <method name="getUri" return="java.net.URI"
  2302. abstract="true" native="false" synchronized="false"
  2303. static="false" final="false" visibility="public"
  2304. deprecated="not deprecated">
  2305. <doc>
  2306. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2307. </doc>
  2308. </method>
  2309. <method name="getDefaultPort" return="int"
  2310. abstract="false" native="false" synchronized="false"
  2311. static="false" final="false" visibility="protected"
  2312. deprecated="not deprecated">
  2313. <doc>
  2314. <![CDATA[Get the default port for this file system.
  2315. @return the default port or 0 if there isn't one]]>
  2316. </doc>
  2317. </method>
  2318. <method name="getCanonicalServiceName" return="java.lang.String"
  2319. abstract="false" native="false" synchronized="false"
  2320. static="false" final="false" visibility="public"
  2321. deprecated="not deprecated">
  2322. <doc>
  2323. <![CDATA[Get a canonical service name for this file system. The token cache is
  2324. the only user of this value, and uses it to lookup this filesystem's
  2325. service tokens. The token cache will not attempt to acquire tokens if the
  2326. service is null.
  2327. @return a service string that uniquely identifies this file system, null
  2328. if the filesystem does not implement tokens
  2329. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  2330. </doc>
  2331. </method>
  2332. <method name="getName" return="java.lang.String"
  2333. abstract="false" native="false" synchronized="false"
  2334. static="false" final="false" visibility="public"
  2335. deprecated="call #getUri() instead.">
  2336. <doc>
  2337. <![CDATA[@deprecated call #getUri() instead.]]>
  2338. </doc>
  2339. </method>
  2340. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2341. abstract="false" native="false" synchronized="false"
  2342. static="true" final="false" visibility="public"
  2343. deprecated="call #get(URI,Configuration) instead.">
  2344. <param name="name" type="java.lang.String"/>
  2345. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2346. <exception name="IOException" type="java.io.IOException"/>
  2347. <doc>
  2348. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2349. </doc>
  2350. </method>
  2351. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2352. abstract="false" native="false" synchronized="false"
  2353. static="true" final="false" visibility="public"
  2354. deprecated="not deprecated">
  2355. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2356. <exception name="IOException" type="java.io.IOException"/>
  2357. <doc>
  2358. <![CDATA[Get the local file syste
  2359. @param conf the configuration to configure the file system with
  2360. @return a LocalFileSystem]]>
  2361. </doc>
  2362. </method>
  2363. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2364. abstract="false" native="false" synchronized="false"
  2365. static="true" final="false" visibility="public"
  2366. deprecated="not deprecated">
  2367. <param name="uri" type="java.net.URI"/>
  2368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2369. <exception name="IOException" type="java.io.IOException"/>
  2370. <doc>
  2371. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2372. of the URI determines a configuration property name,
  2373. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2374. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2375. </doc>
  2376. </method>
  2377. <method name="closeAll"
  2378. abstract="false" native="false" synchronized="false"
  2379. static="true" final="false" visibility="public"
  2380. deprecated="not deprecated">
  2381. <exception name="IOException" type="java.io.IOException"/>
  2382. <doc>
  2383. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2384. used anymore.
  2385. @throws IOException]]>
  2386. </doc>
  2387. </method>
  2388. <method name="closeAllForUGI"
  2389. abstract="false" native="false" synchronized="false"
  2390. static="true" final="false" visibility="public"
  2391. deprecated="not deprecated">
  2392. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  2393. <exception name="IOException" type="java.io.IOException"/>
  2394. <doc>
  2395. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  2396. are not used anymore.
  2397. @param ugi
  2398. @throws IOException]]>
  2399. </doc>
  2400. </method>
  2401. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2402. abstract="false" native="false" synchronized="false"
  2403. static="false" final="false" visibility="public"
  2404. deprecated="not deprecated">
  2405. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2406. <doc>
  2407. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2408. </doc>
  2409. </method>
  2410. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2411. abstract="false" native="false" synchronized="false"
  2412. static="true" final="false" visibility="public"
  2413. deprecated="not deprecated">
  2414. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2415. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2416. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2417. <exception name="IOException" type="java.io.IOException"/>
  2418. <doc>
  2419. <![CDATA[create a file with the provided permission
  2420. The permission of the file is set to be the provided permission as in
  2421. setPermission, not permission&~umask
  2422. It is implemented using two RPCs. It is understood that it is inefficient,
  2423. but the implementation is thread-safe. The other option is to change the
  2424. value of umask in configuration to be 0, but it is not thread-safe.
  2425. @param fs file system handle
  2426. @param file the name of the file to be created
  2427. @param permission the permission of the file
  2428. @return an output stream
  2429. @throws IOException]]>
  2430. </doc>
  2431. </method>
  2432. <method name="mkdirs" return="boolean"
  2433. abstract="false" native="false" synchronized="false"
  2434. static="true" final="false" visibility="public"
  2435. deprecated="not deprecated">
  2436. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2437. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2438. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2439. <exception name="IOException" type="java.io.IOException"/>
  2440. <doc>
  2441. <![CDATA[create a directory with the provided permission
  2442. The permission of the directory is set to be the provided permission as in
  2443. setPermission, not permission&~umask
  2444. @see #create(FileSystem, Path, FsPermission)
  2445. @param fs file system handle
  2446. @param dir the name of the directory to be created
  2447. @param permission the permission of the directory
  2448. @return true if the directory creation succeeds; false otherwise
  2449. @throws IOException]]>
  2450. </doc>
  2451. </method>
  2452. <method name="checkPath"
  2453. abstract="false" native="false" synchronized="false"
  2454. static="false" final="false" visibility="protected"
  2455. deprecated="not deprecated">
  2456. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2457. <doc>
  2458. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2459. </doc>
  2460. </method>
  2461. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2462. abstract="false" native="false" synchronized="false"
  2463. static="false" final="false" visibility="public"
  2464. deprecated="not deprecated">
  2465. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2466. <param name="start" type="long"/>
  2467. <param name="len" type="long"/>
  2468. <exception name="IOException" type="java.io.IOException"/>
  2469. <doc>
  2470. <![CDATA[Return an array containing hostnames, offset and size of
  2471. portions of the given file. For a nonexistent
  2472. file or regions, null will be returned.
  2473. This call is most helpful with DFS, where it returns
  2474. hostnames of machines that contain the given file.
  2475. The FileSystem will simply return an elt containing 'localhost'.]]>
  2476. </doc>
  2477. </method>
  2478. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2479. abstract="true" native="false" synchronized="false"
  2480. static="false" final="false" visibility="public"
  2481. deprecated="not deprecated">
  2482. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2483. <param name="bufferSize" type="int"/>
  2484. <exception name="IOException" type="java.io.IOException"/>
  2485. <doc>
  2486. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2487. @param f the file name to open
  2488. @param bufferSize the size of the buffer to be used.]]>
  2489. </doc>
  2490. </method>
  2491. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2492. abstract="false" native="false" synchronized="false"
  2493. static="false" final="false" visibility="public"
  2494. deprecated="not deprecated">
  2495. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2496. <exception name="IOException" type="java.io.IOException"/>
  2497. <doc>
  2498. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2499. @param f the file to open]]>
  2500. </doc>
  2501. </method>
  2502. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2503. abstract="false" native="false" synchronized="false"
  2504. static="false" final="false" visibility="public"
  2505. deprecated="not deprecated">
  2506. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2507. <exception name="IOException" type="java.io.IOException"/>
  2508. <doc>
  2509. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2510. Files are overwritten by default.]]>
  2511. </doc>
  2512. </method>
  2513. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2514. abstract="false" native="false" synchronized="false"
  2515. static="false" final="false" visibility="public"
  2516. deprecated="not deprecated">
  2517. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2518. <param name="overwrite" type="boolean"/>
  2519. <exception name="IOException" type="java.io.IOException"/>
  2520. <doc>
  2521. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2522. </doc>
  2523. </method>
  2524. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2525. abstract="false" native="false" synchronized="false"
  2526. static="false" final="false" visibility="public"
  2527. deprecated="not deprecated">
  2528. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2529. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2530. <exception name="IOException" type="java.io.IOException"/>
  2531. <doc>
  2532. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2533. reporting.
  2534. Files are overwritten by default.]]>
  2535. </doc>
  2536. </method>
  2537. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2538. abstract="false" native="false" synchronized="false"
  2539. static="false" final="false" visibility="public"
  2540. deprecated="not deprecated">
  2541. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2542. <param name="replication" type="short"/>
  2543. <exception name="IOException" type="java.io.IOException"/>
  2544. <doc>
  2545. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2546. Files are overwritten by default.]]>
  2547. </doc>
  2548. </method>
  2549. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2550. abstract="false" native="false" synchronized="false"
  2551. static="false" final="false" visibility="public"
  2552. deprecated="not deprecated">
  2553. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2554. <param name="replication" type="short"/>
  2555. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2556. <exception name="IOException" type="java.io.IOException"/>
  2557. <doc>
  2558. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2559. reporting.
  2560. Files are overwritten by default.]]>
  2561. </doc>
  2562. </method>
  2563. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2564. abstract="false" native="false" synchronized="false"
  2565. static="false" final="false" visibility="public"
  2566. deprecated="not deprecated">
  2567. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2568. <param name="overwrite" type="boolean"/>
  2569. <param name="bufferSize" type="int"/>
  2570. <exception name="IOException" type="java.io.IOException"/>
  2571. <doc>
  2572. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2573. @param f the file name to open
  2574. @param overwrite if a file with this name already exists, then if true,
  2575. the file will be overwritten, and if false an error will be thrown.
  2576. @param bufferSize the size of the buffer to be used.]]>
  2577. </doc>
  2578. </method>
  2579. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2580. abstract="false" native="false" synchronized="false"
  2581. static="false" final="false" visibility="public"
  2582. deprecated="not deprecated">
  2583. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2584. <param name="overwrite" type="boolean"/>
  2585. <param name="bufferSize" type="int"/>
  2586. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2587. <exception name="IOException" type="java.io.IOException"/>
  2588. <doc>
  2589. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2590. reporting.
  2591. @param f the file name to open
  2592. @param overwrite if a file with this name already exists, then if true,
  2593. the file will be overwritten, and if false an error will be thrown.
  2594. @param bufferSize the size of the buffer to be used.]]>
  2595. </doc>
  2596. </method>
  2597. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2598. abstract="false" native="false" synchronized="false"
  2599. static="false" final="false" visibility="public"
  2600. deprecated="not deprecated">
  2601. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2602. <param name="overwrite" type="boolean"/>
  2603. <param name="bufferSize" type="int"/>
  2604. <param name="replication" type="short"/>
  2605. <param name="blockSize" type="long"/>
  2606. <exception name="IOException" type="java.io.IOException"/>
  2607. <doc>
  2608. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2609. @param f the file name to open
  2610. @param overwrite if a file with this name already exists, then if true,
  2611. the file will be overwritten, and if false an error will be thrown.
  2612. @param bufferSize the size of the buffer to be used.
  2613. @param replication required block replication for the file.]]>
  2614. </doc>
  2615. </method>
  2616. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2617. abstract="false" native="false" synchronized="false"
  2618. static="false" final="false" visibility="public"
  2619. deprecated="not deprecated">
  2620. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2621. <param name="overwrite" type="boolean"/>
  2622. <param name="bufferSize" type="int"/>
  2623. <param name="replication" type="short"/>
  2624. <param name="blockSize" type="long"/>
  2625. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2626. <exception name="IOException" type="java.io.IOException"/>
  2627. <doc>
  2628. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2629. reporting.
  2630. @param f the file name to open
  2631. @param overwrite if a file with this name already exists, then if true,
  2632. the file will be overwritten, and if false an error will be thrown.
  2633. @param bufferSize the size of the buffer to be used.
  2634. @param replication required block replication for the file.]]>
  2635. </doc>
  2636. </method>
  2637. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2638. abstract="true" native="false" synchronized="false"
  2639. static="false" final="false" visibility="public"
  2640. deprecated="not deprecated">
  2641. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2642. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2643. <param name="overwrite" type="boolean"/>
  2644. <param name="bufferSize" type="int"/>
  2645. <param name="replication" type="short"/>
  2646. <param name="blockSize" type="long"/>
  2647. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2648. <exception name="IOException" type="java.io.IOException"/>
  2649. <doc>
  2650. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2651. reporting.
  2652. @param f the file name to open
  2653. @param permission
  2654. @param overwrite if a file with this name already exists, then if true,
  2655. the file will be overwritten, and if false an error will be thrown.
  2656. @param bufferSize the size of the buffer to be used.
  2657. @param replication required block replication for the file.
  2658. @param blockSize
  2659. @param progress
  2660. @throws IOException
  2661. @see #setPermission(Path, FsPermission)]]>
  2662. </doc>
  2663. </method>
  2664. <method name="createNewFile" return="boolean"
  2665. abstract="false" native="false" synchronized="false"
  2666. static="false" final="false" visibility="public"
  2667. deprecated="not deprecated">
  2668. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2669. <exception name="IOException" type="java.io.IOException"/>
  2670. <doc>
  2671. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  2672. create fails, or if it already existed, return false.]]>
  2673. </doc>
  2674. </method>
  2675. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2676. abstract="false" native="false" synchronized="false"
  2677. static="false" final="false" visibility="public"
  2678. deprecated="not deprecated">
  2679. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2680. <exception name="IOException" type="java.io.IOException"/>
  2681. <doc>
  2682. <![CDATA[Append to an existing file (optional operation).
  2683. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2684. @param f the existing file to be appended.
  2685. @throws IOException]]>
  2686. </doc>
  2687. </method>
  2688. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2689. abstract="false" native="false" synchronized="false"
  2690. static="false" final="false" visibility="public"
  2691. deprecated="not deprecated">
  2692. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2693. <param name="bufferSize" type="int"/>
  2694. <exception name="IOException" type="java.io.IOException"/>
  2695. <doc>
  2696. <![CDATA[Append to an existing file (optional operation).
  2697. Same as append(f, bufferSize, null).
  2698. @param f the existing file to be appended.
  2699. @param bufferSize the size of the buffer to be used.
  2700. @throws IOException]]>
  2701. </doc>
  2702. </method>
  2703. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2704. abstract="true" native="false" synchronized="false"
  2705. static="false" final="false" visibility="public"
  2706. deprecated="not deprecated">
  2707. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2708. <param name="bufferSize" type="int"/>
  2709. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2710. <exception name="IOException" type="java.io.IOException"/>
  2711. <doc>
  2712. <![CDATA[Append to an existing file (optional operation).
  2713. @param f the existing file to be appended.
  2714. @param bufferSize the size of the buffer to be used.
  2715. @param progress for reporting progress if it is not null.
  2716. @throws IOException]]>
  2717. </doc>
  2718. </method>
  2719. <method name="getReplication" return="short"
  2720. abstract="false" native="false" synchronized="false"
  2721. static="false" final="false" visibility="public"
  2722. deprecated="Use getFileStatus() instead">
  2723. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2724. <exception name="IOException" type="java.io.IOException"/>
  2725. <doc>
  2726. <![CDATA[Get replication.
  2727. @deprecated Use getFileStatus() instead
  2728. @param src file name
  2729. @return file replication
  2730. @throws IOException]]>
  2731. </doc>
  2732. </method>
  2733. <method name="setReplication" return="boolean"
  2734. abstract="false" native="false" synchronized="false"
  2735. static="false" final="false" visibility="public"
  2736. deprecated="not deprecated">
  2737. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2738. <param name="replication" type="short"/>
  2739. <exception name="IOException" type="java.io.IOException"/>
  2740. <doc>
  2741. <![CDATA[Set replication for an existing file.
  2742. @param src file name
  2743. @param replication new replication
  2744. @throws IOException
  2745. @return true if successful;
  2746. false if file does not exist or is a directory]]>
  2747. </doc>
  2748. </method>
  2749. <method name="rename" return="boolean"
  2750. abstract="true" native="false" synchronized="false"
  2751. static="false" final="false" visibility="public"
  2752. deprecated="not deprecated">
  2753. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2754. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2755. <exception name="IOException" type="java.io.IOException"/>
  2756. <doc>
  2757. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  2758. or remote DFS.]]>
  2759. </doc>
  2760. </method>
  2761. <method name="delete" return="boolean"
  2762. abstract="true" native="false" synchronized="false"
  2763. static="false" final="false" visibility="public"
  2764. deprecated="Use delete(Path, boolean) instead">
  2765. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2766. <exception name="IOException" type="java.io.IOException"/>
  2767. <doc>
  2768. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  2769. </doc>
  2770. </method>
  2771. <method name="delete" return="boolean"
  2772. abstract="true" native="false" synchronized="false"
  2773. static="false" final="false" visibility="public"
  2774. deprecated="not deprecated">
  2775. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2776. <param name="recursive" type="boolean"/>
  2777. <exception name="IOException" type="java.io.IOException"/>
  2778. <doc>
  2779. <![CDATA[Delete a file.
  2780. @param f the path to delete.
  2781. @param recursive if path is a directory and set to
  2782. true, the directory is deleted else throws an exception. In
  2783. case of a file the recursive can be set to either true or false.
  2784. @return true if delete is successful else false.
  2785. @throws IOException]]>
  2786. </doc>
  2787. </method>
  2788. <method name="deleteOnExit" return="boolean"
  2789. abstract="false" native="false" synchronized="false"
  2790. static="false" final="false" visibility="public"
  2791. deprecated="not deprecated">
  2792. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2793. <exception name="IOException" type="java.io.IOException"/>
  2794. <doc>
  2795. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  2796. When the JVM shuts down,
  2797. all FileSystem objects will be closed automatically.
  2798. Then,
  2799. the marked path will be deleted as a result of closing the FileSystem.
  2800. The path has to exist in the file system.
  2801. @param f the path to delete.
  2802. @return true if deleteOnExit is successful, otherwise false.
  2803. @throws IOException]]>
  2804. </doc>
  2805. </method>
  2806. <method name="processDeleteOnExit"
  2807. abstract="false" native="false" synchronized="false"
  2808. static="false" final="false" visibility="protected"
  2809. deprecated="not deprecated">
  2810. <doc>
  2811. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  2812. deletes all files in the specified paths.]]>
  2813. </doc>
  2814. </method>
  2815. <method name="exists" return="boolean"
  2816. abstract="false" native="false" synchronized="false"
  2817. static="false" final="false" visibility="public"
  2818. deprecated="not deprecated">
  2819. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2820. <exception name="IOException" type="java.io.IOException"/>
  2821. <doc>
  2822. <![CDATA[Check if exists.
  2823. @param f source file]]>
  2824. </doc>
  2825. </method>
  2826. <method name="isDirectory" return="boolean"
  2827. abstract="false" native="false" synchronized="false"
  2828. static="false" final="false" visibility="public"
  2829. deprecated="Use getFileStatus() instead">
  2830. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2831. <exception name="IOException" type="java.io.IOException"/>
  2832. <doc>
  2833. <![CDATA[@deprecated Use getFileStatus() instead]]>
  2834. </doc>
  2835. </method>
  2836. <method name="isFile" return="boolean"
  2837. abstract="false" native="false" synchronized="false"
  2838. static="false" final="false" visibility="public"
  2839. deprecated="not deprecated">
  2840. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2841. <exception name="IOException" type="java.io.IOException"/>
  2842. <doc>
  2843. <![CDATA[True iff the named path is a regular file.]]>
  2844. </doc>
  2845. </method>
  2846. <method name="getLength" return="long"
  2847. abstract="false" native="false" synchronized="false"
  2848. static="false" final="false" visibility="public"
  2849. deprecated="Use getFileStatus() instead">
  2850. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2851. <exception name="IOException" type="java.io.IOException"/>
  2852. <doc>
  2853. <![CDATA[@deprecated Use getFileStatus() instead]]>
  2854. </doc>
  2855. </method>
  2856. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  2857. abstract="false" native="false" synchronized="false"
  2858. static="false" final="false" visibility="public"
  2859. deprecated="not deprecated">
  2860. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2861. <exception name="IOException" type="java.io.IOException"/>
  2862. <doc>
  2863. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  2864. </doc>
  2865. </method>
  2866. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2867. abstract="true" native="false" synchronized="false"
  2868. static="false" final="false" visibility="public"
  2869. deprecated="not deprecated">
  2870. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2871. <exception name="IOException" type="java.io.IOException"/>
  2872. <doc>
  2873. <![CDATA[List the statuses of the files/directories in the given path if the path is
  2874. a directory.
  2875. @param f
  2876. given path
  2877. @return the statuses of the files/directories in the given patch
  2878. returns null, if Path f does not exist in the FileSystem
  2879. @throws IOException]]>
  2880. </doc>
  2881. </method>
  2882. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2883. abstract="false" native="false" synchronized="false"
  2884. static="false" final="false" visibility="public"
  2885. deprecated="not deprecated">
  2886. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2887. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  2888. <exception name="IOException" type="java.io.IOException"/>
  2889. <doc>
  2890. <![CDATA[Filter files/directories in the given path using the user-supplied path
  2891. filter.
  2892. @param f
  2893. a path name
  2894. @param filter
  2895. the user-supplied path filter
  2896. @return an array of FileStatus objects for the files under the given path
  2897. after applying the filter
  2898. @throws IOException
  2899. if encounter any problem while fetching the status]]>
  2900. </doc>
  2901. </method>
  2902. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2903. abstract="false" native="false" synchronized="false"
  2904. static="false" final="false" visibility="public"
  2905. deprecated="not deprecated">
  2906. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  2907. <exception name="IOException" type="java.io.IOException"/>
  2908. <doc>
  2909. <![CDATA[Filter files/directories in the given list of paths using default
  2910. path filter.
  2911. @param files
  2912. a list of paths
  2913. @return a list of statuses for the files under the given paths after
  2914. applying the filter default Path filter
  2915. @exception IOException]]>
  2916. </doc>
  2917. </method>
  2918. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2919. abstract="false" native="false" synchronized="false"
  2920. static="false" final="false" visibility="public"
  2921. deprecated="not deprecated">
  2922. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  2923. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  2924. <exception name="IOException" type="java.io.IOException"/>
  2925. <doc>
  2926. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  2927. path filter.
  2928. @param files
  2929. a list of paths
  2930. @param filter
  2931. the user-supplied path filter
  2932. @return a list of statuses for the files under the given paths after
  2933. applying the filter
  2934. @exception IOException]]>
  2935. </doc>
  2936. </method>
  2937. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2938. abstract="false" native="false" synchronized="false"
  2939. static="false" final="false" visibility="public"
  2940. deprecated="not deprecated">
  2941. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  2942. <exception name="IOException" type="java.io.IOException"/>
  2943. <doc>
  2944. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  2945. files. Results are sorted by their names.
  2946. <p>
  2947. A filename pattern is composed of <i>regular</i> characters and
  2948. <i>special pattern matching</i> characters, which are:
  2949. <dl>
  2950. <dd>
  2951. <dl>
  2952. <p>
  2953. <dt> <tt> ? </tt>
  2954. <dd> Matches any single character.
  2955. <p>
  2956. <dt> <tt> * </tt>
  2957. <dd> Matches zero or more characters.
  2958. <p>
  2959. <dt> <tt> [<i>abc</i>] </tt>
  2960. <dd> Matches a single character from character set
  2961. <tt>{<i>a,b,c</i>}</tt>.
  2962. <p>
  2963. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  2964. <dd> Matches a single character from the character range
  2965. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  2966. lexicographically less than or equal to character <tt><i>b</i></tt>.
  2967. <p>
  2968. <dt> <tt> [^<i>a</i>] </tt>
  2969. <dd> Matches a single character that is not from character set or range
  2970. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  2971. immediately to the right of the opening bracket.
  2972. <p>
  2973. <dt> <tt> \<i>c</i> </tt>
  2974. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  2975. <p>
  2976. <dt> <tt> {ab,cd} </tt>
  2977. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  2978. <p>
  2979. <dt> <tt> {ab,c{de,fh}} </tt>
  2980. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  2981. </dl>
  2982. </dd>
  2983. </dl>
  2984. @param pathPattern a regular expression specifying a pth pattern
  2985. @return an array of paths that match the path pattern
  2986. @throws IOException]]>
  2987. </doc>
  2988. </method>
  2989. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2990. abstract="false" native="false" synchronized="false"
  2991. static="false" final="false" visibility="public"
  2992. deprecated="not deprecated">
  2993. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  2994. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  2995. <exception name="IOException" type="java.io.IOException"/>
  2996. <doc>
  2997. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  2998. and is accepted by the user-supplied path filter. Results are sorted by
  2999. their path names.
  3000. Return null if pathPattern has no glob and the path does not exist.
  3001. Return an empty array if pathPattern has a glob and no path matches it.
  3002. @param pathPattern
  3003. a regular expression specifying the path pattern
  3004. @param filter
  3005. a user-supplied path filter
  3006. @return an array of FileStatus objects
  3007. @throws IOException if any I/O error occurs when fetching file status]]>
  3008. </doc>
  3009. </method>
  3010. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3011. abstract="false" native="false" synchronized="false"
  3012. static="false" final="false" visibility="public"
  3013. deprecated="not deprecated">
  3014. <doc>
  3015. <![CDATA[Return the current user's home directory in this filesystem.
  3016. The default implementation returns "/user/$USER/".]]>
  3017. </doc>
  3018. </method>
  3019. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  3020. abstract="false" native="false" synchronized="false"
  3021. static="false" final="false" visibility="public"
  3022. deprecated="not deprecated">
  3023. <param name="renewer" type="java.lang.String"/>
  3024. <exception name="IOException" type="java.io.IOException"/>
  3025. <doc>
  3026. <![CDATA[Get a new delegation token for this file system.
  3027. @param renewer the account name that is allowed to renew the token.
  3028. @return a new delegation token
  3029. @throws IOException]]>
  3030. </doc>
  3031. </method>
  3032. <method name="setWorkingDirectory"
  3033. abstract="true" native="false" synchronized="false"
  3034. static="false" final="false" visibility="public"
  3035. deprecated="not deprecated">
  3036. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  3037. <doc>
  3038. <![CDATA[Set the current working directory for the given file system. All relative
  3039. paths will be resolved relative to it.
  3040. @param new_dir]]>
  3041. </doc>
  3042. </method>
  3043. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3044. abstract="true" native="false" synchronized="false"
  3045. static="false" final="false" visibility="public"
  3046. deprecated="not deprecated">
  3047. <doc>
  3048. <![CDATA[Get the current working directory for the given file system
  3049. @return the directory pathname]]>
  3050. </doc>
  3051. </method>
  3052. <method name="mkdirs" return="boolean"
  3053. abstract="false" native="false" synchronized="false"
  3054. static="false" final="false" visibility="public"
  3055. deprecated="not deprecated">
  3056. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3057. <exception name="IOException" type="java.io.IOException"/>
  3058. <doc>
  3059. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  3060. </doc>
  3061. </method>
  3062. <method name="mkdirs" return="boolean"
  3063. abstract="true" native="false" synchronized="false"
  3064. static="false" final="false" visibility="public"
  3065. deprecated="not deprecated">
  3066. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3067. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3068. <exception name="IOException" type="java.io.IOException"/>
  3069. <doc>
  3070. <![CDATA[Make the given file and all non-existent parents into
  3071. directories. Has the semantics of Unix 'mkdir -p'.
  3072. Existence of the directory hierarchy is not an error.]]>
  3073. </doc>
  3074. </method>
  3075. <method name="copyFromLocalFile"
  3076. abstract="false" native="false" synchronized="false"
  3077. static="false" final="false" visibility="public"
  3078. deprecated="not deprecated">
  3079. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3080. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3081. <exception name="IOException" type="java.io.IOException"/>
  3082. <doc>
  3083. <![CDATA[The src file is on the local disk. Add it to FS at
  3084. the given dst name and the source is kept intact afterwards]]>
  3085. </doc>
  3086. </method>
  3087. <method name="moveFromLocalFile"
  3088. abstract="false" native="false" synchronized="false"
  3089. static="false" final="false" visibility="public"
  3090. deprecated="not deprecated">
  3091. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3092. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3093. <exception name="IOException" type="java.io.IOException"/>
  3094. <doc>
  3095. <![CDATA[The src files is on the local disk. Add it to FS at
  3096. the given dst name, removing the source afterwards.]]>
  3097. </doc>
  3098. </method>
  3099. <method name="moveFromLocalFile"
  3100. abstract="false" native="false" synchronized="false"
  3101. static="false" final="false" visibility="public"
  3102. deprecated="not deprecated">
  3103. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3104. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3105. <exception name="IOException" type="java.io.IOException"/>
  3106. <doc>
  3107. <![CDATA[The src file is on the local disk. Add it to FS at
  3108. the given dst name, removing the source afterwards.]]>
  3109. </doc>
  3110. </method>
  3111. <method name="copyFromLocalFile"
  3112. abstract="false" native="false" synchronized="false"
  3113. static="false" final="false" visibility="public"
  3114. deprecated="not deprecated">
  3115. <param name="delSrc" type="boolean"/>
  3116. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3117. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3118. <exception name="IOException" type="java.io.IOException"/>
  3119. <doc>
  3120. <![CDATA[The src file is on the local disk. Add it to FS at
  3121. the given dst name.
  3122. delSrc indicates if the source should be removed]]>
  3123. </doc>
  3124. </method>
  3125. <method name="copyFromLocalFile"
  3126. abstract="false" native="false" synchronized="false"
  3127. static="false" final="false" visibility="public"
  3128. deprecated="not deprecated">
  3129. <param name="delSrc" type="boolean"/>
  3130. <param name="overwrite" type="boolean"/>
  3131. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3132. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3133. <exception name="IOException" type="java.io.IOException"/>
  3134. <doc>
  3135. <![CDATA[The src files are on the local disk. Add it to FS at
  3136. the given dst name.
  3137. delSrc indicates if the source should be removed]]>
  3138. </doc>
  3139. </method>
  3140. <method name="copyFromLocalFile"
  3141. abstract="false" native="false" synchronized="false"
  3142. static="false" final="false" visibility="public"
  3143. deprecated="not deprecated">
  3144. <param name="delSrc" type="boolean"/>
  3145. <param name="overwrite" type="boolean"/>
  3146. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3147. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3148. <exception name="IOException" type="java.io.IOException"/>
  3149. <doc>
  3150. <![CDATA[The src file is on the local disk. Add it to FS at
  3151. the given dst name.
  3152. delSrc indicates if the source should be removed]]>
  3153. </doc>
  3154. </method>
  3155. <method name="copyToLocalFile"
  3156. abstract="false" native="false" synchronized="false"
  3157. static="false" final="false" visibility="public"
  3158. deprecated="not deprecated">
  3159. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3160. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3161. <exception name="IOException" type="java.io.IOException"/>
  3162. <doc>
  3163. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3164. Copy it from FS control to the local dst name.]]>
  3165. </doc>
  3166. </method>
  3167. <method name="moveToLocalFile"
  3168. abstract="false" native="false" synchronized="false"
  3169. static="false" final="false" visibility="public"
  3170. deprecated="not deprecated">
  3171. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3172. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3173. <exception name="IOException" type="java.io.IOException"/>
  3174. <doc>
  3175. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3176. Copy it from FS control to the local dst name.
  3177. Remove the source afterwards]]>
  3178. </doc>
  3179. </method>
  3180. <method name="copyToLocalFile"
  3181. abstract="false" native="false" synchronized="false"
  3182. static="false" final="false" visibility="public"
  3183. deprecated="not deprecated">
  3184. <param name="delSrc" type="boolean"/>
  3185. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3186. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3187. <exception name="IOException" type="java.io.IOException"/>
  3188. <doc>
  3189. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3190. Copy it from FS control to the local dst name.
  3191. delSrc indicates if the src will be removed or not.]]>
  3192. </doc>
  3193. </method>
  3194. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3195. abstract="false" native="false" synchronized="false"
  3196. static="false" final="false" visibility="public"
  3197. deprecated="not deprecated">
  3198. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3199. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3200. <exception name="IOException" type="java.io.IOException"/>
  3201. <doc>
  3202. <![CDATA[Returns a local File that the user can write output to. The caller
  3203. provides both the eventual FS target name and the local working
  3204. file. If the FS is local, we write directly into the target. If
  3205. the FS is remote, we write into the tmp local area.]]>
  3206. </doc>
  3207. </method>
  3208. <method name="completeLocalOutput"
  3209. abstract="false" native="false" synchronized="false"
  3210. static="false" final="false" visibility="public"
  3211. deprecated="not deprecated">
  3212. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3213. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3214. <exception name="IOException" type="java.io.IOException"/>
  3215. <doc>
  3216. <![CDATA[Called when we're all done writing to the target. A local FS will
  3217. do nothing, because we've written to exactly the right place. A remote
  3218. FS will copy the contents of tmpLocalFile to the correct target at
  3219. fsOutputFile.]]>
  3220. </doc>
  3221. </method>
  3222. <method name="close"
  3223. abstract="false" native="false" synchronized="false"
  3224. static="false" final="false" visibility="public"
  3225. deprecated="not deprecated">
  3226. <exception name="IOException" type="java.io.IOException"/>
  3227. <doc>
  3228. <![CDATA[No more filesystem operations are needed. Will
  3229. release any held locks.]]>
  3230. </doc>
  3231. </method>
  3232. <method name="getUsed" return="long"
  3233. abstract="false" native="false" synchronized="false"
  3234. static="false" final="false" visibility="public"
  3235. deprecated="not deprecated">
  3236. <exception name="IOException" type="java.io.IOException"/>
  3237. <doc>
  3238. <![CDATA[Return the total size of all files in the filesystem.]]>
  3239. </doc>
  3240. </method>
  3241. <method name="getBlockSize" return="long"
  3242. abstract="false" native="false" synchronized="false"
  3243. static="false" final="false" visibility="public"
  3244. deprecated="Use getFileStatus() instead">
  3245. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3246. <exception name="IOException" type="java.io.IOException"/>
  3247. <doc>
  3248. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3249. </doc>
  3250. </method>
  3251. <method name="getDefaultBlockSize" return="long"
  3252. abstract="false" native="false" synchronized="false"
  3253. static="false" final="false" visibility="public"
  3254. deprecated="not deprecated">
  3255. <doc>
  3256. <![CDATA[Return the number of bytes that large input files should be optimally
  3257. be split into to minimize i/o time.]]>
  3258. </doc>
  3259. </method>
  3260. <method name="getDefaultReplication" return="short"
  3261. abstract="false" native="false" synchronized="false"
  3262. static="false" final="false" visibility="public"
  3263. deprecated="not deprecated">
  3264. <doc>
  3265. <![CDATA[Get the default replication.]]>
  3266. </doc>
  3267. </method>
  3268. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3269. abstract="true" native="false" synchronized="false"
  3270. static="false" final="false" visibility="public"
  3271. deprecated="not deprecated">
  3272. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3273. <exception name="IOException" type="java.io.IOException"/>
  3274. <doc>
  3275. <![CDATA[Return a file status object that represents the path.
  3276. @param f The path we want information from
  3277. @return a FileStatus object
  3278. @throws FileNotFoundException when the path does not exist;
  3279. IOException see specific implementation]]>
  3280. </doc>
  3281. </method>
  3282. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3283. abstract="false" native="false" synchronized="false"
  3284. static="false" final="false" visibility="public"
  3285. deprecated="not deprecated">
  3286. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3287. <exception name="IOException" type="java.io.IOException"/>
  3288. <doc>
  3289. <![CDATA[Get the checksum of a file.
  3290. @param f The file path
  3291. @return The file checksum. The default return value is null,
  3292. which indicates that no checksum algorithm is implemented
  3293. in the corresponding FileSystem.]]>
  3294. </doc>
  3295. </method>
  3296. <method name="setVerifyChecksum"
  3297. abstract="false" native="false" synchronized="false"
  3298. static="false" final="false" visibility="public"
  3299. deprecated="not deprecated">
  3300. <param name="verifyChecksum" type="boolean"/>
  3301. <doc>
  3302. <![CDATA[Set the verify checksum flag. This is only applicable if the
  3303. corresponding FileSystem supports checksum. By default doesn't do anything.
  3304. @param verifyChecksum]]>
  3305. </doc>
  3306. </method>
  3307. <method name="setPermission"
  3308. abstract="false" native="false" synchronized="false"
  3309. static="false" final="false" visibility="public"
  3310. deprecated="not deprecated">
  3311. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3312. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3313. <exception name="IOException" type="java.io.IOException"/>
  3314. <doc>
  3315. <![CDATA[Set permission of a path.
  3316. @param p
  3317. @param permission]]>
  3318. </doc>
  3319. </method>
  3320. <method name="setOwner"
  3321. abstract="false" native="false" synchronized="false"
  3322. static="false" final="false" visibility="public"
  3323. deprecated="not deprecated">
  3324. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3325. <param name="username" type="java.lang.String"/>
  3326. <param name="groupname" type="java.lang.String"/>
  3327. <exception name="IOException" type="java.io.IOException"/>
  3328. <doc>
  3329. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3330. The parameters username and groupname cannot both be null.
  3331. @param p The path
  3332. @param username If it is null, the original username remains unchanged.
  3333. @param groupname If it is null, the original groupname remains unchanged.]]>
  3334. </doc>
  3335. </method>
  3336. <method name="setTimes"
  3337. abstract="false" native="false" synchronized="false"
  3338. static="false" final="false" visibility="public"
  3339. deprecated="not deprecated">
  3340. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3341. <param name="mtime" type="long"/>
  3342. <param name="atime" type="long"/>
  3343. <exception name="IOException" type="java.io.IOException"/>
  3344. <doc>
  3345. <![CDATA[Set access time of a file
  3346. @param p The path
  3347. @param mtime Set the modification time of this file.
  3348. The number of milliseconds since Jan 1, 1970.
  3349. A value of -1 means that this call should not set modification time.
  3350. @param atime Set the access time of this file.
  3351. The number of milliseconds since Jan 1, 1970.
  3352. A value of -1 means that this call should not set access time.]]>
  3353. </doc>
  3354. </method>
  3355. <method name="getStatistics" return="java.util.Map"
  3356. abstract="false" native="false" synchronized="true"
  3357. static="true" final="false" visibility="public"
  3358. deprecated="use {@link #getAllStatistics} instead">
  3359. <doc>
  3360. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  3361. @return a Map having a key as URI scheme and value as Statistics object
  3362. @deprecated use {@link #getAllStatistics} instead]]>
  3363. </doc>
  3364. </method>
  3365. <method name="getAllStatistics" return="java.util.List"
  3366. abstract="false" native="false" synchronized="true"
  3367. static="true" final="false" visibility="public"
  3368. deprecated="not deprecated">
  3369. <doc>
  3370. <![CDATA[Return the FileSystem classes that have Statistics]]>
  3371. </doc>
  3372. </method>
  3373. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3374. abstract="false" native="false" synchronized="true"
  3375. static="true" final="false" visibility="public"
  3376. deprecated="not deprecated">
  3377. <param name="scheme" type="java.lang.String"/>
  3378. <param name="cls" type="java.lang.Class"/>
  3379. <doc>
  3380. <![CDATA[Get the statistics for a particular file system
  3381. @param cls the class to lookup
  3382. @return a statistics object]]>
  3383. </doc>
  3384. </method>
  3385. <method name="clearStatistics"
  3386. abstract="false" native="false" synchronized="true"
  3387. static="true" final="false" visibility="public"
  3388. deprecated="not deprecated">
  3389. </method>
  3390. <method name="printStatistics"
  3391. abstract="false" native="false" synchronized="true"
  3392. static="true" final="false" visibility="public"
  3393. deprecated="not deprecated">
  3394. <exception name="IOException" type="java.io.IOException"/>
  3395. </method>
  3396. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  3397. transient="false" volatile="false"
  3398. static="true" final="true" visibility="public"
  3399. deprecated="not deprecated">
  3400. </field>
  3401. <field name="LOG" type="org.apache.commons.logging.Log"
  3402. transient="false" volatile="false"
  3403. static="true" final="true" visibility="public"
  3404. deprecated="not deprecated">
  3405. </field>
  3406. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3407. transient="false" volatile="false"
  3408. static="false" final="false" visibility="protected"
  3409. deprecated="not deprecated">
  3410. <doc>
  3411. <![CDATA[The statistics for this file system.]]>
  3412. </doc>
  3413. </field>
  3414. <doc>
  3415. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3416. may be implemented as a distributed filesystem, or as a "local"
  3417. one that reflects the locally-connected disk. The local version
  3418. exists for small Hadoop instances and for testing.
  3419. <p>
  3420. All user code that may potentially use the Hadoop Distributed
  3421. File System should be written to use a FileSystem object. The
  3422. Hadoop DFS is a multi-machine system that appears as a single
  3423. disk. It's useful because of its fault tolerance and potentially
  3424. very large capacity.
  3425. <p>
  3426. The local implementation is {@link LocalFileSystem} and distributed
  3427. implementation is DistributedFileSystem.]]>
  3428. </doc>
  3429. </class>
  3430. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3431. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3432. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3433. abstract="false"
  3434. static="true" final="true" visibility="public"
  3435. deprecated="not deprecated">
  3436. <constructor name="FileSystem.Statistics" type="java.lang.String"
  3437. static="false" final="false" visibility="public"
  3438. deprecated="not deprecated">
  3439. </constructor>
  3440. <method name="incrementBytesRead"
  3441. abstract="false" native="false" synchronized="false"
  3442. static="false" final="false" visibility="public"
  3443. deprecated="not deprecated">
  3444. <param name="newBytes" type="long"/>
  3445. <doc>
  3446. <![CDATA[Increment the bytes read in the statistics
  3447. @param newBytes the additional bytes read]]>
  3448. </doc>
  3449. </method>
  3450. <method name="incrementBytesWritten"
  3451. abstract="false" native="false" synchronized="false"
  3452. static="false" final="false" visibility="public"
  3453. deprecated="not deprecated">
  3454. <param name="newBytes" type="long"/>
  3455. <doc>
  3456. <![CDATA[Increment the bytes written in the statistics
  3457. @param newBytes the additional bytes written]]>
  3458. </doc>
  3459. </method>
  3460. <method name="incrementReadOps"
  3461. abstract="false" native="false" synchronized="false"
  3462. static="false" final="false" visibility="public"
  3463. deprecated="not deprecated">
  3464. <param name="count" type="int"/>
  3465. <doc>
  3466. <![CDATA[Increment the number of read operations
  3467. @param count number of read operations]]>
  3468. </doc>
  3469. </method>
  3470. <method name="incrementLargeReadOps"
  3471. abstract="false" native="false" synchronized="false"
  3472. static="false" final="false" visibility="public"
  3473. deprecated="not deprecated">
  3474. <param name="count" type="int"/>
  3475. <doc>
  3476. <![CDATA[Increment the number of large read operations
  3477. @param count number of large read operations]]>
  3478. </doc>
  3479. </method>
  3480. <method name="incrementWriteOps"
  3481. abstract="false" native="false" synchronized="false"
  3482. static="false" final="false" visibility="public"
  3483. deprecated="not deprecated">
  3484. <param name="count" type="int"/>
  3485. <doc>
  3486. <![CDATA[Increment the number of write operations
  3487. @param count number of write operations]]>
  3488. </doc>
  3489. </method>
  3490. <method name="getBytesRead" return="long"
  3491. abstract="false" native="false" synchronized="false"
  3492. static="false" final="false" visibility="public"
  3493. deprecated="not deprecated">
  3494. <doc>
  3495. <![CDATA[Get the total number of bytes read
  3496. @return the number of bytes]]>
  3497. </doc>
  3498. </method>
  3499. <method name="getBytesWritten" return="long"
  3500. abstract="false" native="false" synchronized="false"
  3501. static="false" final="false" visibility="public"
  3502. deprecated="not deprecated">
  3503. <doc>
  3504. <![CDATA[Get the total number of bytes written
  3505. @return the number of bytes]]>
  3506. </doc>
  3507. </method>
  3508. <method name="getReadOps" return="int"
  3509. abstract="false" native="false" synchronized="false"
  3510. static="false" final="false" visibility="public"
  3511. deprecated="not deprecated">
  3512. <doc>
  3513. <![CDATA[Get the number of file system read operations such as list files
  3514. @return number of read operations]]>
  3515. </doc>
  3516. </method>
  3517. <method name="getLargeReadOps" return="int"
  3518. abstract="false" native="false" synchronized="false"
  3519. static="false" final="false" visibility="public"
  3520. deprecated="not deprecated">
  3521. <doc>
  3522. <![CDATA[Get the number of large file system read operations such as list files
  3523. under a large directory
  3524. @return number of large read operations]]>
  3525. </doc>
  3526. </method>
  3527. <method name="getWriteOps" return="int"
  3528. abstract="false" native="false" synchronized="false"
  3529. static="false" final="false" visibility="public"
  3530. deprecated="not deprecated">
  3531. <doc>
  3532. <![CDATA[Get the number of file system write operations such as create, append
  3533. rename etc.
  3534. @return number of write operations]]>
  3535. </doc>
  3536. </method>
  3537. <method name="toString" return="java.lang.String"
  3538. abstract="false" native="false" synchronized="false"
  3539. static="false" final="false" visibility="public"
  3540. deprecated="not deprecated">
  3541. </method>
  3542. <method name="reset"
  3543. abstract="false" native="false" synchronized="false"
  3544. static="false" final="false" visibility="public"
  3545. deprecated="not deprecated">
  3546. <doc>
  3547. <![CDATA[Reset the counts of bytes to 0.]]>
  3548. </doc>
  3549. </method>
  3550. <method name="getScheme" return="java.lang.String"
  3551. abstract="false" native="false" synchronized="false"
  3552. static="false" final="false" visibility="public"
  3553. deprecated="not deprecated">
  3554. <doc>
  3555. <![CDATA[Get the uri scheme associated with this statistics object.
  3556. @return the schema associated with this set of statistics]]>
  3557. </doc>
  3558. </method>
  3559. </class>
  3560. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3561. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3562. <class name="FileUtil" extends="java.lang.Object"
  3563. abstract="false"
  3564. static="false" final="false" visibility="public"
  3565. deprecated="not deprecated">
  3566. <constructor name="FileUtil"
  3567. static="false" final="false" visibility="public"
  3568. deprecated="not deprecated">
  3569. </constructor>
  3570. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3571. abstract="false" native="false" synchronized="false"
  3572. static="true" final="false" visibility="public"
  3573. deprecated="not deprecated">
  3574. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3575. <doc>
  3576. <![CDATA[convert an array of FileStatus to an array of Path
  3577. @param stats
  3578. an array of FileStatus objects
  3579. @return an array of paths corresponding to the input]]>
  3580. </doc>
  3581. </method>
  3582. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3583. abstract="false" native="false" synchronized="false"
  3584. static="true" final="false" visibility="public"
  3585. deprecated="not deprecated">
  3586. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3587. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3588. <doc>
  3589. <![CDATA[convert an array of FileStatus to an array of Path.
  3590. If stats if null, return path
  3591. @param stats
  3592. an array of FileStatus objects
  3593. @param path
  3594. default path to return in stats is null
  3595. @return an array of paths corresponding to the input]]>
  3596. </doc>
  3597. </method>
  3598. <method name="fullyDelete" return="boolean"
  3599. abstract="false" native="false" synchronized="false"
  3600. static="true" final="false" visibility="public"
  3601. deprecated="not deprecated">
  3602. <param name="dir" type="java.io.File"/>
  3603. <exception name="IOException" type="java.io.IOException"/>
  3604. <doc>
  3605. <![CDATA[Delete a directory and all its contents. If
  3606. we return false, the directory may be partially-deleted.]]>
  3607. </doc>
  3608. </method>
  3609. <method name="fullyDeleteContents" return="boolean"
  3610. abstract="false" native="false" synchronized="false"
  3611. static="true" final="false" visibility="public"
  3612. deprecated="not deprecated">
  3613. <param name="dir" type="java.io.File"/>
  3614. <exception name="IOException" type="java.io.IOException"/>
  3615. <doc>
  3616. <![CDATA[Delete the contents of a directory, not the directory itself. If
  3617. we return false, the directory may be partially-deleted.]]>
  3618. </doc>
  3619. </method>
  3620. <method name="fullyDelete"
  3621. abstract="false" native="false" synchronized="false"
  3622. static="true" final="false" visibility="public"
  3623. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  3624. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3625. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3626. <exception name="IOException" type="java.io.IOException"/>
  3627. <doc>
  3628. <![CDATA[Recursively delete a directory.
  3629. @param fs {@link FileSystem} on which the path is present
  3630. @param dir directory to recursively delete
  3631. @throws IOException
  3632. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  3633. </doc>
  3634. </method>
  3635. <method name="copy" return="boolean"
  3636. abstract="false" native="false" synchronized="false"
  3637. static="true" final="false" visibility="public"
  3638. deprecated="not deprecated">
  3639. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3640. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3641. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3642. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3643. <param name="deleteSource" type="boolean"/>
  3644. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3645. <exception name="IOException" type="java.io.IOException"/>
  3646. <doc>
  3647. <![CDATA[Copy files between FileSystems.]]>
  3648. </doc>
  3649. </method>
  3650. <method name="copy" return="boolean"
  3651. abstract="false" native="false" synchronized="false"
  3652. static="true" final="false" visibility="public"
  3653. deprecated="not deprecated">
  3654. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3655. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3656. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3657. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3658. <param name="deleteSource" type="boolean"/>
  3659. <param name="overwrite" type="boolean"/>
  3660. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3661. <exception name="IOException" type="java.io.IOException"/>
  3662. </method>
  3663. <method name="copy" return="boolean"
  3664. abstract="false" native="false" synchronized="false"
  3665. static="true" final="false" visibility="public"
  3666. deprecated="not deprecated">
  3667. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3668. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3669. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3670. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3671. <param name="deleteSource" type="boolean"/>
  3672. <param name="overwrite" type="boolean"/>
  3673. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3674. <exception name="IOException" type="java.io.IOException"/>
  3675. <doc>
  3676. <![CDATA[Copy files between FileSystems.]]>
  3677. </doc>
  3678. </method>
  3679. <method name="copyMerge" return="boolean"
  3680. abstract="false" native="false" synchronized="false"
  3681. static="true" final="false" visibility="public"
  3682. deprecated="not deprecated">
  3683. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3684. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  3685. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3686. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  3687. <param name="deleteSource" type="boolean"/>
  3688. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3689. <param name="addString" type="java.lang.String"/>
  3690. <exception name="IOException" type="java.io.IOException"/>
  3691. <doc>
  3692. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  3693. </doc>
  3694. </method>
  3695. <method name="copy" return="boolean"
  3696. abstract="false" native="false" synchronized="false"
  3697. static="true" final="false" visibility="public"
  3698. deprecated="not deprecated">
  3699. <param name="src" type="java.io.File"/>
  3700. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3701. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3702. <param name="deleteSource" type="boolean"/>
  3703. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3704. <exception name="IOException" type="java.io.IOException"/>
  3705. <doc>
  3706. <![CDATA[Copy local files to a FileSystem.]]>
  3707. </doc>
  3708. </method>
  3709. <method name="copy" return="boolean"
  3710. abstract="false" native="false" synchronized="false"
  3711. static="true" final="false" visibility="public"
  3712. deprecated="not deprecated">
  3713. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3714. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3715. <param name="dst" type="java.io.File"/>
  3716. <param name="deleteSource" type="boolean"/>
  3717. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3718. <exception name="IOException" type="java.io.IOException"/>
  3719. <doc>
  3720. <![CDATA[Copy FileSystem files to local files.]]>
  3721. </doc>
  3722. </method>
  3723. <method name="makeShellPath" return="java.lang.String"
  3724. abstract="false" native="false" synchronized="false"
  3725. static="true" final="false" visibility="public"
  3726. deprecated="not deprecated">
  3727. <param name="filename" type="java.lang.String"/>
  3728. <exception name="IOException" type="java.io.IOException"/>
  3729. <doc>
  3730. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3731. @param filename The filename to convert
  3732. @return The unix pathname
  3733. @throws IOException on windows, there can be problems with the subprocess]]>
  3734. </doc>
  3735. </method>
  3736. <method name="makeShellPath" return="java.lang.String"
  3737. abstract="false" native="false" synchronized="false"
  3738. static="true" final="false" visibility="public"
  3739. deprecated="not deprecated">
  3740. <param name="file" type="java.io.File"/>
  3741. <exception name="IOException" type="java.io.IOException"/>
  3742. <doc>
  3743. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3744. @param file The filename to convert
  3745. @return The unix pathname
  3746. @throws IOException on windows, there can be problems with the subprocess]]>
  3747. </doc>
  3748. </method>
  3749. <method name="makeShellPath" return="java.lang.String"
  3750. abstract="false" native="false" synchronized="false"
  3751. static="true" final="false" visibility="public"
  3752. deprecated="not deprecated">
  3753. <param name="file" type="java.io.File"/>
  3754. <param name="makeCanonicalPath" type="boolean"/>
  3755. <exception name="IOException" type="java.io.IOException"/>
  3756. <doc>
  3757. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3758. @param file The filename to convert
  3759. @param makeCanonicalPath
  3760. Whether to make canonical path for the file passed
  3761. @return The unix pathname
  3762. @throws IOException on windows, there can be problems with the subprocess]]>
  3763. </doc>
  3764. </method>
  3765. <method name="getDU" return="long"
  3766. abstract="false" native="false" synchronized="false"
  3767. static="true" final="false" visibility="public"
  3768. deprecated="not deprecated">
  3769. <param name="dir" type="java.io.File"/>
  3770. <doc>
  3771. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  3772. implementation.
  3773. @param dir
  3774. The input dir to get the disk space of this local dir
  3775. @return The total disk space of the input local directory]]>
  3776. </doc>
  3777. </method>
  3778. <method name="unZip"
  3779. abstract="false" native="false" synchronized="false"
  3780. static="true" final="false" visibility="public"
  3781. deprecated="not deprecated">
  3782. <param name="inFile" type="java.io.File"/>
  3783. <param name="unzipDir" type="java.io.File"/>
  3784. <exception name="IOException" type="java.io.IOException"/>
  3785. <doc>
  3786. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  3787. passed as the second parameter
  3788. @param inFile The zip file as input
  3789. @param unzipDir The unzip directory where to unzip the zip file.
  3790. @throws IOException]]>
  3791. </doc>
  3792. </method>
  3793. <method name="unTar"
  3794. abstract="false" native="false" synchronized="false"
  3795. static="true" final="false" visibility="public"
  3796. deprecated="not deprecated">
  3797. <param name="inFile" type="java.io.File"/>
  3798. <param name="untarDir" type="java.io.File"/>
  3799. <exception name="IOException" type="java.io.IOException"/>
  3800. <doc>
  3801. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  3802. passed as the second parameter
  3803. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  3804. @param inFile The tar file as input.
  3805. @param untarDir The untar directory where to untar the tar file.
  3806. @throws IOException]]>
  3807. </doc>
  3808. </method>
  3809. <method name="symLink" return="int"
  3810. abstract="false" native="false" synchronized="false"
  3811. static="true" final="false" visibility="public"
  3812. deprecated="not deprecated">
  3813. <param name="target" type="java.lang.String"/>
  3814. <param name="linkname" type="java.lang.String"/>
  3815. <exception name="IOException" type="java.io.IOException"/>
  3816. <doc>
  3817. <![CDATA[Create a soft link between a src and destination
  3818. only on a local disk. HDFS does not support this
  3819. @param target the target for symlink
  3820. @param linkname the symlink
  3821. @return value returned by the command]]>
  3822. </doc>
  3823. </method>
  3824. <method name="chmod" return="int"
  3825. abstract="false" native="false" synchronized="false"
  3826. static="true" final="false" visibility="public"
  3827. deprecated="not deprecated">
  3828. <param name="filename" type="java.lang.String"/>
  3829. <param name="perm" type="java.lang.String"/>
  3830. <exception name="IOException" type="java.io.IOException"/>
  3831. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  3832. <doc>
  3833. <![CDATA[Change the permissions on a filename.
  3834. @param filename the name of the file to change
  3835. @param perm the permission string
  3836. @return the exit code from the command
  3837. @throws IOException
  3838. @throws InterruptedException]]>
  3839. </doc>
  3840. </method>
  3841. <method name="chmod" return="int"
  3842. abstract="false" native="false" synchronized="false"
  3843. static="true" final="false" visibility="public"
  3844. deprecated="not deprecated">
  3845. <param name="filename" type="java.lang.String"/>
  3846. <param name="perm" type="java.lang.String"/>
  3847. <param name="recursive" type="boolean"/>
  3848. <exception name="IOException" type="java.io.IOException"/>
  3849. <doc>
  3850. <![CDATA[Change the permissions on a file / directory, recursively, if
  3851. needed.
  3852. @param filename name of the file whose permissions are to change
  3853. @param perm permission string
  3854. @param recursive true, if permissions should be changed recursively
  3855. @return the exit code from the command.
  3856. @throws IOException
  3857. @throws InterruptedException]]>
  3858. </doc>
  3859. </method>
  3860. <method name="setPermission"
  3861. abstract="false" native="false" synchronized="false"
  3862. static="true" final="false" visibility="public"
  3863. deprecated="not deprecated">
  3864. <param name="f" type="java.io.File"/>
  3865. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3866. <exception name="IOException" type="java.io.IOException"/>
  3867. <doc>
  3868. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  3869. of forking if group == other.
  3870. @param f the file to change
  3871. @param permission the new permissions
  3872. @throws IOException]]>
  3873. </doc>
  3874. </method>
  3875. <method name="createLocalTempFile" return="java.io.File"
  3876. abstract="false" native="false" synchronized="false"
  3877. static="true" final="true" visibility="public"
  3878. deprecated="not deprecated">
  3879. <param name="basefile" type="java.io.File"/>
  3880. <param name="prefix" type="java.lang.String"/>
  3881. <param name="isDeleteOnExit" type="boolean"/>
  3882. <exception name="IOException" type="java.io.IOException"/>
  3883. <doc>
  3884. <![CDATA[Create a tmp file for a base file.
  3885. @param basefile the base file of the tmp
  3886. @param prefix file name prefix of tmp
  3887. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  3888. @return a newly created tmp file
  3889. @exception IOException If a tmp file cannot created
  3890. @see java.io.File#createTempFile(String, String, File)
  3891. @see java.io.File#deleteOnExit()]]>
  3892. </doc>
  3893. </method>
  3894. <method name="replaceFile"
  3895. abstract="false" native="false" synchronized="false"
  3896. static="true" final="false" visibility="public"
  3897. deprecated="not deprecated">
  3898. <param name="src" type="java.io.File"/>
  3899. <param name="target" type="java.io.File"/>
  3900. <exception name="IOException" type="java.io.IOException"/>
  3901. <doc>
  3902. <![CDATA[Move the src file to the name specified by target.
  3903. @param src the source file
  3904. @param target the target file
  3905. @exception IOException If this operation fails]]>
  3906. </doc>
  3907. </method>
  3908. <method name="listFiles" return="java.io.File[]"
  3909. abstract="false" native="false" synchronized="false"
  3910. static="true" final="false" visibility="public"
  3911. deprecated="not deprecated">
  3912. <param name="dir" type="java.io.File"/>
  3913. <exception name="IOException" type="java.io.IOException"/>
  3914. <doc>
  3915. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  3916. when a dir is not a directory or for any I/O error. Instead of having
  3917. null check everywhere File#listFiles() is used, we will add utility API
  3918. to get around this problem. For the majority of cases where we prefer
  3919. an IOException to be thrown.
  3920. @param dir directory for which listing should be performed
  3921. @return list of files or empty list
  3922. @exception IOException for invalid directory or for a bad disk.]]>
  3923. </doc>
  3924. </method>
  3925. <method name="list" return="java.lang.String[]"
  3926. abstract="false" native="false" synchronized="false"
  3927. static="true" final="false" visibility="public"
  3928. deprecated="not deprecated">
  3929. <param name="dir" type="java.io.File"/>
  3930. <exception name="IOException" type="java.io.IOException"/>
  3931. <doc>
  3932. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  3933. when a dir is not a directory or for any I/O error. Instead of having
  3934. null check everywhere File#list() is used, we will add utility API
  3935. to get around this problem. For the majority of cases where we prefer
  3936. an IOException to be thrown.
  3937. @param dir directory for which listing should be performed
  3938. @return list of file names or empty string list
  3939. @exception IOException for invalid directory or for a bad disk.]]>
  3940. </doc>
  3941. </method>
  3942. <doc>
  3943. <![CDATA[A collection of file-processing util methods]]>
  3944. </doc>
  3945. </class>
  3946. <!-- end class org.apache.hadoop.fs.FileUtil -->
  3947. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  3948. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  3949. abstract="false"
  3950. static="false" final="false" visibility="public"
  3951. deprecated="not deprecated">
  3952. <constructor name="FilterFileSystem"
  3953. static="false" final="false" visibility="public"
  3954. deprecated="not deprecated">
  3955. </constructor>
  3956. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  3957. static="false" final="false" visibility="public"
  3958. deprecated="not deprecated">
  3959. </constructor>
  3960. <method name="initialize"
  3961. abstract="false" native="false" synchronized="false"
  3962. static="false" final="false" visibility="public"
  3963. deprecated="not deprecated">
  3964. <param name="name" type="java.net.URI"/>
  3965. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3966. <exception name="IOException" type="java.io.IOException"/>
  3967. <doc>
  3968. <![CDATA[Called after a new FileSystem instance is constructed.
  3969. @param name a uri whose authority section names the host, port, etc.
  3970. for this FileSystem
  3971. @param conf the configuration]]>
  3972. </doc>
  3973. </method>
  3974. <method name="getUri" return="java.net.URI"
  3975. abstract="false" native="false" synchronized="false"
  3976. static="false" final="false" visibility="public"
  3977. deprecated="not deprecated">
  3978. <doc>
  3979. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  3980. </doc>
  3981. </method>
  3982. <method name="getCanonicalServiceName" return="java.lang.String"
  3983. abstract="false" native="false" synchronized="false"
  3984. static="false" final="false" visibility="public"
  3985. deprecated="not deprecated">
  3986. </method>
  3987. <method name="getName" return="java.lang.String"
  3988. abstract="false" native="false" synchronized="false"
  3989. static="false" final="false" visibility="public"
  3990. deprecated="call #getUri() instead.">
  3991. <doc>
  3992. <![CDATA[@deprecated call #getUri() instead.]]>
  3993. </doc>
  3994. </method>
  3995. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  3996. abstract="false" native="false" synchronized="false"
  3997. static="false" final="false" visibility="public"
  3998. deprecated="not deprecated">
  3999. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4000. <doc>
  4001. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  4002. </doc>
  4003. </method>
  4004. <method name="checkPath"
  4005. abstract="false" native="false" synchronized="false"
  4006. static="false" final="false" visibility="protected"
  4007. deprecated="not deprecated">
  4008. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4009. <doc>
  4010. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  4011. </doc>
  4012. </method>
  4013. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4014. abstract="false" native="false" synchronized="false"
  4015. static="false" final="false" visibility="public"
  4016. deprecated="not deprecated">
  4017. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4018. <param name="start" type="long"/>
  4019. <param name="len" type="long"/>
  4020. <exception name="IOException" type="java.io.IOException"/>
  4021. </method>
  4022. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4023. abstract="false" native="false" synchronized="false"
  4024. static="false" final="false" visibility="public"
  4025. deprecated="not deprecated">
  4026. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4027. <param name="bufferSize" type="int"/>
  4028. <exception name="IOException" type="java.io.IOException"/>
  4029. <doc>
  4030. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4031. @param f the file name to open
  4032. @param bufferSize the size of the buffer to be used.]]>
  4033. </doc>
  4034. </method>
  4035. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4036. abstract="false" native="false" synchronized="false"
  4037. static="false" final="false" visibility="public"
  4038. deprecated="not deprecated">
  4039. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4040. <param name="bufferSize" type="int"/>
  4041. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4042. <exception name="IOException" type="java.io.IOException"/>
  4043. <doc>
  4044. <![CDATA[{@inheritDoc}]]>
  4045. </doc>
  4046. </method>
  4047. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4048. abstract="false" native="false" synchronized="false"
  4049. static="false" final="false" visibility="public"
  4050. deprecated="not deprecated">
  4051. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4052. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4053. <param name="overwrite" type="boolean"/>
  4054. <param name="bufferSize" type="int"/>
  4055. <param name="replication" type="short"/>
  4056. <param name="blockSize" type="long"/>
  4057. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4058. <exception name="IOException" type="java.io.IOException"/>
  4059. <doc>
  4060. <![CDATA[{@inheritDoc}]]>
  4061. </doc>
  4062. </method>
  4063. <method name="setReplication" return="boolean"
  4064. abstract="false" native="false" synchronized="false"
  4065. static="false" final="false" visibility="public"
  4066. deprecated="not deprecated">
  4067. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4068. <param name="replication" type="short"/>
  4069. <exception name="IOException" type="java.io.IOException"/>
  4070. <doc>
  4071. <![CDATA[Set replication for an existing file.
  4072. @param src file name
  4073. @param replication new replication
  4074. @throws IOException
  4075. @return true if successful;
  4076. false if file does not exist or is a directory]]>
  4077. </doc>
  4078. </method>
  4079. <method name="rename" return="boolean"
  4080. abstract="false" native="false" synchronized="false"
  4081. static="false" final="false" visibility="public"
  4082. deprecated="not deprecated">
  4083. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4084. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4085. <exception name="IOException" type="java.io.IOException"/>
  4086. <doc>
  4087. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4088. or remote DFS.]]>
  4089. </doc>
  4090. </method>
  4091. <method name="delete" return="boolean"
  4092. abstract="false" native="false" synchronized="false"
  4093. static="false" final="false" visibility="public"
  4094. deprecated="not deprecated">
  4095. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4096. <exception name="IOException" type="java.io.IOException"/>
  4097. <doc>
  4098. <![CDATA[Delete a file]]>
  4099. </doc>
  4100. </method>
  4101. <method name="delete" return="boolean"
  4102. abstract="false" native="false" synchronized="false"
  4103. static="false" final="false" visibility="public"
  4104. deprecated="not deprecated">
  4105. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4106. <param name="recursive" type="boolean"/>
  4107. <exception name="IOException" type="java.io.IOException"/>
  4108. <doc>
  4109. <![CDATA[Delete a file]]>
  4110. </doc>
  4111. </method>
  4112. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4113. abstract="false" native="false" synchronized="false"
  4114. static="false" final="false" visibility="public"
  4115. deprecated="not deprecated">
  4116. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4117. <exception name="IOException" type="java.io.IOException"/>
  4118. <doc>
  4119. <![CDATA[List files in a directory.]]>
  4120. </doc>
  4121. </method>
  4122. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4123. abstract="false" native="false" synchronized="false"
  4124. static="false" final="false" visibility="public"
  4125. deprecated="not deprecated">
  4126. </method>
  4127. <method name="setWorkingDirectory"
  4128. abstract="false" native="false" synchronized="false"
  4129. static="false" final="false" visibility="public"
  4130. deprecated="not deprecated">
  4131. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4132. <doc>
  4133. <![CDATA[Set the current working directory for the given file system. All relative
  4134. paths will be resolved relative to it.
  4135. @param newDir]]>
  4136. </doc>
  4137. </method>
  4138. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4139. abstract="false" native="false" synchronized="false"
  4140. static="false" final="false" visibility="public"
  4141. deprecated="not deprecated">
  4142. <doc>
  4143. <![CDATA[Get the current working directory for the given file system
  4144. @return the directory pathname]]>
  4145. </doc>
  4146. </method>
  4147. <method name="mkdirs" return="boolean"
  4148. abstract="false" native="false" synchronized="false"
  4149. static="false" final="false" visibility="public"
  4150. deprecated="not deprecated">
  4151. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4152. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4153. <exception name="IOException" type="java.io.IOException"/>
  4154. <doc>
  4155. <![CDATA[{@inheritDoc}]]>
  4156. </doc>
  4157. </method>
  4158. <method name="copyFromLocalFile"
  4159. abstract="false" native="false" synchronized="false"
  4160. static="false" final="false" visibility="public"
  4161. deprecated="not deprecated">
  4162. <param name="delSrc" type="boolean"/>
  4163. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4164. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4165. <exception name="IOException" type="java.io.IOException"/>
  4166. <doc>
  4167. <![CDATA[The src file is on the local disk. Add it to FS at
  4168. the given dst name.
  4169. delSrc indicates if the source should be removed]]>
  4170. </doc>
  4171. </method>
  4172. <method name="copyToLocalFile"
  4173. abstract="false" native="false" synchronized="false"
  4174. static="false" final="false" visibility="public"
  4175. deprecated="not deprecated">
  4176. <param name="delSrc" type="boolean"/>
  4177. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4178. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4179. <exception name="IOException" type="java.io.IOException"/>
  4180. <doc>
  4181. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4182. Copy it from FS control to the local dst name.
  4183. delSrc indicates if the src will be removed or not.]]>
  4184. </doc>
  4185. </method>
  4186. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4187. abstract="false" native="false" synchronized="false"
  4188. static="false" final="false" visibility="public"
  4189. deprecated="not deprecated">
  4190. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4191. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4192. <exception name="IOException" type="java.io.IOException"/>
  4193. <doc>
  4194. <![CDATA[Returns a local File that the user can write output to. The caller
  4195. provides both the eventual FS target name and the local working
  4196. file. If the FS is local, we write directly into the target. If
  4197. the FS is remote, we write into the tmp local area.]]>
  4198. </doc>
  4199. </method>
  4200. <method name="completeLocalOutput"
  4201. abstract="false" native="false" synchronized="false"
  4202. static="false" final="false" visibility="public"
  4203. deprecated="not deprecated">
  4204. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4205. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4206. <exception name="IOException" type="java.io.IOException"/>
  4207. <doc>
  4208. <![CDATA[Called when we're all done writing to the target. A local FS will
  4209. do nothing, because we've written to exactly the right place. A remote
  4210. FS will copy the contents of tmpLocalFile to the correct target at
  4211. fsOutputFile.]]>
  4212. </doc>
  4213. </method>
  4214. <method name="getDefaultBlockSize" return="long"
  4215. abstract="false" native="false" synchronized="false"
  4216. static="false" final="false" visibility="public"
  4217. deprecated="not deprecated">
  4218. <doc>
  4219. <![CDATA[Return the number of bytes that large input files should be optimally
  4220. be split into to minimize i/o time.]]>
  4221. </doc>
  4222. </method>
  4223. <method name="getDefaultReplication" return="short"
  4224. abstract="false" native="false" synchronized="false"
  4225. static="false" final="false" visibility="public"
  4226. deprecated="not deprecated">
  4227. <doc>
  4228. <![CDATA[Get the default replication.]]>
  4229. </doc>
  4230. </method>
  4231. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4232. abstract="false" native="false" synchronized="false"
  4233. static="false" final="false" visibility="public"
  4234. deprecated="not deprecated">
  4235. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4236. <exception name="IOException" type="java.io.IOException"/>
  4237. <doc>
  4238. <![CDATA[Get file status.]]>
  4239. </doc>
  4240. </method>
  4241. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  4242. abstract="false" native="false" synchronized="false"
  4243. static="false" final="false" visibility="public"
  4244. deprecated="not deprecated">
  4245. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4246. <exception name="IOException" type="java.io.IOException"/>
  4247. <doc>
  4248. <![CDATA[{@inheritDoc}]]>
  4249. </doc>
  4250. </method>
  4251. <method name="setVerifyChecksum"
  4252. abstract="false" native="false" synchronized="false"
  4253. static="false" final="false" visibility="public"
  4254. deprecated="not deprecated">
  4255. <param name="verifyChecksum" type="boolean"/>
  4256. <doc>
  4257. <![CDATA[{@inheritDoc}]]>
  4258. </doc>
  4259. </method>
  4260. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  4261. abstract="false" native="false" synchronized="false"
  4262. static="false" final="false" visibility="public"
  4263. deprecated="not deprecated">
  4264. </method>
  4265. <method name="close"
  4266. abstract="false" native="false" synchronized="false"
  4267. static="false" final="false" visibility="public"
  4268. deprecated="not deprecated">
  4269. <exception name="IOException" type="java.io.IOException"/>
  4270. </method>
  4271. <method name="setOwner"
  4272. abstract="false" native="false" synchronized="false"
  4273. static="false" final="false" visibility="public"
  4274. deprecated="not deprecated">
  4275. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4276. <param name="username" type="java.lang.String"/>
  4277. <param name="groupname" type="java.lang.String"/>
  4278. <exception name="IOException" type="java.io.IOException"/>
  4279. <doc>
  4280. <![CDATA[{@inheritDoc}]]>
  4281. </doc>
  4282. </method>
  4283. <method name="setPermission"
  4284. abstract="false" native="false" synchronized="false"
  4285. static="false" final="false" visibility="public"
  4286. deprecated="not deprecated">
  4287. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4288. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4289. <exception name="IOException" type="java.io.IOException"/>
  4290. <doc>
  4291. <![CDATA[{@inheritDoc}]]>
  4292. </doc>
  4293. </method>
  4294. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4295. transient="false" volatile="false"
  4296. static="false" final="false" visibility="protected"
  4297. deprecated="not deprecated">
  4298. </field>
  4299. <doc>
  4300. <![CDATA[A <code>FilterFileSystem</code> contains
  4301. some other file system, which it uses as
  4302. its basic file system, possibly transforming
  4303. the data along the way or providing additional
  4304. functionality. The class <code>FilterFileSystem</code>
  4305. itself simply overrides all methods of
  4306. <code>FileSystem</code> with versions that
  4307. pass all requests to the contained file
  4308. system. Subclasses of <code>FilterFileSystem</code>
  4309. may further override some of these methods
  4310. and may also provide additional methods
  4311. and fields.]]>
  4312. </doc>
  4313. </class>
  4314. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  4315. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  4316. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  4317. abstract="false"
  4318. static="false" final="false" visibility="public"
  4319. deprecated="not deprecated">
  4320. <implements name="org.apache.hadoop.fs.Seekable"/>
  4321. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4322. <implements name="java.io.Closeable"/>
  4323. <constructor name="FSDataInputStream" type="java.io.InputStream"
  4324. static="false" final="false" visibility="public"
  4325. deprecated="not deprecated">
  4326. <exception name="IOException" type="java.io.IOException"/>
  4327. </constructor>
  4328. <method name="seek"
  4329. abstract="false" native="false" synchronized="true"
  4330. static="false" final="false" visibility="public"
  4331. deprecated="not deprecated">
  4332. <param name="desired" type="long"/>
  4333. <exception name="IOException" type="java.io.IOException"/>
  4334. </method>
  4335. <method name="getPos" return="long"
  4336. abstract="false" native="false" synchronized="false"
  4337. static="false" final="false" visibility="public"
  4338. deprecated="not deprecated">
  4339. <exception name="IOException" type="java.io.IOException"/>
  4340. </method>
  4341. <method name="read" return="int"
  4342. abstract="false" native="false" synchronized="false"
  4343. static="false" final="false" visibility="public"
  4344. deprecated="not deprecated">
  4345. <param name="position" type="long"/>
  4346. <param name="buffer" type="byte[]"/>
  4347. <param name="offset" type="int"/>
  4348. <param name="length" type="int"/>
  4349. <exception name="IOException" type="java.io.IOException"/>
  4350. </method>
  4351. <method name="readFully"
  4352. abstract="false" native="false" synchronized="false"
  4353. static="false" final="false" visibility="public"
  4354. deprecated="not deprecated">
  4355. <param name="position" type="long"/>
  4356. <param name="buffer" type="byte[]"/>
  4357. <param name="offset" type="int"/>
  4358. <param name="length" type="int"/>
  4359. <exception name="IOException" type="java.io.IOException"/>
  4360. </method>
  4361. <method name="readFully"
  4362. abstract="false" native="false" synchronized="false"
  4363. static="false" final="false" visibility="public"
  4364. deprecated="not deprecated">
  4365. <param name="position" type="long"/>
  4366. <param name="buffer" type="byte[]"/>
  4367. <exception name="IOException" type="java.io.IOException"/>
  4368. </method>
  4369. <method name="seekToNewSource" return="boolean"
  4370. abstract="false" native="false" synchronized="false"
  4371. static="false" final="false" visibility="public"
  4372. deprecated="not deprecated">
  4373. <param name="targetPos" type="long"/>
  4374. <exception name="IOException" type="java.io.IOException"/>
  4375. </method>
  4376. <doc>
  4377. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4378. and buffers input through a {@link BufferedInputStream}.]]>
  4379. </doc>
  4380. </class>
  4381. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4382. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4383. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4384. abstract="false"
  4385. static="false" final="false" visibility="public"
  4386. deprecated="not deprecated">
  4387. <implements name="org.apache.hadoop.fs.Syncable"/>
  4388. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4389. static="false" final="false" visibility="public"
  4390. deprecated="not deprecated">
  4391. <exception name="IOException" type="java.io.IOException"/>
  4392. </constructor>
  4393. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4394. static="false" final="false" visibility="public"
  4395. deprecated="not deprecated">
  4396. <exception name="IOException" type="java.io.IOException"/>
  4397. </constructor>
  4398. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  4399. static="false" final="false" visibility="public"
  4400. deprecated="not deprecated">
  4401. <exception name="IOException" type="java.io.IOException"/>
  4402. </constructor>
  4403. <method name="getPos" return="long"
  4404. abstract="false" native="false" synchronized="false"
  4405. static="false" final="false" visibility="public"
  4406. deprecated="not deprecated">
  4407. <exception name="IOException" type="java.io.IOException"/>
  4408. </method>
  4409. <method name="close"
  4410. abstract="false" native="false" synchronized="false"
  4411. static="false" final="false" visibility="public"
  4412. deprecated="not deprecated">
  4413. <exception name="IOException" type="java.io.IOException"/>
  4414. </method>
  4415. <method name="getWrappedStream" return="java.io.OutputStream"
  4416. abstract="false" native="false" synchronized="false"
  4417. static="false" final="false" visibility="public"
  4418. deprecated="not deprecated">
  4419. </method>
  4420. <method name="sync"
  4421. abstract="false" native="false" synchronized="false"
  4422. static="false" final="false" visibility="public"
  4423. deprecated="not deprecated">
  4424. <exception name="IOException" type="java.io.IOException"/>
  4425. <doc>
  4426. <![CDATA[{@inheritDoc}]]>
  4427. </doc>
  4428. </method>
  4429. <doc>
  4430. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4431. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4432. file.]]>
  4433. </doc>
  4434. </class>
  4435. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4436. <!-- start class org.apache.hadoop.fs.FSError -->
  4437. <class name="FSError" extends="java.lang.Error"
  4438. abstract="false"
  4439. static="false" final="false" visibility="public"
  4440. deprecated="not deprecated">
  4441. <doc>
  4442. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4443. in the native filesystem.]]>
  4444. </doc>
  4445. </class>
  4446. <!-- end class org.apache.hadoop.fs.FSError -->
  4447. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4448. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4449. abstract="true"
  4450. static="false" final="false" visibility="public"
  4451. deprecated="not deprecated">
  4452. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4453. static="false" final="false" visibility="protected"
  4454. deprecated="not deprecated">
  4455. <doc>
  4456. <![CDATA[Constructor
  4457. @param file The name of the file to be read
  4458. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4459. </doc>
  4460. </constructor>
  4461. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4462. static="false" final="false" visibility="protected"
  4463. deprecated="not deprecated">
  4464. <doc>
  4465. <![CDATA[Constructor
  4466. @param file The name of the file to be read
  4467. @param numOfRetries Number of read retries when ChecksumError occurs
  4468. @param sum the type of Checksum engine
  4469. @param chunkSize maximun chunk size
  4470. @param checksumSize the number byte of each checksum]]>
  4471. </doc>
  4472. </constructor>
  4473. <method name="readChunk" return="int"
  4474. abstract="true" native="false" synchronized="false"
  4475. static="false" final="false" visibility="protected"
  4476. deprecated="not deprecated">
  4477. <param name="pos" type="long"/>
  4478. <param name="buf" type="byte[]"/>
  4479. <param name="offset" type="int"/>
  4480. <param name="len" type="int"/>
  4481. <param name="checksum" type="byte[]"/>
  4482. <exception name="IOException" type="java.io.IOException"/>
  4483. <doc>
  4484. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4485. and checksum into <code>checksum</code>.
  4486. The method is used for implementing read, therefore, it should be optimized
  4487. for sequential reading
  4488. @param pos chunkPos
  4489. @param buf desitination buffer
  4490. @param offset offset in buf at which to store data
  4491. @param len maximun number of bytes to read
  4492. @return number of bytes read]]>
  4493. </doc>
  4494. </method>
  4495. <method name="getChunkPosition" return="long"
  4496. abstract="true" native="false" synchronized="false"
  4497. static="false" final="false" visibility="protected"
  4498. deprecated="not deprecated">
  4499. <param name="pos" type="long"/>
  4500. <doc>
  4501. <![CDATA[Return position of beginning of chunk containing pos.
  4502. @param pos a postion in the file
  4503. @return the starting position of the chunk which contains the byte]]>
  4504. </doc>
  4505. </method>
  4506. <method name="needChecksum" return="boolean"
  4507. abstract="false" native="false" synchronized="true"
  4508. static="false" final="false" visibility="protected"
  4509. deprecated="not deprecated">
  4510. <doc>
  4511. <![CDATA[Return true if there is a need for checksum verification]]>
  4512. </doc>
  4513. </method>
  4514. <method name="read" return="int"
  4515. abstract="false" native="false" synchronized="true"
  4516. static="false" final="false" visibility="public"
  4517. deprecated="not deprecated">
  4518. <exception name="IOException" type="java.io.IOException"/>
  4519. <doc>
  4520. <![CDATA[Read one checksum-verified byte
  4521. @return the next byte of data, or <code>-1</code> if the end of the
  4522. stream is reached.
  4523. @exception IOException if an I/O error occurs.]]>
  4524. </doc>
  4525. </method>
  4526. <method name="read" return="int"
  4527. abstract="false" native="false" synchronized="true"
  4528. static="false" final="false" visibility="public"
  4529. deprecated="not deprecated">
  4530. <param name="b" type="byte[]"/>
  4531. <param name="off" type="int"/>
  4532. <param name="len" type="int"/>
  4533. <exception name="IOException" type="java.io.IOException"/>
  4534. <doc>
  4535. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4536. the specified byte array, starting at the given offset.
  4537. <p> This method implements the general contract of the corresponding
  4538. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4539. the <code>{@link InputStream}</code> class. As an additional
  4540. convenience, it attempts to read as many bytes as possible by repeatedly
  4541. invoking the <code>read</code> method of the underlying stream. This
  4542. iterated <code>read</code> continues until one of the following
  4543. conditions becomes true: <ul>
  4544. <li> The specified number of bytes have been read,
  4545. <li> The <code>read</code> method of the underlying stream returns
  4546. <code>-1</code>, indicating end-of-file.
  4547. </ul> If the first <code>read</code> on the underlying stream returns
  4548. <code>-1</code> to indicate end-of-file then this method returns
  4549. <code>-1</code>. Otherwise this method returns the number of bytes
  4550. actually read.
  4551. @param b destination buffer.
  4552. @param off offset at which to start storing bytes.
  4553. @param len maximum number of bytes to read.
  4554. @return the number of bytes read, or <code>-1</code> if the end of
  4555. the stream has been reached.
  4556. @exception IOException if an I/O error occurs.
  4557. ChecksumException if any checksum error occurs]]>
  4558. </doc>
  4559. </method>
  4560. <method name="checksum2long" return="long"
  4561. abstract="false" native="false" synchronized="false"
  4562. static="true" final="false" visibility="public"
  4563. deprecated="not deprecated">
  4564. <param name="checksum" type="byte[]"/>
  4565. <doc>
  4566. <![CDATA[Convert a checksum byte array to a long]]>
  4567. </doc>
  4568. </method>
  4569. <method name="getPos" return="long"
  4570. abstract="false" native="false" synchronized="true"
  4571. static="false" final="false" visibility="public"
  4572. deprecated="not deprecated">
  4573. <exception name="IOException" type="java.io.IOException"/>
  4574. </method>
  4575. <method name="available" return="int"
  4576. abstract="false" native="false" synchronized="true"
  4577. static="false" final="false" visibility="public"
  4578. deprecated="not deprecated">
  4579. <exception name="IOException" type="java.io.IOException"/>
  4580. </method>
  4581. <method name="skip" return="long"
  4582. abstract="false" native="false" synchronized="true"
  4583. static="false" final="false" visibility="public"
  4584. deprecated="not deprecated">
  4585. <param name="n" type="long"/>
  4586. <exception name="IOException" type="java.io.IOException"/>
  4587. <doc>
  4588. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4589. input stream.
  4590. <p>This method may skip more bytes than are remaining in the backing
  4591. file. This produces no exception and the number of bytes skipped
  4592. may include some number of bytes that were beyond the EOF of the
  4593. backing file. Attempting to read from the stream after skipping past
  4594. the end will result in -1 indicating the end of the file.
  4595. <p>If <code>n</code> is negative, no bytes are skipped.
  4596. @param n the number of bytes to be skipped.
  4597. @return the actual number of bytes skipped.
  4598. @exception IOException if an I/O error occurs.
  4599. ChecksumException if the chunk to skip to is corrupted]]>
  4600. </doc>
  4601. </method>
  4602. <method name="seek"
  4603. abstract="false" native="false" synchronized="true"
  4604. static="false" final="false" visibility="public"
  4605. deprecated="not deprecated">
  4606. <param name="pos" type="long"/>
  4607. <exception name="IOException" type="java.io.IOException"/>
  4608. <doc>
  4609. <![CDATA[Seek to the given position in the stream.
  4610. The next read() will be from that position.
  4611. <p>This method may seek past the end of the file.
  4612. This produces no exception and an attempt to read from
  4613. the stream will result in -1 indicating the end of the file.
  4614. @param pos the postion to seek to.
  4615. @exception IOException if an I/O error occurs.
  4616. ChecksumException if the chunk to seek to is corrupted]]>
  4617. </doc>
  4618. </method>
  4619. <method name="readFully" return="int"
  4620. abstract="false" native="false" synchronized="false"
  4621. static="true" final="false" visibility="protected"
  4622. deprecated="not deprecated">
  4623. <param name="stm" type="java.io.InputStream"/>
  4624. <param name="buf" type="byte[]"/>
  4625. <param name="offset" type="int"/>
  4626. <param name="len" type="int"/>
  4627. <exception name="IOException" type="java.io.IOException"/>
  4628. <doc>
  4629. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4630. <code>stm</code>
  4631. @param stm an input stream
  4632. @param buf destiniation buffer
  4633. @param offset offset at which to store data
  4634. @param len number of bytes to read
  4635. @return actual number of bytes read
  4636. @throws IOException if there is any IO error]]>
  4637. </doc>
  4638. </method>
  4639. <method name="set"
  4640. abstract="false" native="false" synchronized="true"
  4641. static="false" final="true" visibility="protected"
  4642. deprecated="not deprecated">
  4643. <param name="verifyChecksum" type="boolean"/>
  4644. <param name="sum" type="java.util.zip.Checksum"/>
  4645. <param name="maxChunkSize" type="int"/>
  4646. <param name="checksumSize" type="int"/>
  4647. <doc>
  4648. <![CDATA[Set the checksum related parameters
  4649. @param verifyChecksum whether to verify checksum
  4650. @param sum which type of checksum to use
  4651. @param maxChunkSize maximun chunk size
  4652. @param checksumSize checksum size]]>
  4653. </doc>
  4654. </method>
  4655. <method name="markSupported" return="boolean"
  4656. abstract="false" native="false" synchronized="false"
  4657. static="false" final="true" visibility="public"
  4658. deprecated="not deprecated">
  4659. </method>
  4660. <method name="mark"
  4661. abstract="false" native="false" synchronized="false"
  4662. static="false" final="true" visibility="public"
  4663. deprecated="not deprecated">
  4664. <param name="readlimit" type="int"/>
  4665. </method>
  4666. <method name="reset"
  4667. abstract="false" native="false" synchronized="false"
  4668. static="false" final="true" visibility="public"
  4669. deprecated="not deprecated">
  4670. <exception name="IOException" type="java.io.IOException"/>
  4671. </method>
  4672. <field name="LOG" type="org.apache.commons.logging.Log"
  4673. transient="false" volatile="false"
  4674. static="true" final="true" visibility="public"
  4675. deprecated="not deprecated">
  4676. </field>
  4677. <field name="file" type="org.apache.hadoop.fs.Path"
  4678. transient="false" volatile="false"
  4679. static="false" final="false" visibility="protected"
  4680. deprecated="not deprecated">
  4681. <doc>
  4682. <![CDATA[The file name from which data is read from]]>
  4683. </doc>
  4684. </field>
  4685. <doc>
  4686. <![CDATA[This is a generic input stream for verifying checksums for
  4687. data before it is read by a user.]]>
  4688. </doc>
  4689. </class>
  4690. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  4691. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  4692. <class name="FSInputStream" extends="java.io.InputStream"
  4693. abstract="true"
  4694. static="false" final="false" visibility="public"
  4695. deprecated="not deprecated">
  4696. <implements name="org.apache.hadoop.fs.Seekable"/>
  4697. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4698. <constructor name="FSInputStream"
  4699. static="false" final="false" visibility="public"
  4700. deprecated="not deprecated">
  4701. </constructor>
  4702. <method name="seek"
  4703. abstract="true" native="false" synchronized="false"
  4704. static="false" final="false" visibility="public"
  4705. deprecated="not deprecated">
  4706. <param name="pos" type="long"/>
  4707. <exception name="IOException" type="java.io.IOException"/>
  4708. <doc>
  4709. <![CDATA[Seek to the given offset from the start of the file.
  4710. The next read() will be from that location. Can't
  4711. seek past the end of the file.]]>
  4712. </doc>
  4713. </method>
  4714. <method name="getPos" return="long"
  4715. abstract="true" native="false" synchronized="false"
  4716. static="false" final="false" visibility="public"
  4717. deprecated="not deprecated">
  4718. <exception name="IOException" type="java.io.IOException"/>
  4719. <doc>
  4720. <![CDATA[Return the current offset from the start of the file]]>
  4721. </doc>
  4722. </method>
  4723. <method name="seekToNewSource" return="boolean"
  4724. abstract="true" native="false" synchronized="false"
  4725. static="false" final="false" visibility="public"
  4726. deprecated="not deprecated">
  4727. <param name="targetPos" type="long"/>
  4728. <exception name="IOException" type="java.io.IOException"/>
  4729. <doc>
  4730. <![CDATA[Seeks a different copy of the data. Returns true if
  4731. found a new source, false otherwise.]]>
  4732. </doc>
  4733. </method>
  4734. <method name="read" return="int"
  4735. abstract="false" native="false" synchronized="false"
  4736. static="false" final="false" visibility="public"
  4737. deprecated="not deprecated">
  4738. <param name="position" type="long"/>
  4739. <param name="buffer" type="byte[]"/>
  4740. <param name="offset" type="int"/>
  4741. <param name="length" type="int"/>
  4742. <exception name="IOException" type="java.io.IOException"/>
  4743. </method>
  4744. <method name="readFully"
  4745. abstract="false" native="false" synchronized="false"
  4746. static="false" final="false" visibility="public"
  4747. deprecated="not deprecated">
  4748. <param name="position" type="long"/>
  4749. <param name="buffer" type="byte[]"/>
  4750. <param name="offset" type="int"/>
  4751. <param name="length" type="int"/>
  4752. <exception name="IOException" type="java.io.IOException"/>
  4753. </method>
  4754. <method name="readFully"
  4755. abstract="false" native="false" synchronized="false"
  4756. static="false" final="false" visibility="public"
  4757. deprecated="not deprecated">
  4758. <param name="position" type="long"/>
  4759. <param name="buffer" type="byte[]"/>
  4760. <exception name="IOException" type="java.io.IOException"/>
  4761. </method>
  4762. <doc>
  4763. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  4764. of RAF-style seek ability.]]>
  4765. </doc>
  4766. </class>
  4767. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  4768. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  4769. <class name="FSOutputSummer" extends="java.io.OutputStream"
  4770. abstract="true"
  4771. static="false" final="false" visibility="public"
  4772. deprecated="not deprecated">
  4773. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  4774. static="false" final="false" visibility="protected"
  4775. deprecated="not deprecated">
  4776. </constructor>
  4777. <method name="writeChunk"
  4778. abstract="true" native="false" synchronized="false"
  4779. static="false" final="false" visibility="protected"
  4780. deprecated="not deprecated">
  4781. <param name="b" type="byte[]"/>
  4782. <param name="offset" type="int"/>
  4783. <param name="len" type="int"/>
  4784. <param name="checksum" type="byte[]"/>
  4785. <exception name="IOException" type="java.io.IOException"/>
  4786. </method>
  4787. <method name="write"
  4788. abstract="false" native="false" synchronized="true"
  4789. static="false" final="false" visibility="public"
  4790. deprecated="not deprecated">
  4791. <param name="b" type="int"/>
  4792. <exception name="IOException" type="java.io.IOException"/>
  4793. <doc>
  4794. <![CDATA[Write one byte]]>
  4795. </doc>
  4796. </method>
  4797. <method name="write"
  4798. abstract="false" native="false" synchronized="true"
  4799. static="false" final="false" visibility="public"
  4800. deprecated="not deprecated">
  4801. <param name="b" type="byte[]"/>
  4802. <param name="off" type="int"/>
  4803. <param name="len" type="int"/>
  4804. <exception name="IOException" type="java.io.IOException"/>
  4805. <doc>
  4806. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  4807. starting at offset <code>off</code> and generate a checksum for
  4808. each data chunk.
  4809. <p> This method stores bytes from the given array into this
  4810. stream's buffer before it gets checksumed. The buffer gets checksumed
  4811. and flushed to the underlying output stream when all data
  4812. in a checksum chunk are in the buffer. If the buffer is empty and
  4813. requested length is at least as large as the size of next checksum chunk
  4814. size, this method will checksum and write the chunk directly
  4815. to the underlying output stream. Thus it avoids uneccessary data copy.
  4816. @param b the data.
  4817. @param off the start offset in the data.
  4818. @param len the number of bytes to write.
  4819. @exception IOException if an I/O error occurs.]]>
  4820. </doc>
  4821. </method>
  4822. <method name="flushBuffer"
  4823. abstract="false" native="false" synchronized="true"
  4824. static="false" final="false" visibility="protected"
  4825. deprecated="not deprecated">
  4826. <exception name="IOException" type="java.io.IOException"/>
  4827. </method>
  4828. <method name="flushBuffer"
  4829. abstract="false" native="false" synchronized="true"
  4830. static="false" final="false" visibility="protected"
  4831. deprecated="not deprecated">
  4832. <param name="keep" type="boolean"/>
  4833. <exception name="IOException" type="java.io.IOException"/>
  4834. </method>
  4835. <method name="convertToByteStream" return="byte[]"
  4836. abstract="false" native="false" synchronized="false"
  4837. static="true" final="false" visibility="public"
  4838. deprecated="not deprecated">
  4839. <param name="sum" type="java.util.zip.Checksum"/>
  4840. <param name="checksumSize" type="int"/>
  4841. <doc>
  4842. <![CDATA[Converts a checksum integer value to a byte stream]]>
  4843. </doc>
  4844. </method>
  4845. <method name="resetChecksumChunk"
  4846. abstract="false" native="false" synchronized="true"
  4847. static="false" final="false" visibility="protected"
  4848. deprecated="not deprecated">
  4849. <param name="size" type="int"/>
  4850. <doc>
  4851. <![CDATA[Resets existing buffer with a new one of the specified size.]]>
  4852. </doc>
  4853. </method>
  4854. <doc>
  4855. <![CDATA[This is a generic output stream for generating checksums for
  4856. data before it is written to the underlying stream]]>
  4857. </doc>
  4858. </class>
  4859. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  4860. <!-- start class org.apache.hadoop.fs.FsShell -->
  4861. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  4862. abstract="false"
  4863. static="false" final="false" visibility="public"
  4864. deprecated="not deprecated">
  4865. <implements name="org.apache.hadoop.util.Tool"/>
  4866. <constructor name="FsShell"
  4867. static="false" final="false" visibility="public"
  4868. deprecated="not deprecated">
  4869. </constructor>
  4870. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  4871. static="false" final="false" visibility="public"
  4872. deprecated="not deprecated">
  4873. </constructor>
  4874. <method name="init"
  4875. abstract="false" native="false" synchronized="false"
  4876. static="false" final="false" visibility="protected"
  4877. deprecated="not deprecated">
  4878. <exception name="IOException" type="java.io.IOException"/>
  4879. </method>
  4880. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  4881. abstract="false" native="false" synchronized="false"
  4882. static="false" final="false" visibility="public"
  4883. deprecated="not deprecated">
  4884. <doc>
  4885. <![CDATA[Returns the Trash object associated with this shell.]]>
  4886. </doc>
  4887. </method>
  4888. <method name="byteDesc" return="java.lang.String"
  4889. abstract="false" native="false" synchronized="false"
  4890. static="true" final="false" visibility="public"
  4891. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.">
  4892. <param name="len" type="long"/>
  4893. <doc>
  4894. <![CDATA[Return an abbreviated English-language desc of the byte length
  4895. @deprecated Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.]]>
  4896. </doc>
  4897. </method>
  4898. <method name="limitDecimalTo2" return="java.lang.String"
  4899. abstract="false" native="false" synchronized="true"
  4900. static="true" final="false" visibility="public"
  4901. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.">
  4902. <param name="d" type="double"/>
  4903. <doc>
  4904. <![CDATA[@deprecated Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.]]>
  4905. </doc>
  4906. </method>
  4907. <method name="run" return="int"
  4908. abstract="false" native="false" synchronized="false"
  4909. static="false" final="false" visibility="public"
  4910. deprecated="not deprecated">
  4911. <param name="argv" type="java.lang.String[]"/>
  4912. <exception name="Exception" type="java.lang.Exception"/>
  4913. <doc>
  4914. <![CDATA[run]]>
  4915. </doc>
  4916. </method>
  4917. <method name="close"
  4918. abstract="false" native="false" synchronized="false"
  4919. static="false" final="false" visibility="public"
  4920. deprecated="not deprecated">
  4921. <exception name="IOException" type="java.io.IOException"/>
  4922. </method>
  4923. <method name="main"
  4924. abstract="false" native="false" synchronized="false"
  4925. static="true" final="false" visibility="public"
  4926. deprecated="not deprecated">
  4927. <param name="argv" type="java.lang.String[]"/>
  4928. <exception name="Exception" type="java.lang.Exception"/>
  4929. <doc>
  4930. <![CDATA[main() has some simple utility methods]]>
  4931. </doc>
  4932. </method>
  4933. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4934. transient="false" volatile="false"
  4935. static="false" final="false" visibility="protected"
  4936. deprecated="not deprecated">
  4937. </field>
  4938. <field name="dateForm" type="java.text.SimpleDateFormat"
  4939. transient="false" volatile="false"
  4940. static="true" final="true" visibility="public"
  4941. deprecated="not deprecated">
  4942. </field>
  4943. <field name="modifFmt" type="java.text.SimpleDateFormat"
  4944. transient="false" volatile="false"
  4945. static="true" final="true" visibility="protected"
  4946. deprecated="not deprecated">
  4947. </field>
  4948. <doc>
  4949. <![CDATA[Provide command line access to a FileSystem.]]>
  4950. </doc>
  4951. </class>
  4952. <!-- end class org.apache.hadoop.fs.FsShell -->
  4953. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  4954. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  4955. abstract="false"
  4956. static="false" final="false" visibility="public"
  4957. deprecated="not deprecated">
  4958. <implements name="java.net.URLStreamHandlerFactory"/>
  4959. <constructor name="FsUrlStreamHandlerFactory"
  4960. static="false" final="false" visibility="public"
  4961. deprecated="not deprecated">
  4962. </constructor>
  4963. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  4964. static="false" final="false" visibility="public"
  4965. deprecated="not deprecated">
  4966. </constructor>
  4967. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  4968. abstract="false" native="false" synchronized="false"
  4969. static="false" final="false" visibility="public"
  4970. deprecated="not deprecated">
  4971. <param name="protocol" type="java.lang.String"/>
  4972. </method>
  4973. <doc>
  4974. <![CDATA[Factory for URL stream handlers.
  4975. There is only one handler whose job is to create UrlConnections. A
  4976. FsUrlConnection relies on FileSystem to choose the appropriate FS
  4977. implementation.
  4978. Before returning our handler, we make sure that FileSystem knows an
  4979. implementation for the requested scheme/protocol.]]>
  4980. </doc>
  4981. </class>
  4982. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  4983. <!-- start class org.apache.hadoop.fs.GlobPattern -->
  4984. <class name="GlobPattern" extends="java.lang.Object"
  4985. abstract="false"
  4986. static="false" final="false" visibility="public"
  4987. deprecated="not deprecated">
  4988. <constructor name="GlobPattern" type="java.lang.String"
  4989. static="false" final="false" visibility="public"
  4990. deprecated="not deprecated">
  4991. <doc>
  4992. <![CDATA[Construct the glob pattern object with a glob pattern string
  4993. @param globPattern the glob pattern string]]>
  4994. </doc>
  4995. </constructor>
  4996. <method name="compiled" return="java.util.regex.Pattern"
  4997. abstract="false" native="false" synchronized="false"
  4998. static="false" final="false" visibility="public"
  4999. deprecated="not deprecated">
  5000. <doc>
  5001. <![CDATA[@return the compiled pattern]]>
  5002. </doc>
  5003. </method>
  5004. <method name="compile" return="java.util.regex.Pattern"
  5005. abstract="false" native="false" synchronized="false"
  5006. static="true" final="false" visibility="public"
  5007. deprecated="not deprecated">
  5008. <param name="globPattern" type="java.lang.String"/>
  5009. <doc>
  5010. <![CDATA[Compile glob pattern string
  5011. @param globPattern the glob pattern
  5012. @return the pattern object]]>
  5013. </doc>
  5014. </method>
  5015. <method name="matches" return="boolean"
  5016. abstract="false" native="false" synchronized="false"
  5017. static="false" final="false" visibility="public"
  5018. deprecated="not deprecated">
  5019. <param name="s" type="java.lang.CharSequence"/>
  5020. <doc>
  5021. <![CDATA[Match input against the compiled glob pattern
  5022. @param s input chars
  5023. @return true for successful matches]]>
  5024. </doc>
  5025. </method>
  5026. <method name="set"
  5027. abstract="false" native="false" synchronized="false"
  5028. static="false" final="false" visibility="public"
  5029. deprecated="not deprecated">
  5030. <param name="glob" type="java.lang.String"/>
  5031. <doc>
  5032. <![CDATA[Set and compile a glob pattern
  5033. @param glob the glob pattern string]]>
  5034. </doc>
  5035. </method>
  5036. <method name="hasWildcard" return="boolean"
  5037. abstract="false" native="false" synchronized="false"
  5038. static="false" final="false" visibility="public"
  5039. deprecated="not deprecated">
  5040. <doc>
  5041. <![CDATA[@return true if this is a wildcard pattern (with special chars)]]>
  5042. </doc>
  5043. </method>
  5044. <doc>
  5045. <![CDATA[A class for POSIX glob pattern with brace expansions.]]>
  5046. </doc>
  5047. </class>
  5048. <!-- end class org.apache.hadoop.fs.GlobPattern -->
  5049. <!-- start class org.apache.hadoop.fs.HardLink -->
  5050. <class name="HardLink" extends="java.lang.Object"
  5051. abstract="false"
  5052. static="false" final="false" visibility="public"
  5053. deprecated="not deprecated">
  5054. <constructor name="HardLink"
  5055. static="false" final="false" visibility="public"
  5056. deprecated="not deprecated">
  5057. </constructor>
  5058. <method name="getLinkMultArgLength" return="int"
  5059. abstract="false" native="false" synchronized="false"
  5060. static="true" final="false" visibility="protected"
  5061. deprecated="not deprecated">
  5062. <param name="fileDir" type="java.io.File"/>
  5063. <param name="fileBaseNames" type="java.lang.String[]"/>
  5064. <param name="linkDir" type="java.io.File"/>
  5065. <exception name="IOException" type="java.io.IOException"/>
  5066. <doc>
  5067. <![CDATA[Calculate the nominal length of all contributors to the total
  5068. commandstring length, including fixed overhead of the OS-dependent
  5069. command. It's protected rather than private, to assist unit testing,
  5070. but real clients are not expected to need it -- see the way
  5071. createHardLinkMult() uses it internally so the user doesn't need to worry
  5072. about it.
  5073. @param fileDir - source directory, parent of fileBaseNames
  5074. @param fileBaseNames - array of path-less file names, relative
  5075. to the source directory
  5076. @param linkDir - target directory where the hardlinks will be put
  5077. @return - total data length (must not exceed maxAllowedCmdArgLength)
  5078. @throws IOException]]>
  5079. </doc>
  5080. </method>
  5081. <method name="getMaxAllowedCmdArgLength" return="int"
  5082. abstract="false" native="false" synchronized="false"
  5083. static="true" final="false" visibility="protected"
  5084. deprecated="not deprecated">
  5085. <doc>
  5086. <![CDATA[Return this private value for use by unit tests.
  5087. Shell commands are not allowed to have a total string length
  5088. exceeding this size.]]>
  5089. </doc>
  5090. </method>
  5091. <method name="createHardLink"
  5092. abstract="false" native="false" synchronized="false"
  5093. static="true" final="false" visibility="public"
  5094. deprecated="not deprecated">
  5095. <param name="file" type="java.io.File"/>
  5096. <param name="linkName" type="java.io.File"/>
  5097. <exception name="IOException" type="java.io.IOException"/>
  5098. <doc>
  5099. <![CDATA[Creates a hardlink
  5100. @param file - existing source file
  5101. @param linkName - desired target link file]]>
  5102. </doc>
  5103. </method>
  5104. <method name="createHardLinkMult"
  5105. abstract="false" native="false" synchronized="false"
  5106. static="true" final="false" visibility="public"
  5107. deprecated="not deprecated">
  5108. <param name="parentDir" type="java.io.File"/>
  5109. <param name="fileBaseNames" type="java.lang.String[]"/>
  5110. <param name="linkDir" type="java.io.File"/>
  5111. <exception name="IOException" type="java.io.IOException"/>
  5112. <doc>
  5113. <![CDATA[Creates hardlinks from multiple existing files within one parent
  5114. directory, into one target directory.
  5115. @param parentDir - directory containing source files
  5116. @param fileBaseNames - list of path-less file names, as returned by
  5117. parentDir.list()
  5118. @param linkDir - where the hardlinks should be put. It must already exist.
  5119. If the list of files is too long (overflows maxAllowedCmdArgLength),
  5120. we will automatically split it into multiple invocations of the
  5121. underlying method.]]>
  5122. </doc>
  5123. </method>
  5124. <method name="createHardLinkMult" return="int"
  5125. abstract="false" native="false" synchronized="false"
  5126. static="true" final="false" visibility="protected"
  5127. deprecated="not deprecated">
  5128. <param name="parentDir" type="java.io.File"/>
  5129. <param name="fileBaseNames" type="java.lang.String[]"/>
  5130. <param name="linkDir" type="java.io.File"/>
  5131. <param name="maxLength" type="int"/>
  5132. <exception name="IOException" type="java.io.IOException"/>
  5133. </method>
  5134. <method name="getLinkCount" return="int"
  5135. abstract="false" native="false" synchronized="false"
  5136. static="true" final="false" visibility="public"
  5137. deprecated="not deprecated">
  5138. <param name="fileName" type="java.io.File"/>
  5139. <exception name="IOException" type="java.io.IOException"/>
  5140. <doc>
  5141. <![CDATA[Retrieves the number of links to the specified file.]]>
  5142. </doc>
  5143. </method>
  5144. <field name="osType" type="org.apache.hadoop.fs.HardLink.OSType"
  5145. transient="false" volatile="false"
  5146. static="true" final="false" visibility="public"
  5147. deprecated="not deprecated">
  5148. </field>
  5149. <field name="linkStats" type="org.apache.hadoop.fs.HardLink.LinkStats"
  5150. transient="false" volatile="false"
  5151. static="false" final="true" visibility="public"
  5152. deprecated="not deprecated">
  5153. </field>
  5154. <doc>
  5155. <![CDATA[Class for creating hardlinks.
  5156. Supports Unix/Linux, WinXP/2003/Vista via Cygwin, and Mac OS X.
  5157. The HardLink class was formerly a static inner class of FSUtil,
  5158. and the methods provided were blatantly non-thread-safe.
  5159. To enable volume-parallel Update snapshots, we now provide static
  5160. threadsafe methods that allocate new buffer string arrays
  5161. upon each call. We also provide an API to hardlink all files in a
  5162. directory with a single command, which is up to 128 times more
  5163. efficient - and minimizes the impact of the extra buffer creations.]]>
  5164. </doc>
  5165. </class>
  5166. <!-- end class org.apache.hadoop.fs.HardLink -->
  5167. <!-- start class org.apache.hadoop.fs.HardLink.LinkStats -->
  5168. <class name="HardLink.LinkStats" extends="java.lang.Object"
  5169. abstract="false"
  5170. static="true" final="false" visibility="public"
  5171. deprecated="not deprecated">
  5172. <constructor name="HardLink.LinkStats"
  5173. static="false" final="false" visibility="public"
  5174. deprecated="not deprecated">
  5175. </constructor>
  5176. <method name="clear"
  5177. abstract="false" native="false" synchronized="false"
  5178. static="false" final="false" visibility="public"
  5179. deprecated="not deprecated">
  5180. </method>
  5181. <method name="report" return="java.lang.String"
  5182. abstract="false" native="false" synchronized="false"
  5183. static="false" final="false" visibility="public"
  5184. deprecated="not deprecated">
  5185. </method>
  5186. <field name="countDirs" type="int"
  5187. transient="false" volatile="false"
  5188. static="false" final="false" visibility="public"
  5189. deprecated="not deprecated">
  5190. </field>
  5191. <field name="countSingleLinks" type="int"
  5192. transient="false" volatile="false"
  5193. static="false" final="false" visibility="public"
  5194. deprecated="not deprecated">
  5195. </field>
  5196. <field name="countMultLinks" type="int"
  5197. transient="false" volatile="false"
  5198. static="false" final="false" visibility="public"
  5199. deprecated="not deprecated">
  5200. </field>
  5201. <field name="countFilesMultLinks" type="int"
  5202. transient="false" volatile="false"
  5203. static="false" final="false" visibility="public"
  5204. deprecated="not deprecated">
  5205. </field>
  5206. <field name="countEmptyDirs" type="int"
  5207. transient="false" volatile="false"
  5208. static="false" final="false" visibility="public"
  5209. deprecated="not deprecated">
  5210. </field>
  5211. <field name="countPhysicalFileCopies" type="int"
  5212. transient="false" volatile="false"
  5213. static="false" final="false" visibility="public"
  5214. deprecated="not deprecated">
  5215. </field>
  5216. <doc>
  5217. <![CDATA[HardLink statistics counters and methods.
  5218. Not multi-thread safe, obviously.
  5219. Init is called during HardLink instantiation, above.
  5220. These are intended for use by knowledgeable clients, not internally,
  5221. because many of the internal methods are static and can't update these
  5222. per-instance counters.]]>
  5223. </doc>
  5224. </class>
  5225. <!-- end class org.apache.hadoop.fs.HardLink.LinkStats -->
  5226. <!-- start class org.apache.hadoop.fs.HardLink.OSType -->
  5227. <class name="HardLink.OSType" extends="java.lang.Enum"
  5228. abstract="false"
  5229. static="true" final="true" visibility="public"
  5230. deprecated="not deprecated">
  5231. <method name="values" return="org.apache.hadoop.fs.HardLink.OSType[]"
  5232. abstract="false" native="false" synchronized="false"
  5233. static="true" final="false" visibility="public"
  5234. deprecated="not deprecated">
  5235. </method>
  5236. <method name="valueOf" return="org.apache.hadoop.fs.HardLink.OSType"
  5237. abstract="false" native="false" synchronized="false"
  5238. static="true" final="false" visibility="public"
  5239. deprecated="not deprecated">
  5240. <param name="name" type="java.lang.String"/>
  5241. </method>
  5242. <field name="OS_TYPE_UNIX" type="org.apache.hadoop.fs.HardLink.OSType"
  5243. transient="false" volatile="false"
  5244. static="true" final="true" visibility="public"
  5245. deprecated="not deprecated">
  5246. </field>
  5247. <field name="OS_TYPE_WINXP" type="org.apache.hadoop.fs.HardLink.OSType"
  5248. transient="false" volatile="false"
  5249. static="true" final="true" visibility="public"
  5250. deprecated="not deprecated">
  5251. </field>
  5252. <field name="OS_TYPE_SOLARIS" type="org.apache.hadoop.fs.HardLink.OSType"
  5253. transient="false" volatile="false"
  5254. static="true" final="true" visibility="public"
  5255. deprecated="not deprecated">
  5256. </field>
  5257. <field name="OS_TYPE_MAC" type="org.apache.hadoop.fs.HardLink.OSType"
  5258. transient="false" volatile="false"
  5259. static="true" final="true" visibility="public"
  5260. deprecated="not deprecated">
  5261. </field>
  5262. </class>
  5263. <!-- end class org.apache.hadoop.fs.HardLink.OSType -->
  5264. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  5265. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  5266. abstract="false"
  5267. static="false" final="false" visibility="public"
  5268. deprecated="not deprecated">
  5269. <constructor name="HarFileSystem"
  5270. static="false" final="false" visibility="public"
  5271. deprecated="not deprecated">
  5272. <doc>
  5273. <![CDATA[public construction of harfilesystem]]>
  5274. </doc>
  5275. </constructor>
  5276. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5277. static="false" final="false" visibility="public"
  5278. deprecated="not deprecated">
  5279. <doc>
  5280. <![CDATA[Constructor to create a HarFileSystem with an
  5281. underlying filesystem.
  5282. @param fs]]>
  5283. </doc>
  5284. </constructor>
  5285. <method name="initialize"
  5286. abstract="false" native="false" synchronized="false"
  5287. static="false" final="false" visibility="public"
  5288. deprecated="not deprecated">
  5289. <param name="name" type="java.net.URI"/>
  5290. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5291. <exception name="IOException" type="java.io.IOException"/>
  5292. <doc>
  5293. <![CDATA[Initialize a Har filesystem per har archive. The
  5294. archive home directory is the top level directory
  5295. in the filesystem that contains the HAR archive.
  5296. Be careful with this method, you do not want to go
  5297. on creating new Filesystem instances per call to
  5298. path.getFileSystem().
  5299. the uri of Har is
  5300. har://underlyingfsscheme-host:port/archivepath.
  5301. or
  5302. har:///archivepath. This assumes the underlying filesystem
  5303. to be used in case not specified.]]>
  5304. </doc>
  5305. </method>
  5306. <method name="getHarVersion" return="int"
  5307. abstract="false" native="false" synchronized="false"
  5308. static="false" final="false" visibility="public"
  5309. deprecated="not deprecated">
  5310. <exception name="IOException" type="java.io.IOException"/>
  5311. </method>
  5312. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5313. abstract="false" native="false" synchronized="false"
  5314. static="false" final="false" visibility="public"
  5315. deprecated="not deprecated">
  5316. <doc>
  5317. <![CDATA[return the top level archive.]]>
  5318. </doc>
  5319. </method>
  5320. <method name="getUri" return="java.net.URI"
  5321. abstract="false" native="false" synchronized="false"
  5322. static="false" final="false" visibility="public"
  5323. deprecated="not deprecated">
  5324. <doc>
  5325. <![CDATA[Returns the uri of this filesystem.
  5326. The uri is of the form
  5327. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  5328. </doc>
  5329. </method>
  5330. <method name="getCanonicalServiceName" return="java.lang.String"
  5331. abstract="false" native="false" synchronized="false"
  5332. static="false" final="false" visibility="public"
  5333. deprecated="not deprecated">
  5334. </method>
  5335. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5336. abstract="false" native="false" synchronized="false"
  5337. static="false" final="false" visibility="public"
  5338. deprecated="not deprecated">
  5339. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5340. </method>
  5341. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5342. abstract="false" native="false" synchronized="false"
  5343. static="false" final="false" visibility="public"
  5344. deprecated="not deprecated">
  5345. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5346. <param name="start" type="long"/>
  5347. <param name="len" type="long"/>
  5348. <exception name="IOException" type="java.io.IOException"/>
  5349. <doc>
  5350. <![CDATA[Get block locations from the underlying fs and fix their
  5351. offsets and lengths.
  5352. @param file the input filestatus to get block locations
  5353. @param start the start of the desired range in the contained file
  5354. @param len the length of the desired range
  5355. @return block locations for this segment of file
  5356. @throws IOException]]>
  5357. </doc>
  5358. </method>
  5359. <method name="getHarHash" return="int"
  5360. abstract="false" native="false" synchronized="false"
  5361. static="true" final="false" visibility="public"
  5362. deprecated="not deprecated">
  5363. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5364. <doc>
  5365. <![CDATA[the hash of the path p inside iniside
  5366. the filesystem
  5367. @param p the path in the harfilesystem
  5368. @return the hash code of the path.]]>
  5369. </doc>
  5370. </method>
  5371. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5372. abstract="false" native="false" synchronized="false"
  5373. static="false" final="false" visibility="public"
  5374. deprecated="not deprecated">
  5375. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5376. <exception name="IOException" type="java.io.IOException"/>
  5377. <doc>
  5378. <![CDATA[return the filestatus of files in har archive.
  5379. The permission returned are that of the archive
  5380. index files. The permissions are not persisted
  5381. while creating a hadoop archive.
  5382. @param f the path in har filesystem
  5383. @return filestatus.
  5384. @throws IOException]]>
  5385. </doc>
  5386. </method>
  5387. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  5388. abstract="false" native="false" synchronized="false"
  5389. static="false" final="false" visibility="public"
  5390. deprecated="not deprecated">
  5391. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5392. <doc>
  5393. <![CDATA[@return null since no checksum algorithm is implemented.]]>
  5394. </doc>
  5395. </method>
  5396. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5397. abstract="false" native="false" synchronized="false"
  5398. static="false" final="false" visibility="public"
  5399. deprecated="not deprecated">
  5400. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5401. <param name="bufferSize" type="int"/>
  5402. <exception name="IOException" type="java.io.IOException"/>
  5403. <doc>
  5404. <![CDATA[Returns a har input stream which fakes end of
  5405. file. It reads the index files to get the part
  5406. file name and the size and start of the file.]]>
  5407. </doc>
  5408. </method>
  5409. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5410. abstract="false" native="false" synchronized="false"
  5411. static="false" final="false" visibility="public"
  5412. deprecated="not deprecated">
  5413. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5414. <param name="bufferSize" type="int"/>
  5415. <exception name="IOException" type="java.io.IOException"/>
  5416. </method>
  5417. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5418. abstract="false" native="false" synchronized="false"
  5419. static="false" final="false" visibility="public"
  5420. deprecated="not deprecated">
  5421. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5422. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5423. <param name="overwrite" type="boolean"/>
  5424. <param name="bufferSize" type="int"/>
  5425. <param name="replication" type="short"/>
  5426. <param name="blockSize" type="long"/>
  5427. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5428. <exception name="IOException" type="java.io.IOException"/>
  5429. </method>
  5430. <method name="close"
  5431. abstract="false" native="false" synchronized="false"
  5432. static="false" final="false" visibility="public"
  5433. deprecated="not deprecated">
  5434. <exception name="IOException" type="java.io.IOException"/>
  5435. </method>
  5436. <method name="setReplication" return="boolean"
  5437. abstract="false" native="false" synchronized="false"
  5438. static="false" final="false" visibility="public"
  5439. deprecated="not deprecated">
  5440. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5441. <param name="replication" type="short"/>
  5442. <exception name="IOException" type="java.io.IOException"/>
  5443. <doc>
  5444. <![CDATA[Not implemented.]]>
  5445. </doc>
  5446. </method>
  5447. <method name="delete" return="boolean"
  5448. abstract="false" native="false" synchronized="false"
  5449. static="false" final="false" visibility="public"
  5450. deprecated="not deprecated">
  5451. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5452. <param name="recursive" type="boolean"/>
  5453. <exception name="IOException" type="java.io.IOException"/>
  5454. <doc>
  5455. <![CDATA[Not implemented.]]>
  5456. </doc>
  5457. </method>
  5458. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5459. abstract="false" native="false" synchronized="false"
  5460. static="false" final="false" visibility="public"
  5461. deprecated="not deprecated">
  5462. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5463. <exception name="IOException" type="java.io.IOException"/>
  5464. <doc>
  5465. <![CDATA[liststatus returns the children of a directory
  5466. after looking up the index files.]]>
  5467. </doc>
  5468. </method>
  5469. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5470. abstract="false" native="false" synchronized="false"
  5471. static="false" final="false" visibility="public"
  5472. deprecated="not deprecated">
  5473. <doc>
  5474. <![CDATA[return the top level archive path.]]>
  5475. </doc>
  5476. </method>
  5477. <method name="setWorkingDirectory"
  5478. abstract="false" native="false" synchronized="false"
  5479. static="false" final="false" visibility="public"
  5480. deprecated="not deprecated">
  5481. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5482. </method>
  5483. <method name="mkdirs" return="boolean"
  5484. abstract="false" native="false" synchronized="false"
  5485. static="false" final="false" visibility="public"
  5486. deprecated="not deprecated">
  5487. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5488. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5489. <exception name="IOException" type="java.io.IOException"/>
  5490. <doc>
  5491. <![CDATA[not implemented.]]>
  5492. </doc>
  5493. </method>
  5494. <method name="copyFromLocalFile"
  5495. abstract="false" native="false" synchronized="false"
  5496. static="false" final="false" visibility="public"
  5497. deprecated="not deprecated">
  5498. <param name="delSrc" type="boolean"/>
  5499. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5500. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5501. <exception name="IOException" type="java.io.IOException"/>
  5502. <doc>
  5503. <![CDATA[not implemented.]]>
  5504. </doc>
  5505. </method>
  5506. <method name="copyToLocalFile"
  5507. abstract="false" native="false" synchronized="false"
  5508. static="false" final="false" visibility="public"
  5509. deprecated="not deprecated">
  5510. <param name="delSrc" type="boolean"/>
  5511. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5512. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5513. <exception name="IOException" type="java.io.IOException"/>
  5514. <doc>
  5515. <![CDATA[copies the file in the har filesystem to a local file.]]>
  5516. </doc>
  5517. </method>
  5518. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5519. abstract="false" native="false" synchronized="false"
  5520. static="false" final="false" visibility="public"
  5521. deprecated="not deprecated">
  5522. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5523. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5524. <exception name="IOException" type="java.io.IOException"/>
  5525. <doc>
  5526. <![CDATA[not implemented.]]>
  5527. </doc>
  5528. </method>
  5529. <method name="completeLocalOutput"
  5530. abstract="false" native="false" synchronized="false"
  5531. static="false" final="false" visibility="public"
  5532. deprecated="not deprecated">
  5533. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5534. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5535. <exception name="IOException" type="java.io.IOException"/>
  5536. <doc>
  5537. <![CDATA[not implemented.]]>
  5538. </doc>
  5539. </method>
  5540. <method name="setOwner"
  5541. abstract="false" native="false" synchronized="false"
  5542. static="false" final="false" visibility="public"
  5543. deprecated="not deprecated">
  5544. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5545. <param name="username" type="java.lang.String"/>
  5546. <param name="groupname" type="java.lang.String"/>
  5547. <exception name="IOException" type="java.io.IOException"/>
  5548. <doc>
  5549. <![CDATA[not implemented.]]>
  5550. </doc>
  5551. </method>
  5552. <method name="setPermission"
  5553. abstract="false" native="false" synchronized="false"
  5554. static="false" final="false" visibility="public"
  5555. deprecated="not deprecated">
  5556. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5557. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5558. <exception name="IOException" type="java.io.IOException"/>
  5559. <doc>
  5560. <![CDATA[Not implemented.]]>
  5561. </doc>
  5562. </method>
  5563. <field name="VERSION" type="int"
  5564. transient="false" volatile="false"
  5565. static="true" final="true" visibility="public"
  5566. deprecated="not deprecated">
  5567. </field>
  5568. <doc>
  5569. <![CDATA[This is an implementation of the Hadoop Archive
  5570. Filesystem. This archive Filesystem has index files
  5571. of the form _index* and has contents of the form
  5572. part-*. The index files store the indexes of the
  5573. real files. The index files are of the form _masterindex
  5574. and _index. The master index is a level of indirection
  5575. in to the index file to make the look ups faster. the index
  5576. file is sorted with hash code of the paths that it contains
  5577. and the master index contains pointers to the positions in
  5578. index for ranges of hashcodes.]]>
  5579. </doc>
  5580. </class>
  5581. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  5582. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  5583. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5584. abstract="false"
  5585. static="false" final="false" visibility="public"
  5586. deprecated="not deprecated">
  5587. <constructor name="InMemoryFileSystem"
  5588. static="false" final="false" visibility="public"
  5589. deprecated="not deprecated">
  5590. </constructor>
  5591. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  5592. static="false" final="false" visibility="public"
  5593. deprecated="not deprecated">
  5594. </constructor>
  5595. <method name="reserveSpaceWithCheckSum" return="boolean"
  5596. abstract="false" native="false" synchronized="false"
  5597. static="false" final="false" visibility="public"
  5598. deprecated="not deprecated">
  5599. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5600. <param name="size" type="long"/>
  5601. <doc>
  5602. <![CDATA[Register a file with its size. This will also register a checksum for the
  5603. file that the user is trying to create. This is required since none of
  5604. the FileSystem APIs accept the size of the file as argument. But since it
  5605. is required for us to apriori know the size of the file we are going to
  5606. create, the user must call this method for each file he wants to create
  5607. and reserve memory for that file. We either succeed in reserving memory
  5608. for both the main file and the checksum file and return true, or return
  5609. false.]]>
  5610. </doc>
  5611. </method>
  5612. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  5613. abstract="false" native="false" synchronized="false"
  5614. static="false" final="false" visibility="public"
  5615. deprecated="not deprecated">
  5616. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5617. </method>
  5618. <method name="getNumFiles" return="int"
  5619. abstract="false" native="false" synchronized="false"
  5620. static="false" final="false" visibility="public"
  5621. deprecated="not deprecated">
  5622. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5623. </method>
  5624. <method name="getFSSize" return="long"
  5625. abstract="false" native="false" synchronized="false"
  5626. static="false" final="false" visibility="public"
  5627. deprecated="not deprecated">
  5628. </method>
  5629. <method name="getPercentUsed" return="float"
  5630. abstract="false" native="false" synchronized="false"
  5631. static="false" final="false" visibility="public"
  5632. deprecated="not deprecated">
  5633. </method>
  5634. <doc>
  5635. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  5636. that the file lengths are known ahead of time and the total lengths of all
  5637. the files is below a certain number (like 100 MB, configurable). Use the API
  5638. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  5639. the API for reserving space in the FS. The uri of this filesystem starts with
  5640. ramfs:// .]]>
  5641. </doc>
  5642. </class>
  5643. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  5644. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  5645. <class name="LocalDirAllocator" extends="java.lang.Object"
  5646. abstract="false"
  5647. static="false" final="false" visibility="public"
  5648. deprecated="not deprecated">
  5649. <constructor name="LocalDirAllocator" type="java.lang.String"
  5650. static="false" final="false" visibility="public"
  5651. deprecated="not deprecated">
  5652. <doc>
  5653. <![CDATA[Create an allocator object
  5654. @param contextCfgItemName]]>
  5655. </doc>
  5656. </constructor>
  5657. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5658. abstract="false" native="false" synchronized="false"
  5659. static="false" final="false" visibility="public"
  5660. deprecated="not deprecated">
  5661. <param name="pathStr" type="java.lang.String"/>
  5662. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5663. <exception name="IOException" type="java.io.IOException"/>
  5664. <doc>
  5665. <![CDATA[Get a path from the local FS. This method should be used if the size of
  5666. the file is not known apriori. We go round-robin over the set of disks
  5667. (via the configured dirs) and return the first complete path where
  5668. we could create the parent directory of the passed path.
  5669. @param pathStr the requested path (this will be created on the first
  5670. available disk)
  5671. @param conf the Configuration object
  5672. @return the complete path to the file on a local disk
  5673. @throws IOException]]>
  5674. </doc>
  5675. </method>
  5676. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5677. abstract="false" native="false" synchronized="false"
  5678. static="false" final="false" visibility="public"
  5679. deprecated="not deprecated">
  5680. <param name="pathStr" type="java.lang.String"/>
  5681. <param name="size" type="long"/>
  5682. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5683. <exception name="IOException" type="java.io.IOException"/>
  5684. <doc>
  5685. <![CDATA[Get a path from the local FS. Pass size as
  5686. SIZE_UNKNOWN if not known apriori. We
  5687. round-robin over the set of disks (via the configured dirs) and return
  5688. the first complete path which has enough space
  5689. @param pathStr the requested path (this will be created on the first
  5690. available disk)
  5691. @param size the size of the file that is going to be written
  5692. @param conf the Configuration object
  5693. @return the complete path to the file on a local disk
  5694. @throws IOException]]>
  5695. </doc>
  5696. </method>
  5697. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5698. abstract="false" native="false" synchronized="false"
  5699. static="false" final="false" visibility="public"
  5700. deprecated="not deprecated">
  5701. <param name="pathStr" type="java.lang.String"/>
  5702. <param name="size" type="long"/>
  5703. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5704. <param name="checkWrite" type="boolean"/>
  5705. <exception name="IOException" type="java.io.IOException"/>
  5706. <doc>
  5707. <![CDATA[Get a path from the local FS. Pass size as
  5708. SIZE_UNKNOWN if not known apriori. We
  5709. round-robin over the set of disks (via the configured dirs) and return
  5710. the first complete path which has enough space
  5711. @param pathStr the requested path (this will be created on the first
  5712. available disk)
  5713. @param size the size of the file that is going to be written
  5714. @param conf the Configuration object
  5715. @param checkWrite ensure that the path is writable
  5716. @return the complete path to the file on a local disk
  5717. @throws IOException]]>
  5718. </doc>
  5719. </method>
  5720. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  5721. abstract="false" native="false" synchronized="false"
  5722. static="false" final="false" visibility="public"
  5723. deprecated="not deprecated">
  5724. <param name="pathStr" type="java.lang.String"/>
  5725. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5726. <exception name="IOException" type="java.io.IOException"/>
  5727. <doc>
  5728. <![CDATA[Get a path from the local FS for reading. We search through all the
  5729. configured dirs for the file's existence and return the complete
  5730. path to the file when we find one
  5731. @param pathStr the requested file (this will be searched)
  5732. @param conf the Configuration object
  5733. @return the complete path to the file on a local disk
  5734. @throws IOException]]>
  5735. </doc>
  5736. </method>
  5737. <method name="getAllLocalPathsToRead" return="java.lang.Iterable"
  5738. abstract="false" native="false" synchronized="false"
  5739. static="false" final="false" visibility="public"
  5740. deprecated="not deprecated">
  5741. <param name="pathStr" type="java.lang.String"/>
  5742. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5743. <exception name="IOException" type="java.io.IOException"/>
  5744. <doc>
  5745. <![CDATA[Get all of the paths that currently exist in the working directories.
  5746. @param pathStr the path underneath the roots
  5747. @param conf the configuration to look up the roots in
  5748. @return all of the paths that exist under any of the roots
  5749. @throws IOException]]>
  5750. </doc>
  5751. </method>
  5752. <method name="createTmpFileForWrite" return="java.io.File"
  5753. abstract="false" native="false" synchronized="false"
  5754. static="false" final="false" visibility="public"
  5755. deprecated="not deprecated">
  5756. <param name="pathStr" type="java.lang.String"/>
  5757. <param name="size" type="long"/>
  5758. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5759. <exception name="IOException" type="java.io.IOException"/>
  5760. <doc>
  5761. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  5762. apriori. We round-robin over the set of disks (via the configured dirs)
  5763. and select the first complete path which has enough space. A file is
  5764. created on this directory. The file is guaranteed to go away when the
  5765. JVM exits.
  5766. @param pathStr prefix for the temporary file
  5767. @param size the size of the file that is going to be written
  5768. @param conf the Configuration object
  5769. @return a unique temporary file
  5770. @throws IOException]]>
  5771. </doc>
  5772. </method>
  5773. <method name="isContextValid" return="boolean"
  5774. abstract="false" native="false" synchronized="false"
  5775. static="true" final="false" visibility="public"
  5776. deprecated="not deprecated">
  5777. <param name="contextCfgItemName" type="java.lang.String"/>
  5778. <doc>
  5779. <![CDATA[Method to check whether a context is valid
  5780. @param contextCfgItemName
  5781. @return true/false]]>
  5782. </doc>
  5783. </method>
  5784. <method name="ifExists" return="boolean"
  5785. abstract="false" native="false" synchronized="false"
  5786. static="false" final="false" visibility="public"
  5787. deprecated="not deprecated">
  5788. <param name="pathStr" type="java.lang.String"/>
  5789. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5790. <doc>
  5791. <![CDATA[We search through all the configured dirs for the file's existence
  5792. and return true when we find
  5793. @param pathStr the requested file (this will be searched)
  5794. @param conf the Configuration object
  5795. @return true if files exist. false otherwise
  5796. @throws IOException]]>
  5797. </doc>
  5798. </method>
  5799. <field name="SIZE_UNKNOWN" type="int"
  5800. transient="false" volatile="false"
  5801. static="true" final="true" visibility="public"
  5802. deprecated="not deprecated">
  5803. <doc>
  5804. <![CDATA[Used when size of file to be allocated is unknown.]]>
  5805. </doc>
  5806. </field>
  5807. <doc>
  5808. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  5809. files. The way it works is that it is kept track what disk was last
  5810. allocated for a file write. For the current request, the next disk from
  5811. the set of disks would be allocated if the free space on the disk is
  5812. sufficient enough to accommodate the file that is being considered for
  5813. creation. If the space requirements cannot be met, the next disk in order
  5814. would be tried and so on till a disk is found with sufficient capacity.
  5815. Once a disk with sufficient space is identified, a check is done to make
  5816. sure that the disk is writable. Also, there is an API provided that doesn't
  5817. take the space requirements into consideration but just checks whether the
  5818. disk under consideration is writable (this should be used for cases where
  5819. the file size is not known apriori). An API is provided to read a path that
  5820. was created earlier. That API works by doing a scan of all the disks for the
  5821. input pathname.
  5822. This implementation also provides the functionality of having multiple
  5823. allocators per JVM (one for each unique functionality or context, like
  5824. mapred, dfs-client, etc.). It ensures that there is only one instance of
  5825. an allocator per context per JVM.
  5826. Note:
  5827. 1. The contexts referred above are actually the configuration items defined
  5828. in the Configuration class like "mapred.local.dir" (for which we want to
  5829. control the dir allocations). The context-strings are exactly those
  5830. configuration items.
  5831. 2. This implementation does not take into consideration cases where
  5832. a disk becomes read-only or goes out of space while a file is being written
  5833. to (disks are shared between multiple processes, and so the latter situation
  5834. is probable).
  5835. 3. In the class implementation, "Disk" is referred to as "Dir", which
  5836. actually points to the configured directory on the Disk which will be the
  5837. parent for all file write/read allocations.]]>
  5838. </doc>
  5839. </class>
  5840. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  5841. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  5842. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5843. abstract="false"
  5844. static="false" final="false" visibility="public"
  5845. deprecated="not deprecated">
  5846. <constructor name="LocalFileSystem"
  5847. static="false" final="false" visibility="public"
  5848. deprecated="not deprecated">
  5849. </constructor>
  5850. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5851. static="false" final="false" visibility="public"
  5852. deprecated="not deprecated">
  5853. </constructor>
  5854. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  5855. abstract="false" native="false" synchronized="false"
  5856. static="false" final="false" visibility="public"
  5857. deprecated="not deprecated">
  5858. </method>
  5859. <method name="exists" return="boolean"
  5860. abstract="false" native="false" synchronized="false"
  5861. static="false" final="false" visibility="public"
  5862. deprecated="not deprecated">
  5863. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5864. <exception name="IOException" type="java.io.IOException"/>
  5865. <doc>
  5866. <![CDATA[Get file status.]]>
  5867. </doc>
  5868. </method>
  5869. <method name="pathToFile" return="java.io.File"
  5870. abstract="false" native="false" synchronized="false"
  5871. static="false" final="false" visibility="public"
  5872. deprecated="not deprecated">
  5873. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5874. <doc>
  5875. <![CDATA[Convert a path to a File.]]>
  5876. </doc>
  5877. </method>
  5878. <method name="copyFromLocalFile"
  5879. abstract="false" native="false" synchronized="false"
  5880. static="false" final="false" visibility="public"
  5881. deprecated="not deprecated">
  5882. <param name="delSrc" type="boolean"/>
  5883. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5884. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5885. <exception name="IOException" type="java.io.IOException"/>
  5886. </method>
  5887. <method name="copyToLocalFile"
  5888. abstract="false" native="false" synchronized="false"
  5889. static="false" final="false" visibility="public"
  5890. deprecated="not deprecated">
  5891. <param name="delSrc" type="boolean"/>
  5892. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5893. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5894. <exception name="IOException" type="java.io.IOException"/>
  5895. </method>
  5896. <method name="reportChecksumFailure" return="boolean"
  5897. abstract="false" native="false" synchronized="false"
  5898. static="false" final="false" visibility="public"
  5899. deprecated="not deprecated">
  5900. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5901. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  5902. <param name="inPos" type="long"/>
  5903. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  5904. <param name="sumsPos" type="long"/>
  5905. <doc>
  5906. <![CDATA[Moves files to a bad file directory on the same device, so that their
  5907. storage will not be reused.]]>
  5908. </doc>
  5909. </method>
  5910. <doc>
  5911. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  5912. </doc>
  5913. </class>
  5914. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  5915. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  5916. <class name="MD5MD5CRC32FileChecksum" extends="org.apache.hadoop.fs.FileChecksum"
  5917. abstract="false"
  5918. static="false" final="false" visibility="public"
  5919. deprecated="not deprecated">
  5920. <constructor name="MD5MD5CRC32FileChecksum"
  5921. static="false" final="false" visibility="public"
  5922. deprecated="not deprecated">
  5923. <doc>
  5924. <![CDATA[Same as this(0, 0, null)]]>
  5925. </doc>
  5926. </constructor>
  5927. <constructor name="MD5MD5CRC32FileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  5928. static="false" final="false" visibility="public"
  5929. deprecated="not deprecated">
  5930. <doc>
  5931. <![CDATA[Create a MD5FileChecksum]]>
  5932. </doc>
  5933. </constructor>
  5934. <method name="getAlgorithmName" return="java.lang.String"
  5935. abstract="false" native="false" synchronized="false"
  5936. static="false" final="false" visibility="public"
  5937. deprecated="not deprecated">
  5938. <doc>
  5939. <![CDATA[{@inheritDoc}]]>
  5940. </doc>
  5941. </method>
  5942. <method name="getLength" return="int"
  5943. abstract="false" native="false" synchronized="false"
  5944. static="false" final="false" visibility="public"
  5945. deprecated="not deprecated">
  5946. <doc>
  5947. <![CDATA[{@inheritDoc}]]>
  5948. </doc>
  5949. </method>
  5950. <method name="getBytes" return="byte[]"
  5951. abstract="false" native="false" synchronized="false"
  5952. static="false" final="false" visibility="public"
  5953. deprecated="not deprecated">
  5954. <doc>
  5955. <![CDATA[{@inheritDoc}]]>
  5956. </doc>
  5957. </method>
  5958. <method name="readFields"
  5959. abstract="false" native="false" synchronized="false"
  5960. static="false" final="false" visibility="public"
  5961. deprecated="not deprecated">
  5962. <param name="in" type="java.io.DataInput"/>
  5963. <exception name="IOException" type="java.io.IOException"/>
  5964. <doc>
  5965. <![CDATA[{@inheritDoc}]]>
  5966. </doc>
  5967. </method>
  5968. <method name="write"
  5969. abstract="false" native="false" synchronized="false"
  5970. static="false" final="false" visibility="public"
  5971. deprecated="not deprecated">
  5972. <param name="out" type="java.io.DataOutput"/>
  5973. <exception name="IOException" type="java.io.IOException"/>
  5974. <doc>
  5975. <![CDATA[{@inheritDoc}]]>
  5976. </doc>
  5977. </method>
  5978. <method name="write"
  5979. abstract="false" native="false" synchronized="false"
  5980. static="true" final="false" visibility="public"
  5981. deprecated="not deprecated">
  5982. <param name="xml" type="org.znerd.xmlenc.XMLOutputter"/>
  5983. <param name="that" type="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"/>
  5984. <exception name="IOException" type="java.io.IOException"/>
  5985. <doc>
  5986. <![CDATA[Write that object to xml output.]]>
  5987. </doc>
  5988. </method>
  5989. <method name="valueOf" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  5990. abstract="false" native="false" synchronized="false"
  5991. static="true" final="false" visibility="public"
  5992. deprecated="not deprecated">
  5993. <param name="attrs" type="org.xml.sax.Attributes"/>
  5994. <exception name="SAXException" type="org.xml.sax.SAXException"/>
  5995. <doc>
  5996. <![CDATA[Return the object represented in the attributes.]]>
  5997. </doc>
  5998. </method>
  5999. <method name="toString" return="java.lang.String"
  6000. abstract="false" native="false" synchronized="false"
  6001. static="false" final="false" visibility="public"
  6002. deprecated="not deprecated">
  6003. <doc>
  6004. <![CDATA[{@inheritDoc}]]>
  6005. </doc>
  6006. </method>
  6007. <field name="LENGTH" type="int"
  6008. transient="false" volatile="false"
  6009. static="true" final="true" visibility="public"
  6010. deprecated="not deprecated">
  6011. </field>
  6012. <doc>
  6013. <![CDATA[MD5 of MD5 of CRC32.]]>
  6014. </doc>
  6015. </class>
  6016. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6017. <!-- start class org.apache.hadoop.fs.Path -->
  6018. <class name="Path" extends="java.lang.Object"
  6019. abstract="false"
  6020. static="false" final="false" visibility="public"
  6021. deprecated="not deprecated">
  6022. <implements name="java.lang.Comparable"/>
  6023. <constructor name="Path" type="java.lang.String, java.lang.String"
  6024. static="false" final="false" visibility="public"
  6025. deprecated="not deprecated">
  6026. <doc>
  6027. <![CDATA[Resolve a child path against a parent path.]]>
  6028. </doc>
  6029. </constructor>
  6030. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  6031. static="false" final="false" visibility="public"
  6032. deprecated="not deprecated">
  6033. <doc>
  6034. <![CDATA[Resolve a child path against a parent path.]]>
  6035. </doc>
  6036. </constructor>
  6037. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  6038. static="false" final="false" visibility="public"
  6039. deprecated="not deprecated">
  6040. <doc>
  6041. <![CDATA[Resolve a child path against a parent path.]]>
  6042. </doc>
  6043. </constructor>
  6044. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  6045. static="false" final="false" visibility="public"
  6046. deprecated="not deprecated">
  6047. <doc>
  6048. <![CDATA[Resolve a child path against a parent path.]]>
  6049. </doc>
  6050. </constructor>
  6051. <constructor name="Path" type="java.lang.String"
  6052. static="false" final="false" visibility="public"
  6053. deprecated="not deprecated">
  6054. <doc>
  6055. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  6056. unescaped elements and some additional normalization.]]>
  6057. </doc>
  6058. </constructor>
  6059. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  6060. static="false" final="false" visibility="public"
  6061. deprecated="not deprecated">
  6062. <doc>
  6063. <![CDATA[Construct a Path from components.]]>
  6064. </doc>
  6065. </constructor>
  6066. <constructor name="Path" type="java.net.URI"
  6067. static="false" final="false" visibility="public"
  6068. deprecated="not deprecated">
  6069. <doc>
  6070. <![CDATA[Construct a path from a URI]]>
  6071. </doc>
  6072. </constructor>
  6073. <method name="toUri" return="java.net.URI"
  6074. abstract="false" native="false" synchronized="false"
  6075. static="false" final="false" visibility="public"
  6076. deprecated="not deprecated">
  6077. <doc>
  6078. <![CDATA[Convert this to a URI.]]>
  6079. </doc>
  6080. </method>
  6081. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  6082. abstract="false" native="false" synchronized="false"
  6083. static="false" final="false" visibility="public"
  6084. deprecated="not deprecated">
  6085. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6086. <exception name="IOException" type="java.io.IOException"/>
  6087. <doc>
  6088. <![CDATA[Return the FileSystem that owns this Path.]]>
  6089. </doc>
  6090. </method>
  6091. <method name="isAbsolute" return="boolean"
  6092. abstract="false" native="false" synchronized="false"
  6093. static="false" final="false" visibility="public"
  6094. deprecated="not deprecated">
  6095. <doc>
  6096. <![CDATA[True if the directory of this path is absolute.]]>
  6097. </doc>
  6098. </method>
  6099. <method name="getName" return="java.lang.String"
  6100. abstract="false" native="false" synchronized="false"
  6101. static="false" final="false" visibility="public"
  6102. deprecated="not deprecated">
  6103. <doc>
  6104. <![CDATA[Returns the final component of this path.]]>
  6105. </doc>
  6106. </method>
  6107. <method name="getParent" return="org.apache.hadoop.fs.Path"
  6108. abstract="false" native="false" synchronized="false"
  6109. static="false" final="false" visibility="public"
  6110. deprecated="not deprecated">
  6111. <doc>
  6112. <![CDATA[Returns the parent of a path or null if at root.]]>
  6113. </doc>
  6114. </method>
  6115. <method name="suffix" return="org.apache.hadoop.fs.Path"
  6116. abstract="false" native="false" synchronized="false"
  6117. static="false" final="false" visibility="public"
  6118. deprecated="not deprecated">
  6119. <param name="suffix" type="java.lang.String"/>
  6120. <doc>
  6121. <![CDATA[Adds a suffix to the final name in the path.]]>
  6122. </doc>
  6123. </method>
  6124. <method name="toString" return="java.lang.String"
  6125. abstract="false" native="false" synchronized="false"
  6126. static="false" final="false" visibility="public"
  6127. deprecated="not deprecated">
  6128. </method>
  6129. <method name="equals" return="boolean"
  6130. abstract="false" native="false" synchronized="false"
  6131. static="false" final="false" visibility="public"
  6132. deprecated="not deprecated">
  6133. <param name="o" type="java.lang.Object"/>
  6134. </method>
  6135. <method name="hashCode" return="int"
  6136. abstract="false" native="false" synchronized="false"
  6137. static="false" final="false" visibility="public"
  6138. deprecated="not deprecated">
  6139. </method>
  6140. <method name="compareTo" return="int"
  6141. abstract="false" native="false" synchronized="false"
  6142. static="false" final="false" visibility="public"
  6143. deprecated="not deprecated">
  6144. <param name="o" type="java.lang.Object"/>
  6145. </method>
  6146. <method name="depth" return="int"
  6147. abstract="false" native="false" synchronized="false"
  6148. static="false" final="false" visibility="public"
  6149. deprecated="not deprecated">
  6150. <doc>
  6151. <![CDATA[Return the number of elements in this path.]]>
  6152. </doc>
  6153. </method>
  6154. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6155. abstract="false" native="false" synchronized="false"
  6156. static="false" final="false" visibility="public"
  6157. deprecated="not deprecated">
  6158. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  6159. <doc>
  6160. <![CDATA[Returns a qualified path object.]]>
  6161. </doc>
  6162. </method>
  6163. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6164. abstract="false" native="false" synchronized="false"
  6165. static="false" final="false" visibility="public"
  6166. deprecated="not deprecated">
  6167. <param name="defaultUri" type="java.net.URI"/>
  6168. <param name="workingDir" type="org.apache.hadoop.fs.Path"/>
  6169. <doc>
  6170. <![CDATA[Returns a qualified path object.]]>
  6171. </doc>
  6172. </method>
  6173. <field name="SEPARATOR" type="java.lang.String"
  6174. transient="false" volatile="false"
  6175. static="true" final="true" visibility="public"
  6176. deprecated="not deprecated">
  6177. <doc>
  6178. <![CDATA[The directory separator, a slash.]]>
  6179. </doc>
  6180. </field>
  6181. <field name="SEPARATOR_CHAR" type="char"
  6182. transient="false" volatile="false"
  6183. static="true" final="true" visibility="public"
  6184. deprecated="not deprecated">
  6185. </field>
  6186. <field name="CUR_DIR" type="java.lang.String"
  6187. transient="false" volatile="false"
  6188. static="true" final="true" visibility="public"
  6189. deprecated="not deprecated">
  6190. </field>
  6191. <doc>
  6192. <![CDATA[Names a file or directory in a {@link FileSystem}.
  6193. Path strings use slash as the directory separator. A path string is
  6194. absolute if it begins with a slash.]]>
  6195. </doc>
  6196. </class>
  6197. <!-- end class org.apache.hadoop.fs.Path -->
  6198. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  6199. <interface name="PathFilter" abstract="true"
  6200. static="false" final="false" visibility="public"
  6201. deprecated="not deprecated">
  6202. <method name="accept" return="boolean"
  6203. abstract="false" native="false" synchronized="false"
  6204. static="false" final="false" visibility="public"
  6205. deprecated="not deprecated">
  6206. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6207. <doc>
  6208. <![CDATA[Tests whether or not the specified abstract pathname should be
  6209. included in a pathname list.
  6210. @param path The abstract pathname to be tested
  6211. @return <code>true</code> if and only if <code>pathname</code>
  6212. should be included]]>
  6213. </doc>
  6214. </method>
  6215. </interface>
  6216. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  6217. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  6218. <interface name="PositionedReadable" abstract="true"
  6219. static="false" final="false" visibility="public"
  6220. deprecated="not deprecated">
  6221. <method name="read" return="int"
  6222. abstract="false" native="false" synchronized="false"
  6223. static="false" final="false" visibility="public"
  6224. deprecated="not deprecated">
  6225. <param name="position" type="long"/>
  6226. <param name="buffer" type="byte[]"/>
  6227. <param name="offset" type="int"/>
  6228. <param name="length" type="int"/>
  6229. <exception name="IOException" type="java.io.IOException"/>
  6230. <doc>
  6231. <![CDATA[Read upto the specified number of bytes, from a given
  6232. position within a file, and return the number of bytes read. This does not
  6233. change the current offset of a file, and is thread-safe.]]>
  6234. </doc>
  6235. </method>
  6236. <method name="readFully"
  6237. abstract="false" native="false" synchronized="false"
  6238. static="false" final="false" visibility="public"
  6239. deprecated="not deprecated">
  6240. <param name="position" type="long"/>
  6241. <param name="buffer" type="byte[]"/>
  6242. <param name="offset" type="int"/>
  6243. <param name="length" type="int"/>
  6244. <exception name="IOException" type="java.io.IOException"/>
  6245. <doc>
  6246. <![CDATA[Read the specified number of bytes, from a given
  6247. position within a file. This does not
  6248. change the current offset of a file, and is thread-safe.]]>
  6249. </doc>
  6250. </method>
  6251. <method name="readFully"
  6252. abstract="false" native="false" synchronized="false"
  6253. static="false" final="false" visibility="public"
  6254. deprecated="not deprecated">
  6255. <param name="position" type="long"/>
  6256. <param name="buffer" type="byte[]"/>
  6257. <exception name="IOException" type="java.io.IOException"/>
  6258. <doc>
  6259. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  6260. position within a file. This does not
  6261. change the current offset of a file, and is thread-safe.]]>
  6262. </doc>
  6263. </method>
  6264. <doc>
  6265. <![CDATA[Stream that permits positional reading.]]>
  6266. </doc>
  6267. </interface>
  6268. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  6269. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  6270. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6271. abstract="false"
  6272. static="false" final="false" visibility="public"
  6273. deprecated="not deprecated">
  6274. <constructor name="RawLocalFileSystem"
  6275. static="false" final="false" visibility="public"
  6276. deprecated="not deprecated">
  6277. </constructor>
  6278. <method name="pathToFile" return="java.io.File"
  6279. abstract="false" native="false" synchronized="false"
  6280. static="false" final="false" visibility="public"
  6281. deprecated="not deprecated">
  6282. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6283. <doc>
  6284. <![CDATA[Convert a path to a File.]]>
  6285. </doc>
  6286. </method>
  6287. <method name="getUri" return="java.net.URI"
  6288. abstract="false" native="false" synchronized="false"
  6289. static="false" final="false" visibility="public"
  6290. deprecated="not deprecated">
  6291. </method>
  6292. <method name="initialize"
  6293. abstract="false" native="false" synchronized="false"
  6294. static="false" final="false" visibility="public"
  6295. deprecated="not deprecated">
  6296. <param name="uri" type="java.net.URI"/>
  6297. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6298. <exception name="IOException" type="java.io.IOException"/>
  6299. </method>
  6300. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6301. abstract="false" native="false" synchronized="false"
  6302. static="false" final="false" visibility="public"
  6303. deprecated="not deprecated">
  6304. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6305. <param name="bufferSize" type="int"/>
  6306. <exception name="IOException" type="java.io.IOException"/>
  6307. </method>
  6308. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6309. abstract="false" native="false" synchronized="false"
  6310. static="false" final="false" visibility="public"
  6311. deprecated="not deprecated">
  6312. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6313. <param name="bufferSize" type="int"/>
  6314. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6315. <exception name="IOException" type="java.io.IOException"/>
  6316. <doc>
  6317. <![CDATA[{@inheritDoc}]]>
  6318. </doc>
  6319. </method>
  6320. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6321. abstract="false" native="false" synchronized="false"
  6322. static="false" final="false" visibility="public"
  6323. deprecated="not deprecated">
  6324. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6325. <param name="overwrite" type="boolean"/>
  6326. <param name="bufferSize" type="int"/>
  6327. <param name="replication" type="short"/>
  6328. <param name="blockSize" type="long"/>
  6329. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6330. <exception name="IOException" type="java.io.IOException"/>
  6331. <doc>
  6332. <![CDATA[{@inheritDoc}]]>
  6333. </doc>
  6334. </method>
  6335. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6336. abstract="false" native="false" synchronized="false"
  6337. static="false" final="false" visibility="public"
  6338. deprecated="not deprecated">
  6339. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6340. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6341. <param name="overwrite" type="boolean"/>
  6342. <param name="bufferSize" type="int"/>
  6343. <param name="replication" type="short"/>
  6344. <param name="blockSize" type="long"/>
  6345. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6346. <exception name="IOException" type="java.io.IOException"/>
  6347. <doc>
  6348. <![CDATA[{@inheritDoc}]]>
  6349. </doc>
  6350. </method>
  6351. <method name="rename" return="boolean"
  6352. abstract="false" native="false" synchronized="false"
  6353. static="false" final="false" visibility="public"
  6354. deprecated="not deprecated">
  6355. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6356. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6357. <exception name="IOException" type="java.io.IOException"/>
  6358. </method>
  6359. <method name="delete" return="boolean"
  6360. abstract="false" native="false" synchronized="false"
  6361. static="false" final="false" visibility="public"
  6362. deprecated="not deprecated">
  6363. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6364. <exception name="IOException" type="java.io.IOException"/>
  6365. </method>
  6366. <method name="delete" return="boolean"
  6367. abstract="false" native="false" synchronized="false"
  6368. static="false" final="false" visibility="public"
  6369. deprecated="not deprecated">
  6370. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6371. <param name="recursive" type="boolean"/>
  6372. <exception name="IOException" type="java.io.IOException"/>
  6373. </method>
  6374. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6375. abstract="false" native="false" synchronized="false"
  6376. static="false" final="false" visibility="public"
  6377. deprecated="not deprecated">
  6378. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6379. <exception name="IOException" type="java.io.IOException"/>
  6380. </method>
  6381. <method name="mkdirs" return="boolean"
  6382. abstract="false" native="false" synchronized="false"
  6383. static="false" final="false" visibility="public"
  6384. deprecated="not deprecated">
  6385. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6386. <exception name="IOException" type="java.io.IOException"/>
  6387. <doc>
  6388. <![CDATA[Creates the specified directory hierarchy. Does not
  6389. treat existence as an error.]]>
  6390. </doc>
  6391. </method>
  6392. <method name="mkdirs" return="boolean"
  6393. abstract="false" native="false" synchronized="false"
  6394. static="false" final="false" visibility="public"
  6395. deprecated="not deprecated">
  6396. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6397. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6398. <exception name="IOException" type="java.io.IOException"/>
  6399. <doc>
  6400. <![CDATA[{@inheritDoc}]]>
  6401. </doc>
  6402. </method>
  6403. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6404. abstract="false" native="false" synchronized="false"
  6405. static="false" final="false" visibility="public"
  6406. deprecated="not deprecated">
  6407. </method>
  6408. <method name="setWorkingDirectory"
  6409. abstract="false" native="false" synchronized="false"
  6410. static="false" final="false" visibility="public"
  6411. deprecated="not deprecated">
  6412. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6413. <doc>
  6414. <![CDATA[Set the working directory to the given directory.]]>
  6415. </doc>
  6416. </method>
  6417. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6418. abstract="false" native="false" synchronized="false"
  6419. static="false" final="false" visibility="public"
  6420. deprecated="not deprecated">
  6421. </method>
  6422. <method name="moveFromLocalFile"
  6423. abstract="false" native="false" synchronized="false"
  6424. static="false" final="false" visibility="public"
  6425. deprecated="not deprecated">
  6426. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6427. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6428. <exception name="IOException" type="java.io.IOException"/>
  6429. </method>
  6430. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6431. abstract="false" native="false" synchronized="false"
  6432. static="false" final="false" visibility="public"
  6433. deprecated="not deprecated">
  6434. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6435. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6436. <exception name="IOException" type="java.io.IOException"/>
  6437. </method>
  6438. <method name="completeLocalOutput"
  6439. abstract="false" native="false" synchronized="false"
  6440. static="false" final="false" visibility="public"
  6441. deprecated="not deprecated">
  6442. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  6443. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6444. <exception name="IOException" type="java.io.IOException"/>
  6445. </method>
  6446. <method name="close"
  6447. abstract="false" native="false" synchronized="false"
  6448. static="false" final="false" visibility="public"
  6449. deprecated="not deprecated">
  6450. <exception name="IOException" type="java.io.IOException"/>
  6451. </method>
  6452. <method name="toString" return="java.lang.String"
  6453. abstract="false" native="false" synchronized="false"
  6454. static="false" final="false" visibility="public"
  6455. deprecated="not deprecated">
  6456. </method>
  6457. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6458. abstract="false" native="false" synchronized="false"
  6459. static="false" final="false" visibility="public"
  6460. deprecated="not deprecated">
  6461. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6462. <exception name="IOException" type="java.io.IOException"/>
  6463. </method>
  6464. <method name="setOwner"
  6465. abstract="false" native="false" synchronized="false"
  6466. static="false" final="false" visibility="public"
  6467. deprecated="not deprecated">
  6468. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6469. <param name="username" type="java.lang.String"/>
  6470. <param name="groupname" type="java.lang.String"/>
  6471. <exception name="IOException" type="java.io.IOException"/>
  6472. <doc>
  6473. <![CDATA[Use the command chown to set owner.]]>
  6474. </doc>
  6475. </method>
  6476. <method name="setPermission"
  6477. abstract="false" native="false" synchronized="false"
  6478. static="false" final="false" visibility="public"
  6479. deprecated="not deprecated">
  6480. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6481. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6482. <exception name="IOException" type="java.io.IOException"/>
  6483. <doc>
  6484. <![CDATA[Use the command chmod to set permission.]]>
  6485. </doc>
  6486. </method>
  6487. <doc>
  6488. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  6489. </doc>
  6490. </class>
  6491. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  6492. <!-- start interface org.apache.hadoop.fs.Seekable -->
  6493. <interface name="Seekable" abstract="true"
  6494. static="false" final="false" visibility="public"
  6495. deprecated="not deprecated">
  6496. <method name="seek"
  6497. abstract="false" native="false" synchronized="false"
  6498. static="false" final="false" visibility="public"
  6499. deprecated="not deprecated">
  6500. <param name="pos" type="long"/>
  6501. <exception name="IOException" type="java.io.IOException"/>
  6502. <doc>
  6503. <![CDATA[Seek to the given offset from the start of the file.
  6504. The next read() will be from that location. Can't
  6505. seek past the end of the file.]]>
  6506. </doc>
  6507. </method>
  6508. <method name="getPos" return="long"
  6509. abstract="false" native="false" synchronized="false"
  6510. static="false" final="false" visibility="public"
  6511. deprecated="not deprecated">
  6512. <exception name="IOException" type="java.io.IOException"/>
  6513. <doc>
  6514. <![CDATA[Return the current offset from the start of the file]]>
  6515. </doc>
  6516. </method>
  6517. <method name="seekToNewSource" return="boolean"
  6518. abstract="false" native="false" synchronized="false"
  6519. static="false" final="false" visibility="public"
  6520. deprecated="not deprecated">
  6521. <param name="targetPos" type="long"/>
  6522. <exception name="IOException" type="java.io.IOException"/>
  6523. <doc>
  6524. <![CDATA[Seeks a different copy of the data. Returns true if
  6525. found a new source, false otherwise.]]>
  6526. </doc>
  6527. </method>
  6528. <doc>
  6529. <![CDATA[Stream that permits seeking.]]>
  6530. </doc>
  6531. </interface>
  6532. <!-- end interface org.apache.hadoop.fs.Seekable -->
  6533. <!-- start interface org.apache.hadoop.fs.Syncable -->
  6534. <interface name="Syncable" abstract="true"
  6535. static="false" final="false" visibility="public"
  6536. deprecated="not deprecated">
  6537. <method name="sync"
  6538. abstract="false" native="false" synchronized="false"
  6539. static="false" final="false" visibility="public"
  6540. deprecated="not deprecated">
  6541. <exception name="IOException" type="java.io.IOException"/>
  6542. <doc>
  6543. <![CDATA[Synchronize all buffer with the underlying devices.
  6544. @throws IOException]]>
  6545. </doc>
  6546. </method>
  6547. <doc>
  6548. <![CDATA[This interface declare the sync() operation.]]>
  6549. </doc>
  6550. </interface>
  6551. <!-- end interface org.apache.hadoop.fs.Syncable -->
  6552. <!-- start class org.apache.hadoop.fs.Trash -->
  6553. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  6554. abstract="false"
  6555. static="false" final="false" visibility="public"
  6556. deprecated="not deprecated">
  6557. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  6558. static="false" final="false" visibility="public"
  6559. deprecated="not deprecated">
  6560. <exception name="IOException" type="java.io.IOException"/>
  6561. <doc>
  6562. <![CDATA[Construct a trash can accessor.
  6563. @param conf a Configuration]]>
  6564. </doc>
  6565. </constructor>
  6566. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  6567. static="false" final="false" visibility="public"
  6568. deprecated="not deprecated">
  6569. <exception name="IOException" type="java.io.IOException"/>
  6570. <doc>
  6571. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  6572. </doc>
  6573. </constructor>
  6574. <method name="moveToTrash" return="boolean"
  6575. abstract="false" native="false" synchronized="false"
  6576. static="false" final="false" visibility="public"
  6577. deprecated="not deprecated">
  6578. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6579. <exception name="IOException" type="java.io.IOException"/>
  6580. <doc>
  6581. <![CDATA[Move a file or directory to the current trash directory.
  6582. @return false if the item is already in the trash or trash is disabled]]>
  6583. </doc>
  6584. </method>
  6585. <method name="checkpoint"
  6586. abstract="false" native="false" synchronized="false"
  6587. static="false" final="false" visibility="public"
  6588. deprecated="not deprecated">
  6589. <exception name="IOException" type="java.io.IOException"/>
  6590. <doc>
  6591. <![CDATA[Create a trash checkpoint.]]>
  6592. </doc>
  6593. </method>
  6594. <method name="expunge"
  6595. abstract="false" native="false" synchronized="false"
  6596. static="false" final="false" visibility="public"
  6597. deprecated="not deprecated">
  6598. <exception name="IOException" type="java.io.IOException"/>
  6599. <doc>
  6600. <![CDATA[Delete old checkpoints.]]>
  6601. </doc>
  6602. </method>
  6603. <method name="getEmptier" return="java.lang.Runnable"
  6604. abstract="false" native="false" synchronized="false"
  6605. static="false" final="false" visibility="public"
  6606. deprecated="not deprecated">
  6607. <exception name="IOException" type="java.io.IOException"/>
  6608. <doc>
  6609. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  6610. users, intended to be run by the superuser. Only one checkpoint is kept
  6611. at a time.]]>
  6612. </doc>
  6613. </method>
  6614. <method name="main"
  6615. abstract="false" native="false" synchronized="false"
  6616. static="true" final="false" visibility="public"
  6617. deprecated="not deprecated">
  6618. <param name="args" type="java.lang.String[]"/>
  6619. <exception name="Exception" type="java.lang.Exception"/>
  6620. <doc>
  6621. <![CDATA[Run an emptier.]]>
  6622. </doc>
  6623. </method>
  6624. <doc>
  6625. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  6626. directory, a subdirectory of their home directory named ".Trash". Files are
  6627. initially moved to a <i>current</i> sub-directory of the trash directory.
  6628. Within that sub-directory their original path is preserved. Periodically
  6629. one may checkpoint the current trash and remove older checkpoints. (This
  6630. design permits trash management without enumeration of the full trash
  6631. content, without date support in the filesystem, and without clock
  6632. synchronization.)]]>
  6633. </doc>
  6634. </class>
  6635. <!-- end class org.apache.hadoop.fs.Trash -->
  6636. </package>
  6637. <package name="org.apache.hadoop.fs.ftp">
  6638. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  6639. <class name="FTPException" extends="java.lang.RuntimeException"
  6640. abstract="false"
  6641. static="false" final="false" visibility="public"
  6642. deprecated="not deprecated">
  6643. <constructor name="FTPException" type="java.lang.String"
  6644. static="false" final="false" visibility="public"
  6645. deprecated="not deprecated">
  6646. </constructor>
  6647. <constructor name="FTPException" type="java.lang.Throwable"
  6648. static="false" final="false" visibility="public"
  6649. deprecated="not deprecated">
  6650. </constructor>
  6651. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  6652. static="false" final="false" visibility="public"
  6653. deprecated="not deprecated">
  6654. </constructor>
  6655. <doc>
  6656. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  6657. </doc>
  6658. </class>
  6659. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  6660. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6661. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6662. abstract="false"
  6663. static="false" final="false" visibility="public"
  6664. deprecated="not deprecated">
  6665. <constructor name="FTPFileSystem"
  6666. static="false" final="false" visibility="public"
  6667. deprecated="not deprecated">
  6668. </constructor>
  6669. <method name="initialize"
  6670. abstract="false" native="false" synchronized="false"
  6671. static="false" final="false" visibility="public"
  6672. deprecated="not deprecated">
  6673. <param name="uri" type="java.net.URI"/>
  6674. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6675. <exception name="IOException" type="java.io.IOException"/>
  6676. </method>
  6677. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6678. abstract="false" native="false" synchronized="false"
  6679. static="false" final="false" visibility="public"
  6680. deprecated="not deprecated">
  6681. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6682. <param name="bufferSize" type="int"/>
  6683. <exception name="IOException" type="java.io.IOException"/>
  6684. </method>
  6685. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6686. abstract="false" native="false" synchronized="false"
  6687. static="false" final="false" visibility="public"
  6688. deprecated="not deprecated">
  6689. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6690. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6691. <param name="overwrite" type="boolean"/>
  6692. <param name="bufferSize" type="int"/>
  6693. <param name="replication" type="short"/>
  6694. <param name="blockSize" type="long"/>
  6695. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6696. <exception name="IOException" type="java.io.IOException"/>
  6697. <doc>
  6698. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  6699. this class or else the invocation will block.]]>
  6700. </doc>
  6701. </method>
  6702. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6703. abstract="false" native="false" synchronized="false"
  6704. static="false" final="false" visibility="public"
  6705. deprecated="not deprecated">
  6706. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6707. <param name="bufferSize" type="int"/>
  6708. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6709. <exception name="IOException" type="java.io.IOException"/>
  6710. <doc>
  6711. <![CDATA[This optional operation is not yet supported.]]>
  6712. </doc>
  6713. </method>
  6714. <method name="delete" return="boolean"
  6715. abstract="false" native="false" synchronized="false"
  6716. static="false" final="false" visibility="public"
  6717. deprecated="Use delete(Path, boolean) instead">
  6718. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6719. <exception name="IOException" type="java.io.IOException"/>
  6720. <doc>
  6721. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  6722. </doc>
  6723. </method>
  6724. <method name="delete" return="boolean"
  6725. abstract="false" native="false" synchronized="false"
  6726. static="false" final="false" visibility="public"
  6727. deprecated="not deprecated">
  6728. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6729. <param name="recursive" type="boolean"/>
  6730. <exception name="IOException" type="java.io.IOException"/>
  6731. </method>
  6732. <method name="getUri" return="java.net.URI"
  6733. abstract="false" native="false" synchronized="false"
  6734. static="false" final="false" visibility="public"
  6735. deprecated="not deprecated">
  6736. </method>
  6737. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6738. abstract="false" native="false" synchronized="false"
  6739. static="false" final="false" visibility="public"
  6740. deprecated="not deprecated">
  6741. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6742. <exception name="IOException" type="java.io.IOException"/>
  6743. </method>
  6744. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6745. abstract="false" native="false" synchronized="false"
  6746. static="false" final="false" visibility="public"
  6747. deprecated="not deprecated">
  6748. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6749. <exception name="IOException" type="java.io.IOException"/>
  6750. </method>
  6751. <method name="mkdirs" return="boolean"
  6752. abstract="false" native="false" synchronized="false"
  6753. static="false" final="false" visibility="public"
  6754. deprecated="not deprecated">
  6755. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6756. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6757. <exception name="IOException" type="java.io.IOException"/>
  6758. </method>
  6759. <method name="rename" return="boolean"
  6760. abstract="false" native="false" synchronized="false"
  6761. static="false" final="false" visibility="public"
  6762. deprecated="not deprecated">
  6763. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6764. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6765. <exception name="IOException" type="java.io.IOException"/>
  6766. </method>
  6767. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6768. abstract="false" native="false" synchronized="false"
  6769. static="false" final="false" visibility="public"
  6770. deprecated="not deprecated">
  6771. </method>
  6772. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6773. abstract="false" native="false" synchronized="false"
  6774. static="false" final="false" visibility="public"
  6775. deprecated="not deprecated">
  6776. </method>
  6777. <method name="setWorkingDirectory"
  6778. abstract="false" native="false" synchronized="false"
  6779. static="false" final="false" visibility="public"
  6780. deprecated="not deprecated">
  6781. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6782. </method>
  6783. <field name="LOG" type="org.apache.commons.logging.Log"
  6784. transient="false" volatile="false"
  6785. static="true" final="true" visibility="public"
  6786. deprecated="not deprecated">
  6787. </field>
  6788. <field name="DEFAULT_BUFFER_SIZE" type="int"
  6789. transient="false" volatile="false"
  6790. static="true" final="true" visibility="public"
  6791. deprecated="not deprecated">
  6792. </field>
  6793. <field name="DEFAULT_BLOCK_SIZE" type="int"
  6794. transient="false" volatile="false"
  6795. static="true" final="true" visibility="public"
  6796. deprecated="not deprecated">
  6797. </field>
  6798. <doc>
  6799. <![CDATA[<p>
  6800. A {@link FileSystem} backed by an FTP client provided by <a
  6801. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  6802. </p>]]>
  6803. </doc>
  6804. </class>
  6805. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6806. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6807. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  6808. abstract="false"
  6809. static="false" final="false" visibility="public"
  6810. deprecated="not deprecated">
  6811. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  6812. static="false" final="false" visibility="public"
  6813. deprecated="not deprecated">
  6814. </constructor>
  6815. <method name="getPos" return="long"
  6816. abstract="false" native="false" synchronized="false"
  6817. static="false" final="false" visibility="public"
  6818. deprecated="not deprecated">
  6819. <exception name="IOException" type="java.io.IOException"/>
  6820. </method>
  6821. <method name="seek"
  6822. abstract="false" native="false" synchronized="false"
  6823. static="false" final="false" visibility="public"
  6824. deprecated="not deprecated">
  6825. <param name="pos" type="long"/>
  6826. <exception name="IOException" type="java.io.IOException"/>
  6827. </method>
  6828. <method name="seekToNewSource" return="boolean"
  6829. abstract="false" native="false" synchronized="false"
  6830. static="false" final="false" visibility="public"
  6831. deprecated="not deprecated">
  6832. <param name="targetPos" type="long"/>
  6833. <exception name="IOException" type="java.io.IOException"/>
  6834. </method>
  6835. <method name="read" return="int"
  6836. abstract="false" native="false" synchronized="true"
  6837. static="false" final="false" visibility="public"
  6838. deprecated="not deprecated">
  6839. <exception name="IOException" type="java.io.IOException"/>
  6840. </method>
  6841. <method name="read" return="int"
  6842. abstract="false" native="false" synchronized="true"
  6843. static="false" final="false" visibility="public"
  6844. deprecated="not deprecated">
  6845. <param name="buf" type="byte[]"/>
  6846. <param name="off" type="int"/>
  6847. <param name="len" type="int"/>
  6848. <exception name="IOException" type="java.io.IOException"/>
  6849. </method>
  6850. <method name="close"
  6851. abstract="false" native="false" synchronized="true"
  6852. static="false" final="false" visibility="public"
  6853. deprecated="not deprecated">
  6854. <exception name="IOException" type="java.io.IOException"/>
  6855. </method>
  6856. <method name="markSupported" return="boolean"
  6857. abstract="false" native="false" synchronized="false"
  6858. static="false" final="false" visibility="public"
  6859. deprecated="not deprecated">
  6860. </method>
  6861. <method name="mark"
  6862. abstract="false" native="false" synchronized="false"
  6863. static="false" final="false" visibility="public"
  6864. deprecated="not deprecated">
  6865. <param name="readLimit" type="int"/>
  6866. </method>
  6867. <method name="reset"
  6868. abstract="false" native="false" synchronized="false"
  6869. static="false" final="false" visibility="public"
  6870. deprecated="not deprecated">
  6871. <exception name="IOException" type="java.io.IOException"/>
  6872. </method>
  6873. </class>
  6874. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6875. </package>
  6876. <package name="org.apache.hadoop.fs.kfs">
  6877. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  6878. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6879. abstract="false"
  6880. static="false" final="false" visibility="public"
  6881. deprecated="not deprecated">
  6882. <constructor name="KosmosFileSystem"
  6883. static="false" final="false" visibility="public"
  6884. deprecated="not deprecated">
  6885. </constructor>
  6886. <method name="getUri" return="java.net.URI"
  6887. abstract="false" native="false" synchronized="false"
  6888. static="false" final="false" visibility="public"
  6889. deprecated="not deprecated">
  6890. </method>
  6891. <method name="initialize"
  6892. abstract="false" native="false" synchronized="false"
  6893. static="false" final="false" visibility="public"
  6894. deprecated="not deprecated">
  6895. <param name="uri" type="java.net.URI"/>
  6896. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6897. <exception name="IOException" type="java.io.IOException"/>
  6898. </method>
  6899. <method name="getName" return="java.lang.String"
  6900. abstract="false" native="false" synchronized="false"
  6901. static="false" final="false" visibility="public"
  6902. deprecated="not deprecated">
  6903. </method>
  6904. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6905. abstract="false" native="false" synchronized="false"
  6906. static="false" final="false" visibility="public"
  6907. deprecated="not deprecated">
  6908. </method>
  6909. <method name="setWorkingDirectory"
  6910. abstract="false" native="false" synchronized="false"
  6911. static="false" final="false" visibility="public"
  6912. deprecated="not deprecated">
  6913. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6914. </method>
  6915. <method name="mkdirs" return="boolean"
  6916. abstract="false" native="false" synchronized="false"
  6917. static="false" final="false" visibility="public"
  6918. deprecated="not deprecated">
  6919. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6920. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6921. <exception name="IOException" type="java.io.IOException"/>
  6922. </method>
  6923. <method name="isDirectory" return="boolean"
  6924. abstract="false" native="false" synchronized="false"
  6925. static="false" final="false" visibility="public"
  6926. deprecated="not deprecated">
  6927. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6928. <exception name="IOException" type="java.io.IOException"/>
  6929. </method>
  6930. <method name="isFile" return="boolean"
  6931. abstract="false" native="false" synchronized="false"
  6932. static="false" final="false" visibility="public"
  6933. deprecated="not deprecated">
  6934. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6935. <exception name="IOException" type="java.io.IOException"/>
  6936. </method>
  6937. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6938. abstract="false" native="false" synchronized="false"
  6939. static="false" final="false" visibility="public"
  6940. deprecated="not deprecated">
  6941. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6942. <exception name="IOException" type="java.io.IOException"/>
  6943. </method>
  6944. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6945. abstract="false" native="false" synchronized="false"
  6946. static="false" final="false" visibility="public"
  6947. deprecated="not deprecated">
  6948. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6949. <exception name="IOException" type="java.io.IOException"/>
  6950. </method>
  6951. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6952. abstract="false" native="false" synchronized="false"
  6953. static="false" final="false" visibility="public"
  6954. deprecated="not deprecated">
  6955. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6956. <param name="bufferSize" type="int"/>
  6957. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6958. <exception name="IOException" type="java.io.IOException"/>
  6959. <doc>
  6960. <![CDATA[This optional operation is not yet supported.]]>
  6961. </doc>
  6962. </method>
  6963. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6964. abstract="false" native="false" synchronized="false"
  6965. static="false" final="false" visibility="public"
  6966. deprecated="not deprecated">
  6967. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6968. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6969. <param name="overwrite" type="boolean"/>
  6970. <param name="bufferSize" type="int"/>
  6971. <param name="replication" type="short"/>
  6972. <param name="blockSize" type="long"/>
  6973. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6974. <exception name="IOException" type="java.io.IOException"/>
  6975. </method>
  6976. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6977. abstract="false" native="false" synchronized="false"
  6978. static="false" final="false" visibility="public"
  6979. deprecated="not deprecated">
  6980. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6981. <param name="bufferSize" type="int"/>
  6982. <exception name="IOException" type="java.io.IOException"/>
  6983. </method>
  6984. <method name="rename" return="boolean"
  6985. abstract="false" native="false" synchronized="false"
  6986. static="false" final="false" visibility="public"
  6987. deprecated="not deprecated">
  6988. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6989. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6990. <exception name="IOException" type="java.io.IOException"/>
  6991. </method>
  6992. <method name="delete" return="boolean"
  6993. abstract="false" native="false" synchronized="false"
  6994. static="false" final="false" visibility="public"
  6995. deprecated="not deprecated">
  6996. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6997. <param name="recursive" type="boolean"/>
  6998. <exception name="IOException" type="java.io.IOException"/>
  6999. </method>
  7000. <method name="delete" return="boolean"
  7001. abstract="false" native="false" synchronized="false"
  7002. static="false" final="false" visibility="public"
  7003. deprecated="not deprecated">
  7004. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7005. <exception name="IOException" type="java.io.IOException"/>
  7006. </method>
  7007. <method name="getLength" return="long"
  7008. abstract="false" native="false" synchronized="false"
  7009. static="false" final="false" visibility="public"
  7010. deprecated="not deprecated">
  7011. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7012. <exception name="IOException" type="java.io.IOException"/>
  7013. </method>
  7014. <method name="getReplication" return="short"
  7015. abstract="false" native="false" synchronized="false"
  7016. static="false" final="false" visibility="public"
  7017. deprecated="not deprecated">
  7018. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7019. <exception name="IOException" type="java.io.IOException"/>
  7020. </method>
  7021. <method name="getDefaultReplication" return="short"
  7022. abstract="false" native="false" synchronized="false"
  7023. static="false" final="false" visibility="public"
  7024. deprecated="not deprecated">
  7025. </method>
  7026. <method name="setReplication" return="boolean"
  7027. abstract="false" native="false" synchronized="false"
  7028. static="false" final="false" visibility="public"
  7029. deprecated="not deprecated">
  7030. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7031. <param name="replication" type="short"/>
  7032. <exception name="IOException" type="java.io.IOException"/>
  7033. </method>
  7034. <method name="getDefaultBlockSize" return="long"
  7035. abstract="false" native="false" synchronized="false"
  7036. static="false" final="false" visibility="public"
  7037. deprecated="not deprecated">
  7038. </method>
  7039. <method name="lock"
  7040. abstract="false" native="false" synchronized="false"
  7041. static="false" final="false" visibility="public"
  7042. deprecated="not deprecated">
  7043. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7044. <param name="shared" type="boolean"/>
  7045. <exception name="IOException" type="java.io.IOException"/>
  7046. </method>
  7047. <method name="release"
  7048. abstract="false" native="false" synchronized="false"
  7049. static="false" final="false" visibility="public"
  7050. deprecated="not deprecated">
  7051. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7052. <exception name="IOException" type="java.io.IOException"/>
  7053. </method>
  7054. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7055. abstract="false" native="false" synchronized="false"
  7056. static="false" final="false" visibility="public"
  7057. deprecated="not deprecated">
  7058. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7059. <param name="start" type="long"/>
  7060. <param name="len" type="long"/>
  7061. <exception name="IOException" type="java.io.IOException"/>
  7062. <doc>
  7063. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  7064. locations of the various chunks of the file file from KFS.]]>
  7065. </doc>
  7066. </method>
  7067. <method name="copyFromLocalFile"
  7068. abstract="false" native="false" synchronized="false"
  7069. static="false" final="false" visibility="public"
  7070. deprecated="not deprecated">
  7071. <param name="delSrc" type="boolean"/>
  7072. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7073. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7074. <exception name="IOException" type="java.io.IOException"/>
  7075. </method>
  7076. <method name="copyToLocalFile"
  7077. abstract="false" native="false" synchronized="false"
  7078. static="false" final="false" visibility="public"
  7079. deprecated="not deprecated">
  7080. <param name="delSrc" type="boolean"/>
  7081. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7082. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7083. <exception name="IOException" type="java.io.IOException"/>
  7084. </method>
  7085. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7086. abstract="false" native="false" synchronized="false"
  7087. static="false" final="false" visibility="public"
  7088. deprecated="not deprecated">
  7089. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7090. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7091. <exception name="IOException" type="java.io.IOException"/>
  7092. </method>
  7093. <method name="completeLocalOutput"
  7094. abstract="false" native="false" synchronized="false"
  7095. static="false" final="false" visibility="public"
  7096. deprecated="not deprecated">
  7097. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7098. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7099. <exception name="IOException" type="java.io.IOException"/>
  7100. </method>
  7101. <doc>
  7102. <![CDATA[A FileSystem backed by KFS.]]>
  7103. </doc>
  7104. </class>
  7105. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7106. </package>
  7107. <package name="org.apache.hadoop.fs.permission">
  7108. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  7109. <class name="AccessControlException" extends="java.io.IOException"
  7110. abstract="false"
  7111. static="false" final="false" visibility="public"
  7112. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  7113. instead.">
  7114. <constructor name="AccessControlException"
  7115. static="false" final="false" visibility="public"
  7116. deprecated="not deprecated">
  7117. <doc>
  7118. <![CDATA[Default constructor is needed for unwrapping from
  7119. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  7120. </doc>
  7121. </constructor>
  7122. <constructor name="AccessControlException" type="java.lang.String"
  7123. static="false" final="false" visibility="public"
  7124. deprecated="not deprecated">
  7125. <doc>
  7126. <![CDATA[Constructs an {@link AccessControlException}
  7127. with the specified detail message.
  7128. @param s the detail message.]]>
  7129. </doc>
  7130. </constructor>
  7131. <constructor name="AccessControlException" type="java.lang.Throwable"
  7132. static="false" final="false" visibility="public"
  7133. deprecated="not deprecated">
  7134. <doc>
  7135. <![CDATA[Constructs a new exception with the specified cause and a detail
  7136. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  7137. typically contains the class and detail message of <tt>cause</tt>).
  7138. @param cause the cause (which is saved for later retrieval by the
  7139. {@link #getCause()} method). (A <tt>null</tt> value is
  7140. permitted, and indicates that the cause is nonexistent or
  7141. unknown.)]]>
  7142. </doc>
  7143. </constructor>
  7144. <doc>
  7145. <![CDATA[An exception class for access control related issues.
  7146. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  7147. instead.]]>
  7148. </doc>
  7149. </class>
  7150. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  7151. <!-- start class org.apache.hadoop.fs.permission.ChmodParser -->
  7152. <class name="ChmodParser" extends="org.apache.hadoop.fs.permission.PermissionParser"
  7153. abstract="false"
  7154. static="false" final="false" visibility="public"
  7155. deprecated="not deprecated">
  7156. <constructor name="ChmodParser" type="java.lang.String"
  7157. static="false" final="false" visibility="public"
  7158. deprecated="not deprecated">
  7159. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  7160. </constructor>
  7161. <method name="applyNewPermission" return="short"
  7162. abstract="false" native="false" synchronized="false"
  7163. static="false" final="false" visibility="public"
  7164. deprecated="not deprecated">
  7165. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7166. <doc>
  7167. <![CDATA[Apply permission against specified file and determine what the
  7168. new mode would be
  7169. @param file File against which to apply mode
  7170. @return File's new mode if applied.]]>
  7171. </doc>
  7172. </method>
  7173. <doc>
  7174. <![CDATA[Parse a permission mode passed in from a chmod command and apply that
  7175. mode against an existing file.]]>
  7176. </doc>
  7177. </class>
  7178. <!-- end class org.apache.hadoop.fs.permission.ChmodParser -->
  7179. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  7180. <class name="FsAction" extends="java.lang.Enum"
  7181. abstract="false"
  7182. static="false" final="true" visibility="public"
  7183. deprecated="not deprecated">
  7184. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  7185. abstract="false" native="false" synchronized="false"
  7186. static="true" final="false" visibility="public"
  7187. deprecated="not deprecated">
  7188. </method>
  7189. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  7190. abstract="false" native="false" synchronized="false"
  7191. static="true" final="false" visibility="public"
  7192. deprecated="not deprecated">
  7193. <param name="name" type="java.lang.String"/>
  7194. </method>
  7195. <method name="implies" return="boolean"
  7196. abstract="false" native="false" synchronized="false"
  7197. static="false" final="false" visibility="public"
  7198. deprecated="not deprecated">
  7199. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7200. <doc>
  7201. <![CDATA[Return true if this action implies that action.
  7202. @param that]]>
  7203. </doc>
  7204. </method>
  7205. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  7206. abstract="false" native="false" synchronized="false"
  7207. static="false" final="false" visibility="public"
  7208. deprecated="not deprecated">
  7209. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7210. <doc>
  7211. <![CDATA[AND operation.]]>
  7212. </doc>
  7213. </method>
  7214. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  7215. abstract="false" native="false" synchronized="false"
  7216. static="false" final="false" visibility="public"
  7217. deprecated="not deprecated">
  7218. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7219. <doc>
  7220. <![CDATA[OR operation.]]>
  7221. </doc>
  7222. </method>
  7223. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  7224. abstract="false" native="false" synchronized="false"
  7225. static="false" final="false" visibility="public"
  7226. deprecated="not deprecated">
  7227. <doc>
  7228. <![CDATA[NOT operation.]]>
  7229. </doc>
  7230. </method>
  7231. <field name="NONE" type="org.apache.hadoop.fs.permission.FsAction"
  7232. transient="false" volatile="false"
  7233. static="true" final="true" visibility="public"
  7234. deprecated="not deprecated">
  7235. </field>
  7236. <field name="EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7237. transient="false" volatile="false"
  7238. static="true" final="true" visibility="public"
  7239. deprecated="not deprecated">
  7240. </field>
  7241. <field name="WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7242. transient="false" volatile="false"
  7243. static="true" final="true" visibility="public"
  7244. deprecated="not deprecated">
  7245. </field>
  7246. <field name="WRITE_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7247. transient="false" volatile="false"
  7248. static="true" final="true" visibility="public"
  7249. deprecated="not deprecated">
  7250. </field>
  7251. <field name="READ" type="org.apache.hadoop.fs.permission.FsAction"
  7252. transient="false" volatile="false"
  7253. static="true" final="true" visibility="public"
  7254. deprecated="not deprecated">
  7255. </field>
  7256. <field name="READ_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7257. transient="false" volatile="false"
  7258. static="true" final="true" visibility="public"
  7259. deprecated="not deprecated">
  7260. </field>
  7261. <field name="READ_WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7262. transient="false" volatile="false"
  7263. static="true" final="true" visibility="public"
  7264. deprecated="not deprecated">
  7265. </field>
  7266. <field name="ALL" type="org.apache.hadoop.fs.permission.FsAction"
  7267. transient="false" volatile="false"
  7268. static="true" final="true" visibility="public"
  7269. deprecated="not deprecated">
  7270. </field>
  7271. <field name="SYMBOL" type="java.lang.String"
  7272. transient="false" volatile="false"
  7273. static="false" final="true" visibility="public"
  7274. deprecated="not deprecated">
  7275. <doc>
  7276. <![CDATA[Symbolic representation]]>
  7277. </doc>
  7278. </field>
  7279. <doc>
  7280. <![CDATA[File system actions, e.g. read, write, etc.]]>
  7281. </doc>
  7282. </class>
  7283. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  7284. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  7285. <class name="FsPermission" extends="java.lang.Object"
  7286. abstract="false"
  7287. static="false" final="false" visibility="public"
  7288. deprecated="not deprecated">
  7289. <implements name="org.apache.hadoop.io.Writable"/>
  7290. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  7291. static="false" final="false" visibility="public"
  7292. deprecated="not deprecated">
  7293. <doc>
  7294. <![CDATA[Construct by the given {@link FsAction}.
  7295. @param u user action
  7296. @param g group action
  7297. @param o other action]]>
  7298. </doc>
  7299. </constructor>
  7300. <constructor name="FsPermission" type="short"
  7301. static="false" final="false" visibility="public"
  7302. deprecated="not deprecated">
  7303. <doc>
  7304. <![CDATA[Construct by the given mode.
  7305. @param mode
  7306. @see #toShort()]]>
  7307. </doc>
  7308. </constructor>
  7309. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  7310. static="false" final="false" visibility="public"
  7311. deprecated="not deprecated">
  7312. <doc>
  7313. <![CDATA[Copy constructor
  7314. @param other other permission]]>
  7315. </doc>
  7316. </constructor>
  7317. <constructor name="FsPermission" type="java.lang.String"
  7318. static="false" final="false" visibility="public"
  7319. deprecated="not deprecated">
  7320. <doc>
  7321. <![CDATA[Construct by given mode, either in octal or symbolic format.
  7322. @param mode mode as a string, either in octal or symbolic format
  7323. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  7324. </doc>
  7325. </constructor>
  7326. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  7327. abstract="false" native="false" synchronized="false"
  7328. static="true" final="false" visibility="public"
  7329. deprecated="not deprecated">
  7330. <param name="permission" type="short"/>
  7331. <doc>
  7332. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  7333. </doc>
  7334. </method>
  7335. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  7336. abstract="false" native="false" synchronized="false"
  7337. static="false" final="false" visibility="public"
  7338. deprecated="not deprecated">
  7339. <doc>
  7340. <![CDATA[Return user {@link FsAction}.]]>
  7341. </doc>
  7342. </method>
  7343. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  7344. abstract="false" native="false" synchronized="false"
  7345. static="false" final="false" visibility="public"
  7346. deprecated="not deprecated">
  7347. <doc>
  7348. <![CDATA[Return group {@link FsAction}.]]>
  7349. </doc>
  7350. </method>
  7351. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  7352. abstract="false" native="false" synchronized="false"
  7353. static="false" final="false" visibility="public"
  7354. deprecated="not deprecated">
  7355. <doc>
  7356. <![CDATA[Return other {@link FsAction}.]]>
  7357. </doc>
  7358. </method>
  7359. <method name="fromShort"
  7360. abstract="false" native="false" synchronized="false"
  7361. static="false" final="false" visibility="public"
  7362. deprecated="not deprecated">
  7363. <param name="n" type="short"/>
  7364. </method>
  7365. <method name="write"
  7366. abstract="false" native="false" synchronized="false"
  7367. static="false" final="false" visibility="public"
  7368. deprecated="not deprecated">
  7369. <param name="out" type="java.io.DataOutput"/>
  7370. <exception name="IOException" type="java.io.IOException"/>
  7371. <doc>
  7372. <![CDATA[{@inheritDoc}]]>
  7373. </doc>
  7374. </method>
  7375. <method name="readFields"
  7376. abstract="false" native="false" synchronized="false"
  7377. static="false" final="false" visibility="public"
  7378. deprecated="not deprecated">
  7379. <param name="in" type="java.io.DataInput"/>
  7380. <exception name="IOException" type="java.io.IOException"/>
  7381. <doc>
  7382. <![CDATA[{@inheritDoc}]]>
  7383. </doc>
  7384. </method>
  7385. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  7386. abstract="false" native="false" synchronized="false"
  7387. static="true" final="false" visibility="public"
  7388. deprecated="not deprecated">
  7389. <param name="in" type="java.io.DataInput"/>
  7390. <exception name="IOException" type="java.io.IOException"/>
  7391. <doc>
  7392. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  7393. </doc>
  7394. </method>
  7395. <method name="toShort" return="short"
  7396. abstract="false" native="false" synchronized="false"
  7397. static="false" final="false" visibility="public"
  7398. deprecated="not deprecated">
  7399. <doc>
  7400. <![CDATA[Encode the object to a short.]]>
  7401. </doc>
  7402. </method>
  7403. <method name="equals" return="boolean"
  7404. abstract="false" native="false" synchronized="false"
  7405. static="false" final="false" visibility="public"
  7406. deprecated="not deprecated">
  7407. <param name="obj" type="java.lang.Object"/>
  7408. <doc>
  7409. <![CDATA[{@inheritDoc}]]>
  7410. </doc>
  7411. </method>
  7412. <method name="hashCode" return="int"
  7413. abstract="false" native="false" synchronized="false"
  7414. static="false" final="false" visibility="public"
  7415. deprecated="not deprecated">
  7416. <doc>
  7417. <![CDATA[{@inheritDoc}]]>
  7418. </doc>
  7419. </method>
  7420. <method name="toString" return="java.lang.String"
  7421. abstract="false" native="false" synchronized="false"
  7422. static="false" final="false" visibility="public"
  7423. deprecated="not deprecated">
  7424. <doc>
  7425. <![CDATA[{@inheritDoc}]]>
  7426. </doc>
  7427. </method>
  7428. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7429. abstract="false" native="false" synchronized="false"
  7430. static="false" final="false" visibility="public"
  7431. deprecated="not deprecated">
  7432. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7433. <doc>
  7434. <![CDATA[Apply a umask to this permission and return a new one]]>
  7435. </doc>
  7436. </method>
  7437. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7438. abstract="false" native="false" synchronized="false"
  7439. static="true" final="false" visibility="public"
  7440. deprecated="not deprecated">
  7441. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7442. <doc>
  7443. <![CDATA[Get the user file creation mask (umask)
  7444. {@code UMASK_LABEL} config param has umask value that is either symbolic
  7445. or octal.
  7446. Symbolic umask is applied relative to file mode creation mask;
  7447. the permission op characters '+' clears the corresponding bit in the mask,
  7448. '-' sets bits in the mask.
  7449. Octal umask, the specified bits are set in the file mode creation mask.
  7450. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  7451. </doc>
  7452. </method>
  7453. <method name="setUMask"
  7454. abstract="false" native="false" synchronized="false"
  7455. static="true" final="false" visibility="public"
  7456. deprecated="not deprecated">
  7457. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7458. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7459. <doc>
  7460. <![CDATA[Set the user file creation mask (umask)]]>
  7461. </doc>
  7462. </method>
  7463. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  7464. abstract="false" native="false" synchronized="false"
  7465. static="true" final="false" visibility="public"
  7466. deprecated="not deprecated">
  7467. <doc>
  7468. <![CDATA[Get the default permission.]]>
  7469. </doc>
  7470. </method>
  7471. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  7472. abstract="false" native="false" synchronized="false"
  7473. static="true" final="false" visibility="public"
  7474. deprecated="not deprecated">
  7475. <param name="unixSymbolicPermission" type="java.lang.String"/>
  7476. <doc>
  7477. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  7478. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  7479. </doc>
  7480. </method>
  7481. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  7482. transient="false" volatile="false"
  7483. static="true" final="true" visibility="public"
  7484. deprecated="not deprecated">
  7485. <doc>
  7486. <![CDATA[umask property label]]>
  7487. </doc>
  7488. </field>
  7489. <field name="UMASK_LABEL" type="java.lang.String"
  7490. transient="false" volatile="false"
  7491. static="true" final="true" visibility="public"
  7492. deprecated="not deprecated">
  7493. </field>
  7494. <field name="DEFAULT_UMASK" type="int"
  7495. transient="false" volatile="false"
  7496. static="true" final="true" visibility="public"
  7497. deprecated="not deprecated">
  7498. </field>
  7499. <doc>
  7500. <![CDATA[A class for file/directory permissions.]]>
  7501. </doc>
  7502. </class>
  7503. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  7504. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  7505. <class name="PermissionStatus" extends="java.lang.Object"
  7506. abstract="false"
  7507. static="false" final="false" visibility="public"
  7508. deprecated="not deprecated">
  7509. <implements name="org.apache.hadoop.io.Writable"/>
  7510. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  7511. static="false" final="false" visibility="public"
  7512. deprecated="not deprecated">
  7513. <doc>
  7514. <![CDATA[Constructor]]>
  7515. </doc>
  7516. </constructor>
  7517. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7518. abstract="false" native="false" synchronized="false"
  7519. static="true" final="false" visibility="public"
  7520. deprecated="not deprecated">
  7521. <param name="user" type="java.lang.String"/>
  7522. <param name="group" type="java.lang.String"/>
  7523. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7524. <doc>
  7525. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  7526. </doc>
  7527. </method>
  7528. <method name="getUserName" return="java.lang.String"
  7529. abstract="false" native="false" synchronized="false"
  7530. static="false" final="false" visibility="public"
  7531. deprecated="not deprecated">
  7532. <doc>
  7533. <![CDATA[Return user name]]>
  7534. </doc>
  7535. </method>
  7536. <method name="getGroupName" return="java.lang.String"
  7537. abstract="false" native="false" synchronized="false"
  7538. static="false" final="false" visibility="public"
  7539. deprecated="not deprecated">
  7540. <doc>
  7541. <![CDATA[Return group name]]>
  7542. </doc>
  7543. </method>
  7544. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7545. abstract="false" native="false" synchronized="false"
  7546. static="false" final="false" visibility="public"
  7547. deprecated="not deprecated">
  7548. <doc>
  7549. <![CDATA[Return permission]]>
  7550. </doc>
  7551. </method>
  7552. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7553. abstract="false" native="false" synchronized="false"
  7554. static="false" final="false" visibility="public"
  7555. deprecated="not deprecated">
  7556. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7557. <doc>
  7558. <![CDATA[Apply umask.
  7559. @see FsPermission#applyUMask(FsPermission)]]>
  7560. </doc>
  7561. </method>
  7562. <method name="readFields"
  7563. abstract="false" native="false" synchronized="false"
  7564. static="false" final="false" visibility="public"
  7565. deprecated="not deprecated">
  7566. <param name="in" type="java.io.DataInput"/>
  7567. <exception name="IOException" type="java.io.IOException"/>
  7568. <doc>
  7569. <![CDATA[{@inheritDoc}]]>
  7570. </doc>
  7571. </method>
  7572. <method name="write"
  7573. abstract="false" native="false" synchronized="false"
  7574. static="false" final="false" visibility="public"
  7575. deprecated="not deprecated">
  7576. <param name="out" type="java.io.DataOutput"/>
  7577. <exception name="IOException" type="java.io.IOException"/>
  7578. <doc>
  7579. <![CDATA[{@inheritDoc}]]>
  7580. </doc>
  7581. </method>
  7582. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7583. abstract="false" native="false" synchronized="false"
  7584. static="true" final="false" visibility="public"
  7585. deprecated="not deprecated">
  7586. <param name="in" type="java.io.DataInput"/>
  7587. <exception name="IOException" type="java.io.IOException"/>
  7588. <doc>
  7589. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  7590. </doc>
  7591. </method>
  7592. <method name="write"
  7593. abstract="false" native="false" synchronized="false"
  7594. static="true" final="false" visibility="public"
  7595. deprecated="not deprecated">
  7596. <param name="out" type="java.io.DataOutput"/>
  7597. <param name="username" type="java.lang.String"/>
  7598. <param name="groupname" type="java.lang.String"/>
  7599. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7600. <exception name="IOException" type="java.io.IOException"/>
  7601. <doc>
  7602. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  7603. </doc>
  7604. </method>
  7605. <method name="toString" return="java.lang.String"
  7606. abstract="false" native="false" synchronized="false"
  7607. static="false" final="false" visibility="public"
  7608. deprecated="not deprecated">
  7609. <doc>
  7610. <![CDATA[{@inheritDoc}]]>
  7611. </doc>
  7612. </method>
  7613. <doc>
  7614. <![CDATA[Store permission related information.]]>
  7615. </doc>
  7616. </class>
  7617. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  7618. </package>
  7619. <package name="org.apache.hadoop.fs.s3">
  7620. <!-- start class org.apache.hadoop.fs.s3.Block -->
  7621. <class name="Block" extends="java.lang.Object"
  7622. abstract="false"
  7623. static="false" final="false" visibility="public"
  7624. deprecated="not deprecated">
  7625. <constructor name="Block" type="long, long"
  7626. static="false" final="false" visibility="public"
  7627. deprecated="not deprecated">
  7628. </constructor>
  7629. <method name="getId" return="long"
  7630. abstract="false" native="false" synchronized="false"
  7631. static="false" final="false" visibility="public"
  7632. deprecated="not deprecated">
  7633. </method>
  7634. <method name="getLength" return="long"
  7635. abstract="false" native="false" synchronized="false"
  7636. static="false" final="false" visibility="public"
  7637. deprecated="not deprecated">
  7638. </method>
  7639. <method name="toString" return="java.lang.String"
  7640. abstract="false" native="false" synchronized="false"
  7641. static="false" final="false" visibility="public"
  7642. deprecated="not deprecated">
  7643. </method>
  7644. <doc>
  7645. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  7646. </doc>
  7647. </class>
  7648. <!-- end class org.apache.hadoop.fs.s3.Block -->
  7649. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7650. <interface name="FileSystemStore" abstract="true"
  7651. static="false" final="false" visibility="public"
  7652. deprecated="not deprecated">
  7653. <method name="initialize"
  7654. abstract="false" native="false" synchronized="false"
  7655. static="false" final="false" visibility="public"
  7656. deprecated="not deprecated">
  7657. <param name="uri" type="java.net.URI"/>
  7658. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7659. <exception name="IOException" type="java.io.IOException"/>
  7660. </method>
  7661. <method name="getVersion" return="java.lang.String"
  7662. abstract="false" native="false" synchronized="false"
  7663. static="false" final="false" visibility="public"
  7664. deprecated="not deprecated">
  7665. <exception name="IOException" type="java.io.IOException"/>
  7666. </method>
  7667. <method name="storeINode"
  7668. abstract="false" native="false" synchronized="false"
  7669. static="false" final="false" visibility="public"
  7670. deprecated="not deprecated">
  7671. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7672. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  7673. <exception name="IOException" type="java.io.IOException"/>
  7674. </method>
  7675. <method name="storeBlock"
  7676. abstract="false" native="false" synchronized="false"
  7677. static="false" final="false" visibility="public"
  7678. deprecated="not deprecated">
  7679. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7680. <param name="file" type="java.io.File"/>
  7681. <exception name="IOException" type="java.io.IOException"/>
  7682. </method>
  7683. <method name="inodeExists" return="boolean"
  7684. abstract="false" native="false" synchronized="false"
  7685. static="false" final="false" visibility="public"
  7686. deprecated="not deprecated">
  7687. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7688. <exception name="IOException" type="java.io.IOException"/>
  7689. </method>
  7690. <method name="blockExists" return="boolean"
  7691. abstract="false" native="false" synchronized="false"
  7692. static="false" final="false" visibility="public"
  7693. deprecated="not deprecated">
  7694. <param name="blockId" type="long"/>
  7695. <exception name="IOException" type="java.io.IOException"/>
  7696. </method>
  7697. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  7698. abstract="false" native="false" synchronized="false"
  7699. static="false" final="false" visibility="public"
  7700. deprecated="not deprecated">
  7701. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7702. <exception name="IOException" type="java.io.IOException"/>
  7703. </method>
  7704. <method name="retrieveBlock" return="java.io.File"
  7705. abstract="false" native="false" synchronized="false"
  7706. static="false" final="false" visibility="public"
  7707. deprecated="not deprecated">
  7708. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7709. <param name="byteRangeStart" type="long"/>
  7710. <exception name="IOException" type="java.io.IOException"/>
  7711. </method>
  7712. <method name="deleteINode"
  7713. abstract="false" native="false" synchronized="false"
  7714. static="false" final="false" visibility="public"
  7715. deprecated="not deprecated">
  7716. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7717. <exception name="IOException" type="java.io.IOException"/>
  7718. </method>
  7719. <method name="deleteBlock"
  7720. abstract="false" native="false" synchronized="false"
  7721. static="false" final="false" visibility="public"
  7722. deprecated="not deprecated">
  7723. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7724. <exception name="IOException" type="java.io.IOException"/>
  7725. </method>
  7726. <method name="listSubPaths" return="java.util.Set"
  7727. abstract="false" native="false" synchronized="false"
  7728. static="false" final="false" visibility="public"
  7729. deprecated="not deprecated">
  7730. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7731. <exception name="IOException" type="java.io.IOException"/>
  7732. </method>
  7733. <method name="listDeepSubPaths" return="java.util.Set"
  7734. abstract="false" native="false" synchronized="false"
  7735. static="false" final="false" visibility="public"
  7736. deprecated="not deprecated">
  7737. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7738. <exception name="IOException" type="java.io.IOException"/>
  7739. </method>
  7740. <method name="purge"
  7741. abstract="false" native="false" synchronized="false"
  7742. static="false" final="false" visibility="public"
  7743. deprecated="not deprecated">
  7744. <exception name="IOException" type="java.io.IOException"/>
  7745. <doc>
  7746. <![CDATA[Delete everything. Used for testing.
  7747. @throws IOException]]>
  7748. </doc>
  7749. </method>
  7750. <method name="dump"
  7751. abstract="false" native="false" synchronized="false"
  7752. static="false" final="false" visibility="public"
  7753. deprecated="not deprecated">
  7754. <exception name="IOException" type="java.io.IOException"/>
  7755. <doc>
  7756. <![CDATA[Diagnostic method to dump all INodes to the console.
  7757. @throws IOException]]>
  7758. </doc>
  7759. </method>
  7760. <doc>
  7761. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  7762. </doc>
  7763. </interface>
  7764. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7765. <!-- start class org.apache.hadoop.fs.s3.INode -->
  7766. <class name="INode" extends="java.lang.Object"
  7767. abstract="false"
  7768. static="false" final="false" visibility="public"
  7769. deprecated="not deprecated">
  7770. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  7771. static="false" final="false" visibility="public"
  7772. deprecated="not deprecated">
  7773. </constructor>
  7774. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  7775. abstract="false" native="false" synchronized="false"
  7776. static="false" final="false" visibility="public"
  7777. deprecated="not deprecated">
  7778. </method>
  7779. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  7780. abstract="false" native="false" synchronized="false"
  7781. static="false" final="false" visibility="public"
  7782. deprecated="not deprecated">
  7783. </method>
  7784. <method name="isDirectory" return="boolean"
  7785. abstract="false" native="false" synchronized="false"
  7786. static="false" final="false" visibility="public"
  7787. deprecated="not deprecated">
  7788. </method>
  7789. <method name="isFile" return="boolean"
  7790. abstract="false" native="false" synchronized="false"
  7791. static="false" final="false" visibility="public"
  7792. deprecated="not deprecated">
  7793. </method>
  7794. <method name="getSerializedLength" return="long"
  7795. abstract="false" native="false" synchronized="false"
  7796. static="false" final="false" visibility="public"
  7797. deprecated="not deprecated">
  7798. </method>
  7799. <method name="serialize" return="java.io.InputStream"
  7800. abstract="false" native="false" synchronized="false"
  7801. static="false" final="false" visibility="public"
  7802. deprecated="not deprecated">
  7803. <exception name="IOException" type="java.io.IOException"/>
  7804. </method>
  7805. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  7806. abstract="false" native="false" synchronized="false"
  7807. static="true" final="false" visibility="public"
  7808. deprecated="not deprecated">
  7809. <param name="in" type="java.io.InputStream"/>
  7810. <exception name="IOException" type="java.io.IOException"/>
  7811. </method>
  7812. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  7813. transient="false" volatile="false"
  7814. static="true" final="true" visibility="public"
  7815. deprecated="not deprecated">
  7816. </field>
  7817. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  7818. transient="false" volatile="false"
  7819. static="true" final="true" visibility="public"
  7820. deprecated="not deprecated">
  7821. </field>
  7822. <doc>
  7823. <![CDATA[Holds file metadata including type (regular file, or directory),
  7824. and the list of blocks that are pointers to the data.]]>
  7825. </doc>
  7826. </class>
  7827. <!-- end class org.apache.hadoop.fs.s3.INode -->
  7828. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  7829. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  7830. abstract="false"
  7831. static="false" final="false" visibility="public"
  7832. deprecated="not deprecated">
  7833. <implements name="org.apache.hadoop.util.Tool"/>
  7834. <constructor name="MigrationTool"
  7835. static="false" final="false" visibility="public"
  7836. deprecated="not deprecated">
  7837. </constructor>
  7838. <method name="main"
  7839. abstract="false" native="false" synchronized="false"
  7840. static="true" final="false" visibility="public"
  7841. deprecated="not deprecated">
  7842. <param name="args" type="java.lang.String[]"/>
  7843. <exception name="Exception" type="java.lang.Exception"/>
  7844. </method>
  7845. <method name="run" return="int"
  7846. abstract="false" native="false" synchronized="false"
  7847. static="false" final="false" visibility="public"
  7848. deprecated="not deprecated">
  7849. <param name="args" type="java.lang.String[]"/>
  7850. <exception name="Exception" type="java.lang.Exception"/>
  7851. </method>
  7852. <method name="initialize"
  7853. abstract="false" native="false" synchronized="false"
  7854. static="false" final="false" visibility="public"
  7855. deprecated="not deprecated">
  7856. <param name="uri" type="java.net.URI"/>
  7857. <exception name="IOException" type="java.io.IOException"/>
  7858. </method>
  7859. <doc>
  7860. <![CDATA[<p>
  7861. This class is a tool for migrating data from an older to a newer version
  7862. of an S3 filesystem.
  7863. </p>
  7864. <p>
  7865. All files in the filesystem are migrated by re-writing the block metadata
  7866. - no datafiles are touched.
  7867. </p>]]>
  7868. </doc>
  7869. </class>
  7870. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  7871. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  7872. <class name="S3Credentials" extends="java.lang.Object"
  7873. abstract="false"
  7874. static="false" final="false" visibility="public"
  7875. deprecated="not deprecated">
  7876. <constructor name="S3Credentials"
  7877. static="false" final="false" visibility="public"
  7878. deprecated="not deprecated">
  7879. </constructor>
  7880. <method name="initialize"
  7881. abstract="false" native="false" synchronized="false"
  7882. static="false" final="false" visibility="public"
  7883. deprecated="not deprecated">
  7884. <param name="uri" type="java.net.URI"/>
  7885. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7886. <doc>
  7887. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  7888. determined.]]>
  7889. </doc>
  7890. </method>
  7891. <method name="getAccessKey" return="java.lang.String"
  7892. abstract="false" native="false" synchronized="false"
  7893. static="false" final="false" visibility="public"
  7894. deprecated="not deprecated">
  7895. </method>
  7896. <method name="getSecretAccessKey" return="java.lang.String"
  7897. abstract="false" native="false" synchronized="false"
  7898. static="false" final="false" visibility="public"
  7899. deprecated="not deprecated">
  7900. </method>
  7901. <doc>
  7902. <![CDATA[<p>
  7903. Extracts AWS credentials from the filesystem URI or configuration.
  7904. </p>]]>
  7905. </doc>
  7906. </class>
  7907. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  7908. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  7909. <class name="S3Exception" extends="java.lang.RuntimeException"
  7910. abstract="false"
  7911. static="false" final="false" visibility="public"
  7912. deprecated="not deprecated">
  7913. <constructor name="S3Exception" type="java.lang.Throwable"
  7914. static="false" final="false" visibility="public"
  7915. deprecated="not deprecated">
  7916. </constructor>
  7917. <doc>
  7918. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  7919. </doc>
  7920. </class>
  7921. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  7922. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  7923. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7924. abstract="false"
  7925. static="false" final="false" visibility="public"
  7926. deprecated="not deprecated">
  7927. <constructor name="S3FileSystem"
  7928. static="false" final="false" visibility="public"
  7929. deprecated="not deprecated">
  7930. </constructor>
  7931. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  7932. static="false" final="false" visibility="public"
  7933. deprecated="not deprecated">
  7934. </constructor>
  7935. <method name="getUri" return="java.net.URI"
  7936. abstract="false" native="false" synchronized="false"
  7937. static="false" final="false" visibility="public"
  7938. deprecated="not deprecated">
  7939. </method>
  7940. <method name="initialize"
  7941. abstract="false" native="false" synchronized="false"
  7942. static="false" final="false" visibility="public"
  7943. deprecated="not deprecated">
  7944. <param name="uri" type="java.net.URI"/>
  7945. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7946. <exception name="IOException" type="java.io.IOException"/>
  7947. </method>
  7948. <method name="getName" return="java.lang.String"
  7949. abstract="false" native="false" synchronized="false"
  7950. static="false" final="false" visibility="public"
  7951. deprecated="not deprecated">
  7952. </method>
  7953. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7954. abstract="false" native="false" synchronized="false"
  7955. static="false" final="false" visibility="public"
  7956. deprecated="not deprecated">
  7957. </method>
  7958. <method name="setWorkingDirectory"
  7959. abstract="false" native="false" synchronized="false"
  7960. static="false" final="false" visibility="public"
  7961. deprecated="not deprecated">
  7962. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7963. </method>
  7964. <method name="mkdirs" return="boolean"
  7965. abstract="false" native="false" synchronized="false"
  7966. static="false" final="false" visibility="public"
  7967. deprecated="not deprecated">
  7968. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7969. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7970. <exception name="IOException" type="java.io.IOException"/>
  7971. <doc>
  7972. <![CDATA[@param permission Currently ignored.]]>
  7973. </doc>
  7974. </method>
  7975. <method name="isFile" return="boolean"
  7976. abstract="false" native="false" synchronized="false"
  7977. static="false" final="false" visibility="public"
  7978. deprecated="not deprecated">
  7979. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7980. <exception name="IOException" type="java.io.IOException"/>
  7981. </method>
  7982. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7983. abstract="false" native="false" synchronized="false"
  7984. static="false" final="false" visibility="public"
  7985. deprecated="not deprecated">
  7986. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7987. <exception name="IOException" type="java.io.IOException"/>
  7988. </method>
  7989. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7990. abstract="false" native="false" synchronized="false"
  7991. static="false" final="false" visibility="public"
  7992. deprecated="not deprecated">
  7993. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7994. <param name="bufferSize" type="int"/>
  7995. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7996. <exception name="IOException" type="java.io.IOException"/>
  7997. <doc>
  7998. <![CDATA[This optional operation is not yet supported.]]>
  7999. </doc>
  8000. </method>
  8001. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8002. abstract="false" native="false" synchronized="false"
  8003. static="false" final="false" visibility="public"
  8004. deprecated="not deprecated">
  8005. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8006. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8007. <param name="overwrite" type="boolean"/>
  8008. <param name="bufferSize" type="int"/>
  8009. <param name="replication" type="short"/>
  8010. <param name="blockSize" type="long"/>
  8011. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8012. <exception name="IOException" type="java.io.IOException"/>
  8013. <doc>
  8014. <![CDATA[@param permission Currently ignored.]]>
  8015. </doc>
  8016. </method>
  8017. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8018. abstract="false" native="false" synchronized="false"
  8019. static="false" final="false" visibility="public"
  8020. deprecated="not deprecated">
  8021. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8022. <param name="bufferSize" type="int"/>
  8023. <exception name="IOException" type="java.io.IOException"/>
  8024. </method>
  8025. <method name="rename" return="boolean"
  8026. abstract="false" native="false" synchronized="false"
  8027. static="false" final="false" visibility="public"
  8028. deprecated="not deprecated">
  8029. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8030. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8031. <exception name="IOException" type="java.io.IOException"/>
  8032. </method>
  8033. <method name="delete" return="boolean"
  8034. abstract="false" native="false" synchronized="false"
  8035. static="false" final="false" visibility="public"
  8036. deprecated="not deprecated">
  8037. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8038. <param name="recursive" type="boolean"/>
  8039. <exception name="IOException" type="java.io.IOException"/>
  8040. </method>
  8041. <method name="delete" return="boolean"
  8042. abstract="false" native="false" synchronized="false"
  8043. static="false" final="false" visibility="public"
  8044. deprecated="not deprecated">
  8045. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8046. <exception name="IOException" type="java.io.IOException"/>
  8047. </method>
  8048. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8049. abstract="false" native="false" synchronized="false"
  8050. static="false" final="false" visibility="public"
  8051. deprecated="not deprecated">
  8052. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8053. <exception name="IOException" type="java.io.IOException"/>
  8054. <doc>
  8055. <![CDATA[FileStatus for S3 file systems.]]>
  8056. </doc>
  8057. </method>
  8058. <doc>
  8059. <![CDATA[<p>
  8060. A block-based {@link FileSystem} backed by
  8061. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8062. </p>
  8063. @see NativeS3FileSystem]]>
  8064. </doc>
  8065. </class>
  8066. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  8067. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8068. <class name="S3FileSystemException" extends="java.io.IOException"
  8069. abstract="false"
  8070. static="false" final="false" visibility="public"
  8071. deprecated="not deprecated">
  8072. <constructor name="S3FileSystemException" type="java.lang.String"
  8073. static="false" final="false" visibility="public"
  8074. deprecated="not deprecated">
  8075. </constructor>
  8076. <doc>
  8077. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  8078. </doc>
  8079. </class>
  8080. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8081. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8082. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  8083. abstract="false"
  8084. static="false" final="false" visibility="public"
  8085. deprecated="not deprecated">
  8086. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  8087. static="false" final="false" visibility="public"
  8088. deprecated="not deprecated">
  8089. </constructor>
  8090. <doc>
  8091. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  8092. in {@link S3FileSystem}.]]>
  8093. </doc>
  8094. </class>
  8095. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8096. </package>
  8097. <package name="org.apache.hadoop.fs.s3native">
  8098. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8099. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8100. abstract="false"
  8101. static="false" final="false" visibility="public"
  8102. deprecated="not deprecated">
  8103. <constructor name="NativeS3FileSystem"
  8104. static="false" final="false" visibility="public"
  8105. deprecated="not deprecated">
  8106. </constructor>
  8107. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  8108. static="false" final="false" visibility="public"
  8109. deprecated="not deprecated">
  8110. </constructor>
  8111. <method name="initialize"
  8112. abstract="false" native="false" synchronized="false"
  8113. static="false" final="false" visibility="public"
  8114. deprecated="not deprecated">
  8115. <param name="uri" type="java.net.URI"/>
  8116. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8117. <exception name="IOException" type="java.io.IOException"/>
  8118. </method>
  8119. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8120. abstract="false" native="false" synchronized="false"
  8121. static="false" final="false" visibility="public"
  8122. deprecated="not deprecated">
  8123. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8124. <param name="bufferSize" type="int"/>
  8125. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8126. <exception name="IOException" type="java.io.IOException"/>
  8127. <doc>
  8128. <![CDATA[This optional operation is not yet supported.]]>
  8129. </doc>
  8130. </method>
  8131. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8132. abstract="false" native="false" synchronized="false"
  8133. static="false" final="false" visibility="public"
  8134. deprecated="not deprecated">
  8135. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8136. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8137. <param name="overwrite" type="boolean"/>
  8138. <param name="bufferSize" type="int"/>
  8139. <param name="replication" type="short"/>
  8140. <param name="blockSize" type="long"/>
  8141. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8142. <exception name="IOException" type="java.io.IOException"/>
  8143. </method>
  8144. <method name="delete" return="boolean"
  8145. abstract="false" native="false" synchronized="false"
  8146. static="false" final="false" visibility="public"
  8147. deprecated="not deprecated">
  8148. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8149. <exception name="IOException" type="java.io.IOException"/>
  8150. </method>
  8151. <method name="delete" return="boolean"
  8152. abstract="false" native="false" synchronized="false"
  8153. static="false" final="false" visibility="public"
  8154. deprecated="not deprecated">
  8155. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8156. <param name="recursive" type="boolean"/>
  8157. <exception name="IOException" type="java.io.IOException"/>
  8158. </method>
  8159. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8160. abstract="false" native="false" synchronized="false"
  8161. static="false" final="false" visibility="public"
  8162. deprecated="not deprecated">
  8163. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8164. <exception name="IOException" type="java.io.IOException"/>
  8165. </method>
  8166. <method name="getUri" return="java.net.URI"
  8167. abstract="false" native="false" synchronized="false"
  8168. static="false" final="false" visibility="public"
  8169. deprecated="not deprecated">
  8170. </method>
  8171. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8172. abstract="false" native="false" synchronized="false"
  8173. static="false" final="false" visibility="public"
  8174. deprecated="not deprecated">
  8175. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8176. <exception name="IOException" type="java.io.IOException"/>
  8177. <doc>
  8178. <![CDATA[<p>
  8179. If <code>f</code> is a file, this method will make a single call to S3.
  8180. If <code>f</code> is a directory, this method will make a maximum of
  8181. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  8182. files and directories contained directly in <code>f</code>.
  8183. </p>]]>
  8184. </doc>
  8185. </method>
  8186. <method name="mkdirs" return="boolean"
  8187. abstract="false" native="false" synchronized="false"
  8188. static="false" final="false" visibility="public"
  8189. deprecated="not deprecated">
  8190. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8191. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8192. <exception name="IOException" type="java.io.IOException"/>
  8193. </method>
  8194. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8195. abstract="false" native="false" synchronized="false"
  8196. static="false" final="false" visibility="public"
  8197. deprecated="not deprecated">
  8198. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8199. <param name="bufferSize" type="int"/>
  8200. <exception name="IOException" type="java.io.IOException"/>
  8201. </method>
  8202. <method name="rename" return="boolean"
  8203. abstract="false" native="false" synchronized="false"
  8204. static="false" final="false" visibility="public"
  8205. deprecated="not deprecated">
  8206. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8207. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8208. <exception name="IOException" type="java.io.IOException"/>
  8209. </method>
  8210. <method name="setWorkingDirectory"
  8211. abstract="false" native="false" synchronized="false"
  8212. static="false" final="false" visibility="public"
  8213. deprecated="not deprecated">
  8214. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  8215. <doc>
  8216. <![CDATA[Set the working directory to the given directory.]]>
  8217. </doc>
  8218. </method>
  8219. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8220. abstract="false" native="false" synchronized="false"
  8221. static="false" final="false" visibility="public"
  8222. deprecated="not deprecated">
  8223. </method>
  8224. <field name="LOG" type="org.apache.commons.logging.Log"
  8225. transient="false" volatile="false"
  8226. static="true" final="true" visibility="public"
  8227. deprecated="not deprecated">
  8228. </field>
  8229. <doc>
  8230. <![CDATA[<p>
  8231. A {@link FileSystem} for reading and writing files stored on
  8232. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8233. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  8234. stores files on S3 in their
  8235. native form so they can be read by other S3 tools.
  8236. </p>
  8237. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  8238. </doc>
  8239. </class>
  8240. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8241. </package>
  8242. <package name="org.apache.hadoop.fs.shell">
  8243. <!-- start class org.apache.hadoop.fs.shell.Command -->
  8244. <class name="Command" extends="org.apache.hadoop.conf.Configured"
  8245. abstract="true"
  8246. static="false" final="false" visibility="public"
  8247. deprecated="not deprecated">
  8248. <constructor name="Command" type="org.apache.hadoop.conf.Configuration"
  8249. static="false" final="false" visibility="protected"
  8250. deprecated="not deprecated">
  8251. <doc>
  8252. <![CDATA[Constructor]]>
  8253. </doc>
  8254. </constructor>
  8255. <method name="getCommandName" return="java.lang.String"
  8256. abstract="true" native="false" synchronized="false"
  8257. static="false" final="false" visibility="public"
  8258. deprecated="not deprecated">
  8259. <doc>
  8260. <![CDATA[Return the command's name excluding the leading character -]]>
  8261. </doc>
  8262. </method>
  8263. <method name="run"
  8264. abstract="true" native="false" synchronized="false"
  8265. static="false" final="false" visibility="protected"
  8266. deprecated="not deprecated">
  8267. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8268. <exception name="IOException" type="java.io.IOException"/>
  8269. <doc>
  8270. <![CDATA[Execute the command on the input path
  8271. @param path the input path
  8272. @throws IOException if any error occurs]]>
  8273. </doc>
  8274. </method>
  8275. <method name="runAll" return="int"
  8276. abstract="false" native="false" synchronized="false"
  8277. static="false" final="false" visibility="public"
  8278. deprecated="not deprecated">
  8279. <doc>
  8280. <![CDATA[For each source path, execute the command
  8281. @return 0 if it runs successfully; -1 if it fails]]>
  8282. </doc>
  8283. </method>
  8284. <field name="args" type="java.lang.String[]"
  8285. transient="false" volatile="false"
  8286. static="false" final="false" visibility="protected"
  8287. deprecated="not deprecated">
  8288. </field>
  8289. <doc>
  8290. <![CDATA[An abstract class for the execution of a file system command]]>
  8291. </doc>
  8292. </class>
  8293. <!-- end class org.apache.hadoop.fs.shell.Command -->
  8294. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  8295. <class name="CommandFormat" extends="java.lang.Object"
  8296. abstract="false"
  8297. static="false" final="false" visibility="public"
  8298. deprecated="not deprecated">
  8299. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  8300. static="false" final="false" visibility="public"
  8301. deprecated="not deprecated">
  8302. <doc>
  8303. <![CDATA[constructor]]>
  8304. </doc>
  8305. </constructor>
  8306. <method name="parse" return="java.util.List"
  8307. abstract="false" native="false" synchronized="false"
  8308. static="false" final="false" visibility="public"
  8309. deprecated="not deprecated">
  8310. <param name="args" type="java.lang.String[]"/>
  8311. <param name="pos" type="int"/>
  8312. <doc>
  8313. <![CDATA[Parse parameters starting from the given position
  8314. @param args an array of input arguments
  8315. @param pos the position at which starts to parse
  8316. @return a list of parameters]]>
  8317. </doc>
  8318. </method>
  8319. <method name="getOpt" return="boolean"
  8320. abstract="false" native="false" synchronized="false"
  8321. static="false" final="false" visibility="public"
  8322. deprecated="not deprecated">
  8323. <param name="option" type="java.lang.String"/>
  8324. <doc>
  8325. <![CDATA[Return if the option is set or not
  8326. @param option String representation of an option
  8327. @return true is the option is set; false otherwise]]>
  8328. </doc>
  8329. </method>
  8330. <doc>
  8331. <![CDATA[Parse the args of a command and check the format of args.]]>
  8332. </doc>
  8333. </class>
  8334. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  8335. <!-- start class org.apache.hadoop.fs.shell.Count -->
  8336. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  8337. abstract="false"
  8338. static="false" final="false" visibility="public"
  8339. deprecated="not deprecated">
  8340. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.conf.Configuration"
  8341. static="false" final="false" visibility="public"
  8342. deprecated="not deprecated">
  8343. <doc>
  8344. <![CDATA[Constructor
  8345. @param cmd the count command
  8346. @param pos the starting index of the arguments]]>
  8347. </doc>
  8348. </constructor>
  8349. <method name="matches" return="boolean"
  8350. abstract="false" native="false" synchronized="false"
  8351. static="true" final="false" visibility="public"
  8352. deprecated="not deprecated">
  8353. <param name="cmd" type="java.lang.String"/>
  8354. <doc>
  8355. <![CDATA[Check if a command is the count command
  8356. @param cmd A string representation of a command starting with "-"
  8357. @return true if this is a count command; false otherwise]]>
  8358. </doc>
  8359. </method>
  8360. <method name="getCommandName" return="java.lang.String"
  8361. abstract="false" native="false" synchronized="false"
  8362. static="false" final="false" visibility="public"
  8363. deprecated="not deprecated">
  8364. </method>
  8365. <method name="run"
  8366. abstract="false" native="false" synchronized="false"
  8367. static="false" final="false" visibility="protected"
  8368. deprecated="not deprecated">
  8369. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8370. <exception name="IOException" type="java.io.IOException"/>
  8371. </method>
  8372. <field name="NAME" type="java.lang.String"
  8373. transient="false" volatile="false"
  8374. static="true" final="true" visibility="public"
  8375. deprecated="not deprecated">
  8376. </field>
  8377. <field name="USAGE" type="java.lang.String"
  8378. transient="false" volatile="false"
  8379. static="true" final="true" visibility="public"
  8380. deprecated="not deprecated">
  8381. </field>
  8382. <field name="DESCRIPTION" type="java.lang.String"
  8383. transient="false" volatile="false"
  8384. static="true" final="true" visibility="public"
  8385. deprecated="not deprecated">
  8386. </field>
  8387. <doc>
  8388. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  8389. </doc>
  8390. </class>
  8391. <!-- end class org.apache.hadoop.fs.shell.Count -->
  8392. </package>
  8393. <package name="org.apache.hadoop.http">
  8394. <!-- start class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8395. <class name="AdminAuthorizedServlet" extends="org.mortbay.jetty.servlet.DefaultServlet"
  8396. abstract="false"
  8397. static="false" final="false" visibility="public"
  8398. deprecated="not deprecated">
  8399. <constructor name="AdminAuthorizedServlet"
  8400. static="false" final="false" visibility="public"
  8401. deprecated="not deprecated">
  8402. </constructor>
  8403. <method name="doGet"
  8404. abstract="false" native="false" synchronized="false"
  8405. static="false" final="false" visibility="protected"
  8406. deprecated="not deprecated">
  8407. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8408. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8409. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8410. <exception name="IOException" type="java.io.IOException"/>
  8411. </method>
  8412. <doc>
  8413. <![CDATA[General servlet which is admin-authorized.]]>
  8414. </doc>
  8415. </class>
  8416. <!-- end class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8417. <!-- start interface org.apache.hadoop.http.FilterContainer -->
  8418. <interface name="FilterContainer" abstract="true"
  8419. static="false" final="false" visibility="public"
  8420. deprecated="not deprecated">
  8421. <method name="addFilter"
  8422. abstract="false" native="false" synchronized="false"
  8423. static="false" final="false" visibility="public"
  8424. deprecated="not deprecated">
  8425. <param name="name" type="java.lang.String"/>
  8426. <param name="classname" type="java.lang.String"/>
  8427. <param name="parameters" type="java.util.Map"/>
  8428. <doc>
  8429. <![CDATA[Add a filter to the container.
  8430. @param name Filter name
  8431. @param classname Filter class name
  8432. @param parameters a map from parameter names to initial values]]>
  8433. </doc>
  8434. </method>
  8435. <method name="addGlobalFilter"
  8436. abstract="false" native="false" synchronized="false"
  8437. static="false" final="false" visibility="public"
  8438. deprecated="not deprecated">
  8439. <param name="name" type="java.lang.String"/>
  8440. <param name="classname" type="java.lang.String"/>
  8441. <param name="parameters" type="java.util.Map"/>
  8442. <doc>
  8443. <![CDATA[Add a global filter to the container.
  8444. @param name filter name
  8445. @param classname filter class name
  8446. @param parameters a map from parameter names to initial values]]>
  8447. </doc>
  8448. </method>
  8449. <doc>
  8450. <![CDATA[A container class for javax.servlet.Filter.]]>
  8451. </doc>
  8452. </interface>
  8453. <!-- end interface org.apache.hadoop.http.FilterContainer -->
  8454. <!-- start class org.apache.hadoop.http.FilterInitializer -->
  8455. <class name="FilterInitializer" extends="java.lang.Object"
  8456. abstract="true"
  8457. static="false" final="false" visibility="public"
  8458. deprecated="not deprecated">
  8459. <constructor name="FilterInitializer"
  8460. static="false" final="false" visibility="public"
  8461. deprecated="not deprecated">
  8462. </constructor>
  8463. <method name="initFilter"
  8464. abstract="true" native="false" synchronized="false"
  8465. static="false" final="false" visibility="public"
  8466. deprecated="not deprecated">
  8467. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  8468. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8469. <doc>
  8470. <![CDATA[Initialize a Filter to a FilterContainer.
  8471. @param container The filter container
  8472. @param conf Configuration for run-time parameters]]>
  8473. </doc>
  8474. </method>
  8475. <doc>
  8476. <![CDATA[Initialize a javax.servlet.Filter.]]>
  8477. </doc>
  8478. </class>
  8479. <!-- end class org.apache.hadoop.http.FilterInitializer -->
  8480. <!-- start class org.apache.hadoop.http.HtmlQuoting -->
  8481. <class name="HtmlQuoting" extends="java.lang.Object"
  8482. abstract="false"
  8483. static="false" final="false" visibility="public"
  8484. deprecated="not deprecated">
  8485. <constructor name="HtmlQuoting"
  8486. static="false" final="false" visibility="public"
  8487. deprecated="not deprecated">
  8488. </constructor>
  8489. <method name="needsQuoting" return="boolean"
  8490. abstract="false" native="false" synchronized="false"
  8491. static="true" final="false" visibility="public"
  8492. deprecated="not deprecated">
  8493. <param name="data" type="byte[]"/>
  8494. <param name="off" type="int"/>
  8495. <param name="len" type="int"/>
  8496. <doc>
  8497. <![CDATA[Does the given string need to be quoted?
  8498. @param data the string to check
  8499. @param off the starting position
  8500. @param len the number of bytes to check
  8501. @return does the string contain any of the active html characters?]]>
  8502. </doc>
  8503. </method>
  8504. <method name="needsQuoting" return="boolean"
  8505. abstract="false" native="false" synchronized="false"
  8506. static="true" final="false" visibility="public"
  8507. deprecated="not deprecated">
  8508. <param name="str" type="java.lang.String"/>
  8509. <doc>
  8510. <![CDATA[Does the given string need to be quoted?
  8511. @param str the string to check
  8512. @return does the string contain any of the active html characters?]]>
  8513. </doc>
  8514. </method>
  8515. <method name="quoteHtmlChars"
  8516. abstract="false" native="false" synchronized="false"
  8517. static="true" final="false" visibility="public"
  8518. deprecated="not deprecated">
  8519. <param name="output" type="java.io.OutputStream"/>
  8520. <param name="buffer" type="byte[]"/>
  8521. <param name="off" type="int"/>
  8522. <param name="len" type="int"/>
  8523. <exception name="IOException" type="java.io.IOException"/>
  8524. <doc>
  8525. <![CDATA[Quote all of the active HTML characters in the given string as they
  8526. are added to the buffer.
  8527. @param output the stream to write the output to
  8528. @param buffer the byte array to take the characters from
  8529. @param off the index of the first byte to quote
  8530. @param len the number of bytes to quote]]>
  8531. </doc>
  8532. </method>
  8533. <method name="quoteHtmlChars" return="java.lang.String"
  8534. abstract="false" native="false" synchronized="false"
  8535. static="true" final="false" visibility="public"
  8536. deprecated="not deprecated">
  8537. <param name="item" type="java.lang.String"/>
  8538. <doc>
  8539. <![CDATA[Quote the given item to make it html-safe.
  8540. @param item the string to quote
  8541. @return the quoted string]]>
  8542. </doc>
  8543. </method>
  8544. <method name="quoteOutputStream" return="java.io.OutputStream"
  8545. abstract="false" native="false" synchronized="false"
  8546. static="true" final="false" visibility="public"
  8547. deprecated="not deprecated">
  8548. <param name="out" type="java.io.OutputStream"/>
  8549. <exception name="IOException" type="java.io.IOException"/>
  8550. <doc>
  8551. <![CDATA[Return an output stream that quotes all of the output.
  8552. @param out the stream to write the quoted output to
  8553. @return a new stream that the application show write to
  8554. @throws IOException if the underlying output fails]]>
  8555. </doc>
  8556. </method>
  8557. <method name="unquoteHtmlChars" return="java.lang.String"
  8558. abstract="false" native="false" synchronized="false"
  8559. static="true" final="false" visibility="public"
  8560. deprecated="not deprecated">
  8561. <param name="item" type="java.lang.String"/>
  8562. <doc>
  8563. <![CDATA[Remove HTML quoting from a string.
  8564. @param item the string to unquote
  8565. @return the unquoted string]]>
  8566. </doc>
  8567. </method>
  8568. <method name="main"
  8569. abstract="false" native="false" synchronized="false"
  8570. static="true" final="false" visibility="public"
  8571. deprecated="not deprecated">
  8572. <param name="args" type="java.lang.String[]"/>
  8573. <exception name="Exception" type="java.lang.Exception"/>
  8574. </method>
  8575. <doc>
  8576. <![CDATA[This class is responsible for quoting HTML characters.]]>
  8577. </doc>
  8578. </class>
  8579. <!-- end class org.apache.hadoop.http.HtmlQuoting -->
  8580. <!-- start class org.apache.hadoop.http.HttpServer -->
  8581. <class name="HttpServer" extends="java.lang.Object"
  8582. abstract="false"
  8583. static="false" final="false" visibility="public"
  8584. deprecated="not deprecated">
  8585. <implements name="org.apache.hadoop.http.FilterContainer"/>
  8586. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean"
  8587. static="false" final="false" visibility="public"
  8588. deprecated="not deprecated">
  8589. <exception name="IOException" type="java.io.IOException"/>
  8590. <doc>
  8591. <![CDATA[Same as this(name, bindAddress, port, findPort, null);]]>
  8592. </doc>
  8593. </constructor>
  8594. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration"
  8595. static="false" final="false" visibility="public"
  8596. deprecated="not deprecated">
  8597. <exception name="IOException" type="java.io.IOException"/>
  8598. </constructor>
  8599. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.mortbay.jetty.Connector"
  8600. static="false" final="false" visibility="public"
  8601. deprecated="not deprecated">
  8602. <exception name="IOException" type="java.io.IOException"/>
  8603. </constructor>
  8604. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.AccessControlList"
  8605. static="false" final="false" visibility="public"
  8606. deprecated="not deprecated">
  8607. <exception name="IOException" type="java.io.IOException"/>
  8608. <doc>
  8609. <![CDATA[Create a status server on the given port.
  8610. The jsp scripts are taken from src/webapps/<name>.
  8611. @param name The name of the server
  8612. @param port The port to use on the server
  8613. @param findPort whether the server should start at the given port and
  8614. increment by 1 until it finds a free port.
  8615. @param conf Configuration
  8616. @param adminsAcl {@link AccessControlList} of the admins]]>
  8617. </doc>
  8618. </constructor>
  8619. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.AccessControlList, org.mortbay.jetty.Connector"
  8620. static="false" final="false" visibility="public"
  8621. deprecated="not deprecated">
  8622. <exception name="IOException" type="java.io.IOException"/>
  8623. </constructor>
  8624. <method name="createBaseListener" return="org.mortbay.jetty.Connector"
  8625. abstract="false" native="false" synchronized="false"
  8626. static="false" final="false" visibility="public"
  8627. deprecated="not deprecated">
  8628. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8629. <exception name="IOException" type="java.io.IOException"/>
  8630. <doc>
  8631. <![CDATA[Create a required listener for the Jetty instance listening on the port
  8632. provided. This wrapper and all subclasses must create at least one
  8633. listener.]]>
  8634. </doc>
  8635. </method>
  8636. <method name="createDefaultChannelConnector" return="org.mortbay.jetty.Connector"
  8637. abstract="false" native="false" synchronized="false"
  8638. static="true" final="false" visibility="public"
  8639. deprecated="not deprecated">
  8640. </method>
  8641. <method name="addDefaultApps"
  8642. abstract="false" native="false" synchronized="false"
  8643. static="false" final="false" visibility="protected"
  8644. deprecated="not deprecated">
  8645. <param name="parent" type="org.mortbay.jetty.handler.ContextHandlerCollection"/>
  8646. <param name="appDir" type="java.lang.String"/>
  8647. <exception name="IOException" type="java.io.IOException"/>
  8648. <doc>
  8649. <![CDATA[Add default apps.
  8650. @param appDir The application directory
  8651. @throws IOException]]>
  8652. </doc>
  8653. </method>
  8654. <method name="addDefaultServlets"
  8655. abstract="false" native="false" synchronized="false"
  8656. static="false" final="false" visibility="protected"
  8657. deprecated="not deprecated">
  8658. <doc>
  8659. <![CDATA[Add default servlets.]]>
  8660. </doc>
  8661. </method>
  8662. <method name="addContext"
  8663. abstract="false" native="false" synchronized="false"
  8664. static="false" final="false" visibility="public"
  8665. deprecated="not deprecated">
  8666. <param name="ctxt" type="org.mortbay.jetty.servlet.Context"/>
  8667. <param name="isFiltered" type="boolean"/>
  8668. <exception name="IOException" type="java.io.IOException"/>
  8669. </method>
  8670. <method name="addContext"
  8671. abstract="false" native="false" synchronized="false"
  8672. static="false" final="false" visibility="protected"
  8673. deprecated="not deprecated">
  8674. <param name="pathSpec" type="java.lang.String"/>
  8675. <param name="dir" type="java.lang.String"/>
  8676. <param name="isFiltered" type="boolean"/>
  8677. <exception name="IOException" type="java.io.IOException"/>
  8678. <doc>
  8679. <![CDATA[Add a context
  8680. @param pathSpec The path spec for the context
  8681. @param dir The directory containing the context
  8682. @param isFiltered if true, the servlet is added to the filter path mapping
  8683. @throws IOException]]>
  8684. </doc>
  8685. </method>
  8686. <method name="setAttribute"
  8687. abstract="false" native="false" synchronized="false"
  8688. static="false" final="false" visibility="public"
  8689. deprecated="not deprecated">
  8690. <param name="name" type="java.lang.String"/>
  8691. <param name="value" type="java.lang.Object"/>
  8692. <doc>
  8693. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8694. pages as "application.getAttribute(name)".
  8695. @param name The name of the attribute
  8696. @param value The value of the attribute]]>
  8697. </doc>
  8698. </method>
  8699. <method name="setAttribute"
  8700. abstract="false" native="false" synchronized="false"
  8701. static="false" final="false" visibility="public"
  8702. deprecated="not deprecated">
  8703. <param name="context" type="org.mortbay.jetty.servlet.Context"/>
  8704. <param name="name" type="java.lang.String"/>
  8705. <param name="value" type="java.lang.Object"/>
  8706. <doc>
  8707. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8708. pages as "application.getAttribute(name)".
  8709. @param context Context to add attribute
  8710. @param name The name of the attribute
  8711. @param value The value of the attribute]]>
  8712. </doc>
  8713. </method>
  8714. <method name="addJerseyResourcePackage"
  8715. abstract="false" native="false" synchronized="false"
  8716. static="false" final="false" visibility="public"
  8717. deprecated="not deprecated">
  8718. <param name="packageName" type="java.lang.String"/>
  8719. <param name="pathSpec" type="java.lang.String"/>
  8720. <doc>
  8721. <![CDATA[Add a Jersey resource package.
  8722. @param packageName The Java package name containing the Jersey resource.
  8723. @param pathSpec The path spec for the servlet]]>
  8724. </doc>
  8725. </method>
  8726. <method name="addServlet"
  8727. abstract="false" native="false" synchronized="false"
  8728. static="false" final="false" visibility="public"
  8729. deprecated="not deprecated">
  8730. <param name="name" type="java.lang.String"/>
  8731. <param name="pathSpec" type="java.lang.String"/>
  8732. <param name="clazz" type="java.lang.Class"/>
  8733. <doc>
  8734. <![CDATA[Add a servlet in the server.
  8735. @param name The name of the servlet (can be passed as null)
  8736. @param pathSpec The path spec for the servlet
  8737. @param clazz The servlet class]]>
  8738. </doc>
  8739. </method>
  8740. <method name="addInternalServlet"
  8741. abstract="false" native="false" synchronized="false"
  8742. static="false" final="false" visibility="public"
  8743. deprecated="this is a temporary method">
  8744. <param name="name" type="java.lang.String"/>
  8745. <param name="pathSpec" type="java.lang.String"/>
  8746. <param name="clazz" type="java.lang.Class"/>
  8747. <doc>
  8748. <![CDATA[Add an internal servlet in the server.
  8749. @param name The name of the servlet (can be passed as null)
  8750. @param pathSpec The path spec for the servlet
  8751. @param clazz The servlet class
  8752. @deprecated this is a temporary method]]>
  8753. </doc>
  8754. </method>
  8755. <method name="addInternalServlet"
  8756. abstract="false" native="false" synchronized="false"
  8757. static="false" final="false" visibility="public"
  8758. deprecated="not deprecated">
  8759. <param name="name" type="java.lang.String"/>
  8760. <param name="pathSpec" type="java.lang.String"/>
  8761. <param name="clazz" type="java.lang.Class"/>
  8762. <param name="requireAuth" type="boolean"/>
  8763. <doc>
  8764. <![CDATA[Add an internal servlet in the server, specifying whether or not to
  8765. protect with Kerberos authentication.
  8766. Note: This method is to be used for adding servlets that facilitate
  8767. internal communication and not for user facing functionality. For
  8768. servlets added using this method, filters (except internal Kerberized
  8769. filters) are not enabled.
  8770. @param name The name of the servlet (can be passed as null)
  8771. @param pathSpec The path spec for the servlet
  8772. @param clazz The servlet class]]>
  8773. </doc>
  8774. </method>
  8775. <method name="addFilter"
  8776. abstract="false" native="false" synchronized="false"
  8777. static="false" final="false" visibility="public"
  8778. deprecated="not deprecated">
  8779. <param name="name" type="java.lang.String"/>
  8780. <param name="classname" type="java.lang.String"/>
  8781. <param name="parameters" type="java.util.Map"/>
  8782. <doc>
  8783. <![CDATA[{@inheritDoc}]]>
  8784. </doc>
  8785. </method>
  8786. <method name="addGlobalFilter"
  8787. abstract="false" native="false" synchronized="false"
  8788. static="false" final="false" visibility="public"
  8789. deprecated="not deprecated">
  8790. <param name="name" type="java.lang.String"/>
  8791. <param name="classname" type="java.lang.String"/>
  8792. <param name="parameters" type="java.util.Map"/>
  8793. <doc>
  8794. <![CDATA[{@inheritDoc}]]>
  8795. </doc>
  8796. </method>
  8797. <method name="defineFilter"
  8798. abstract="false" native="false" synchronized="false"
  8799. static="false" final="false" visibility="protected"
  8800. deprecated="not deprecated">
  8801. <param name="ctx" type="org.mortbay.jetty.servlet.Context"/>
  8802. <param name="name" type="java.lang.String"/>
  8803. <param name="classname" type="java.lang.String"/>
  8804. <param name="parameters" type="java.util.Map"/>
  8805. <param name="urls" type="java.lang.String[]"/>
  8806. <doc>
  8807. <![CDATA[Define a filter for a context and set up default url mappings.]]>
  8808. </doc>
  8809. </method>
  8810. <method name="addFilterPathMapping"
  8811. abstract="false" native="false" synchronized="false"
  8812. static="false" final="false" visibility="protected"
  8813. deprecated="not deprecated">
  8814. <param name="pathSpec" type="java.lang.String"/>
  8815. <param name="webAppCtx" type="org.mortbay.jetty.servlet.Context"/>
  8816. <doc>
  8817. <![CDATA[Add the path spec to the filter path mapping.
  8818. @param pathSpec The path spec
  8819. @param webAppCtx The WebApplicationContext to add to]]>
  8820. </doc>
  8821. </method>
  8822. <method name="getAttribute" return="java.lang.Object"
  8823. abstract="false" native="false" synchronized="false"
  8824. static="false" final="false" visibility="public"
  8825. deprecated="not deprecated">
  8826. <param name="name" type="java.lang.String"/>
  8827. <doc>
  8828. <![CDATA[Get the value in the webapp context.
  8829. @param name The name of the attribute
  8830. @return The value of the attribute]]>
  8831. </doc>
  8832. </method>
  8833. <method name="getWebAppsPath" return="java.lang.String"
  8834. abstract="false" native="false" synchronized="false"
  8835. static="false" final="false" visibility="protected"
  8836. deprecated="not deprecated">
  8837. <exception name="IOException" type="java.io.IOException"/>
  8838. <doc>
  8839. <![CDATA[Get the pathname to the webapps files.
  8840. @return the pathname as a URL
  8841. @throws IOException if 'webapps' directory cannot be found on CLASSPATH.]]>
  8842. </doc>
  8843. </method>
  8844. <method name="getPort" return="int"
  8845. abstract="false" native="false" synchronized="false"
  8846. static="false" final="false" visibility="public"
  8847. deprecated="not deprecated">
  8848. <doc>
  8849. <![CDATA[Get the port that the server is on
  8850. @return the port]]>
  8851. </doc>
  8852. </method>
  8853. <method name="setThreads"
  8854. abstract="false" native="false" synchronized="false"
  8855. static="false" final="false" visibility="public"
  8856. deprecated="not deprecated">
  8857. <param name="min" type="int"/>
  8858. <param name="max" type="int"/>
  8859. <doc>
  8860. <![CDATA[Set the min, max number of worker threads (simultaneous connections).]]>
  8861. </doc>
  8862. </method>
  8863. <method name="addSslListener"
  8864. abstract="false" native="false" synchronized="false"
  8865. static="false" final="false" visibility="public"
  8866. deprecated="Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}">
  8867. <param name="addr" type="java.net.InetSocketAddress"/>
  8868. <param name="keystore" type="java.lang.String"/>
  8869. <param name="storPass" type="java.lang.String"/>
  8870. <param name="keyPass" type="java.lang.String"/>
  8871. <exception name="IOException" type="java.io.IOException"/>
  8872. <doc>
  8873. <![CDATA[Configure an ssl listener on the server.
  8874. @param addr address to listen on
  8875. @param keystore location of the keystore
  8876. @param storPass password for the keystore
  8877. @param keyPass password for the key
  8878. @deprecated Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}]]>
  8879. </doc>
  8880. </method>
  8881. <method name="addSslListener"
  8882. abstract="false" native="false" synchronized="false"
  8883. static="false" final="false" visibility="public"
  8884. deprecated="not deprecated">
  8885. <param name="addr" type="java.net.InetSocketAddress"/>
  8886. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  8887. <param name="needClientAuth" type="boolean"/>
  8888. <exception name="IOException" type="java.io.IOException"/>
  8889. <doc>
  8890. <![CDATA[Configure an ssl listener on the server.
  8891. @param addr address to listen on
  8892. @param sslConf conf to retrieve ssl options
  8893. @param needClientAuth whether client authentication is required]]>
  8894. </doc>
  8895. </method>
  8896. <method name="addSslListener"
  8897. abstract="false" native="false" synchronized="false"
  8898. static="false" final="false" visibility="public"
  8899. deprecated="not deprecated">
  8900. <param name="addr" type="java.net.InetSocketAddress"/>
  8901. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  8902. <param name="needCertsAuth" type="boolean"/>
  8903. <param name="needKrbAuth" type="boolean"/>
  8904. <exception name="IOException" type="java.io.IOException"/>
  8905. <doc>
  8906. <![CDATA[Configure an ssl listener on the server.
  8907. @param addr address to listen on
  8908. @param sslConf conf to retrieve ssl options
  8909. @param needCertsAuth whether x509 certificate authentication is required
  8910. @param needKrbAuth whether to allow kerberos auth]]>
  8911. </doc>
  8912. </method>
  8913. <method name="start"
  8914. abstract="false" native="false" synchronized="false"
  8915. static="false" final="false" visibility="public"
  8916. deprecated="not deprecated">
  8917. <exception name="IOException" type="java.io.IOException"/>
  8918. <doc>
  8919. <![CDATA[Start the server. Does not wait for the server to start.]]>
  8920. </doc>
  8921. </method>
  8922. <method name="stop"
  8923. abstract="false" native="false" synchronized="false"
  8924. static="false" final="false" visibility="public"
  8925. deprecated="not deprecated">
  8926. <exception name="Exception" type="java.lang.Exception"/>
  8927. <doc>
  8928. <![CDATA[stop the server]]>
  8929. </doc>
  8930. </method>
  8931. <method name="join"
  8932. abstract="false" native="false" synchronized="false"
  8933. static="false" final="false" visibility="public"
  8934. deprecated="not deprecated">
  8935. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8936. </method>
  8937. <method name="hasAdministratorAccess" return="boolean"
  8938. abstract="false" native="false" synchronized="false"
  8939. static="true" final="false" visibility="public"
  8940. deprecated="not deprecated">
  8941. <param name="servletContext" type="javax.servlet.ServletContext"/>
  8942. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8943. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8944. <exception name="IOException" type="java.io.IOException"/>
  8945. <doc>
  8946. <![CDATA[Does the user sending the HttpServletRequest has the administrator ACLs? If
  8947. it isn't the case, response will be modified to send an error to the user.
  8948. @param servletContext
  8949. @param request
  8950. @param response
  8951. @return true if admin-authorized, false otherwise
  8952. @throws IOException]]>
  8953. </doc>
  8954. </method>
  8955. <field name="LOG" type="org.apache.commons.logging.Log"
  8956. transient="false" volatile="false"
  8957. static="true" final="true" visibility="public"
  8958. deprecated="not deprecated">
  8959. </field>
  8960. <field name="webServer" type="org.mortbay.jetty.Server"
  8961. transient="false" volatile="false"
  8962. static="false" final="true" visibility="protected"
  8963. deprecated="not deprecated">
  8964. </field>
  8965. <field name="listener" type="org.mortbay.jetty.Connector"
  8966. transient="false" volatile="false"
  8967. static="false" final="true" visibility="protected"
  8968. deprecated="not deprecated">
  8969. </field>
  8970. <field name="webAppContext" type="org.mortbay.jetty.webapp.WebAppContext"
  8971. transient="false" volatile="false"
  8972. static="false" final="true" visibility="protected"
  8973. deprecated="not deprecated">
  8974. </field>
  8975. <field name="findPort" type="boolean"
  8976. transient="false" volatile="false"
  8977. static="false" final="true" visibility="protected"
  8978. deprecated="not deprecated">
  8979. </field>
  8980. <field name="defaultContexts" type="java.util.Map"
  8981. transient="false" volatile="false"
  8982. static="false" final="true" visibility="protected"
  8983. deprecated="not deprecated">
  8984. </field>
  8985. <field name="filterNames" type="java.util.List"
  8986. transient="false" volatile="false"
  8987. static="false" final="true" visibility="protected"
  8988. deprecated="not deprecated">
  8989. </field>
  8990. <doc>
  8991. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  8992. is to serve up status information for the server.
  8993. There are three contexts:
  8994. "/logs/" -> points to the log directory
  8995. "/static/" -> points to common static files (src/webapps/static)
  8996. "/" -> the jsp server code from (src/webapps/<name>)]]>
  8997. </doc>
  8998. </class>
  8999. <!-- end class org.apache.hadoop.http.HttpServer -->
  9000. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9001. <class name="HttpServer.QuotingInputFilter" extends="java.lang.Object"
  9002. abstract="false"
  9003. static="true" final="false" visibility="public"
  9004. deprecated="not deprecated">
  9005. <implements name="javax.servlet.Filter"/>
  9006. <constructor name="HttpServer.QuotingInputFilter"
  9007. static="false" final="false" visibility="public"
  9008. deprecated="not deprecated">
  9009. </constructor>
  9010. <method name="init"
  9011. abstract="false" native="false" synchronized="false"
  9012. static="false" final="false" visibility="public"
  9013. deprecated="not deprecated">
  9014. <param name="config" type="javax.servlet.FilterConfig"/>
  9015. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9016. </method>
  9017. <method name="destroy"
  9018. abstract="false" native="false" synchronized="false"
  9019. static="false" final="false" visibility="public"
  9020. deprecated="not deprecated">
  9021. </method>
  9022. <method name="doFilter"
  9023. abstract="false" native="false" synchronized="false"
  9024. static="false" final="false" visibility="public"
  9025. deprecated="not deprecated">
  9026. <param name="request" type="javax.servlet.ServletRequest"/>
  9027. <param name="response" type="javax.servlet.ServletResponse"/>
  9028. <param name="chain" type="javax.servlet.FilterChain"/>
  9029. <exception name="IOException" type="java.io.IOException"/>
  9030. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9031. </method>
  9032. <doc>
  9033. <![CDATA[A Servlet input filter that quotes all HTML active characters in the
  9034. parameter names and values. The goal is to quote the characters to make
  9035. all of the servlets resistant to cross-site scripting attacks.]]>
  9036. </doc>
  9037. </class>
  9038. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9039. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9040. <class name="HttpServer.QuotingInputFilter.RequestQuoter" extends="javax.servlet.http.HttpServletRequestWrapper"
  9041. abstract="false"
  9042. static="true" final="false" visibility="public"
  9043. deprecated="not deprecated">
  9044. <constructor name="HttpServer.QuotingInputFilter.RequestQuoter" type="javax.servlet.http.HttpServletRequest"
  9045. static="false" final="false" visibility="public"
  9046. deprecated="not deprecated">
  9047. </constructor>
  9048. <method name="getParameterNames" return="java.util.Enumeration"
  9049. abstract="false" native="false" synchronized="false"
  9050. static="false" final="false" visibility="public"
  9051. deprecated="not deprecated">
  9052. <doc>
  9053. <![CDATA[Return the set of parameter names, quoting each name.]]>
  9054. </doc>
  9055. </method>
  9056. <method name="getParameter" return="java.lang.String"
  9057. abstract="false" native="false" synchronized="false"
  9058. static="false" final="false" visibility="public"
  9059. deprecated="not deprecated">
  9060. <param name="name" type="java.lang.String"/>
  9061. <doc>
  9062. <![CDATA[Unquote the name and quote the value.]]>
  9063. </doc>
  9064. </method>
  9065. <method name="getParameterValues" return="java.lang.String[]"
  9066. abstract="false" native="false" synchronized="false"
  9067. static="false" final="false" visibility="public"
  9068. deprecated="not deprecated">
  9069. <param name="name" type="java.lang.String"/>
  9070. </method>
  9071. <method name="getParameterMap" return="java.util.Map"
  9072. abstract="false" native="false" synchronized="false"
  9073. static="false" final="false" visibility="public"
  9074. deprecated="not deprecated">
  9075. </method>
  9076. <method name="getRequestURL" return="java.lang.StringBuffer"
  9077. abstract="false" native="false" synchronized="false"
  9078. static="false" final="false" visibility="public"
  9079. deprecated="not deprecated">
  9080. <doc>
  9081. <![CDATA[Quote the url so that users specifying the HOST HTTP header
  9082. can't inject attacks.]]>
  9083. </doc>
  9084. </method>
  9085. <method name="getServerName" return="java.lang.String"
  9086. abstract="false" native="false" synchronized="false"
  9087. static="false" final="false" visibility="public"
  9088. deprecated="not deprecated">
  9089. <doc>
  9090. <![CDATA[Quote the server name so that users specifying the HOST HTTP header
  9091. can't inject attacks.]]>
  9092. </doc>
  9093. </method>
  9094. </class>
  9095. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9096. <!-- start class org.apache.hadoop.http.HttpServer.StackServlet -->
  9097. <class name="HttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  9098. abstract="false"
  9099. static="true" final="false" visibility="public"
  9100. deprecated="not deprecated">
  9101. <constructor name="HttpServer.StackServlet"
  9102. static="false" final="false" visibility="public"
  9103. deprecated="not deprecated">
  9104. </constructor>
  9105. <method name="doGet"
  9106. abstract="false" native="false" synchronized="false"
  9107. static="false" final="false" visibility="public"
  9108. deprecated="not deprecated">
  9109. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9110. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9111. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9112. <exception name="IOException" type="java.io.IOException"/>
  9113. </method>
  9114. <doc>
  9115. <![CDATA[A very simple servlet to serve up a text representation of the current
  9116. stack traces. It both returns the stacks to the caller and logs them.
  9117. Currently the stack traces are done sequentially rather than exactly the
  9118. same data.]]>
  9119. </doc>
  9120. </class>
  9121. <!-- end class org.apache.hadoop.http.HttpServer.StackServlet -->
  9122. </package>
  9123. <package name="org.apache.hadoop.http.lib">
  9124. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9125. <class name="StaticUserWebFilter" extends="org.apache.hadoop.http.FilterInitializer"
  9126. abstract="false"
  9127. static="false" final="false" visibility="public"
  9128. deprecated="not deprecated">
  9129. <constructor name="StaticUserWebFilter"
  9130. static="false" final="false" visibility="public"
  9131. deprecated="not deprecated">
  9132. </constructor>
  9133. <method name="initFilter"
  9134. abstract="false" native="false" synchronized="false"
  9135. static="false" final="false" visibility="public"
  9136. deprecated="not deprecated">
  9137. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  9138. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9139. </method>
  9140. <doc>
  9141. <![CDATA[Provides a servlet filter that pretends to authenticate a fake user (Dr.Who)
  9142. so that the web UI is usable for a secure cluster without authentication.]]>
  9143. </doc>
  9144. </class>
  9145. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9146. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9147. <class name="StaticUserWebFilter.StaticUserFilter" extends="java.lang.Object"
  9148. abstract="false"
  9149. static="true" final="false" visibility="public"
  9150. deprecated="not deprecated">
  9151. <implements name="javax.servlet.Filter"/>
  9152. <constructor name="StaticUserWebFilter.StaticUserFilter"
  9153. static="false" final="false" visibility="public"
  9154. deprecated="not deprecated">
  9155. </constructor>
  9156. <method name="destroy"
  9157. abstract="false" native="false" synchronized="false"
  9158. static="false" final="false" visibility="public"
  9159. deprecated="not deprecated">
  9160. </method>
  9161. <method name="doFilter"
  9162. abstract="false" native="false" synchronized="false"
  9163. static="false" final="false" visibility="public"
  9164. deprecated="not deprecated">
  9165. <param name="request" type="javax.servlet.ServletRequest"/>
  9166. <param name="response" type="javax.servlet.ServletResponse"/>
  9167. <param name="chain" type="javax.servlet.FilterChain"/>
  9168. <exception name="IOException" type="java.io.IOException"/>
  9169. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9170. </method>
  9171. <method name="init"
  9172. abstract="false" native="false" synchronized="false"
  9173. static="false" final="false" visibility="public"
  9174. deprecated="not deprecated">
  9175. <param name="conf" type="javax.servlet.FilterConfig"/>
  9176. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9177. </method>
  9178. </class>
  9179. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9180. </package>
  9181. <package name="org.apache.hadoop.io">
  9182. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  9183. <class name="AbstractMapWritable" extends="java.lang.Object"
  9184. abstract="true"
  9185. static="false" final="false" visibility="public"
  9186. deprecated="not deprecated">
  9187. <implements name="org.apache.hadoop.io.Writable"/>
  9188. <implements name="org.apache.hadoop.conf.Configurable"/>
  9189. <constructor name="AbstractMapWritable"
  9190. static="false" final="false" visibility="protected"
  9191. deprecated="not deprecated">
  9192. <doc>
  9193. <![CDATA[constructor.]]>
  9194. </doc>
  9195. </constructor>
  9196. <method name="addToMap"
  9197. abstract="false" native="false" synchronized="true"
  9198. static="false" final="false" visibility="protected"
  9199. deprecated="not deprecated">
  9200. <param name="clazz" type="java.lang.Class"/>
  9201. <doc>
  9202. <![CDATA[Add a Class to the maps if it is not already present.]]>
  9203. </doc>
  9204. </method>
  9205. <method name="getClass" return="java.lang.Class"
  9206. abstract="false" native="false" synchronized="false"
  9207. static="false" final="false" visibility="protected"
  9208. deprecated="not deprecated">
  9209. <param name="id" type="byte"/>
  9210. <doc>
  9211. <![CDATA[@return the Class class for the specified id]]>
  9212. </doc>
  9213. </method>
  9214. <method name="getId" return="byte"
  9215. abstract="false" native="false" synchronized="false"
  9216. static="false" final="false" visibility="protected"
  9217. deprecated="not deprecated">
  9218. <param name="clazz" type="java.lang.Class"/>
  9219. <doc>
  9220. <![CDATA[@return the id for the specified Class]]>
  9221. </doc>
  9222. </method>
  9223. <method name="copy"
  9224. abstract="false" native="false" synchronized="true"
  9225. static="false" final="false" visibility="protected"
  9226. deprecated="not deprecated">
  9227. <param name="other" type="org.apache.hadoop.io.Writable"/>
  9228. <doc>
  9229. <![CDATA[Used by child copy constructors.]]>
  9230. </doc>
  9231. </method>
  9232. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9233. abstract="false" native="false" synchronized="false"
  9234. static="false" final="false" visibility="public"
  9235. deprecated="not deprecated">
  9236. <doc>
  9237. <![CDATA[@return the conf]]>
  9238. </doc>
  9239. </method>
  9240. <method name="setConf"
  9241. abstract="false" native="false" synchronized="false"
  9242. static="false" final="false" visibility="public"
  9243. deprecated="not deprecated">
  9244. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9245. <doc>
  9246. <![CDATA[@param conf the conf to set]]>
  9247. </doc>
  9248. </method>
  9249. <method name="write"
  9250. abstract="false" native="false" synchronized="false"
  9251. static="false" final="false" visibility="public"
  9252. deprecated="not deprecated">
  9253. <param name="out" type="java.io.DataOutput"/>
  9254. <exception name="IOException" type="java.io.IOException"/>
  9255. <doc>
  9256. <![CDATA[{@inheritDoc}]]>
  9257. </doc>
  9258. </method>
  9259. <method name="readFields"
  9260. abstract="false" native="false" synchronized="false"
  9261. static="false" final="false" visibility="public"
  9262. deprecated="not deprecated">
  9263. <param name="in" type="java.io.DataInput"/>
  9264. <exception name="IOException" type="java.io.IOException"/>
  9265. <doc>
  9266. <![CDATA[{@inheritDoc}]]>
  9267. </doc>
  9268. </method>
  9269. <doc>
  9270. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  9271. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  9272. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  9273. maps travel with the class instead of being static.
  9274. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  9275. in any specific map instance.]]>
  9276. </doc>
  9277. </class>
  9278. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  9279. <!-- start class org.apache.hadoop.io.ArrayFile -->
  9280. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  9281. abstract="false"
  9282. static="false" final="false" visibility="public"
  9283. deprecated="not deprecated">
  9284. <constructor name="ArrayFile"
  9285. static="false" final="false" visibility="protected"
  9286. deprecated="not deprecated">
  9287. </constructor>
  9288. <doc>
  9289. <![CDATA[A dense file-based mapping from integers to values.]]>
  9290. </doc>
  9291. </class>
  9292. <!-- end class org.apache.hadoop.io.ArrayFile -->
  9293. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  9294. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9295. abstract="false"
  9296. static="true" final="false" visibility="public"
  9297. deprecated="not deprecated">
  9298. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9299. static="false" final="false" visibility="public"
  9300. deprecated="not deprecated">
  9301. <exception name="IOException" type="java.io.IOException"/>
  9302. <doc>
  9303. <![CDATA[Construct an array reader for the named file.]]>
  9304. </doc>
  9305. </constructor>
  9306. <method name="seek"
  9307. abstract="false" native="false" synchronized="true"
  9308. static="false" final="false" visibility="public"
  9309. deprecated="not deprecated">
  9310. <param name="n" type="long"/>
  9311. <exception name="IOException" type="java.io.IOException"/>
  9312. <doc>
  9313. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  9314. </doc>
  9315. </method>
  9316. <method name="next" return="org.apache.hadoop.io.Writable"
  9317. abstract="false" native="false" synchronized="true"
  9318. static="false" final="false" visibility="public"
  9319. deprecated="not deprecated">
  9320. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9321. <exception name="IOException" type="java.io.IOException"/>
  9322. <doc>
  9323. <![CDATA[Read and return the next value in the file.]]>
  9324. </doc>
  9325. </method>
  9326. <method name="key" return="long"
  9327. abstract="false" native="false" synchronized="true"
  9328. static="false" final="false" visibility="public"
  9329. deprecated="not deprecated">
  9330. <exception name="IOException" type="java.io.IOException"/>
  9331. <doc>
  9332. <![CDATA[Returns the key associated with the most recent call to {@link
  9333. #seek(long)}, {@link #next(Writable)}, or {@link
  9334. #get(long,Writable)}.]]>
  9335. </doc>
  9336. </method>
  9337. <method name="get" return="org.apache.hadoop.io.Writable"
  9338. abstract="false" native="false" synchronized="true"
  9339. static="false" final="false" visibility="public"
  9340. deprecated="not deprecated">
  9341. <param name="n" type="long"/>
  9342. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9343. <exception name="IOException" type="java.io.IOException"/>
  9344. <doc>
  9345. <![CDATA[Return the <code>n</code>th value in the file.]]>
  9346. </doc>
  9347. </method>
  9348. <doc>
  9349. <![CDATA[Provide access to an existing array file.]]>
  9350. </doc>
  9351. </class>
  9352. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  9353. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  9354. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9355. abstract="false"
  9356. static="true" final="false" visibility="public"
  9357. deprecated="not deprecated">
  9358. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  9359. static="false" final="false" visibility="public"
  9360. deprecated="not deprecated">
  9361. <exception name="IOException" type="java.io.IOException"/>
  9362. <doc>
  9363. <![CDATA[Create the named file for values of the named class.]]>
  9364. </doc>
  9365. </constructor>
  9366. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  9367. static="false" final="false" visibility="public"
  9368. deprecated="not deprecated">
  9369. <exception name="IOException" type="java.io.IOException"/>
  9370. <doc>
  9371. <![CDATA[Create the named file for values of the named class.]]>
  9372. </doc>
  9373. </constructor>
  9374. <method name="append"
  9375. abstract="false" native="false" synchronized="true"
  9376. static="false" final="false" visibility="public"
  9377. deprecated="not deprecated">
  9378. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9379. <exception name="IOException" type="java.io.IOException"/>
  9380. <doc>
  9381. <![CDATA[Append a value to the file.]]>
  9382. </doc>
  9383. </method>
  9384. <doc>
  9385. <![CDATA[Write a new array file.]]>
  9386. </doc>
  9387. </class>
  9388. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  9389. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  9390. <class name="ArrayWritable" extends="java.lang.Object"
  9391. abstract="false"
  9392. static="false" final="false" visibility="public"
  9393. deprecated="not deprecated">
  9394. <implements name="org.apache.hadoop.io.Writable"/>
  9395. <constructor name="ArrayWritable" type="java.lang.Class"
  9396. static="false" final="false" visibility="public"
  9397. deprecated="not deprecated">
  9398. </constructor>
  9399. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  9400. static="false" final="false" visibility="public"
  9401. deprecated="not deprecated">
  9402. </constructor>
  9403. <constructor name="ArrayWritable" type="java.lang.String[]"
  9404. static="false" final="false" visibility="public"
  9405. deprecated="not deprecated">
  9406. </constructor>
  9407. <method name="getValueClass" return="java.lang.Class"
  9408. abstract="false" native="false" synchronized="false"
  9409. static="false" final="false" visibility="public"
  9410. deprecated="not deprecated">
  9411. </method>
  9412. <method name="toStrings" return="java.lang.String[]"
  9413. abstract="false" native="false" synchronized="false"
  9414. static="false" final="false" visibility="public"
  9415. deprecated="not deprecated">
  9416. </method>
  9417. <method name="toArray" return="java.lang.Object"
  9418. abstract="false" native="false" synchronized="false"
  9419. static="false" final="false" visibility="public"
  9420. deprecated="not deprecated">
  9421. </method>
  9422. <method name="set"
  9423. abstract="false" native="false" synchronized="false"
  9424. static="false" final="false" visibility="public"
  9425. deprecated="not deprecated">
  9426. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  9427. </method>
  9428. <method name="get" return="org.apache.hadoop.io.Writable[]"
  9429. abstract="false" native="false" synchronized="false"
  9430. static="false" final="false" visibility="public"
  9431. deprecated="not deprecated">
  9432. </method>
  9433. <method name="readFields"
  9434. abstract="false" native="false" synchronized="false"
  9435. static="false" final="false" visibility="public"
  9436. deprecated="not deprecated">
  9437. <param name="in" type="java.io.DataInput"/>
  9438. <exception name="IOException" type="java.io.IOException"/>
  9439. </method>
  9440. <method name="write"
  9441. abstract="false" native="false" synchronized="false"
  9442. static="false" final="false" visibility="public"
  9443. deprecated="not deprecated">
  9444. <param name="out" type="java.io.DataOutput"/>
  9445. <exception name="IOException" type="java.io.IOException"/>
  9446. </method>
  9447. <doc>
  9448. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  9449. writable must all be instances of the same class. If this writable will be
  9450. the input for a Reducer, you will need to create a subclass that sets the
  9451. value to be of the proper type.
  9452. For example:
  9453. <code>
  9454. public class IntArrayWritable extends ArrayWritable {
  9455. public IntArrayWritable() {
  9456. super(IntWritable.class);
  9457. }
  9458. }
  9459. </code>]]>
  9460. </doc>
  9461. </class>
  9462. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  9463. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  9464. <class name="BinaryComparable" extends="java.lang.Object"
  9465. abstract="true"
  9466. static="false" final="false" visibility="public"
  9467. deprecated="not deprecated">
  9468. <implements name="java.lang.Comparable"/>
  9469. <constructor name="BinaryComparable"
  9470. static="false" final="false" visibility="public"
  9471. deprecated="not deprecated">
  9472. </constructor>
  9473. <method name="getLength" return="int"
  9474. abstract="true" native="false" synchronized="false"
  9475. static="false" final="false" visibility="public"
  9476. deprecated="not deprecated">
  9477. <doc>
  9478. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  9479. </doc>
  9480. </method>
  9481. <method name="getBytes" return="byte[]"
  9482. abstract="true" native="false" synchronized="false"
  9483. static="false" final="false" visibility="public"
  9484. deprecated="not deprecated">
  9485. <doc>
  9486. <![CDATA[Return representative byte array for this instance.]]>
  9487. </doc>
  9488. </method>
  9489. <method name="compareTo" return="int"
  9490. abstract="false" native="false" synchronized="false"
  9491. static="false" final="false" visibility="public"
  9492. deprecated="not deprecated">
  9493. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  9494. <doc>
  9495. <![CDATA[Compare bytes from {#getBytes()}.
  9496. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  9497. </doc>
  9498. </method>
  9499. <method name="compareTo" return="int"
  9500. abstract="false" native="false" synchronized="false"
  9501. static="false" final="false" visibility="public"
  9502. deprecated="not deprecated">
  9503. <param name="other" type="byte[]"/>
  9504. <param name="off" type="int"/>
  9505. <param name="len" type="int"/>
  9506. <doc>
  9507. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  9508. </doc>
  9509. </method>
  9510. <method name="equals" return="boolean"
  9511. abstract="false" native="false" synchronized="false"
  9512. static="false" final="false" visibility="public"
  9513. deprecated="not deprecated">
  9514. <param name="other" type="java.lang.Object"/>
  9515. <doc>
  9516. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  9517. </doc>
  9518. </method>
  9519. <method name="hashCode" return="int"
  9520. abstract="false" native="false" synchronized="false"
  9521. static="false" final="false" visibility="public"
  9522. deprecated="not deprecated">
  9523. <doc>
  9524. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  9525. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  9526. </doc>
  9527. </method>
  9528. <doc>
  9529. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  9530. types supporting ordering/permutation by a representative set of bytes.]]>
  9531. </doc>
  9532. </class>
  9533. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  9534. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  9535. <class name="BloomMapFile" extends="java.lang.Object"
  9536. abstract="false"
  9537. static="false" final="false" visibility="public"
  9538. deprecated="not deprecated">
  9539. <constructor name="BloomMapFile"
  9540. static="false" final="false" visibility="public"
  9541. deprecated="not deprecated">
  9542. </constructor>
  9543. <method name="delete"
  9544. abstract="false" native="false" synchronized="false"
  9545. static="true" final="false" visibility="public"
  9546. deprecated="not deprecated">
  9547. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9548. <param name="name" type="java.lang.String"/>
  9549. <exception name="IOException" type="java.io.IOException"/>
  9550. </method>
  9551. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  9552. transient="false" volatile="false"
  9553. static="true" final="true" visibility="public"
  9554. deprecated="not deprecated">
  9555. </field>
  9556. <field name="HASH_COUNT" type="int"
  9557. transient="false" volatile="false"
  9558. static="true" final="true" visibility="public"
  9559. deprecated="not deprecated">
  9560. </field>
  9561. <doc>
  9562. <![CDATA[This class extends {@link MapFile} and provides very much the same
  9563. functionality. However, it uses dynamic Bloom filters to provide
  9564. quick membership test for keys, and it offers a fast version of
  9565. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  9566. case of sparsely populated MapFile-s.]]>
  9567. </doc>
  9568. </class>
  9569. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  9570. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  9571. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9572. abstract="false"
  9573. static="true" final="false" visibility="public"
  9574. deprecated="not deprecated">
  9575. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9576. static="false" final="false" visibility="public"
  9577. deprecated="not deprecated">
  9578. <exception name="IOException" type="java.io.IOException"/>
  9579. </constructor>
  9580. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  9581. static="false" final="false" visibility="public"
  9582. deprecated="not deprecated">
  9583. <exception name="IOException" type="java.io.IOException"/>
  9584. </constructor>
  9585. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  9586. static="false" final="false" visibility="public"
  9587. deprecated="not deprecated">
  9588. <exception name="IOException" type="java.io.IOException"/>
  9589. </constructor>
  9590. <method name="probablyHasKey" return="boolean"
  9591. abstract="false" native="false" synchronized="false"
  9592. static="false" final="false" visibility="public"
  9593. deprecated="not deprecated">
  9594. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9595. <exception name="IOException" type="java.io.IOException"/>
  9596. <doc>
  9597. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  9598. performed using a Bloom filter, so the result has always non-zero
  9599. probability of false positives.
  9600. @param key key to check
  9601. @return false iff key doesn't exist, true if key probably exists.
  9602. @throws IOException]]>
  9603. </doc>
  9604. </method>
  9605. <method name="get" return="org.apache.hadoop.io.Writable"
  9606. abstract="false" native="false" synchronized="true"
  9607. static="false" final="false" visibility="public"
  9608. deprecated="not deprecated">
  9609. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9610. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9611. <exception name="IOException" type="java.io.IOException"/>
  9612. <doc>
  9613. <![CDATA[Fast version of the
  9614. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  9615. it checks the Bloom filter for the existence of the key, and only if
  9616. present it performs the real get operation. This yields significant
  9617. performance improvements for get operations on sparsely populated files.]]>
  9618. </doc>
  9619. </method>
  9620. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  9621. abstract="false" native="false" synchronized="false"
  9622. static="false" final="false" visibility="public"
  9623. deprecated="not deprecated">
  9624. <doc>
  9625. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  9626. @return a Bloom filter (see {@link Filter})]]>
  9627. </doc>
  9628. </method>
  9629. </class>
  9630. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  9631. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  9632. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9633. abstract="false"
  9634. static="true" final="false" visibility="public"
  9635. deprecated="not deprecated">
  9636. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  9637. static="false" final="false" visibility="public"
  9638. deprecated="not deprecated">
  9639. <exception name="IOException" type="java.io.IOException"/>
  9640. </constructor>
  9641. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  9642. static="false" final="false" visibility="public"
  9643. deprecated="not deprecated">
  9644. <exception name="IOException" type="java.io.IOException"/>
  9645. </constructor>
  9646. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  9647. static="false" final="false" visibility="public"
  9648. deprecated="not deprecated">
  9649. <exception name="IOException" type="java.io.IOException"/>
  9650. </constructor>
  9651. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  9652. static="false" final="false" visibility="public"
  9653. deprecated="not deprecated">
  9654. <exception name="IOException" type="java.io.IOException"/>
  9655. </constructor>
  9656. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  9657. static="false" final="false" visibility="public"
  9658. deprecated="not deprecated">
  9659. <exception name="IOException" type="java.io.IOException"/>
  9660. </constructor>
  9661. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  9662. static="false" final="false" visibility="public"
  9663. deprecated="not deprecated">
  9664. <exception name="IOException" type="java.io.IOException"/>
  9665. </constructor>
  9666. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class"
  9667. static="false" final="false" visibility="public"
  9668. deprecated="not deprecated">
  9669. <exception name="IOException" type="java.io.IOException"/>
  9670. </constructor>
  9671. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  9672. static="false" final="false" visibility="public"
  9673. deprecated="not deprecated">
  9674. <exception name="IOException" type="java.io.IOException"/>
  9675. </constructor>
  9676. <method name="append"
  9677. abstract="false" native="false" synchronized="true"
  9678. static="false" final="false" visibility="public"
  9679. deprecated="not deprecated">
  9680. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9681. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9682. <exception name="IOException" type="java.io.IOException"/>
  9683. </method>
  9684. <method name="close"
  9685. abstract="false" native="false" synchronized="true"
  9686. static="false" final="false" visibility="public"
  9687. deprecated="not deprecated">
  9688. <exception name="IOException" type="java.io.IOException"/>
  9689. </method>
  9690. </class>
  9691. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  9692. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  9693. <class name="BooleanWritable" extends="java.lang.Object"
  9694. abstract="false"
  9695. static="false" final="false" visibility="public"
  9696. deprecated="not deprecated">
  9697. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9698. <constructor name="BooleanWritable"
  9699. static="false" final="false" visibility="public"
  9700. deprecated="not deprecated">
  9701. </constructor>
  9702. <constructor name="BooleanWritable" type="boolean"
  9703. static="false" final="false" visibility="public"
  9704. deprecated="not deprecated">
  9705. </constructor>
  9706. <method name="set"
  9707. abstract="false" native="false" synchronized="false"
  9708. static="false" final="false" visibility="public"
  9709. deprecated="not deprecated">
  9710. <param name="value" type="boolean"/>
  9711. <doc>
  9712. <![CDATA[Set the value of the BooleanWritable]]>
  9713. </doc>
  9714. </method>
  9715. <method name="get" return="boolean"
  9716. abstract="false" native="false" synchronized="false"
  9717. static="false" final="false" visibility="public"
  9718. deprecated="not deprecated">
  9719. <doc>
  9720. <![CDATA[Returns the value of the BooleanWritable]]>
  9721. </doc>
  9722. </method>
  9723. <method name="readFields"
  9724. abstract="false" native="false" synchronized="false"
  9725. static="false" final="false" visibility="public"
  9726. deprecated="not deprecated">
  9727. <param name="in" type="java.io.DataInput"/>
  9728. <exception name="IOException" type="java.io.IOException"/>
  9729. </method>
  9730. <method name="write"
  9731. abstract="false" native="false" synchronized="false"
  9732. static="false" final="false" visibility="public"
  9733. deprecated="not deprecated">
  9734. <param name="out" type="java.io.DataOutput"/>
  9735. <exception name="IOException" type="java.io.IOException"/>
  9736. </method>
  9737. <method name="equals" return="boolean"
  9738. abstract="false" native="false" synchronized="false"
  9739. static="false" final="false" visibility="public"
  9740. deprecated="not deprecated">
  9741. <param name="o" type="java.lang.Object"/>
  9742. </method>
  9743. <method name="hashCode" return="int"
  9744. abstract="false" native="false" synchronized="false"
  9745. static="false" final="false" visibility="public"
  9746. deprecated="not deprecated">
  9747. </method>
  9748. <method name="compareTo" return="int"
  9749. abstract="false" native="false" synchronized="false"
  9750. static="false" final="false" visibility="public"
  9751. deprecated="not deprecated">
  9752. <param name="o" type="java.lang.Object"/>
  9753. </method>
  9754. <method name="toString" return="java.lang.String"
  9755. abstract="false" native="false" synchronized="false"
  9756. static="false" final="false" visibility="public"
  9757. deprecated="not deprecated">
  9758. </method>
  9759. <doc>
  9760. <![CDATA[A WritableComparable for booleans.]]>
  9761. </doc>
  9762. </class>
  9763. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  9764. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9765. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9766. abstract="false"
  9767. static="true" final="false" visibility="public"
  9768. deprecated="not deprecated">
  9769. <constructor name="BooleanWritable.Comparator"
  9770. static="false" final="false" visibility="public"
  9771. deprecated="not deprecated">
  9772. </constructor>
  9773. <method name="compare" return="int"
  9774. abstract="false" native="false" synchronized="false"
  9775. static="false" final="false" visibility="public"
  9776. deprecated="not deprecated">
  9777. <param name="b1" type="byte[]"/>
  9778. <param name="s1" type="int"/>
  9779. <param name="l1" type="int"/>
  9780. <param name="b2" type="byte[]"/>
  9781. <param name="s2" type="int"/>
  9782. <param name="l2" type="int"/>
  9783. </method>
  9784. <doc>
  9785. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  9786. </doc>
  9787. </class>
  9788. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9789. <!-- start class org.apache.hadoop.io.BytesWritable -->
  9790. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  9791. abstract="false"
  9792. static="false" final="false" visibility="public"
  9793. deprecated="not deprecated">
  9794. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9795. <constructor name="BytesWritable"
  9796. static="false" final="false" visibility="public"
  9797. deprecated="not deprecated">
  9798. <doc>
  9799. <![CDATA[Create a zero-size sequence.]]>
  9800. </doc>
  9801. </constructor>
  9802. <constructor name="BytesWritable" type="byte[]"
  9803. static="false" final="false" visibility="public"
  9804. deprecated="not deprecated">
  9805. <doc>
  9806. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  9807. @param bytes This array becomes the backing storage for the object.]]>
  9808. </doc>
  9809. </constructor>
  9810. <method name="getBytes" return="byte[]"
  9811. abstract="false" native="false" synchronized="false"
  9812. static="false" final="false" visibility="public"
  9813. deprecated="not deprecated">
  9814. <doc>
  9815. <![CDATA[Get the data from the BytesWritable.
  9816. @return The data is only valid between 0 and getLength() - 1.]]>
  9817. </doc>
  9818. </method>
  9819. <method name="get" return="byte[]"
  9820. abstract="false" native="false" synchronized="false"
  9821. static="false" final="false" visibility="public"
  9822. deprecated="Use {@link #getBytes()} instead.">
  9823. <doc>
  9824. <![CDATA[Get the data from the BytesWritable.
  9825. @deprecated Use {@link #getBytes()} instead.]]>
  9826. </doc>
  9827. </method>
  9828. <method name="getLength" return="int"
  9829. abstract="false" native="false" synchronized="false"
  9830. static="false" final="false" visibility="public"
  9831. deprecated="not deprecated">
  9832. <doc>
  9833. <![CDATA[Get the current size of the buffer.]]>
  9834. </doc>
  9835. </method>
  9836. <method name="getSize" return="int"
  9837. abstract="false" native="false" synchronized="false"
  9838. static="false" final="false" visibility="public"
  9839. deprecated="Use {@link #getLength()} instead.">
  9840. <doc>
  9841. <![CDATA[Get the current size of the buffer.
  9842. @deprecated Use {@link #getLength()} instead.]]>
  9843. </doc>
  9844. </method>
  9845. <method name="setSize"
  9846. abstract="false" native="false" synchronized="false"
  9847. static="false" final="false" visibility="public"
  9848. deprecated="not deprecated">
  9849. <param name="size" type="int"/>
  9850. <doc>
  9851. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  9852. and any new values are undefined. The capacity is changed if it is
  9853. necessary.
  9854. @param size The new number of bytes]]>
  9855. </doc>
  9856. </method>
  9857. <method name="getCapacity" return="int"
  9858. abstract="false" native="false" synchronized="false"
  9859. static="false" final="false" visibility="public"
  9860. deprecated="not deprecated">
  9861. <doc>
  9862. <![CDATA[Get the capacity, which is the maximum size that could handled without
  9863. resizing the backing storage.
  9864. @return The number of bytes]]>
  9865. </doc>
  9866. </method>
  9867. <method name="setCapacity"
  9868. abstract="false" native="false" synchronized="false"
  9869. static="false" final="false" visibility="public"
  9870. deprecated="not deprecated">
  9871. <param name="new_cap" type="int"/>
  9872. <doc>
  9873. <![CDATA[Change the capacity of the backing storage.
  9874. The data is preserved.
  9875. @param new_cap The new capacity in bytes.]]>
  9876. </doc>
  9877. </method>
  9878. <method name="set"
  9879. abstract="false" native="false" synchronized="false"
  9880. static="false" final="false" visibility="public"
  9881. deprecated="not deprecated">
  9882. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  9883. <doc>
  9884. <![CDATA[Set the BytesWritable to the contents of the given newData.
  9885. @param newData the value to set this BytesWritable to.]]>
  9886. </doc>
  9887. </method>
  9888. <method name="set"
  9889. abstract="false" native="false" synchronized="false"
  9890. static="false" final="false" visibility="public"
  9891. deprecated="not deprecated">
  9892. <param name="newData" type="byte[]"/>
  9893. <param name="offset" type="int"/>
  9894. <param name="length" type="int"/>
  9895. <doc>
  9896. <![CDATA[Set the value to a copy of the given byte range
  9897. @param newData the new values to copy in
  9898. @param offset the offset in newData to start at
  9899. @param length the number of bytes to copy]]>
  9900. </doc>
  9901. </method>
  9902. <method name="readFields"
  9903. abstract="false" native="false" synchronized="false"
  9904. static="false" final="false" visibility="public"
  9905. deprecated="not deprecated">
  9906. <param name="in" type="java.io.DataInput"/>
  9907. <exception name="IOException" type="java.io.IOException"/>
  9908. </method>
  9909. <method name="write"
  9910. abstract="false" native="false" synchronized="false"
  9911. static="false" final="false" visibility="public"
  9912. deprecated="not deprecated">
  9913. <param name="out" type="java.io.DataOutput"/>
  9914. <exception name="IOException" type="java.io.IOException"/>
  9915. </method>
  9916. <method name="hashCode" return="int"
  9917. abstract="false" native="false" synchronized="false"
  9918. static="false" final="false" visibility="public"
  9919. deprecated="not deprecated">
  9920. </method>
  9921. <method name="equals" return="boolean"
  9922. abstract="false" native="false" synchronized="false"
  9923. static="false" final="false" visibility="public"
  9924. deprecated="not deprecated">
  9925. <param name="right_obj" type="java.lang.Object"/>
  9926. <doc>
  9927. <![CDATA[Are the two byte sequences equal?]]>
  9928. </doc>
  9929. </method>
  9930. <method name="toString" return="java.lang.String"
  9931. abstract="false" native="false" synchronized="false"
  9932. static="false" final="false" visibility="public"
  9933. deprecated="not deprecated">
  9934. <doc>
  9935. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  9936. </doc>
  9937. </method>
  9938. <doc>
  9939. <![CDATA[A byte sequence that is usable as a key or value.
  9940. It is resizable and distinguishes between the size of the seqeunce and
  9941. the current capacity. The hash function is the front of the md5 of the
  9942. buffer. The sort order is the same as memcmp.]]>
  9943. </doc>
  9944. </class>
  9945. <!-- end class org.apache.hadoop.io.BytesWritable -->
  9946. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  9947. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9948. abstract="false"
  9949. static="true" final="false" visibility="public"
  9950. deprecated="not deprecated">
  9951. <constructor name="BytesWritable.Comparator"
  9952. static="false" final="false" visibility="public"
  9953. deprecated="not deprecated">
  9954. </constructor>
  9955. <method name="compare" return="int"
  9956. abstract="false" native="false" synchronized="false"
  9957. static="false" final="false" visibility="public"
  9958. deprecated="not deprecated">
  9959. <param name="b1" type="byte[]"/>
  9960. <param name="s1" type="int"/>
  9961. <param name="l1" type="int"/>
  9962. <param name="b2" type="byte[]"/>
  9963. <param name="s2" type="int"/>
  9964. <param name="l2" type="int"/>
  9965. <doc>
  9966. <![CDATA[Compare the buffers in serialized form.]]>
  9967. </doc>
  9968. </method>
  9969. <doc>
  9970. <![CDATA[A Comparator optimized for BytesWritable.]]>
  9971. </doc>
  9972. </class>
  9973. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  9974. <!-- start class org.apache.hadoop.io.ByteWritable -->
  9975. <class name="ByteWritable" extends="java.lang.Object"
  9976. abstract="false"
  9977. static="false" final="false" visibility="public"
  9978. deprecated="not deprecated">
  9979. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9980. <constructor name="ByteWritable"
  9981. static="false" final="false" visibility="public"
  9982. deprecated="not deprecated">
  9983. </constructor>
  9984. <constructor name="ByteWritable" type="byte"
  9985. static="false" final="false" visibility="public"
  9986. deprecated="not deprecated">
  9987. </constructor>
  9988. <method name="set"
  9989. abstract="false" native="false" synchronized="false"
  9990. static="false" final="false" visibility="public"
  9991. deprecated="not deprecated">
  9992. <param name="value" type="byte"/>
  9993. <doc>
  9994. <![CDATA[Set the value of this ByteWritable.]]>
  9995. </doc>
  9996. </method>
  9997. <method name="get" return="byte"
  9998. abstract="false" native="false" synchronized="false"
  9999. static="false" final="false" visibility="public"
  10000. deprecated="not deprecated">
  10001. <doc>
  10002. <![CDATA[Return the value of this ByteWritable.]]>
  10003. </doc>
  10004. </method>
  10005. <method name="readFields"
  10006. abstract="false" native="false" synchronized="false"
  10007. static="false" final="false" visibility="public"
  10008. deprecated="not deprecated">
  10009. <param name="in" type="java.io.DataInput"/>
  10010. <exception name="IOException" type="java.io.IOException"/>
  10011. </method>
  10012. <method name="write"
  10013. abstract="false" native="false" synchronized="false"
  10014. static="false" final="false" visibility="public"
  10015. deprecated="not deprecated">
  10016. <param name="out" type="java.io.DataOutput"/>
  10017. <exception name="IOException" type="java.io.IOException"/>
  10018. </method>
  10019. <method name="equals" return="boolean"
  10020. abstract="false" native="false" synchronized="false"
  10021. static="false" final="false" visibility="public"
  10022. deprecated="not deprecated">
  10023. <param name="o" type="java.lang.Object"/>
  10024. <doc>
  10025. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  10026. </doc>
  10027. </method>
  10028. <method name="hashCode" return="int"
  10029. abstract="false" native="false" synchronized="false"
  10030. static="false" final="false" visibility="public"
  10031. deprecated="not deprecated">
  10032. </method>
  10033. <method name="compareTo" return="int"
  10034. abstract="false" native="false" synchronized="false"
  10035. static="false" final="false" visibility="public"
  10036. deprecated="not deprecated">
  10037. <param name="o" type="java.lang.Object"/>
  10038. <doc>
  10039. <![CDATA[Compares two ByteWritables.]]>
  10040. </doc>
  10041. </method>
  10042. <method name="toString" return="java.lang.String"
  10043. abstract="false" native="false" synchronized="false"
  10044. static="false" final="false" visibility="public"
  10045. deprecated="not deprecated">
  10046. </method>
  10047. <doc>
  10048. <![CDATA[A WritableComparable for a single byte.]]>
  10049. </doc>
  10050. </class>
  10051. <!-- end class org.apache.hadoop.io.ByteWritable -->
  10052. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  10053. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10054. abstract="false"
  10055. static="true" final="false" visibility="public"
  10056. deprecated="not deprecated">
  10057. <constructor name="ByteWritable.Comparator"
  10058. static="false" final="false" visibility="public"
  10059. deprecated="not deprecated">
  10060. </constructor>
  10061. <method name="compare" return="int"
  10062. abstract="false" native="false" synchronized="false"
  10063. static="false" final="false" visibility="public"
  10064. deprecated="not deprecated">
  10065. <param name="b1" type="byte[]"/>
  10066. <param name="s1" type="int"/>
  10067. <param name="l1" type="int"/>
  10068. <param name="b2" type="byte[]"/>
  10069. <param name="s2" type="int"/>
  10070. <param name="l2" type="int"/>
  10071. </method>
  10072. <doc>
  10073. <![CDATA[A Comparator optimized for ByteWritable.]]>
  10074. </doc>
  10075. </class>
  10076. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  10077. <!-- start interface org.apache.hadoop.io.Closeable -->
  10078. <interface name="Closeable" abstract="true"
  10079. static="false" final="false" visibility="public"
  10080. deprecated="use java.io.Closeable">
  10081. <implements name="java.io.Closeable"/>
  10082. <doc>
  10083. <![CDATA[@deprecated use java.io.Closeable]]>
  10084. </doc>
  10085. </interface>
  10086. <!-- end interface org.apache.hadoop.io.Closeable -->
  10087. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  10088. <class name="CompressedWritable" extends="java.lang.Object"
  10089. abstract="true"
  10090. static="false" final="false" visibility="public"
  10091. deprecated="not deprecated">
  10092. <implements name="org.apache.hadoop.io.Writable"/>
  10093. <constructor name="CompressedWritable"
  10094. static="false" final="false" visibility="public"
  10095. deprecated="not deprecated">
  10096. </constructor>
  10097. <method name="readFields"
  10098. abstract="false" native="false" synchronized="false"
  10099. static="false" final="true" visibility="public"
  10100. deprecated="not deprecated">
  10101. <param name="in" type="java.io.DataInput"/>
  10102. <exception name="IOException" type="java.io.IOException"/>
  10103. </method>
  10104. <method name="ensureInflated"
  10105. abstract="false" native="false" synchronized="false"
  10106. static="false" final="false" visibility="protected"
  10107. deprecated="not deprecated">
  10108. <doc>
  10109. <![CDATA[Must be called by all methods which access fields to ensure that the data
  10110. has been uncompressed.]]>
  10111. </doc>
  10112. </method>
  10113. <method name="readFieldsCompressed"
  10114. abstract="true" native="false" synchronized="false"
  10115. static="false" final="false" visibility="protected"
  10116. deprecated="not deprecated">
  10117. <param name="in" type="java.io.DataInput"/>
  10118. <exception name="IOException" type="java.io.IOException"/>
  10119. <doc>
  10120. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  10121. </doc>
  10122. </method>
  10123. <method name="write"
  10124. abstract="false" native="false" synchronized="false"
  10125. static="false" final="true" visibility="public"
  10126. deprecated="not deprecated">
  10127. <param name="out" type="java.io.DataOutput"/>
  10128. <exception name="IOException" type="java.io.IOException"/>
  10129. </method>
  10130. <method name="writeCompressed"
  10131. abstract="true" native="false" synchronized="false"
  10132. static="false" final="false" visibility="protected"
  10133. deprecated="not deprecated">
  10134. <param name="out" type="java.io.DataOutput"/>
  10135. <exception name="IOException" type="java.io.IOException"/>
  10136. <doc>
  10137. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  10138. </doc>
  10139. </method>
  10140. <doc>
  10141. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  10142. inflate on field access. This is useful for large objects whose fields are
  10143. not be altered during a map or reduce operation: leaving the field data
  10144. compressed makes copying the instance from one file to another much
  10145. faster.]]>
  10146. </doc>
  10147. </class>
  10148. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  10149. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  10150. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  10151. abstract="false"
  10152. static="false" final="false" visibility="public"
  10153. deprecated="not deprecated">
  10154. <constructor name="DataInputBuffer"
  10155. static="false" final="false" visibility="public"
  10156. deprecated="not deprecated">
  10157. <doc>
  10158. <![CDATA[Constructs a new empty buffer.]]>
  10159. </doc>
  10160. </constructor>
  10161. <method name="reset"
  10162. abstract="false" native="false" synchronized="false"
  10163. static="false" final="false" visibility="public"
  10164. deprecated="not deprecated">
  10165. <param name="input" type="byte[]"/>
  10166. <param name="length" type="int"/>
  10167. <doc>
  10168. <![CDATA[Resets the data that the buffer reads.]]>
  10169. </doc>
  10170. </method>
  10171. <method name="reset"
  10172. abstract="false" native="false" synchronized="false"
  10173. static="false" final="false" visibility="public"
  10174. deprecated="not deprecated">
  10175. <param name="input" type="byte[]"/>
  10176. <param name="start" type="int"/>
  10177. <param name="length" type="int"/>
  10178. <doc>
  10179. <![CDATA[Resets the data that the buffer reads.]]>
  10180. </doc>
  10181. </method>
  10182. <method name="getData" return="byte[]"
  10183. abstract="false" native="false" synchronized="false"
  10184. static="false" final="false" visibility="public"
  10185. deprecated="not deprecated">
  10186. </method>
  10187. <method name="getPosition" return="int"
  10188. abstract="false" native="false" synchronized="false"
  10189. static="false" final="false" visibility="public"
  10190. deprecated="not deprecated">
  10191. <doc>
  10192. <![CDATA[Returns the current position in the input.]]>
  10193. </doc>
  10194. </method>
  10195. <method name="getLength" return="int"
  10196. abstract="false" native="false" synchronized="false"
  10197. static="false" final="false" visibility="public"
  10198. deprecated="not deprecated">
  10199. <doc>
  10200. <![CDATA[Returns the length of the input.]]>
  10201. </doc>
  10202. </method>
  10203. <doc>
  10204. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  10205. buffer.
  10206. <p>This saves memory over creating a new DataInputStream and
  10207. ByteArrayInputStream each time data is read.
  10208. <p>Typical usage is something like the following:<pre>
  10209. DataInputBuffer buffer = new DataInputBuffer();
  10210. while (... loop condition ...) {
  10211. byte[] data = ... get data ...;
  10212. int dataLength = ... get data length ...;
  10213. buffer.reset(data, dataLength);
  10214. ... read buffer using DataInput methods ...
  10215. }
  10216. </pre>]]>
  10217. </doc>
  10218. </class>
  10219. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  10220. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  10221. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  10222. abstract="false"
  10223. static="false" final="false" visibility="public"
  10224. deprecated="not deprecated">
  10225. <constructor name="DataOutputBuffer"
  10226. static="false" final="false" visibility="public"
  10227. deprecated="not deprecated">
  10228. <doc>
  10229. <![CDATA[Constructs a new empty buffer.]]>
  10230. </doc>
  10231. </constructor>
  10232. <constructor name="DataOutputBuffer" type="int"
  10233. static="false" final="false" visibility="public"
  10234. deprecated="not deprecated">
  10235. </constructor>
  10236. <method name="getData" return="byte[]"
  10237. abstract="false" native="false" synchronized="false"
  10238. static="false" final="false" visibility="public"
  10239. deprecated="not deprecated">
  10240. <doc>
  10241. <![CDATA[Returns the current contents of the buffer.
  10242. Data is only valid to {@link #getLength()}.]]>
  10243. </doc>
  10244. </method>
  10245. <method name="getLength" return="int"
  10246. abstract="false" native="false" synchronized="false"
  10247. static="false" final="false" visibility="public"
  10248. deprecated="not deprecated">
  10249. <doc>
  10250. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  10251. </doc>
  10252. </method>
  10253. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  10254. abstract="false" native="false" synchronized="false"
  10255. static="false" final="false" visibility="public"
  10256. deprecated="not deprecated">
  10257. <doc>
  10258. <![CDATA[Resets the buffer to empty.]]>
  10259. </doc>
  10260. </method>
  10261. <method name="write"
  10262. abstract="false" native="false" synchronized="false"
  10263. static="false" final="false" visibility="public"
  10264. deprecated="not deprecated">
  10265. <param name="in" type="java.io.DataInput"/>
  10266. <param name="length" type="int"/>
  10267. <exception name="IOException" type="java.io.IOException"/>
  10268. <doc>
  10269. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  10270. </doc>
  10271. </method>
  10272. <method name="writeTo"
  10273. abstract="false" native="false" synchronized="false"
  10274. static="false" final="false" visibility="public"
  10275. deprecated="not deprecated">
  10276. <param name="out" type="java.io.OutputStream"/>
  10277. <exception name="IOException" type="java.io.IOException"/>
  10278. <doc>
  10279. <![CDATA[Write to a file stream]]>
  10280. </doc>
  10281. </method>
  10282. <doc>
  10283. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  10284. buffer.
  10285. <p>This saves memory over creating a new DataOutputStream and
  10286. ByteArrayOutputStream each time data is written.
  10287. <p>Typical usage is something like the following:<pre>
  10288. DataOutputBuffer buffer = new DataOutputBuffer();
  10289. while (... loop condition ...) {
  10290. buffer.reset();
  10291. ... write buffer using DataOutput methods ...
  10292. byte[] data = buffer.getData();
  10293. int dataLength = buffer.getLength();
  10294. ... write data to its ultimate destination ...
  10295. }
  10296. </pre>]]>
  10297. </doc>
  10298. </class>
  10299. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  10300. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  10301. <class name="DefaultStringifier" extends="java.lang.Object"
  10302. abstract="false"
  10303. static="false" final="false" visibility="public"
  10304. deprecated="not deprecated">
  10305. <implements name="org.apache.hadoop.io.Stringifier"/>
  10306. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  10307. static="false" final="false" visibility="public"
  10308. deprecated="not deprecated">
  10309. </constructor>
  10310. <method name="fromString" return="java.lang.Object"
  10311. abstract="false" native="false" synchronized="false"
  10312. static="false" final="false" visibility="public"
  10313. deprecated="not deprecated">
  10314. <param name="str" type="java.lang.String"/>
  10315. <exception name="IOException" type="java.io.IOException"/>
  10316. </method>
  10317. <method name="toString" return="java.lang.String"
  10318. abstract="false" native="false" synchronized="false"
  10319. static="false" final="false" visibility="public"
  10320. deprecated="not deprecated">
  10321. <param name="obj" type="java.lang.Object"/>
  10322. <exception name="IOException" type="java.io.IOException"/>
  10323. </method>
  10324. <method name="close"
  10325. abstract="false" native="false" synchronized="false"
  10326. static="false" final="false" visibility="public"
  10327. deprecated="not deprecated">
  10328. <exception name="IOException" type="java.io.IOException"/>
  10329. </method>
  10330. <method name="store"
  10331. abstract="false" native="false" synchronized="false"
  10332. static="true" final="false" visibility="public"
  10333. deprecated="not deprecated">
  10334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10335. <param name="item" type="java.lang.Object"/>
  10336. <param name="keyName" type="java.lang.String"/>
  10337. <exception name="IOException" type="java.io.IOException"/>
  10338. <doc>
  10339. <![CDATA[Stores the item in the configuration with the given keyName.
  10340. @param <K> the class of the item
  10341. @param conf the configuration to store
  10342. @param item the object to be stored
  10343. @param keyName the name of the key to use
  10344. @throws IOException : forwards Exceptions from the underlying
  10345. {@link Serialization} classes.]]>
  10346. </doc>
  10347. </method>
  10348. <method name="load" return="java.lang.Object"
  10349. abstract="false" native="false" synchronized="false"
  10350. static="true" final="false" visibility="public"
  10351. deprecated="not deprecated">
  10352. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10353. <param name="keyName" type="java.lang.String"/>
  10354. <param name="itemClass" type="java.lang.Class"/>
  10355. <exception name="IOException" type="java.io.IOException"/>
  10356. <doc>
  10357. <![CDATA[Restores the object from the configuration.
  10358. @param <K> the class of the item
  10359. @param conf the configuration to use
  10360. @param keyName the name of the key to use
  10361. @param itemClass the class of the item
  10362. @return restored object
  10363. @throws IOException : forwards Exceptions from the underlying
  10364. {@link Serialization} classes.]]>
  10365. </doc>
  10366. </method>
  10367. <method name="storeArray"
  10368. abstract="false" native="false" synchronized="false"
  10369. static="true" final="false" visibility="public"
  10370. deprecated="not deprecated">
  10371. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10372. <param name="items" type="java.lang.Object[]"/>
  10373. <param name="keyName" type="java.lang.String"/>
  10374. <exception name="IOException" type="java.io.IOException"/>
  10375. <doc>
  10376. <![CDATA[Stores the array of items in the configuration with the given keyName.
  10377. @param <K> the class of the item
  10378. @param conf the configuration to use
  10379. @param items the objects to be stored
  10380. @param keyName the name of the key to use
  10381. @throws IndexOutOfBoundsException if the items array is empty
  10382. @throws IOException : forwards Exceptions from the underlying
  10383. {@link Serialization} classes.]]>
  10384. </doc>
  10385. </method>
  10386. <method name="loadArray" return="java.lang.Object[]"
  10387. abstract="false" native="false" synchronized="false"
  10388. static="true" final="false" visibility="public"
  10389. deprecated="not deprecated">
  10390. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10391. <param name="keyName" type="java.lang.String"/>
  10392. <param name="itemClass" type="java.lang.Class"/>
  10393. <exception name="IOException" type="java.io.IOException"/>
  10394. <doc>
  10395. <![CDATA[Restores the array of objects from the configuration.
  10396. @param <K> the class of the item
  10397. @param conf the configuration to use
  10398. @param keyName the name of the key to use
  10399. @param itemClass the class of the item
  10400. @return restored object
  10401. @throws IOException : forwards Exceptions from the underlying
  10402. {@link Serialization} classes.]]>
  10403. </doc>
  10404. </method>
  10405. <doc>
  10406. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  10407. interface which stringifies the objects using base64 encoding of the
  10408. serialized version of the objects. The {@link Serializer} and
  10409. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  10410. <br>
  10411. DefaultStringifier offers convenience methods to store/load objects to/from
  10412. the configuration.
  10413. @param <T> the class of the objects to stringify]]>
  10414. </doc>
  10415. </class>
  10416. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  10417. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  10418. <class name="DoubleWritable" extends="java.lang.Object"
  10419. abstract="false"
  10420. static="false" final="false" visibility="public"
  10421. deprecated="not deprecated">
  10422. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10423. <constructor name="DoubleWritable"
  10424. static="false" final="false" visibility="public"
  10425. deprecated="not deprecated">
  10426. </constructor>
  10427. <constructor name="DoubleWritable" type="double"
  10428. static="false" final="false" visibility="public"
  10429. deprecated="not deprecated">
  10430. </constructor>
  10431. <method name="readFields"
  10432. abstract="false" native="false" synchronized="false"
  10433. static="false" final="false" visibility="public"
  10434. deprecated="not deprecated">
  10435. <param name="in" type="java.io.DataInput"/>
  10436. <exception name="IOException" type="java.io.IOException"/>
  10437. </method>
  10438. <method name="write"
  10439. abstract="false" native="false" synchronized="false"
  10440. static="false" final="false" visibility="public"
  10441. deprecated="not deprecated">
  10442. <param name="out" type="java.io.DataOutput"/>
  10443. <exception name="IOException" type="java.io.IOException"/>
  10444. </method>
  10445. <method name="set"
  10446. abstract="false" native="false" synchronized="false"
  10447. static="false" final="false" visibility="public"
  10448. deprecated="not deprecated">
  10449. <param name="value" type="double"/>
  10450. </method>
  10451. <method name="get" return="double"
  10452. abstract="false" native="false" synchronized="false"
  10453. static="false" final="false" visibility="public"
  10454. deprecated="not deprecated">
  10455. </method>
  10456. <method name="equals" return="boolean"
  10457. abstract="false" native="false" synchronized="false"
  10458. static="false" final="false" visibility="public"
  10459. deprecated="not deprecated">
  10460. <param name="o" type="java.lang.Object"/>
  10461. <doc>
  10462. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  10463. </doc>
  10464. </method>
  10465. <method name="hashCode" return="int"
  10466. abstract="false" native="false" synchronized="false"
  10467. static="false" final="false" visibility="public"
  10468. deprecated="not deprecated">
  10469. </method>
  10470. <method name="compareTo" return="int"
  10471. abstract="false" native="false" synchronized="false"
  10472. static="false" final="false" visibility="public"
  10473. deprecated="not deprecated">
  10474. <param name="o" type="java.lang.Object"/>
  10475. </method>
  10476. <method name="toString" return="java.lang.String"
  10477. abstract="false" native="false" synchronized="false"
  10478. static="false" final="false" visibility="public"
  10479. deprecated="not deprecated">
  10480. </method>
  10481. <doc>
  10482. <![CDATA[Writable for Double values.]]>
  10483. </doc>
  10484. </class>
  10485. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  10486. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10487. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10488. abstract="false"
  10489. static="true" final="false" visibility="public"
  10490. deprecated="not deprecated">
  10491. <constructor name="DoubleWritable.Comparator"
  10492. static="false" final="false" visibility="public"
  10493. deprecated="not deprecated">
  10494. </constructor>
  10495. <method name="compare" return="int"
  10496. abstract="false" native="false" synchronized="false"
  10497. static="false" final="false" visibility="public"
  10498. deprecated="not deprecated">
  10499. <param name="b1" type="byte[]"/>
  10500. <param name="s1" type="int"/>
  10501. <param name="l1" type="int"/>
  10502. <param name="b2" type="byte[]"/>
  10503. <param name="s2" type="int"/>
  10504. <param name="l2" type="int"/>
  10505. </method>
  10506. <doc>
  10507. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  10508. </doc>
  10509. </class>
  10510. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10511. <!-- start class org.apache.hadoop.io.FloatWritable -->
  10512. <class name="FloatWritable" extends="java.lang.Object"
  10513. abstract="false"
  10514. static="false" final="false" visibility="public"
  10515. deprecated="not deprecated">
  10516. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10517. <constructor name="FloatWritable"
  10518. static="false" final="false" visibility="public"
  10519. deprecated="not deprecated">
  10520. </constructor>
  10521. <constructor name="FloatWritable" type="float"
  10522. static="false" final="false" visibility="public"
  10523. deprecated="not deprecated">
  10524. </constructor>
  10525. <method name="set"
  10526. abstract="false" native="false" synchronized="false"
  10527. static="false" final="false" visibility="public"
  10528. deprecated="not deprecated">
  10529. <param name="value" type="float"/>
  10530. <doc>
  10531. <![CDATA[Set the value of this FloatWritable.]]>
  10532. </doc>
  10533. </method>
  10534. <method name="get" return="float"
  10535. abstract="false" native="false" synchronized="false"
  10536. static="false" final="false" visibility="public"
  10537. deprecated="not deprecated">
  10538. <doc>
  10539. <![CDATA[Return the value of this FloatWritable.]]>
  10540. </doc>
  10541. </method>
  10542. <method name="readFields"
  10543. abstract="false" native="false" synchronized="false"
  10544. static="false" final="false" visibility="public"
  10545. deprecated="not deprecated">
  10546. <param name="in" type="java.io.DataInput"/>
  10547. <exception name="IOException" type="java.io.IOException"/>
  10548. </method>
  10549. <method name="write"
  10550. abstract="false" native="false" synchronized="false"
  10551. static="false" final="false" visibility="public"
  10552. deprecated="not deprecated">
  10553. <param name="out" type="java.io.DataOutput"/>
  10554. <exception name="IOException" type="java.io.IOException"/>
  10555. </method>
  10556. <method name="equals" return="boolean"
  10557. abstract="false" native="false" synchronized="false"
  10558. static="false" final="false" visibility="public"
  10559. deprecated="not deprecated">
  10560. <param name="o" type="java.lang.Object"/>
  10561. <doc>
  10562. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  10563. </doc>
  10564. </method>
  10565. <method name="hashCode" return="int"
  10566. abstract="false" native="false" synchronized="false"
  10567. static="false" final="false" visibility="public"
  10568. deprecated="not deprecated">
  10569. </method>
  10570. <method name="compareTo" return="int"
  10571. abstract="false" native="false" synchronized="false"
  10572. static="false" final="false" visibility="public"
  10573. deprecated="not deprecated">
  10574. <param name="o" type="java.lang.Object"/>
  10575. <doc>
  10576. <![CDATA[Compares two FloatWritables.]]>
  10577. </doc>
  10578. </method>
  10579. <method name="toString" return="java.lang.String"
  10580. abstract="false" native="false" synchronized="false"
  10581. static="false" final="false" visibility="public"
  10582. deprecated="not deprecated">
  10583. </method>
  10584. <doc>
  10585. <![CDATA[A WritableComparable for floats.]]>
  10586. </doc>
  10587. </class>
  10588. <!-- end class org.apache.hadoop.io.FloatWritable -->
  10589. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  10590. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10591. abstract="false"
  10592. static="true" final="false" visibility="public"
  10593. deprecated="not deprecated">
  10594. <constructor name="FloatWritable.Comparator"
  10595. static="false" final="false" visibility="public"
  10596. deprecated="not deprecated">
  10597. </constructor>
  10598. <method name="compare" return="int"
  10599. abstract="false" native="false" synchronized="false"
  10600. static="false" final="false" visibility="public"
  10601. deprecated="not deprecated">
  10602. <param name="b1" type="byte[]"/>
  10603. <param name="s1" type="int"/>
  10604. <param name="l1" type="int"/>
  10605. <param name="b2" type="byte[]"/>
  10606. <param name="s2" type="int"/>
  10607. <param name="l2" type="int"/>
  10608. </method>
  10609. <doc>
  10610. <![CDATA[A Comparator optimized for FloatWritable.]]>
  10611. </doc>
  10612. </class>
  10613. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  10614. <!-- start class org.apache.hadoop.io.GenericWritable -->
  10615. <class name="GenericWritable" extends="java.lang.Object"
  10616. abstract="true"
  10617. static="false" final="false" visibility="public"
  10618. deprecated="not deprecated">
  10619. <implements name="org.apache.hadoop.io.Writable"/>
  10620. <implements name="org.apache.hadoop.conf.Configurable"/>
  10621. <constructor name="GenericWritable"
  10622. static="false" final="false" visibility="public"
  10623. deprecated="not deprecated">
  10624. </constructor>
  10625. <method name="set"
  10626. abstract="false" native="false" synchronized="false"
  10627. static="false" final="false" visibility="public"
  10628. deprecated="not deprecated">
  10629. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  10630. <doc>
  10631. <![CDATA[Set the instance that is wrapped.
  10632. @param obj]]>
  10633. </doc>
  10634. </method>
  10635. <method name="get" return="org.apache.hadoop.io.Writable"
  10636. abstract="false" native="false" synchronized="false"
  10637. static="false" final="false" visibility="public"
  10638. deprecated="not deprecated">
  10639. <doc>
  10640. <![CDATA[Return the wrapped instance.]]>
  10641. </doc>
  10642. </method>
  10643. <method name="toString" return="java.lang.String"
  10644. abstract="false" native="false" synchronized="false"
  10645. static="false" final="false" visibility="public"
  10646. deprecated="not deprecated">
  10647. </method>
  10648. <method name="readFields"
  10649. abstract="false" native="false" synchronized="false"
  10650. static="false" final="false" visibility="public"
  10651. deprecated="not deprecated">
  10652. <param name="in" type="java.io.DataInput"/>
  10653. <exception name="IOException" type="java.io.IOException"/>
  10654. </method>
  10655. <method name="write"
  10656. abstract="false" native="false" synchronized="false"
  10657. static="false" final="false" visibility="public"
  10658. deprecated="not deprecated">
  10659. <param name="out" type="java.io.DataOutput"/>
  10660. <exception name="IOException" type="java.io.IOException"/>
  10661. </method>
  10662. <method name="getTypes" return="java.lang.Class[]"
  10663. abstract="true" native="false" synchronized="false"
  10664. static="false" final="false" visibility="protected"
  10665. deprecated="not deprecated">
  10666. <doc>
  10667. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  10668. to return a constant array of classes.]]>
  10669. </doc>
  10670. </method>
  10671. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10672. abstract="false" native="false" synchronized="false"
  10673. static="false" final="false" visibility="public"
  10674. deprecated="not deprecated">
  10675. </method>
  10676. <method name="setConf"
  10677. abstract="false" native="false" synchronized="false"
  10678. static="false" final="false" visibility="public"
  10679. deprecated="not deprecated">
  10680. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10681. </method>
  10682. <doc>
  10683. <![CDATA[A wrapper for Writable instances.
  10684. <p>
  10685. When two sequence files, which have same Key type but different Value
  10686. types, are mapped out to reduce, multiple Value types is not allowed.
  10687. In this case, this class can help you wrap instances with different types.
  10688. </p>
  10689. <p>
  10690. Compared with <code>ObjectWritable</code>, this class is much more effective,
  10691. because <code>ObjectWritable</code> will append the class declaration as a String
  10692. into the output file in every Key-Value pair.
  10693. </p>
  10694. <p>
  10695. Generic Writable implements {@link Configurable} interface, so that it will be
  10696. configured by the framework. The configuration is passed to the wrapped objects
  10697. implementing {@link Configurable} interface <i>before deserialization</i>.
  10698. </p>
  10699. how to use it: <br>
  10700. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  10701. 2. Implements the abstract method <code>getTypes()</code>, defines
  10702. the classes which will be wrapped in GenericObject in application.
  10703. Attention: this classes defined in <code>getTypes()</code> method, must
  10704. implement <code>Writable</code> interface.
  10705. <br><br>
  10706. The code looks like this:
  10707. <blockquote><pre>
  10708. public class GenericObject extends GenericWritable {
  10709. private static Class[] CLASSES = {
  10710. ClassType1.class,
  10711. ClassType2.class,
  10712. ClassType3.class,
  10713. };
  10714. protected Class[] getTypes() {
  10715. return CLASSES;
  10716. }
  10717. }
  10718. </pre></blockquote>
  10719. @since Nov 8, 2006]]>
  10720. </doc>
  10721. </class>
  10722. <!-- end class org.apache.hadoop.io.GenericWritable -->
  10723. <!-- start class org.apache.hadoop.io.InputBuffer -->
  10724. <class name="InputBuffer" extends="java.io.FilterInputStream"
  10725. abstract="false"
  10726. static="false" final="false" visibility="public"
  10727. deprecated="not deprecated">
  10728. <constructor name="InputBuffer"
  10729. static="false" final="false" visibility="public"
  10730. deprecated="not deprecated">
  10731. <doc>
  10732. <![CDATA[Constructs a new empty buffer.]]>
  10733. </doc>
  10734. </constructor>
  10735. <method name="reset"
  10736. abstract="false" native="false" synchronized="false"
  10737. static="false" final="false" visibility="public"
  10738. deprecated="not deprecated">
  10739. <param name="input" type="byte[]"/>
  10740. <param name="length" type="int"/>
  10741. <doc>
  10742. <![CDATA[Resets the data that the buffer reads.]]>
  10743. </doc>
  10744. </method>
  10745. <method name="reset"
  10746. abstract="false" native="false" synchronized="false"
  10747. static="false" final="false" visibility="public"
  10748. deprecated="not deprecated">
  10749. <param name="input" type="byte[]"/>
  10750. <param name="start" type="int"/>
  10751. <param name="length" type="int"/>
  10752. <doc>
  10753. <![CDATA[Resets the data that the buffer reads.]]>
  10754. </doc>
  10755. </method>
  10756. <method name="getPosition" return="int"
  10757. abstract="false" native="false" synchronized="false"
  10758. static="false" final="false" visibility="public"
  10759. deprecated="not deprecated">
  10760. <doc>
  10761. <![CDATA[Returns the current position in the input.]]>
  10762. </doc>
  10763. </method>
  10764. <method name="getLength" return="int"
  10765. abstract="false" native="false" synchronized="false"
  10766. static="false" final="false" visibility="public"
  10767. deprecated="not deprecated">
  10768. <doc>
  10769. <![CDATA[Returns the length of the input.]]>
  10770. </doc>
  10771. </method>
  10772. <doc>
  10773. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  10774. buffer.
  10775. <p>This saves memory over creating a new InputStream and
  10776. ByteArrayInputStream each time data is read.
  10777. <p>Typical usage is something like the following:<pre>
  10778. InputBuffer buffer = new InputBuffer();
  10779. while (... loop condition ...) {
  10780. byte[] data = ... get data ...;
  10781. int dataLength = ... get data length ...;
  10782. buffer.reset(data, dataLength);
  10783. ... read buffer using InputStream methods ...
  10784. }
  10785. </pre>
  10786. @see DataInputBuffer
  10787. @see DataOutput]]>
  10788. </doc>
  10789. </class>
  10790. <!-- end class org.apache.hadoop.io.InputBuffer -->
  10791. <!-- start class org.apache.hadoop.io.IntWritable -->
  10792. <class name="IntWritable" extends="java.lang.Object"
  10793. abstract="false"
  10794. static="false" final="false" visibility="public"
  10795. deprecated="not deprecated">
  10796. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10797. <constructor name="IntWritable"
  10798. static="false" final="false" visibility="public"
  10799. deprecated="not deprecated">
  10800. </constructor>
  10801. <constructor name="IntWritable" type="int"
  10802. static="false" final="false" visibility="public"
  10803. deprecated="not deprecated">
  10804. </constructor>
  10805. <method name="set"
  10806. abstract="false" native="false" synchronized="false"
  10807. static="false" final="false" visibility="public"
  10808. deprecated="not deprecated">
  10809. <param name="value" type="int"/>
  10810. <doc>
  10811. <![CDATA[Set the value of this IntWritable.]]>
  10812. </doc>
  10813. </method>
  10814. <method name="get" return="int"
  10815. abstract="false" native="false" synchronized="false"
  10816. static="false" final="false" visibility="public"
  10817. deprecated="not deprecated">
  10818. <doc>
  10819. <![CDATA[Return the value of this IntWritable.]]>
  10820. </doc>
  10821. </method>
  10822. <method name="readFields"
  10823. abstract="false" native="false" synchronized="false"
  10824. static="false" final="false" visibility="public"
  10825. deprecated="not deprecated">
  10826. <param name="in" type="java.io.DataInput"/>
  10827. <exception name="IOException" type="java.io.IOException"/>
  10828. </method>
  10829. <method name="write"
  10830. abstract="false" native="false" synchronized="false"
  10831. static="false" final="false" visibility="public"
  10832. deprecated="not deprecated">
  10833. <param name="out" type="java.io.DataOutput"/>
  10834. <exception name="IOException" type="java.io.IOException"/>
  10835. </method>
  10836. <method name="equals" return="boolean"
  10837. abstract="false" native="false" synchronized="false"
  10838. static="false" final="false" visibility="public"
  10839. deprecated="not deprecated">
  10840. <param name="o" type="java.lang.Object"/>
  10841. <doc>
  10842. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  10843. </doc>
  10844. </method>
  10845. <method name="hashCode" return="int"
  10846. abstract="false" native="false" synchronized="false"
  10847. static="false" final="false" visibility="public"
  10848. deprecated="not deprecated">
  10849. </method>
  10850. <method name="compareTo" return="int"
  10851. abstract="false" native="false" synchronized="false"
  10852. static="false" final="false" visibility="public"
  10853. deprecated="not deprecated">
  10854. <param name="o" type="java.lang.Object"/>
  10855. <doc>
  10856. <![CDATA[Compares two IntWritables.]]>
  10857. </doc>
  10858. </method>
  10859. <method name="toString" return="java.lang.String"
  10860. abstract="false" native="false" synchronized="false"
  10861. static="false" final="false" visibility="public"
  10862. deprecated="not deprecated">
  10863. </method>
  10864. <doc>
  10865. <![CDATA[A WritableComparable for ints.]]>
  10866. </doc>
  10867. </class>
  10868. <!-- end class org.apache.hadoop.io.IntWritable -->
  10869. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  10870. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10871. abstract="false"
  10872. static="true" final="false" visibility="public"
  10873. deprecated="not deprecated">
  10874. <constructor name="IntWritable.Comparator"
  10875. static="false" final="false" visibility="public"
  10876. deprecated="not deprecated">
  10877. </constructor>
  10878. <method name="compare" return="int"
  10879. abstract="false" native="false" synchronized="false"
  10880. static="false" final="false" visibility="public"
  10881. deprecated="not deprecated">
  10882. <param name="b1" type="byte[]"/>
  10883. <param name="s1" type="int"/>
  10884. <param name="l1" type="int"/>
  10885. <param name="b2" type="byte[]"/>
  10886. <param name="s2" type="int"/>
  10887. <param name="l2" type="int"/>
  10888. </method>
  10889. <doc>
  10890. <![CDATA[A Comparator optimized for IntWritable.]]>
  10891. </doc>
  10892. </class>
  10893. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  10894. <!-- start class org.apache.hadoop.io.IOUtils -->
  10895. <class name="IOUtils" extends="java.lang.Object"
  10896. abstract="false"
  10897. static="false" final="false" visibility="public"
  10898. deprecated="not deprecated">
  10899. <constructor name="IOUtils"
  10900. static="false" final="false" visibility="public"
  10901. deprecated="not deprecated">
  10902. </constructor>
  10903. <method name="copyBytes"
  10904. abstract="false" native="false" synchronized="false"
  10905. static="true" final="false" visibility="public"
  10906. deprecated="not deprecated">
  10907. <param name="in" type="java.io.InputStream"/>
  10908. <param name="out" type="java.io.OutputStream"/>
  10909. <param name="buffSize" type="int"/>
  10910. <param name="close" type="boolean"/>
  10911. <exception name="IOException" type="java.io.IOException"/>
  10912. <doc>
  10913. <![CDATA[Copies from one stream to another.
  10914. @param in InputStrem to read from
  10915. @param out OutputStream to write to
  10916. @param buffSize the size of the buffer
  10917. @param close whether or not close the InputStream and
  10918. OutputStream at the end. The streams are closed in the finally clause.]]>
  10919. </doc>
  10920. </method>
  10921. <method name="copyBytes"
  10922. abstract="false" native="false" synchronized="false"
  10923. static="true" final="false" visibility="public"
  10924. deprecated="not deprecated">
  10925. <param name="in" type="java.io.InputStream"/>
  10926. <param name="out" type="java.io.OutputStream"/>
  10927. <param name="buffSize" type="int"/>
  10928. <exception name="IOException" type="java.io.IOException"/>
  10929. <doc>
  10930. <![CDATA[Copies from one stream to another.
  10931. @param in InputStrem to read from
  10932. @param out OutputStream to write to
  10933. @param buffSize the size of the buffer]]>
  10934. </doc>
  10935. </method>
  10936. <method name="copyBytes"
  10937. abstract="false" native="false" synchronized="false"
  10938. static="true" final="false" visibility="public"
  10939. deprecated="not deprecated">
  10940. <param name="in" type="java.io.InputStream"/>
  10941. <param name="out" type="java.io.OutputStream"/>
  10942. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10943. <exception name="IOException" type="java.io.IOException"/>
  10944. <doc>
  10945. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  10946. at the end</strong>.
  10947. @param in InputStrem to read from
  10948. @param out OutputStream to write to
  10949. @param conf the Configuration object]]>
  10950. </doc>
  10951. </method>
  10952. <method name="copyBytes"
  10953. abstract="false" native="false" synchronized="false"
  10954. static="true" final="false" visibility="public"
  10955. deprecated="not deprecated">
  10956. <param name="in" type="java.io.InputStream"/>
  10957. <param name="out" type="java.io.OutputStream"/>
  10958. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10959. <param name="close" type="boolean"/>
  10960. <exception name="IOException" type="java.io.IOException"/>
  10961. <doc>
  10962. <![CDATA[Copies from one stream to another.
  10963. @param in InputStrem to read from
  10964. @param out OutputStream to write to
  10965. @param conf the Configuration object
  10966. @param close whether or not close the InputStream and
  10967. OutputStream at the end. The streams are closed in the finally clause.]]>
  10968. </doc>
  10969. </method>
  10970. <method name="copyBytes"
  10971. abstract="false" native="false" synchronized="false"
  10972. static="true" final="false" visibility="public"
  10973. deprecated="not deprecated">
  10974. <param name="in" type="java.io.InputStream"/>
  10975. <param name="out" type="java.io.OutputStream"/>
  10976. <param name="length" type="long"/>
  10977. <param name="bufferSize" type="int"/>
  10978. <param name="close" type="boolean"/>
  10979. <exception name="IOException" type="java.io.IOException"/>
  10980. <doc>
  10981. <![CDATA[Copies the specified length of bytes from in to out.
  10982. @param in InputStream to read from
  10983. @param out OutputStream to write to
  10984. @param length number of bytes to copy
  10985. @param bufferSize the size of the buffer
  10986. @param close whether to close the streams
  10987. @throws IOException if bytes can not be read or written]]>
  10988. </doc>
  10989. </method>
  10990. <method name="readFully"
  10991. abstract="false" native="false" synchronized="false"
  10992. static="true" final="false" visibility="public"
  10993. deprecated="not deprecated">
  10994. <param name="in" type="java.io.InputStream"/>
  10995. <param name="buf" type="byte[]"/>
  10996. <param name="off" type="int"/>
  10997. <param name="len" type="int"/>
  10998. <exception name="IOException" type="java.io.IOException"/>
  10999. <doc>
  11000. <![CDATA[Reads len bytes in a loop.
  11001. @param in The InputStream to read from
  11002. @param buf The buffer to fill
  11003. @param off offset from the buffer
  11004. @param len the length of bytes to read
  11005. @throws IOException if it could not read requested number of bytes
  11006. for any reason (including EOF)]]>
  11007. </doc>
  11008. </method>
  11009. <method name="readFileChannelFully"
  11010. abstract="false" native="false" synchronized="false"
  11011. static="true" final="false" visibility="public"
  11012. deprecated="not deprecated">
  11013. <param name="fileChannel" type="java.nio.channels.FileChannel"/>
  11014. <param name="buf" type="byte[]"/>
  11015. <param name="off" type="int"/>
  11016. <param name="len" type="int"/>
  11017. <exception name="IOException" type="java.io.IOException"/>
  11018. <doc>
  11019. <![CDATA[Reads len bytes in a loop using the channel of the stream
  11020. @param fileChannel a FileChannel to read len bytes into buf
  11021. @param buf The buffer to fill
  11022. @param off offset from the buffer
  11023. @param len the length of bytes to read
  11024. @throws IOException if it could not read requested number of bytes
  11025. for any reason (including EOF)]]>
  11026. </doc>
  11027. </method>
  11028. <method name="skipFully"
  11029. abstract="false" native="false" synchronized="false"
  11030. static="true" final="false" visibility="public"
  11031. deprecated="not deprecated">
  11032. <param name="in" type="java.io.InputStream"/>
  11033. <param name="len" type="long"/>
  11034. <exception name="IOException" type="java.io.IOException"/>
  11035. <doc>
  11036. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  11037. @param in The InputStream to skip bytes from
  11038. @param len number of bytes to skip.
  11039. @throws IOException if it could not skip requested number of bytes
  11040. for any reason (including EOF)]]>
  11041. </doc>
  11042. </method>
  11043. <method name="cleanup"
  11044. abstract="false" native="false" synchronized="false"
  11045. static="true" final="false" visibility="public"
  11046. deprecated="not deprecated">
  11047. <param name="log" type="org.apache.commons.logging.Log"/>
  11048. <param name="closeables" type="java.io.Closeable[]"/>
  11049. <doc>
  11050. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  11051. null pointers. Must only be used for cleanup in exception handlers.
  11052. @param log the log to record problems to at debug level. Can be null.
  11053. @param closeables the objects to close]]>
  11054. </doc>
  11055. </method>
  11056. <method name="closeStream"
  11057. abstract="false" native="false" synchronized="false"
  11058. static="true" final="false" visibility="public"
  11059. deprecated="not deprecated">
  11060. <param name="stream" type="java.io.Closeable"/>
  11061. <doc>
  11062. <![CDATA[Closes the stream ignoring {@link IOException}.
  11063. Must only be called in cleaning up from exception handlers.
  11064. @param stream the Stream to close]]>
  11065. </doc>
  11066. </method>
  11067. <method name="closeSocket"
  11068. abstract="false" native="false" synchronized="false"
  11069. static="true" final="false" visibility="public"
  11070. deprecated="not deprecated">
  11071. <param name="sock" type="java.net.Socket"/>
  11072. <doc>
  11073. <![CDATA[Closes the socket ignoring {@link IOException}
  11074. @param sock the Socket to close]]>
  11075. </doc>
  11076. </method>
  11077. <doc>
  11078. <![CDATA[An utility class for I/O related functionality.]]>
  11079. </doc>
  11080. </class>
  11081. <!-- end class org.apache.hadoop.io.IOUtils -->
  11082. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11083. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  11084. abstract="false"
  11085. static="true" final="false" visibility="public"
  11086. deprecated="not deprecated">
  11087. <constructor name="IOUtils.NullOutputStream"
  11088. static="false" final="false" visibility="public"
  11089. deprecated="not deprecated">
  11090. </constructor>
  11091. <method name="write"
  11092. abstract="false" native="false" synchronized="false"
  11093. static="false" final="false" visibility="public"
  11094. deprecated="not deprecated">
  11095. <param name="b" type="byte[]"/>
  11096. <param name="off" type="int"/>
  11097. <param name="len" type="int"/>
  11098. <exception name="IOException" type="java.io.IOException"/>
  11099. </method>
  11100. <method name="write"
  11101. abstract="false" native="false" synchronized="false"
  11102. static="false" final="false" visibility="public"
  11103. deprecated="not deprecated">
  11104. <param name="b" type="int"/>
  11105. <exception name="IOException" type="java.io.IOException"/>
  11106. </method>
  11107. <doc>
  11108. <![CDATA[/dev/null of OutputStreams.]]>
  11109. </doc>
  11110. </class>
  11111. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11112. <!-- start class org.apache.hadoop.io.LongWritable -->
  11113. <class name="LongWritable" extends="java.lang.Object"
  11114. abstract="false"
  11115. static="false" final="false" visibility="public"
  11116. deprecated="not deprecated">
  11117. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11118. <constructor name="LongWritable"
  11119. static="false" final="false" visibility="public"
  11120. deprecated="not deprecated">
  11121. </constructor>
  11122. <constructor name="LongWritable" type="long"
  11123. static="false" final="false" visibility="public"
  11124. deprecated="not deprecated">
  11125. </constructor>
  11126. <method name="set"
  11127. abstract="false" native="false" synchronized="false"
  11128. static="false" final="false" visibility="public"
  11129. deprecated="not deprecated">
  11130. <param name="value" type="long"/>
  11131. <doc>
  11132. <![CDATA[Set the value of this LongWritable.]]>
  11133. </doc>
  11134. </method>
  11135. <method name="get" return="long"
  11136. abstract="false" native="false" synchronized="false"
  11137. static="false" final="false" visibility="public"
  11138. deprecated="not deprecated">
  11139. <doc>
  11140. <![CDATA[Return the value of this LongWritable.]]>
  11141. </doc>
  11142. </method>
  11143. <method name="readFields"
  11144. abstract="false" native="false" synchronized="false"
  11145. static="false" final="false" visibility="public"
  11146. deprecated="not deprecated">
  11147. <param name="in" type="java.io.DataInput"/>
  11148. <exception name="IOException" type="java.io.IOException"/>
  11149. </method>
  11150. <method name="write"
  11151. abstract="false" native="false" synchronized="false"
  11152. static="false" final="false" visibility="public"
  11153. deprecated="not deprecated">
  11154. <param name="out" type="java.io.DataOutput"/>
  11155. <exception name="IOException" type="java.io.IOException"/>
  11156. </method>
  11157. <method name="equals" return="boolean"
  11158. abstract="false" native="false" synchronized="false"
  11159. static="false" final="false" visibility="public"
  11160. deprecated="not deprecated">
  11161. <param name="o" type="java.lang.Object"/>
  11162. <doc>
  11163. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  11164. </doc>
  11165. </method>
  11166. <method name="hashCode" return="int"
  11167. abstract="false" native="false" synchronized="false"
  11168. static="false" final="false" visibility="public"
  11169. deprecated="not deprecated">
  11170. </method>
  11171. <method name="compareTo" return="int"
  11172. abstract="false" native="false" synchronized="false"
  11173. static="false" final="false" visibility="public"
  11174. deprecated="not deprecated">
  11175. <param name="o" type="java.lang.Object"/>
  11176. <doc>
  11177. <![CDATA[Compares two LongWritables.]]>
  11178. </doc>
  11179. </method>
  11180. <method name="toString" return="java.lang.String"
  11181. abstract="false" native="false" synchronized="false"
  11182. static="false" final="false" visibility="public"
  11183. deprecated="not deprecated">
  11184. </method>
  11185. <doc>
  11186. <![CDATA[A WritableComparable for longs.]]>
  11187. </doc>
  11188. </class>
  11189. <!-- end class org.apache.hadoop.io.LongWritable -->
  11190. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  11191. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11192. abstract="false"
  11193. static="true" final="false" visibility="public"
  11194. deprecated="not deprecated">
  11195. <constructor name="LongWritable.Comparator"
  11196. static="false" final="false" visibility="public"
  11197. deprecated="not deprecated">
  11198. </constructor>
  11199. <method name="compare" return="int"
  11200. abstract="false" native="false" synchronized="false"
  11201. static="false" final="false" visibility="public"
  11202. deprecated="not deprecated">
  11203. <param name="b1" type="byte[]"/>
  11204. <param name="s1" type="int"/>
  11205. <param name="l1" type="int"/>
  11206. <param name="b2" type="byte[]"/>
  11207. <param name="s2" type="int"/>
  11208. <param name="l2" type="int"/>
  11209. </method>
  11210. <doc>
  11211. <![CDATA[A Comparator optimized for LongWritable.]]>
  11212. </doc>
  11213. </class>
  11214. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  11215. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11216. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  11217. abstract="false"
  11218. static="true" final="false" visibility="public"
  11219. deprecated="not deprecated">
  11220. <constructor name="LongWritable.DecreasingComparator"
  11221. static="false" final="false" visibility="public"
  11222. deprecated="not deprecated">
  11223. </constructor>
  11224. <method name="compare" return="int"
  11225. abstract="false" native="false" synchronized="false"
  11226. static="false" final="false" visibility="public"
  11227. deprecated="not deprecated">
  11228. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  11229. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  11230. </method>
  11231. <method name="compare" return="int"
  11232. abstract="false" native="false" synchronized="false"
  11233. static="false" final="false" visibility="public"
  11234. deprecated="not deprecated">
  11235. <param name="b1" type="byte[]"/>
  11236. <param name="s1" type="int"/>
  11237. <param name="l1" type="int"/>
  11238. <param name="b2" type="byte[]"/>
  11239. <param name="s2" type="int"/>
  11240. <param name="l2" type="int"/>
  11241. </method>
  11242. <doc>
  11243. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  11244. </doc>
  11245. </class>
  11246. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11247. <!-- start class org.apache.hadoop.io.MapFile -->
  11248. <class name="MapFile" extends="java.lang.Object"
  11249. abstract="false"
  11250. static="false" final="false" visibility="public"
  11251. deprecated="not deprecated">
  11252. <constructor name="MapFile"
  11253. static="false" final="false" visibility="protected"
  11254. deprecated="not deprecated">
  11255. </constructor>
  11256. <method name="rename"
  11257. abstract="false" native="false" synchronized="false"
  11258. static="true" final="false" visibility="public"
  11259. deprecated="not deprecated">
  11260. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11261. <param name="oldName" type="java.lang.String"/>
  11262. <param name="newName" type="java.lang.String"/>
  11263. <exception name="IOException" type="java.io.IOException"/>
  11264. <doc>
  11265. <![CDATA[Renames an existing map directory.]]>
  11266. </doc>
  11267. </method>
  11268. <method name="delete"
  11269. abstract="false" native="false" synchronized="false"
  11270. static="true" final="false" visibility="public"
  11271. deprecated="not deprecated">
  11272. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11273. <param name="name" type="java.lang.String"/>
  11274. <exception name="IOException" type="java.io.IOException"/>
  11275. <doc>
  11276. <![CDATA[Deletes the named map file.]]>
  11277. </doc>
  11278. </method>
  11279. <method name="fix" return="long"
  11280. abstract="false" native="false" synchronized="false"
  11281. static="true" final="false" visibility="public"
  11282. deprecated="not deprecated">
  11283. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11284. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11285. <param name="keyClass" type="java.lang.Class"/>
  11286. <param name="valueClass" type="java.lang.Class"/>
  11287. <param name="dryrun" type="boolean"/>
  11288. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11289. <exception name="Exception" type="java.lang.Exception"/>
  11290. <doc>
  11291. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  11292. @param fs filesystem
  11293. @param dir directory containing the MapFile data and index
  11294. @param keyClass key class (has to be a subclass of Writable)
  11295. @param valueClass value class (has to be a subclass of Writable)
  11296. @param dryrun do not perform any changes, just report what needs to be done
  11297. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  11298. @throws Exception]]>
  11299. </doc>
  11300. </method>
  11301. <method name="main"
  11302. abstract="false" native="false" synchronized="false"
  11303. static="true" final="false" visibility="public"
  11304. deprecated="not deprecated">
  11305. <param name="args" type="java.lang.String[]"/>
  11306. <exception name="Exception" type="java.lang.Exception"/>
  11307. </method>
  11308. <field name="INDEX_FILE_NAME" type="java.lang.String"
  11309. transient="false" volatile="false"
  11310. static="true" final="true" visibility="public"
  11311. deprecated="not deprecated">
  11312. <doc>
  11313. <![CDATA[The name of the index file.]]>
  11314. </doc>
  11315. </field>
  11316. <field name="DATA_FILE_NAME" type="java.lang.String"
  11317. transient="false" volatile="false"
  11318. static="true" final="true" visibility="public"
  11319. deprecated="not deprecated">
  11320. <doc>
  11321. <![CDATA[The name of the data file.]]>
  11322. </doc>
  11323. </field>
  11324. <doc>
  11325. <![CDATA[A file-based map from keys to values.
  11326. <p>A map is a directory containing two files, the <code>data</code> file,
  11327. containing all keys and values in the map, and a smaller <code>index</code>
  11328. file, containing a fraction of the keys. The fraction is determined by
  11329. {@link Writer#getIndexInterval()}.
  11330. <p>The index file is read entirely into memory. Thus key implementations
  11331. should try to keep themselves small.
  11332. <p>Map files are created by adding entries in-order. To maintain a large
  11333. database, perform updates by copying the previous version of a database and
  11334. merging in a sorted change list, to create a new version of the database in
  11335. a new file. Sorting large change lists can be done with {@link
  11336. SequenceFile.Sorter}.]]>
  11337. </doc>
  11338. </class>
  11339. <!-- end class org.apache.hadoop.io.MapFile -->
  11340. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  11341. <class name="MapFile.Reader" extends="java.lang.Object"
  11342. abstract="false"
  11343. static="true" final="false" visibility="public"
  11344. deprecated="not deprecated">
  11345. <implements name="java.io.Closeable"/>
  11346. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  11347. static="false" final="false" visibility="public"
  11348. deprecated="not deprecated">
  11349. <exception name="IOException" type="java.io.IOException"/>
  11350. <doc>
  11351. <![CDATA[Construct a map reader for the named map.]]>
  11352. </doc>
  11353. </constructor>
  11354. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  11355. static="false" final="false" visibility="public"
  11356. deprecated="not deprecated">
  11357. <exception name="IOException" type="java.io.IOException"/>
  11358. <doc>
  11359. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  11360. </doc>
  11361. </constructor>
  11362. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  11363. static="false" final="false" visibility="protected"
  11364. deprecated="not deprecated">
  11365. <exception name="IOException" type="java.io.IOException"/>
  11366. <doc>
  11367. <![CDATA[Hook to allow subclasses to defer opening streams until further
  11368. initialization is complete.
  11369. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  11370. </doc>
  11371. </constructor>
  11372. <method name="getKeyClass" return="java.lang.Class"
  11373. abstract="false" native="false" synchronized="false"
  11374. static="false" final="false" visibility="public"
  11375. deprecated="not deprecated">
  11376. <doc>
  11377. <![CDATA[Returns the class of keys in this file.]]>
  11378. </doc>
  11379. </method>
  11380. <method name="getValueClass" return="java.lang.Class"
  11381. abstract="false" native="false" synchronized="false"
  11382. static="false" final="false" visibility="public"
  11383. deprecated="not deprecated">
  11384. <doc>
  11385. <![CDATA[Returns the class of values in this file.]]>
  11386. </doc>
  11387. </method>
  11388. <method name="open"
  11389. abstract="false" native="false" synchronized="true"
  11390. static="false" final="false" visibility="protected"
  11391. deprecated="not deprecated">
  11392. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11393. <param name="dirName" type="java.lang.String"/>
  11394. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  11395. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11396. <exception name="IOException" type="java.io.IOException"/>
  11397. </method>
  11398. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  11399. abstract="false" native="false" synchronized="false"
  11400. static="false" final="false" visibility="protected"
  11401. deprecated="not deprecated">
  11402. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11403. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  11404. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11405. <exception name="IOException" type="java.io.IOException"/>
  11406. <doc>
  11407. <![CDATA[Override this method to specialize the type of
  11408. {@link SequenceFile.Reader} returned.]]>
  11409. </doc>
  11410. </method>
  11411. <method name="reset"
  11412. abstract="false" native="false" synchronized="true"
  11413. static="false" final="false" visibility="public"
  11414. deprecated="not deprecated">
  11415. <exception name="IOException" type="java.io.IOException"/>
  11416. <doc>
  11417. <![CDATA[Re-positions the reader before its first key.]]>
  11418. </doc>
  11419. </method>
  11420. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  11421. abstract="false" native="false" synchronized="true"
  11422. static="false" final="false" visibility="public"
  11423. deprecated="not deprecated">
  11424. <exception name="IOException" type="java.io.IOException"/>
  11425. <doc>
  11426. <![CDATA[Get the key at approximately the middle of the file.
  11427. @throws IOException]]>
  11428. </doc>
  11429. </method>
  11430. <method name="finalKey"
  11431. abstract="false" native="false" synchronized="true"
  11432. static="false" final="false" visibility="public"
  11433. deprecated="not deprecated">
  11434. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11435. <exception name="IOException" type="java.io.IOException"/>
  11436. <doc>
  11437. <![CDATA[Reads the final key from the file.
  11438. @param key key to read into]]>
  11439. </doc>
  11440. </method>
  11441. <method name="seek" return="boolean"
  11442. abstract="false" native="false" synchronized="true"
  11443. static="false" final="false" visibility="public"
  11444. deprecated="not deprecated">
  11445. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11446. <exception name="IOException" type="java.io.IOException"/>
  11447. <doc>
  11448. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  11449. first entry after the named key. Returns true iff the named key exists
  11450. in this map.]]>
  11451. </doc>
  11452. </method>
  11453. <method name="next" return="boolean"
  11454. abstract="false" native="false" synchronized="true"
  11455. static="false" final="false" visibility="public"
  11456. deprecated="not deprecated">
  11457. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11458. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11459. <exception name="IOException" type="java.io.IOException"/>
  11460. <doc>
  11461. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  11462. <code>val</code>. Returns true if such a pair exists and false when at
  11463. the end of the map]]>
  11464. </doc>
  11465. </method>
  11466. <method name="get" return="org.apache.hadoop.io.Writable"
  11467. abstract="false" native="false" synchronized="true"
  11468. static="false" final="false" visibility="public"
  11469. deprecated="not deprecated">
  11470. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11471. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11472. <exception name="IOException" type="java.io.IOException"/>
  11473. <doc>
  11474. <![CDATA[Return the value for the named key, or null if none exists.]]>
  11475. </doc>
  11476. </method>
  11477. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11478. abstract="false" native="false" synchronized="true"
  11479. static="false" final="false" visibility="public"
  11480. deprecated="not deprecated">
  11481. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11482. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11483. <exception name="IOException" type="java.io.IOException"/>
  11484. <doc>
  11485. <![CDATA[Finds the record that is the closest match to the specified key.
  11486. Returns <code>key</code> or if it does not exist, at the first entry
  11487. after the named key.
  11488. - * @param key - key that we're trying to find
  11489. - * @param val - data value if key is found
  11490. - * @return - the key that was the closest match or null if eof.]]>
  11491. </doc>
  11492. </method>
  11493. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11494. abstract="false" native="false" synchronized="true"
  11495. static="false" final="false" visibility="public"
  11496. deprecated="not deprecated">
  11497. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11498. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11499. <param name="before" type="boolean"/>
  11500. <exception name="IOException" type="java.io.IOException"/>
  11501. <doc>
  11502. <![CDATA[Finds the record that is the closest match to the specified key.
  11503. @param key - key that we're trying to find
  11504. @param val - data value if key is found
  11505. @param before - IF true, and <code>key</code> does not exist, return
  11506. the first entry that falls just before the <code>key</code>. Otherwise,
  11507. return the record that sorts just after.
  11508. @return - the key that was the closest match or null if eof.]]>
  11509. </doc>
  11510. </method>
  11511. <method name="close"
  11512. abstract="false" native="false" synchronized="true"
  11513. static="false" final="false" visibility="public"
  11514. deprecated="not deprecated">
  11515. <exception name="IOException" type="java.io.IOException"/>
  11516. <doc>
  11517. <![CDATA[Close the map.]]>
  11518. </doc>
  11519. </method>
  11520. <doc>
  11521. <![CDATA[Provide access to an existing map.]]>
  11522. </doc>
  11523. </class>
  11524. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  11525. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  11526. <class name="MapFile.Writer" extends="java.lang.Object"
  11527. abstract="false"
  11528. static="true" final="false" visibility="public"
  11529. deprecated="not deprecated">
  11530. <implements name="java.io.Closeable"/>
  11531. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  11532. static="false" final="false" visibility="public"
  11533. deprecated="not deprecated">
  11534. <exception name="IOException" type="java.io.IOException"/>
  11535. <doc>
  11536. <![CDATA[Create the named map for keys of the named class.]]>
  11537. </doc>
  11538. </constructor>
  11539. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  11540. static="false" final="false" visibility="public"
  11541. deprecated="not deprecated">
  11542. <exception name="IOException" type="java.io.IOException"/>
  11543. <doc>
  11544. <![CDATA[Create the named map for keys of the named class.]]>
  11545. </doc>
  11546. </constructor>
  11547. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  11548. static="false" final="false" visibility="public"
  11549. deprecated="not deprecated">
  11550. <exception name="IOException" type="java.io.IOException"/>
  11551. <doc>
  11552. <![CDATA[Create the named map for keys of the named class.]]>
  11553. </doc>
  11554. </constructor>
  11555. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  11556. static="false" final="false" visibility="public"
  11557. deprecated="not deprecated">
  11558. <exception name="IOException" type="java.io.IOException"/>
  11559. <doc>
  11560. <![CDATA[Create the named map for keys of the named class.]]>
  11561. </doc>
  11562. </constructor>
  11563. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class"
  11564. static="false" final="false" visibility="public"
  11565. deprecated="not deprecated">
  11566. <exception name="IOException" type="java.io.IOException"/>
  11567. <doc>
  11568. <![CDATA[Create the named map using the named key comparator.]]>
  11569. </doc>
  11570. </constructor>
  11571. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  11572. static="false" final="false" visibility="public"
  11573. deprecated="not deprecated">
  11574. <exception name="IOException" type="java.io.IOException"/>
  11575. <doc>
  11576. <![CDATA[Create the named map using the named key comparator.]]>
  11577. </doc>
  11578. </constructor>
  11579. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  11580. static="false" final="false" visibility="public"
  11581. deprecated="not deprecated">
  11582. <exception name="IOException" type="java.io.IOException"/>
  11583. <doc>
  11584. <![CDATA[Create the named map using the named key comparator.]]>
  11585. </doc>
  11586. </constructor>
  11587. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  11588. static="false" final="false" visibility="public"
  11589. deprecated="not deprecated">
  11590. <exception name="IOException" type="java.io.IOException"/>
  11591. <doc>
  11592. <![CDATA[Create the named map using the named key comparator.]]>
  11593. </doc>
  11594. </constructor>
  11595. <method name="getIndexInterval" return="int"
  11596. abstract="false" native="false" synchronized="false"
  11597. static="false" final="false" visibility="public"
  11598. deprecated="not deprecated">
  11599. <doc>
  11600. <![CDATA[The number of entries that are added before an index entry is added.]]>
  11601. </doc>
  11602. </method>
  11603. <method name="setIndexInterval"
  11604. abstract="false" native="false" synchronized="false"
  11605. static="false" final="false" visibility="public"
  11606. deprecated="not deprecated">
  11607. <param name="interval" type="int"/>
  11608. <doc>
  11609. <![CDATA[Sets the index interval.
  11610. @see #getIndexInterval()]]>
  11611. </doc>
  11612. </method>
  11613. <method name="setIndexInterval"
  11614. abstract="false" native="false" synchronized="false"
  11615. static="true" final="false" visibility="public"
  11616. deprecated="not deprecated">
  11617. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11618. <param name="interval" type="int"/>
  11619. <doc>
  11620. <![CDATA[Sets the index interval and stores it in conf
  11621. @see #getIndexInterval()]]>
  11622. </doc>
  11623. </method>
  11624. <method name="close"
  11625. abstract="false" native="false" synchronized="true"
  11626. static="false" final="false" visibility="public"
  11627. deprecated="not deprecated">
  11628. <exception name="IOException" type="java.io.IOException"/>
  11629. <doc>
  11630. <![CDATA[Close the map.]]>
  11631. </doc>
  11632. </method>
  11633. <method name="append"
  11634. abstract="false" native="false" synchronized="true"
  11635. static="false" final="false" visibility="public"
  11636. deprecated="not deprecated">
  11637. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11638. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11639. <exception name="IOException" type="java.io.IOException"/>
  11640. <doc>
  11641. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  11642. to the previous key added to the map.]]>
  11643. </doc>
  11644. </method>
  11645. <doc>
  11646. <![CDATA[Writes a new map.]]>
  11647. </doc>
  11648. </class>
  11649. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  11650. <!-- start class org.apache.hadoop.io.MapWritable -->
  11651. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  11652. abstract="false"
  11653. static="false" final="false" visibility="public"
  11654. deprecated="not deprecated">
  11655. <implements name="java.util.Map"/>
  11656. <constructor name="MapWritable"
  11657. static="false" final="false" visibility="public"
  11658. deprecated="not deprecated">
  11659. <doc>
  11660. <![CDATA[Default constructor.]]>
  11661. </doc>
  11662. </constructor>
  11663. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  11664. static="false" final="false" visibility="public"
  11665. deprecated="not deprecated">
  11666. <doc>
  11667. <![CDATA[Copy constructor.
  11668. @param other the map to copy from]]>
  11669. </doc>
  11670. </constructor>
  11671. <method name="clear"
  11672. abstract="false" native="false" synchronized="false"
  11673. static="false" final="false" visibility="public"
  11674. deprecated="not deprecated">
  11675. <doc>
  11676. <![CDATA[{@inheritDoc}]]>
  11677. </doc>
  11678. </method>
  11679. <method name="containsKey" return="boolean"
  11680. abstract="false" native="false" synchronized="false"
  11681. static="false" final="false" visibility="public"
  11682. deprecated="not deprecated">
  11683. <param name="key" type="java.lang.Object"/>
  11684. <doc>
  11685. <![CDATA[{@inheritDoc}]]>
  11686. </doc>
  11687. </method>
  11688. <method name="containsValue" return="boolean"
  11689. abstract="false" native="false" synchronized="false"
  11690. static="false" final="false" visibility="public"
  11691. deprecated="not deprecated">
  11692. <param name="value" type="java.lang.Object"/>
  11693. <doc>
  11694. <![CDATA[{@inheritDoc}]]>
  11695. </doc>
  11696. </method>
  11697. <method name="entrySet" return="java.util.Set"
  11698. abstract="false" native="false" synchronized="false"
  11699. static="false" final="false" visibility="public"
  11700. deprecated="not deprecated">
  11701. <doc>
  11702. <![CDATA[{@inheritDoc}]]>
  11703. </doc>
  11704. </method>
  11705. <method name="get" return="org.apache.hadoop.io.Writable"
  11706. abstract="false" native="false" synchronized="false"
  11707. static="false" final="false" visibility="public"
  11708. deprecated="not deprecated">
  11709. <param name="key" type="java.lang.Object"/>
  11710. <doc>
  11711. <![CDATA[{@inheritDoc}]]>
  11712. </doc>
  11713. </method>
  11714. <method name="isEmpty" return="boolean"
  11715. abstract="false" native="false" synchronized="false"
  11716. static="false" final="false" visibility="public"
  11717. deprecated="not deprecated">
  11718. <doc>
  11719. <![CDATA[{@inheritDoc}]]>
  11720. </doc>
  11721. </method>
  11722. <method name="keySet" return="java.util.Set"
  11723. abstract="false" native="false" synchronized="false"
  11724. static="false" final="false" visibility="public"
  11725. deprecated="not deprecated">
  11726. <doc>
  11727. <![CDATA[{@inheritDoc}]]>
  11728. </doc>
  11729. </method>
  11730. <method name="put" return="org.apache.hadoop.io.Writable"
  11731. abstract="false" native="false" synchronized="false"
  11732. static="false" final="false" visibility="public"
  11733. deprecated="not deprecated">
  11734. <param name="key" type="org.apache.hadoop.io.Writable"/>
  11735. <param name="value" type="org.apache.hadoop.io.Writable"/>
  11736. <doc>
  11737. <![CDATA[{@inheritDoc}]]>
  11738. </doc>
  11739. </method>
  11740. <method name="putAll"
  11741. abstract="false" native="false" synchronized="false"
  11742. static="false" final="false" visibility="public"
  11743. deprecated="not deprecated">
  11744. <param name="t" type="java.util.Map"/>
  11745. <doc>
  11746. <![CDATA[{@inheritDoc}]]>
  11747. </doc>
  11748. </method>
  11749. <method name="remove" return="org.apache.hadoop.io.Writable"
  11750. abstract="false" native="false" synchronized="false"
  11751. static="false" final="false" visibility="public"
  11752. deprecated="not deprecated">
  11753. <param name="key" type="java.lang.Object"/>
  11754. <doc>
  11755. <![CDATA[{@inheritDoc}]]>
  11756. </doc>
  11757. </method>
  11758. <method name="size" return="int"
  11759. abstract="false" native="false" synchronized="false"
  11760. static="false" final="false" visibility="public"
  11761. deprecated="not deprecated">
  11762. <doc>
  11763. <![CDATA[{@inheritDoc}]]>
  11764. </doc>
  11765. </method>
  11766. <method name="values" return="java.util.Collection"
  11767. abstract="false" native="false" synchronized="false"
  11768. static="false" final="false" visibility="public"
  11769. deprecated="not deprecated">
  11770. <doc>
  11771. <![CDATA[{@inheritDoc}]]>
  11772. </doc>
  11773. </method>
  11774. <method name="write"
  11775. abstract="false" native="false" synchronized="false"
  11776. static="false" final="false" visibility="public"
  11777. deprecated="not deprecated">
  11778. <param name="out" type="java.io.DataOutput"/>
  11779. <exception name="IOException" type="java.io.IOException"/>
  11780. <doc>
  11781. <![CDATA[{@inheritDoc}]]>
  11782. </doc>
  11783. </method>
  11784. <method name="readFields"
  11785. abstract="false" native="false" synchronized="false"
  11786. static="false" final="false" visibility="public"
  11787. deprecated="not deprecated">
  11788. <param name="in" type="java.io.DataInput"/>
  11789. <exception name="IOException" type="java.io.IOException"/>
  11790. <doc>
  11791. <![CDATA[{@inheritDoc}]]>
  11792. </doc>
  11793. </method>
  11794. <doc>
  11795. <![CDATA[A Writable Map.]]>
  11796. </doc>
  11797. </class>
  11798. <!-- end class org.apache.hadoop.io.MapWritable -->
  11799. <!-- start class org.apache.hadoop.io.MD5Hash -->
  11800. <class name="MD5Hash" extends="java.lang.Object"
  11801. abstract="false"
  11802. static="false" final="false" visibility="public"
  11803. deprecated="not deprecated">
  11804. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11805. <constructor name="MD5Hash"
  11806. static="false" final="false" visibility="public"
  11807. deprecated="not deprecated">
  11808. <doc>
  11809. <![CDATA[Constructs an MD5Hash.]]>
  11810. </doc>
  11811. </constructor>
  11812. <constructor name="MD5Hash" type="java.lang.String"
  11813. static="false" final="false" visibility="public"
  11814. deprecated="not deprecated">
  11815. <doc>
  11816. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  11817. </doc>
  11818. </constructor>
  11819. <constructor name="MD5Hash" type="byte[]"
  11820. static="false" final="false" visibility="public"
  11821. deprecated="not deprecated">
  11822. <doc>
  11823. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  11824. </doc>
  11825. </constructor>
  11826. <method name="readFields"
  11827. abstract="false" native="false" synchronized="false"
  11828. static="false" final="false" visibility="public"
  11829. deprecated="not deprecated">
  11830. <param name="in" type="java.io.DataInput"/>
  11831. <exception name="IOException" type="java.io.IOException"/>
  11832. </method>
  11833. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  11834. abstract="false" native="false" synchronized="false"
  11835. static="true" final="false" visibility="public"
  11836. deprecated="not deprecated">
  11837. <param name="in" type="java.io.DataInput"/>
  11838. <exception name="IOException" type="java.io.IOException"/>
  11839. <doc>
  11840. <![CDATA[Constructs, reads and returns an instance.]]>
  11841. </doc>
  11842. </method>
  11843. <method name="write"
  11844. abstract="false" native="false" synchronized="false"
  11845. static="false" final="false" visibility="public"
  11846. deprecated="not deprecated">
  11847. <param name="out" type="java.io.DataOutput"/>
  11848. <exception name="IOException" type="java.io.IOException"/>
  11849. </method>
  11850. <method name="set"
  11851. abstract="false" native="false" synchronized="false"
  11852. static="false" final="false" visibility="public"
  11853. deprecated="not deprecated">
  11854. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  11855. <doc>
  11856. <![CDATA[Copy the contents of another instance into this instance.]]>
  11857. </doc>
  11858. </method>
  11859. <method name="getDigest" return="byte[]"
  11860. abstract="false" native="false" synchronized="false"
  11861. static="false" final="false" visibility="public"
  11862. deprecated="not deprecated">
  11863. <doc>
  11864. <![CDATA[Returns the digest bytes.]]>
  11865. </doc>
  11866. </method>
  11867. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11868. abstract="false" native="false" synchronized="false"
  11869. static="true" final="false" visibility="public"
  11870. deprecated="not deprecated">
  11871. <param name="data" type="byte[]"/>
  11872. <doc>
  11873. <![CDATA[Construct a hash value for a byte array.]]>
  11874. </doc>
  11875. </method>
  11876. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11877. abstract="false" native="false" synchronized="false"
  11878. static="true" final="false" visibility="public"
  11879. deprecated="not deprecated">
  11880. <param name="in" type="java.io.InputStream"/>
  11881. <exception name="IOException" type="java.io.IOException"/>
  11882. <doc>
  11883. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  11884. </doc>
  11885. </method>
  11886. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11887. abstract="false" native="false" synchronized="false"
  11888. static="true" final="false" visibility="public"
  11889. deprecated="not deprecated">
  11890. <param name="data" type="byte[]"/>
  11891. <param name="start" type="int"/>
  11892. <param name="len" type="int"/>
  11893. <doc>
  11894. <![CDATA[Construct a hash value for a byte array.]]>
  11895. </doc>
  11896. </method>
  11897. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11898. abstract="false" native="false" synchronized="false"
  11899. static="true" final="false" visibility="public"
  11900. deprecated="not deprecated">
  11901. <param name="string" type="java.lang.String"/>
  11902. <doc>
  11903. <![CDATA[Construct a hash value for a String.]]>
  11904. </doc>
  11905. </method>
  11906. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11907. abstract="false" native="false" synchronized="false"
  11908. static="true" final="false" visibility="public"
  11909. deprecated="not deprecated">
  11910. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  11911. <doc>
  11912. <![CDATA[Construct a hash value for a String.]]>
  11913. </doc>
  11914. </method>
  11915. <method name="halfDigest" return="long"
  11916. abstract="false" native="false" synchronized="false"
  11917. static="false" final="false" visibility="public"
  11918. deprecated="not deprecated">
  11919. <doc>
  11920. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  11921. </doc>
  11922. </method>
  11923. <method name="quarterDigest" return="int"
  11924. abstract="false" native="false" synchronized="false"
  11925. static="false" final="false" visibility="public"
  11926. deprecated="not deprecated">
  11927. <doc>
  11928. <![CDATA[Return a 32-bit digest of the MD5.
  11929. @return the first 4 bytes of the md5]]>
  11930. </doc>
  11931. </method>
  11932. <method name="equals" return="boolean"
  11933. abstract="false" native="false" synchronized="false"
  11934. static="false" final="false" visibility="public"
  11935. deprecated="not deprecated">
  11936. <param name="o" type="java.lang.Object"/>
  11937. <doc>
  11938. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  11939. same values.]]>
  11940. </doc>
  11941. </method>
  11942. <method name="hashCode" return="int"
  11943. abstract="false" native="false" synchronized="false"
  11944. static="false" final="false" visibility="public"
  11945. deprecated="not deprecated">
  11946. <doc>
  11947. <![CDATA[Returns a hash code value for this object.
  11948. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  11949. </doc>
  11950. </method>
  11951. <method name="compareTo" return="int"
  11952. abstract="false" native="false" synchronized="false"
  11953. static="false" final="false" visibility="public"
  11954. deprecated="not deprecated">
  11955. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  11956. <doc>
  11957. <![CDATA[Compares this object with the specified object for order.]]>
  11958. </doc>
  11959. </method>
  11960. <method name="toString" return="java.lang.String"
  11961. abstract="false" native="false" synchronized="false"
  11962. static="false" final="false" visibility="public"
  11963. deprecated="not deprecated">
  11964. <doc>
  11965. <![CDATA[Returns a string representation of this object.]]>
  11966. </doc>
  11967. </method>
  11968. <method name="setDigest"
  11969. abstract="false" native="false" synchronized="false"
  11970. static="false" final="false" visibility="public"
  11971. deprecated="not deprecated">
  11972. <param name="hex" type="java.lang.String"/>
  11973. <doc>
  11974. <![CDATA[Sets the digest value from a hex string.]]>
  11975. </doc>
  11976. </method>
  11977. <field name="MD5_LEN" type="int"
  11978. transient="false" volatile="false"
  11979. static="true" final="true" visibility="public"
  11980. deprecated="not deprecated">
  11981. </field>
  11982. <doc>
  11983. <![CDATA[A Writable for MD5 hash values.]]>
  11984. </doc>
  11985. </class>
  11986. <!-- end class org.apache.hadoop.io.MD5Hash -->
  11987. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  11988. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11989. abstract="false"
  11990. static="true" final="false" visibility="public"
  11991. deprecated="not deprecated">
  11992. <constructor name="MD5Hash.Comparator"
  11993. static="false" final="false" visibility="public"
  11994. deprecated="not deprecated">
  11995. </constructor>
  11996. <method name="compare" return="int"
  11997. abstract="false" native="false" synchronized="false"
  11998. static="false" final="false" visibility="public"
  11999. deprecated="not deprecated">
  12000. <param name="b1" type="byte[]"/>
  12001. <param name="s1" type="int"/>
  12002. <param name="l1" type="int"/>
  12003. <param name="b2" type="byte[]"/>
  12004. <param name="s2" type="int"/>
  12005. <param name="l2" type="int"/>
  12006. </method>
  12007. <doc>
  12008. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  12009. </doc>
  12010. </class>
  12011. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  12012. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  12013. <class name="MultipleIOException" extends="java.io.IOException"
  12014. abstract="false"
  12015. static="false" final="false" visibility="public"
  12016. deprecated="not deprecated">
  12017. <method name="getExceptions" return="java.util.List"
  12018. abstract="false" native="false" synchronized="false"
  12019. static="false" final="false" visibility="public"
  12020. deprecated="not deprecated">
  12021. <doc>
  12022. <![CDATA[@return the underlying exceptions]]>
  12023. </doc>
  12024. </method>
  12025. <method name="createIOException" return="java.io.IOException"
  12026. abstract="false" native="false" synchronized="false"
  12027. static="true" final="false" visibility="public"
  12028. deprecated="not deprecated">
  12029. <param name="exceptions" type="java.util.List"/>
  12030. <doc>
  12031. <![CDATA[A convenient method to create an {@link IOException}.]]>
  12032. </doc>
  12033. </method>
  12034. <doc>
  12035. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  12036. </doc>
  12037. </class>
  12038. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  12039. <!-- start class org.apache.hadoop.io.NullWritable -->
  12040. <class name="NullWritable" extends="java.lang.Object"
  12041. abstract="false"
  12042. static="false" final="false" visibility="public"
  12043. deprecated="not deprecated">
  12044. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12045. <method name="get" return="org.apache.hadoop.io.NullWritable"
  12046. abstract="false" native="false" synchronized="false"
  12047. static="true" final="false" visibility="public"
  12048. deprecated="not deprecated">
  12049. <doc>
  12050. <![CDATA[Returns the single instance of this class.]]>
  12051. </doc>
  12052. </method>
  12053. <method name="toString" return="java.lang.String"
  12054. abstract="false" native="false" synchronized="false"
  12055. static="false" final="false" visibility="public"
  12056. deprecated="not deprecated">
  12057. </method>
  12058. <method name="hashCode" return="int"
  12059. abstract="false" native="false" synchronized="false"
  12060. static="false" final="false" visibility="public"
  12061. deprecated="not deprecated">
  12062. </method>
  12063. <method name="compareTo" return="int"
  12064. abstract="false" native="false" synchronized="false"
  12065. static="false" final="false" visibility="public"
  12066. deprecated="not deprecated">
  12067. <param name="other" type="java.lang.Object"/>
  12068. </method>
  12069. <method name="equals" return="boolean"
  12070. abstract="false" native="false" synchronized="false"
  12071. static="false" final="false" visibility="public"
  12072. deprecated="not deprecated">
  12073. <param name="other" type="java.lang.Object"/>
  12074. </method>
  12075. <method name="readFields"
  12076. abstract="false" native="false" synchronized="false"
  12077. static="false" final="false" visibility="public"
  12078. deprecated="not deprecated">
  12079. <param name="in" type="java.io.DataInput"/>
  12080. <exception name="IOException" type="java.io.IOException"/>
  12081. </method>
  12082. <method name="write"
  12083. abstract="false" native="false" synchronized="false"
  12084. static="false" final="false" visibility="public"
  12085. deprecated="not deprecated">
  12086. <param name="out" type="java.io.DataOutput"/>
  12087. <exception name="IOException" type="java.io.IOException"/>
  12088. </method>
  12089. <doc>
  12090. <![CDATA[Singleton Writable with no data.]]>
  12091. </doc>
  12092. </class>
  12093. <!-- end class org.apache.hadoop.io.NullWritable -->
  12094. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  12095. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12096. abstract="false"
  12097. static="true" final="false" visibility="public"
  12098. deprecated="not deprecated">
  12099. <constructor name="NullWritable.Comparator"
  12100. static="false" final="false" visibility="public"
  12101. deprecated="not deprecated">
  12102. </constructor>
  12103. <method name="compare" return="int"
  12104. abstract="false" native="false" synchronized="false"
  12105. static="false" final="false" visibility="public"
  12106. deprecated="not deprecated">
  12107. <param name="b1" type="byte[]"/>
  12108. <param name="s1" type="int"/>
  12109. <param name="l1" type="int"/>
  12110. <param name="b2" type="byte[]"/>
  12111. <param name="s2" type="int"/>
  12112. <param name="l2" type="int"/>
  12113. <doc>
  12114. <![CDATA[Compare the buffers in serialized form.]]>
  12115. </doc>
  12116. </method>
  12117. <doc>
  12118. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  12119. </doc>
  12120. </class>
  12121. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  12122. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  12123. <class name="ObjectWritable" extends="java.lang.Object"
  12124. abstract="false"
  12125. static="false" final="false" visibility="public"
  12126. deprecated="not deprecated">
  12127. <implements name="org.apache.hadoop.io.Writable"/>
  12128. <implements name="org.apache.hadoop.conf.Configurable"/>
  12129. <constructor name="ObjectWritable"
  12130. static="false" final="false" visibility="public"
  12131. deprecated="not deprecated">
  12132. </constructor>
  12133. <constructor name="ObjectWritable" type="java.lang.Object"
  12134. static="false" final="false" visibility="public"
  12135. deprecated="not deprecated">
  12136. </constructor>
  12137. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  12138. static="false" final="false" visibility="public"
  12139. deprecated="not deprecated">
  12140. </constructor>
  12141. <method name="get" return="java.lang.Object"
  12142. abstract="false" native="false" synchronized="false"
  12143. static="false" final="false" visibility="public"
  12144. deprecated="not deprecated">
  12145. <doc>
  12146. <![CDATA[Return the instance, or null if none.]]>
  12147. </doc>
  12148. </method>
  12149. <method name="getDeclaredClass" return="java.lang.Class"
  12150. abstract="false" native="false" synchronized="false"
  12151. static="false" final="false" visibility="public"
  12152. deprecated="not deprecated">
  12153. <doc>
  12154. <![CDATA[Return the class this is meant to be.]]>
  12155. </doc>
  12156. </method>
  12157. <method name="set"
  12158. abstract="false" native="false" synchronized="false"
  12159. static="false" final="false" visibility="public"
  12160. deprecated="not deprecated">
  12161. <param name="instance" type="java.lang.Object"/>
  12162. <doc>
  12163. <![CDATA[Reset the instance.]]>
  12164. </doc>
  12165. </method>
  12166. <method name="toString" return="java.lang.String"
  12167. abstract="false" native="false" synchronized="false"
  12168. static="false" final="false" visibility="public"
  12169. deprecated="not deprecated">
  12170. </method>
  12171. <method name="readFields"
  12172. abstract="false" native="false" synchronized="false"
  12173. static="false" final="false" visibility="public"
  12174. deprecated="not deprecated">
  12175. <param name="in" type="java.io.DataInput"/>
  12176. <exception name="IOException" type="java.io.IOException"/>
  12177. </method>
  12178. <method name="write"
  12179. abstract="false" native="false" synchronized="false"
  12180. static="false" final="false" visibility="public"
  12181. deprecated="not deprecated">
  12182. <param name="out" type="java.io.DataOutput"/>
  12183. <exception name="IOException" type="java.io.IOException"/>
  12184. </method>
  12185. <method name="writeObject"
  12186. abstract="false" native="false" synchronized="false"
  12187. static="true" final="false" visibility="public"
  12188. deprecated="not deprecated">
  12189. <param name="out" type="java.io.DataOutput"/>
  12190. <param name="instance" type="java.lang.Object"/>
  12191. <param name="declaredClass" type="java.lang.Class"/>
  12192. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12193. <exception name="IOException" type="java.io.IOException"/>
  12194. <doc>
  12195. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  12196. the preceding.]]>
  12197. </doc>
  12198. </method>
  12199. <method name="readObject" return="java.lang.Object"
  12200. abstract="false" native="false" synchronized="false"
  12201. static="true" final="false" visibility="public"
  12202. deprecated="not deprecated">
  12203. <param name="in" type="java.io.DataInput"/>
  12204. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12205. <exception name="IOException" type="java.io.IOException"/>
  12206. <doc>
  12207. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12208. the preceding.]]>
  12209. </doc>
  12210. </method>
  12211. <method name="readObject" return="java.lang.Object"
  12212. abstract="false" native="false" synchronized="false"
  12213. static="true" final="false" visibility="public"
  12214. deprecated="not deprecated">
  12215. <param name="in" type="java.io.DataInput"/>
  12216. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  12217. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12218. <exception name="IOException" type="java.io.IOException"/>
  12219. <doc>
  12220. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12221. the preceding.]]>
  12222. </doc>
  12223. </method>
  12224. <method name="setConf"
  12225. abstract="false" native="false" synchronized="false"
  12226. static="false" final="false" visibility="public"
  12227. deprecated="not deprecated">
  12228. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12229. </method>
  12230. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12231. abstract="false" native="false" synchronized="false"
  12232. static="false" final="false" visibility="public"
  12233. deprecated="not deprecated">
  12234. </method>
  12235. <doc>
  12236. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  12237. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  12238. </doc>
  12239. </class>
  12240. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  12241. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  12242. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  12243. abstract="false"
  12244. static="false" final="false" visibility="public"
  12245. deprecated="not deprecated">
  12246. <constructor name="OutputBuffer"
  12247. static="false" final="false" visibility="public"
  12248. deprecated="not deprecated">
  12249. <doc>
  12250. <![CDATA[Constructs a new empty buffer.]]>
  12251. </doc>
  12252. </constructor>
  12253. <method name="getData" return="byte[]"
  12254. abstract="false" native="false" synchronized="false"
  12255. static="false" final="false" visibility="public"
  12256. deprecated="not deprecated">
  12257. <doc>
  12258. <![CDATA[Returns the current contents of the buffer.
  12259. Data is only valid to {@link #getLength()}.]]>
  12260. </doc>
  12261. </method>
  12262. <method name="getLength" return="int"
  12263. abstract="false" native="false" synchronized="false"
  12264. static="false" final="false" visibility="public"
  12265. deprecated="not deprecated">
  12266. <doc>
  12267. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  12268. </doc>
  12269. </method>
  12270. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  12271. abstract="false" native="false" synchronized="false"
  12272. static="false" final="false" visibility="public"
  12273. deprecated="not deprecated">
  12274. <doc>
  12275. <![CDATA[Resets the buffer to empty.]]>
  12276. </doc>
  12277. </method>
  12278. <method name="write"
  12279. abstract="false" native="false" synchronized="false"
  12280. static="false" final="false" visibility="public"
  12281. deprecated="not deprecated">
  12282. <param name="in" type="java.io.InputStream"/>
  12283. <param name="length" type="int"/>
  12284. <exception name="IOException" type="java.io.IOException"/>
  12285. <doc>
  12286. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  12287. </doc>
  12288. </method>
  12289. <doc>
  12290. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  12291. buffer.
  12292. <p>This saves memory over creating a new OutputStream and
  12293. ByteArrayOutputStream each time data is written.
  12294. <p>Typical usage is something like the following:<pre>
  12295. OutputBuffer buffer = new OutputBuffer();
  12296. while (... loop condition ...) {
  12297. buffer.reset();
  12298. ... write buffer using OutputStream methods ...
  12299. byte[] data = buffer.getData();
  12300. int dataLength = buffer.getLength();
  12301. ... write data to its ultimate destination ...
  12302. }
  12303. </pre>
  12304. @see DataOutputBuffer
  12305. @see InputBuffer]]>
  12306. </doc>
  12307. </class>
  12308. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  12309. <!-- start interface org.apache.hadoop.io.RawComparator -->
  12310. <interface name="RawComparator" abstract="true"
  12311. static="false" final="false" visibility="public"
  12312. deprecated="not deprecated">
  12313. <implements name="java.util.Comparator"/>
  12314. <method name="compare" return="int"
  12315. abstract="false" native="false" synchronized="false"
  12316. static="false" final="false" visibility="public"
  12317. deprecated="not deprecated">
  12318. <param name="b1" type="byte[]"/>
  12319. <param name="s1" type="int"/>
  12320. <param name="l1" type="int"/>
  12321. <param name="b2" type="byte[]"/>
  12322. <param name="s2" type="int"/>
  12323. <param name="l2" type="int"/>
  12324. </method>
  12325. <doc>
  12326. <![CDATA[<p>
  12327. A {@link Comparator} that operates directly on byte representations of
  12328. objects.
  12329. </p>
  12330. @param <T>
  12331. @see DeserializerComparator]]>
  12332. </doc>
  12333. </interface>
  12334. <!-- end interface org.apache.hadoop.io.RawComparator -->
  12335. <!-- start class org.apache.hadoop.io.SecureIOUtils -->
  12336. <class name="SecureIOUtils" extends="java.lang.Object"
  12337. abstract="false"
  12338. static="false" final="false" visibility="public"
  12339. deprecated="not deprecated">
  12340. <constructor name="SecureIOUtils"
  12341. static="false" final="false" visibility="public"
  12342. deprecated="not deprecated">
  12343. </constructor>
  12344. <method name="openForRead" return="java.io.FileInputStream"
  12345. abstract="false" native="false" synchronized="false"
  12346. static="true" final="false" visibility="public"
  12347. deprecated="not deprecated">
  12348. <param name="f" type="java.io.File"/>
  12349. <param name="expectedOwner" type="java.lang.String"/>
  12350. <exception name="IOException" type="java.io.IOException"/>
  12351. <doc>
  12352. <![CDATA[Open the given File for read access, verifying the expected user
  12353. constraints.
  12354. @param f the file that we are trying to open
  12355. @param expectedOwner the expected user owner for the file
  12356. @throws IOException if an IO Error occurred, or the user does not
  12357. match]]>
  12358. </doc>
  12359. </method>
  12360. <method name="createForWrite" return="java.io.FileOutputStream"
  12361. abstract="false" native="false" synchronized="false"
  12362. static="true" final="false" visibility="public"
  12363. deprecated="not deprecated">
  12364. <param name="f" type="java.io.File"/>
  12365. <param name="permissions" type="int"/>
  12366. <exception name="IOException" type="java.io.IOException"/>
  12367. <doc>
  12368. <![CDATA[Open the specified File for write access, ensuring that it does not exist.
  12369. @param f the file that we want to create
  12370. @param permissions we want to have on the file (if security is enabled)
  12371. @throws AlreadyExistsException if the file already exists
  12372. @throws IOException if any other error occurred]]>
  12373. </doc>
  12374. </method>
  12375. <doc>
  12376. <![CDATA[This class provides secure APIs for opening and creating files on the local
  12377. disk. The main issue this class tries to handle is that of symlink traversal.
  12378. <br/>
  12379. An example of such an attack is:
  12380. <ol>
  12381. <li> Malicious user removes his task's syslog file, and puts a link to the
  12382. jobToken file of a target user.</li>
  12383. <li> Malicious user tries to open the syslog file via the servlet on the
  12384. tasktracker.</li>
  12385. <li> The tasktracker is unaware of the symlink, and simply streams the contents
  12386. of the jobToken file. The malicious user can now access potentially sensitive
  12387. map outputs, etc. of the target user's job.</li>
  12388. </ol>
  12389. A similar attack is possible involving the
  12390. {@link org.apache.hadoop.mapred.TaskLogsTruncater}, but here it is to do
  12391. with unsecure write to a file.
  12392. <br/>]]>
  12393. </doc>
  12394. </class>
  12395. <!-- end class org.apache.hadoop.io.SecureIOUtils -->
  12396. <!-- start class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12397. <class name="SecureIOUtils.AlreadyExistsException" extends="java.io.IOException"
  12398. abstract="false"
  12399. static="true" final="false" visibility="public"
  12400. deprecated="not deprecated">
  12401. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.String"
  12402. static="false" final="false" visibility="public"
  12403. deprecated="not deprecated">
  12404. </constructor>
  12405. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.Throwable"
  12406. static="false" final="false" visibility="public"
  12407. deprecated="not deprecated">
  12408. </constructor>
  12409. <doc>
  12410. <![CDATA[Signals that an attempt to create a file at a given pathname has failed
  12411. because another file already existed at that path.]]>
  12412. </doc>
  12413. </class>
  12414. <!-- end class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12415. <!-- start class org.apache.hadoop.io.SequenceFile -->
  12416. <class name="SequenceFile" extends="java.lang.Object"
  12417. abstract="false"
  12418. static="false" final="false" visibility="public"
  12419. deprecated="not deprecated">
  12420. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12421. abstract="false" native="false" synchronized="false"
  12422. static="true" final="false" visibility="public"
  12423. deprecated="Use
  12424. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12425. to get {@link CompressionType} for job-outputs.">
  12426. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12427. <doc>
  12428. <![CDATA[Get the compression type for the reduce outputs
  12429. @param job the job config to look in
  12430. @return the kind of compression to use
  12431. @deprecated Use
  12432. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12433. to get {@link CompressionType} for job-outputs.]]>
  12434. </doc>
  12435. </method>
  12436. <method name="setCompressionType"
  12437. abstract="false" native="false" synchronized="false"
  12438. static="true" final="false" visibility="public"
  12439. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  12440. the {@link CompressionType} while creating the {@link SequenceFile} or
  12441. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12442. to specify the {@link CompressionType} for job-outputs.
  12443. or">
  12444. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12445. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12446. <doc>
  12447. <![CDATA[Set the compression type for sequence files.
  12448. @param job the configuration to modify
  12449. @param val the new compression type (none, block, record)
  12450. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  12451. the {@link CompressionType} while creating the {@link SequenceFile} or
  12452. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12453. to specify the {@link CompressionType} for job-outputs.
  12454. or]]>
  12455. </doc>
  12456. </method>
  12457. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12458. abstract="false" native="false" synchronized="false"
  12459. static="true" final="false" visibility="public"
  12460. deprecated="not deprecated">
  12461. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12462. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12463. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12464. <param name="keyClass" type="java.lang.Class"/>
  12465. <param name="valClass" type="java.lang.Class"/>
  12466. <exception name="IOException" type="java.io.IOException"/>
  12467. <doc>
  12468. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12469. @param fs The configured filesystem.
  12470. @param conf The configuration.
  12471. @param name The name of the file.
  12472. @param keyClass The 'key' type.
  12473. @param valClass The 'value' type.
  12474. @return Returns the handle to the constructed SequenceFile Writer.
  12475. @throws IOException]]>
  12476. </doc>
  12477. </method>
  12478. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12479. abstract="false" native="false" synchronized="false"
  12480. static="true" final="false" visibility="public"
  12481. deprecated="not deprecated">
  12482. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12483. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12484. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12485. <param name="keyClass" type="java.lang.Class"/>
  12486. <param name="valClass" type="java.lang.Class"/>
  12487. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12488. <exception name="IOException" type="java.io.IOException"/>
  12489. <doc>
  12490. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12491. @param fs The configured filesystem.
  12492. @param conf The configuration.
  12493. @param name The name of the file.
  12494. @param keyClass The 'key' type.
  12495. @param valClass The 'value' type.
  12496. @param compressionType The compression type.
  12497. @return Returns the handle to the constructed SequenceFile Writer.
  12498. @throws IOException]]>
  12499. </doc>
  12500. </method>
  12501. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12502. abstract="false" native="false" synchronized="false"
  12503. static="true" final="false" visibility="public"
  12504. deprecated="not deprecated">
  12505. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12506. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12507. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12508. <param name="keyClass" type="java.lang.Class"/>
  12509. <param name="valClass" type="java.lang.Class"/>
  12510. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12511. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12512. <exception name="IOException" type="java.io.IOException"/>
  12513. <doc>
  12514. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12515. @param fs The configured filesystem.
  12516. @param conf The configuration.
  12517. @param name The name of the file.
  12518. @param keyClass The 'key' type.
  12519. @param valClass The 'value' type.
  12520. @param compressionType The compression type.
  12521. @param progress The Progressable object to track progress.
  12522. @return Returns the handle to the constructed SequenceFile Writer.
  12523. @throws IOException]]>
  12524. </doc>
  12525. </method>
  12526. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12527. abstract="false" native="false" synchronized="false"
  12528. static="true" final="false" visibility="public"
  12529. deprecated="not deprecated">
  12530. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12531. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12532. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12533. <param name="keyClass" type="java.lang.Class"/>
  12534. <param name="valClass" type="java.lang.Class"/>
  12535. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12536. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12537. <exception name="IOException" type="java.io.IOException"/>
  12538. <doc>
  12539. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12540. @param fs The configured filesystem.
  12541. @param conf The configuration.
  12542. @param name The name of the file.
  12543. @param keyClass The 'key' type.
  12544. @param valClass The 'value' type.
  12545. @param compressionType The compression type.
  12546. @param codec The compression codec.
  12547. @return Returns the handle to the constructed SequenceFile Writer.
  12548. @throws IOException]]>
  12549. </doc>
  12550. </method>
  12551. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12552. abstract="false" native="false" synchronized="false"
  12553. static="true" final="false" visibility="public"
  12554. deprecated="not deprecated">
  12555. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12556. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12557. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12558. <param name="keyClass" type="java.lang.Class"/>
  12559. <param name="valClass" type="java.lang.Class"/>
  12560. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12561. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12562. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12563. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12564. <exception name="IOException" type="java.io.IOException"/>
  12565. <doc>
  12566. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12567. @param fs The configured filesystem.
  12568. @param conf The configuration.
  12569. @param name The name of the file.
  12570. @param keyClass The 'key' type.
  12571. @param valClass The 'value' type.
  12572. @param compressionType The compression type.
  12573. @param codec The compression codec.
  12574. @param progress The Progressable object to track progress.
  12575. @param metadata The metadata of the file.
  12576. @return Returns the handle to the constructed SequenceFile Writer.
  12577. @throws IOException]]>
  12578. </doc>
  12579. </method>
  12580. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12581. abstract="false" native="false" synchronized="false"
  12582. static="true" final="false" visibility="public"
  12583. deprecated="not deprecated">
  12584. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12585. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12586. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12587. <param name="keyClass" type="java.lang.Class"/>
  12588. <param name="valClass" type="java.lang.Class"/>
  12589. <param name="bufferSize" type="int"/>
  12590. <param name="replication" type="short"/>
  12591. <param name="blockSize" type="long"/>
  12592. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12593. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12594. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12595. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12596. <exception name="IOException" type="java.io.IOException"/>
  12597. <doc>
  12598. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12599. @param fs The configured filesystem.
  12600. @param conf The configuration.
  12601. @param name The name of the file.
  12602. @param keyClass The 'key' type.
  12603. @param valClass The 'value' type.
  12604. @param bufferSize buffer size for the underlaying outputstream.
  12605. @param replication replication factor for the file.
  12606. @param blockSize block size for the file.
  12607. @param compressionType The compression type.
  12608. @param codec The compression codec.
  12609. @param progress The Progressable object to track progress.
  12610. @param metadata The metadata of the file.
  12611. @return Returns the handle to the constructed SequenceFile Writer.
  12612. @throws IOException]]>
  12613. </doc>
  12614. </method>
  12615. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12616. abstract="false" native="false" synchronized="false"
  12617. static="true" final="false" visibility="public"
  12618. deprecated="not deprecated">
  12619. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12620. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12621. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12622. <param name="keyClass" type="java.lang.Class"/>
  12623. <param name="valClass" type="java.lang.Class"/>
  12624. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12625. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12626. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12627. <exception name="IOException" type="java.io.IOException"/>
  12628. <doc>
  12629. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12630. @param fs The configured filesystem.
  12631. @param conf The configuration.
  12632. @param name The name of the file.
  12633. @param keyClass The 'key' type.
  12634. @param valClass The 'value' type.
  12635. @param compressionType The compression type.
  12636. @param codec The compression codec.
  12637. @param progress The Progressable object to track progress.
  12638. @return Returns the handle to the constructed SequenceFile Writer.
  12639. @throws IOException]]>
  12640. </doc>
  12641. </method>
  12642. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12643. abstract="false" native="false" synchronized="false"
  12644. static="true" final="false" visibility="public"
  12645. deprecated="not deprecated">
  12646. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12647. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  12648. <param name="keyClass" type="java.lang.Class"/>
  12649. <param name="valClass" type="java.lang.Class"/>
  12650. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12651. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12652. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12653. <exception name="IOException" type="java.io.IOException"/>
  12654. <doc>
  12655. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  12656. @param conf The configuration.
  12657. @param out The stream on top which the writer is to be constructed.
  12658. @param keyClass The 'key' type.
  12659. @param valClass The 'value' type.
  12660. @param compressionType The compression type.
  12661. @param codec The compression codec.
  12662. @param metadata The metadata of the file.
  12663. @return Returns the handle to the constructed SequenceFile Writer.
  12664. @throws IOException]]>
  12665. </doc>
  12666. </method>
  12667. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12668. abstract="false" native="false" synchronized="false"
  12669. static="true" final="false" visibility="public"
  12670. deprecated="not deprecated">
  12671. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12672. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  12673. <param name="keyClass" type="java.lang.Class"/>
  12674. <param name="valClass" type="java.lang.Class"/>
  12675. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12676. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12677. <exception name="IOException" type="java.io.IOException"/>
  12678. <doc>
  12679. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  12680. @param conf The configuration.
  12681. @param out The stream on top which the writer is to be constructed.
  12682. @param keyClass The 'key' type.
  12683. @param valClass The 'value' type.
  12684. @param compressionType The compression type.
  12685. @param codec The compression codec.
  12686. @return Returns the handle to the constructed SequenceFile Writer.
  12687. @throws IOException]]>
  12688. </doc>
  12689. </method>
  12690. <field name="SYNC_INTERVAL" type="int"
  12691. transient="false" volatile="false"
  12692. static="true" final="true" visibility="public"
  12693. deprecated="not deprecated">
  12694. <doc>
  12695. <![CDATA[The number of bytes between sync points.]]>
  12696. </doc>
  12697. </field>
  12698. <doc>
  12699. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  12700. pairs.
  12701. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  12702. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  12703. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  12704. {@link CompressionType} used to compress key/value pairs:
  12705. <ol>
  12706. <li>
  12707. <code>Writer</code> : Uncompressed records.
  12708. </li>
  12709. <li>
  12710. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  12711. values.
  12712. </li>
  12713. <li>
  12714. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  12715. values are collected in 'blocks'
  12716. separately and compressed. The size of
  12717. the 'block' is configurable.
  12718. </ol>
  12719. <p>The actual compression algorithm used to compress key and/or values can be
  12720. specified by using the appropriate {@link CompressionCodec}.</p>
  12721. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  12722. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  12723. <p>The {@link Reader} acts as the bridge and can read any of the above
  12724. <code>SequenceFile</code> formats.</p>
  12725. <h4 id="Formats">SequenceFile Formats</h4>
  12726. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  12727. depending on the <code>CompressionType</code> specified. All of them share a
  12728. <a href="#Header">common header</a> described below.
  12729. <h5 id="Header">SequenceFile Header</h5>
  12730. <ul>
  12731. <li>
  12732. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  12733. version number (e.g. SEQ4 or SEQ6)
  12734. </li>
  12735. <li>
  12736. keyClassName -key class
  12737. </li>
  12738. <li>
  12739. valueClassName - value class
  12740. </li>
  12741. <li>
  12742. compression - A boolean which specifies if compression is turned on for
  12743. keys/values in this file.
  12744. </li>
  12745. <li>
  12746. blockCompression - A boolean which specifies if block-compression is
  12747. turned on for keys/values in this file.
  12748. </li>
  12749. <li>
  12750. compression codec - <code>CompressionCodec</code> class which is used for
  12751. compression of keys and/or values (if compression is
  12752. enabled).
  12753. </li>
  12754. <li>
  12755. metadata - {@link Metadata} for this file.
  12756. </li>
  12757. <li>
  12758. sync - A sync marker to denote end of the header.
  12759. </li>
  12760. </ul>
  12761. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  12762. <ul>
  12763. <li>
  12764. <a href="#Header">Header</a>
  12765. </li>
  12766. <li>
  12767. Record
  12768. <ul>
  12769. <li>Record length</li>
  12770. <li>Key length</li>
  12771. <li>Key</li>
  12772. <li>Value</li>
  12773. </ul>
  12774. </li>
  12775. <li>
  12776. A sync-marker every few <code>100</code> bytes or so.
  12777. </li>
  12778. </ul>
  12779. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  12780. <ul>
  12781. <li>
  12782. <a href="#Header">Header</a>
  12783. </li>
  12784. <li>
  12785. Record
  12786. <ul>
  12787. <li>Record length</li>
  12788. <li>Key length</li>
  12789. <li>Key</li>
  12790. <li><i>Compressed</i> Value</li>
  12791. </ul>
  12792. </li>
  12793. <li>
  12794. A sync-marker every few <code>100</code> bytes or so.
  12795. </li>
  12796. </ul>
  12797. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  12798. <ul>
  12799. <li>
  12800. <a href="#Header">Header</a>
  12801. </li>
  12802. <li>
  12803. Record <i>Block</i>
  12804. <ul>
  12805. <li>Compressed key-lengths block-size</li>
  12806. <li>Compressed key-lengths block</li>
  12807. <li>Compressed keys block-size</li>
  12808. <li>Compressed keys block</li>
  12809. <li>Compressed value-lengths block-size</li>
  12810. <li>Compressed value-lengths block</li>
  12811. <li>Compressed values block-size</li>
  12812. <li>Compressed values block</li>
  12813. </ul>
  12814. </li>
  12815. <li>
  12816. A sync-marker every few <code>100</code> bytes or so.
  12817. </li>
  12818. </ul>
  12819. <p>The compressed blocks of key lengths and value lengths consist of the
  12820. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  12821. format.</p>
  12822. @see CompressionCodec]]>
  12823. </doc>
  12824. </class>
  12825. <!-- end class org.apache.hadoop.io.SequenceFile -->
  12826. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  12827. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  12828. abstract="false"
  12829. static="true" final="true" visibility="public"
  12830. deprecated="not deprecated">
  12831. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  12832. abstract="false" native="false" synchronized="false"
  12833. static="true" final="false" visibility="public"
  12834. deprecated="not deprecated">
  12835. </method>
  12836. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12837. abstract="false" native="false" synchronized="false"
  12838. static="true" final="false" visibility="public"
  12839. deprecated="not deprecated">
  12840. <param name="name" type="java.lang.String"/>
  12841. </method>
  12842. <field name="NONE" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  12843. transient="false" volatile="false"
  12844. static="true" final="true" visibility="public"
  12845. deprecated="not deprecated">
  12846. <doc>
  12847. <![CDATA[Do not compress records.]]>
  12848. </doc>
  12849. </field>
  12850. <field name="RECORD" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  12851. transient="false" volatile="false"
  12852. static="true" final="true" visibility="public"
  12853. deprecated="not deprecated">
  12854. <doc>
  12855. <![CDATA[Compress values only, each separately.]]>
  12856. </doc>
  12857. </field>
  12858. <field name="BLOCK" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  12859. transient="false" volatile="false"
  12860. static="true" final="true" visibility="public"
  12861. deprecated="not deprecated">
  12862. <doc>
  12863. <![CDATA[Compress sequences of records together in blocks.]]>
  12864. </doc>
  12865. </field>
  12866. <doc>
  12867. <![CDATA[The compression type used to compress key/value pairs in the
  12868. {@link SequenceFile}.
  12869. @see SequenceFile.Writer]]>
  12870. </doc>
  12871. </class>
  12872. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  12873. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  12874. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  12875. abstract="false"
  12876. static="true" final="false" visibility="public"
  12877. deprecated="not deprecated">
  12878. <implements name="org.apache.hadoop.io.Writable"/>
  12879. <constructor name="SequenceFile.Metadata"
  12880. static="false" final="false" visibility="public"
  12881. deprecated="not deprecated">
  12882. </constructor>
  12883. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  12884. static="false" final="false" visibility="public"
  12885. deprecated="not deprecated">
  12886. </constructor>
  12887. <method name="get" return="org.apache.hadoop.io.Text"
  12888. abstract="false" native="false" synchronized="false"
  12889. static="false" final="false" visibility="public"
  12890. deprecated="not deprecated">
  12891. <param name="name" type="org.apache.hadoop.io.Text"/>
  12892. </method>
  12893. <method name="set"
  12894. abstract="false" native="false" synchronized="false"
  12895. static="false" final="false" visibility="public"
  12896. deprecated="not deprecated">
  12897. <param name="name" type="org.apache.hadoop.io.Text"/>
  12898. <param name="value" type="org.apache.hadoop.io.Text"/>
  12899. </method>
  12900. <method name="getMetadata" return="java.util.TreeMap"
  12901. abstract="false" native="false" synchronized="false"
  12902. static="false" final="false" visibility="public"
  12903. deprecated="not deprecated">
  12904. </method>
  12905. <method name="write"
  12906. abstract="false" native="false" synchronized="false"
  12907. static="false" final="false" visibility="public"
  12908. deprecated="not deprecated">
  12909. <param name="out" type="java.io.DataOutput"/>
  12910. <exception name="IOException" type="java.io.IOException"/>
  12911. </method>
  12912. <method name="readFields"
  12913. abstract="false" native="false" synchronized="false"
  12914. static="false" final="false" visibility="public"
  12915. deprecated="not deprecated">
  12916. <param name="in" type="java.io.DataInput"/>
  12917. <exception name="IOException" type="java.io.IOException"/>
  12918. </method>
  12919. <method name="equals" return="boolean"
  12920. abstract="false" native="false" synchronized="false"
  12921. static="false" final="false" visibility="public"
  12922. deprecated="not deprecated">
  12923. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12924. </method>
  12925. <method name="hashCode" return="int"
  12926. abstract="false" native="false" synchronized="false"
  12927. static="false" final="false" visibility="public"
  12928. deprecated="not deprecated">
  12929. </method>
  12930. <method name="toString" return="java.lang.String"
  12931. abstract="false" native="false" synchronized="false"
  12932. static="false" final="false" visibility="public"
  12933. deprecated="not deprecated">
  12934. </method>
  12935. <doc>
  12936. <![CDATA[The class encapsulating with the metadata of a file.
  12937. The metadata of a file is a list of attribute name/value
  12938. pairs of Text type.]]>
  12939. </doc>
  12940. </class>
  12941. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  12942. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  12943. <class name="SequenceFile.Reader" extends="java.lang.Object"
  12944. abstract="false"
  12945. static="true" final="false" visibility="public"
  12946. deprecated="not deprecated">
  12947. <implements name="java.io.Closeable"/>
  12948. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  12949. static="false" final="false" visibility="public"
  12950. deprecated="not deprecated">
  12951. <exception name="IOException" type="java.io.IOException"/>
  12952. <doc>
  12953. <![CDATA[Open the named file.]]>
  12954. </doc>
  12955. </constructor>
  12956. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  12957. abstract="false" native="false" synchronized="false"
  12958. static="false" final="false" visibility="protected"
  12959. deprecated="not deprecated">
  12960. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12961. <param name="file" type="org.apache.hadoop.fs.Path"/>
  12962. <param name="bufferSize" type="int"/>
  12963. <param name="length" type="long"/>
  12964. <exception name="IOException" type="java.io.IOException"/>
  12965. <doc>
  12966. <![CDATA[Override this method to specialize the type of
  12967. {@link FSDataInputStream} returned.]]>
  12968. </doc>
  12969. </method>
  12970. <method name="close"
  12971. abstract="false" native="false" synchronized="true"
  12972. static="false" final="false" visibility="public"
  12973. deprecated="not deprecated">
  12974. <exception name="IOException" type="java.io.IOException"/>
  12975. <doc>
  12976. <![CDATA[Close the file.]]>
  12977. </doc>
  12978. </method>
  12979. <method name="getKeyClassName" return="java.lang.String"
  12980. abstract="false" native="false" synchronized="false"
  12981. static="false" final="false" visibility="public"
  12982. deprecated="not deprecated">
  12983. <doc>
  12984. <![CDATA[Returns the name of the key class.]]>
  12985. </doc>
  12986. </method>
  12987. <method name="getKeyClass" return="java.lang.Class"
  12988. abstract="false" native="false" synchronized="true"
  12989. static="false" final="false" visibility="public"
  12990. deprecated="not deprecated">
  12991. <doc>
  12992. <![CDATA[Returns the class of keys in this file.]]>
  12993. </doc>
  12994. </method>
  12995. <method name="getValueClassName" return="java.lang.String"
  12996. abstract="false" native="false" synchronized="false"
  12997. static="false" final="false" visibility="public"
  12998. deprecated="not deprecated">
  12999. <doc>
  13000. <![CDATA[Returns the name of the value class.]]>
  13001. </doc>
  13002. </method>
  13003. <method name="getValueClass" return="java.lang.Class"
  13004. abstract="false" native="false" synchronized="true"
  13005. static="false" final="false" visibility="public"
  13006. deprecated="not deprecated">
  13007. <doc>
  13008. <![CDATA[Returns the class of values in this file.]]>
  13009. </doc>
  13010. </method>
  13011. <method name="isCompressed" return="boolean"
  13012. abstract="false" native="false" synchronized="false"
  13013. static="false" final="false" visibility="public"
  13014. deprecated="not deprecated">
  13015. <doc>
  13016. <![CDATA[Returns true if values are compressed.]]>
  13017. </doc>
  13018. </method>
  13019. <method name="isBlockCompressed" return="boolean"
  13020. abstract="false" native="false" synchronized="false"
  13021. static="false" final="false" visibility="public"
  13022. deprecated="not deprecated">
  13023. <doc>
  13024. <![CDATA[Returns true if records are block-compressed.]]>
  13025. </doc>
  13026. </method>
  13027. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13028. abstract="false" native="false" synchronized="false"
  13029. static="false" final="false" visibility="public"
  13030. deprecated="not deprecated">
  13031. <doc>
  13032. <![CDATA[Returns the compression codec of data in this file.]]>
  13033. </doc>
  13034. </method>
  13035. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  13036. abstract="false" native="false" synchronized="false"
  13037. static="false" final="false" visibility="public"
  13038. deprecated="not deprecated">
  13039. <doc>
  13040. <![CDATA[Returns the metadata object of the file]]>
  13041. </doc>
  13042. </method>
  13043. <method name="getCurrentValue"
  13044. abstract="false" native="false" synchronized="true"
  13045. static="false" final="false" visibility="public"
  13046. deprecated="not deprecated">
  13047. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13048. <exception name="IOException" type="java.io.IOException"/>
  13049. <doc>
  13050. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13051. @param val : The 'value' to be read.
  13052. @throws IOException]]>
  13053. </doc>
  13054. </method>
  13055. <method name="getCurrentValue" return="java.lang.Object"
  13056. abstract="false" native="false" synchronized="true"
  13057. static="false" final="false" visibility="public"
  13058. deprecated="not deprecated">
  13059. <param name="val" type="java.lang.Object"/>
  13060. <exception name="IOException" type="java.io.IOException"/>
  13061. <doc>
  13062. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13063. @param val : The 'value' to be read.
  13064. @throws IOException]]>
  13065. </doc>
  13066. </method>
  13067. <method name="next" return="boolean"
  13068. abstract="false" native="false" synchronized="true"
  13069. static="false" final="false" visibility="public"
  13070. deprecated="not deprecated">
  13071. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13072. <exception name="IOException" type="java.io.IOException"/>
  13073. <doc>
  13074. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  13075. value. True if another entry exists, and false at end of file.]]>
  13076. </doc>
  13077. </method>
  13078. <method name="next" return="boolean"
  13079. abstract="false" native="false" synchronized="true"
  13080. static="false" final="false" visibility="public"
  13081. deprecated="not deprecated">
  13082. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13083. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13084. <exception name="IOException" type="java.io.IOException"/>
  13085. <doc>
  13086. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  13087. <code>val</code>. Returns true if such a pair exists and false when at
  13088. end of file]]>
  13089. </doc>
  13090. </method>
  13091. <method name="next" return="int"
  13092. abstract="false" native="false" synchronized="true"
  13093. static="false" final="false" visibility="public"
  13094. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  13095. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13096. <exception name="IOException" type="java.io.IOException"/>
  13097. <doc>
  13098. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  13099. </doc>
  13100. </method>
  13101. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13102. abstract="false" native="false" synchronized="false"
  13103. static="false" final="false" visibility="public"
  13104. deprecated="not deprecated">
  13105. </method>
  13106. <method name="nextRaw" return="int"
  13107. abstract="false" native="false" synchronized="true"
  13108. static="false" final="false" visibility="public"
  13109. deprecated="not deprecated">
  13110. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13111. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13112. <exception name="IOException" type="java.io.IOException"/>
  13113. <doc>
  13114. <![CDATA[Read 'raw' records.
  13115. @param key - The buffer into which the key is read
  13116. @param val - The 'raw' value
  13117. @return Returns the total record length or -1 for end of file
  13118. @throws IOException]]>
  13119. </doc>
  13120. </method>
  13121. <method name="nextRawKey" return="int"
  13122. abstract="false" native="false" synchronized="false"
  13123. static="false" final="false" visibility="public"
  13124. deprecated="not deprecated">
  13125. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13126. <exception name="IOException" type="java.io.IOException"/>
  13127. <doc>
  13128. <![CDATA[Read 'raw' keys.
  13129. @param key - The buffer into which the key is read
  13130. @return Returns the key length or -1 for end of file
  13131. @throws IOException]]>
  13132. </doc>
  13133. </method>
  13134. <method name="next" return="java.lang.Object"
  13135. abstract="false" native="false" synchronized="true"
  13136. static="false" final="false" visibility="public"
  13137. deprecated="not deprecated">
  13138. <param name="key" type="java.lang.Object"/>
  13139. <exception name="IOException" type="java.io.IOException"/>
  13140. <doc>
  13141. <![CDATA[Read the next key in the file, skipping its
  13142. value. Return null at end of file.]]>
  13143. </doc>
  13144. </method>
  13145. <method name="nextRawValue" return="int"
  13146. abstract="false" native="false" synchronized="true"
  13147. static="false" final="false" visibility="public"
  13148. deprecated="not deprecated">
  13149. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13150. <exception name="IOException" type="java.io.IOException"/>
  13151. <doc>
  13152. <![CDATA[Read 'raw' values.
  13153. @param val - The 'raw' value
  13154. @return Returns the value length
  13155. @throws IOException]]>
  13156. </doc>
  13157. </method>
  13158. <method name="seek"
  13159. abstract="false" native="false" synchronized="true"
  13160. static="false" final="false" visibility="public"
  13161. deprecated="not deprecated">
  13162. <param name="position" type="long"/>
  13163. <exception name="IOException" type="java.io.IOException"/>
  13164. <doc>
  13165. <![CDATA[Set the current byte position in the input file.
  13166. <p>The position passed must be a position returned by {@link
  13167. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  13168. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  13169. </doc>
  13170. </method>
  13171. <method name="sync"
  13172. abstract="false" native="false" synchronized="true"
  13173. static="false" final="false" visibility="public"
  13174. deprecated="not deprecated">
  13175. <param name="position" type="long"/>
  13176. <exception name="IOException" type="java.io.IOException"/>
  13177. <doc>
  13178. <![CDATA[Seek to the next sync mark past a given position.]]>
  13179. </doc>
  13180. </method>
  13181. <method name="syncSeen" return="boolean"
  13182. abstract="false" native="false" synchronized="false"
  13183. static="false" final="false" visibility="public"
  13184. deprecated="not deprecated">
  13185. <doc>
  13186. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  13187. </doc>
  13188. </method>
  13189. <method name="getPosition" return="long"
  13190. abstract="false" native="false" synchronized="true"
  13191. static="false" final="false" visibility="public"
  13192. deprecated="not deprecated">
  13193. <exception name="IOException" type="java.io.IOException"/>
  13194. <doc>
  13195. <![CDATA[Return the current byte position in the input file.]]>
  13196. </doc>
  13197. </method>
  13198. <method name="toString" return="java.lang.String"
  13199. abstract="false" native="false" synchronized="false"
  13200. static="false" final="false" visibility="public"
  13201. deprecated="not deprecated">
  13202. <doc>
  13203. <![CDATA[Returns the name of the file.]]>
  13204. </doc>
  13205. </method>
  13206. <doc>
  13207. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  13208. </doc>
  13209. </class>
  13210. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  13211. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  13212. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  13213. abstract="false"
  13214. static="true" final="false" visibility="public"
  13215. deprecated="not deprecated">
  13216. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  13217. static="false" final="false" visibility="public"
  13218. deprecated="not deprecated">
  13219. <doc>
  13220. <![CDATA[Sort and merge files containing the named classes.]]>
  13221. </doc>
  13222. </constructor>
  13223. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  13224. static="false" final="false" visibility="public"
  13225. deprecated="not deprecated">
  13226. <doc>
  13227. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  13228. </doc>
  13229. </constructor>
  13230. <method name="setFactor"
  13231. abstract="false" native="false" synchronized="false"
  13232. static="false" final="false" visibility="public"
  13233. deprecated="not deprecated">
  13234. <param name="factor" type="int"/>
  13235. <doc>
  13236. <![CDATA[Set the number of streams to merge at once.]]>
  13237. </doc>
  13238. </method>
  13239. <method name="getFactor" return="int"
  13240. abstract="false" native="false" synchronized="false"
  13241. static="false" final="false" visibility="public"
  13242. deprecated="not deprecated">
  13243. <doc>
  13244. <![CDATA[Get the number of streams to merge at once.]]>
  13245. </doc>
  13246. </method>
  13247. <method name="setMemory"
  13248. abstract="false" native="false" synchronized="false"
  13249. static="false" final="false" visibility="public"
  13250. deprecated="not deprecated">
  13251. <param name="memory" type="int"/>
  13252. <doc>
  13253. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  13254. </doc>
  13255. </method>
  13256. <method name="getMemory" return="int"
  13257. abstract="false" native="false" synchronized="false"
  13258. static="false" final="false" visibility="public"
  13259. deprecated="not deprecated">
  13260. <doc>
  13261. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  13262. </doc>
  13263. </method>
  13264. <method name="setProgressable"
  13265. abstract="false" native="false" synchronized="false"
  13266. static="false" final="false" visibility="public"
  13267. deprecated="not deprecated">
  13268. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  13269. <doc>
  13270. <![CDATA[Set the progressable object in order to report progress.]]>
  13271. </doc>
  13272. </method>
  13273. <method name="sort"
  13274. abstract="false" native="false" synchronized="false"
  13275. static="false" final="false" visibility="public"
  13276. deprecated="not deprecated">
  13277. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13278. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13279. <param name="deleteInput" type="boolean"/>
  13280. <exception name="IOException" type="java.io.IOException"/>
  13281. <doc>
  13282. <![CDATA[Perform a file sort from a set of input files into an output file.
  13283. @param inFiles the files to be sorted
  13284. @param outFile the sorted output file
  13285. @param deleteInput should the input files be deleted as they are read?]]>
  13286. </doc>
  13287. </method>
  13288. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13289. abstract="false" native="false" synchronized="false"
  13290. static="false" final="false" visibility="public"
  13291. deprecated="not deprecated">
  13292. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13293. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13294. <param name="deleteInput" type="boolean"/>
  13295. <exception name="IOException" type="java.io.IOException"/>
  13296. <doc>
  13297. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  13298. @param inFiles the files to be sorted
  13299. @param tempDir the directory where temp files are created during sort
  13300. @param deleteInput should the input files be deleted as they are read?
  13301. @return iterator the RawKeyValueIterator]]>
  13302. </doc>
  13303. </method>
  13304. <method name="sort"
  13305. abstract="false" native="false" synchronized="false"
  13306. static="false" final="false" visibility="public"
  13307. deprecated="not deprecated">
  13308. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  13309. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13310. <exception name="IOException" type="java.io.IOException"/>
  13311. <doc>
  13312. <![CDATA[The backwards compatible interface to sort.
  13313. @param inFile the input file to sort
  13314. @param outFile the sorted output file]]>
  13315. </doc>
  13316. </method>
  13317. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13318. abstract="false" native="false" synchronized="false"
  13319. static="false" final="false" visibility="public"
  13320. deprecated="not deprecated">
  13321. <param name="segments" type="java.util.List"/>
  13322. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13323. <exception name="IOException" type="java.io.IOException"/>
  13324. <doc>
  13325. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  13326. @param segments the list of SegmentDescriptors
  13327. @param tmpDir the directory to write temporary files into
  13328. @return RawKeyValueIterator
  13329. @throws IOException]]>
  13330. </doc>
  13331. </method>
  13332. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13333. abstract="false" native="false" synchronized="false"
  13334. static="false" final="false" visibility="public"
  13335. deprecated="not deprecated">
  13336. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13337. <param name="deleteInputs" type="boolean"/>
  13338. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13339. <exception name="IOException" type="java.io.IOException"/>
  13340. <doc>
  13341. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  13342. that is already set
  13343. @param inNames the array of path names
  13344. @param deleteInputs true if the input files should be deleted when
  13345. unnecessary
  13346. @param tmpDir the directory to write temporary files into
  13347. @return RawKeyValueIteratorMergeQueue
  13348. @throws IOException]]>
  13349. </doc>
  13350. </method>
  13351. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13352. abstract="false" native="false" synchronized="false"
  13353. static="false" final="false" visibility="public"
  13354. deprecated="not deprecated">
  13355. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13356. <param name="deleteInputs" type="boolean"/>
  13357. <param name="factor" type="int"/>
  13358. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13359. <exception name="IOException" type="java.io.IOException"/>
  13360. <doc>
  13361. <![CDATA[Merges the contents of files passed in Path[]
  13362. @param inNames the array of path names
  13363. @param deleteInputs true if the input files should be deleted when
  13364. unnecessary
  13365. @param factor the factor that will be used as the maximum merge fan-in
  13366. @param tmpDir the directory to write temporary files into
  13367. @return RawKeyValueIteratorMergeQueue
  13368. @throws IOException]]>
  13369. </doc>
  13370. </method>
  13371. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13372. abstract="false" native="false" synchronized="false"
  13373. static="false" final="false" visibility="public"
  13374. deprecated="not deprecated">
  13375. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13376. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13377. <param name="deleteInputs" type="boolean"/>
  13378. <exception name="IOException" type="java.io.IOException"/>
  13379. <doc>
  13380. <![CDATA[Merges the contents of files passed in Path[]
  13381. @param inNames the array of path names
  13382. @param tempDir the directory for creating temp files during merge
  13383. @param deleteInputs true if the input files should be deleted when
  13384. unnecessary
  13385. @return RawKeyValueIteratorMergeQueue
  13386. @throws IOException]]>
  13387. </doc>
  13388. </method>
  13389. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  13390. abstract="false" native="false" synchronized="false"
  13391. static="false" final="false" visibility="public"
  13392. deprecated="not deprecated">
  13393. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  13394. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  13395. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  13396. <exception name="IOException" type="java.io.IOException"/>
  13397. <doc>
  13398. <![CDATA[Clones the attributes (like compression of the input file and creates a
  13399. corresponding Writer
  13400. @param inputFile the path of the input file whose attributes should be
  13401. cloned
  13402. @param outputFile the path of the output file
  13403. @param prog the Progressable to report status during the file write
  13404. @return Writer
  13405. @throws IOException]]>
  13406. </doc>
  13407. </method>
  13408. <method name="writeFile"
  13409. abstract="false" native="false" synchronized="false"
  13410. static="false" final="false" visibility="public"
  13411. deprecated="not deprecated">
  13412. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  13413. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  13414. <exception name="IOException" type="java.io.IOException"/>
  13415. <doc>
  13416. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  13417. passed writer
  13418. @param records the RawKeyValueIterator
  13419. @param writer the Writer created earlier
  13420. @throws IOException]]>
  13421. </doc>
  13422. </method>
  13423. <method name="merge"
  13424. abstract="false" native="false" synchronized="false"
  13425. static="false" final="false" visibility="public"
  13426. deprecated="not deprecated">
  13427. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13428. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13429. <exception name="IOException" type="java.io.IOException"/>
  13430. <doc>
  13431. <![CDATA[Merge the provided files.
  13432. @param inFiles the array of input path names
  13433. @param outFile the final output file
  13434. @throws IOException]]>
  13435. </doc>
  13436. </method>
  13437. <doc>
  13438. <![CDATA[Sorts key/value pairs in a sequence-format file.
  13439. <p>For best performance, applications should make sure that the {@link
  13440. Writable#readFields(DataInput)} implementation of their keys is
  13441. very efficient. In particular, it should avoid allocating memory.]]>
  13442. </doc>
  13443. </class>
  13444. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  13445. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13446. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  13447. static="true" final="false" visibility="public"
  13448. deprecated="not deprecated">
  13449. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13450. abstract="false" native="false" synchronized="false"
  13451. static="false" final="false" visibility="public"
  13452. deprecated="not deprecated">
  13453. <exception name="IOException" type="java.io.IOException"/>
  13454. <doc>
  13455. <![CDATA[Gets the current raw key
  13456. @return DataOutputBuffer
  13457. @throws IOException]]>
  13458. </doc>
  13459. </method>
  13460. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13461. abstract="false" native="false" synchronized="false"
  13462. static="false" final="false" visibility="public"
  13463. deprecated="not deprecated">
  13464. <exception name="IOException" type="java.io.IOException"/>
  13465. <doc>
  13466. <![CDATA[Gets the current raw value
  13467. @return ValueBytes
  13468. @throws IOException]]>
  13469. </doc>
  13470. </method>
  13471. <method name="next" return="boolean"
  13472. abstract="false" native="false" synchronized="false"
  13473. static="false" final="false" visibility="public"
  13474. deprecated="not deprecated">
  13475. <exception name="IOException" type="java.io.IOException"/>
  13476. <doc>
  13477. <![CDATA[Sets up the current key and value (for getKey and getValue)
  13478. @return true if there exists a key/value, false otherwise
  13479. @throws IOException]]>
  13480. </doc>
  13481. </method>
  13482. <method name="close"
  13483. abstract="false" native="false" synchronized="false"
  13484. static="false" final="false" visibility="public"
  13485. deprecated="not deprecated">
  13486. <exception name="IOException" type="java.io.IOException"/>
  13487. <doc>
  13488. <![CDATA[closes the iterator so that the underlying streams can be closed
  13489. @throws IOException]]>
  13490. </doc>
  13491. </method>
  13492. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  13493. abstract="false" native="false" synchronized="false"
  13494. static="false" final="false" visibility="public"
  13495. deprecated="not deprecated">
  13496. <doc>
  13497. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  13498. indicating the bytes processed by the iterator so far]]>
  13499. </doc>
  13500. </method>
  13501. <doc>
  13502. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  13503. </doc>
  13504. </interface>
  13505. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13506. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  13507. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  13508. abstract="false"
  13509. static="false" final="false" visibility="public"
  13510. deprecated="not deprecated">
  13511. <implements name="java.lang.Comparable"/>
  13512. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  13513. static="false" final="false" visibility="public"
  13514. deprecated="not deprecated">
  13515. <doc>
  13516. <![CDATA[Constructs a segment
  13517. @param segmentOffset the offset of the segment in the file
  13518. @param segmentLength the length of the segment
  13519. @param segmentPathName the path name of the file containing the segment]]>
  13520. </doc>
  13521. </constructor>
  13522. <method name="doSync"
  13523. abstract="false" native="false" synchronized="false"
  13524. static="false" final="false" visibility="public"
  13525. deprecated="not deprecated">
  13526. <doc>
  13527. <![CDATA[Do the sync checks]]>
  13528. </doc>
  13529. </method>
  13530. <method name="preserveInput"
  13531. abstract="false" native="false" synchronized="false"
  13532. static="false" final="false" visibility="public"
  13533. deprecated="not deprecated">
  13534. <param name="preserve" type="boolean"/>
  13535. <doc>
  13536. <![CDATA[Whether to delete the files when no longer needed]]>
  13537. </doc>
  13538. </method>
  13539. <method name="shouldPreserveInput" return="boolean"
  13540. abstract="false" native="false" synchronized="false"
  13541. static="false" final="false" visibility="public"
  13542. deprecated="not deprecated">
  13543. </method>
  13544. <method name="compareTo" return="int"
  13545. abstract="false" native="false" synchronized="false"
  13546. static="false" final="false" visibility="public"
  13547. deprecated="not deprecated">
  13548. <param name="o" type="java.lang.Object"/>
  13549. </method>
  13550. <method name="equals" return="boolean"
  13551. abstract="false" native="false" synchronized="false"
  13552. static="false" final="false" visibility="public"
  13553. deprecated="not deprecated">
  13554. <param name="o" type="java.lang.Object"/>
  13555. </method>
  13556. <method name="hashCode" return="int"
  13557. abstract="false" native="false" synchronized="false"
  13558. static="false" final="false" visibility="public"
  13559. deprecated="not deprecated">
  13560. </method>
  13561. <method name="nextRawKey" return="boolean"
  13562. abstract="false" native="false" synchronized="false"
  13563. static="false" final="false" visibility="public"
  13564. deprecated="not deprecated">
  13565. <exception name="IOException" type="java.io.IOException"/>
  13566. <doc>
  13567. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  13568. @return true if there is a key returned; false, otherwise
  13569. @throws IOException]]>
  13570. </doc>
  13571. </method>
  13572. <method name="nextRawValue" return="int"
  13573. abstract="false" native="false" synchronized="false"
  13574. static="false" final="false" visibility="public"
  13575. deprecated="not deprecated">
  13576. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13577. <exception name="IOException" type="java.io.IOException"/>
  13578. <doc>
  13579. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  13580. read earlier
  13581. @param rawValue
  13582. @return the length of the value
  13583. @throws IOException]]>
  13584. </doc>
  13585. </method>
  13586. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13587. abstract="false" native="false" synchronized="false"
  13588. static="false" final="false" visibility="public"
  13589. deprecated="not deprecated">
  13590. <doc>
  13591. <![CDATA[Returns the stored rawKey]]>
  13592. </doc>
  13593. </method>
  13594. <method name="cleanup"
  13595. abstract="false" native="false" synchronized="false"
  13596. static="false" final="false" visibility="public"
  13597. deprecated="not deprecated">
  13598. <exception name="IOException" type="java.io.IOException"/>
  13599. <doc>
  13600. <![CDATA[The default cleanup. Subclasses can override this with a custom
  13601. cleanup]]>
  13602. </doc>
  13603. </method>
  13604. <doc>
  13605. <![CDATA[This class defines a merge segment. This class can be subclassed to
  13606. provide a customized cleanup method implementation. In this
  13607. implementation, cleanup closes the file handle and deletes the file]]>
  13608. </doc>
  13609. </class>
  13610. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  13611. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  13612. <interface name="SequenceFile.ValueBytes" abstract="true"
  13613. static="true" final="false" visibility="public"
  13614. deprecated="not deprecated">
  13615. <method name="writeUncompressedBytes"
  13616. abstract="false" native="false" synchronized="false"
  13617. static="false" final="false" visibility="public"
  13618. deprecated="not deprecated">
  13619. <param name="outStream" type="java.io.DataOutputStream"/>
  13620. <exception name="IOException" type="java.io.IOException"/>
  13621. <doc>
  13622. <![CDATA[Writes the uncompressed bytes to the outStream.
  13623. @param outStream : Stream to write uncompressed bytes into.
  13624. @throws IOException]]>
  13625. </doc>
  13626. </method>
  13627. <method name="writeCompressedBytes"
  13628. abstract="false" native="false" synchronized="false"
  13629. static="false" final="false" visibility="public"
  13630. deprecated="not deprecated">
  13631. <param name="outStream" type="java.io.DataOutputStream"/>
  13632. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  13633. <exception name="IOException" type="java.io.IOException"/>
  13634. <doc>
  13635. <![CDATA[Write compressed bytes to outStream.
  13636. Note: that it will NOT compress the bytes if they are not compressed.
  13637. @param outStream : Stream to write compressed bytes into.]]>
  13638. </doc>
  13639. </method>
  13640. <method name="getSize" return="int"
  13641. abstract="false" native="false" synchronized="false"
  13642. static="false" final="false" visibility="public"
  13643. deprecated="not deprecated">
  13644. <doc>
  13645. <![CDATA[Size of stored data.]]>
  13646. </doc>
  13647. </method>
  13648. <doc>
  13649. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  13650. </doc>
  13651. </interface>
  13652. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  13653. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  13654. <class name="SequenceFile.Writer" extends="java.lang.Object"
  13655. abstract="false"
  13656. static="true" final="false" visibility="public"
  13657. deprecated="not deprecated">
  13658. <implements name="java.io.Closeable"/>
  13659. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class"
  13660. static="false" final="false" visibility="public"
  13661. deprecated="not deprecated">
  13662. <exception name="IOException" type="java.io.IOException"/>
  13663. <doc>
  13664. <![CDATA[Create the named file.]]>
  13665. </doc>
  13666. </constructor>
  13667. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata"
  13668. static="false" final="false" visibility="public"
  13669. deprecated="not deprecated">
  13670. <exception name="IOException" type="java.io.IOException"/>
  13671. <doc>
  13672. <![CDATA[Create the named file with write-progress reporter.]]>
  13673. </doc>
  13674. </constructor>
  13675. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, int, short, long, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata"
  13676. static="false" final="false" visibility="public"
  13677. deprecated="not deprecated">
  13678. <exception name="IOException" type="java.io.IOException"/>
  13679. <doc>
  13680. <![CDATA[Create the named file with write-progress reporter.]]>
  13681. </doc>
  13682. </constructor>
  13683. <method name="getKeyClass" return="java.lang.Class"
  13684. abstract="false" native="false" synchronized="false"
  13685. static="false" final="false" visibility="public"
  13686. deprecated="not deprecated">
  13687. <doc>
  13688. <![CDATA[Returns the class of keys in this file.]]>
  13689. </doc>
  13690. </method>
  13691. <method name="getValueClass" return="java.lang.Class"
  13692. abstract="false" native="false" synchronized="false"
  13693. static="false" final="false" visibility="public"
  13694. deprecated="not deprecated">
  13695. <doc>
  13696. <![CDATA[Returns the class of values in this file.]]>
  13697. </doc>
  13698. </method>
  13699. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13700. abstract="false" native="false" synchronized="false"
  13701. static="false" final="false" visibility="public"
  13702. deprecated="not deprecated">
  13703. <doc>
  13704. <![CDATA[Returns the compression codec of data in this file.]]>
  13705. </doc>
  13706. </method>
  13707. <method name="sync"
  13708. abstract="false" native="false" synchronized="false"
  13709. static="false" final="false" visibility="public"
  13710. deprecated="not deprecated">
  13711. <exception name="IOException" type="java.io.IOException"/>
  13712. <doc>
  13713. <![CDATA[create a sync point]]>
  13714. </doc>
  13715. </method>
  13716. <method name="syncFs"
  13717. abstract="false" native="false" synchronized="false"
  13718. static="false" final="false" visibility="public"
  13719. deprecated="not deprecated">
  13720. <exception name="IOException" type="java.io.IOException"/>
  13721. <doc>
  13722. <![CDATA[flush all currently written data to the file system]]>
  13723. </doc>
  13724. </method>
  13725. <method name="close"
  13726. abstract="false" native="false" synchronized="true"
  13727. static="false" final="false" visibility="public"
  13728. deprecated="not deprecated">
  13729. <exception name="IOException" type="java.io.IOException"/>
  13730. <doc>
  13731. <![CDATA[Close the file.]]>
  13732. </doc>
  13733. </method>
  13734. <method name="append"
  13735. abstract="false" native="false" synchronized="true"
  13736. static="false" final="false" visibility="public"
  13737. deprecated="not deprecated">
  13738. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13739. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13740. <exception name="IOException" type="java.io.IOException"/>
  13741. <doc>
  13742. <![CDATA[Append a key/value pair.]]>
  13743. </doc>
  13744. </method>
  13745. <method name="append"
  13746. abstract="false" native="false" synchronized="true"
  13747. static="false" final="false" visibility="public"
  13748. deprecated="not deprecated">
  13749. <param name="key" type="java.lang.Object"/>
  13750. <param name="val" type="java.lang.Object"/>
  13751. <exception name="IOException" type="java.io.IOException"/>
  13752. <doc>
  13753. <![CDATA[Append a key/value pair.]]>
  13754. </doc>
  13755. </method>
  13756. <method name="appendRaw"
  13757. abstract="false" native="false" synchronized="true"
  13758. static="false" final="false" visibility="public"
  13759. deprecated="not deprecated">
  13760. <param name="keyData" type="byte[]"/>
  13761. <param name="keyOffset" type="int"/>
  13762. <param name="keyLength" type="int"/>
  13763. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13764. <exception name="IOException" type="java.io.IOException"/>
  13765. </method>
  13766. <method name="getLength" return="long"
  13767. abstract="false" native="false" synchronized="true"
  13768. static="false" final="false" visibility="public"
  13769. deprecated="not deprecated">
  13770. <exception name="IOException" type="java.io.IOException"/>
  13771. <doc>
  13772. <![CDATA[Returns the current length of the output file.
  13773. <p>This always returns a synchronized position. In other words,
  13774. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  13775. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  13776. the key may be earlier in the file than key last written when this
  13777. method was called (e.g., with block-compression, it may be the first key
  13778. in the block that was being written when this method was called).]]>
  13779. </doc>
  13780. </method>
  13781. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13782. transient="false" volatile="false"
  13783. static="false" final="false" visibility="protected"
  13784. deprecated="not deprecated">
  13785. </field>
  13786. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13787. transient="false" volatile="false"
  13788. static="false" final="false" visibility="protected"
  13789. deprecated="not deprecated">
  13790. </field>
  13791. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13792. transient="false" volatile="false"
  13793. static="false" final="false" visibility="protected"
  13794. deprecated="not deprecated">
  13795. </field>
  13796. <doc>
  13797. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  13798. </doc>
  13799. </class>
  13800. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  13801. <!-- start class org.apache.hadoop.io.SetFile -->
  13802. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  13803. abstract="false"
  13804. static="false" final="false" visibility="public"
  13805. deprecated="not deprecated">
  13806. <constructor name="SetFile"
  13807. static="false" final="false" visibility="protected"
  13808. deprecated="not deprecated">
  13809. </constructor>
  13810. <doc>
  13811. <![CDATA[A file-based set of keys.]]>
  13812. </doc>
  13813. </class>
  13814. <!-- end class org.apache.hadoop.io.SetFile -->
  13815. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  13816. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  13817. abstract="false"
  13818. static="true" final="false" visibility="public"
  13819. deprecated="not deprecated">
  13820. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  13821. static="false" final="false" visibility="public"
  13822. deprecated="not deprecated">
  13823. <exception name="IOException" type="java.io.IOException"/>
  13824. <doc>
  13825. <![CDATA[Construct a set reader for the named set.]]>
  13826. </doc>
  13827. </constructor>
  13828. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  13829. static="false" final="false" visibility="public"
  13830. deprecated="not deprecated">
  13831. <exception name="IOException" type="java.io.IOException"/>
  13832. <doc>
  13833. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  13834. </doc>
  13835. </constructor>
  13836. <method name="seek" return="boolean"
  13837. abstract="false" native="false" synchronized="false"
  13838. static="false" final="false" visibility="public"
  13839. deprecated="not deprecated">
  13840. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13841. <exception name="IOException" type="java.io.IOException"/>
  13842. </method>
  13843. <method name="next" return="boolean"
  13844. abstract="false" native="false" synchronized="false"
  13845. static="false" final="false" visibility="public"
  13846. deprecated="not deprecated">
  13847. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13848. <exception name="IOException" type="java.io.IOException"/>
  13849. <doc>
  13850. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  13851. true if such a key exists and false when at the end of the set.]]>
  13852. </doc>
  13853. </method>
  13854. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  13855. abstract="false" native="false" synchronized="false"
  13856. static="false" final="false" visibility="public"
  13857. deprecated="not deprecated">
  13858. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13859. <exception name="IOException" type="java.io.IOException"/>
  13860. <doc>
  13861. <![CDATA[Read the matching key from a set into <code>key</code>.
  13862. Returns <code>key</code>, or null if no match exists.]]>
  13863. </doc>
  13864. </method>
  13865. <doc>
  13866. <![CDATA[Provide access to an existing set file.]]>
  13867. </doc>
  13868. </class>
  13869. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  13870. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  13871. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  13872. abstract="false"
  13873. static="true" final="false" visibility="public"
  13874. deprecated="not deprecated">
  13875. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  13876. static="false" final="false" visibility="public"
  13877. deprecated="pass a Configuration too">
  13878. <exception name="IOException" type="java.io.IOException"/>
  13879. <doc>
  13880. <![CDATA[Create the named set for keys of the named class.
  13881. @deprecated pass a Configuration too]]>
  13882. </doc>
  13883. </constructor>
  13884. <constructor name="SetFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  13885. static="false" final="false" visibility="public"
  13886. deprecated="not deprecated">
  13887. <exception name="IOException" type="java.io.IOException"/>
  13888. <doc>
  13889. <![CDATA[Create a set naming the element class and compression type.]]>
  13890. </doc>
  13891. </constructor>
  13892. <constructor name="SetFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.io.SequenceFile.CompressionType"
  13893. static="false" final="false" visibility="public"
  13894. deprecated="not deprecated">
  13895. <exception name="IOException" type="java.io.IOException"/>
  13896. <doc>
  13897. <![CDATA[Create a set naming the element comparator and compression type.]]>
  13898. </doc>
  13899. </constructor>
  13900. <method name="append"
  13901. abstract="false" native="false" synchronized="false"
  13902. static="false" final="false" visibility="public"
  13903. deprecated="not deprecated">
  13904. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13905. <exception name="IOException" type="java.io.IOException"/>
  13906. <doc>
  13907. <![CDATA[Append a key to a set. The key must be strictly greater than the
  13908. previous key added to the set.]]>
  13909. </doc>
  13910. </method>
  13911. <doc>
  13912. <![CDATA[Write a new set file.]]>
  13913. </doc>
  13914. </class>
  13915. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  13916. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  13917. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  13918. abstract="false"
  13919. static="false" final="false" visibility="public"
  13920. deprecated="not deprecated">
  13921. <implements name="java.util.SortedMap"/>
  13922. <constructor name="SortedMapWritable"
  13923. static="false" final="false" visibility="public"
  13924. deprecated="not deprecated">
  13925. <doc>
  13926. <![CDATA[default constructor.]]>
  13927. </doc>
  13928. </constructor>
  13929. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  13930. static="false" final="false" visibility="public"
  13931. deprecated="not deprecated">
  13932. <doc>
  13933. <![CDATA[Copy constructor.
  13934. @param other the map to copy from]]>
  13935. </doc>
  13936. </constructor>
  13937. <method name="comparator" return="java.util.Comparator"
  13938. abstract="false" native="false" synchronized="false"
  13939. static="false" final="false" visibility="public"
  13940. deprecated="not deprecated">
  13941. <doc>
  13942. <![CDATA[{@inheritDoc}]]>
  13943. </doc>
  13944. </method>
  13945. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  13946. abstract="false" native="false" synchronized="false"
  13947. static="false" final="false" visibility="public"
  13948. deprecated="not deprecated">
  13949. <doc>
  13950. <![CDATA[{@inheritDoc}]]>
  13951. </doc>
  13952. </method>
  13953. <method name="headMap" return="java.util.SortedMap"
  13954. abstract="false" native="false" synchronized="false"
  13955. static="false" final="false" visibility="public"
  13956. deprecated="not deprecated">
  13957. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  13958. <doc>
  13959. <![CDATA[{@inheritDoc}]]>
  13960. </doc>
  13961. </method>
  13962. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  13963. abstract="false" native="false" synchronized="false"
  13964. static="false" final="false" visibility="public"
  13965. deprecated="not deprecated">
  13966. <doc>
  13967. <![CDATA[{@inheritDoc}]]>
  13968. </doc>
  13969. </method>
  13970. <method name="subMap" return="java.util.SortedMap"
  13971. abstract="false" native="false" synchronized="false"
  13972. static="false" final="false" visibility="public"
  13973. deprecated="not deprecated">
  13974. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  13975. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  13976. <doc>
  13977. <![CDATA[{@inheritDoc}]]>
  13978. </doc>
  13979. </method>
  13980. <method name="tailMap" return="java.util.SortedMap"
  13981. abstract="false" native="false" synchronized="false"
  13982. static="false" final="false" visibility="public"
  13983. deprecated="not deprecated">
  13984. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  13985. <doc>
  13986. <![CDATA[{@inheritDoc}]]>
  13987. </doc>
  13988. </method>
  13989. <method name="clear"
  13990. abstract="false" native="false" synchronized="false"
  13991. static="false" final="false" visibility="public"
  13992. deprecated="not deprecated">
  13993. <doc>
  13994. <![CDATA[{@inheritDoc}]]>
  13995. </doc>
  13996. </method>
  13997. <method name="containsKey" return="boolean"
  13998. abstract="false" native="false" synchronized="false"
  13999. static="false" final="false" visibility="public"
  14000. deprecated="not deprecated">
  14001. <param name="key" type="java.lang.Object"/>
  14002. <doc>
  14003. <![CDATA[{@inheritDoc}]]>
  14004. </doc>
  14005. </method>
  14006. <method name="containsValue" return="boolean"
  14007. abstract="false" native="false" synchronized="false"
  14008. static="false" final="false" visibility="public"
  14009. deprecated="not deprecated">
  14010. <param name="value" type="java.lang.Object"/>
  14011. <doc>
  14012. <![CDATA[{@inheritDoc}]]>
  14013. </doc>
  14014. </method>
  14015. <method name="entrySet" return="java.util.Set"
  14016. abstract="false" native="false" synchronized="false"
  14017. static="false" final="false" visibility="public"
  14018. deprecated="not deprecated">
  14019. <doc>
  14020. <![CDATA[{@inheritDoc}]]>
  14021. </doc>
  14022. </method>
  14023. <method name="get" return="org.apache.hadoop.io.Writable"
  14024. abstract="false" native="false" synchronized="false"
  14025. static="false" final="false" visibility="public"
  14026. deprecated="not deprecated">
  14027. <param name="key" type="java.lang.Object"/>
  14028. <doc>
  14029. <![CDATA[{@inheritDoc}]]>
  14030. </doc>
  14031. </method>
  14032. <method name="isEmpty" return="boolean"
  14033. abstract="false" native="false" synchronized="false"
  14034. static="false" final="false" visibility="public"
  14035. deprecated="not deprecated">
  14036. <doc>
  14037. <![CDATA[{@inheritDoc}]]>
  14038. </doc>
  14039. </method>
  14040. <method name="keySet" return="java.util.Set"
  14041. abstract="false" native="false" synchronized="false"
  14042. static="false" final="false" visibility="public"
  14043. deprecated="not deprecated">
  14044. <doc>
  14045. <![CDATA[{@inheritDoc}]]>
  14046. </doc>
  14047. </method>
  14048. <method name="put" return="org.apache.hadoop.io.Writable"
  14049. abstract="false" native="false" synchronized="false"
  14050. static="false" final="false" visibility="public"
  14051. deprecated="not deprecated">
  14052. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14053. <param name="value" type="org.apache.hadoop.io.Writable"/>
  14054. <doc>
  14055. <![CDATA[{@inheritDoc}]]>
  14056. </doc>
  14057. </method>
  14058. <method name="putAll"
  14059. abstract="false" native="false" synchronized="false"
  14060. static="false" final="false" visibility="public"
  14061. deprecated="not deprecated">
  14062. <param name="t" type="java.util.Map"/>
  14063. <doc>
  14064. <![CDATA[{@inheritDoc}]]>
  14065. </doc>
  14066. </method>
  14067. <method name="remove" return="org.apache.hadoop.io.Writable"
  14068. abstract="false" native="false" synchronized="false"
  14069. static="false" final="false" visibility="public"
  14070. deprecated="not deprecated">
  14071. <param name="key" type="java.lang.Object"/>
  14072. <doc>
  14073. <![CDATA[{@inheritDoc}]]>
  14074. </doc>
  14075. </method>
  14076. <method name="size" return="int"
  14077. abstract="false" native="false" synchronized="false"
  14078. static="false" final="false" visibility="public"
  14079. deprecated="not deprecated">
  14080. <doc>
  14081. <![CDATA[{@inheritDoc}]]>
  14082. </doc>
  14083. </method>
  14084. <method name="values" return="java.util.Collection"
  14085. abstract="false" native="false" synchronized="false"
  14086. static="false" final="false" visibility="public"
  14087. deprecated="not deprecated">
  14088. <doc>
  14089. <![CDATA[{@inheritDoc}]]>
  14090. </doc>
  14091. </method>
  14092. <method name="readFields"
  14093. abstract="false" native="false" synchronized="false"
  14094. static="false" final="false" visibility="public"
  14095. deprecated="not deprecated">
  14096. <param name="in" type="java.io.DataInput"/>
  14097. <exception name="IOException" type="java.io.IOException"/>
  14098. <doc>
  14099. <![CDATA[{@inheritDoc}]]>
  14100. </doc>
  14101. </method>
  14102. <method name="write"
  14103. abstract="false" native="false" synchronized="false"
  14104. static="false" final="false" visibility="public"
  14105. deprecated="not deprecated">
  14106. <param name="out" type="java.io.DataOutput"/>
  14107. <exception name="IOException" type="java.io.IOException"/>
  14108. <doc>
  14109. <![CDATA[{@inheritDoc}]]>
  14110. </doc>
  14111. </method>
  14112. <doc>
  14113. <![CDATA[A Writable SortedMap.]]>
  14114. </doc>
  14115. </class>
  14116. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  14117. <!-- start interface org.apache.hadoop.io.Stringifier -->
  14118. <interface name="Stringifier" abstract="true"
  14119. static="false" final="false" visibility="public"
  14120. deprecated="not deprecated">
  14121. <implements name="java.io.Closeable"/>
  14122. <method name="toString" return="java.lang.String"
  14123. abstract="false" native="false" synchronized="false"
  14124. static="false" final="false" visibility="public"
  14125. deprecated="not deprecated">
  14126. <param name="obj" type="java.lang.Object"/>
  14127. <exception name="IOException" type="java.io.IOException"/>
  14128. <doc>
  14129. <![CDATA[Converts the object to a string representation
  14130. @param obj the object to convert
  14131. @return the string representation of the object
  14132. @throws IOException if the object cannot be converted]]>
  14133. </doc>
  14134. </method>
  14135. <method name="fromString" return="java.lang.Object"
  14136. abstract="false" native="false" synchronized="false"
  14137. static="false" final="false" visibility="public"
  14138. deprecated="not deprecated">
  14139. <param name="str" type="java.lang.String"/>
  14140. <exception name="IOException" type="java.io.IOException"/>
  14141. <doc>
  14142. <![CDATA[Restores the object from its string representation.
  14143. @param str the string representation of the object
  14144. @return restored object
  14145. @throws IOException if the object cannot be restored]]>
  14146. </doc>
  14147. </method>
  14148. <method name="close"
  14149. abstract="false" native="false" synchronized="false"
  14150. static="false" final="false" visibility="public"
  14151. deprecated="not deprecated">
  14152. <exception name="IOException" type="java.io.IOException"/>
  14153. <doc>
  14154. <![CDATA[Closes this object.
  14155. @throws IOException if an I/O error occurs]]>
  14156. </doc>
  14157. </method>
  14158. <doc>
  14159. <![CDATA[Stringifier interface offers two methods to convert an object
  14160. to a string representation and restore the object given its
  14161. string representation.
  14162. @param <T> the class of the objects to stringify]]>
  14163. </doc>
  14164. </interface>
  14165. <!-- end interface org.apache.hadoop.io.Stringifier -->
  14166. <!-- start class org.apache.hadoop.io.Text -->
  14167. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  14168. abstract="false"
  14169. static="false" final="false" visibility="public"
  14170. deprecated="not deprecated">
  14171. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14172. <constructor name="Text"
  14173. static="false" final="false" visibility="public"
  14174. deprecated="not deprecated">
  14175. </constructor>
  14176. <constructor name="Text" type="java.lang.String"
  14177. static="false" final="false" visibility="public"
  14178. deprecated="not deprecated">
  14179. <doc>
  14180. <![CDATA[Construct from a string.]]>
  14181. </doc>
  14182. </constructor>
  14183. <constructor name="Text" type="org.apache.hadoop.io.Text"
  14184. static="false" final="false" visibility="public"
  14185. deprecated="not deprecated">
  14186. <doc>
  14187. <![CDATA[Construct from another text.]]>
  14188. </doc>
  14189. </constructor>
  14190. <constructor name="Text" type="byte[]"
  14191. static="false" final="false" visibility="public"
  14192. deprecated="not deprecated">
  14193. <doc>
  14194. <![CDATA[Construct from a byte array.]]>
  14195. </doc>
  14196. </constructor>
  14197. <method name="getBytes" return="byte[]"
  14198. abstract="false" native="false" synchronized="false"
  14199. static="false" final="false" visibility="public"
  14200. deprecated="not deprecated">
  14201. <doc>
  14202. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  14203. valid.]]>
  14204. </doc>
  14205. </method>
  14206. <method name="getLength" return="int"
  14207. abstract="false" native="false" synchronized="false"
  14208. static="false" final="false" visibility="public"
  14209. deprecated="not deprecated">
  14210. <doc>
  14211. <![CDATA[Returns the number of bytes in the byte array]]>
  14212. </doc>
  14213. </method>
  14214. <method name="charAt" return="int"
  14215. abstract="false" native="false" synchronized="false"
  14216. static="false" final="false" visibility="public"
  14217. deprecated="not deprecated">
  14218. <param name="position" type="int"/>
  14219. <doc>
  14220. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  14221. for the character at <code>position</code>. Note that this
  14222. method avoids using the converter or doing String instatiation
  14223. @return the Unicode scalar value at position or -1
  14224. if the position is invalid or points to a
  14225. trailing byte]]>
  14226. </doc>
  14227. </method>
  14228. <method name="find" return="int"
  14229. abstract="false" native="false" synchronized="false"
  14230. static="false" final="false" visibility="public"
  14231. deprecated="not deprecated">
  14232. <param name="what" type="java.lang.String"/>
  14233. </method>
  14234. <method name="find" return="int"
  14235. abstract="false" native="false" synchronized="false"
  14236. static="false" final="false" visibility="public"
  14237. deprecated="not deprecated">
  14238. <param name="what" type="java.lang.String"/>
  14239. <param name="start" type="int"/>
  14240. <doc>
  14241. <![CDATA[Finds any occurence of <code>what</code> in the backing
  14242. buffer, starting as position <code>start</code>. The starting
  14243. position is measured in bytes and the return value is in
  14244. terms of byte position in the buffer. The backing buffer is
  14245. not converted to a string for this operation.
  14246. @return byte position of the first occurence of the search
  14247. string in the UTF-8 buffer or -1 if not found]]>
  14248. </doc>
  14249. </method>
  14250. <method name="set"
  14251. abstract="false" native="false" synchronized="false"
  14252. static="false" final="false" visibility="public"
  14253. deprecated="not deprecated">
  14254. <param name="string" type="java.lang.String"/>
  14255. <doc>
  14256. <![CDATA[Set to contain the contents of a string.]]>
  14257. </doc>
  14258. </method>
  14259. <method name="set"
  14260. abstract="false" native="false" synchronized="false"
  14261. static="false" final="false" visibility="public"
  14262. deprecated="not deprecated">
  14263. <param name="utf8" type="byte[]"/>
  14264. <doc>
  14265. <![CDATA[Set to a utf8 byte array]]>
  14266. </doc>
  14267. </method>
  14268. <method name="set"
  14269. abstract="false" native="false" synchronized="false"
  14270. static="false" final="false" visibility="public"
  14271. deprecated="not deprecated">
  14272. <param name="other" type="org.apache.hadoop.io.Text"/>
  14273. <doc>
  14274. <![CDATA[copy a text.]]>
  14275. </doc>
  14276. </method>
  14277. <method name="set"
  14278. abstract="false" native="false" synchronized="false"
  14279. static="false" final="false" visibility="public"
  14280. deprecated="not deprecated">
  14281. <param name="utf8" type="byte[]"/>
  14282. <param name="start" type="int"/>
  14283. <param name="len" type="int"/>
  14284. <doc>
  14285. <![CDATA[Set the Text to range of bytes
  14286. @param utf8 the data to copy from
  14287. @param start the first position of the new string
  14288. @param len the number of bytes of the new string]]>
  14289. </doc>
  14290. </method>
  14291. <method name="append"
  14292. abstract="false" native="false" synchronized="false"
  14293. static="false" final="false" visibility="public"
  14294. deprecated="not deprecated">
  14295. <param name="utf8" type="byte[]"/>
  14296. <param name="start" type="int"/>
  14297. <param name="len" type="int"/>
  14298. <doc>
  14299. <![CDATA[Append a range of bytes to the end of the given text
  14300. @param utf8 the data to copy from
  14301. @param start the first position to append from utf8
  14302. @param len the number of bytes to append]]>
  14303. </doc>
  14304. </method>
  14305. <method name="clear"
  14306. abstract="false" native="false" synchronized="false"
  14307. static="false" final="false" visibility="public"
  14308. deprecated="not deprecated">
  14309. <doc>
  14310. <![CDATA[Clear the string to empty.]]>
  14311. </doc>
  14312. </method>
  14313. <method name="toString" return="java.lang.String"
  14314. abstract="false" native="false" synchronized="false"
  14315. static="false" final="false" visibility="public"
  14316. deprecated="not deprecated">
  14317. <doc>
  14318. <![CDATA[Convert text back to string
  14319. @see java.lang.Object#toString()]]>
  14320. </doc>
  14321. </method>
  14322. <method name="readFields"
  14323. abstract="false" native="false" synchronized="false"
  14324. static="false" final="false" visibility="public"
  14325. deprecated="not deprecated">
  14326. <param name="in" type="java.io.DataInput"/>
  14327. <exception name="IOException" type="java.io.IOException"/>
  14328. <doc>
  14329. <![CDATA[deserialize]]>
  14330. </doc>
  14331. </method>
  14332. <method name="skip"
  14333. abstract="false" native="false" synchronized="false"
  14334. static="true" final="false" visibility="public"
  14335. deprecated="not deprecated">
  14336. <param name="in" type="java.io.DataInput"/>
  14337. <exception name="IOException" type="java.io.IOException"/>
  14338. <doc>
  14339. <![CDATA[Skips over one Text in the input.]]>
  14340. </doc>
  14341. </method>
  14342. <method name="write"
  14343. abstract="false" native="false" synchronized="false"
  14344. static="false" final="false" visibility="public"
  14345. deprecated="not deprecated">
  14346. <param name="out" type="java.io.DataOutput"/>
  14347. <exception name="IOException" type="java.io.IOException"/>
  14348. <doc>
  14349. <![CDATA[serialize
  14350. write this object to out
  14351. length uses zero-compressed encoding
  14352. @see Writable#write(DataOutput)]]>
  14353. </doc>
  14354. </method>
  14355. <method name="equals" return="boolean"
  14356. abstract="false" native="false" synchronized="false"
  14357. static="false" final="false" visibility="public"
  14358. deprecated="not deprecated">
  14359. <param name="o" type="java.lang.Object"/>
  14360. <doc>
  14361. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  14362. </doc>
  14363. </method>
  14364. <method name="hashCode" return="int"
  14365. abstract="false" native="false" synchronized="false"
  14366. static="false" final="false" visibility="public"
  14367. deprecated="not deprecated">
  14368. </method>
  14369. <method name="decode" return="java.lang.String"
  14370. abstract="false" native="false" synchronized="false"
  14371. static="true" final="false" visibility="public"
  14372. deprecated="not deprecated">
  14373. <param name="utf8" type="byte[]"/>
  14374. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14375. <doc>
  14376. <![CDATA[Converts the provided byte array to a String using the
  14377. UTF-8 encoding. If the input is malformed,
  14378. replace by a default value.]]>
  14379. </doc>
  14380. </method>
  14381. <method name="decode" return="java.lang.String"
  14382. abstract="false" native="false" synchronized="false"
  14383. static="true" final="false" visibility="public"
  14384. deprecated="not deprecated">
  14385. <param name="utf8" type="byte[]"/>
  14386. <param name="start" type="int"/>
  14387. <param name="length" type="int"/>
  14388. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14389. </method>
  14390. <method name="decode" return="java.lang.String"
  14391. abstract="false" native="false" synchronized="false"
  14392. static="true" final="false" visibility="public"
  14393. deprecated="not deprecated">
  14394. <param name="utf8" type="byte[]"/>
  14395. <param name="start" type="int"/>
  14396. <param name="length" type="int"/>
  14397. <param name="replace" type="boolean"/>
  14398. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14399. <doc>
  14400. <![CDATA[Converts the provided byte array to a String using the
  14401. UTF-8 encoding. If <code>replace</code> is true, then
  14402. malformed input is replaced with the
  14403. substitution character, which is U+FFFD. Otherwise the
  14404. method throws a MalformedInputException.]]>
  14405. </doc>
  14406. </method>
  14407. <method name="encode" return="java.nio.ByteBuffer"
  14408. abstract="false" native="false" synchronized="false"
  14409. static="true" final="false" visibility="public"
  14410. deprecated="not deprecated">
  14411. <param name="string" type="java.lang.String"/>
  14412. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14413. <doc>
  14414. <![CDATA[Converts the provided String to bytes using the
  14415. UTF-8 encoding. If the input is malformed,
  14416. invalid chars are replaced by a default value.
  14417. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14418. and length is ByteBuffer.limit()]]>
  14419. </doc>
  14420. </method>
  14421. <method name="encode" return="java.nio.ByteBuffer"
  14422. abstract="false" native="false" synchronized="false"
  14423. static="true" final="false" visibility="public"
  14424. deprecated="not deprecated">
  14425. <param name="string" type="java.lang.String"/>
  14426. <param name="replace" type="boolean"/>
  14427. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14428. <doc>
  14429. <![CDATA[Converts the provided String to bytes using the
  14430. UTF-8 encoding. If <code>replace</code> is true, then
  14431. malformed input is replaced with the
  14432. substitution character, which is U+FFFD. Otherwise the
  14433. method throws a MalformedInputException.
  14434. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14435. and length is ByteBuffer.limit()]]>
  14436. </doc>
  14437. </method>
  14438. <method name="readString" return="java.lang.String"
  14439. abstract="false" native="false" synchronized="false"
  14440. static="true" final="false" visibility="public"
  14441. deprecated="not deprecated">
  14442. <param name="in" type="java.io.DataInput"/>
  14443. <exception name="IOException" type="java.io.IOException"/>
  14444. <doc>
  14445. <![CDATA[Read a UTF8 encoded string from in]]>
  14446. </doc>
  14447. </method>
  14448. <method name="writeString" return="int"
  14449. abstract="false" native="false" synchronized="false"
  14450. static="true" final="false" visibility="public"
  14451. deprecated="not deprecated">
  14452. <param name="out" type="java.io.DataOutput"/>
  14453. <param name="s" type="java.lang.String"/>
  14454. <exception name="IOException" type="java.io.IOException"/>
  14455. <doc>
  14456. <![CDATA[Write a UTF8 encoded string to out]]>
  14457. </doc>
  14458. </method>
  14459. <method name="validateUTF8"
  14460. abstract="false" native="false" synchronized="false"
  14461. static="true" final="false" visibility="public"
  14462. deprecated="not deprecated">
  14463. <param name="utf8" type="byte[]"/>
  14464. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14465. <doc>
  14466. <![CDATA[Check if a byte array contains valid utf-8
  14467. @param utf8 byte array
  14468. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  14469. </doc>
  14470. </method>
  14471. <method name="validateUTF8"
  14472. abstract="false" native="false" synchronized="false"
  14473. static="true" final="false" visibility="public"
  14474. deprecated="not deprecated">
  14475. <param name="utf8" type="byte[]"/>
  14476. <param name="start" type="int"/>
  14477. <param name="len" type="int"/>
  14478. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14479. <doc>
  14480. <![CDATA[Check to see if a byte array is valid utf-8
  14481. @param utf8 the array of bytes
  14482. @param start the offset of the first byte in the array
  14483. @param len the length of the byte sequence
  14484. @throws MalformedInputException if the byte array contains invalid bytes]]>
  14485. </doc>
  14486. </method>
  14487. <method name="bytesToCodePoint" return="int"
  14488. abstract="false" native="false" synchronized="false"
  14489. static="true" final="false" visibility="public"
  14490. deprecated="not deprecated">
  14491. <param name="bytes" type="java.nio.ByteBuffer"/>
  14492. <doc>
  14493. <![CDATA[Returns the next code point at the current position in
  14494. the buffer. The buffer's position will be incremented.
  14495. Any mark set on this buffer will be changed by this method!]]>
  14496. </doc>
  14497. </method>
  14498. <method name="utf8Length" return="int"
  14499. abstract="false" native="false" synchronized="false"
  14500. static="true" final="false" visibility="public"
  14501. deprecated="not deprecated">
  14502. <param name="string" type="java.lang.String"/>
  14503. <doc>
  14504. <![CDATA[For the given string, returns the number of UTF-8 bytes
  14505. required to encode the string.
  14506. @param string text to encode
  14507. @return number of UTF-8 bytes required to encode]]>
  14508. </doc>
  14509. </method>
  14510. <doc>
  14511. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  14512. to serialize, deserialize, and compare texts at byte level. The type of
  14513. length is integer and is serialized using zero-compressed format. <p>In
  14514. addition, it provides methods for string traversal without converting the
  14515. byte array to a string. <p>Also includes utilities for
  14516. serializing/deserialing a string, coding/decoding a string, checking if a
  14517. byte array contains valid UTF8 code, calculating the length of an encoded
  14518. string.]]>
  14519. </doc>
  14520. </class>
  14521. <!-- end class org.apache.hadoop.io.Text -->
  14522. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  14523. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14524. abstract="false"
  14525. static="true" final="false" visibility="public"
  14526. deprecated="not deprecated">
  14527. <constructor name="Text.Comparator"
  14528. static="false" final="false" visibility="public"
  14529. deprecated="not deprecated">
  14530. </constructor>
  14531. <method name="compare" return="int"
  14532. abstract="false" native="false" synchronized="false"
  14533. static="false" final="false" visibility="public"
  14534. deprecated="not deprecated">
  14535. <param name="b1" type="byte[]"/>
  14536. <param name="s1" type="int"/>
  14537. <param name="l1" type="int"/>
  14538. <param name="b2" type="byte[]"/>
  14539. <param name="s2" type="int"/>
  14540. <param name="l2" type="int"/>
  14541. </method>
  14542. <doc>
  14543. <![CDATA[A WritableComparator optimized for Text keys.]]>
  14544. </doc>
  14545. </class>
  14546. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  14547. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  14548. <class name="TwoDArrayWritable" extends="java.lang.Object"
  14549. abstract="false"
  14550. static="false" final="false" visibility="public"
  14551. deprecated="not deprecated">
  14552. <implements name="org.apache.hadoop.io.Writable"/>
  14553. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  14554. static="false" final="false" visibility="public"
  14555. deprecated="not deprecated">
  14556. </constructor>
  14557. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  14558. static="false" final="false" visibility="public"
  14559. deprecated="not deprecated">
  14560. </constructor>
  14561. <method name="toArray" return="java.lang.Object"
  14562. abstract="false" native="false" synchronized="false"
  14563. static="false" final="false" visibility="public"
  14564. deprecated="not deprecated">
  14565. </method>
  14566. <method name="set"
  14567. abstract="false" native="false" synchronized="false"
  14568. static="false" final="false" visibility="public"
  14569. deprecated="not deprecated">
  14570. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  14571. </method>
  14572. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  14573. abstract="false" native="false" synchronized="false"
  14574. static="false" final="false" visibility="public"
  14575. deprecated="not deprecated">
  14576. </method>
  14577. <method name="readFields"
  14578. abstract="false" native="false" synchronized="false"
  14579. static="false" final="false" visibility="public"
  14580. deprecated="not deprecated">
  14581. <param name="in" type="java.io.DataInput"/>
  14582. <exception name="IOException" type="java.io.IOException"/>
  14583. </method>
  14584. <method name="write"
  14585. abstract="false" native="false" synchronized="false"
  14586. static="false" final="false" visibility="public"
  14587. deprecated="not deprecated">
  14588. <param name="out" type="java.io.DataOutput"/>
  14589. <exception name="IOException" type="java.io.IOException"/>
  14590. </method>
  14591. <doc>
  14592. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  14593. </doc>
  14594. </class>
  14595. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  14596. <!-- start class org.apache.hadoop.io.UTF8 -->
  14597. <class name="UTF8" extends="java.lang.Object"
  14598. abstract="false"
  14599. static="false" final="false" visibility="public"
  14600. deprecated="replaced by Text">
  14601. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14602. <constructor name="UTF8"
  14603. static="false" final="false" visibility="public"
  14604. deprecated="not deprecated">
  14605. </constructor>
  14606. <constructor name="UTF8" type="java.lang.String"
  14607. static="false" final="false" visibility="public"
  14608. deprecated="not deprecated">
  14609. <doc>
  14610. <![CDATA[Construct from a given string.]]>
  14611. </doc>
  14612. </constructor>
  14613. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  14614. static="false" final="false" visibility="public"
  14615. deprecated="not deprecated">
  14616. <doc>
  14617. <![CDATA[Construct from a given string.]]>
  14618. </doc>
  14619. </constructor>
  14620. <method name="getBytes" return="byte[]"
  14621. abstract="false" native="false" synchronized="false"
  14622. static="false" final="false" visibility="public"
  14623. deprecated="not deprecated">
  14624. <doc>
  14625. <![CDATA[The raw bytes.]]>
  14626. </doc>
  14627. </method>
  14628. <method name="getLength" return="int"
  14629. abstract="false" native="false" synchronized="false"
  14630. static="false" final="false" visibility="public"
  14631. deprecated="not deprecated">
  14632. <doc>
  14633. <![CDATA[The number of bytes in the encoded string.]]>
  14634. </doc>
  14635. </method>
  14636. <method name="set"
  14637. abstract="false" native="false" synchronized="false"
  14638. static="false" final="false" visibility="public"
  14639. deprecated="not deprecated">
  14640. <param name="string" type="java.lang.String"/>
  14641. <doc>
  14642. <![CDATA[Set to contain the contents of a string.]]>
  14643. </doc>
  14644. </method>
  14645. <method name="set"
  14646. abstract="false" native="false" synchronized="false"
  14647. static="false" final="false" visibility="public"
  14648. deprecated="not deprecated">
  14649. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  14650. <doc>
  14651. <![CDATA[Set to contain the contents of a string.]]>
  14652. </doc>
  14653. </method>
  14654. <method name="readFields"
  14655. abstract="false" native="false" synchronized="false"
  14656. static="false" final="false" visibility="public"
  14657. deprecated="not deprecated">
  14658. <param name="in" type="java.io.DataInput"/>
  14659. <exception name="IOException" type="java.io.IOException"/>
  14660. </method>
  14661. <method name="skip"
  14662. abstract="false" native="false" synchronized="false"
  14663. static="true" final="false" visibility="public"
  14664. deprecated="not deprecated">
  14665. <param name="in" type="java.io.DataInput"/>
  14666. <exception name="IOException" type="java.io.IOException"/>
  14667. <doc>
  14668. <![CDATA[Skips over one UTF8 in the input.]]>
  14669. </doc>
  14670. </method>
  14671. <method name="write"
  14672. abstract="false" native="false" synchronized="false"
  14673. static="false" final="false" visibility="public"
  14674. deprecated="not deprecated">
  14675. <param name="out" type="java.io.DataOutput"/>
  14676. <exception name="IOException" type="java.io.IOException"/>
  14677. </method>
  14678. <method name="compareTo" return="int"
  14679. abstract="false" native="false" synchronized="false"
  14680. static="false" final="false" visibility="public"
  14681. deprecated="not deprecated">
  14682. <param name="o" type="java.lang.Object"/>
  14683. <doc>
  14684. <![CDATA[Compare two UTF8s.]]>
  14685. </doc>
  14686. </method>
  14687. <method name="toString" return="java.lang.String"
  14688. abstract="false" native="false" synchronized="false"
  14689. static="false" final="false" visibility="public"
  14690. deprecated="not deprecated">
  14691. <doc>
  14692. <![CDATA[Convert to a String.]]>
  14693. </doc>
  14694. </method>
  14695. <method name="equals" return="boolean"
  14696. abstract="false" native="false" synchronized="false"
  14697. static="false" final="false" visibility="public"
  14698. deprecated="not deprecated">
  14699. <param name="o" type="java.lang.Object"/>
  14700. <doc>
  14701. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  14702. </doc>
  14703. </method>
  14704. <method name="hashCode" return="int"
  14705. abstract="false" native="false" synchronized="false"
  14706. static="false" final="false" visibility="public"
  14707. deprecated="not deprecated">
  14708. </method>
  14709. <method name="getBytes" return="byte[]"
  14710. abstract="false" native="false" synchronized="false"
  14711. static="true" final="false" visibility="public"
  14712. deprecated="not deprecated">
  14713. <param name="string" type="java.lang.String"/>
  14714. <doc>
  14715. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  14716. @see String#getBytes(String)]]>
  14717. </doc>
  14718. </method>
  14719. <method name="readString" return="java.lang.String"
  14720. abstract="false" native="false" synchronized="false"
  14721. static="true" final="false" visibility="public"
  14722. deprecated="not deprecated">
  14723. <param name="in" type="java.io.DataInput"/>
  14724. <exception name="IOException" type="java.io.IOException"/>
  14725. <doc>
  14726. <![CDATA[Read a UTF-8 encoded string.
  14727. @see DataInput#readUTF()]]>
  14728. </doc>
  14729. </method>
  14730. <method name="writeString" return="int"
  14731. abstract="false" native="false" synchronized="false"
  14732. static="true" final="false" visibility="public"
  14733. deprecated="not deprecated">
  14734. <param name="out" type="java.io.DataOutput"/>
  14735. <param name="s" type="java.lang.String"/>
  14736. <exception name="IOException" type="java.io.IOException"/>
  14737. <doc>
  14738. <![CDATA[Write a UTF-8 encoded string.
  14739. @see DataOutput#writeUTF(String)]]>
  14740. </doc>
  14741. </method>
  14742. <doc>
  14743. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  14744. <p>Also includes utilities for efficiently reading and writing UTF-8.
  14745. @deprecated replaced by Text]]>
  14746. </doc>
  14747. </class>
  14748. <!-- end class org.apache.hadoop.io.UTF8 -->
  14749. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  14750. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14751. abstract="false"
  14752. static="true" final="false" visibility="public"
  14753. deprecated="not deprecated">
  14754. <constructor name="UTF8.Comparator"
  14755. static="false" final="false" visibility="public"
  14756. deprecated="not deprecated">
  14757. </constructor>
  14758. <method name="compare" return="int"
  14759. abstract="false" native="false" synchronized="false"
  14760. static="false" final="false" visibility="public"
  14761. deprecated="not deprecated">
  14762. <param name="b1" type="byte[]"/>
  14763. <param name="s1" type="int"/>
  14764. <param name="l1" type="int"/>
  14765. <param name="b2" type="byte[]"/>
  14766. <param name="s2" type="int"/>
  14767. <param name="l2" type="int"/>
  14768. </method>
  14769. <doc>
  14770. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  14771. </doc>
  14772. </class>
  14773. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  14774. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  14775. <class name="VersionedWritable" extends="java.lang.Object"
  14776. abstract="true"
  14777. static="false" final="false" visibility="public"
  14778. deprecated="not deprecated">
  14779. <implements name="org.apache.hadoop.io.Writable"/>
  14780. <constructor name="VersionedWritable"
  14781. static="false" final="false" visibility="public"
  14782. deprecated="not deprecated">
  14783. </constructor>
  14784. <method name="getVersion" return="byte"
  14785. abstract="true" native="false" synchronized="false"
  14786. static="false" final="false" visibility="public"
  14787. deprecated="not deprecated">
  14788. <doc>
  14789. <![CDATA[Return the version number of the current implementation.]]>
  14790. </doc>
  14791. </method>
  14792. <method name="write"
  14793. abstract="false" native="false" synchronized="false"
  14794. static="false" final="false" visibility="public"
  14795. deprecated="not deprecated">
  14796. <param name="out" type="java.io.DataOutput"/>
  14797. <exception name="IOException" type="java.io.IOException"/>
  14798. </method>
  14799. <method name="readFields"
  14800. abstract="false" native="false" synchronized="false"
  14801. static="false" final="false" visibility="public"
  14802. deprecated="not deprecated">
  14803. <param name="in" type="java.io.DataInput"/>
  14804. <exception name="IOException" type="java.io.IOException"/>
  14805. </method>
  14806. <doc>
  14807. <![CDATA[A base class for Writables that provides version checking.
  14808. <p>This is useful when a class may evolve, so that instances written by the
  14809. old version of the class may still be processed by the new version. To
  14810. handle this situation, {@link #readFields(DataInput)}
  14811. implementations should catch {@link VersionMismatchException}.]]>
  14812. </doc>
  14813. </class>
  14814. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  14815. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  14816. <class name="VersionMismatchException" extends="java.io.IOException"
  14817. abstract="false"
  14818. static="false" final="false" visibility="public"
  14819. deprecated="not deprecated">
  14820. <constructor name="VersionMismatchException" type="byte, byte"
  14821. static="false" final="false" visibility="public"
  14822. deprecated="not deprecated">
  14823. </constructor>
  14824. <method name="toString" return="java.lang.String"
  14825. abstract="false" native="false" synchronized="false"
  14826. static="false" final="false" visibility="public"
  14827. deprecated="not deprecated">
  14828. <doc>
  14829. <![CDATA[Returns a string representation of this object.]]>
  14830. </doc>
  14831. </method>
  14832. <doc>
  14833. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  14834. version of an object being read does not match the current implementation
  14835. version as returned by {@link VersionedWritable#getVersion()}.]]>
  14836. </doc>
  14837. </class>
  14838. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  14839. <!-- start class org.apache.hadoop.io.VIntWritable -->
  14840. <class name="VIntWritable" extends="java.lang.Object"
  14841. abstract="false"
  14842. static="false" final="false" visibility="public"
  14843. deprecated="not deprecated">
  14844. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14845. <constructor name="VIntWritable"
  14846. static="false" final="false" visibility="public"
  14847. deprecated="not deprecated">
  14848. </constructor>
  14849. <constructor name="VIntWritable" type="int"
  14850. static="false" final="false" visibility="public"
  14851. deprecated="not deprecated">
  14852. </constructor>
  14853. <method name="set"
  14854. abstract="false" native="false" synchronized="false"
  14855. static="false" final="false" visibility="public"
  14856. deprecated="not deprecated">
  14857. <param name="value" type="int"/>
  14858. <doc>
  14859. <![CDATA[Set the value of this VIntWritable.]]>
  14860. </doc>
  14861. </method>
  14862. <method name="get" return="int"
  14863. abstract="false" native="false" synchronized="false"
  14864. static="false" final="false" visibility="public"
  14865. deprecated="not deprecated">
  14866. <doc>
  14867. <![CDATA[Return the value of this VIntWritable.]]>
  14868. </doc>
  14869. </method>
  14870. <method name="readFields"
  14871. abstract="false" native="false" synchronized="false"
  14872. static="false" final="false" visibility="public"
  14873. deprecated="not deprecated">
  14874. <param name="in" type="java.io.DataInput"/>
  14875. <exception name="IOException" type="java.io.IOException"/>
  14876. </method>
  14877. <method name="write"
  14878. abstract="false" native="false" synchronized="false"
  14879. static="false" final="false" visibility="public"
  14880. deprecated="not deprecated">
  14881. <param name="out" type="java.io.DataOutput"/>
  14882. <exception name="IOException" type="java.io.IOException"/>
  14883. </method>
  14884. <method name="equals" return="boolean"
  14885. abstract="false" native="false" synchronized="false"
  14886. static="false" final="false" visibility="public"
  14887. deprecated="not deprecated">
  14888. <param name="o" type="java.lang.Object"/>
  14889. <doc>
  14890. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  14891. </doc>
  14892. </method>
  14893. <method name="hashCode" return="int"
  14894. abstract="false" native="false" synchronized="false"
  14895. static="false" final="false" visibility="public"
  14896. deprecated="not deprecated">
  14897. </method>
  14898. <method name="compareTo" return="int"
  14899. abstract="false" native="false" synchronized="false"
  14900. static="false" final="false" visibility="public"
  14901. deprecated="not deprecated">
  14902. <param name="o" type="java.lang.Object"/>
  14903. <doc>
  14904. <![CDATA[Compares two VIntWritables.]]>
  14905. </doc>
  14906. </method>
  14907. <method name="toString" return="java.lang.String"
  14908. abstract="false" native="false" synchronized="false"
  14909. static="false" final="false" visibility="public"
  14910. deprecated="not deprecated">
  14911. </method>
  14912. <doc>
  14913. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  14914. Such values take between one and five bytes. Smaller values take fewer bytes.
  14915. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  14916. </doc>
  14917. </class>
  14918. <!-- end class org.apache.hadoop.io.VIntWritable -->
  14919. <!-- start class org.apache.hadoop.io.VLongWritable -->
  14920. <class name="VLongWritable" extends="java.lang.Object"
  14921. abstract="false"
  14922. static="false" final="false" visibility="public"
  14923. deprecated="not deprecated">
  14924. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14925. <constructor name="VLongWritable"
  14926. static="false" final="false" visibility="public"
  14927. deprecated="not deprecated">
  14928. </constructor>
  14929. <constructor name="VLongWritable" type="long"
  14930. static="false" final="false" visibility="public"
  14931. deprecated="not deprecated">
  14932. </constructor>
  14933. <method name="set"
  14934. abstract="false" native="false" synchronized="false"
  14935. static="false" final="false" visibility="public"
  14936. deprecated="not deprecated">
  14937. <param name="value" type="long"/>
  14938. <doc>
  14939. <![CDATA[Set the value of this LongWritable.]]>
  14940. </doc>
  14941. </method>
  14942. <method name="get" return="long"
  14943. abstract="false" native="false" synchronized="false"
  14944. static="false" final="false" visibility="public"
  14945. deprecated="not deprecated">
  14946. <doc>
  14947. <![CDATA[Return the value of this LongWritable.]]>
  14948. </doc>
  14949. </method>
  14950. <method name="readFields"
  14951. abstract="false" native="false" synchronized="false"
  14952. static="false" final="false" visibility="public"
  14953. deprecated="not deprecated">
  14954. <param name="in" type="java.io.DataInput"/>
  14955. <exception name="IOException" type="java.io.IOException"/>
  14956. </method>
  14957. <method name="write"
  14958. abstract="false" native="false" synchronized="false"
  14959. static="false" final="false" visibility="public"
  14960. deprecated="not deprecated">
  14961. <param name="out" type="java.io.DataOutput"/>
  14962. <exception name="IOException" type="java.io.IOException"/>
  14963. </method>
  14964. <method name="equals" return="boolean"
  14965. abstract="false" native="false" synchronized="false"
  14966. static="false" final="false" visibility="public"
  14967. deprecated="not deprecated">
  14968. <param name="o" type="java.lang.Object"/>
  14969. <doc>
  14970. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  14971. </doc>
  14972. </method>
  14973. <method name="hashCode" return="int"
  14974. abstract="false" native="false" synchronized="false"
  14975. static="false" final="false" visibility="public"
  14976. deprecated="not deprecated">
  14977. </method>
  14978. <method name="compareTo" return="int"
  14979. abstract="false" native="false" synchronized="false"
  14980. static="false" final="false" visibility="public"
  14981. deprecated="not deprecated">
  14982. <param name="o" type="java.lang.Object"/>
  14983. <doc>
  14984. <![CDATA[Compares two VLongWritables.]]>
  14985. </doc>
  14986. </method>
  14987. <method name="toString" return="java.lang.String"
  14988. abstract="false" native="false" synchronized="false"
  14989. static="false" final="false" visibility="public"
  14990. deprecated="not deprecated">
  14991. </method>
  14992. <doc>
  14993. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  14994. between one and five bytes. Smaller values take fewer bytes.
  14995. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  14996. </doc>
  14997. </class>
  14998. <!-- end class org.apache.hadoop.io.VLongWritable -->
  14999. <!-- start interface org.apache.hadoop.io.Writable -->
  15000. <interface name="Writable" abstract="true"
  15001. static="false" final="false" visibility="public"
  15002. deprecated="not deprecated">
  15003. <method name="write"
  15004. abstract="false" native="false" synchronized="false"
  15005. static="false" final="false" visibility="public"
  15006. deprecated="not deprecated">
  15007. <param name="out" type="java.io.DataOutput"/>
  15008. <exception name="IOException" type="java.io.IOException"/>
  15009. <doc>
  15010. <![CDATA[Serialize the fields of this object to <code>out</code>.
  15011. @param out <code>DataOuput</code> to serialize this object into.
  15012. @throws IOException]]>
  15013. </doc>
  15014. </method>
  15015. <method name="readFields"
  15016. abstract="false" native="false" synchronized="false"
  15017. static="false" final="false" visibility="public"
  15018. deprecated="not deprecated">
  15019. <param name="in" type="java.io.DataInput"/>
  15020. <exception name="IOException" type="java.io.IOException"/>
  15021. <doc>
  15022. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  15023. <p>For efficiency, implementations should attempt to re-use storage in the
  15024. existing object where possible.</p>
  15025. @param in <code>DataInput</code> to deseriablize this object from.
  15026. @throws IOException]]>
  15027. </doc>
  15028. </method>
  15029. <doc>
  15030. <![CDATA[A serializable object which implements a simple, efficient, serialization
  15031. protocol, based on {@link DataInput} and {@link DataOutput}.
  15032. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  15033. framework implements this interface.</p>
  15034. <p>Implementations typically implement a static <code>read(DataInput)</code>
  15035. method which constructs a new instance, calls {@link #readFields(DataInput)}
  15036. and returns the instance.</p>
  15037. <p>Example:</p>
  15038. <p><blockquote><pre>
  15039. public class MyWritable implements Writable {
  15040. // Some data
  15041. private int counter;
  15042. private long timestamp;
  15043. public void write(DataOutput out) throws IOException {
  15044. out.writeInt(counter);
  15045. out.writeLong(timestamp);
  15046. }
  15047. public void readFields(DataInput in) throws IOException {
  15048. counter = in.readInt();
  15049. timestamp = in.readLong();
  15050. }
  15051. public static MyWritable read(DataInput in) throws IOException {
  15052. MyWritable w = new MyWritable();
  15053. w.readFields(in);
  15054. return w;
  15055. }
  15056. }
  15057. </pre></blockquote></p>]]>
  15058. </doc>
  15059. </interface>
  15060. <!-- end interface org.apache.hadoop.io.Writable -->
  15061. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  15062. <interface name="WritableComparable" abstract="true"
  15063. static="false" final="false" visibility="public"
  15064. deprecated="not deprecated">
  15065. <implements name="org.apache.hadoop.io.Writable"/>
  15066. <implements name="java.lang.Comparable"/>
  15067. <doc>
  15068. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  15069. <p><code>WritableComparable</code>s can be compared to each other, typically
  15070. via <code>Comparator</code>s. Any type which is to be used as a
  15071. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  15072. interface.</p>
  15073. <p>Example:</p>
  15074. <p><blockquote><pre>
  15075. public class MyWritableComparable implements WritableComparable {
  15076. // Some data
  15077. private int counter;
  15078. private long timestamp;
  15079. public void write(DataOutput out) throws IOException {
  15080. out.writeInt(counter);
  15081. out.writeLong(timestamp);
  15082. }
  15083. public void readFields(DataInput in) throws IOException {
  15084. counter = in.readInt();
  15085. timestamp = in.readLong();
  15086. }
  15087. public int compareTo(MyWritableComparable w) {
  15088. int thisValue = this.value;
  15089. int thatValue = ((IntWritable)o).value;
  15090. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  15091. }
  15092. }
  15093. </pre></blockquote></p>]]>
  15094. </doc>
  15095. </interface>
  15096. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  15097. <!-- start class org.apache.hadoop.io.WritableComparator -->
  15098. <class name="WritableComparator" extends="java.lang.Object"
  15099. abstract="false"
  15100. static="false" final="false" visibility="public"
  15101. deprecated="not deprecated">
  15102. <implements name="org.apache.hadoop.io.RawComparator"/>
  15103. <constructor name="WritableComparator" type="java.lang.Class"
  15104. static="false" final="false" visibility="protected"
  15105. deprecated="not deprecated">
  15106. <doc>
  15107. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  15108. </doc>
  15109. </constructor>
  15110. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  15111. static="false" final="false" visibility="protected"
  15112. deprecated="not deprecated">
  15113. </constructor>
  15114. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  15115. abstract="false" native="false" synchronized="true"
  15116. static="true" final="false" visibility="public"
  15117. deprecated="not deprecated">
  15118. <param name="c" type="java.lang.Class"/>
  15119. <doc>
  15120. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  15121. </doc>
  15122. </method>
  15123. <method name="define"
  15124. abstract="false" native="false" synchronized="true"
  15125. static="true" final="false" visibility="public"
  15126. deprecated="not deprecated">
  15127. <param name="c" type="java.lang.Class"/>
  15128. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  15129. <doc>
  15130. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  15131. implementation.]]>
  15132. </doc>
  15133. </method>
  15134. <method name="getKeyClass" return="java.lang.Class"
  15135. abstract="false" native="false" synchronized="false"
  15136. static="false" final="false" visibility="public"
  15137. deprecated="not deprecated">
  15138. <doc>
  15139. <![CDATA[Returns the WritableComparable implementation class.]]>
  15140. </doc>
  15141. </method>
  15142. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  15143. abstract="false" native="false" synchronized="false"
  15144. static="false" final="false" visibility="public"
  15145. deprecated="not deprecated">
  15146. <doc>
  15147. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  15148. </doc>
  15149. </method>
  15150. <method name="compare" return="int"
  15151. abstract="false" native="false" synchronized="false"
  15152. static="false" final="false" visibility="public"
  15153. deprecated="not deprecated">
  15154. <param name="b1" type="byte[]"/>
  15155. <param name="s1" type="int"/>
  15156. <param name="l1" type="int"/>
  15157. <param name="b2" type="byte[]"/>
  15158. <param name="s2" type="int"/>
  15159. <param name="l2" type="int"/>
  15160. <doc>
  15161. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  15162. <p>The default implementation reads the data into two {@link
  15163. WritableComparable}s (using {@link
  15164. Writable#readFields(DataInput)}, then calls {@link
  15165. #compare(WritableComparable,WritableComparable)}.]]>
  15166. </doc>
  15167. </method>
  15168. <method name="compare" return="int"
  15169. abstract="false" native="false" synchronized="false"
  15170. static="false" final="false" visibility="public"
  15171. deprecated="not deprecated">
  15172. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  15173. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  15174. <doc>
  15175. <![CDATA[Compare two WritableComparables.
  15176. <p> The default implementation uses the natural ordering, calling {@link
  15177. Comparable#compareTo(Object)}.]]>
  15178. </doc>
  15179. </method>
  15180. <method name="compare" return="int"
  15181. abstract="false" native="false" synchronized="false"
  15182. static="false" final="false" visibility="public"
  15183. deprecated="not deprecated">
  15184. <param name="a" type="java.lang.Object"/>
  15185. <param name="b" type="java.lang.Object"/>
  15186. </method>
  15187. <method name="compareBytes" return="int"
  15188. abstract="false" native="false" synchronized="false"
  15189. static="true" final="false" visibility="public"
  15190. deprecated="not deprecated">
  15191. <param name="b1" type="byte[]"/>
  15192. <param name="s1" type="int"/>
  15193. <param name="l1" type="int"/>
  15194. <param name="b2" type="byte[]"/>
  15195. <param name="s2" type="int"/>
  15196. <param name="l2" type="int"/>
  15197. <doc>
  15198. <![CDATA[Lexicographic order of binary data.]]>
  15199. </doc>
  15200. </method>
  15201. <method name="hashBytes" return="int"
  15202. abstract="false" native="false" synchronized="false"
  15203. static="true" final="false" visibility="public"
  15204. deprecated="not deprecated">
  15205. <param name="bytes" type="byte[]"/>
  15206. <param name="length" type="int"/>
  15207. <doc>
  15208. <![CDATA[Compute hash for binary data.]]>
  15209. </doc>
  15210. </method>
  15211. <method name="readUnsignedShort" return="int"
  15212. abstract="false" native="false" synchronized="false"
  15213. static="true" final="false" visibility="public"
  15214. deprecated="not deprecated">
  15215. <param name="bytes" type="byte[]"/>
  15216. <param name="start" type="int"/>
  15217. <doc>
  15218. <![CDATA[Parse an unsigned short from a byte array.]]>
  15219. </doc>
  15220. </method>
  15221. <method name="readInt" return="int"
  15222. abstract="false" native="false" synchronized="false"
  15223. static="true" final="false" visibility="public"
  15224. deprecated="not deprecated">
  15225. <param name="bytes" type="byte[]"/>
  15226. <param name="start" type="int"/>
  15227. <doc>
  15228. <![CDATA[Parse an integer from a byte array.]]>
  15229. </doc>
  15230. </method>
  15231. <method name="readFloat" return="float"
  15232. abstract="false" native="false" synchronized="false"
  15233. static="true" final="false" visibility="public"
  15234. deprecated="not deprecated">
  15235. <param name="bytes" type="byte[]"/>
  15236. <param name="start" type="int"/>
  15237. <doc>
  15238. <![CDATA[Parse a float from a byte array.]]>
  15239. </doc>
  15240. </method>
  15241. <method name="readLong" return="long"
  15242. abstract="false" native="false" synchronized="false"
  15243. static="true" final="false" visibility="public"
  15244. deprecated="not deprecated">
  15245. <param name="bytes" type="byte[]"/>
  15246. <param name="start" type="int"/>
  15247. <doc>
  15248. <![CDATA[Parse a long from a byte array.]]>
  15249. </doc>
  15250. </method>
  15251. <method name="readDouble" return="double"
  15252. abstract="false" native="false" synchronized="false"
  15253. static="true" final="false" visibility="public"
  15254. deprecated="not deprecated">
  15255. <param name="bytes" type="byte[]"/>
  15256. <param name="start" type="int"/>
  15257. <doc>
  15258. <![CDATA[Parse a double from a byte array.]]>
  15259. </doc>
  15260. </method>
  15261. <method name="readVLong" return="long"
  15262. abstract="false" native="false" synchronized="false"
  15263. static="true" final="false" visibility="public"
  15264. deprecated="not deprecated">
  15265. <param name="bytes" type="byte[]"/>
  15266. <param name="start" type="int"/>
  15267. <exception name="IOException" type="java.io.IOException"/>
  15268. <doc>
  15269. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  15270. @param bytes byte array with decode long
  15271. @param start starting index
  15272. @throws java.io.IOException
  15273. @return deserialized long]]>
  15274. </doc>
  15275. </method>
  15276. <method name="readVInt" return="int"
  15277. abstract="false" native="false" synchronized="false"
  15278. static="true" final="false" visibility="public"
  15279. deprecated="not deprecated">
  15280. <param name="bytes" type="byte[]"/>
  15281. <param name="start" type="int"/>
  15282. <exception name="IOException" type="java.io.IOException"/>
  15283. <doc>
  15284. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  15285. @param bytes byte array with the encoded integer
  15286. @param start start index
  15287. @throws java.io.IOException
  15288. @return deserialized integer]]>
  15289. </doc>
  15290. </method>
  15291. <doc>
  15292. <![CDATA[A Comparator for {@link WritableComparable}s.
  15293. <p>This base implemenation uses the natural ordering. To define alternate
  15294. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  15295. <p>One may optimize compare-intensive operations by overriding
  15296. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  15297. provided to assist in optimized implementations of this method.]]>
  15298. </doc>
  15299. </class>
  15300. <!-- end class org.apache.hadoop.io.WritableComparator -->
  15301. <!-- start class org.apache.hadoop.io.WritableFactories -->
  15302. <class name="WritableFactories" extends="java.lang.Object"
  15303. abstract="false"
  15304. static="false" final="false" visibility="public"
  15305. deprecated="not deprecated">
  15306. <method name="setFactory"
  15307. abstract="false" native="false" synchronized="true"
  15308. static="true" final="false" visibility="public"
  15309. deprecated="not deprecated">
  15310. <param name="c" type="java.lang.Class"/>
  15311. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  15312. <doc>
  15313. <![CDATA[Define a factory for a class.]]>
  15314. </doc>
  15315. </method>
  15316. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  15317. abstract="false" native="false" synchronized="true"
  15318. static="true" final="false" visibility="public"
  15319. deprecated="not deprecated">
  15320. <param name="c" type="java.lang.Class"/>
  15321. <doc>
  15322. <![CDATA[Define a factory for a class.]]>
  15323. </doc>
  15324. </method>
  15325. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15326. abstract="false" native="false" synchronized="false"
  15327. static="true" final="false" visibility="public"
  15328. deprecated="not deprecated">
  15329. <param name="c" type="java.lang.Class"/>
  15330. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15331. <doc>
  15332. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15333. </doc>
  15334. </method>
  15335. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15336. abstract="false" native="false" synchronized="false"
  15337. static="true" final="false" visibility="public"
  15338. deprecated="not deprecated">
  15339. <param name="c" type="java.lang.Class"/>
  15340. <doc>
  15341. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15342. </doc>
  15343. </method>
  15344. <doc>
  15345. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  15346. ObjectWritable} to be able to construct instances of non-public classes.]]>
  15347. </doc>
  15348. </class>
  15349. <!-- end class org.apache.hadoop.io.WritableFactories -->
  15350. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  15351. <interface name="WritableFactory" abstract="true"
  15352. static="false" final="false" visibility="public"
  15353. deprecated="not deprecated">
  15354. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15355. abstract="false" native="false" synchronized="false"
  15356. static="false" final="false" visibility="public"
  15357. deprecated="not deprecated">
  15358. <doc>
  15359. <![CDATA[Return a new instance.]]>
  15360. </doc>
  15361. </method>
  15362. <doc>
  15363. <![CDATA[A factory for a class of Writable.
  15364. @see WritableFactories]]>
  15365. </doc>
  15366. </interface>
  15367. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  15368. <!-- start class org.apache.hadoop.io.WritableName -->
  15369. <class name="WritableName" extends="java.lang.Object"
  15370. abstract="false"
  15371. static="false" final="false" visibility="public"
  15372. deprecated="not deprecated">
  15373. <method name="setName"
  15374. abstract="false" native="false" synchronized="true"
  15375. static="true" final="false" visibility="public"
  15376. deprecated="not deprecated">
  15377. <param name="writableClass" type="java.lang.Class"/>
  15378. <param name="name" type="java.lang.String"/>
  15379. <doc>
  15380. <![CDATA[Set the name that a class should be known as to something other than the
  15381. class name.]]>
  15382. </doc>
  15383. </method>
  15384. <method name="addName"
  15385. abstract="false" native="false" synchronized="true"
  15386. static="true" final="false" visibility="public"
  15387. deprecated="not deprecated">
  15388. <param name="writableClass" type="java.lang.Class"/>
  15389. <param name="name" type="java.lang.String"/>
  15390. <doc>
  15391. <![CDATA[Add an alternate name for a class.]]>
  15392. </doc>
  15393. </method>
  15394. <method name="getName" return="java.lang.String"
  15395. abstract="false" native="false" synchronized="true"
  15396. static="true" final="false" visibility="public"
  15397. deprecated="not deprecated">
  15398. <param name="writableClass" type="java.lang.Class"/>
  15399. <doc>
  15400. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  15401. </doc>
  15402. </method>
  15403. <method name="getClass" return="java.lang.Class"
  15404. abstract="false" native="false" synchronized="true"
  15405. static="true" final="false" visibility="public"
  15406. deprecated="not deprecated">
  15407. <param name="name" type="java.lang.String"/>
  15408. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15409. <exception name="IOException" type="java.io.IOException"/>
  15410. <doc>
  15411. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  15412. </doc>
  15413. </method>
  15414. <doc>
  15415. <![CDATA[Utility to permit renaming of Writable implementation classes without
  15416. invalidiating files that contain their class name.]]>
  15417. </doc>
  15418. </class>
  15419. <!-- end class org.apache.hadoop.io.WritableName -->
  15420. <!-- start class org.apache.hadoop.io.WritableUtils -->
  15421. <class name="WritableUtils" extends="java.lang.Object"
  15422. abstract="false"
  15423. static="false" final="true" visibility="public"
  15424. deprecated="not deprecated">
  15425. <constructor name="WritableUtils"
  15426. static="false" final="false" visibility="public"
  15427. deprecated="not deprecated">
  15428. </constructor>
  15429. <method name="readCompressedByteArray" return="byte[]"
  15430. abstract="false" native="false" synchronized="false"
  15431. static="true" final="false" visibility="public"
  15432. deprecated="not deprecated">
  15433. <param name="in" type="java.io.DataInput"/>
  15434. <exception name="IOException" type="java.io.IOException"/>
  15435. </method>
  15436. <method name="skipCompressedByteArray"
  15437. abstract="false" native="false" synchronized="false"
  15438. static="true" final="false" visibility="public"
  15439. deprecated="not deprecated">
  15440. <param name="in" type="java.io.DataInput"/>
  15441. <exception name="IOException" type="java.io.IOException"/>
  15442. </method>
  15443. <method name="writeCompressedByteArray" return="int"
  15444. abstract="false" native="false" synchronized="false"
  15445. static="true" final="false" visibility="public"
  15446. deprecated="not deprecated">
  15447. <param name="out" type="java.io.DataOutput"/>
  15448. <param name="bytes" type="byte[]"/>
  15449. <exception name="IOException" type="java.io.IOException"/>
  15450. </method>
  15451. <method name="readCompressedString" return="java.lang.String"
  15452. abstract="false" native="false" synchronized="false"
  15453. static="true" final="false" visibility="public"
  15454. deprecated="not deprecated">
  15455. <param name="in" type="java.io.DataInput"/>
  15456. <exception name="IOException" type="java.io.IOException"/>
  15457. </method>
  15458. <method name="writeCompressedString" return="int"
  15459. abstract="false" native="false" synchronized="false"
  15460. static="true" final="false" visibility="public"
  15461. deprecated="not deprecated">
  15462. <param name="out" type="java.io.DataOutput"/>
  15463. <param name="s" type="java.lang.String"/>
  15464. <exception name="IOException" type="java.io.IOException"/>
  15465. </method>
  15466. <method name="writeString"
  15467. abstract="false" native="false" synchronized="false"
  15468. static="true" final="false" visibility="public"
  15469. deprecated="not deprecated">
  15470. <param name="out" type="java.io.DataOutput"/>
  15471. <param name="s" type="java.lang.String"/>
  15472. <exception name="IOException" type="java.io.IOException"/>
  15473. </method>
  15474. <method name="readString" return="java.lang.String"
  15475. abstract="false" native="false" synchronized="false"
  15476. static="true" final="false" visibility="public"
  15477. deprecated="not deprecated">
  15478. <param name="in" type="java.io.DataInput"/>
  15479. <exception name="IOException" type="java.io.IOException"/>
  15480. </method>
  15481. <method name="writeStringArray"
  15482. abstract="false" native="false" synchronized="false"
  15483. static="true" final="false" visibility="public"
  15484. deprecated="not deprecated">
  15485. <param name="out" type="java.io.DataOutput"/>
  15486. <param name="s" type="java.lang.String[]"/>
  15487. <exception name="IOException" type="java.io.IOException"/>
  15488. </method>
  15489. <method name="writeCompressedStringArray"
  15490. abstract="false" native="false" synchronized="false"
  15491. static="true" final="false" visibility="public"
  15492. deprecated="not deprecated">
  15493. <param name="out" type="java.io.DataOutput"/>
  15494. <param name="s" type="java.lang.String[]"/>
  15495. <exception name="IOException" type="java.io.IOException"/>
  15496. </method>
  15497. <method name="readStringArray" return="java.lang.String[]"
  15498. abstract="false" native="false" synchronized="false"
  15499. static="true" final="false" visibility="public"
  15500. deprecated="not deprecated">
  15501. <param name="in" type="java.io.DataInput"/>
  15502. <exception name="IOException" type="java.io.IOException"/>
  15503. </method>
  15504. <method name="readCompressedStringArray" return="java.lang.String[]"
  15505. abstract="false" native="false" synchronized="false"
  15506. static="true" final="false" visibility="public"
  15507. deprecated="not deprecated">
  15508. <param name="in" type="java.io.DataInput"/>
  15509. <exception name="IOException" type="java.io.IOException"/>
  15510. </method>
  15511. <method name="displayByteArray"
  15512. abstract="false" native="false" synchronized="false"
  15513. static="true" final="false" visibility="public"
  15514. deprecated="not deprecated">
  15515. <param name="record" type="byte[]"/>
  15516. </method>
  15517. <method name="clone" return="org.apache.hadoop.io.Writable"
  15518. abstract="false" native="false" synchronized="false"
  15519. static="true" final="false" visibility="public"
  15520. deprecated="not deprecated">
  15521. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  15522. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15523. <doc>
  15524. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  15525. @param orig The object to copy
  15526. @return The copied object]]>
  15527. </doc>
  15528. </method>
  15529. <method name="cloneInto"
  15530. abstract="false" native="false" synchronized="false"
  15531. static="true" final="false" visibility="public"
  15532. deprecated="use ReflectionUtils.cloneInto instead.">
  15533. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  15534. <param name="src" type="org.apache.hadoop.io.Writable"/>
  15535. <exception name="IOException" type="java.io.IOException"/>
  15536. <doc>
  15537. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  15538. @param dst the object to copy from
  15539. @param src the object to copy into, which is destroyed
  15540. @throws IOException
  15541. @deprecated use ReflectionUtils.cloneInto instead.]]>
  15542. </doc>
  15543. </method>
  15544. <method name="writeVInt"
  15545. abstract="false" native="false" synchronized="false"
  15546. static="true" final="false" visibility="public"
  15547. deprecated="not deprecated">
  15548. <param name="stream" type="java.io.DataOutput"/>
  15549. <param name="i" type="int"/>
  15550. <exception name="IOException" type="java.io.IOException"/>
  15551. <doc>
  15552. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  15553. For -120 <= i <= 127, only one byte is used with the actual value.
  15554. For other values of i, the first byte value indicates whether the
  15555. integer is positive or negative, and the number of bytes that follow.
  15556. If the first byte value v is between -121 and -124, the following integer
  15557. is positive, with number of bytes that follow are -(v+120).
  15558. If the first byte value v is between -125 and -128, the following integer
  15559. is negative, with number of bytes that follow are -(v+124). Bytes are
  15560. stored in the high-non-zero-byte-first order.
  15561. @param stream Binary output stream
  15562. @param i Integer to be serialized
  15563. @throws java.io.IOException]]>
  15564. </doc>
  15565. </method>
  15566. <method name="writeVLong"
  15567. abstract="false" native="false" synchronized="false"
  15568. static="true" final="false" visibility="public"
  15569. deprecated="not deprecated">
  15570. <param name="stream" type="java.io.DataOutput"/>
  15571. <param name="i" type="long"/>
  15572. <exception name="IOException" type="java.io.IOException"/>
  15573. <doc>
  15574. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  15575. For -112 <= i <= 127, only one byte is used with the actual value.
  15576. For other values of i, the first byte value indicates whether the
  15577. long is positive or negative, and the number of bytes that follow.
  15578. If the first byte value v is between -113 and -120, the following long
  15579. is positive, with number of bytes that follow are -(v+112).
  15580. If the first byte value v is between -121 and -128, the following long
  15581. is negative, with number of bytes that follow are -(v+120). Bytes are
  15582. stored in the high-non-zero-byte-first order.
  15583. @param stream Binary output stream
  15584. @param i Long to be serialized
  15585. @throws java.io.IOException]]>
  15586. </doc>
  15587. </method>
  15588. <method name="readVLong" return="long"
  15589. abstract="false" native="false" synchronized="false"
  15590. static="true" final="false" visibility="public"
  15591. deprecated="not deprecated">
  15592. <param name="stream" type="java.io.DataInput"/>
  15593. <exception name="IOException" type="java.io.IOException"/>
  15594. <doc>
  15595. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  15596. @param stream Binary input stream
  15597. @throws java.io.IOException
  15598. @return deserialized long from stream.]]>
  15599. </doc>
  15600. </method>
  15601. <method name="readVInt" return="int"
  15602. abstract="false" native="false" synchronized="false"
  15603. static="true" final="false" visibility="public"
  15604. deprecated="not deprecated">
  15605. <param name="stream" type="java.io.DataInput"/>
  15606. <exception name="IOException" type="java.io.IOException"/>
  15607. <doc>
  15608. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  15609. @param stream Binary input stream
  15610. @throws java.io.IOException
  15611. @return deserialized integer from stream.]]>
  15612. </doc>
  15613. </method>
  15614. <method name="isNegativeVInt" return="boolean"
  15615. abstract="false" native="false" synchronized="false"
  15616. static="true" final="false" visibility="public"
  15617. deprecated="not deprecated">
  15618. <param name="value" type="byte"/>
  15619. <doc>
  15620. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  15621. @param value the first byte
  15622. @return is the value negative]]>
  15623. </doc>
  15624. </method>
  15625. <method name="decodeVIntSize" return="int"
  15626. abstract="false" native="false" synchronized="false"
  15627. static="true" final="false" visibility="public"
  15628. deprecated="not deprecated">
  15629. <param name="value" type="byte"/>
  15630. <doc>
  15631. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  15632. @param value the first byte of the vint/vlong
  15633. @return the total number of bytes (1 to 9)]]>
  15634. </doc>
  15635. </method>
  15636. <method name="getVIntSize" return="int"
  15637. abstract="false" native="false" synchronized="false"
  15638. static="true" final="false" visibility="public"
  15639. deprecated="not deprecated">
  15640. <param name="i" type="long"/>
  15641. <doc>
  15642. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  15643. @return the encoded length]]>
  15644. </doc>
  15645. </method>
  15646. <method name="readEnum" return="java.lang.Enum"
  15647. abstract="false" native="false" synchronized="false"
  15648. static="true" final="false" visibility="public"
  15649. deprecated="not deprecated">
  15650. <param name="in" type="java.io.DataInput"/>
  15651. <param name="enumType" type="java.lang.Class"/>
  15652. <exception name="IOException" type="java.io.IOException"/>
  15653. <doc>
  15654. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  15655. using String values.
  15656. @param <T> Enum type
  15657. @param in DataInput to read from
  15658. @param enumType Class type of Enum
  15659. @return Enum represented by String read from DataInput
  15660. @throws IOException]]>
  15661. </doc>
  15662. </method>
  15663. <method name="writeEnum"
  15664. abstract="false" native="false" synchronized="false"
  15665. static="true" final="false" visibility="public"
  15666. deprecated="not deprecated">
  15667. <param name="out" type="java.io.DataOutput"/>
  15668. <param name="enumVal" type="java.lang.Enum"/>
  15669. <exception name="IOException" type="java.io.IOException"/>
  15670. <doc>
  15671. <![CDATA[writes String value of enum to DataOutput.
  15672. @param out Dataoutput stream
  15673. @param enumVal enum value
  15674. @throws IOException]]>
  15675. </doc>
  15676. </method>
  15677. <method name="skipFully"
  15678. abstract="false" native="false" synchronized="false"
  15679. static="true" final="false" visibility="public"
  15680. deprecated="not deprecated">
  15681. <param name="in" type="java.io.DataInput"/>
  15682. <param name="len" type="int"/>
  15683. <exception name="IOException" type="java.io.IOException"/>
  15684. <doc>
  15685. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  15686. @param in input stream
  15687. @param len number of bytes to skip
  15688. @throws IOException when skipped less number of bytes]]>
  15689. </doc>
  15690. </method>
  15691. <method name="toByteArray" return="byte[]"
  15692. abstract="false" native="false" synchronized="false"
  15693. static="true" final="false" visibility="public"
  15694. deprecated="not deprecated">
  15695. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  15696. <doc>
  15697. <![CDATA[Convert writables to a byte array]]>
  15698. </doc>
  15699. </method>
  15700. </class>
  15701. <!-- end class org.apache.hadoop.io.WritableUtils -->
  15702. </package>
  15703. <package name="org.apache.hadoop.io.compress">
  15704. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  15705. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  15706. abstract="false"
  15707. static="false" final="false" visibility="public"
  15708. deprecated="not deprecated">
  15709. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  15710. static="false" final="false" visibility="public"
  15711. deprecated="not deprecated">
  15712. <doc>
  15713. <![CDATA[Create a {@link BlockCompressorStream}.
  15714. @param out stream
  15715. @param compressor compressor to be used
  15716. @param bufferSize size of buffer
  15717. @param compressionOverhead maximum 'overhead' of the compression
  15718. algorithm with given bufferSize]]>
  15719. </doc>
  15720. </constructor>
  15721. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  15722. static="false" final="false" visibility="public"
  15723. deprecated="not deprecated">
  15724. <doc>
  15725. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  15726. compressor.
  15727. Use default of 512 as bufferSize and compressionOverhead of
  15728. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  15729. @param out stream
  15730. @param compressor compressor to be used]]>
  15731. </doc>
  15732. </constructor>
  15733. <method name="write"
  15734. abstract="false" native="false" synchronized="false"
  15735. static="false" final="false" visibility="public"
  15736. deprecated="not deprecated">
  15737. <param name="b" type="byte[]"/>
  15738. <param name="off" type="int"/>
  15739. <param name="len" type="int"/>
  15740. <exception name="IOException" type="java.io.IOException"/>
  15741. <doc>
  15742. <![CDATA[Write the data provided to the compression codec, compressing no more
  15743. than the buffer size less the compression overhead as specified during
  15744. construction for each block.
  15745. Each block contains the uncompressed length for the block, followed by
  15746. one or more length-prefixed blocks of compressed data.]]>
  15747. </doc>
  15748. </method>
  15749. <method name="finish"
  15750. abstract="false" native="false" synchronized="false"
  15751. static="false" final="false" visibility="public"
  15752. deprecated="not deprecated">
  15753. <exception name="IOException" type="java.io.IOException"/>
  15754. </method>
  15755. <method name="compress"
  15756. abstract="false" native="false" synchronized="false"
  15757. static="false" final="false" visibility="protected"
  15758. deprecated="not deprecated">
  15759. <exception name="IOException" type="java.io.IOException"/>
  15760. </method>
  15761. <doc>
  15762. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  15763. with 'block-based' based compression algorithms, as opposed to
  15764. 'stream-based' compression algorithms.
  15765. It should be noted that this wrapper does not guarantee that blocks will
  15766. be sized for the compressor. If the
  15767. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  15768. effect meaningful compression, it is responsible for it.]]>
  15769. </doc>
  15770. </class>
  15771. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  15772. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  15773. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  15774. abstract="false"
  15775. static="false" final="false" visibility="public"
  15776. deprecated="not deprecated">
  15777. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  15778. static="false" final="false" visibility="public"
  15779. deprecated="not deprecated">
  15780. <doc>
  15781. <![CDATA[Create a {@link BlockDecompressorStream}.
  15782. @param in input stream
  15783. @param decompressor decompressor to use
  15784. @param bufferSize size of buffer]]>
  15785. </doc>
  15786. </constructor>
  15787. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  15788. static="false" final="false" visibility="public"
  15789. deprecated="not deprecated">
  15790. <doc>
  15791. <![CDATA[Create a {@link BlockDecompressorStream}.
  15792. @param in input stream
  15793. @param decompressor decompressor to use]]>
  15794. </doc>
  15795. </constructor>
  15796. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  15797. static="false" final="false" visibility="protected"
  15798. deprecated="not deprecated">
  15799. </constructor>
  15800. <method name="decompress" return="int"
  15801. abstract="false" native="false" synchronized="false"
  15802. static="false" final="false" visibility="protected"
  15803. deprecated="not deprecated">
  15804. <param name="b" type="byte[]"/>
  15805. <param name="off" type="int"/>
  15806. <param name="len" type="int"/>
  15807. <exception name="IOException" type="java.io.IOException"/>
  15808. </method>
  15809. <method name="getCompressedData" return="int"
  15810. abstract="false" native="false" synchronized="false"
  15811. static="false" final="false" visibility="protected"
  15812. deprecated="not deprecated">
  15813. <exception name="IOException" type="java.io.IOException"/>
  15814. </method>
  15815. <method name="resetState"
  15816. abstract="false" native="false" synchronized="false"
  15817. static="false" final="false" visibility="public"
  15818. deprecated="not deprecated">
  15819. <exception name="IOException" type="java.io.IOException"/>
  15820. </method>
  15821. <doc>
  15822. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  15823. with 'block-based' based compression algorithms, as opposed to
  15824. 'stream-based' compression algorithms.]]>
  15825. </doc>
  15826. </class>
  15827. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  15828. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  15829. <class name="BZip2Codec" extends="java.lang.Object"
  15830. abstract="false"
  15831. static="false" final="false" visibility="public"
  15832. deprecated="not deprecated">
  15833. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  15834. <constructor name="BZip2Codec"
  15835. static="false" final="false" visibility="public"
  15836. deprecated="not deprecated">
  15837. <doc>
  15838. <![CDATA[Creates a new instance of BZip2Codec]]>
  15839. </doc>
  15840. </constructor>
  15841. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15842. abstract="false" native="false" synchronized="false"
  15843. static="false" final="false" visibility="public"
  15844. deprecated="not deprecated">
  15845. <param name="out" type="java.io.OutputStream"/>
  15846. <exception name="IOException" type="java.io.IOException"/>
  15847. <doc>
  15848. <![CDATA[Creates CompressionOutputStream for BZip2
  15849. @param out
  15850. The output Stream
  15851. @return The BZip2 CompressionOutputStream
  15852. @throws java.io.IOException
  15853. Throws IO exception]]>
  15854. </doc>
  15855. </method>
  15856. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15857. abstract="false" native="false" synchronized="false"
  15858. static="false" final="false" visibility="public"
  15859. deprecated="not deprecated">
  15860. <param name="out" type="java.io.OutputStream"/>
  15861. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15862. <exception name="IOException" type="java.io.IOException"/>
  15863. <doc>
  15864. <![CDATA[This functionality is currently not supported.
  15865. @throws java.lang.UnsupportedOperationException
  15866. Throws UnsupportedOperationException]]>
  15867. </doc>
  15868. </method>
  15869. <method name="getCompressorType" return="java.lang.Class"
  15870. abstract="false" native="false" synchronized="false"
  15871. static="false" final="false" visibility="public"
  15872. deprecated="not deprecated">
  15873. <doc>
  15874. <![CDATA[This functionality is currently not supported.
  15875. @throws java.lang.UnsupportedOperationException
  15876. Throws UnsupportedOperationException]]>
  15877. </doc>
  15878. </method>
  15879. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15880. abstract="false" native="false" synchronized="false"
  15881. static="false" final="false" visibility="public"
  15882. deprecated="not deprecated">
  15883. <doc>
  15884. <![CDATA[This functionality is currently not supported.
  15885. @throws java.lang.UnsupportedOperationException
  15886. Throws UnsupportedOperationException]]>
  15887. </doc>
  15888. </method>
  15889. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15890. abstract="false" native="false" synchronized="false"
  15891. static="false" final="false" visibility="public"
  15892. deprecated="not deprecated">
  15893. <param name="in" type="java.io.InputStream"/>
  15894. <exception name="IOException" type="java.io.IOException"/>
  15895. <doc>
  15896. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  15897. @param in
  15898. The InputStream
  15899. @return Returns CompressionInputStream for BZip2
  15900. @throws java.io.IOException
  15901. Throws IOException]]>
  15902. </doc>
  15903. </method>
  15904. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15905. abstract="false" native="false" synchronized="false"
  15906. static="false" final="false" visibility="public"
  15907. deprecated="not deprecated">
  15908. <param name="in" type="java.io.InputStream"/>
  15909. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15910. <exception name="IOException" type="java.io.IOException"/>
  15911. <doc>
  15912. <![CDATA[This functionality is currently not supported.
  15913. @throws java.lang.UnsupportedOperationException
  15914. Throws UnsupportedOperationException]]>
  15915. </doc>
  15916. </method>
  15917. <method name="getDecompressorType" return="java.lang.Class"
  15918. abstract="false" native="false" synchronized="false"
  15919. static="false" final="false" visibility="public"
  15920. deprecated="not deprecated">
  15921. <doc>
  15922. <![CDATA[This functionality is currently not supported.
  15923. @throws java.lang.UnsupportedOperationException
  15924. Throws UnsupportedOperationException]]>
  15925. </doc>
  15926. </method>
  15927. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15928. abstract="false" native="false" synchronized="false"
  15929. static="false" final="false" visibility="public"
  15930. deprecated="not deprecated">
  15931. <doc>
  15932. <![CDATA[This functionality is currently not supported.
  15933. @throws java.lang.UnsupportedOperationException
  15934. Throws UnsupportedOperationException]]>
  15935. </doc>
  15936. </method>
  15937. <method name="getDefaultExtension" return="java.lang.String"
  15938. abstract="false" native="false" synchronized="false"
  15939. static="false" final="false" visibility="public"
  15940. deprecated="not deprecated">
  15941. <doc>
  15942. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  15943. @return A String telling the default bzip2 file extension]]>
  15944. </doc>
  15945. </method>
  15946. <doc>
  15947. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  15948. compression and decompression. Currently we dont have an implementation of
  15949. the Compressor and Decompressor interfaces, so those methods of
  15950. CompressionCodec which have a Compressor or Decompressor type argument, throw
  15951. UnsupportedOperationException.]]>
  15952. </doc>
  15953. </class>
  15954. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  15955. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  15956. <class name="CodecPool" extends="java.lang.Object"
  15957. abstract="false"
  15958. static="false" final="false" visibility="public"
  15959. deprecated="not deprecated">
  15960. <constructor name="CodecPool"
  15961. static="false" final="false" visibility="public"
  15962. deprecated="not deprecated">
  15963. </constructor>
  15964. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15965. abstract="false" native="false" synchronized="false"
  15966. static="true" final="false" visibility="public"
  15967. deprecated="not deprecated">
  15968. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  15969. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15970. <doc>
  15971. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  15972. pool or a new one.
  15973. @param codec the <code>CompressionCodec</code> for which to get the
  15974. <code>Compressor</code>
  15975. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  15976. @return <code>Compressor</code> for the given
  15977. <code>CompressionCodec</code> from the pool or a new one]]>
  15978. </doc>
  15979. </method>
  15980. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15981. abstract="false" native="false" synchronized="false"
  15982. static="true" final="false" visibility="public"
  15983. deprecated="not deprecated">
  15984. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  15985. </method>
  15986. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15987. abstract="false" native="false" synchronized="false"
  15988. static="true" final="false" visibility="public"
  15989. deprecated="not deprecated">
  15990. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  15991. <doc>
  15992. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  15993. pool or a new one.
  15994. @param codec the <code>CompressionCodec</code> for which to get the
  15995. <code>Decompressor</code>
  15996. @return <code>Decompressor</code> for the given
  15997. <code>CompressionCodec</code> the pool or a new one]]>
  15998. </doc>
  15999. </method>
  16000. <method name="returnCompressor"
  16001. abstract="false" native="false" synchronized="false"
  16002. static="true" final="false" visibility="public"
  16003. deprecated="not deprecated">
  16004. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16005. <doc>
  16006. <![CDATA[Return the {@link Compressor} to the pool.
  16007. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  16008. </doc>
  16009. </method>
  16010. <method name="returnDecompressor"
  16011. abstract="false" native="false" synchronized="false"
  16012. static="true" final="false" visibility="public"
  16013. deprecated="not deprecated">
  16014. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16015. <doc>
  16016. <![CDATA[Return the {@link Decompressor} to the pool.
  16017. @param decompressor the <code>Decompressor</code> to be returned to the
  16018. pool]]>
  16019. </doc>
  16020. </method>
  16021. <doc>
  16022. <![CDATA[A global compressor/decompressor pool used to save and reuse
  16023. (possibly native) compression/decompression codecs.]]>
  16024. </doc>
  16025. </class>
  16026. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  16027. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  16028. <interface name="CompressionCodec" abstract="true"
  16029. static="false" final="false" visibility="public"
  16030. deprecated="not deprecated">
  16031. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16032. abstract="false" native="false" synchronized="false"
  16033. static="false" final="false" visibility="public"
  16034. deprecated="not deprecated">
  16035. <param name="out" type="java.io.OutputStream"/>
  16036. <exception name="IOException" type="java.io.IOException"/>
  16037. <doc>
  16038. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16039. {@link OutputStream}.
  16040. @param out the location for the final output stream
  16041. @return a stream the user can write uncompressed data to have it compressed
  16042. @throws IOException]]>
  16043. </doc>
  16044. </method>
  16045. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16046. abstract="false" native="false" synchronized="false"
  16047. static="false" final="false" visibility="public"
  16048. deprecated="not deprecated">
  16049. <param name="out" type="java.io.OutputStream"/>
  16050. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16051. <exception name="IOException" type="java.io.IOException"/>
  16052. <doc>
  16053. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16054. {@link OutputStream} with the given {@link Compressor}.
  16055. @param out the location for the final output stream
  16056. @param compressor compressor to use
  16057. @return a stream the user can write uncompressed data to have it compressed
  16058. @throws IOException]]>
  16059. </doc>
  16060. </method>
  16061. <method name="getCompressorType" return="java.lang.Class"
  16062. abstract="false" native="false" synchronized="false"
  16063. static="false" final="false" visibility="public"
  16064. deprecated="not deprecated">
  16065. <doc>
  16066. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  16067. @return the type of compressor needed by this codec.]]>
  16068. </doc>
  16069. </method>
  16070. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16071. abstract="false" native="false" synchronized="false"
  16072. static="false" final="false" visibility="public"
  16073. deprecated="not deprecated">
  16074. <doc>
  16075. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  16076. @return a new compressor for use by this codec]]>
  16077. </doc>
  16078. </method>
  16079. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16080. abstract="false" native="false" synchronized="false"
  16081. static="false" final="false" visibility="public"
  16082. deprecated="not deprecated">
  16083. <param name="in" type="java.io.InputStream"/>
  16084. <exception name="IOException" type="java.io.IOException"/>
  16085. <doc>
  16086. <![CDATA[Create a stream decompressor that will read from the given input stream.
  16087. @param in the stream to read compressed bytes from
  16088. @return a stream to read uncompressed bytes from
  16089. @throws IOException]]>
  16090. </doc>
  16091. </method>
  16092. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16093. abstract="false" native="false" synchronized="false"
  16094. static="false" final="false" visibility="public"
  16095. deprecated="not deprecated">
  16096. <param name="in" type="java.io.InputStream"/>
  16097. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16098. <exception name="IOException" type="java.io.IOException"/>
  16099. <doc>
  16100. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  16101. {@link InputStream} with the given {@link Decompressor}.
  16102. @param in the stream to read compressed bytes from
  16103. @param decompressor decompressor to use
  16104. @return a stream to read uncompressed bytes from
  16105. @throws IOException]]>
  16106. </doc>
  16107. </method>
  16108. <method name="getDecompressorType" return="java.lang.Class"
  16109. abstract="false" native="false" synchronized="false"
  16110. static="false" final="false" visibility="public"
  16111. deprecated="not deprecated">
  16112. <doc>
  16113. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  16114. @return the type of decompressor needed by this codec.]]>
  16115. </doc>
  16116. </method>
  16117. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16118. abstract="false" native="false" synchronized="false"
  16119. static="false" final="false" visibility="public"
  16120. deprecated="not deprecated">
  16121. <doc>
  16122. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  16123. @return a new decompressor for use by this codec]]>
  16124. </doc>
  16125. </method>
  16126. <method name="getDefaultExtension" return="java.lang.String"
  16127. abstract="false" native="false" synchronized="false"
  16128. static="false" final="false" visibility="public"
  16129. deprecated="not deprecated">
  16130. <doc>
  16131. <![CDATA[Get the default filename extension for this kind of compression.
  16132. @return the extension including the '.']]>
  16133. </doc>
  16134. </method>
  16135. <doc>
  16136. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  16137. </doc>
  16138. </interface>
  16139. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  16140. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16141. <class name="CompressionCodecFactory" extends="java.lang.Object"
  16142. abstract="false"
  16143. static="false" final="false" visibility="public"
  16144. deprecated="not deprecated">
  16145. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  16146. static="false" final="false" visibility="public"
  16147. deprecated="not deprecated">
  16148. <doc>
  16149. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  16150. and register them. Defaults to gzip and zip.]]>
  16151. </doc>
  16152. </constructor>
  16153. <method name="toString" return="java.lang.String"
  16154. abstract="false" native="false" synchronized="false"
  16155. static="false" final="false" visibility="public"
  16156. deprecated="not deprecated">
  16157. <doc>
  16158. <![CDATA[Print the extension map out as a string.]]>
  16159. </doc>
  16160. </method>
  16161. <method name="getCodecClasses" return="java.util.List"
  16162. abstract="false" native="false" synchronized="false"
  16163. static="true" final="false" visibility="public"
  16164. deprecated="not deprecated">
  16165. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16166. <doc>
  16167. <![CDATA[Get the list of codecs listed in the configuration
  16168. @param conf the configuration to look in
  16169. @return a list of the Configuration classes or null if the attribute
  16170. was not set]]>
  16171. </doc>
  16172. </method>
  16173. <method name="setCodecClasses"
  16174. abstract="false" native="false" synchronized="false"
  16175. static="true" final="false" visibility="public"
  16176. deprecated="not deprecated">
  16177. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16178. <param name="classes" type="java.util.List"/>
  16179. <doc>
  16180. <![CDATA[Sets a list of codec classes in the configuration.
  16181. @param conf the configuration to modify
  16182. @param classes the list of classes to set]]>
  16183. </doc>
  16184. </method>
  16185. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  16186. abstract="false" native="false" synchronized="false"
  16187. static="false" final="false" visibility="public"
  16188. deprecated="not deprecated">
  16189. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16190. <doc>
  16191. <![CDATA[Find the relevant compression codec for the given file based on its
  16192. filename suffix.
  16193. @param file the filename to check
  16194. @return the codec object]]>
  16195. </doc>
  16196. </method>
  16197. <method name="removeSuffix" return="java.lang.String"
  16198. abstract="false" native="false" synchronized="false"
  16199. static="true" final="false" visibility="public"
  16200. deprecated="not deprecated">
  16201. <param name="filename" type="java.lang.String"/>
  16202. <param name="suffix" type="java.lang.String"/>
  16203. <doc>
  16204. <![CDATA[Removes a suffix from a filename, if it has it.
  16205. @param filename the filename to strip
  16206. @param suffix the suffix to remove
  16207. @return the shortened filename]]>
  16208. </doc>
  16209. </method>
  16210. <method name="main"
  16211. abstract="false" native="false" synchronized="false"
  16212. static="true" final="false" visibility="public"
  16213. deprecated="not deprecated">
  16214. <param name="args" type="java.lang.String[]"/>
  16215. <exception name="Exception" type="java.lang.Exception"/>
  16216. <doc>
  16217. <![CDATA[A little test program.
  16218. @param args]]>
  16219. </doc>
  16220. </method>
  16221. <field name="LOG" type="org.apache.commons.logging.Log"
  16222. transient="false" volatile="false"
  16223. static="true" final="true" visibility="public"
  16224. deprecated="not deprecated">
  16225. </field>
  16226. <doc>
  16227. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  16228. </doc>
  16229. </class>
  16230. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16231. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  16232. <class name="CompressionInputStream" extends="java.io.InputStream"
  16233. abstract="true"
  16234. static="false" final="false" visibility="public"
  16235. deprecated="not deprecated">
  16236. <constructor name="CompressionInputStream" type="java.io.InputStream"
  16237. static="false" final="false" visibility="protected"
  16238. deprecated="not deprecated">
  16239. <doc>
  16240. <![CDATA[Create a compression input stream that reads
  16241. the decompressed bytes from the given stream.
  16242. @param in The input stream to be compressed.]]>
  16243. </doc>
  16244. </constructor>
  16245. <method name="close"
  16246. abstract="false" native="false" synchronized="false"
  16247. static="false" final="false" visibility="public"
  16248. deprecated="not deprecated">
  16249. <exception name="IOException" type="java.io.IOException"/>
  16250. </method>
  16251. <method name="read" return="int"
  16252. abstract="true" native="false" synchronized="false"
  16253. static="false" final="false" visibility="public"
  16254. deprecated="not deprecated">
  16255. <param name="b" type="byte[]"/>
  16256. <param name="off" type="int"/>
  16257. <param name="len" type="int"/>
  16258. <exception name="IOException" type="java.io.IOException"/>
  16259. <doc>
  16260. <![CDATA[Read bytes from the stream.
  16261. Made abstract to prevent leakage to underlying stream.]]>
  16262. </doc>
  16263. </method>
  16264. <method name="resetState"
  16265. abstract="true" native="false" synchronized="false"
  16266. static="false" final="false" visibility="public"
  16267. deprecated="not deprecated">
  16268. <exception name="IOException" type="java.io.IOException"/>
  16269. <doc>
  16270. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  16271. as the underlying stream may have been repositioned.]]>
  16272. </doc>
  16273. </method>
  16274. <field name="in" type="java.io.InputStream"
  16275. transient="false" volatile="false"
  16276. static="false" final="true" visibility="protected"
  16277. deprecated="not deprecated">
  16278. <doc>
  16279. <![CDATA[The input stream to be compressed.]]>
  16280. </doc>
  16281. </field>
  16282. <doc>
  16283. <![CDATA[A compression input stream.
  16284. <p>Implementations are assumed to be buffered. This permits clients to
  16285. reposition the underlying input stream then call {@link #resetState()},
  16286. without having to also synchronize client buffers.]]>
  16287. </doc>
  16288. </class>
  16289. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  16290. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16291. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  16292. abstract="true"
  16293. static="false" final="false" visibility="public"
  16294. deprecated="not deprecated">
  16295. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  16296. static="false" final="false" visibility="protected"
  16297. deprecated="not deprecated">
  16298. <doc>
  16299. <![CDATA[Create a compression output stream that writes
  16300. the compressed bytes to the given stream.
  16301. @param out]]>
  16302. </doc>
  16303. </constructor>
  16304. <method name="close"
  16305. abstract="false" native="false" synchronized="false"
  16306. static="false" final="false" visibility="public"
  16307. deprecated="not deprecated">
  16308. <exception name="IOException" type="java.io.IOException"/>
  16309. </method>
  16310. <method name="flush"
  16311. abstract="false" native="false" synchronized="false"
  16312. static="false" final="false" visibility="public"
  16313. deprecated="not deprecated">
  16314. <exception name="IOException" type="java.io.IOException"/>
  16315. </method>
  16316. <method name="write"
  16317. abstract="true" native="false" synchronized="false"
  16318. static="false" final="false" visibility="public"
  16319. deprecated="not deprecated">
  16320. <param name="b" type="byte[]"/>
  16321. <param name="off" type="int"/>
  16322. <param name="len" type="int"/>
  16323. <exception name="IOException" type="java.io.IOException"/>
  16324. <doc>
  16325. <![CDATA[Write compressed bytes to the stream.
  16326. Made abstract to prevent leakage to underlying stream.]]>
  16327. </doc>
  16328. </method>
  16329. <method name="finish"
  16330. abstract="true" native="false" synchronized="false"
  16331. static="false" final="false" visibility="public"
  16332. deprecated="not deprecated">
  16333. <exception name="IOException" type="java.io.IOException"/>
  16334. <doc>
  16335. <![CDATA[Finishes writing compressed data to the output stream
  16336. without closing the underlying stream.]]>
  16337. </doc>
  16338. </method>
  16339. <method name="resetState"
  16340. abstract="true" native="false" synchronized="false"
  16341. static="false" final="false" visibility="public"
  16342. deprecated="not deprecated">
  16343. <exception name="IOException" type="java.io.IOException"/>
  16344. <doc>
  16345. <![CDATA[Reset the compression to the initial state.
  16346. Does not reset the underlying stream.]]>
  16347. </doc>
  16348. </method>
  16349. <field name="out" type="java.io.OutputStream"
  16350. transient="false" volatile="false"
  16351. static="false" final="true" visibility="protected"
  16352. deprecated="not deprecated">
  16353. <doc>
  16354. <![CDATA[The output stream to be compressed.]]>
  16355. </doc>
  16356. </field>
  16357. <doc>
  16358. <![CDATA[A compression output stream.]]>
  16359. </doc>
  16360. </class>
  16361. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16362. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  16363. <interface name="Compressor" abstract="true"
  16364. static="false" final="false" visibility="public"
  16365. deprecated="not deprecated">
  16366. <method name="setInput"
  16367. abstract="false" native="false" synchronized="false"
  16368. static="false" final="false" visibility="public"
  16369. deprecated="not deprecated">
  16370. <param name="b" type="byte[]"/>
  16371. <param name="off" type="int"/>
  16372. <param name="len" type="int"/>
  16373. <doc>
  16374. <![CDATA[Sets input data for compression.
  16375. This should be called whenever #needsInput() returns
  16376. <code>true</code> indicating that more input data is required.
  16377. @param b Input data
  16378. @param off Start offset
  16379. @param len Length]]>
  16380. </doc>
  16381. </method>
  16382. <method name="needsInput" return="boolean"
  16383. abstract="false" native="false" synchronized="false"
  16384. static="false" final="false" visibility="public"
  16385. deprecated="not deprecated">
  16386. <doc>
  16387. <![CDATA[Returns true if the input data buffer is empty and
  16388. #setInput() should be called to provide more input.
  16389. @return <code>true</code> if the input data buffer is empty and
  16390. #setInput() should be called in order to provide more input.]]>
  16391. </doc>
  16392. </method>
  16393. <method name="setDictionary"
  16394. abstract="false" native="false" synchronized="false"
  16395. static="false" final="false" visibility="public"
  16396. deprecated="not deprecated">
  16397. <param name="b" type="byte[]"/>
  16398. <param name="off" type="int"/>
  16399. <param name="len" type="int"/>
  16400. <doc>
  16401. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  16402. is used when the history buffer can be predetermined.
  16403. @param b Dictionary data bytes
  16404. @param off Start offset
  16405. @param len Length]]>
  16406. </doc>
  16407. </method>
  16408. <method name="getBytesRead" return="long"
  16409. abstract="false" native="false" synchronized="false"
  16410. static="false" final="false" visibility="public"
  16411. deprecated="not deprecated">
  16412. <doc>
  16413. <![CDATA[Return number of uncompressed bytes input so far.]]>
  16414. </doc>
  16415. </method>
  16416. <method name="getBytesWritten" return="long"
  16417. abstract="false" native="false" synchronized="false"
  16418. static="false" final="false" visibility="public"
  16419. deprecated="not deprecated">
  16420. <doc>
  16421. <![CDATA[Return number of compressed bytes output so far.]]>
  16422. </doc>
  16423. </method>
  16424. <method name="finish"
  16425. abstract="false" native="false" synchronized="false"
  16426. static="false" final="false" visibility="public"
  16427. deprecated="not deprecated">
  16428. <doc>
  16429. <![CDATA[When called, indicates that compression should end
  16430. with the current contents of the input buffer.]]>
  16431. </doc>
  16432. </method>
  16433. <method name="finished" return="boolean"
  16434. abstract="false" native="false" synchronized="false"
  16435. static="false" final="false" visibility="public"
  16436. deprecated="not deprecated">
  16437. <doc>
  16438. <![CDATA[Returns true if the end of the compressed
  16439. data output stream has been reached.
  16440. @return <code>true</code> if the end of the compressed
  16441. data output stream has been reached.]]>
  16442. </doc>
  16443. </method>
  16444. <method name="compress" return="int"
  16445. abstract="false" native="false" synchronized="false"
  16446. static="false" final="false" visibility="public"
  16447. deprecated="not deprecated">
  16448. <param name="b" type="byte[]"/>
  16449. <param name="off" type="int"/>
  16450. <param name="len" type="int"/>
  16451. <exception name="IOException" type="java.io.IOException"/>
  16452. <doc>
  16453. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  16454. of bytes of compressed data. A return value of 0 indicates that
  16455. needsInput() should be called in order to determine if more input
  16456. data is required.
  16457. @param b Buffer for the compressed data
  16458. @param off Start offset of the data
  16459. @param len Size of the buffer
  16460. @return The actual number of bytes of compressed data.]]>
  16461. </doc>
  16462. </method>
  16463. <method name="reset"
  16464. abstract="false" native="false" synchronized="false"
  16465. static="false" final="false" visibility="public"
  16466. deprecated="not deprecated">
  16467. <doc>
  16468. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  16469. </doc>
  16470. </method>
  16471. <method name="end"
  16472. abstract="false" native="false" synchronized="false"
  16473. static="false" final="false" visibility="public"
  16474. deprecated="not deprecated">
  16475. <doc>
  16476. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  16477. </doc>
  16478. </method>
  16479. <method name="reinit"
  16480. abstract="false" native="false" synchronized="false"
  16481. static="false" final="false" visibility="public"
  16482. deprecated="not deprecated">
  16483. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16484. <doc>
  16485. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  16486. the given Configuration
  16487. @param conf Configuration from which new setting are fetched]]>
  16488. </doc>
  16489. </method>
  16490. <doc>
  16491. <![CDATA[Specification of a stream-based 'compressor' which can be
  16492. plugged into a {@link CompressionOutputStream} to compress data.
  16493. This is modelled after {@link java.util.zip.Deflater}]]>
  16494. </doc>
  16495. </interface>
  16496. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  16497. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  16498. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  16499. abstract="false"
  16500. static="false" final="false" visibility="public"
  16501. deprecated="not deprecated">
  16502. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  16503. static="false" final="false" visibility="public"
  16504. deprecated="not deprecated">
  16505. </constructor>
  16506. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  16507. static="false" final="false" visibility="public"
  16508. deprecated="not deprecated">
  16509. </constructor>
  16510. <constructor name="CompressorStream" type="java.io.OutputStream"
  16511. static="false" final="false" visibility="protected"
  16512. deprecated="not deprecated">
  16513. <doc>
  16514. <![CDATA[Allow derived classes to directly set the underlying stream.
  16515. @param out Underlying output stream.]]>
  16516. </doc>
  16517. </constructor>
  16518. <method name="write"
  16519. abstract="false" native="false" synchronized="false"
  16520. static="false" final="false" visibility="public"
  16521. deprecated="not deprecated">
  16522. <param name="b" type="byte[]"/>
  16523. <param name="off" type="int"/>
  16524. <param name="len" type="int"/>
  16525. <exception name="IOException" type="java.io.IOException"/>
  16526. </method>
  16527. <method name="compress"
  16528. abstract="false" native="false" synchronized="false"
  16529. static="false" final="false" visibility="protected"
  16530. deprecated="not deprecated">
  16531. <exception name="IOException" type="java.io.IOException"/>
  16532. </method>
  16533. <method name="finish"
  16534. abstract="false" native="false" synchronized="false"
  16535. static="false" final="false" visibility="public"
  16536. deprecated="not deprecated">
  16537. <exception name="IOException" type="java.io.IOException"/>
  16538. </method>
  16539. <method name="resetState"
  16540. abstract="false" native="false" synchronized="false"
  16541. static="false" final="false" visibility="public"
  16542. deprecated="not deprecated">
  16543. <exception name="IOException" type="java.io.IOException"/>
  16544. </method>
  16545. <method name="close"
  16546. abstract="false" native="false" synchronized="false"
  16547. static="false" final="false" visibility="public"
  16548. deprecated="not deprecated">
  16549. <exception name="IOException" type="java.io.IOException"/>
  16550. </method>
  16551. <method name="write"
  16552. abstract="false" native="false" synchronized="false"
  16553. static="false" final="false" visibility="public"
  16554. deprecated="not deprecated">
  16555. <param name="b" type="int"/>
  16556. <exception name="IOException" type="java.io.IOException"/>
  16557. </method>
  16558. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  16559. transient="false" volatile="false"
  16560. static="false" final="false" visibility="protected"
  16561. deprecated="not deprecated">
  16562. </field>
  16563. <field name="buffer" type="byte[]"
  16564. transient="false" volatile="false"
  16565. static="false" final="false" visibility="protected"
  16566. deprecated="not deprecated">
  16567. </field>
  16568. <field name="closed" type="boolean"
  16569. transient="false" volatile="false"
  16570. static="false" final="false" visibility="protected"
  16571. deprecated="not deprecated">
  16572. </field>
  16573. </class>
  16574. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  16575. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  16576. <interface name="Decompressor" abstract="true"
  16577. static="false" final="false" visibility="public"
  16578. deprecated="not deprecated">
  16579. <method name="setInput"
  16580. abstract="false" native="false" synchronized="false"
  16581. static="false" final="false" visibility="public"
  16582. deprecated="not deprecated">
  16583. <param name="b" type="byte[]"/>
  16584. <param name="off" type="int"/>
  16585. <param name="len" type="int"/>
  16586. <doc>
  16587. <![CDATA[Sets input data for decompression.
  16588. This should be called if and only if {@link #needsInput()} returns
  16589. <code>true</code> indicating that more input data is required.
  16590. (Both native and non-native versions of various Decompressors require
  16591. that the data passed in via <code>b[]</code> remain unmodified until
  16592. the caller is explicitly notified--via {@link #needsInput()}--that the
  16593. buffer may be safely modified. With this requirement, an extra
  16594. buffer-copy can be avoided.)
  16595. @param b Input data
  16596. @param off Start offset
  16597. @param len Length]]>
  16598. </doc>
  16599. </method>
  16600. <method name="needsInput" return="boolean"
  16601. abstract="false" native="false" synchronized="false"
  16602. static="false" final="false" visibility="public"
  16603. deprecated="not deprecated">
  16604. <doc>
  16605. <![CDATA[Returns true if the input data buffer is empty and
  16606. {@link #setInput(byte[], int, int)} should be called to
  16607. provide more input.
  16608. @return <code>true</code> if the input data buffer is empty and
  16609. {@link #setInput(byte[], int, int)} should be called in
  16610. order to provide more input.]]>
  16611. </doc>
  16612. </method>
  16613. <method name="setDictionary"
  16614. abstract="false" native="false" synchronized="false"
  16615. static="false" final="false" visibility="public"
  16616. deprecated="not deprecated">
  16617. <param name="b" type="byte[]"/>
  16618. <param name="off" type="int"/>
  16619. <param name="len" type="int"/>
  16620. <doc>
  16621. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  16622. is used when the history buffer can be predetermined.
  16623. @param b Dictionary data bytes
  16624. @param off Start offset
  16625. @param len Length]]>
  16626. </doc>
  16627. </method>
  16628. <method name="needsDictionary" return="boolean"
  16629. abstract="false" native="false" synchronized="false"
  16630. static="false" final="false" visibility="public"
  16631. deprecated="not deprecated">
  16632. <doc>
  16633. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  16634. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  16635. </doc>
  16636. </method>
  16637. <method name="finished" return="boolean"
  16638. abstract="false" native="false" synchronized="false"
  16639. static="false" final="false" visibility="public"
  16640. deprecated="not deprecated">
  16641. <doc>
  16642. <![CDATA[Returns true if the end of the decompressed
  16643. data output stream has been reached.
  16644. @return <code>true</code> if the end of the decompressed
  16645. data output stream has been reached.]]>
  16646. </doc>
  16647. </method>
  16648. <method name="decompress" return="int"
  16649. abstract="false" native="false" synchronized="false"
  16650. static="false" final="false" visibility="public"
  16651. deprecated="not deprecated">
  16652. <param name="b" type="byte[]"/>
  16653. <param name="off" type="int"/>
  16654. <param name="len" type="int"/>
  16655. <exception name="IOException" type="java.io.IOException"/>
  16656. <doc>
  16657. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  16658. of bytes of uncompressed data. A return value of 0 indicates that
  16659. {@link #needsInput()} should be called in order to determine if more
  16660. input data is required.
  16661. @param b Buffer for the compressed data
  16662. @param off Start offset of the data
  16663. @param len Size of the buffer
  16664. @return The actual number of bytes of compressed data.
  16665. @throws IOException]]>
  16666. </doc>
  16667. </method>
  16668. <method name="getRemaining" return="int"
  16669. abstract="false" native="false" synchronized="false"
  16670. static="false" final="false" visibility="public"
  16671. deprecated="not deprecated">
  16672. <doc>
  16673. <![CDATA[Returns the number of bytes remaining in the compressed-data buffer;
  16674. typically called after the decompressor has finished decompressing
  16675. the current gzip stream (a.k.a. "member").]]>
  16676. </doc>
  16677. </method>
  16678. <method name="reset"
  16679. abstract="false" native="false" synchronized="false"
  16680. static="false" final="false" visibility="public"
  16681. deprecated="not deprecated">
  16682. <doc>
  16683. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  16684. input data can be processed.]]>
  16685. </doc>
  16686. </method>
  16687. <method name="end"
  16688. abstract="false" native="false" synchronized="false"
  16689. static="false" final="false" visibility="public"
  16690. deprecated="not deprecated">
  16691. <doc>
  16692. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  16693. </doc>
  16694. </method>
  16695. <doc>
  16696. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  16697. plugged into a {@link CompressionInputStream} to compress data.
  16698. This is modelled after {@link java.util.zip.Inflater}]]>
  16699. </doc>
  16700. </interface>
  16701. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  16702. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  16703. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  16704. abstract="false"
  16705. static="false" final="false" visibility="public"
  16706. deprecated="not deprecated">
  16707. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  16708. static="false" final="false" visibility="public"
  16709. deprecated="not deprecated">
  16710. </constructor>
  16711. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  16712. static="false" final="false" visibility="public"
  16713. deprecated="not deprecated">
  16714. </constructor>
  16715. <constructor name="DecompressorStream" type="java.io.InputStream"
  16716. static="false" final="false" visibility="protected"
  16717. deprecated="not deprecated">
  16718. <doc>
  16719. <![CDATA[Allow derived classes to directly set the underlying stream.
  16720. @param in Underlying input stream.]]>
  16721. </doc>
  16722. </constructor>
  16723. <method name="read" return="int"
  16724. abstract="false" native="false" synchronized="false"
  16725. static="false" final="false" visibility="public"
  16726. deprecated="not deprecated">
  16727. <exception name="IOException" type="java.io.IOException"/>
  16728. </method>
  16729. <method name="read" return="int"
  16730. abstract="false" native="false" synchronized="false"
  16731. static="false" final="false" visibility="public"
  16732. deprecated="not deprecated">
  16733. <param name="b" type="byte[]"/>
  16734. <param name="off" type="int"/>
  16735. <param name="len" type="int"/>
  16736. <exception name="IOException" type="java.io.IOException"/>
  16737. </method>
  16738. <method name="decompress" return="int"
  16739. abstract="false" native="false" synchronized="false"
  16740. static="false" final="false" visibility="protected"
  16741. deprecated="not deprecated">
  16742. <param name="b" type="byte[]"/>
  16743. <param name="off" type="int"/>
  16744. <param name="len" type="int"/>
  16745. <exception name="IOException" type="java.io.IOException"/>
  16746. </method>
  16747. <method name="getCompressedData" return="int"
  16748. abstract="false" native="false" synchronized="false"
  16749. static="false" final="false" visibility="protected"
  16750. deprecated="not deprecated">
  16751. <exception name="IOException" type="java.io.IOException"/>
  16752. </method>
  16753. <method name="checkStream"
  16754. abstract="false" native="false" synchronized="false"
  16755. static="false" final="false" visibility="protected"
  16756. deprecated="not deprecated">
  16757. <exception name="IOException" type="java.io.IOException"/>
  16758. </method>
  16759. <method name="resetState"
  16760. abstract="false" native="false" synchronized="false"
  16761. static="false" final="false" visibility="public"
  16762. deprecated="not deprecated">
  16763. <exception name="IOException" type="java.io.IOException"/>
  16764. </method>
  16765. <method name="skip" return="long"
  16766. abstract="false" native="false" synchronized="false"
  16767. static="false" final="false" visibility="public"
  16768. deprecated="not deprecated">
  16769. <param name="n" type="long"/>
  16770. <exception name="IOException" type="java.io.IOException"/>
  16771. </method>
  16772. <method name="available" return="int"
  16773. abstract="false" native="false" synchronized="false"
  16774. static="false" final="false" visibility="public"
  16775. deprecated="not deprecated">
  16776. <exception name="IOException" type="java.io.IOException"/>
  16777. </method>
  16778. <method name="close"
  16779. abstract="false" native="false" synchronized="false"
  16780. static="false" final="false" visibility="public"
  16781. deprecated="not deprecated">
  16782. <exception name="IOException" type="java.io.IOException"/>
  16783. </method>
  16784. <method name="markSupported" return="boolean"
  16785. abstract="false" native="false" synchronized="false"
  16786. static="false" final="false" visibility="public"
  16787. deprecated="not deprecated">
  16788. </method>
  16789. <method name="mark"
  16790. abstract="false" native="false" synchronized="true"
  16791. static="false" final="false" visibility="public"
  16792. deprecated="not deprecated">
  16793. <param name="readlimit" type="int"/>
  16794. </method>
  16795. <method name="reset"
  16796. abstract="false" native="false" synchronized="true"
  16797. static="false" final="false" visibility="public"
  16798. deprecated="not deprecated">
  16799. <exception name="IOException" type="java.io.IOException"/>
  16800. </method>
  16801. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  16802. transient="false" volatile="false"
  16803. static="false" final="false" visibility="protected"
  16804. deprecated="not deprecated">
  16805. </field>
  16806. <field name="buffer" type="byte[]"
  16807. transient="false" volatile="false"
  16808. static="false" final="false" visibility="protected"
  16809. deprecated="not deprecated">
  16810. </field>
  16811. <field name="eof" type="boolean"
  16812. transient="false" volatile="false"
  16813. static="false" final="false" visibility="protected"
  16814. deprecated="not deprecated">
  16815. </field>
  16816. <field name="closed" type="boolean"
  16817. transient="false" volatile="false"
  16818. static="false" final="false" visibility="protected"
  16819. deprecated="not deprecated">
  16820. </field>
  16821. </class>
  16822. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  16823. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  16824. <class name="DefaultCodec" extends="java.lang.Object"
  16825. abstract="false"
  16826. static="false" final="false" visibility="public"
  16827. deprecated="not deprecated">
  16828. <implements name="org.apache.hadoop.conf.Configurable"/>
  16829. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  16830. <constructor name="DefaultCodec"
  16831. static="false" final="false" visibility="public"
  16832. deprecated="not deprecated">
  16833. </constructor>
  16834. <method name="setConf"
  16835. abstract="false" native="false" synchronized="false"
  16836. static="false" final="false" visibility="public"
  16837. deprecated="not deprecated">
  16838. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16839. </method>
  16840. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  16841. abstract="false" native="false" synchronized="false"
  16842. static="false" final="false" visibility="public"
  16843. deprecated="not deprecated">
  16844. </method>
  16845. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16846. abstract="false" native="false" synchronized="false"
  16847. static="false" final="false" visibility="public"
  16848. deprecated="not deprecated">
  16849. <param name="out" type="java.io.OutputStream"/>
  16850. <exception name="IOException" type="java.io.IOException"/>
  16851. </method>
  16852. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16853. abstract="false" native="false" synchronized="false"
  16854. static="false" final="false" visibility="public"
  16855. deprecated="not deprecated">
  16856. <param name="out" type="java.io.OutputStream"/>
  16857. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16858. <exception name="IOException" type="java.io.IOException"/>
  16859. </method>
  16860. <method name="getCompressorType" return="java.lang.Class"
  16861. abstract="false" native="false" synchronized="false"
  16862. static="false" final="false" visibility="public"
  16863. deprecated="not deprecated">
  16864. </method>
  16865. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16866. abstract="false" native="false" synchronized="false"
  16867. static="false" final="false" visibility="public"
  16868. deprecated="not deprecated">
  16869. </method>
  16870. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16871. abstract="false" native="false" synchronized="false"
  16872. static="false" final="false" visibility="public"
  16873. deprecated="not deprecated">
  16874. <param name="in" type="java.io.InputStream"/>
  16875. <exception name="IOException" type="java.io.IOException"/>
  16876. </method>
  16877. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16878. abstract="false" native="false" synchronized="false"
  16879. static="false" final="false" visibility="public"
  16880. deprecated="not deprecated">
  16881. <param name="in" type="java.io.InputStream"/>
  16882. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16883. <exception name="IOException" type="java.io.IOException"/>
  16884. </method>
  16885. <method name="getDecompressorType" return="java.lang.Class"
  16886. abstract="false" native="false" synchronized="false"
  16887. static="false" final="false" visibility="public"
  16888. deprecated="not deprecated">
  16889. </method>
  16890. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16891. abstract="false" native="false" synchronized="false"
  16892. static="false" final="false" visibility="public"
  16893. deprecated="not deprecated">
  16894. </method>
  16895. <method name="getDefaultExtension" return="java.lang.String"
  16896. abstract="false" native="false" synchronized="false"
  16897. static="false" final="false" visibility="public"
  16898. deprecated="not deprecated">
  16899. </method>
  16900. </class>
  16901. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  16902. <!-- start interface org.apache.hadoop.io.compress.DoNotPool -->
  16903. <interface name="DoNotPool" abstract="true"
  16904. static="false" final="false" visibility="public"
  16905. deprecated="not deprecated">
  16906. <implements name="java.lang.annotation.Annotation"/>
  16907. <doc>
  16908. <![CDATA[This is a marker annotation that marks a compressor or decompressor
  16909. type as not to be pooled.]]>
  16910. </doc>
  16911. </interface>
  16912. <!-- end interface org.apache.hadoop.io.compress.DoNotPool -->
  16913. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  16914. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  16915. abstract="false"
  16916. static="false" final="false" visibility="public"
  16917. deprecated="not deprecated">
  16918. <constructor name="GzipCodec"
  16919. static="false" final="false" visibility="public"
  16920. deprecated="not deprecated">
  16921. </constructor>
  16922. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16923. abstract="false" native="false" synchronized="false"
  16924. static="false" final="false" visibility="public"
  16925. deprecated="not deprecated">
  16926. <param name="out" type="java.io.OutputStream"/>
  16927. <exception name="IOException" type="java.io.IOException"/>
  16928. </method>
  16929. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16930. abstract="false" native="false" synchronized="false"
  16931. static="false" final="false" visibility="public"
  16932. deprecated="not deprecated">
  16933. <param name="out" type="java.io.OutputStream"/>
  16934. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16935. <exception name="IOException" type="java.io.IOException"/>
  16936. </method>
  16937. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16938. abstract="false" native="false" synchronized="false"
  16939. static="false" final="false" visibility="public"
  16940. deprecated="not deprecated">
  16941. </method>
  16942. <method name="getCompressorType" return="java.lang.Class"
  16943. abstract="false" native="false" synchronized="false"
  16944. static="false" final="false" visibility="public"
  16945. deprecated="not deprecated">
  16946. </method>
  16947. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16948. abstract="false" native="false" synchronized="false"
  16949. static="false" final="false" visibility="public"
  16950. deprecated="not deprecated">
  16951. <param name="in" type="java.io.InputStream"/>
  16952. <exception name="IOException" type="java.io.IOException"/>
  16953. </method>
  16954. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16955. abstract="false" native="false" synchronized="false"
  16956. static="false" final="false" visibility="public"
  16957. deprecated="not deprecated">
  16958. <param name="in" type="java.io.InputStream"/>
  16959. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16960. <exception name="IOException" type="java.io.IOException"/>
  16961. </method>
  16962. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16963. abstract="false" native="false" synchronized="false"
  16964. static="false" final="false" visibility="public"
  16965. deprecated="not deprecated">
  16966. </method>
  16967. <method name="getDecompressorType" return="java.lang.Class"
  16968. abstract="false" native="false" synchronized="false"
  16969. static="false" final="false" visibility="public"
  16970. deprecated="not deprecated">
  16971. </method>
  16972. <method name="getDefaultExtension" return="java.lang.String"
  16973. abstract="false" native="false" synchronized="false"
  16974. static="false" final="false" visibility="public"
  16975. deprecated="not deprecated">
  16976. </method>
  16977. <doc>
  16978. <![CDATA[This class creates gzip compressors/decompressors.]]>
  16979. </doc>
  16980. </class>
  16981. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  16982. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  16983. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  16984. abstract="false"
  16985. static="true" final="false" visibility="protected"
  16986. deprecated="not deprecated">
  16987. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  16988. static="false" final="false" visibility="public"
  16989. deprecated="not deprecated">
  16990. <exception name="IOException" type="java.io.IOException"/>
  16991. </constructor>
  16992. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  16993. static="false" final="false" visibility="protected"
  16994. deprecated="not deprecated">
  16995. <doc>
  16996. <![CDATA[Allow children types to put a different type in here.
  16997. @param out the Deflater stream to use]]>
  16998. </doc>
  16999. </constructor>
  17000. <method name="close"
  17001. abstract="false" native="false" synchronized="false"
  17002. static="false" final="false" visibility="public"
  17003. deprecated="not deprecated">
  17004. <exception name="IOException" type="java.io.IOException"/>
  17005. </method>
  17006. <method name="flush"
  17007. abstract="false" native="false" synchronized="false"
  17008. static="false" final="false" visibility="public"
  17009. deprecated="not deprecated">
  17010. <exception name="IOException" type="java.io.IOException"/>
  17011. </method>
  17012. <method name="write"
  17013. abstract="false" native="false" synchronized="false"
  17014. static="false" final="false" visibility="public"
  17015. deprecated="not deprecated">
  17016. <param name="b" type="int"/>
  17017. <exception name="IOException" type="java.io.IOException"/>
  17018. </method>
  17019. <method name="write"
  17020. abstract="false" native="false" synchronized="false"
  17021. static="false" final="false" visibility="public"
  17022. deprecated="not deprecated">
  17023. <param name="data" type="byte[]"/>
  17024. <param name="offset" type="int"/>
  17025. <param name="length" type="int"/>
  17026. <exception name="IOException" type="java.io.IOException"/>
  17027. </method>
  17028. <method name="finish"
  17029. abstract="false" native="false" synchronized="false"
  17030. static="false" final="false" visibility="public"
  17031. deprecated="not deprecated">
  17032. <exception name="IOException" type="java.io.IOException"/>
  17033. </method>
  17034. <method name="resetState"
  17035. abstract="false" native="false" synchronized="false"
  17036. static="false" final="false" visibility="public"
  17037. deprecated="not deprecated">
  17038. <exception name="IOException" type="java.io.IOException"/>
  17039. </method>
  17040. <doc>
  17041. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  17042. a CompressionOutputStream.]]>
  17043. </doc>
  17044. </class>
  17045. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17046. </package>
  17047. <package name="org.apache.hadoop.io.compress.bzip2">
  17048. <!-- start interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17049. <interface name="BZip2Constants" abstract="true"
  17050. static="false" final="false" visibility="public"
  17051. deprecated="not deprecated">
  17052. <field name="baseBlockSize" type="int"
  17053. transient="false" volatile="false"
  17054. static="true" final="true" visibility="public"
  17055. deprecated="not deprecated">
  17056. </field>
  17057. <field name="MAX_ALPHA_SIZE" type="int"
  17058. transient="false" volatile="false"
  17059. static="true" final="true" visibility="public"
  17060. deprecated="not deprecated">
  17061. </field>
  17062. <field name="MAX_CODE_LEN" type="int"
  17063. transient="false" volatile="false"
  17064. static="true" final="true" visibility="public"
  17065. deprecated="not deprecated">
  17066. </field>
  17067. <field name="RUNA" type="int"
  17068. transient="false" volatile="false"
  17069. static="true" final="true" visibility="public"
  17070. deprecated="not deprecated">
  17071. </field>
  17072. <field name="RUNB" type="int"
  17073. transient="false" volatile="false"
  17074. static="true" final="true" visibility="public"
  17075. deprecated="not deprecated">
  17076. </field>
  17077. <field name="N_GROUPS" type="int"
  17078. transient="false" volatile="false"
  17079. static="true" final="true" visibility="public"
  17080. deprecated="not deprecated">
  17081. </field>
  17082. <field name="G_SIZE" type="int"
  17083. transient="false" volatile="false"
  17084. static="true" final="true" visibility="public"
  17085. deprecated="not deprecated">
  17086. </field>
  17087. <field name="N_ITERS" type="int"
  17088. transient="false" volatile="false"
  17089. static="true" final="true" visibility="public"
  17090. deprecated="not deprecated">
  17091. </field>
  17092. <field name="MAX_SELECTORS" type="int"
  17093. transient="false" volatile="false"
  17094. static="true" final="true" visibility="public"
  17095. deprecated="not deprecated">
  17096. </field>
  17097. <field name="NUM_OVERSHOOT_BYTES" type="int"
  17098. transient="false" volatile="false"
  17099. static="true" final="true" visibility="public"
  17100. deprecated="not deprecated">
  17101. </field>
  17102. <field name="rNums" type="int[]"
  17103. transient="false" volatile="false"
  17104. static="true" final="true" visibility="public"
  17105. deprecated="not deprecated">
  17106. <doc>
  17107. <![CDATA[This array really shouldn't be here. Again, for historical purposes it
  17108. is.
  17109. <p>
  17110. FIXME: This array should be in a private or package private location,
  17111. since it could be modified by malicious code.
  17112. </p>]]>
  17113. </doc>
  17114. </field>
  17115. <doc>
  17116. <![CDATA[Base class for both the compress and decompress classes. Holds common arrays,
  17117. and static data.
  17118. <p>
  17119. This interface is public for historical purposes. You should have no need to
  17120. use it.
  17121. </p>]]>
  17122. </doc>
  17123. </interface>
  17124. <!-- end interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17125. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17126. <class name="BZip2DummyCompressor" extends="java.lang.Object"
  17127. abstract="false"
  17128. static="false" final="false" visibility="public"
  17129. deprecated="not deprecated">
  17130. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  17131. <constructor name="BZip2DummyCompressor"
  17132. static="false" final="false" visibility="public"
  17133. deprecated="not deprecated">
  17134. </constructor>
  17135. <method name="compress" return="int"
  17136. abstract="false" native="false" synchronized="false"
  17137. static="false" final="false" visibility="public"
  17138. deprecated="not deprecated">
  17139. <param name="b" type="byte[]"/>
  17140. <param name="off" type="int"/>
  17141. <param name="len" type="int"/>
  17142. <exception name="IOException" type="java.io.IOException"/>
  17143. </method>
  17144. <method name="end"
  17145. abstract="false" native="false" synchronized="false"
  17146. static="false" final="false" visibility="public"
  17147. deprecated="not deprecated">
  17148. </method>
  17149. <method name="finish"
  17150. abstract="false" native="false" synchronized="false"
  17151. static="false" final="false" visibility="public"
  17152. deprecated="not deprecated">
  17153. </method>
  17154. <method name="finished" return="boolean"
  17155. abstract="false" native="false" synchronized="false"
  17156. static="false" final="false" visibility="public"
  17157. deprecated="not deprecated">
  17158. </method>
  17159. <method name="getBytesRead" return="long"
  17160. abstract="false" native="false" synchronized="false"
  17161. static="false" final="false" visibility="public"
  17162. deprecated="not deprecated">
  17163. </method>
  17164. <method name="getBytesWritten" return="long"
  17165. abstract="false" native="false" synchronized="false"
  17166. static="false" final="false" visibility="public"
  17167. deprecated="not deprecated">
  17168. </method>
  17169. <method name="needsInput" return="boolean"
  17170. abstract="false" native="false" synchronized="false"
  17171. static="false" final="false" visibility="public"
  17172. deprecated="not deprecated">
  17173. </method>
  17174. <method name="reset"
  17175. abstract="false" native="false" synchronized="false"
  17176. static="false" final="false" visibility="public"
  17177. deprecated="not deprecated">
  17178. </method>
  17179. <method name="setDictionary"
  17180. abstract="false" native="false" synchronized="false"
  17181. static="false" final="false" visibility="public"
  17182. deprecated="not deprecated">
  17183. <param name="b" type="byte[]"/>
  17184. <param name="off" type="int"/>
  17185. <param name="len" type="int"/>
  17186. </method>
  17187. <method name="setInput"
  17188. abstract="false" native="false" synchronized="false"
  17189. static="false" final="false" visibility="public"
  17190. deprecated="not deprecated">
  17191. <param name="b" type="byte[]"/>
  17192. <param name="off" type="int"/>
  17193. <param name="len" type="int"/>
  17194. </method>
  17195. <method name="reinit"
  17196. abstract="false" native="false" synchronized="false"
  17197. static="false" final="false" visibility="public"
  17198. deprecated="not deprecated">
  17199. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17200. </method>
  17201. <doc>
  17202. <![CDATA[This is a dummy compressor for BZip2.]]>
  17203. </doc>
  17204. </class>
  17205. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17206. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  17207. <class name="BZip2DummyDecompressor" extends="java.lang.Object"
  17208. abstract="false"
  17209. static="false" final="false" visibility="public"
  17210. deprecated="not deprecated">
  17211. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17212. <constructor name="BZip2DummyDecompressor"
  17213. static="false" final="false" visibility="public"
  17214. deprecated="not deprecated">
  17215. </constructor>
  17216. <method name="decompress" return="int"
  17217. abstract="false" native="false" synchronized="false"
  17218. static="false" final="false" visibility="public"
  17219. deprecated="not deprecated">
  17220. <param name="b" type="byte[]"/>
  17221. <param name="off" type="int"/>
  17222. <param name="len" type="int"/>
  17223. <exception name="IOException" type="java.io.IOException"/>
  17224. </method>
  17225. <method name="end"
  17226. abstract="false" native="false" synchronized="false"
  17227. static="false" final="false" visibility="public"
  17228. deprecated="not deprecated">
  17229. </method>
  17230. <method name="finished" return="boolean"
  17231. abstract="false" native="false" synchronized="false"
  17232. static="false" final="false" visibility="public"
  17233. deprecated="not deprecated">
  17234. </method>
  17235. <method name="needsDictionary" return="boolean"
  17236. abstract="false" native="false" synchronized="false"
  17237. static="false" final="false" visibility="public"
  17238. deprecated="not deprecated">
  17239. </method>
  17240. <method name="needsInput" return="boolean"
  17241. abstract="false" native="false" synchronized="false"
  17242. static="false" final="false" visibility="public"
  17243. deprecated="not deprecated">
  17244. </method>
  17245. <method name="getRemaining" return="int"
  17246. abstract="false" native="false" synchronized="false"
  17247. static="false" final="false" visibility="public"
  17248. deprecated="not deprecated">
  17249. </method>
  17250. <method name="reset"
  17251. abstract="false" native="false" synchronized="false"
  17252. static="false" final="false" visibility="public"
  17253. deprecated="not deprecated">
  17254. </method>
  17255. <method name="setDictionary"
  17256. abstract="false" native="false" synchronized="false"
  17257. static="false" final="false" visibility="public"
  17258. deprecated="not deprecated">
  17259. <param name="b" type="byte[]"/>
  17260. <param name="off" type="int"/>
  17261. <param name="len" type="int"/>
  17262. </method>
  17263. <method name="setInput"
  17264. abstract="false" native="false" synchronized="false"
  17265. static="false" final="false" visibility="public"
  17266. deprecated="not deprecated">
  17267. <param name="b" type="byte[]"/>
  17268. <param name="off" type="int"/>
  17269. <param name="len" type="int"/>
  17270. </method>
  17271. <doc>
  17272. <![CDATA[This is a dummy decompressor for BZip2.]]>
  17273. </doc>
  17274. </class>
  17275. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  17276. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  17277. <class name="CBZip2InputStream" extends="java.io.InputStream"
  17278. abstract="false"
  17279. static="false" final="false" visibility="public"
  17280. deprecated="not deprecated">
  17281. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  17282. <constructor name="CBZip2InputStream" type="java.io.InputStream"
  17283. static="false" final="false" visibility="public"
  17284. deprecated="not deprecated">
  17285. <exception name="IOException" type="java.io.IOException"/>
  17286. <doc>
  17287. <![CDATA[Constructs a new CBZip2InputStream which decompresses bytes read from the
  17288. specified stream.
  17289. <p>
  17290. Although BZip2 headers are marked with the magic <tt>"Bz"</tt> this
  17291. constructor expects the next byte in the stream to be the first one after
  17292. the magic. Thus callers have to skip the first two bytes. Otherwise this
  17293. constructor will throw an exception.
  17294. </p>
  17295. @throws IOException
  17296. if the stream content is malformed or an I/O error occurs.
  17297. @throws NullPointerException
  17298. if <tt>in == null</tt>]]>
  17299. </doc>
  17300. </constructor>
  17301. <method name="read" return="int"
  17302. abstract="false" native="false" synchronized="false"
  17303. static="false" final="false" visibility="public"
  17304. deprecated="not deprecated">
  17305. <exception name="IOException" type="java.io.IOException"/>
  17306. </method>
  17307. <method name="read" return="int"
  17308. abstract="false" native="false" synchronized="false"
  17309. static="false" final="false" visibility="public"
  17310. deprecated="not deprecated">
  17311. <param name="dest" type="byte[]"/>
  17312. <param name="offs" type="int"/>
  17313. <param name="len" type="int"/>
  17314. <exception name="IOException" type="java.io.IOException"/>
  17315. </method>
  17316. <method name="close"
  17317. abstract="false" native="false" synchronized="false"
  17318. static="false" final="false" visibility="public"
  17319. deprecated="not deprecated">
  17320. <exception name="IOException" type="java.io.IOException"/>
  17321. </method>
  17322. <doc>
  17323. <![CDATA[An input stream that decompresses from the BZip2 format (without the file
  17324. header chars) to be read as any other stream.
  17325. <p>
  17326. The decompression requires large amounts of memory. Thus you should call the
  17327. {@link #close() close()} method as soon as possible, to force
  17328. <tt>CBZip2InputStream</tt> to release the allocated memory. See
  17329. {@link CBZip2OutputStream CBZip2OutputStream} for information about memory
  17330. usage.
  17331. </p>
  17332. <p>
  17333. <tt>CBZip2InputStream</tt> reads bytes from the compressed source stream via
  17334. the single byte {@link java.io.InputStream#read() read()} method exclusively.
  17335. Thus you should consider to use a buffered source stream.
  17336. </p>
  17337. <p>
  17338. Instances of this class are not threadsafe.
  17339. </p>]]>
  17340. </doc>
  17341. </class>
  17342. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  17343. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  17344. <class name="CBZip2OutputStream" extends="java.io.OutputStream"
  17345. abstract="false"
  17346. static="false" final="false" visibility="public"
  17347. deprecated="not deprecated">
  17348. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  17349. <constructor name="CBZip2OutputStream" type="java.io.OutputStream"
  17350. static="false" final="false" visibility="public"
  17351. deprecated="not deprecated">
  17352. <exception name="IOException" type="java.io.IOException"/>
  17353. <doc>
  17354. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with a blocksize of 900k.
  17355. <p>
  17356. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  17357. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  17358. constructor.
  17359. </p>
  17360. @param out *
  17361. the destination stream.
  17362. @throws IOException
  17363. if an I/O error occurs in the specified stream.
  17364. @throws NullPointerException
  17365. if <code>out == null</code>.]]>
  17366. </doc>
  17367. </constructor>
  17368. <constructor name="CBZip2OutputStream" type="java.io.OutputStream, int"
  17369. static="false" final="false" visibility="public"
  17370. deprecated="not deprecated">
  17371. <exception name="IOException" type="java.io.IOException"/>
  17372. <doc>
  17373. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with specified blocksize.
  17374. <p>
  17375. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  17376. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  17377. constructor.
  17378. </p>
  17379. @param out
  17380. the destination stream.
  17381. @param blockSize
  17382. the blockSize as 100k units.
  17383. @throws IOException
  17384. if an I/O error occurs in the specified stream.
  17385. @throws IllegalArgumentException
  17386. if <code>(blockSize < 1) || (blockSize > 9)</code>.
  17387. @throws NullPointerException
  17388. if <code>out == null</code>.
  17389. @see #MIN_BLOCKSIZE
  17390. @see #MAX_BLOCKSIZE]]>
  17391. </doc>
  17392. </constructor>
  17393. <method name="hbMakeCodeLengths"
  17394. abstract="false" native="false" synchronized="false"
  17395. static="true" final="false" visibility="protected"
  17396. deprecated="not deprecated">
  17397. <param name="len" type="char[]"/>
  17398. <param name="freq" type="int[]"/>
  17399. <param name="alphaSize" type="int"/>
  17400. <param name="maxLen" type="int"/>
  17401. <doc>
  17402. <![CDATA[This method is accessible by subclasses for historical purposes. If you
  17403. don't know what it does then you don't need it.]]>
  17404. </doc>
  17405. </method>
  17406. <method name="chooseBlockSize" return="int"
  17407. abstract="false" native="false" synchronized="false"
  17408. static="true" final="false" visibility="public"
  17409. deprecated="not deprecated">
  17410. <param name="inputLength" type="long"/>
  17411. <doc>
  17412. <![CDATA[Chooses a blocksize based on the given length of the data to compress.
  17413. @return The blocksize, between {@link #MIN_BLOCKSIZE} and
  17414. {@link #MAX_BLOCKSIZE} both inclusive. For a negative
  17415. <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
  17416. always.
  17417. @param inputLength
  17418. The length of the data which will be compressed by
  17419. <tt>CBZip2OutputStream</tt>.]]>
  17420. </doc>
  17421. </method>
  17422. <method name="write"
  17423. abstract="false" native="false" synchronized="false"
  17424. static="false" final="false" visibility="public"
  17425. deprecated="not deprecated">
  17426. <param name="b" type="int"/>
  17427. <exception name="IOException" type="java.io.IOException"/>
  17428. </method>
  17429. <method name="finalize"
  17430. abstract="false" native="false" synchronized="false"
  17431. static="false" final="false" visibility="protected"
  17432. deprecated="not deprecated">
  17433. <exception name="Throwable" type="java.lang.Throwable"/>
  17434. <doc>
  17435. <![CDATA[Overriden to close the stream.]]>
  17436. </doc>
  17437. </method>
  17438. <method name="finish"
  17439. abstract="false" native="false" synchronized="false"
  17440. static="false" final="false" visibility="public"
  17441. deprecated="not deprecated">
  17442. <exception name="IOException" type="java.io.IOException"/>
  17443. </method>
  17444. <method name="close"
  17445. abstract="false" native="false" synchronized="false"
  17446. static="false" final="false" visibility="public"
  17447. deprecated="not deprecated">
  17448. <exception name="IOException" type="java.io.IOException"/>
  17449. </method>
  17450. <method name="flush"
  17451. abstract="false" native="false" synchronized="false"
  17452. static="false" final="false" visibility="public"
  17453. deprecated="not deprecated">
  17454. <exception name="IOException" type="java.io.IOException"/>
  17455. </method>
  17456. <method name="getBlockSize" return="int"
  17457. abstract="false" native="false" synchronized="false"
  17458. static="false" final="true" visibility="public"
  17459. deprecated="not deprecated">
  17460. <doc>
  17461. <![CDATA[Returns the blocksize parameter specified at construction time.]]>
  17462. </doc>
  17463. </method>
  17464. <method name="write"
  17465. abstract="false" native="false" synchronized="false"
  17466. static="false" final="false" visibility="public"
  17467. deprecated="not deprecated">
  17468. <param name="buf" type="byte[]"/>
  17469. <param name="offs" type="int"/>
  17470. <param name="len" type="int"/>
  17471. <exception name="IOException" type="java.io.IOException"/>
  17472. </method>
  17473. <field name="MIN_BLOCKSIZE" type="int"
  17474. transient="false" volatile="false"
  17475. static="true" final="true" visibility="public"
  17476. deprecated="not deprecated">
  17477. <doc>
  17478. <![CDATA[The minimum supported blocksize <tt> == 1</tt>.]]>
  17479. </doc>
  17480. </field>
  17481. <field name="MAX_BLOCKSIZE" type="int"
  17482. transient="false" volatile="false"
  17483. static="true" final="true" visibility="public"
  17484. deprecated="not deprecated">
  17485. <doc>
  17486. <![CDATA[The maximum supported blocksize <tt> == 9</tt>.]]>
  17487. </doc>
  17488. </field>
  17489. <field name="SETMASK" type="int"
  17490. transient="false" volatile="false"
  17491. static="true" final="true" visibility="protected"
  17492. deprecated="not deprecated">
  17493. <doc>
  17494. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17495. don't know what it means then you don't need it.]]>
  17496. </doc>
  17497. </field>
  17498. <field name="CLEARMASK" type="int"
  17499. transient="false" volatile="false"
  17500. static="true" final="true" visibility="protected"
  17501. deprecated="not deprecated">
  17502. <doc>
  17503. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17504. don't know what it means then you don't need it.]]>
  17505. </doc>
  17506. </field>
  17507. <field name="GREATER_ICOST" type="int"
  17508. transient="false" volatile="false"
  17509. static="true" final="true" visibility="protected"
  17510. deprecated="not deprecated">
  17511. <doc>
  17512. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17513. don't know what it means then you don't need it.]]>
  17514. </doc>
  17515. </field>
  17516. <field name="LESSER_ICOST" type="int"
  17517. transient="false" volatile="false"
  17518. static="true" final="true" visibility="protected"
  17519. deprecated="not deprecated">
  17520. <doc>
  17521. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17522. don't know what it means then you don't need it.]]>
  17523. </doc>
  17524. </field>
  17525. <field name="SMALL_THRESH" type="int"
  17526. transient="false" volatile="false"
  17527. static="true" final="true" visibility="protected"
  17528. deprecated="not deprecated">
  17529. <doc>
  17530. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17531. don't know what it means then you don't need it.]]>
  17532. </doc>
  17533. </field>
  17534. <field name="DEPTH_THRESH" type="int"
  17535. transient="false" volatile="false"
  17536. static="true" final="true" visibility="protected"
  17537. deprecated="not deprecated">
  17538. <doc>
  17539. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17540. don't know what it means then you don't need it.]]>
  17541. </doc>
  17542. </field>
  17543. <field name="WORK_FACTOR" type="int"
  17544. transient="false" volatile="false"
  17545. static="true" final="true" visibility="protected"
  17546. deprecated="not deprecated">
  17547. <doc>
  17548. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17549. don't know what it means then you don't need it.]]>
  17550. </doc>
  17551. </field>
  17552. <field name="QSORT_STACK_SIZE" type="int"
  17553. transient="false" volatile="false"
  17554. static="true" final="true" visibility="protected"
  17555. deprecated="not deprecated">
  17556. <doc>
  17557. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17558. don't know what it means then you don't need it.
  17559. <p>
  17560. If you are ever unlucky/improbable enough to get a stack overflow whilst
  17561. sorting, increase the following constant and try again. In practice I
  17562. have never seen the stack go above 27 elems, so the following limit seems
  17563. very generous.
  17564. </p>]]>
  17565. </doc>
  17566. </field>
  17567. <doc>
  17568. <![CDATA[An output stream that compresses into the BZip2 format (without the file
  17569. header chars) into another stream.
  17570. <p>
  17571. The compression requires large amounts of memory. Thus you should call the
  17572. {@link #close() close()} method as soon as possible, to force
  17573. <tt>CBZip2OutputStream</tt> to release the allocated memory.
  17574. </p>
  17575. <p>
  17576. You can shrink the amount of allocated memory and maybe raise the compression
  17577. speed by choosing a lower blocksize, which in turn may cause a lower
  17578. compression ratio. You can avoid unnecessary memory allocation by avoiding
  17579. using a blocksize which is bigger than the size of the input.
  17580. </p>
  17581. <p>
  17582. You can compute the memory usage for compressing by the following formula:
  17583. </p>
  17584. <pre>
  17585. &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
  17586. </pre>
  17587. <p>
  17588. To get the memory required for decompression by {@link CBZip2InputStream
  17589. CBZip2InputStream} use
  17590. </p>
  17591. <pre>
  17592. &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
  17593. </pre>
  17594. <table width="100%" border="1">
  17595. <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
  17596. </colgroup>
  17597. <tr>
  17598. <th colspan="3">Memory usage by blocksize</th>
  17599. </tr>
  17600. <tr>
  17601. <th align="right">Blocksize</th> <th align="right">Compression<br>
  17602. memory usage</th> <th align="right">Decompression<br>
  17603. memory usage</th>
  17604. </tr>
  17605. <tr>
  17606. <td align="right">100k</td>
  17607. <td align="right">1300k</td>
  17608. <td align="right">565k</td>
  17609. </tr>
  17610. <tr>
  17611. <td align="right">200k</td>
  17612. <td align="right">2200k</td>
  17613. <td align="right">1065k</td>
  17614. </tr>
  17615. <tr>
  17616. <td align="right">300k</td>
  17617. <td align="right">3100k</td>
  17618. <td align="right">1565k</td>
  17619. </tr>
  17620. <tr>
  17621. <td align="right">400k</td>
  17622. <td align="right">4000k</td>
  17623. <td align="right">2065k</td>
  17624. </tr>
  17625. <tr>
  17626. <td align="right">500k</td>
  17627. <td align="right">4900k</td>
  17628. <td align="right">2565k</td>
  17629. </tr>
  17630. <tr>
  17631. <td align="right">600k</td>
  17632. <td align="right">5800k</td>
  17633. <td align="right">3065k</td>
  17634. </tr>
  17635. <tr>
  17636. <td align="right">700k</td>
  17637. <td align="right">6700k</td>
  17638. <td align="right">3565k</td>
  17639. </tr>
  17640. <tr>
  17641. <td align="right">800k</td>
  17642. <td align="right">7600k</td>
  17643. <td align="right">4065k</td>
  17644. </tr>
  17645. <tr>
  17646. <td align="right">900k</td>
  17647. <td align="right">8500k</td>
  17648. <td align="right">4565k</td>
  17649. </tr>
  17650. </table>
  17651. <p>
  17652. For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
  17653. bzipped input is smaller than one block.
  17654. </p>
  17655. <p>
  17656. Instances of this class are not threadsafe.
  17657. </p>
  17658. <p>
  17659. TODO: Update to BZip2 1.0.1
  17660. </p>]]>
  17661. </doc>
  17662. </class>
  17663. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  17664. </package>
  17665. <package name="org.apache.hadoop.io.compress.zlib">
  17666. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  17667. <class name="BuiltInGzipDecompressor" extends="java.lang.Object"
  17668. abstract="false"
  17669. static="false" final="false" visibility="public"
  17670. deprecated="not deprecated">
  17671. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17672. <constructor name="BuiltInGzipDecompressor"
  17673. static="false" final="false" visibility="public"
  17674. deprecated="not deprecated">
  17675. <doc>
  17676. <![CDATA[Creates a new (pure Java) gzip decompressor.]]>
  17677. </doc>
  17678. </constructor>
  17679. <method name="needsInput" return="boolean"
  17680. abstract="false" native="false" synchronized="true"
  17681. static="false" final="false" visibility="public"
  17682. deprecated="not deprecated">
  17683. <doc>
  17684. <![CDATA[{@inheritDoc}]]>
  17685. </doc>
  17686. </method>
  17687. <method name="setInput"
  17688. abstract="false" native="false" synchronized="true"
  17689. static="false" final="false" visibility="public"
  17690. deprecated="not deprecated">
  17691. <param name="b" type="byte[]"/>
  17692. <param name="off" type="int"/>
  17693. <param name="len" type="int"/>
  17694. <doc>
  17695. <![CDATA[{@inheritDoc}]]>
  17696. </doc>
  17697. </method>
  17698. <method name="decompress" return="int"
  17699. abstract="false" native="false" synchronized="true"
  17700. static="false" final="false" visibility="public"
  17701. deprecated="not deprecated">
  17702. <param name="b" type="byte[]"/>
  17703. <param name="off" type="int"/>
  17704. <param name="len" type="int"/>
  17705. <exception name="IOException" type="java.io.IOException"/>
  17706. <doc>
  17707. <![CDATA[Decompress the data (gzip header, deflate stream, gzip trailer) in the
  17708. provided buffer.
  17709. @return the number of decompressed bytes placed into b]]>
  17710. </doc>
  17711. </method>
  17712. <method name="getBytesRead" return="long"
  17713. abstract="false" native="false" synchronized="true"
  17714. static="false" final="false" visibility="public"
  17715. deprecated="not deprecated">
  17716. <doc>
  17717. <![CDATA[Returns the total number of compressed bytes input so far, including
  17718. gzip header/trailer bytes.</p>
  17719. @return the total (non-negative) number of compressed bytes read so far]]>
  17720. </doc>
  17721. </method>
  17722. <method name="getRemaining" return="int"
  17723. abstract="false" native="false" synchronized="true"
  17724. static="false" final="false" visibility="public"
  17725. deprecated="not deprecated">
  17726. <doc>
  17727. <![CDATA[Returns the number of bytes remaining in the input buffer; normally
  17728. called when finished() is true to determine amount of post-gzip-stream
  17729. data. Note that, other than the finished state with concatenated data
  17730. after the end of the current gzip stream, this will never return a
  17731. non-zero value unless called after {@link #setInput(byte[] b, int off,
  17732. int len)} and before {@link #decompress(byte[] b, int off, int len)}.
  17733. (That is, after {@link #decompress(byte[] b, int off, int len)} it
  17734. always returns zero, except in finished state with concatenated data.)</p>
  17735. @return the total (non-negative) number of unprocessed bytes in input]]>
  17736. </doc>
  17737. </method>
  17738. <method name="needsDictionary" return="boolean"
  17739. abstract="false" native="false" synchronized="true"
  17740. static="false" final="false" visibility="public"
  17741. deprecated="not deprecated">
  17742. <doc>
  17743. <![CDATA[{@inheritDoc}]]>
  17744. </doc>
  17745. </method>
  17746. <method name="setDictionary"
  17747. abstract="false" native="false" synchronized="true"
  17748. static="false" final="false" visibility="public"
  17749. deprecated="not deprecated">
  17750. <param name="b" type="byte[]"/>
  17751. <param name="off" type="int"/>
  17752. <param name="len" type="int"/>
  17753. <doc>
  17754. <![CDATA[{@inheritDoc}]]>
  17755. </doc>
  17756. </method>
  17757. <method name="finished" return="boolean"
  17758. abstract="false" native="false" synchronized="true"
  17759. static="false" final="false" visibility="public"
  17760. deprecated="not deprecated">
  17761. <doc>
  17762. <![CDATA[Returns true if the end of the gzip substream (single "member") has been
  17763. reached.</p>]]>
  17764. </doc>
  17765. </method>
  17766. <method name="reset"
  17767. abstract="false" native="false" synchronized="true"
  17768. static="false" final="false" visibility="public"
  17769. deprecated="not deprecated">
  17770. <doc>
  17771. <![CDATA[Resets everything, including the input buffer, regardless of whether the
  17772. current gzip substream is finished.</p>]]>
  17773. </doc>
  17774. </method>
  17775. <method name="end"
  17776. abstract="false" native="false" synchronized="true"
  17777. static="false" final="false" visibility="public"
  17778. deprecated="not deprecated">
  17779. <doc>
  17780. <![CDATA[{@inheritDoc}]]>
  17781. </doc>
  17782. </method>
  17783. <doc>
  17784. <![CDATA[A {@link Decompressor} based on the popular gzip compressed file format.
  17785. http://www.gzip.org/]]>
  17786. </doc>
  17787. </class>
  17788. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  17789. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  17790. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  17791. abstract="false"
  17792. static="false" final="false" visibility="public"
  17793. deprecated="not deprecated">
  17794. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  17795. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  17796. static="false" final="false" visibility="public"
  17797. deprecated="not deprecated">
  17798. </constructor>
  17799. <constructor name="BuiltInZlibDeflater" type="int"
  17800. static="false" final="false" visibility="public"
  17801. deprecated="not deprecated">
  17802. </constructor>
  17803. <constructor name="BuiltInZlibDeflater"
  17804. static="false" final="false" visibility="public"
  17805. deprecated="not deprecated">
  17806. </constructor>
  17807. <method name="compress" return="int"
  17808. abstract="false" native="false" synchronized="true"
  17809. static="false" final="false" visibility="public"
  17810. deprecated="not deprecated">
  17811. <param name="b" type="byte[]"/>
  17812. <param name="off" type="int"/>
  17813. <param name="len" type="int"/>
  17814. <exception name="IOException" type="java.io.IOException"/>
  17815. </method>
  17816. <method name="reinit"
  17817. abstract="false" native="false" synchronized="false"
  17818. static="false" final="false" visibility="public"
  17819. deprecated="not deprecated">
  17820. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17821. <doc>
  17822. <![CDATA[reinit the compressor with the given configuration. It will reset the
  17823. compressor's compression level and compression strategy. Different from
  17824. <tt>ZlibCompressor</tt>, <tt>BuiltInZlibDeflater</tt> only support three
  17825. kind of compression strategy: FILTERED, HUFFMAN_ONLY and DEFAULT_STRATEGY.
  17826. It will use DEFAULT_STRATEGY as default if the configured compression
  17827. strategy is not supported.]]>
  17828. </doc>
  17829. </method>
  17830. <doc>
  17831. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  17832. to org.apache.hadoop.io.compress.Compressor interface.]]>
  17833. </doc>
  17834. </class>
  17835. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  17836. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  17837. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  17838. abstract="false"
  17839. static="false" final="false" visibility="public"
  17840. deprecated="not deprecated">
  17841. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17842. <constructor name="BuiltInZlibInflater" type="boolean"
  17843. static="false" final="false" visibility="public"
  17844. deprecated="not deprecated">
  17845. </constructor>
  17846. <constructor name="BuiltInZlibInflater"
  17847. static="false" final="false" visibility="public"
  17848. deprecated="not deprecated">
  17849. </constructor>
  17850. <method name="decompress" return="int"
  17851. abstract="false" native="false" synchronized="true"
  17852. static="false" final="false" visibility="public"
  17853. deprecated="not deprecated">
  17854. <param name="b" type="byte[]"/>
  17855. <param name="off" type="int"/>
  17856. <param name="len" type="int"/>
  17857. <exception name="IOException" type="java.io.IOException"/>
  17858. </method>
  17859. <doc>
  17860. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  17861. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  17862. </doc>
  17863. </class>
  17864. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  17865. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  17866. <class name="ZlibCompressor" extends="java.lang.Object"
  17867. abstract="false"
  17868. static="false" final="false" visibility="public"
  17869. deprecated="not deprecated">
  17870. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  17871. <constructor name="ZlibCompressor"
  17872. static="false" final="false" visibility="public"
  17873. deprecated="not deprecated">
  17874. <doc>
  17875. <![CDATA[Creates a new compressor with the default compression level.
  17876. Compressed data will be generated in ZLIB format.]]>
  17877. </doc>
  17878. </constructor>
  17879. <constructor name="ZlibCompressor" type="org.apache.hadoop.conf.Configuration"
  17880. static="false" final="false" visibility="public"
  17881. deprecated="not deprecated">
  17882. <doc>
  17883. <![CDATA[Creates a new compressor, taking settings from the configuration.]]>
  17884. </doc>
  17885. </constructor>
  17886. <constructor name="ZlibCompressor" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel, org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy, org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader, int"
  17887. static="false" final="false" visibility="public"
  17888. deprecated="not deprecated">
  17889. <doc>
  17890. <![CDATA[Creates a new compressor using the specified compression level.
  17891. Compressed data will be generated in ZLIB format.
  17892. @param level Compression level #CompressionLevel
  17893. @param strategy Compression strategy #CompressionStrategy
  17894. @param header Compression header #CompressionHeader
  17895. @param directBufferSize Size of the direct buffer to be used.]]>
  17896. </doc>
  17897. </constructor>
  17898. <method name="construct"
  17899. abstract="false" native="false" synchronized="false"
  17900. static="false" final="true" visibility="protected"
  17901. deprecated="not deprecated">
  17902. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  17903. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  17904. <param name="header" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"/>
  17905. <param name="directBufferSize" type="int"/>
  17906. </method>
  17907. <method name="reinit"
  17908. abstract="false" native="false" synchronized="true"
  17909. static="false" final="false" visibility="public"
  17910. deprecated="not deprecated">
  17911. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17912. <doc>
  17913. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  17914. the given Configuration. It will reset the compressor's compression level
  17915. and compression strategy.
  17916. @param conf Configuration storing new settings]]>
  17917. </doc>
  17918. </method>
  17919. <method name="setInput"
  17920. abstract="false" native="false" synchronized="true"
  17921. static="false" final="false" visibility="public"
  17922. deprecated="not deprecated">
  17923. <param name="b" type="byte[]"/>
  17924. <param name="off" type="int"/>
  17925. <param name="len" type="int"/>
  17926. </method>
  17927. <method name="setDictionary"
  17928. abstract="false" native="false" synchronized="true"
  17929. static="false" final="false" visibility="public"
  17930. deprecated="not deprecated">
  17931. <param name="b" type="byte[]"/>
  17932. <param name="off" type="int"/>
  17933. <param name="len" type="int"/>
  17934. </method>
  17935. <method name="needsInput" return="boolean"
  17936. abstract="false" native="false" synchronized="false"
  17937. static="false" final="false" visibility="public"
  17938. deprecated="not deprecated">
  17939. </method>
  17940. <method name="finish"
  17941. abstract="false" native="false" synchronized="true"
  17942. static="false" final="false" visibility="public"
  17943. deprecated="not deprecated">
  17944. </method>
  17945. <method name="finished" return="boolean"
  17946. abstract="false" native="false" synchronized="true"
  17947. static="false" final="false" visibility="public"
  17948. deprecated="not deprecated">
  17949. </method>
  17950. <method name="compress" return="int"
  17951. abstract="false" native="false" synchronized="true"
  17952. static="false" final="false" visibility="public"
  17953. deprecated="not deprecated">
  17954. <param name="b" type="byte[]"/>
  17955. <param name="off" type="int"/>
  17956. <param name="len" type="int"/>
  17957. <exception name="IOException" type="java.io.IOException"/>
  17958. </method>
  17959. <method name="getBytesWritten" return="long"
  17960. abstract="false" native="false" synchronized="true"
  17961. static="false" final="false" visibility="public"
  17962. deprecated="not deprecated">
  17963. <doc>
  17964. <![CDATA[Returns the total number of compressed bytes output so far.
  17965. @return the total (non-negative) number of compressed bytes output so far]]>
  17966. </doc>
  17967. </method>
  17968. <method name="getBytesRead" return="long"
  17969. abstract="false" native="false" synchronized="true"
  17970. static="false" final="false" visibility="public"
  17971. deprecated="not deprecated">
  17972. <doc>
  17973. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  17974. @return the total (non-negative) number of uncompressed bytes input so far]]>
  17975. </doc>
  17976. </method>
  17977. <method name="reset"
  17978. abstract="false" native="false" synchronized="true"
  17979. static="false" final="false" visibility="public"
  17980. deprecated="not deprecated">
  17981. </method>
  17982. <method name="end"
  17983. abstract="false" native="false" synchronized="true"
  17984. static="false" final="false" visibility="public"
  17985. deprecated="not deprecated">
  17986. </method>
  17987. <doc>
  17988. <![CDATA[A {@link Compressor} based on the popular
  17989. zlib compression algorithm.
  17990. http://www.zlib.net/]]>
  17991. </doc>
  17992. </class>
  17993. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  17994. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  17995. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum"
  17996. abstract="false"
  17997. static="true" final="true" visibility="public"
  17998. deprecated="not deprecated">
  17999. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  18000. abstract="false" native="false" synchronized="false"
  18001. static="true" final="false" visibility="public"
  18002. deprecated="not deprecated">
  18003. </method>
  18004. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18005. abstract="false" native="false" synchronized="false"
  18006. static="true" final="false" visibility="public"
  18007. deprecated="not deprecated">
  18008. <param name="name" type="java.lang.String"/>
  18009. </method>
  18010. <method name="windowBits" return="int"
  18011. abstract="false" native="false" synchronized="false"
  18012. static="false" final="false" visibility="public"
  18013. deprecated="not deprecated">
  18014. </method>
  18015. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18016. transient="false" volatile="false"
  18017. static="true" final="true" visibility="public"
  18018. deprecated="not deprecated">
  18019. <doc>
  18020. <![CDATA[No headers/trailers/checksums.]]>
  18021. </doc>
  18022. </field>
  18023. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18024. transient="false" volatile="false"
  18025. static="true" final="true" visibility="public"
  18026. deprecated="not deprecated">
  18027. <doc>
  18028. <![CDATA[Default headers/trailers/checksums.]]>
  18029. </doc>
  18030. </field>
  18031. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18032. transient="false" volatile="false"
  18033. static="true" final="true" visibility="public"
  18034. deprecated="not deprecated">
  18035. <doc>
  18036. <![CDATA[Simple gzip headers/trailers.]]>
  18037. </doc>
  18038. </field>
  18039. <doc>
  18040. <![CDATA[The type of header for compressed data.]]>
  18041. </doc>
  18042. </class>
  18043. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  18044. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  18045. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum"
  18046. abstract="false"
  18047. static="true" final="true" visibility="public"
  18048. deprecated="not deprecated">
  18049. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  18050. abstract="false" native="false" synchronized="false"
  18051. static="true" final="false" visibility="public"
  18052. deprecated="not deprecated">
  18053. </method>
  18054. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18055. abstract="false" native="false" synchronized="false"
  18056. static="true" final="false" visibility="public"
  18057. deprecated="not deprecated">
  18058. <param name="name" type="java.lang.String"/>
  18059. </method>
  18060. <field name="NO_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18061. transient="false" volatile="false"
  18062. static="true" final="true" visibility="public"
  18063. deprecated="not deprecated">
  18064. <doc>
  18065. <![CDATA[Compression level for no compression.]]>
  18066. </doc>
  18067. </field>
  18068. <field name="BEST_SPEED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18069. transient="false" volatile="false"
  18070. static="true" final="true" visibility="public"
  18071. deprecated="not deprecated">
  18072. <doc>
  18073. <![CDATA[Compression level for fastest compression.]]>
  18074. </doc>
  18075. </field>
  18076. <field name="BEST_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18077. transient="false" volatile="false"
  18078. static="true" final="true" visibility="public"
  18079. deprecated="not deprecated">
  18080. <doc>
  18081. <![CDATA[Compression level for best compression.]]>
  18082. </doc>
  18083. </field>
  18084. <field name="DEFAULT_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18085. transient="false" volatile="false"
  18086. static="true" final="true" visibility="public"
  18087. deprecated="not deprecated">
  18088. <doc>
  18089. <![CDATA[Default compression level.]]>
  18090. </doc>
  18091. </field>
  18092. <doc>
  18093. <![CDATA[The compression level for zlib library.]]>
  18094. </doc>
  18095. </class>
  18096. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  18097. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  18098. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum"
  18099. abstract="false"
  18100. static="true" final="true" visibility="public"
  18101. deprecated="not deprecated">
  18102. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  18103. abstract="false" native="false" synchronized="false"
  18104. static="true" final="false" visibility="public"
  18105. deprecated="not deprecated">
  18106. </method>
  18107. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18108. abstract="false" native="false" synchronized="false"
  18109. static="true" final="false" visibility="public"
  18110. deprecated="not deprecated">
  18111. <param name="name" type="java.lang.String"/>
  18112. </method>
  18113. <field name="FILTERED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18114. transient="false" volatile="false"
  18115. static="true" final="true" visibility="public"
  18116. deprecated="not deprecated">
  18117. <doc>
  18118. <![CDATA[Compression strategy best used for data consisting mostly of small
  18119. values with a somewhat random distribution. Forces more Huffman coding
  18120. and less string matching.]]>
  18121. </doc>
  18122. </field>
  18123. <field name="HUFFMAN_ONLY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18124. transient="false" volatile="false"
  18125. static="true" final="true" visibility="public"
  18126. deprecated="not deprecated">
  18127. <doc>
  18128. <![CDATA[Compression strategy for Huffman coding only.]]>
  18129. </doc>
  18130. </field>
  18131. <field name="RLE" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18132. transient="false" volatile="false"
  18133. static="true" final="true" visibility="public"
  18134. deprecated="not deprecated">
  18135. <doc>
  18136. <![CDATA[Compression strategy to limit match distances to one
  18137. (run-length encoding).]]>
  18138. </doc>
  18139. </field>
  18140. <field name="FIXED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18141. transient="false" volatile="false"
  18142. static="true" final="true" visibility="public"
  18143. deprecated="not deprecated">
  18144. <doc>
  18145. <![CDATA[Compression strategy to prevent the use of dynamic Huffman codes,
  18146. allowing for a simpler decoder for special applications.]]>
  18147. </doc>
  18148. </field>
  18149. <field name="DEFAULT_STRATEGY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18150. transient="false" volatile="false"
  18151. static="true" final="true" visibility="public"
  18152. deprecated="not deprecated">
  18153. <doc>
  18154. <![CDATA[Default compression strategy.]]>
  18155. </doc>
  18156. </field>
  18157. <doc>
  18158. <![CDATA[The compression level for zlib library.]]>
  18159. </doc>
  18160. </class>
  18161. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  18162. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  18163. <class name="ZlibDecompressor" extends="java.lang.Object"
  18164. abstract="false"
  18165. static="false" final="false" visibility="public"
  18166. deprecated="not deprecated">
  18167. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18168. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  18169. static="false" final="false" visibility="public"
  18170. deprecated="not deprecated">
  18171. <doc>
  18172. <![CDATA[Creates a new decompressor.]]>
  18173. </doc>
  18174. </constructor>
  18175. <constructor name="ZlibDecompressor"
  18176. static="false" final="false" visibility="public"
  18177. deprecated="not deprecated">
  18178. </constructor>
  18179. <method name="setInput"
  18180. abstract="false" native="false" synchronized="true"
  18181. static="false" final="false" visibility="public"
  18182. deprecated="not deprecated">
  18183. <param name="b" type="byte[]"/>
  18184. <param name="off" type="int"/>
  18185. <param name="len" type="int"/>
  18186. </method>
  18187. <method name="setDictionary"
  18188. abstract="false" native="false" synchronized="true"
  18189. static="false" final="false" visibility="public"
  18190. deprecated="not deprecated">
  18191. <param name="b" type="byte[]"/>
  18192. <param name="off" type="int"/>
  18193. <param name="len" type="int"/>
  18194. </method>
  18195. <method name="needsInput" return="boolean"
  18196. abstract="false" native="false" synchronized="true"
  18197. static="false" final="false" visibility="public"
  18198. deprecated="not deprecated">
  18199. </method>
  18200. <method name="needsDictionary" return="boolean"
  18201. abstract="false" native="false" synchronized="true"
  18202. static="false" final="false" visibility="public"
  18203. deprecated="not deprecated">
  18204. </method>
  18205. <method name="finished" return="boolean"
  18206. abstract="false" native="false" synchronized="true"
  18207. static="false" final="false" visibility="public"
  18208. deprecated="not deprecated">
  18209. </method>
  18210. <method name="decompress" return="int"
  18211. abstract="false" native="false" synchronized="true"
  18212. static="false" final="false" visibility="public"
  18213. deprecated="not deprecated">
  18214. <param name="b" type="byte[]"/>
  18215. <param name="off" type="int"/>
  18216. <param name="len" type="int"/>
  18217. <exception name="IOException" type="java.io.IOException"/>
  18218. </method>
  18219. <method name="getBytesWritten" return="long"
  18220. abstract="false" native="false" synchronized="true"
  18221. static="false" final="false" visibility="public"
  18222. deprecated="not deprecated">
  18223. <doc>
  18224. <![CDATA[Returns the total number of uncompressed bytes output so far.
  18225. @return the total (non-negative) number of uncompressed bytes output so far]]>
  18226. </doc>
  18227. </method>
  18228. <method name="getBytesRead" return="long"
  18229. abstract="false" native="false" synchronized="true"
  18230. static="false" final="false" visibility="public"
  18231. deprecated="not deprecated">
  18232. <doc>
  18233. <![CDATA[Returns the total number of compressed bytes input so far.</p>
  18234. @return the total (non-negative) number of compressed bytes input so far]]>
  18235. </doc>
  18236. </method>
  18237. <method name="getRemaining" return="int"
  18238. abstract="false" native="false" synchronized="true"
  18239. static="false" final="false" visibility="public"
  18240. deprecated="not deprecated">
  18241. <doc>
  18242. <![CDATA[Returns the number of bytes remaining in the input buffers; normally
  18243. called when finished() is true to determine amount of post-gzip-stream
  18244. data.</p>
  18245. @return the total (non-negative) number of unprocessed bytes in input]]>
  18246. </doc>
  18247. </method>
  18248. <method name="reset"
  18249. abstract="false" native="false" synchronized="true"
  18250. static="false" final="false" visibility="public"
  18251. deprecated="not deprecated">
  18252. <doc>
  18253. <![CDATA[Resets everything including the input buffers (user and direct).</p>]]>
  18254. </doc>
  18255. </method>
  18256. <method name="end"
  18257. abstract="false" native="false" synchronized="true"
  18258. static="false" final="false" visibility="public"
  18259. deprecated="not deprecated">
  18260. </method>
  18261. <method name="finalize"
  18262. abstract="false" native="false" synchronized="false"
  18263. static="false" final="false" visibility="protected"
  18264. deprecated="not deprecated">
  18265. </method>
  18266. <doc>
  18267. <![CDATA[A {@link Decompressor} based on the popular
  18268. zlib compression algorithm.
  18269. http://www.zlib.net/]]>
  18270. </doc>
  18271. </class>
  18272. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  18273. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  18274. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum"
  18275. abstract="false"
  18276. static="true" final="true" visibility="public"
  18277. deprecated="not deprecated">
  18278. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  18279. abstract="false" native="false" synchronized="false"
  18280. static="true" final="false" visibility="public"
  18281. deprecated="not deprecated">
  18282. </method>
  18283. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18284. abstract="false" native="false" synchronized="false"
  18285. static="true" final="false" visibility="public"
  18286. deprecated="not deprecated">
  18287. <param name="name" type="java.lang.String"/>
  18288. </method>
  18289. <method name="windowBits" return="int"
  18290. abstract="false" native="false" synchronized="false"
  18291. static="false" final="false" visibility="public"
  18292. deprecated="not deprecated">
  18293. </method>
  18294. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18295. transient="false" volatile="false"
  18296. static="true" final="true" visibility="public"
  18297. deprecated="not deprecated">
  18298. <doc>
  18299. <![CDATA[No headers/trailers/checksums.]]>
  18300. </doc>
  18301. </field>
  18302. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18303. transient="false" volatile="false"
  18304. static="true" final="true" visibility="public"
  18305. deprecated="not deprecated">
  18306. <doc>
  18307. <![CDATA[Default headers/trailers/checksums.]]>
  18308. </doc>
  18309. </field>
  18310. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18311. transient="false" volatile="false"
  18312. static="true" final="true" visibility="public"
  18313. deprecated="not deprecated">
  18314. <doc>
  18315. <![CDATA[Simple gzip headers/trailers.]]>
  18316. </doc>
  18317. </field>
  18318. <field name="AUTODETECT_GZIP_ZLIB" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18319. transient="false" volatile="false"
  18320. static="true" final="true" visibility="public"
  18321. deprecated="not deprecated">
  18322. <doc>
  18323. <![CDATA[Autodetect gzip/zlib headers/trailers.]]>
  18324. </doc>
  18325. </field>
  18326. <doc>
  18327. <![CDATA[The headers to detect from compressed data.]]>
  18328. </doc>
  18329. </class>
  18330. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  18331. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  18332. <class name="ZlibFactory" extends="java.lang.Object"
  18333. abstract="false"
  18334. static="false" final="false" visibility="public"
  18335. deprecated="not deprecated">
  18336. <constructor name="ZlibFactory"
  18337. static="false" final="false" visibility="public"
  18338. deprecated="not deprecated">
  18339. </constructor>
  18340. <method name="isNativeZlibLoaded" return="boolean"
  18341. abstract="false" native="false" synchronized="false"
  18342. static="true" final="false" visibility="public"
  18343. deprecated="not deprecated">
  18344. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18345. <doc>
  18346. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  18347. can be loaded for this job.
  18348. @param conf configuration
  18349. @return <code>true</code> if native-zlib is loaded & initialized
  18350. and can be loaded for this job, else <code>false</code>]]>
  18351. </doc>
  18352. </method>
  18353. <method name="getZlibCompressorType" return="java.lang.Class"
  18354. abstract="false" native="false" synchronized="false"
  18355. static="true" final="false" visibility="public"
  18356. deprecated="not deprecated">
  18357. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18358. <doc>
  18359. <![CDATA[Return the appropriate type of the zlib compressor.
  18360. @param conf configuration
  18361. @return the appropriate type of the zlib compressor.]]>
  18362. </doc>
  18363. </method>
  18364. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  18365. abstract="false" native="false" synchronized="false"
  18366. static="true" final="false" visibility="public"
  18367. deprecated="not deprecated">
  18368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18369. <doc>
  18370. <![CDATA[Return the appropriate implementation of the zlib compressor.
  18371. @param conf configuration
  18372. @return the appropriate implementation of the zlib compressor.]]>
  18373. </doc>
  18374. </method>
  18375. <method name="getZlibDecompressorType" return="java.lang.Class"
  18376. abstract="false" native="false" synchronized="false"
  18377. static="true" final="false" visibility="public"
  18378. deprecated="not deprecated">
  18379. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18380. <doc>
  18381. <![CDATA[Return the appropriate type of the zlib decompressor.
  18382. @param conf configuration
  18383. @return the appropriate type of the zlib decompressor.]]>
  18384. </doc>
  18385. </method>
  18386. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  18387. abstract="false" native="false" synchronized="false"
  18388. static="true" final="false" visibility="public"
  18389. deprecated="not deprecated">
  18390. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18391. <doc>
  18392. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  18393. @param conf configuration
  18394. @return the appropriate implementation of the zlib decompressor.]]>
  18395. </doc>
  18396. </method>
  18397. <method name="setCompressionStrategy"
  18398. abstract="false" native="false" synchronized="false"
  18399. static="true" final="false" visibility="public"
  18400. deprecated="not deprecated">
  18401. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18402. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  18403. </method>
  18404. <method name="getCompressionStrategy" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18405. abstract="false" native="false" synchronized="false"
  18406. static="true" final="false" visibility="public"
  18407. deprecated="not deprecated">
  18408. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18409. </method>
  18410. <method name="setCompressionLevel"
  18411. abstract="false" native="false" synchronized="false"
  18412. static="true" final="false" visibility="public"
  18413. deprecated="not deprecated">
  18414. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18415. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  18416. </method>
  18417. <method name="getCompressionLevel" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18418. abstract="false" native="false" synchronized="false"
  18419. static="true" final="false" visibility="public"
  18420. deprecated="not deprecated">
  18421. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18422. </method>
  18423. <doc>
  18424. <![CDATA[A collection of factories to create the right
  18425. zlib/gzip compressor/decompressor instances.]]>
  18426. </doc>
  18427. </class>
  18428. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  18429. </package>
  18430. <package name="org.apache.hadoop.io.file.tfile">
  18431. <!-- start class org.apache.hadoop.io.file.tfile.ByteArray -->
  18432. <class name="ByteArray" extends="java.lang.Object"
  18433. abstract="false"
  18434. static="false" final="true" visibility="public"
  18435. deprecated="not deprecated">
  18436. <implements name="org.apache.hadoop.io.file.tfile.RawComparable"/>
  18437. <constructor name="ByteArray" type="org.apache.hadoop.io.BytesWritable"
  18438. static="false" final="false" visibility="public"
  18439. deprecated="not deprecated">
  18440. <doc>
  18441. <![CDATA[Constructing a ByteArray from a {@link BytesWritable}.
  18442. @param other]]>
  18443. </doc>
  18444. </constructor>
  18445. <constructor name="ByteArray" type="byte[]"
  18446. static="false" final="false" visibility="public"
  18447. deprecated="not deprecated">
  18448. <doc>
  18449. <![CDATA[Wrap a whole byte array as a RawComparable.
  18450. @param buffer
  18451. the byte array buffer.]]>
  18452. </doc>
  18453. </constructor>
  18454. <constructor name="ByteArray" type="byte[], int, int"
  18455. static="false" final="false" visibility="public"
  18456. deprecated="not deprecated">
  18457. <doc>
  18458. <![CDATA[Wrap a partial byte array as a RawComparable.
  18459. @param buffer
  18460. the byte array buffer.
  18461. @param offset
  18462. the starting offset
  18463. @param len
  18464. the length of the consecutive bytes to be wrapped.]]>
  18465. </doc>
  18466. </constructor>
  18467. <method name="buffer" return="byte[]"
  18468. abstract="false" native="false" synchronized="false"
  18469. static="false" final="false" visibility="public"
  18470. deprecated="not deprecated">
  18471. <doc>
  18472. <![CDATA[@return the underlying buffer.]]>
  18473. </doc>
  18474. </method>
  18475. <method name="offset" return="int"
  18476. abstract="false" native="false" synchronized="false"
  18477. static="false" final="false" visibility="public"
  18478. deprecated="not deprecated">
  18479. <doc>
  18480. <![CDATA[@return the offset in the buffer.]]>
  18481. </doc>
  18482. </method>
  18483. <method name="size" return="int"
  18484. abstract="false" native="false" synchronized="false"
  18485. static="false" final="false" visibility="public"
  18486. deprecated="not deprecated">
  18487. <doc>
  18488. <![CDATA[@return the size of the byte array.]]>
  18489. </doc>
  18490. </method>
  18491. <doc>
  18492. <![CDATA[Adaptor class to wrap byte-array backed objects (including java byte array)
  18493. as RawComparable objects.]]>
  18494. </doc>
  18495. </class>
  18496. <!-- end class org.apache.hadoop.io.file.tfile.ByteArray -->
  18497. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  18498. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  18499. abstract="false"
  18500. static="false" final="false" visibility="public"
  18501. deprecated="not deprecated">
  18502. <doc>
  18503. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  18504. </doc>
  18505. </class>
  18506. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  18507. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  18508. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  18509. abstract="false"
  18510. static="false" final="false" visibility="public"
  18511. deprecated="not deprecated">
  18512. <doc>
  18513. <![CDATA[Exception - No such Meta Block with the given name.]]>
  18514. </doc>
  18515. </class>
  18516. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  18517. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  18518. <interface name="RawComparable" abstract="true"
  18519. static="false" final="false" visibility="public"
  18520. deprecated="not deprecated">
  18521. <method name="buffer" return="byte[]"
  18522. abstract="false" native="false" synchronized="false"
  18523. static="false" final="false" visibility="public"
  18524. deprecated="not deprecated">
  18525. <doc>
  18526. <![CDATA[Get the underlying byte array.
  18527. @return The underlying byte array.]]>
  18528. </doc>
  18529. </method>
  18530. <method name="offset" return="int"
  18531. abstract="false" native="false" synchronized="false"
  18532. static="false" final="false" visibility="public"
  18533. deprecated="not deprecated">
  18534. <doc>
  18535. <![CDATA[Get the offset of the first byte in the byte array.
  18536. @return The offset of the first byte in the byte array.]]>
  18537. </doc>
  18538. </method>
  18539. <method name="size" return="int"
  18540. abstract="false" native="false" synchronized="false"
  18541. static="false" final="false" visibility="public"
  18542. deprecated="not deprecated">
  18543. <doc>
  18544. <![CDATA[Get the size of the byte range in the byte array.
  18545. @return The size of the byte range in the byte array.]]>
  18546. </doc>
  18547. </method>
  18548. <doc>
  18549. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  18550. This is useful in places where we need a single object reference to specify a
  18551. range of bytes in a byte array, such as {@link Comparable} or
  18552. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  18553. The actual comparison among RawComparable's requires an external
  18554. RawComparator and it is applications' responsibility to ensure two
  18555. RawComparable are supposed to be semantically comparable with the same
  18556. RawComparator.]]>
  18557. </doc>
  18558. </interface>
  18559. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  18560. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  18561. <class name="TFile" extends="java.lang.Object"
  18562. abstract="false"
  18563. static="false" final="false" visibility="public"
  18564. deprecated="not deprecated">
  18565. <method name="makeComparator" return="java.util.Comparator"
  18566. abstract="false" native="false" synchronized="false"
  18567. static="true" final="false" visibility="public"
  18568. deprecated="not deprecated">
  18569. <param name="name" type="java.lang.String"/>
  18570. <doc>
  18571. <![CDATA[Make a raw comparator from a string name.
  18572. @param name
  18573. Comparator name
  18574. @return A RawComparable comparator.]]>
  18575. </doc>
  18576. </method>
  18577. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  18578. abstract="false" native="false" synchronized="false"
  18579. static="true" final="false" visibility="public"
  18580. deprecated="not deprecated">
  18581. <doc>
  18582. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  18583. TFile.Writer.
  18584. @return Array of strings, each represents a supported compression
  18585. algorithm. Currently, the following compression algorithms are
  18586. supported.
  18587. <ul>
  18588. <li>"none" - No compression.
  18589. <li>"lzo" - LZO compression.
  18590. <li>"gz" - GZIP compression.
  18591. </ul>]]>
  18592. </doc>
  18593. </method>
  18594. <method name="main"
  18595. abstract="false" native="false" synchronized="false"
  18596. static="true" final="false" visibility="public"
  18597. deprecated="not deprecated">
  18598. <param name="args" type="java.lang.String[]"/>
  18599. <doc>
  18600. <![CDATA[Dumping the TFile information.
  18601. @param args
  18602. A list of TFile paths.]]>
  18603. </doc>
  18604. </method>
  18605. <field name="COMPRESSION_GZ" type="java.lang.String"
  18606. transient="false" volatile="false"
  18607. static="true" final="true" visibility="public"
  18608. deprecated="not deprecated">
  18609. <doc>
  18610. <![CDATA[compression: gzip]]>
  18611. </doc>
  18612. </field>
  18613. <field name="COMPRESSION_LZO" type="java.lang.String"
  18614. transient="false" volatile="false"
  18615. static="true" final="true" visibility="public"
  18616. deprecated="not deprecated">
  18617. <doc>
  18618. <![CDATA[compression: lzo]]>
  18619. </doc>
  18620. </field>
  18621. <field name="COMPRESSION_NONE" type="java.lang.String"
  18622. transient="false" volatile="false"
  18623. static="true" final="true" visibility="public"
  18624. deprecated="not deprecated">
  18625. <doc>
  18626. <![CDATA[compression: none]]>
  18627. </doc>
  18628. </field>
  18629. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  18630. transient="false" volatile="false"
  18631. static="true" final="true" visibility="public"
  18632. deprecated="not deprecated">
  18633. <doc>
  18634. <![CDATA[comparator: memcmp]]>
  18635. </doc>
  18636. </field>
  18637. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  18638. transient="false" volatile="false"
  18639. static="true" final="true" visibility="public"
  18640. deprecated="not deprecated">
  18641. <doc>
  18642. <![CDATA[comparator prefix: java class]]>
  18643. </doc>
  18644. </field>
  18645. <doc>
  18646. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  18647. bytes. Keys are restricted to 64KB, value length is not restricted
  18648. (practically limited to the available disk storage). TFile further provides
  18649. the following features:
  18650. <ul>
  18651. <li>Block Compression.
  18652. <li>Named meta data blocks.
  18653. <li>Sorted or unsorted keys.
  18654. <li>Seek by key or by file offset.
  18655. </ul>
  18656. The memory footprint of a TFile includes the following:
  18657. <ul>
  18658. <li>Some constant overhead of reading or writing a compressed block.
  18659. <ul>
  18660. <li>Each compressed block requires one compression/decompression codec for
  18661. I/O.
  18662. <li>Temporary space to buffer the key.
  18663. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  18664. chunk encoded, so that we buffer at most one chunk of user data. By default,
  18665. the chunk buffer is 1MB. Reading chunked value does not require additional
  18666. memory.
  18667. </ul>
  18668. <li>TFile index, which is proportional to the total number of Data Blocks.
  18669. The total amount of memory needed to hold the index can be estimated as
  18670. (56+AvgKeySize)*NumBlocks.
  18671. <li>MetaBlock index, which is proportional to the total number of Meta
  18672. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  18673. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  18674. </ul>
  18675. <p>
  18676. The behavior of TFile can be customized by the following variables through
  18677. Configuration:
  18678. <ul>
  18679. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  18680. to 1MB. Values of the length less than the chunk size is guaranteed to have
  18681. known value length in read time (See
  18682. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  18683. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  18684. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  18685. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  18686. FSDataInputStream. Integer (in bytes). Default to 256KB.
  18687. </ul>
  18688. <p>
  18689. Suggestions on performance optimization.
  18690. <ul>
  18691. <li>Minimum block size. We recommend a setting of minimum block size between
  18692. 256KB to 1MB for general usage. Larger block size is preferred if files are
  18693. primarily for sequential access. However, it would lead to inefficient random
  18694. access (because there are more data to decompress). Smaller blocks are good
  18695. for random access, but require more memory to hold the block index, and may
  18696. be slower to create (because we must flush the compressor stream at the
  18697. conclusion of each data block, which leads to an FS I/O flush). Further, due
  18698. to the internal caching in Compression codec, the smallest possible block
  18699. size would be around 20KB-30KB.
  18700. <li>The current implementation does not offer true multi-threading for
  18701. reading. The implementation uses FSDataInputStream seek()+read(), which is
  18702. shown to be much faster than positioned-read call in single thread mode.
  18703. However, it also means that if multiple threads attempt to access the same
  18704. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  18705. sequentially even if they access different DFS blocks.
  18706. <li>Compression codec. Use "none" if the data is not very compressable (by
  18707. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  18708. as the starting point for experimenting. "gz" overs slightly better
  18709. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  18710. decompress, comparing to "lzo".
  18711. <li>File system buffering, if the underlying FSDataInputStream and
  18712. FSDataOutputStream is already adequately buffered; or if applications
  18713. reads/writes keys and values in large buffers, we can reduce the sizes of
  18714. input/output buffering in TFile layer by setting the configuration parameters
  18715. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  18716. </ul>
  18717. Some design rationale behind TFile can be found at <a
  18718. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  18719. </doc>
  18720. </class>
  18721. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  18722. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  18723. <class name="TFile.Reader" extends="java.lang.Object"
  18724. abstract="false"
  18725. static="true" final="false" visibility="public"
  18726. deprecated="not deprecated">
  18727. <implements name="java.io.Closeable"/>
  18728. <constructor name="TFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  18729. static="false" final="false" visibility="public"
  18730. deprecated="not deprecated">
  18731. <exception name="IOException" type="java.io.IOException"/>
  18732. <doc>
  18733. <![CDATA[Constructor
  18734. @param fsdis
  18735. FS input stream of the TFile.
  18736. @param fileLength
  18737. The length of TFile. This is required because we have no easy
  18738. way of knowing the actual size of the input file through the
  18739. File input stream.
  18740. @param conf
  18741. @throws IOException]]>
  18742. </doc>
  18743. </constructor>
  18744. <method name="close"
  18745. abstract="false" native="false" synchronized="false"
  18746. static="false" final="false" visibility="public"
  18747. deprecated="not deprecated">
  18748. <exception name="IOException" type="java.io.IOException"/>
  18749. <doc>
  18750. <![CDATA[Close the reader. The state of the Reader object is undefined after
  18751. close. Calling close() for multiple times has no effect.]]>
  18752. </doc>
  18753. </method>
  18754. <method name="getComparatorName" return="java.lang.String"
  18755. abstract="false" native="false" synchronized="false"
  18756. static="false" final="false" visibility="public"
  18757. deprecated="not deprecated">
  18758. <doc>
  18759. <![CDATA[Get the string representation of the comparator.
  18760. @return If the TFile is not sorted by keys, an empty string will be
  18761. returned. Otherwise, the actual comparator string that is
  18762. provided during the TFile creation time will be returned.]]>
  18763. </doc>
  18764. </method>
  18765. <method name="isSorted" return="boolean"
  18766. abstract="false" native="false" synchronized="false"
  18767. static="false" final="false" visibility="public"
  18768. deprecated="not deprecated">
  18769. <doc>
  18770. <![CDATA[Is the TFile sorted?
  18771. @return true if TFile is sorted.]]>
  18772. </doc>
  18773. </method>
  18774. <method name="getEntryCount" return="long"
  18775. abstract="false" native="false" synchronized="false"
  18776. static="false" final="false" visibility="public"
  18777. deprecated="not deprecated">
  18778. <doc>
  18779. <![CDATA[Get the number of key-value pair entries in TFile.
  18780. @return the number of key-value pairs in TFile]]>
  18781. </doc>
  18782. </method>
  18783. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  18784. abstract="false" native="false" synchronized="false"
  18785. static="false" final="false" visibility="public"
  18786. deprecated="not deprecated">
  18787. <exception name="IOException" type="java.io.IOException"/>
  18788. <doc>
  18789. <![CDATA[Get the first key in the TFile.
  18790. @return The first key in the TFile.
  18791. @throws IOException]]>
  18792. </doc>
  18793. </method>
  18794. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  18795. abstract="false" native="false" synchronized="false"
  18796. static="false" final="false" visibility="public"
  18797. deprecated="not deprecated">
  18798. <exception name="IOException" type="java.io.IOException"/>
  18799. <doc>
  18800. <![CDATA[Get the last key in the TFile.
  18801. @return The last key in the TFile.
  18802. @throws IOException]]>
  18803. </doc>
  18804. </method>
  18805. <method name="getEntryComparator" return="java.util.Comparator"
  18806. abstract="false" native="false" synchronized="false"
  18807. static="false" final="false" visibility="public"
  18808. deprecated="not deprecated">
  18809. <doc>
  18810. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  18811. stores the entries in a collection (such as PriorityQueue) and perform
  18812. sorting or comparison among entries based on the keys without copying out
  18813. the key.
  18814. @return An Entry Comparator..]]>
  18815. </doc>
  18816. </method>
  18817. <method name="getComparator" return="java.util.Comparator"
  18818. abstract="false" native="false" synchronized="false"
  18819. static="false" final="false" visibility="public"
  18820. deprecated="not deprecated">
  18821. <doc>
  18822. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  18823. string comparator representation.
  18824. @return a Comparator that can compare RawComparable's.]]>
  18825. </doc>
  18826. </method>
  18827. <method name="getMetaBlock" return="java.io.DataInputStream"
  18828. abstract="false" native="false" synchronized="false"
  18829. static="false" final="false" visibility="public"
  18830. deprecated="not deprecated">
  18831. <param name="name" type="java.lang.String"/>
  18832. <exception name="IOException" type="java.io.IOException"/>
  18833. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  18834. <doc>
  18835. <![CDATA[Stream access to a meta block.``
  18836. @param name
  18837. The name of the meta block.
  18838. @return The input stream.
  18839. @throws IOException
  18840. on I/O error.
  18841. @throws MetaBlockDoesNotExist
  18842. If the meta block with the name does not exist.]]>
  18843. </doc>
  18844. </method>
  18845. <method name="getRecordNumNear" return="long"
  18846. abstract="false" native="false" synchronized="false"
  18847. static="false" final="false" visibility="public"
  18848. deprecated="not deprecated">
  18849. <param name="offset" type="long"/>
  18850. <exception name="IOException" type="java.io.IOException"/>
  18851. <doc>
  18852. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  18853. whose byte offset in the TFile is greater than or equal to the specified
  18854. offset.
  18855. @param offset
  18856. the user supplied offset.
  18857. @return the RecordNum to the corresponding entry. If no such entry
  18858. exists, it returns the total entry count.
  18859. @throws IOException]]>
  18860. </doc>
  18861. </method>
  18862. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  18863. abstract="false" native="false" synchronized="false"
  18864. static="false" final="false" visibility="public"
  18865. deprecated="not deprecated">
  18866. <param name="offset" type="long"/>
  18867. <exception name="IOException" type="java.io.IOException"/>
  18868. <doc>
  18869. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  18870. than or equal to the specified offset.
  18871. @param offset
  18872. The file offset.
  18873. @return the key that fits the requirement; or null if no such key exists
  18874. (which could happen if the offset is close to the end of the
  18875. TFile).
  18876. @throws IOException]]>
  18877. </doc>
  18878. </method>
  18879. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18880. abstract="false" native="false" synchronized="false"
  18881. static="false" final="false" visibility="public"
  18882. deprecated="not deprecated">
  18883. <exception name="IOException" type="java.io.IOException"/>
  18884. <doc>
  18885. <![CDATA[Get a scanner than can scan the whole TFile.
  18886. @return The scanner object. A valid Scanner is always returned even if
  18887. the TFile is empty.
  18888. @throws IOException]]>
  18889. </doc>
  18890. </method>
  18891. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18892. abstract="false" native="false" synchronized="false"
  18893. static="false" final="false" visibility="public"
  18894. deprecated="not deprecated">
  18895. <param name="offset" type="long"/>
  18896. <param name="length" type="long"/>
  18897. <exception name="IOException" type="java.io.IOException"/>
  18898. <doc>
  18899. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  18900. @param offset
  18901. The beginning byte offset in the TFile.
  18902. @param length
  18903. The length of the region.
  18904. @return The actual coverage of the returned scanner tries to match the
  18905. specified byte-region but always round up to the compression
  18906. block boundaries. It is possible that the returned scanner
  18907. contains zero key-value pairs even if length is positive.
  18908. @throws IOException]]>
  18909. </doc>
  18910. </method>
  18911. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18912. abstract="false" native="false" synchronized="false"
  18913. static="false" final="false" visibility="public"
  18914. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  18915. <param name="beginKey" type="byte[]"/>
  18916. <param name="endKey" type="byte[]"/>
  18917. <exception name="IOException" type="java.io.IOException"/>
  18918. <doc>
  18919. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  18920. @param beginKey
  18921. Begin key of the scan (inclusive). If null, scan from the first
  18922. key-value entry of the TFile.
  18923. @param endKey
  18924. End key of the scan (exclusive). If null, scan up to the last
  18925. key-value entry of the TFile.
  18926. @return The actual coverage of the returned scanner will cover all keys
  18927. greater than or equal to the beginKey and less than the endKey.
  18928. @throws IOException
  18929. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  18930. </doc>
  18931. </method>
  18932. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18933. abstract="false" native="false" synchronized="false"
  18934. static="false" final="false" visibility="public"
  18935. deprecated="not deprecated">
  18936. <param name="beginKey" type="byte[]"/>
  18937. <param name="endKey" type="byte[]"/>
  18938. <exception name="IOException" type="java.io.IOException"/>
  18939. <doc>
  18940. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  18941. @param beginKey
  18942. Begin key of the scan (inclusive). If null, scan from the first
  18943. key-value entry of the TFile.
  18944. @param endKey
  18945. End key of the scan (exclusive). If null, scan up to the last
  18946. key-value entry of the TFile.
  18947. @return The actual coverage of the returned scanner will cover all keys
  18948. greater than or equal to the beginKey and less than the endKey.
  18949. @throws IOException]]>
  18950. </doc>
  18951. </method>
  18952. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18953. abstract="false" native="false" synchronized="false"
  18954. static="false" final="false" visibility="public"
  18955. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  18956. instead.">
  18957. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  18958. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  18959. <exception name="IOException" type="java.io.IOException"/>
  18960. <doc>
  18961. <![CDATA[Get a scanner that covers a specific key range.
  18962. @param beginKey
  18963. Begin key of the scan (inclusive). If null, scan from the first
  18964. key-value entry of the TFile.
  18965. @param endKey
  18966. End key of the scan (exclusive). If null, scan up to the last
  18967. key-value entry of the TFile.
  18968. @return The actual coverage of the returned scanner will cover all keys
  18969. greater than or equal to the beginKey and less than the endKey.
  18970. @throws IOException
  18971. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  18972. instead.]]>
  18973. </doc>
  18974. </method>
  18975. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18976. abstract="false" native="false" synchronized="false"
  18977. static="false" final="false" visibility="public"
  18978. deprecated="not deprecated">
  18979. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  18980. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  18981. <exception name="IOException" type="java.io.IOException"/>
  18982. <doc>
  18983. <![CDATA[Get a scanner that covers a specific key range.
  18984. @param beginKey
  18985. Begin key of the scan (inclusive). If null, scan from the first
  18986. key-value entry of the TFile.
  18987. @param endKey
  18988. End key of the scan (exclusive). If null, scan up to the last
  18989. key-value entry of the TFile.
  18990. @return The actual coverage of the returned scanner will cover all keys
  18991. greater than or equal to the beginKey and less than the endKey.
  18992. @throws IOException]]>
  18993. </doc>
  18994. </method>
  18995. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18996. abstract="false" native="false" synchronized="false"
  18997. static="false" final="false" visibility="public"
  18998. deprecated="not deprecated">
  18999. <param name="beginRecNum" type="long"/>
  19000. <param name="endRecNum" type="long"/>
  19001. <exception name="IOException" type="java.io.IOException"/>
  19002. <doc>
  19003. <![CDATA[Create a scanner that covers a range of records.
  19004. @param beginRecNum
  19005. The RecordNum for the first record (inclusive).
  19006. @param endRecNum
  19007. The RecordNum for the last record (exclusive). To scan the whole
  19008. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  19009. @return The TFile scanner that covers the specified range of records.
  19010. @throws IOException]]>
  19011. </doc>
  19012. </method>
  19013. <doc>
  19014. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  19015. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  19016. ) , a portion of TFile based on byte offsets (
  19017. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  19018. fall in a certain key range (for sorted TFile only,
  19019. {@link Reader#createScannerByKey(byte[], byte[])} or
  19020. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  19021. </doc>
  19022. </class>
  19023. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  19024. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  19025. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  19026. abstract="false"
  19027. static="true" final="false" visibility="public"
  19028. deprecated="not deprecated">
  19029. <implements name="java.io.Closeable"/>
  19030. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  19031. static="false" final="false" visibility="protected"
  19032. deprecated="not deprecated">
  19033. <exception name="IOException" type="java.io.IOException"/>
  19034. <doc>
  19035. <![CDATA[Constructor
  19036. @param reader
  19037. The TFile reader object.
  19038. @param offBegin
  19039. Begin byte-offset of the scan.
  19040. @param offEnd
  19041. End byte-offset of the scan.
  19042. @throws IOException
  19043. The offsets will be rounded to the beginning of a compressed
  19044. block whose offset is greater than or equal to the specified
  19045. offset.]]>
  19046. </doc>
  19047. </constructor>
  19048. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, org.apache.hadoop.io.file.tfile.RawComparable, org.apache.hadoop.io.file.tfile.RawComparable"
  19049. static="false" final="false" visibility="protected"
  19050. deprecated="not deprecated">
  19051. <exception name="IOException" type="java.io.IOException"/>
  19052. <doc>
  19053. <![CDATA[Constructor
  19054. @param reader
  19055. The TFile reader object.
  19056. @param beginKey
  19057. Begin key of the scan. If null, scan from the first <K,V>
  19058. entry of the TFile.
  19059. @param endKey
  19060. End key of the scan. If null, scan up to the last <K, V> entry
  19061. of the TFile.
  19062. @throws IOException]]>
  19063. </doc>
  19064. </constructor>
  19065. <method name="seekTo" return="boolean"
  19066. abstract="false" native="false" synchronized="false"
  19067. static="false" final="false" visibility="public"
  19068. deprecated="not deprecated">
  19069. <param name="key" type="byte[]"/>
  19070. <exception name="IOException" type="java.io.IOException"/>
  19071. <doc>
  19072. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19073. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  19074. returned by the previous entry() call will be invalid.
  19075. @param key
  19076. The input key
  19077. @return true if we find an equal key.
  19078. @throws IOException]]>
  19079. </doc>
  19080. </method>
  19081. <method name="seekTo" return="boolean"
  19082. abstract="false" native="false" synchronized="false"
  19083. static="false" final="false" visibility="public"
  19084. deprecated="not deprecated">
  19085. <param name="key" type="byte[]"/>
  19086. <param name="keyOffset" type="int"/>
  19087. <param name="keyLen" type="int"/>
  19088. <exception name="IOException" type="java.io.IOException"/>
  19089. <doc>
  19090. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19091. to the input key. The entry returned by the previous entry() call will
  19092. be invalid.
  19093. @param key
  19094. The input key
  19095. @param keyOffset
  19096. offset in the key buffer.
  19097. @param keyLen
  19098. key buffer length.
  19099. @return true if we find an equal key; false otherwise.
  19100. @throws IOException]]>
  19101. </doc>
  19102. </method>
  19103. <method name="rewind"
  19104. abstract="false" native="false" synchronized="false"
  19105. static="false" final="false" visibility="public"
  19106. deprecated="not deprecated">
  19107. <exception name="IOException" type="java.io.IOException"/>
  19108. <doc>
  19109. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  19110. previous entry() call will be invalid.
  19111. @throws IOException]]>
  19112. </doc>
  19113. </method>
  19114. <method name="seekToEnd"
  19115. abstract="false" native="false" synchronized="false"
  19116. static="false" final="false" visibility="public"
  19117. deprecated="not deprecated">
  19118. <exception name="IOException" type="java.io.IOException"/>
  19119. <doc>
  19120. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  19121. entry() call will be invalid.
  19122. @throws IOException]]>
  19123. </doc>
  19124. </method>
  19125. <method name="lowerBound"
  19126. abstract="false" native="false" synchronized="false"
  19127. static="false" final="false" visibility="public"
  19128. deprecated="not deprecated">
  19129. <param name="key" type="byte[]"/>
  19130. <exception name="IOException" type="java.io.IOException"/>
  19131. <doc>
  19132. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19133. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  19134. entry returned by the previous entry() call will be invalid.
  19135. @param key
  19136. The input key
  19137. @throws IOException]]>
  19138. </doc>
  19139. </method>
  19140. <method name="lowerBound"
  19141. abstract="false" native="false" synchronized="false"
  19142. static="false" final="false" visibility="public"
  19143. deprecated="not deprecated">
  19144. <param name="key" type="byte[]"/>
  19145. <param name="keyOffset" type="int"/>
  19146. <param name="keyLen" type="int"/>
  19147. <exception name="IOException" type="java.io.IOException"/>
  19148. <doc>
  19149. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19150. to the input key. The entry returned by the previous entry() call will
  19151. be invalid.
  19152. @param key
  19153. The input key
  19154. @param keyOffset
  19155. offset in the key buffer.
  19156. @param keyLen
  19157. key buffer length.
  19158. @throws IOException]]>
  19159. </doc>
  19160. </method>
  19161. <method name="upperBound"
  19162. abstract="false" native="false" synchronized="false"
  19163. static="false" final="false" visibility="public"
  19164. deprecated="not deprecated">
  19165. <param name="key" type="byte[]"/>
  19166. <exception name="IOException" type="java.io.IOException"/>
  19167. <doc>
  19168. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  19169. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  19170. returned by the previous entry() call will be invalid.
  19171. @param key
  19172. The input key
  19173. @throws IOException]]>
  19174. </doc>
  19175. </method>
  19176. <method name="upperBound"
  19177. abstract="false" native="false" synchronized="false"
  19178. static="false" final="false" visibility="public"
  19179. deprecated="not deprecated">
  19180. <param name="key" type="byte[]"/>
  19181. <param name="keyOffset" type="int"/>
  19182. <param name="keyLen" type="int"/>
  19183. <exception name="IOException" type="java.io.IOException"/>
  19184. <doc>
  19185. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  19186. the input key. The entry returned by the previous entry() call will be
  19187. invalid.
  19188. @param key
  19189. The input key
  19190. @param keyOffset
  19191. offset in the key buffer.
  19192. @param keyLen
  19193. key buffer length.
  19194. @throws IOException]]>
  19195. </doc>
  19196. </method>
  19197. <method name="advance" return="boolean"
  19198. abstract="false" native="false" synchronized="false"
  19199. static="false" final="false" visibility="public"
  19200. deprecated="not deprecated">
  19201. <exception name="IOException" type="java.io.IOException"/>
  19202. <doc>
  19203. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  19204. previous entry() call will be invalid.
  19205. @return true if the cursor successfully moves. False when cursor is
  19206. already at the end location and cannot be advanced.
  19207. @throws IOException]]>
  19208. </doc>
  19209. </method>
  19210. <method name="close"
  19211. abstract="false" native="false" synchronized="false"
  19212. static="false" final="false" visibility="public"
  19213. deprecated="not deprecated">
  19214. <exception name="IOException" type="java.io.IOException"/>
  19215. <doc>
  19216. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  19217. scanner after calling close is not defined. The entry returned by the
  19218. previous entry() call will be invalid.]]>
  19219. </doc>
  19220. </method>
  19221. <method name="atEnd" return="boolean"
  19222. abstract="false" native="false" synchronized="false"
  19223. static="false" final="false" visibility="public"
  19224. deprecated="not deprecated">
  19225. <doc>
  19226. <![CDATA[Is cursor at the end location?
  19227. @return true if the cursor is at the end location.]]>
  19228. </doc>
  19229. </method>
  19230. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  19231. abstract="false" native="false" synchronized="false"
  19232. static="false" final="false" visibility="public"
  19233. deprecated="not deprecated">
  19234. <exception name="IOException" type="java.io.IOException"/>
  19235. <doc>
  19236. <![CDATA[Get an entry to access the key and value.
  19237. @return The Entry object to access the key and value.
  19238. @throws IOException]]>
  19239. </doc>
  19240. </method>
  19241. <method name="getRecordNum" return="long"
  19242. abstract="false" native="false" synchronized="false"
  19243. static="false" final="false" visibility="public"
  19244. deprecated="not deprecated">
  19245. <exception name="IOException" type="java.io.IOException"/>
  19246. <doc>
  19247. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  19248. @return The RecordNum corresponding to the entry pointed by the cursor.
  19249. @throws IOException]]>
  19250. </doc>
  19251. </method>
  19252. <doc>
  19253. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  19254. creation, points to the first key-value pair in the scan range. If the
  19255. scan range is empty, the cursor will point to the end of the scan range.
  19256. <p>
  19257. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  19258. location of the scanner.
  19259. <p>
  19260. Use {@link Scanner#advance()} to move the cursor to the next key-value
  19261. pair (or end if none exists). Use seekTo methods (
  19262. {@link Scanner#seekTo(byte[])} or
  19263. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  19264. location in the covered range (including backward seeking). Use
  19265. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  19266. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  19267. <p>
  19268. Actual keys and values may be obtained through {@link Scanner.Entry}
  19269. object, which is obtained through {@link Scanner#entry()}.]]>
  19270. </doc>
  19271. </class>
  19272. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  19273. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  19274. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  19275. abstract="false"
  19276. static="false" final="false" visibility="public"
  19277. deprecated="not deprecated">
  19278. <implements name="java.lang.Comparable"/>
  19279. <constructor name="TFile.Reader.Scanner.Entry"
  19280. static="false" final="false" visibility="public"
  19281. deprecated="not deprecated">
  19282. </constructor>
  19283. <method name="getKeyLength" return="int"
  19284. abstract="false" native="false" synchronized="false"
  19285. static="false" final="false" visibility="public"
  19286. deprecated="not deprecated">
  19287. <doc>
  19288. <![CDATA[Get the length of the key.
  19289. @return the length of the key.]]>
  19290. </doc>
  19291. </method>
  19292. <method name="get"
  19293. abstract="false" native="false" synchronized="false"
  19294. static="false" final="false" visibility="public"
  19295. deprecated="not deprecated">
  19296. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  19297. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  19298. <exception name="IOException" type="java.io.IOException"/>
  19299. <doc>
  19300. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  19301. equivalent to getKey(key); getValue(value);
  19302. @param key
  19303. BytesWritable to hold key.
  19304. @param value
  19305. BytesWritable to hold value
  19306. @throws IOException]]>
  19307. </doc>
  19308. </method>
  19309. <method name="getKey" return="int"
  19310. abstract="false" native="false" synchronized="false"
  19311. static="false" final="false" visibility="public"
  19312. deprecated="not deprecated">
  19313. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  19314. <exception name="IOException" type="java.io.IOException"/>
  19315. <doc>
  19316. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  19317. automatically resized to the actual key size.
  19318. @param key
  19319. BytesWritable to hold the key.
  19320. @throws IOException]]>
  19321. </doc>
  19322. </method>
  19323. <method name="getValue" return="long"
  19324. abstract="false" native="false" synchronized="false"
  19325. static="false" final="false" visibility="public"
  19326. deprecated="not deprecated">
  19327. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  19328. <exception name="IOException" type="java.io.IOException"/>
  19329. <doc>
  19330. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  19331. automatically resized to the actual value size. The implementation
  19332. directly uses the buffer inside BytesWritable for storing the value.
  19333. The call does not require the value length to be known.
  19334. @param value
  19335. @throws IOException]]>
  19336. </doc>
  19337. </method>
  19338. <method name="writeKey" return="int"
  19339. abstract="false" native="false" synchronized="false"
  19340. static="false" final="false" visibility="public"
  19341. deprecated="not deprecated">
  19342. <param name="out" type="java.io.OutputStream"/>
  19343. <exception name="IOException" type="java.io.IOException"/>
  19344. <doc>
  19345. <![CDATA[Writing the key to the output stream. This method avoids copying key
  19346. buffer from Scanner into user buffer, then writing to the output
  19347. stream.
  19348. @param out
  19349. The output stream
  19350. @return the length of the key.
  19351. @throws IOException]]>
  19352. </doc>
  19353. </method>
  19354. <method name="writeValue" return="long"
  19355. abstract="false" native="false" synchronized="false"
  19356. static="false" final="false" visibility="public"
  19357. deprecated="not deprecated">
  19358. <param name="out" type="java.io.OutputStream"/>
  19359. <exception name="IOException" type="java.io.IOException"/>
  19360. <doc>
  19361. <![CDATA[Writing the value to the output stream. This method avoids copying
  19362. value data from Scanner into user buffer, then writing to the output
  19363. stream. It does not require the value length to be known.
  19364. @param out
  19365. The output stream
  19366. @return the length of the value
  19367. @throws IOException]]>
  19368. </doc>
  19369. </method>
  19370. <method name="getKey" return="int"
  19371. abstract="false" native="false" synchronized="false"
  19372. static="false" final="false" visibility="public"
  19373. deprecated="not deprecated">
  19374. <param name="buf" type="byte[]"/>
  19375. <exception name="IOException" type="java.io.IOException"/>
  19376. <doc>
  19377. <![CDATA[Copy the key into user supplied buffer.
  19378. @param buf
  19379. The buffer supplied by user. The length of the buffer must
  19380. not be shorter than the key length.
  19381. @return The length of the key.
  19382. @throws IOException]]>
  19383. </doc>
  19384. </method>
  19385. <method name="getKey" return="int"
  19386. abstract="false" native="false" synchronized="false"
  19387. static="false" final="false" visibility="public"
  19388. deprecated="not deprecated">
  19389. <param name="buf" type="byte[]"/>
  19390. <param name="offset" type="int"/>
  19391. <exception name="IOException" type="java.io.IOException"/>
  19392. <doc>
  19393. <![CDATA[Copy the key into user supplied buffer.
  19394. @param buf
  19395. The buffer supplied by user.
  19396. @param offset
  19397. The starting offset of the user buffer where we should copy
  19398. the key into. Requiring the key-length + offset no greater
  19399. than the buffer length.
  19400. @return The length of the key.
  19401. @throws IOException]]>
  19402. </doc>
  19403. </method>
  19404. <method name="getKeyStream" return="java.io.DataInputStream"
  19405. abstract="false" native="false" synchronized="false"
  19406. static="false" final="false" visibility="public"
  19407. deprecated="not deprecated">
  19408. <doc>
  19409. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  19410. user objects.
  19411. @return The input stream.]]>
  19412. </doc>
  19413. </method>
  19414. <method name="getValueLength" return="int"
  19415. abstract="false" native="false" synchronized="false"
  19416. static="false" final="false" visibility="public"
  19417. deprecated="not deprecated">
  19418. <doc>
  19419. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  19420. true.
  19421. @return the length of the value.]]>
  19422. </doc>
  19423. </method>
  19424. <method name="getValue" return="int"
  19425. abstract="false" native="false" synchronized="false"
  19426. static="false" final="false" visibility="public"
  19427. deprecated="not deprecated">
  19428. <param name="buf" type="byte[]"/>
  19429. <exception name="IOException" type="java.io.IOException"/>
  19430. <doc>
  19431. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  19432. large enough to hold the whole value. The value part of the key-value
  19433. pair pointed by the current cursor is not cached and can only be
  19434. examined once. Calling any of the following functions more than once
  19435. without moving the cursor will result in exception:
  19436. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  19437. {@link #getValueStream}.
  19438. @return the length of the value. Does not require
  19439. isValueLengthKnown() to be true.
  19440. @throws IOException]]>
  19441. </doc>
  19442. </method>
  19443. <method name="getValue" return="int"
  19444. abstract="false" native="false" synchronized="false"
  19445. static="false" final="false" visibility="public"
  19446. deprecated="not deprecated">
  19447. <param name="buf" type="byte[]"/>
  19448. <param name="offset" type="int"/>
  19449. <exception name="IOException" type="java.io.IOException"/>
  19450. <doc>
  19451. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  19452. large enough to hold the whole value (starting from the offset). The
  19453. value part of the key-value pair pointed by the current cursor is not
  19454. cached and can only be examined once. Calling any of the following
  19455. functions more than once without moving the cursor will result in
  19456. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  19457. {@link #getValueStream}.
  19458. @return the length of the value. Does not require
  19459. isValueLengthKnown() to be true.
  19460. @throws IOException]]>
  19461. </doc>
  19462. </method>
  19463. <method name="getValueStream" return="java.io.DataInputStream"
  19464. abstract="false" native="false" synchronized="false"
  19465. static="false" final="false" visibility="public"
  19466. deprecated="not deprecated">
  19467. <exception name="IOException" type="java.io.IOException"/>
  19468. <doc>
  19469. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  19470. by the current cursor is not cached and can only be examined once.
  19471. Calling any of the following functions more than once without moving
  19472. the cursor will result in exception: {@link #getValue(byte[])},
  19473. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  19474. @return The input stream for reading the value.
  19475. @throws IOException]]>
  19476. </doc>
  19477. </method>
  19478. <method name="isValueLengthKnown" return="boolean"
  19479. abstract="false" native="false" synchronized="false"
  19480. static="false" final="false" visibility="public"
  19481. deprecated="not deprecated">
  19482. <doc>
  19483. <![CDATA[Check whether it is safe to call getValueLength().
  19484. @return true if value length is known before hand. Values less than
  19485. the chunk size will always have their lengths known before
  19486. hand. Values that are written out as a whole (with advertised
  19487. length up-front) will always have their lengths known in
  19488. read.]]>
  19489. </doc>
  19490. </method>
  19491. <method name="compareTo" return="int"
  19492. abstract="false" native="false" synchronized="false"
  19493. static="false" final="false" visibility="public"
  19494. deprecated="not deprecated">
  19495. <param name="buf" type="byte[]"/>
  19496. <doc>
  19497. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  19498. key.length).
  19499. @param buf
  19500. The key buffer.
  19501. @return comparison result between the entry key with the input key.]]>
  19502. </doc>
  19503. </method>
  19504. <method name="compareTo" return="int"
  19505. abstract="false" native="false" synchronized="false"
  19506. static="false" final="false" visibility="public"
  19507. deprecated="not deprecated">
  19508. <param name="buf" type="byte[]"/>
  19509. <param name="offset" type="int"/>
  19510. <param name="length" type="int"/>
  19511. <doc>
  19512. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  19513. ByteArray(buf, offset, length)
  19514. @param buf
  19515. The key buffer
  19516. @param offset
  19517. offset into the key buffer.
  19518. @param length
  19519. the length of the key.
  19520. @return comparison result between the entry key with the input key.]]>
  19521. </doc>
  19522. </method>
  19523. <method name="compareTo" return="int"
  19524. abstract="false" native="false" synchronized="false"
  19525. static="false" final="false" visibility="public"
  19526. deprecated="not deprecated">
  19527. <param name="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19528. <doc>
  19529. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  19530. Entries are stored in a collection, and we want to compare a user
  19531. supplied key.]]>
  19532. </doc>
  19533. </method>
  19534. <method name="equals" return="boolean"
  19535. abstract="false" native="false" synchronized="false"
  19536. static="false" final="false" visibility="public"
  19537. deprecated="not deprecated">
  19538. <param name="other" type="java.lang.Object"/>
  19539. <doc>
  19540. <![CDATA[Compare whether this and other points to the same key value.]]>
  19541. </doc>
  19542. </method>
  19543. <method name="hashCode" return="int"
  19544. abstract="false" native="false" synchronized="false"
  19545. static="false" final="false" visibility="public"
  19546. deprecated="not deprecated">
  19547. </method>
  19548. <doc>
  19549. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  19550. </doc>
  19551. </class>
  19552. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  19553. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  19554. <class name="TFile.Writer" extends="java.lang.Object"
  19555. abstract="false"
  19556. static="true" final="false" visibility="public"
  19557. deprecated="not deprecated">
  19558. <implements name="java.io.Closeable"/>
  19559. <constructor name="TFile.Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  19560. static="false" final="false" visibility="public"
  19561. deprecated="not deprecated">
  19562. <exception name="IOException" type="java.io.IOException"/>
  19563. <doc>
  19564. <![CDATA[Constructor
  19565. @param fsdos
  19566. output stream for writing. Must be at position 0.
  19567. @param minBlockSize
  19568. Minimum compressed block size in bytes. A compression block will
  19569. not be closed until it reaches this size except for the last
  19570. block.
  19571. @param compressName
  19572. Name of the compression algorithm. Must be one of the strings
  19573. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  19574. @param comparator
  19575. Leave comparator as null or empty string if TFile is not sorted.
  19576. Otherwise, provide the string name for the comparison algorithm
  19577. for keys. Two kinds of comparators are supported.
  19578. <ul>
  19579. <li>Algorithmic comparator: binary comparators that is language
  19580. independent. Currently, only "memcmp" is supported.
  19581. <li>Language-specific comparator: binary comparators that can
  19582. only be constructed in specific language. For Java, the syntax
  19583. is "jclass:", followed by the class name of the RawComparator.
  19584. Currently, we only support RawComparators that can be
  19585. constructed through the default constructor (with no
  19586. parameters). Parameterized RawComparators such as
  19587. {@link WritableComparator} or
  19588. {@link JavaSerializationComparator} may not be directly used.
  19589. One should write a wrapper class that inherits from such classes
  19590. and use its default constructor to perform proper
  19591. initialization.
  19592. </ul>
  19593. @param conf
  19594. The configuration object.
  19595. @throws IOException]]>
  19596. </doc>
  19597. </constructor>
  19598. <method name="close"
  19599. abstract="false" native="false" synchronized="false"
  19600. static="false" final="false" visibility="public"
  19601. deprecated="not deprecated">
  19602. <exception name="IOException" type="java.io.IOException"/>
  19603. <doc>
  19604. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  19605. being thrown. Future close calls will have no effect.
  19606. The underlying FSDataOutputStream is not closed.]]>
  19607. </doc>
  19608. </method>
  19609. <method name="append"
  19610. abstract="false" native="false" synchronized="false"
  19611. static="false" final="false" visibility="public"
  19612. deprecated="not deprecated">
  19613. <param name="key" type="byte[]"/>
  19614. <param name="value" type="byte[]"/>
  19615. <exception name="IOException" type="java.io.IOException"/>
  19616. <doc>
  19617. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  19618. append(key, 0, key.length, value, 0, value.length)
  19619. @param key
  19620. Buffer for key.
  19621. @param value
  19622. Buffer for value.
  19623. @throws IOException]]>
  19624. </doc>
  19625. </method>
  19626. <method name="append"
  19627. abstract="false" native="false" synchronized="false"
  19628. static="false" final="false" visibility="public"
  19629. deprecated="not deprecated">
  19630. <param name="key" type="byte[]"/>
  19631. <param name="koff" type="int"/>
  19632. <param name="klen" type="int"/>
  19633. <param name="value" type="byte[]"/>
  19634. <param name="voff" type="int"/>
  19635. <param name="vlen" type="int"/>
  19636. <exception name="IOException" type="java.io.IOException"/>
  19637. <doc>
  19638. <![CDATA[Adding a new key-value pair to TFile.
  19639. @param key
  19640. buffer for key.
  19641. @param koff
  19642. offset in key buffer.
  19643. @param klen
  19644. length of key.
  19645. @param value
  19646. buffer for value.
  19647. @param voff
  19648. offset in value buffer.
  19649. @param vlen
  19650. length of value.
  19651. @throws IOException
  19652. Upon IO errors.
  19653. <p>
  19654. If an exception is thrown, the TFile will be in an inconsistent
  19655. state. The only legitimate call after that would be close]]>
  19656. </doc>
  19657. </method>
  19658. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  19659. abstract="false" native="false" synchronized="false"
  19660. static="false" final="false" visibility="public"
  19661. deprecated="not deprecated">
  19662. <param name="length" type="int"/>
  19663. <exception name="IOException" type="java.io.IOException"/>
  19664. <doc>
  19665. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  19666. called when there is no active Key appending stream or value appending
  19667. stream.
  19668. @param length
  19669. The expected length of the key. If length of the key is not
  19670. known, set length = -1. Otherwise, the application must write
  19671. exactly as many bytes as specified here before calling close on
  19672. the returned output stream.
  19673. @return The key appending output stream.
  19674. @throws IOException]]>
  19675. </doc>
  19676. </method>
  19677. <method name="prepareAppendValue" return="java.io.DataOutputStream"
  19678. abstract="false" native="false" synchronized="false"
  19679. static="false" final="false" visibility="public"
  19680. deprecated="not deprecated">
  19681. <param name="length" type="int"/>
  19682. <exception name="IOException" type="java.io.IOException"/>
  19683. <doc>
  19684. <![CDATA[Obtain an output stream for writing a value into TFile. This may only be
  19685. called right after a key appending operation (the key append stream must
  19686. be closed).
  19687. @param length
  19688. The expected length of the value. If length of the value is not
  19689. known, set length = -1. Otherwise, the application must write
  19690. exactly as many bytes as specified here before calling close on
  19691. the returned output stream. Advertising the value size up-front
  19692. guarantees that the value is encoded in one chunk, and avoids
  19693. intermediate chunk buffering.
  19694. @throws IOException]]>
  19695. </doc>
  19696. </method>
  19697. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  19698. abstract="false" native="false" synchronized="false"
  19699. static="false" final="false" visibility="public"
  19700. deprecated="not deprecated">
  19701. <param name="name" type="java.lang.String"/>
  19702. <param name="compressName" type="java.lang.String"/>
  19703. <exception name="IOException" type="java.io.IOException"/>
  19704. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  19705. <doc>
  19706. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  19707. be called when there is a key append stream or value append stream
  19708. active. No more key-value insertion is allowed after a meta data block
  19709. has been added to TFile.
  19710. @param name
  19711. Name of the meta block.
  19712. @param compressName
  19713. Name of the compression algorithm to be used. Must be one of the
  19714. strings returned by
  19715. {@link TFile#getSupportedCompressionAlgorithms()}.
  19716. @return A DataOutputStream that can be used to write Meta Block data.
  19717. Closing the stream would signal the ending of the block.
  19718. @throws IOException
  19719. @throws MetaBlockAlreadyExists
  19720. the Meta Block with the same name already exists.]]>
  19721. </doc>
  19722. </method>
  19723. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  19724. abstract="false" native="false" synchronized="false"
  19725. static="false" final="false" visibility="public"
  19726. deprecated="not deprecated">
  19727. <param name="name" type="java.lang.String"/>
  19728. <exception name="IOException" type="java.io.IOException"/>
  19729. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  19730. <doc>
  19731. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  19732. be called when there is a key append stream or value append stream
  19733. active. No more key-value insertion is allowed after a meta data block
  19734. has been added to TFile. Data will be compressed using the default
  19735. compressor as defined in Writer's constructor.
  19736. @param name
  19737. Name of the meta block.
  19738. @return A DataOutputStream that can be used to write Meta Block data.
  19739. Closing the stream would signal the ending of the block.
  19740. @throws IOException
  19741. @throws MetaBlockAlreadyExists
  19742. the Meta Block with the same name already exists.]]>
  19743. </doc>
  19744. </method>
  19745. <doc>
  19746. <![CDATA[TFile Writer.]]>
  19747. </doc>
  19748. </class>
  19749. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  19750. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  19751. <class name="Utils" extends="java.lang.Object"
  19752. abstract="false"
  19753. static="false" final="true" visibility="public"
  19754. deprecated="not deprecated">
  19755. <method name="writeVInt"
  19756. abstract="false" native="false" synchronized="false"
  19757. static="true" final="false" visibility="public"
  19758. deprecated="not deprecated">
  19759. <param name="out" type="java.io.DataOutput"/>
  19760. <param name="n" type="int"/>
  19761. <exception name="IOException" type="java.io.IOException"/>
  19762. <doc>
  19763. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  19764. <code>Utils#writeVLong(out, n)</code>.
  19765. @param out
  19766. output stream
  19767. @param n
  19768. The integer to be encoded
  19769. @throws IOException
  19770. @see Utils#writeVLong(DataOutput, long)]]>
  19771. </doc>
  19772. </method>
  19773. <method name="writeVLong"
  19774. abstract="false" native="false" synchronized="false"
  19775. static="true" final="false" visibility="public"
  19776. deprecated="not deprecated">
  19777. <param name="out" type="java.io.DataOutput"/>
  19778. <param name="n" type="long"/>
  19779. <exception name="IOException" type="java.io.IOException"/>
  19780. <doc>
  19781. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  19782. <ul>
  19783. <li>if n in [-32, 127): encode in one byte with the actual value.
  19784. Otherwise,
  19785. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  19786. byte[1]=n&0xff. Otherwise,
  19787. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  19788. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  19789. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  19790. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  19791. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  19792. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  19793. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  19794. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  19795. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  19796. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  19797. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  19798. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  19799. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  19800. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  19801. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  19802. byte[7]=n&0xff;
  19803. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  19804. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  19805. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  19806. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  19807. </ul>
  19808. @param out
  19809. output stream
  19810. @param n
  19811. the integer number
  19812. @throws IOException]]>
  19813. </doc>
  19814. </method>
  19815. <method name="readVInt" return="int"
  19816. abstract="false" native="false" synchronized="false"
  19817. static="true" final="false" visibility="public"
  19818. deprecated="not deprecated">
  19819. <param name="in" type="java.io.DataInput"/>
  19820. <exception name="IOException" type="java.io.IOException"/>
  19821. <doc>
  19822. <![CDATA[Decoding the variable-length integer. Synonymous to
  19823. <code>(int)Utils#readVLong(in)</code>.
  19824. @param in
  19825. input stream
  19826. @return the decoded integer
  19827. @throws IOException
  19828. @see Utils#readVLong(DataInput)]]>
  19829. </doc>
  19830. </method>
  19831. <method name="readVLong" return="long"
  19832. abstract="false" native="false" synchronized="false"
  19833. static="true" final="false" visibility="public"
  19834. deprecated="not deprecated">
  19835. <param name="in" type="java.io.DataInput"/>
  19836. <exception name="IOException" type="java.io.IOException"/>
  19837. <doc>
  19838. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  19839. is FB, and the following bytes are NB[*].
  19840. <ul>
  19841. <li>if (FB >= -32), return (long)FB;
  19842. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  19843. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  19844. NB[1]&0xff;
  19845. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  19846. (NB[1]&0xff)<<8 + NB[2]&0xff;
  19847. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  19848. big-endian integer.
  19849. @param in
  19850. input stream
  19851. @return the decoded long integer.
  19852. @throws IOException]]>
  19853. </doc>
  19854. </method>
  19855. <method name="writeString"
  19856. abstract="false" native="false" synchronized="false"
  19857. static="true" final="false" visibility="public"
  19858. deprecated="not deprecated">
  19859. <param name="out" type="java.io.DataOutput"/>
  19860. <param name="s" type="java.lang.String"/>
  19861. <exception name="IOException" type="java.io.IOException"/>
  19862. <doc>
  19863. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  19864. @param out
  19865. @param s
  19866. @throws IOException]]>
  19867. </doc>
  19868. </method>
  19869. <method name="readString" return="java.lang.String"
  19870. abstract="false" native="false" synchronized="false"
  19871. static="true" final="false" visibility="public"
  19872. deprecated="not deprecated">
  19873. <param name="in" type="java.io.DataInput"/>
  19874. <exception name="IOException" type="java.io.IOException"/>
  19875. <doc>
  19876. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  19877. @param in
  19878. The input stream.
  19879. @return The string
  19880. @throws IOException]]>
  19881. </doc>
  19882. </method>
  19883. <method name="lowerBound" return="int"
  19884. abstract="false" native="false" synchronized="false"
  19885. static="true" final="false" visibility="public"
  19886. deprecated="not deprecated">
  19887. <param name="list" type="java.util.List"/>
  19888. <param name="key" type="java.lang.Object"/>
  19889. <param name="cmp" type="java.util.Comparator"/>
  19890. <doc>
  19891. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  19892. that compares greater than or equal to key.
  19893. @param <T>
  19894. Type of the input key.
  19895. @param list
  19896. The list
  19897. @param key
  19898. The input key.
  19899. @param cmp
  19900. Comparator for the key.
  19901. @return The index to the desired element if it exists; or list.size()
  19902. otherwise.]]>
  19903. </doc>
  19904. </method>
  19905. <method name="upperBound" return="int"
  19906. abstract="false" native="false" synchronized="false"
  19907. static="true" final="false" visibility="public"
  19908. deprecated="not deprecated">
  19909. <param name="list" type="java.util.List"/>
  19910. <param name="key" type="java.lang.Object"/>
  19911. <param name="cmp" type="java.util.Comparator"/>
  19912. <doc>
  19913. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  19914. that compares greater than the input key.
  19915. @param <T>
  19916. Type of the input key.
  19917. @param list
  19918. The list
  19919. @param key
  19920. The input key.
  19921. @param cmp
  19922. Comparator for the key.
  19923. @return The index to the desired element if it exists; or list.size()
  19924. otherwise.]]>
  19925. </doc>
  19926. </method>
  19927. <method name="lowerBound" return="int"
  19928. abstract="false" native="false" synchronized="false"
  19929. static="true" final="false" visibility="public"
  19930. deprecated="not deprecated">
  19931. <param name="list" type="java.util.List"/>
  19932. <param name="key" type="java.lang.Object"/>
  19933. <doc>
  19934. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  19935. that compares greater than or equal to key.
  19936. @param <T>
  19937. Type of the input key.
  19938. @param list
  19939. The list
  19940. @param key
  19941. The input key.
  19942. @return The index to the desired element if it exists; or list.size()
  19943. otherwise.]]>
  19944. </doc>
  19945. </method>
  19946. <method name="upperBound" return="int"
  19947. abstract="false" native="false" synchronized="false"
  19948. static="true" final="false" visibility="public"
  19949. deprecated="not deprecated">
  19950. <param name="list" type="java.util.List"/>
  19951. <param name="key" type="java.lang.Object"/>
  19952. <doc>
  19953. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  19954. that compares greater than the input key.
  19955. @param <T>
  19956. Type of the input key.
  19957. @param list
  19958. The list
  19959. @param key
  19960. The input key.
  19961. @return The index to the desired element if it exists; or list.size()
  19962. otherwise.]]>
  19963. </doc>
  19964. </method>
  19965. <doc>
  19966. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  19967. </doc>
  19968. </class>
  19969. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  19970. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  19971. <class name="Utils.Version" extends="java.lang.Object"
  19972. abstract="false"
  19973. static="true" final="true" visibility="public"
  19974. deprecated="not deprecated">
  19975. <implements name="java.lang.Comparable"/>
  19976. <constructor name="Utils.Version" type="java.io.DataInput"
  19977. static="false" final="false" visibility="public"
  19978. deprecated="not deprecated">
  19979. <exception name="IOException" type="java.io.IOException"/>
  19980. <doc>
  19981. <![CDATA[Construct the Version object by reading from the input stream.
  19982. @param in
  19983. input stream
  19984. @throws IOException]]>
  19985. </doc>
  19986. </constructor>
  19987. <constructor name="Utils.Version" type="short, short"
  19988. static="false" final="false" visibility="public"
  19989. deprecated="not deprecated">
  19990. <doc>
  19991. <![CDATA[Constructor.
  19992. @param major
  19993. major version.
  19994. @param minor
  19995. minor version.]]>
  19996. </doc>
  19997. </constructor>
  19998. <method name="write"
  19999. abstract="false" native="false" synchronized="false"
  20000. static="false" final="false" visibility="public"
  20001. deprecated="not deprecated">
  20002. <param name="out" type="java.io.DataOutput"/>
  20003. <exception name="IOException" type="java.io.IOException"/>
  20004. <doc>
  20005. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  20006. major version followed by minor version, both as big-endian short
  20007. integers.
  20008. @param out
  20009. The DataOutput object.
  20010. @throws IOException]]>
  20011. </doc>
  20012. </method>
  20013. <method name="getMajor" return="int"
  20014. abstract="false" native="false" synchronized="false"
  20015. static="false" final="false" visibility="public"
  20016. deprecated="not deprecated">
  20017. <doc>
  20018. <![CDATA[Get the major version.
  20019. @return Major version.]]>
  20020. </doc>
  20021. </method>
  20022. <method name="getMinor" return="int"
  20023. abstract="false" native="false" synchronized="false"
  20024. static="false" final="false" visibility="public"
  20025. deprecated="not deprecated">
  20026. <doc>
  20027. <![CDATA[Get the minor version.
  20028. @return The minor version.]]>
  20029. </doc>
  20030. </method>
  20031. <method name="size" return="int"
  20032. abstract="false" native="false" synchronized="false"
  20033. static="true" final="false" visibility="public"
  20034. deprecated="not deprecated">
  20035. <doc>
  20036. <![CDATA[Get the size of the serialized Version object.
  20037. @return serialized size of the version object.]]>
  20038. </doc>
  20039. </method>
  20040. <method name="toString" return="java.lang.String"
  20041. abstract="false" native="false" synchronized="false"
  20042. static="false" final="false" visibility="public"
  20043. deprecated="not deprecated">
  20044. <doc>
  20045. <![CDATA[Return a string representation of the version.]]>
  20046. </doc>
  20047. </method>
  20048. <method name="compatibleWith" return="boolean"
  20049. abstract="false" native="false" synchronized="false"
  20050. static="false" final="false" visibility="public"
  20051. deprecated="not deprecated">
  20052. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  20053. <doc>
  20054. <![CDATA[Test compatibility.
  20055. @param other
  20056. The Version object to test compatibility with.
  20057. @return true if both versions have the same major version number; false
  20058. otherwise.]]>
  20059. </doc>
  20060. </method>
  20061. <method name="compareTo" return="int"
  20062. abstract="false" native="false" synchronized="false"
  20063. static="false" final="false" visibility="public"
  20064. deprecated="not deprecated">
  20065. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  20066. <doc>
  20067. <![CDATA[Compare this version with another version.]]>
  20068. </doc>
  20069. </method>
  20070. <method name="equals" return="boolean"
  20071. abstract="false" native="false" synchronized="false"
  20072. static="false" final="false" visibility="public"
  20073. deprecated="not deprecated">
  20074. <param name="other" type="java.lang.Object"/>
  20075. </method>
  20076. <method name="hashCode" return="int"
  20077. abstract="false" native="false" synchronized="false"
  20078. static="false" final="false" visibility="public"
  20079. deprecated="not deprecated">
  20080. </method>
  20081. <doc>
  20082. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  20083. this class to maintain version information in their meta blocks.
  20084. A version number consists of a major version and a minor version. The
  20085. suggested usage of major and minor version number is to increment major
  20086. version number when the new storage format is not backward compatible, and
  20087. increment the minor version otherwise.]]>
  20088. </doc>
  20089. </class>
  20090. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  20091. </package>
  20092. <package name="org.apache.hadoop.io.nativeio">
  20093. <!-- start class org.apache.hadoop.io.nativeio.Errno -->
  20094. <class name="Errno" extends="java.lang.Enum"
  20095. abstract="false"
  20096. static="false" final="true" visibility="public"
  20097. deprecated="not deprecated">
  20098. <method name="values" return="org.apache.hadoop.io.nativeio.Errno[]"
  20099. abstract="false" native="false" synchronized="false"
  20100. static="true" final="false" visibility="public"
  20101. deprecated="not deprecated">
  20102. </method>
  20103. <method name="valueOf" return="org.apache.hadoop.io.nativeio.Errno"
  20104. abstract="false" native="false" synchronized="false"
  20105. static="true" final="false" visibility="public"
  20106. deprecated="not deprecated">
  20107. <param name="name" type="java.lang.String"/>
  20108. </method>
  20109. <field name="EPERM" type="org.apache.hadoop.io.nativeio.Errno"
  20110. transient="false" volatile="false"
  20111. static="true" final="true" visibility="public"
  20112. deprecated="not deprecated">
  20113. </field>
  20114. <field name="ENOENT" type="org.apache.hadoop.io.nativeio.Errno"
  20115. transient="false" volatile="false"
  20116. static="true" final="true" visibility="public"
  20117. deprecated="not deprecated">
  20118. </field>
  20119. <field name="ESRCH" type="org.apache.hadoop.io.nativeio.Errno"
  20120. transient="false" volatile="false"
  20121. static="true" final="true" visibility="public"
  20122. deprecated="not deprecated">
  20123. </field>
  20124. <field name="EINTR" type="org.apache.hadoop.io.nativeio.Errno"
  20125. transient="false" volatile="false"
  20126. static="true" final="true" visibility="public"
  20127. deprecated="not deprecated">
  20128. </field>
  20129. <field name="EIO" type="org.apache.hadoop.io.nativeio.Errno"
  20130. transient="false" volatile="false"
  20131. static="true" final="true" visibility="public"
  20132. deprecated="not deprecated">
  20133. </field>
  20134. <field name="ENXIO" type="org.apache.hadoop.io.nativeio.Errno"
  20135. transient="false" volatile="false"
  20136. static="true" final="true" visibility="public"
  20137. deprecated="not deprecated">
  20138. </field>
  20139. <field name="E2BIG" type="org.apache.hadoop.io.nativeio.Errno"
  20140. transient="false" volatile="false"
  20141. static="true" final="true" visibility="public"
  20142. deprecated="not deprecated">
  20143. </field>
  20144. <field name="ENOEXEC" type="org.apache.hadoop.io.nativeio.Errno"
  20145. transient="false" volatile="false"
  20146. static="true" final="true" visibility="public"
  20147. deprecated="not deprecated">
  20148. </field>
  20149. <field name="EBADF" type="org.apache.hadoop.io.nativeio.Errno"
  20150. transient="false" volatile="false"
  20151. static="true" final="true" visibility="public"
  20152. deprecated="not deprecated">
  20153. </field>
  20154. <field name="ECHILD" type="org.apache.hadoop.io.nativeio.Errno"
  20155. transient="false" volatile="false"
  20156. static="true" final="true" visibility="public"
  20157. deprecated="not deprecated">
  20158. </field>
  20159. <field name="EAGAIN" type="org.apache.hadoop.io.nativeio.Errno"
  20160. transient="false" volatile="false"
  20161. static="true" final="true" visibility="public"
  20162. deprecated="not deprecated">
  20163. </field>
  20164. <field name="ENOMEM" type="org.apache.hadoop.io.nativeio.Errno"
  20165. transient="false" volatile="false"
  20166. static="true" final="true" visibility="public"
  20167. deprecated="not deprecated">
  20168. </field>
  20169. <field name="EACCES" type="org.apache.hadoop.io.nativeio.Errno"
  20170. transient="false" volatile="false"
  20171. static="true" final="true" visibility="public"
  20172. deprecated="not deprecated">
  20173. </field>
  20174. <field name="EFAULT" type="org.apache.hadoop.io.nativeio.Errno"
  20175. transient="false" volatile="false"
  20176. static="true" final="true" visibility="public"
  20177. deprecated="not deprecated">
  20178. </field>
  20179. <field name="ENOTBLK" type="org.apache.hadoop.io.nativeio.Errno"
  20180. transient="false" volatile="false"
  20181. static="true" final="true" visibility="public"
  20182. deprecated="not deprecated">
  20183. </field>
  20184. <field name="EBUSY" type="org.apache.hadoop.io.nativeio.Errno"
  20185. transient="false" volatile="false"
  20186. static="true" final="true" visibility="public"
  20187. deprecated="not deprecated">
  20188. </field>
  20189. <field name="EEXIST" type="org.apache.hadoop.io.nativeio.Errno"
  20190. transient="false" volatile="false"
  20191. static="true" final="true" visibility="public"
  20192. deprecated="not deprecated">
  20193. </field>
  20194. <field name="EXDEV" type="org.apache.hadoop.io.nativeio.Errno"
  20195. transient="false" volatile="false"
  20196. static="true" final="true" visibility="public"
  20197. deprecated="not deprecated">
  20198. </field>
  20199. <field name="ENODEV" type="org.apache.hadoop.io.nativeio.Errno"
  20200. transient="false" volatile="false"
  20201. static="true" final="true" visibility="public"
  20202. deprecated="not deprecated">
  20203. </field>
  20204. <field name="ENOTDIR" type="org.apache.hadoop.io.nativeio.Errno"
  20205. transient="false" volatile="false"
  20206. static="true" final="true" visibility="public"
  20207. deprecated="not deprecated">
  20208. </field>
  20209. <field name="EISDIR" type="org.apache.hadoop.io.nativeio.Errno"
  20210. transient="false" volatile="false"
  20211. static="true" final="true" visibility="public"
  20212. deprecated="not deprecated">
  20213. </field>
  20214. <field name="EINVAL" type="org.apache.hadoop.io.nativeio.Errno"
  20215. transient="false" volatile="false"
  20216. static="true" final="true" visibility="public"
  20217. deprecated="not deprecated">
  20218. </field>
  20219. <field name="ENFILE" type="org.apache.hadoop.io.nativeio.Errno"
  20220. transient="false" volatile="false"
  20221. static="true" final="true" visibility="public"
  20222. deprecated="not deprecated">
  20223. </field>
  20224. <field name="EMFILE" type="org.apache.hadoop.io.nativeio.Errno"
  20225. transient="false" volatile="false"
  20226. static="true" final="true" visibility="public"
  20227. deprecated="not deprecated">
  20228. </field>
  20229. <field name="ENOTTY" type="org.apache.hadoop.io.nativeio.Errno"
  20230. transient="false" volatile="false"
  20231. static="true" final="true" visibility="public"
  20232. deprecated="not deprecated">
  20233. </field>
  20234. <field name="ETXTBSY" type="org.apache.hadoop.io.nativeio.Errno"
  20235. transient="false" volatile="false"
  20236. static="true" final="true" visibility="public"
  20237. deprecated="not deprecated">
  20238. </field>
  20239. <field name="EFBIG" type="org.apache.hadoop.io.nativeio.Errno"
  20240. transient="false" volatile="false"
  20241. static="true" final="true" visibility="public"
  20242. deprecated="not deprecated">
  20243. </field>
  20244. <field name="ENOSPC" type="org.apache.hadoop.io.nativeio.Errno"
  20245. transient="false" volatile="false"
  20246. static="true" final="true" visibility="public"
  20247. deprecated="not deprecated">
  20248. </field>
  20249. <field name="ESPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  20250. transient="false" volatile="false"
  20251. static="true" final="true" visibility="public"
  20252. deprecated="not deprecated">
  20253. </field>
  20254. <field name="EROFS" type="org.apache.hadoop.io.nativeio.Errno"
  20255. transient="false" volatile="false"
  20256. static="true" final="true" visibility="public"
  20257. deprecated="not deprecated">
  20258. </field>
  20259. <field name="EMLINK" type="org.apache.hadoop.io.nativeio.Errno"
  20260. transient="false" volatile="false"
  20261. static="true" final="true" visibility="public"
  20262. deprecated="not deprecated">
  20263. </field>
  20264. <field name="EPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  20265. transient="false" volatile="false"
  20266. static="true" final="true" visibility="public"
  20267. deprecated="not deprecated">
  20268. </field>
  20269. <field name="EDOM" type="org.apache.hadoop.io.nativeio.Errno"
  20270. transient="false" volatile="false"
  20271. static="true" final="true" visibility="public"
  20272. deprecated="not deprecated">
  20273. </field>
  20274. <field name="ERANGE" type="org.apache.hadoop.io.nativeio.Errno"
  20275. transient="false" volatile="false"
  20276. static="true" final="true" visibility="public"
  20277. deprecated="not deprecated">
  20278. </field>
  20279. <field name="UNKNOWN" type="org.apache.hadoop.io.nativeio.Errno"
  20280. transient="false" volatile="false"
  20281. static="true" final="true" visibility="public"
  20282. deprecated="not deprecated">
  20283. </field>
  20284. <doc>
  20285. <![CDATA[Enum representing POSIX errno values.]]>
  20286. </doc>
  20287. </class>
  20288. <!-- end class org.apache.hadoop.io.nativeio.Errno -->
  20289. <!-- start class org.apache.hadoop.io.nativeio.NativeIO -->
  20290. <class name="NativeIO" extends="java.lang.Object"
  20291. abstract="false"
  20292. static="false" final="false" visibility="public"
  20293. deprecated="not deprecated">
  20294. <constructor name="NativeIO"
  20295. static="false" final="false" visibility="public"
  20296. deprecated="not deprecated">
  20297. </constructor>
  20298. <method name="isAvailable" return="boolean"
  20299. abstract="false" native="false" synchronized="false"
  20300. static="true" final="false" visibility="public"
  20301. deprecated="not deprecated">
  20302. <doc>
  20303. <![CDATA[Return true if the JNI-based native IO extensions are available.]]>
  20304. </doc>
  20305. </method>
  20306. <method name="open" return="java.io.FileDescriptor"
  20307. abstract="false" native="true" synchronized="false"
  20308. static="true" final="false" visibility="public"
  20309. deprecated="not deprecated">
  20310. <param name="path" type="java.lang.String"/>
  20311. <param name="flags" type="int"/>
  20312. <param name="mode" type="int"/>
  20313. <exception name="IOException" type="java.io.IOException"/>
  20314. <doc>
  20315. <![CDATA[Wrapper around open(2)]]>
  20316. </doc>
  20317. </method>
  20318. <method name="fstat" return="org.apache.hadoop.io.nativeio.NativeIO.Stat"
  20319. abstract="false" native="true" synchronized="false"
  20320. static="true" final="false" visibility="public"
  20321. deprecated="not deprecated">
  20322. <param name="fd" type="java.io.FileDescriptor"/>
  20323. <exception name="IOException" type="java.io.IOException"/>
  20324. <doc>
  20325. <![CDATA[Wrapper around fstat(2)]]>
  20326. </doc>
  20327. </method>
  20328. <method name="chmod"
  20329. abstract="false" native="true" synchronized="false"
  20330. static="true" final="false" visibility="public"
  20331. deprecated="not deprecated">
  20332. <param name="path" type="java.lang.String"/>
  20333. <param name="mode" type="int"/>
  20334. <exception name="IOException" type="java.io.IOException"/>
  20335. <doc>
  20336. <![CDATA[Wrapper around chmod(2)]]>
  20337. </doc>
  20338. </method>
  20339. <method name="getOwner" return="java.lang.String"
  20340. abstract="false" native="false" synchronized="false"
  20341. static="true" final="false" visibility="public"
  20342. deprecated="not deprecated">
  20343. <param name="fd" type="java.io.FileDescriptor"/>
  20344. <exception name="IOException" type="java.io.IOException"/>
  20345. </method>
  20346. <field name="O_RDONLY" type="int"
  20347. transient="false" volatile="false"
  20348. static="true" final="true" visibility="public"
  20349. deprecated="not deprecated">
  20350. </field>
  20351. <field name="O_WRONLY" type="int"
  20352. transient="false" volatile="false"
  20353. static="true" final="true" visibility="public"
  20354. deprecated="not deprecated">
  20355. </field>
  20356. <field name="O_RDWR" type="int"
  20357. transient="false" volatile="false"
  20358. static="true" final="true" visibility="public"
  20359. deprecated="not deprecated">
  20360. </field>
  20361. <field name="O_CREAT" type="int"
  20362. transient="false" volatile="false"
  20363. static="true" final="true" visibility="public"
  20364. deprecated="not deprecated">
  20365. </field>
  20366. <field name="O_EXCL" type="int"
  20367. transient="false" volatile="false"
  20368. static="true" final="true" visibility="public"
  20369. deprecated="not deprecated">
  20370. </field>
  20371. <field name="O_NOCTTY" type="int"
  20372. transient="false" volatile="false"
  20373. static="true" final="true" visibility="public"
  20374. deprecated="not deprecated">
  20375. </field>
  20376. <field name="O_TRUNC" type="int"
  20377. transient="false" volatile="false"
  20378. static="true" final="true" visibility="public"
  20379. deprecated="not deprecated">
  20380. </field>
  20381. <field name="O_APPEND" type="int"
  20382. transient="false" volatile="false"
  20383. static="true" final="true" visibility="public"
  20384. deprecated="not deprecated">
  20385. </field>
  20386. <field name="O_NONBLOCK" type="int"
  20387. transient="false" volatile="false"
  20388. static="true" final="true" visibility="public"
  20389. deprecated="not deprecated">
  20390. </field>
  20391. <field name="O_SYNC" type="int"
  20392. transient="false" volatile="false"
  20393. static="true" final="true" visibility="public"
  20394. deprecated="not deprecated">
  20395. </field>
  20396. <field name="O_ASYNC" type="int"
  20397. transient="false" volatile="false"
  20398. static="true" final="true" visibility="public"
  20399. deprecated="not deprecated">
  20400. </field>
  20401. <field name="O_FSYNC" type="int"
  20402. transient="false" volatile="false"
  20403. static="true" final="true" visibility="public"
  20404. deprecated="not deprecated">
  20405. </field>
  20406. <field name="O_NDELAY" type="int"
  20407. transient="false" volatile="false"
  20408. static="true" final="true" visibility="public"
  20409. deprecated="not deprecated">
  20410. </field>
  20411. <doc>
  20412. <![CDATA[JNI wrappers for various native IO-related calls not available in Java.
  20413. These functions should generally be used alongside a fallback to another
  20414. more portable mechanism.]]>
  20415. </doc>
  20416. </class>
  20417. <!-- end class org.apache.hadoop.io.nativeio.NativeIO -->
  20418. <!-- start class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  20419. <class name="NativeIO.Stat" extends="java.lang.Object"
  20420. abstract="false"
  20421. static="true" final="false" visibility="public"
  20422. deprecated="not deprecated">
  20423. <method name="toString" return="java.lang.String"
  20424. abstract="false" native="false" synchronized="false"
  20425. static="false" final="false" visibility="public"
  20426. deprecated="not deprecated">
  20427. </method>
  20428. <method name="getOwner" return="java.lang.String"
  20429. abstract="false" native="false" synchronized="false"
  20430. static="false" final="false" visibility="public"
  20431. deprecated="not deprecated">
  20432. </method>
  20433. <method name="getMode" return="int"
  20434. abstract="false" native="false" synchronized="false"
  20435. static="false" final="false" visibility="public"
  20436. deprecated="not deprecated">
  20437. </method>
  20438. <field name="S_IFMT" type="int"
  20439. transient="false" volatile="false"
  20440. static="true" final="true" visibility="public"
  20441. deprecated="not deprecated">
  20442. </field>
  20443. <field name="S_IFIFO" type="int"
  20444. transient="false" volatile="false"
  20445. static="true" final="true" visibility="public"
  20446. deprecated="not deprecated">
  20447. </field>
  20448. <field name="S_IFCHR" type="int"
  20449. transient="false" volatile="false"
  20450. static="true" final="true" visibility="public"
  20451. deprecated="not deprecated">
  20452. </field>
  20453. <field name="S_IFDIR" type="int"
  20454. transient="false" volatile="false"
  20455. static="true" final="true" visibility="public"
  20456. deprecated="not deprecated">
  20457. </field>
  20458. <field name="S_IFBLK" type="int"
  20459. transient="false" volatile="false"
  20460. static="true" final="true" visibility="public"
  20461. deprecated="not deprecated">
  20462. </field>
  20463. <field name="S_IFREG" type="int"
  20464. transient="false" volatile="false"
  20465. static="true" final="true" visibility="public"
  20466. deprecated="not deprecated">
  20467. </field>
  20468. <field name="S_IFLNK" type="int"
  20469. transient="false" volatile="false"
  20470. static="true" final="true" visibility="public"
  20471. deprecated="not deprecated">
  20472. </field>
  20473. <field name="S_IFSOCK" type="int"
  20474. transient="false" volatile="false"
  20475. static="true" final="true" visibility="public"
  20476. deprecated="not deprecated">
  20477. </field>
  20478. <field name="S_IFWHT" type="int"
  20479. transient="false" volatile="false"
  20480. static="true" final="true" visibility="public"
  20481. deprecated="not deprecated">
  20482. </field>
  20483. <field name="S_ISUID" type="int"
  20484. transient="false" volatile="false"
  20485. static="true" final="true" visibility="public"
  20486. deprecated="not deprecated">
  20487. </field>
  20488. <field name="S_ISGID" type="int"
  20489. transient="false" volatile="false"
  20490. static="true" final="true" visibility="public"
  20491. deprecated="not deprecated">
  20492. </field>
  20493. <field name="S_ISVTX" type="int"
  20494. transient="false" volatile="false"
  20495. static="true" final="true" visibility="public"
  20496. deprecated="not deprecated">
  20497. </field>
  20498. <field name="S_IRUSR" type="int"
  20499. transient="false" volatile="false"
  20500. static="true" final="true" visibility="public"
  20501. deprecated="not deprecated">
  20502. </field>
  20503. <field name="S_IWUSR" type="int"
  20504. transient="false" volatile="false"
  20505. static="true" final="true" visibility="public"
  20506. deprecated="not deprecated">
  20507. </field>
  20508. <field name="S_IXUSR" type="int"
  20509. transient="false" volatile="false"
  20510. static="true" final="true" visibility="public"
  20511. deprecated="not deprecated">
  20512. </field>
  20513. <doc>
  20514. <![CDATA[Result type of the fstat call]]>
  20515. </doc>
  20516. </class>
  20517. <!-- end class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  20518. <!-- start class org.apache.hadoop.io.nativeio.NativeIOException -->
  20519. <class name="NativeIOException" extends="java.io.IOException"
  20520. abstract="false"
  20521. static="false" final="false" visibility="public"
  20522. deprecated="not deprecated">
  20523. <constructor name="NativeIOException" type="java.lang.String, org.apache.hadoop.io.nativeio.Errno"
  20524. static="false" final="false" visibility="public"
  20525. deprecated="not deprecated">
  20526. </constructor>
  20527. <method name="getErrno" return="org.apache.hadoop.io.nativeio.Errno"
  20528. abstract="false" native="false" synchronized="false"
  20529. static="false" final="false" visibility="public"
  20530. deprecated="not deprecated">
  20531. </method>
  20532. <method name="toString" return="java.lang.String"
  20533. abstract="false" native="false" synchronized="false"
  20534. static="false" final="false" visibility="public"
  20535. deprecated="not deprecated">
  20536. </method>
  20537. <doc>
  20538. <![CDATA[An exception generated by a call to the native IO code.
  20539. These exceptions simply wrap <i>errno</i> result codes.]]>
  20540. </doc>
  20541. </class>
  20542. <!-- end class org.apache.hadoop.io.nativeio.NativeIOException -->
  20543. </package>
  20544. <package name="org.apache.hadoop.io.retry">
  20545. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  20546. <class name="RetryPolicies" extends="java.lang.Object"
  20547. abstract="false"
  20548. static="false" final="false" visibility="public"
  20549. deprecated="not deprecated">
  20550. <constructor name="RetryPolicies"
  20551. static="false" final="false" visibility="public"
  20552. deprecated="not deprecated">
  20553. </constructor>
  20554. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  20555. abstract="false" native="false" synchronized="false"
  20556. static="true" final="true" visibility="public"
  20557. deprecated="not deprecated">
  20558. <param name="maxRetries" type="int"/>
  20559. <param name="sleepTime" type="long"/>
  20560. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  20561. <doc>
  20562. <![CDATA[<p>
  20563. Keep trying a limited number of times, waiting a fixed time between attempts,
  20564. and then fail by re-throwing the exception.
  20565. </p>]]>
  20566. </doc>
  20567. </method>
  20568. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  20569. abstract="false" native="false" synchronized="false"
  20570. static="true" final="true" visibility="public"
  20571. deprecated="not deprecated">
  20572. <param name="maxTime" type="long"/>
  20573. <param name="sleepTime" type="long"/>
  20574. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  20575. <doc>
  20576. <![CDATA[<p>
  20577. Keep trying for a maximum time, waiting a fixed time between attempts,
  20578. and then fail by re-throwing the exception.
  20579. </p>]]>
  20580. </doc>
  20581. </method>
  20582. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  20583. abstract="false" native="false" synchronized="false"
  20584. static="true" final="true" visibility="public"
  20585. deprecated="not deprecated">
  20586. <param name="maxRetries" type="int"/>
  20587. <param name="sleepTime" type="long"/>
  20588. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  20589. <doc>
  20590. <![CDATA[<p>
  20591. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  20592. and then fail by re-throwing the exception.
  20593. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  20594. </p>]]>
  20595. </doc>
  20596. </method>
  20597. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  20598. abstract="false" native="false" synchronized="false"
  20599. static="true" final="true" visibility="public"
  20600. deprecated="not deprecated">
  20601. <param name="maxRetries" type="int"/>
  20602. <param name="sleepTime" type="long"/>
  20603. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  20604. <doc>
  20605. <![CDATA[<p>
  20606. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  20607. and then fail by re-throwing the exception.
  20608. The time between attempts is <code>sleepTime</code> mutliplied by a random
  20609. number in the range of [0, 2 to the number of retries)
  20610. </p>]]>
  20611. </doc>
  20612. </method>
  20613. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  20614. abstract="false" native="false" synchronized="false"
  20615. static="true" final="true" visibility="public"
  20616. deprecated="not deprecated">
  20617. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  20618. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  20619. <doc>
  20620. <![CDATA[<p>
  20621. Set a default policy with some explicit handlers for specific exceptions.
  20622. </p>]]>
  20623. </doc>
  20624. </method>
  20625. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  20626. abstract="false" native="false" synchronized="false"
  20627. static="true" final="true" visibility="public"
  20628. deprecated="not deprecated">
  20629. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  20630. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  20631. <doc>
  20632. <![CDATA[<p>
  20633. A retry policy for RemoteException
  20634. Set a default policy with some explicit handlers for specific exceptions.
  20635. </p>]]>
  20636. </doc>
  20637. </method>
  20638. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  20639. transient="false" volatile="false"
  20640. static="true" final="true" visibility="public"
  20641. deprecated="not deprecated">
  20642. <doc>
  20643. <![CDATA[<p>
  20644. Try once, and fail by re-throwing the exception.
  20645. This corresponds to having no retry mechanism in place.
  20646. </p>]]>
  20647. </doc>
  20648. </field>
  20649. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  20650. transient="false" volatile="false"
  20651. static="true" final="true" visibility="public"
  20652. deprecated="not deprecated">
  20653. <doc>
  20654. <![CDATA[<p>
  20655. Try once, and fail silently for <code>void</code> methods, or by
  20656. re-throwing the exception for non-<code>void</code> methods.
  20657. </p>]]>
  20658. </doc>
  20659. </field>
  20660. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  20661. transient="false" volatile="false"
  20662. static="true" final="true" visibility="public"
  20663. deprecated="not deprecated">
  20664. <doc>
  20665. <![CDATA[<p>
  20666. Keep trying forever.
  20667. </p>]]>
  20668. </doc>
  20669. </field>
  20670. <doc>
  20671. <![CDATA[<p>
  20672. A collection of useful implementations of {@link RetryPolicy}.
  20673. </p>]]>
  20674. </doc>
  20675. </class>
  20676. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  20677. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  20678. <interface name="RetryPolicy" abstract="true"
  20679. static="false" final="false" visibility="public"
  20680. deprecated="not deprecated">
  20681. <method name="shouldRetry" return="boolean"
  20682. abstract="false" native="false" synchronized="false"
  20683. static="false" final="false" visibility="public"
  20684. deprecated="not deprecated">
  20685. <param name="e" type="java.lang.Exception"/>
  20686. <param name="retries" type="int"/>
  20687. <exception name="Exception" type="java.lang.Exception"/>
  20688. <doc>
  20689. <![CDATA[<p>
  20690. Determines whether the framework should retry a
  20691. method for the given exception, and the number
  20692. of retries that have been made for that operation
  20693. so far.
  20694. </p>
  20695. @param e The exception that caused the method to fail.
  20696. @param retries The number of times the method has been retried.
  20697. @return <code>true</code> if the method should be retried,
  20698. <code>false</code> if the method should not be retried
  20699. but shouldn't fail with an exception (only for void methods).
  20700. @throws Exception The re-thrown exception <code>e</code> indicating
  20701. that the method failed and should not be retried further.]]>
  20702. </doc>
  20703. </method>
  20704. <doc>
  20705. <![CDATA[<p>
  20706. Specifies a policy for retrying method failures.
  20707. Implementations of this interface should be immutable.
  20708. </p>]]>
  20709. </doc>
  20710. </interface>
  20711. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  20712. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  20713. <class name="RetryProxy" extends="java.lang.Object"
  20714. abstract="false"
  20715. static="false" final="false" visibility="public"
  20716. deprecated="not deprecated">
  20717. <constructor name="RetryProxy"
  20718. static="false" final="false" visibility="public"
  20719. deprecated="not deprecated">
  20720. </constructor>
  20721. <method name="create" return="java.lang.Object"
  20722. abstract="false" native="false" synchronized="false"
  20723. static="true" final="false" visibility="public"
  20724. deprecated="not deprecated">
  20725. <param name="iface" type="java.lang.Class"/>
  20726. <param name="implementation" type="java.lang.Object"/>
  20727. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  20728. <doc>
  20729. <![CDATA[<p>
  20730. Create a proxy for an interface of an implementation class
  20731. using the same retry policy for each method in the interface.
  20732. </p>
  20733. @param iface the interface that the retry will implement
  20734. @param implementation the instance whose methods should be retried
  20735. @param retryPolicy the policy for retirying method call failures
  20736. @return the retry proxy]]>
  20737. </doc>
  20738. </method>
  20739. <method name="create" return="java.lang.Object"
  20740. abstract="false" native="false" synchronized="false"
  20741. static="true" final="false" visibility="public"
  20742. deprecated="not deprecated">
  20743. <param name="iface" type="java.lang.Class"/>
  20744. <param name="implementation" type="java.lang.Object"/>
  20745. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  20746. <doc>
  20747. <![CDATA[<p>
  20748. Create a proxy for an interface of an implementation class
  20749. using the a set of retry policies specified by method name.
  20750. If no retry policy is defined for a method then a default of
  20751. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  20752. </p>
  20753. @param iface the interface that the retry will implement
  20754. @param implementation the instance whose methods should be retried
  20755. @param methodNameToPolicyMap a map of method names to retry policies
  20756. @return the retry proxy]]>
  20757. </doc>
  20758. </method>
  20759. <doc>
  20760. <![CDATA[<p>
  20761. A factory for creating retry proxies.
  20762. </p>]]>
  20763. </doc>
  20764. </class>
  20765. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  20766. </package>
  20767. <package name="org.apache.hadoop.io.serializer">
  20768. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  20769. <interface name="Deserializer" abstract="true"
  20770. static="false" final="false" visibility="public"
  20771. deprecated="not deprecated">
  20772. <method name="open"
  20773. abstract="false" native="false" synchronized="false"
  20774. static="false" final="false" visibility="public"
  20775. deprecated="not deprecated">
  20776. <param name="in" type="java.io.InputStream"/>
  20777. <exception name="IOException" type="java.io.IOException"/>
  20778. <doc>
  20779. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  20780. </doc>
  20781. </method>
  20782. <method name="deserialize" return="java.lang.Object"
  20783. abstract="false" native="false" synchronized="false"
  20784. static="false" final="false" visibility="public"
  20785. deprecated="not deprecated">
  20786. <param name="t" type="java.lang.Object"/>
  20787. <exception name="IOException" type="java.io.IOException"/>
  20788. <doc>
  20789. <![CDATA[<p>
  20790. Deserialize the next object from the underlying input stream.
  20791. If the object <code>t</code> is non-null then this deserializer
  20792. <i>may</i> set its internal state to the next object read from the input
  20793. stream. Otherwise, if the object <code>t</code> is null a new
  20794. deserialized object will be created.
  20795. </p>
  20796. @return the deserialized object]]>
  20797. </doc>
  20798. </method>
  20799. <method name="close"
  20800. abstract="false" native="false" synchronized="false"
  20801. static="false" final="false" visibility="public"
  20802. deprecated="not deprecated">
  20803. <exception name="IOException" type="java.io.IOException"/>
  20804. <doc>
  20805. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  20806. </doc>
  20807. </method>
  20808. <doc>
  20809. <![CDATA[<p>
  20810. Provides a facility for deserializing objects of type <T> from an
  20811. {@link InputStream}.
  20812. </p>
  20813. <p>
  20814. Deserializers are stateful, but must not buffer the input since
  20815. other producers may read from the input between calls to
  20816. {@link #deserialize(Object)}.
  20817. </p>
  20818. @param <T>]]>
  20819. </doc>
  20820. </interface>
  20821. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  20822. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  20823. <class name="DeserializerComparator" extends="java.lang.Object"
  20824. abstract="true"
  20825. static="false" final="false" visibility="public"
  20826. deprecated="not deprecated">
  20827. <implements name="org.apache.hadoop.io.RawComparator"/>
  20828. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer"
  20829. static="false" final="false" visibility="protected"
  20830. deprecated="not deprecated">
  20831. <exception name="IOException" type="java.io.IOException"/>
  20832. </constructor>
  20833. <method name="compare" return="int"
  20834. abstract="false" native="false" synchronized="false"
  20835. static="false" final="false" visibility="public"
  20836. deprecated="not deprecated">
  20837. <param name="b1" type="byte[]"/>
  20838. <param name="s1" type="int"/>
  20839. <param name="l1" type="int"/>
  20840. <param name="b2" type="byte[]"/>
  20841. <param name="s2" type="int"/>
  20842. <param name="l2" type="int"/>
  20843. </method>
  20844. <doc>
  20845. <![CDATA[<p>
  20846. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  20847. the objects to be compared so that the standard {@link Comparator} can
  20848. be used to compare them.
  20849. </p>
  20850. <p>
  20851. One may optimize compare-intensive operations by using a custom
  20852. implementation of {@link RawComparator} that operates directly
  20853. on byte representations.
  20854. </p>
  20855. @param <T>]]>
  20856. </doc>
  20857. </class>
  20858. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  20859. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  20860. <class name="JavaSerialization" extends="java.lang.Object"
  20861. abstract="false"
  20862. static="false" final="false" visibility="public"
  20863. deprecated="not deprecated">
  20864. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  20865. <constructor name="JavaSerialization"
  20866. static="false" final="false" visibility="public"
  20867. deprecated="not deprecated">
  20868. </constructor>
  20869. <method name="accept" return="boolean"
  20870. abstract="false" native="false" synchronized="false"
  20871. static="false" final="false" visibility="public"
  20872. deprecated="not deprecated">
  20873. <param name="c" type="java.lang.Class"/>
  20874. </method>
  20875. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  20876. abstract="false" native="false" synchronized="false"
  20877. static="false" final="false" visibility="public"
  20878. deprecated="not deprecated">
  20879. <param name="c" type="java.lang.Class"/>
  20880. </method>
  20881. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  20882. abstract="false" native="false" synchronized="false"
  20883. static="false" final="false" visibility="public"
  20884. deprecated="not deprecated">
  20885. <param name="c" type="java.lang.Class"/>
  20886. </method>
  20887. <doc>
  20888. <![CDATA[<p>
  20889. An experimental {@link Serialization} for Java {@link Serializable} classes.
  20890. </p>
  20891. @see JavaSerializationComparator]]>
  20892. </doc>
  20893. </class>
  20894. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  20895. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  20896. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  20897. abstract="false"
  20898. static="false" final="false" visibility="public"
  20899. deprecated="not deprecated">
  20900. <constructor name="JavaSerializationComparator"
  20901. static="false" final="false" visibility="public"
  20902. deprecated="not deprecated">
  20903. <exception name="IOException" type="java.io.IOException"/>
  20904. </constructor>
  20905. <method name="compare" return="int"
  20906. abstract="false" native="false" synchronized="false"
  20907. static="false" final="false" visibility="public"
  20908. deprecated="not deprecated">
  20909. <param name="o1" type="java.io.Serializable"/>
  20910. <param name="o2" type="java.io.Serializable"/>
  20911. </method>
  20912. <doc>
  20913. <![CDATA[<p>
  20914. A {@link RawComparator} that uses a {@link JavaSerialization}
  20915. {@link Deserializer} to deserialize objects that are then compared via
  20916. their {@link Comparable} interfaces.
  20917. </p>
  20918. @param <T>
  20919. @see JavaSerialization]]>
  20920. </doc>
  20921. </class>
  20922. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  20923. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  20924. <interface name="Serialization" abstract="true"
  20925. static="false" final="false" visibility="public"
  20926. deprecated="not deprecated">
  20927. <method name="accept" return="boolean"
  20928. abstract="false" native="false" synchronized="false"
  20929. static="false" final="false" visibility="public"
  20930. deprecated="not deprecated">
  20931. <param name="c" type="java.lang.Class"/>
  20932. <doc>
  20933. <![CDATA[Allows clients to test whether this {@link Serialization}
  20934. supports the given class.]]>
  20935. </doc>
  20936. </method>
  20937. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  20938. abstract="false" native="false" synchronized="false"
  20939. static="false" final="false" visibility="public"
  20940. deprecated="not deprecated">
  20941. <param name="c" type="java.lang.Class"/>
  20942. <doc>
  20943. <![CDATA[@return a {@link Serializer} for the given class.]]>
  20944. </doc>
  20945. </method>
  20946. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  20947. abstract="false" native="false" synchronized="false"
  20948. static="false" final="false" visibility="public"
  20949. deprecated="not deprecated">
  20950. <param name="c" type="java.lang.Class"/>
  20951. <doc>
  20952. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  20953. </doc>
  20954. </method>
  20955. <doc>
  20956. <![CDATA[<p>
  20957. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  20958. </p>
  20959. @param <T>]]>
  20960. </doc>
  20961. </interface>
  20962. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  20963. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  20964. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  20965. abstract="false"
  20966. static="false" final="false" visibility="public"
  20967. deprecated="not deprecated">
  20968. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  20969. static="false" final="false" visibility="public"
  20970. deprecated="not deprecated">
  20971. <doc>
  20972. <![CDATA[<p>
  20973. Serializations are found by reading the <code>io.serializations</code>
  20974. property from <code>conf</code>, which is a comma-delimited list of
  20975. classnames.
  20976. </p>]]>
  20977. </doc>
  20978. </constructor>
  20979. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  20980. abstract="false" native="false" synchronized="false"
  20981. static="false" final="false" visibility="public"
  20982. deprecated="not deprecated">
  20983. <param name="c" type="java.lang.Class"/>
  20984. </method>
  20985. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  20986. abstract="false" native="false" synchronized="false"
  20987. static="false" final="false" visibility="public"
  20988. deprecated="not deprecated">
  20989. <param name="c" type="java.lang.Class"/>
  20990. </method>
  20991. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization"
  20992. abstract="false" native="false" synchronized="false"
  20993. static="false" final="false" visibility="public"
  20994. deprecated="not deprecated">
  20995. <param name="c" type="java.lang.Class"/>
  20996. </method>
  20997. <doc>
  20998. <![CDATA[<p>
  20999. A factory for {@link Serialization}s.
  21000. </p>]]>
  21001. </doc>
  21002. </class>
  21003. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  21004. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  21005. <interface name="Serializer" abstract="true"
  21006. static="false" final="false" visibility="public"
  21007. deprecated="not deprecated">
  21008. <method name="open"
  21009. abstract="false" native="false" synchronized="false"
  21010. static="false" final="false" visibility="public"
  21011. deprecated="not deprecated">
  21012. <param name="out" type="java.io.OutputStream"/>
  21013. <exception name="IOException" type="java.io.IOException"/>
  21014. <doc>
  21015. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  21016. </doc>
  21017. </method>
  21018. <method name="serialize"
  21019. abstract="false" native="false" synchronized="false"
  21020. static="false" final="false" visibility="public"
  21021. deprecated="not deprecated">
  21022. <param name="t" type="java.lang.Object"/>
  21023. <exception name="IOException" type="java.io.IOException"/>
  21024. <doc>
  21025. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  21026. </doc>
  21027. </method>
  21028. <method name="close"
  21029. abstract="false" native="false" synchronized="false"
  21030. static="false" final="false" visibility="public"
  21031. deprecated="not deprecated">
  21032. <exception name="IOException" type="java.io.IOException"/>
  21033. <doc>
  21034. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  21035. </doc>
  21036. </method>
  21037. <doc>
  21038. <![CDATA[<p>
  21039. Provides a facility for serializing objects of type <T> to an
  21040. {@link OutputStream}.
  21041. </p>
  21042. <p>
  21043. Serializers are stateful, but must not buffer the output since
  21044. other producers may write to the output between calls to
  21045. {@link #serialize(Object)}.
  21046. </p>
  21047. @param <T>]]>
  21048. </doc>
  21049. </interface>
  21050. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  21051. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  21052. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  21053. abstract="false"
  21054. static="false" final="false" visibility="public"
  21055. deprecated="not deprecated">
  21056. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  21057. <constructor name="WritableSerialization"
  21058. static="false" final="false" visibility="public"
  21059. deprecated="not deprecated">
  21060. </constructor>
  21061. <method name="accept" return="boolean"
  21062. abstract="false" native="false" synchronized="false"
  21063. static="false" final="false" visibility="public"
  21064. deprecated="not deprecated">
  21065. <param name="c" type="java.lang.Class"/>
  21066. </method>
  21067. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21068. abstract="false" native="false" synchronized="false"
  21069. static="false" final="false" visibility="public"
  21070. deprecated="not deprecated">
  21071. <param name="c" type="java.lang.Class"/>
  21072. </method>
  21073. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21074. abstract="false" native="false" synchronized="false"
  21075. static="false" final="false" visibility="public"
  21076. deprecated="not deprecated">
  21077. <param name="c" type="java.lang.Class"/>
  21078. </method>
  21079. <doc>
  21080. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  21081. {@link Writable#write(java.io.DataOutput)} and
  21082. {@link Writable#readFields(java.io.DataInput)}.]]>
  21083. </doc>
  21084. </class>
  21085. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  21086. </package>
  21087. <package name="org.apache.hadoop.ipc">
  21088. <!-- start class org.apache.hadoop.ipc.Client -->
  21089. <class name="Client" extends="java.lang.Object"
  21090. abstract="false"
  21091. static="false" final="false" visibility="public"
  21092. deprecated="not deprecated">
  21093. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  21094. static="false" final="false" visibility="public"
  21095. deprecated="not deprecated">
  21096. <doc>
  21097. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  21098. class.]]>
  21099. </doc>
  21100. </constructor>
  21101. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration"
  21102. static="false" final="false" visibility="public"
  21103. deprecated="not deprecated">
  21104. <doc>
  21105. <![CDATA[Construct an IPC client with the default SocketFactory
  21106. @param valueClass
  21107. @param conf]]>
  21108. </doc>
  21109. </constructor>
  21110. <method name="setPingInterval"
  21111. abstract="false" native="false" synchronized="false"
  21112. static="true" final="true" visibility="public"
  21113. deprecated="not deprecated">
  21114. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21115. <param name="pingInterval" type="int"/>
  21116. <doc>
  21117. <![CDATA[set the ping interval value in configuration
  21118. @param conf Configuration
  21119. @param pingInterval the ping interval]]>
  21120. </doc>
  21121. </method>
  21122. <method name="stop"
  21123. abstract="false" native="false" synchronized="false"
  21124. static="false" final="false" visibility="public"
  21125. deprecated="not deprecated">
  21126. <doc>
  21127. <![CDATA[Stop all threads related to this client. No further calls may be made
  21128. using this client.]]>
  21129. </doc>
  21130. </method>
  21131. <method name="call" return="org.apache.hadoop.io.Writable"
  21132. abstract="false" native="false" synchronized="false"
  21133. static="false" final="false" visibility="public"
  21134. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  21135. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21136. <param name="address" type="java.net.InetSocketAddress"/>
  21137. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21138. <exception name="IOException" type="java.io.IOException"/>
  21139. <doc>
  21140. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21141. <code>address</code>, returning the value. Throws exceptions if there are
  21142. network problems or if the remote code threw an exception.
  21143. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  21144. </doc>
  21145. </method>
  21146. <method name="call" return="org.apache.hadoop.io.Writable"
  21147. abstract="false" native="false" synchronized="false"
  21148. static="false" final="false" visibility="public"
  21149. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  21150. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21151. <param name="addr" type="java.net.InetSocketAddress"/>
  21152. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21153. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21154. <exception name="IOException" type="java.io.IOException"/>
  21155. <doc>
  21156. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21157. <code>address</code> with the <code>ticket</code> credentials, returning
  21158. the value.
  21159. Throws exceptions if there are network problems or if the remote code
  21160. threw an exception.
  21161. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  21162. </doc>
  21163. </method>
  21164. <method name="call" return="org.apache.hadoop.io.Writable"
  21165. abstract="false" native="false" synchronized="false"
  21166. static="false" final="false" visibility="public"
  21167. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  21168. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21169. <param name="addr" type="java.net.InetSocketAddress"/>
  21170. <param name="protocol" type="java.lang.Class"/>
  21171. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21172. <param name="rpcTimeout" type="int"/>
  21173. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21174. <exception name="IOException" type="java.io.IOException"/>
  21175. <doc>
  21176. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21177. <code>address</code> which is servicing the <code>protocol</code> protocol,
  21178. with the <code>ticket</code> credentials and <code>rpcTimeout</code> as
  21179. timeout, returning the value.
  21180. Throws exceptions if there are network problems or if the remote code
  21181. threw an exception.
  21182. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  21183. </doc>
  21184. </method>
  21185. <method name="call" return="org.apache.hadoop.io.Writable"
  21186. abstract="false" native="false" synchronized="false"
  21187. static="false" final="false" visibility="public"
  21188. deprecated="not deprecated">
  21189. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21190. <param name="addr" type="java.net.InetSocketAddress"/>
  21191. <param name="protocol" type="java.lang.Class"/>
  21192. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21193. <param name="rpcTimeout" type="int"/>
  21194. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21195. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21196. <exception name="IOException" type="java.io.IOException"/>
  21197. <doc>
  21198. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21199. <code>address</code> which is servicing the <code>protocol</code> protocol,
  21200. with the <code>ticket</code> credentials, <code>rpcTimeout</code> as timeout
  21201. and <code>conf</code> as configuration for this connection, returning the
  21202. value. Throws exceptions if there are network problems or if the remote code
  21203. threw an exception.]]>
  21204. </doc>
  21205. </method>
  21206. <method name="call" return="org.apache.hadoop.io.Writable"
  21207. abstract="false" native="false" synchronized="false"
  21208. static="false" final="false" visibility="public"
  21209. deprecated="not deprecated">
  21210. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21211. <param name="remoteId" type="org.apache.hadoop.ipc.Client.ConnectionId"/>
  21212. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21213. <exception name="IOException" type="java.io.IOException"/>
  21214. <doc>
  21215. <![CDATA[Make a call, passing <code>param</code>, to the IPC server defined by
  21216. <code>remoteId</code>, returning the value.
  21217. Throws exceptions if there are network problems or if the remote code
  21218. threw an exception.]]>
  21219. </doc>
  21220. </method>
  21221. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21222. abstract="false" native="false" synchronized="false"
  21223. static="false" final="false" visibility="public"
  21224. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  21225. Class, UserGroupInformation, Configuration)} instead">
  21226. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21227. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21228. <exception name="IOException" type="java.io.IOException"/>
  21229. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21230. <doc>
  21231. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  21232. Class, UserGroupInformation, Configuration)} instead]]>
  21233. </doc>
  21234. </method>
  21235. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21236. abstract="false" native="false" synchronized="false"
  21237. static="false" final="false" visibility="public"
  21238. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  21239. Class, UserGroupInformation, Configuration)} instead">
  21240. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21241. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21242. <param name="protocol" type="java.lang.Class"/>
  21243. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21244. <exception name="IOException" type="java.io.IOException"/>
  21245. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21246. <doc>
  21247. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  21248. Class, UserGroupInformation, Configuration)} instead]]>
  21249. </doc>
  21250. </method>
  21251. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21252. abstract="false" native="false" synchronized="false"
  21253. static="false" final="false" visibility="public"
  21254. deprecated="not deprecated">
  21255. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21256. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21257. <param name="protocol" type="java.lang.Class"/>
  21258. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21259. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21260. <exception name="IOException" type="java.io.IOException"/>
  21261. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21262. <doc>
  21263. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  21264. corresponding address. When all values are available, or have timed out
  21265. or errored, the collected results are returned in an array. The array
  21266. contains nulls for calls that timed out or errored.]]>
  21267. </doc>
  21268. </method>
  21269. <field name="LOG" type="org.apache.commons.logging.Log"
  21270. transient="false" volatile="false"
  21271. static="true" final="true" visibility="public"
  21272. deprecated="not deprecated">
  21273. </field>
  21274. <doc>
  21275. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  21276. parameter, and return a {@link Writable} as their value. A service runs on
  21277. a port and is defined by a parameter class and a value class.
  21278. @see Server]]>
  21279. </doc>
  21280. </class>
  21281. <!-- end class org.apache.hadoop.ipc.Client -->
  21282. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  21283. <class name="RemoteException" extends="java.io.IOException"
  21284. abstract="false"
  21285. static="false" final="false" visibility="public"
  21286. deprecated="not deprecated">
  21287. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  21288. static="false" final="false" visibility="public"
  21289. deprecated="not deprecated">
  21290. </constructor>
  21291. <method name="getClassName" return="java.lang.String"
  21292. abstract="false" native="false" synchronized="false"
  21293. static="false" final="false" visibility="public"
  21294. deprecated="not deprecated">
  21295. </method>
  21296. <method name="unwrapRemoteException" return="java.io.IOException"
  21297. abstract="false" native="false" synchronized="false"
  21298. static="false" final="false" visibility="public"
  21299. deprecated="not deprecated">
  21300. <param name="lookupTypes" type="java.lang.Class[]"/>
  21301. <doc>
  21302. <![CDATA[If this remote exception wraps up one of the lookupTypes
  21303. then return this exception.
  21304. <p>
  21305. Unwraps any IOException.
  21306. @param lookupTypes the desired exception class.
  21307. @return IOException, which is either the lookupClass exception or this.]]>
  21308. </doc>
  21309. </method>
  21310. <method name="unwrapRemoteException" return="java.io.IOException"
  21311. abstract="false" native="false" synchronized="false"
  21312. static="false" final="false" visibility="public"
  21313. deprecated="not deprecated">
  21314. <doc>
  21315. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  21316. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  21317. a <code>String</code> as a parameter.
  21318. Otherwise it returns this.
  21319. @return <code>Throwable]]>
  21320. </doc>
  21321. </method>
  21322. <method name="valueOf" return="org.apache.hadoop.ipc.RemoteException"
  21323. abstract="false" native="false" synchronized="false"
  21324. static="true" final="false" visibility="public"
  21325. deprecated="not deprecated">
  21326. <param name="attrs" type="org.xml.sax.Attributes"/>
  21327. <doc>
  21328. <![CDATA[Create RemoteException from attributes]]>
  21329. </doc>
  21330. </method>
  21331. </class>
  21332. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  21333. <!-- start class org.apache.hadoop.ipc.RPC -->
  21334. <class name="RPC" extends="java.lang.Object"
  21335. abstract="false"
  21336. static="false" final="false" visibility="public"
  21337. deprecated="not deprecated">
  21338. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21339. abstract="false" native="false" synchronized="false"
  21340. static="true" final="false" visibility="public"
  21341. deprecated="not deprecated">
  21342. <param name="protocol" type="java.lang.Class"/>
  21343. <param name="clientVersion" type="long"/>
  21344. <param name="addr" type="java.net.InetSocketAddress"/>
  21345. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21346. <exception name="IOException" type="java.io.IOException"/>
  21347. </method>
  21348. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21349. abstract="false" native="false" synchronized="false"
  21350. static="true" final="false" visibility="public"
  21351. deprecated="not deprecated">
  21352. <param name="protocol" type="java.lang.Class"/>
  21353. <param name="clientVersion" type="long"/>
  21354. <param name="addr" type="java.net.InetSocketAddress"/>
  21355. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21356. <param name="factory" type="javax.net.SocketFactory"/>
  21357. <exception name="IOException" type="java.io.IOException"/>
  21358. <doc>
  21359. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21360. talking to a server at the named address.]]>
  21361. </doc>
  21362. </method>
  21363. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21364. abstract="false" native="false" synchronized="false"
  21365. static="true" final="false" visibility="public"
  21366. deprecated="not deprecated">
  21367. <param name="protocol" type="java.lang.Class"/>
  21368. <param name="clientVersion" type="long"/>
  21369. <param name="addr" type="java.net.InetSocketAddress"/>
  21370. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21371. <param name="factory" type="javax.net.SocketFactory"/>
  21372. <param name="rpcTimeout" type="int"/>
  21373. <exception name="IOException" type="java.io.IOException"/>
  21374. <doc>
  21375. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21376. talking to a server at the named address.]]>
  21377. </doc>
  21378. </method>
  21379. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21380. abstract="false" native="false" synchronized="false"
  21381. static="true" final="false" visibility="public"
  21382. deprecated="not deprecated">
  21383. <param name="protocol" type="java.lang.Class"/>
  21384. <param name="clientVersion" type="long"/>
  21385. <param name="addr" type="java.net.InetSocketAddress"/>
  21386. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21387. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21388. <param name="factory" type="javax.net.SocketFactory"/>
  21389. <exception name="IOException" type="java.io.IOException"/>
  21390. <doc>
  21391. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21392. talking to a server at the named address.]]>
  21393. </doc>
  21394. </method>
  21395. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21396. abstract="false" native="false" synchronized="false"
  21397. static="true" final="false" visibility="public"
  21398. deprecated="not deprecated">
  21399. <param name="protocol" type="java.lang.Class"/>
  21400. <param name="clientVersion" type="long"/>
  21401. <param name="addr" type="java.net.InetSocketAddress"/>
  21402. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21403. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21404. <param name="factory" type="javax.net.SocketFactory"/>
  21405. <param name="rpcTimeout" type="int"/>
  21406. <exception name="IOException" type="java.io.IOException"/>
  21407. <doc>
  21408. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21409. talking to a server at the named address.]]>
  21410. </doc>
  21411. </method>
  21412. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21413. abstract="false" native="false" synchronized="false"
  21414. static="true" final="false" visibility="public"
  21415. deprecated="not deprecated">
  21416. <param name="protocol" type="java.lang.Class"/>
  21417. <param name="clientVersion" type="long"/>
  21418. <param name="addr" type="java.net.InetSocketAddress"/>
  21419. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21420. <exception name="IOException" type="java.io.IOException"/>
  21421. <doc>
  21422. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  21423. @param protocol
  21424. @param clientVersion
  21425. @param addr
  21426. @param conf
  21427. @return a proxy instance
  21428. @throws IOException]]>
  21429. </doc>
  21430. </method>
  21431. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21432. abstract="false" native="false" synchronized="false"
  21433. static="true" final="false" visibility="public"
  21434. deprecated="not deprecated">
  21435. <param name="protocol" type="java.lang.Class"/>
  21436. <param name="clientVersion" type="long"/>
  21437. <param name="addr" type="java.net.InetSocketAddress"/>
  21438. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21439. <param name="rpcTimeout" type="int"/>
  21440. <exception name="IOException" type="java.io.IOException"/>
  21441. </method>
  21442. <method name="stopProxy"
  21443. abstract="false" native="false" synchronized="false"
  21444. static="true" final="false" visibility="public"
  21445. deprecated="not deprecated">
  21446. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  21447. <doc>
  21448. <![CDATA[Stop this proxy and release its invoker's resource
  21449. @param proxy the proxy to be stopped]]>
  21450. </doc>
  21451. </method>
  21452. <method name="call" return="java.lang.Object[]"
  21453. abstract="false" native="false" synchronized="false"
  21454. static="true" final="false" visibility="public"
  21455. deprecated="Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead">
  21456. <param name="method" type="java.lang.reflect.Method"/>
  21457. <param name="params" type="java.lang.Object[][]"/>
  21458. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  21459. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21460. <exception name="IOException" type="java.io.IOException"/>
  21461. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21462. <doc>
  21463. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.
  21464. @deprecated Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead]]>
  21465. </doc>
  21466. </method>
  21467. <method name="call" return="java.lang.Object[]"
  21468. abstract="false" native="false" synchronized="false"
  21469. static="true" final="false" visibility="public"
  21470. deprecated="not deprecated">
  21471. <param name="method" type="java.lang.reflect.Method"/>
  21472. <param name="params" type="java.lang.Object[][]"/>
  21473. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  21474. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21475. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21476. <exception name="IOException" type="java.io.IOException"/>
  21477. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21478. <doc>
  21479. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  21480. </doc>
  21481. </method>
  21482. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  21483. abstract="false" native="false" synchronized="false"
  21484. static="true" final="false" visibility="public"
  21485. deprecated="not deprecated">
  21486. <param name="instance" type="java.lang.Object"/>
  21487. <param name="bindAddress" type="java.lang.String"/>
  21488. <param name="port" type="int"/>
  21489. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21490. <exception name="IOException" type="java.io.IOException"/>
  21491. <doc>
  21492. <![CDATA[Construct a server for a protocol implementation instance listening on a
  21493. port and address.]]>
  21494. </doc>
  21495. </method>
  21496. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  21497. abstract="false" native="false" synchronized="false"
  21498. static="true" final="false" visibility="public"
  21499. deprecated="not deprecated">
  21500. <param name="instance" type="java.lang.Object"/>
  21501. <param name="bindAddress" type="java.lang.String"/>
  21502. <param name="port" type="int"/>
  21503. <param name="numHandlers" type="int"/>
  21504. <param name="verbose" type="boolean"/>
  21505. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21506. <exception name="IOException" type="java.io.IOException"/>
  21507. <doc>
  21508. <![CDATA[Construct a server for a protocol implementation instance listening on a
  21509. port and address.]]>
  21510. </doc>
  21511. </method>
  21512. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  21513. abstract="false" native="false" synchronized="false"
  21514. static="true" final="false" visibility="public"
  21515. deprecated="not deprecated">
  21516. <param name="instance" type="java.lang.Object"/>
  21517. <param name="bindAddress" type="java.lang.String"/>
  21518. <param name="port" type="int"/>
  21519. <param name="numHandlers" type="int"/>
  21520. <param name="verbose" type="boolean"/>
  21521. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21522. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  21523. <exception name="IOException" type="java.io.IOException"/>
  21524. <doc>
  21525. <![CDATA[Construct a server for a protocol implementation instance listening on a
  21526. port and address, with a secret manager.]]>
  21527. </doc>
  21528. </method>
  21529. <doc>
  21530. <![CDATA[A simple RPC mechanism.
  21531. A <i>protocol</i> is a Java interface. All parameters and return types must
  21532. be one of:
  21533. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  21534. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  21535. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  21536. <li>a {@link String}; or</li>
  21537. <li>a {@link Writable}; or</li>
  21538. <li>an array of the above types</li> </ul>
  21539. All methods in the protocol should throw only IOException. No field data of
  21540. the protocol instance is transmitted.]]>
  21541. </doc>
  21542. </class>
  21543. <!-- end class org.apache.hadoop.ipc.RPC -->
  21544. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  21545. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  21546. abstract="false"
  21547. static="true" final="false" visibility="public"
  21548. deprecated="not deprecated">
  21549. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  21550. static="false" final="false" visibility="public"
  21551. deprecated="not deprecated">
  21552. <exception name="IOException" type="java.io.IOException"/>
  21553. <doc>
  21554. <![CDATA[Construct an RPC server.
  21555. @param instance the instance whose methods will be called
  21556. @param conf the configuration to use
  21557. @param bindAddress the address to bind on to listen for connection
  21558. @param port the port to listen for connections on]]>
  21559. </doc>
  21560. </constructor>
  21561. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int, int, boolean, org.apache.hadoop.security.token.SecretManager"
  21562. static="false" final="false" visibility="public"
  21563. deprecated="not deprecated">
  21564. <exception name="IOException" type="java.io.IOException"/>
  21565. <doc>
  21566. <![CDATA[Construct an RPC server.
  21567. @param instance the instance whose methods will be called
  21568. @param conf the configuration to use
  21569. @param bindAddress the address to bind on to listen for connection
  21570. @param port the port to listen for connections on
  21571. @param numHandlers the number of method handler threads to run
  21572. @param verbose whether each call should be logged]]>
  21573. </doc>
  21574. </constructor>
  21575. <method name="call" return="org.apache.hadoop.io.Writable"
  21576. abstract="false" native="false" synchronized="false"
  21577. static="false" final="false" visibility="public"
  21578. deprecated="not deprecated">
  21579. <param name="protocol" type="java.lang.Class"/>
  21580. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21581. <param name="receivedTime" type="long"/>
  21582. <exception name="IOException" type="java.io.IOException"/>
  21583. </method>
  21584. <doc>
  21585. <![CDATA[An RPC Server.]]>
  21586. </doc>
  21587. </class>
  21588. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  21589. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  21590. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  21591. abstract="false"
  21592. static="true" final="false" visibility="public"
  21593. deprecated="not deprecated">
  21594. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  21595. static="false" final="false" visibility="public"
  21596. deprecated="not deprecated">
  21597. <doc>
  21598. <![CDATA[Create a version mismatch exception
  21599. @param interfaceName the name of the protocol mismatch
  21600. @param clientVersion the client's version of the protocol
  21601. @param serverVersion the server's version of the protocol]]>
  21602. </doc>
  21603. </constructor>
  21604. <method name="getInterfaceName" return="java.lang.String"
  21605. abstract="false" native="false" synchronized="false"
  21606. static="false" final="false" visibility="public"
  21607. deprecated="not deprecated">
  21608. <doc>
  21609. <![CDATA[Get the interface name
  21610. @return the java class name
  21611. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  21612. </doc>
  21613. </method>
  21614. <method name="getClientVersion" return="long"
  21615. abstract="false" native="false" synchronized="false"
  21616. static="false" final="false" visibility="public"
  21617. deprecated="not deprecated">
  21618. <doc>
  21619. <![CDATA[Get the client's preferred version]]>
  21620. </doc>
  21621. </method>
  21622. <method name="getServerVersion" return="long"
  21623. abstract="false" native="false" synchronized="false"
  21624. static="false" final="false" visibility="public"
  21625. deprecated="not deprecated">
  21626. <doc>
  21627. <![CDATA[Get the server's agreed to version.]]>
  21628. </doc>
  21629. </method>
  21630. <doc>
  21631. <![CDATA[A version mismatch for the RPC protocol.]]>
  21632. </doc>
  21633. </class>
  21634. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  21635. <!-- start class org.apache.hadoop.ipc.Server -->
  21636. <class name="Server" extends="java.lang.Object"
  21637. abstract="true"
  21638. static="false" final="false" visibility="public"
  21639. deprecated="not deprecated">
  21640. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  21641. static="false" final="false" visibility="protected"
  21642. deprecated="not deprecated">
  21643. <exception name="IOException" type="java.io.IOException"/>
  21644. </constructor>
  21645. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  21646. static="false" final="false" visibility="protected"
  21647. deprecated="not deprecated">
  21648. <exception name="IOException" type="java.io.IOException"/>
  21649. </constructor>
  21650. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String, org.apache.hadoop.security.token.SecretManager"
  21651. static="false" final="false" visibility="protected"
  21652. deprecated="not deprecated">
  21653. <exception name="IOException" type="java.io.IOException"/>
  21654. <doc>
  21655. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  21656. be of the named class. The <code>handlerCount</handlerCount> determines
  21657. the number of handler threads that will be used to process calls.]]>
  21658. </doc>
  21659. </constructor>
  21660. <method name="get" return="org.apache.hadoop.ipc.Server"
  21661. abstract="false" native="false" synchronized="false"
  21662. static="true" final="false" visibility="public"
  21663. deprecated="not deprecated">
  21664. <doc>
  21665. <![CDATA[Returns the server instance called under or null. May be called under
  21666. {@link #call(Writable, long)} implementations, and under {@link Writable}
  21667. methods of paramters and return values. Permits applications to access
  21668. the server context.]]>
  21669. </doc>
  21670. </method>
  21671. <method name="getRemoteIp" return="java.net.InetAddress"
  21672. abstract="false" native="false" synchronized="false"
  21673. static="true" final="false" visibility="public"
  21674. deprecated="not deprecated">
  21675. <doc>
  21676. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  21677. Returns null incase of an error.]]>
  21678. </doc>
  21679. </method>
  21680. <method name="getRemoteAddress" return="java.lang.String"
  21681. abstract="false" native="false" synchronized="false"
  21682. static="true" final="false" visibility="public"
  21683. deprecated="not deprecated">
  21684. <doc>
  21685. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  21686. Returns null in case of an error.]]>
  21687. </doc>
  21688. </method>
  21689. <method name="bind"
  21690. abstract="false" native="false" synchronized="false"
  21691. static="true" final="false" visibility="public"
  21692. deprecated="not deprecated">
  21693. <param name="socket" type="java.net.ServerSocket"/>
  21694. <param name="address" type="java.net.InetSocketAddress"/>
  21695. <param name="backlog" type="int"/>
  21696. <exception name="IOException" type="java.io.IOException"/>
  21697. <doc>
  21698. <![CDATA[A convenience method to bind to a given address and report
  21699. better exceptions if the address is not a valid host.
  21700. @param socket the socket to bind
  21701. @param address the address to bind to
  21702. @param backlog the number of connections allowed in the queue
  21703. @throws BindException if the address can't be bound
  21704. @throws UnknownHostException if the address isn't a valid host name
  21705. @throws IOException other random errors from bind]]>
  21706. </doc>
  21707. </method>
  21708. <method name="getRpcMetrics" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  21709. abstract="false" native="false" synchronized="false"
  21710. static="false" final="false" visibility="public"
  21711. deprecated="not deprecated">
  21712. <doc>
  21713. <![CDATA[Returns a handle to the rpcMetrics (required in tests)
  21714. @return rpc metrics]]>
  21715. </doc>
  21716. </method>
  21717. <method name="setSocketSendBufSize"
  21718. abstract="false" native="false" synchronized="false"
  21719. static="false" final="false" visibility="public"
  21720. deprecated="not deprecated">
  21721. <param name="size" type="int"/>
  21722. <doc>
  21723. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  21724. </doc>
  21725. </method>
  21726. <method name="start"
  21727. abstract="false" native="false" synchronized="true"
  21728. static="false" final="false" visibility="public"
  21729. deprecated="not deprecated">
  21730. <doc>
  21731. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  21732. </doc>
  21733. </method>
  21734. <method name="stop"
  21735. abstract="false" native="false" synchronized="true"
  21736. static="false" final="false" visibility="public"
  21737. deprecated="not deprecated">
  21738. <doc>
  21739. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  21740. </doc>
  21741. </method>
  21742. <method name="join"
  21743. abstract="false" native="false" synchronized="true"
  21744. static="false" final="false" visibility="public"
  21745. deprecated="not deprecated">
  21746. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21747. <doc>
  21748. <![CDATA[Wait for the server to be stopped.
  21749. Does not wait for all subthreads to finish.
  21750. See {@link #stop()}.]]>
  21751. </doc>
  21752. </method>
  21753. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  21754. abstract="false" native="false" synchronized="true"
  21755. static="false" final="false" visibility="public"
  21756. deprecated="not deprecated">
  21757. <doc>
  21758. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  21759. @return the socket (ip+port) on which the RPC server is listening to.]]>
  21760. </doc>
  21761. </method>
  21762. <method name="call" return="org.apache.hadoop.io.Writable"
  21763. abstract="false" native="false" synchronized="false"
  21764. static="false" final="false" visibility="public"
  21765. deprecated="Use {@link #call(Class, Writable, long)} instead">
  21766. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21767. <param name="receiveTime" type="long"/>
  21768. <exception name="IOException" type="java.io.IOException"/>
  21769. <doc>
  21770. <![CDATA[Called for each call.
  21771. @deprecated Use {@link #call(Class, Writable, long)} instead]]>
  21772. </doc>
  21773. </method>
  21774. <method name="call" return="org.apache.hadoop.io.Writable"
  21775. abstract="true" native="false" synchronized="false"
  21776. static="false" final="false" visibility="public"
  21777. deprecated="not deprecated">
  21778. <param name="protocol" type="java.lang.Class"/>
  21779. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21780. <param name="receiveTime" type="long"/>
  21781. <exception name="IOException" type="java.io.IOException"/>
  21782. <doc>
  21783. <![CDATA[Called for each call.]]>
  21784. </doc>
  21785. </method>
  21786. <method name="authorize"
  21787. abstract="false" native="false" synchronized="false"
  21788. static="false" final="false" visibility="public"
  21789. deprecated="not deprecated">
  21790. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  21791. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  21792. <param name="addr" type="java.net.InetAddress"/>
  21793. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  21794. <doc>
  21795. <![CDATA[Authorize the incoming client connection.
  21796. @param user client user
  21797. @param connection incoming connection
  21798. @param addr InetAddress of incoming connection
  21799. @throws AuthorizationException when the client isn't authorized to talk the protocol]]>
  21800. </doc>
  21801. </method>
  21802. <method name="getNumOpenConnections" return="int"
  21803. abstract="false" native="false" synchronized="false"
  21804. static="false" final="false" visibility="public"
  21805. deprecated="not deprecated">
  21806. <doc>
  21807. <![CDATA[The number of open RPC conections
  21808. @return the number of open rpc connections]]>
  21809. </doc>
  21810. </method>
  21811. <method name="getCallQueueLen" return="int"
  21812. abstract="false" native="false" synchronized="false"
  21813. static="false" final="false" visibility="public"
  21814. deprecated="not deprecated">
  21815. <doc>
  21816. <![CDATA[The number of rpc calls in the queue.
  21817. @return The number of rpc calls in the queue.]]>
  21818. </doc>
  21819. </method>
  21820. <field name="HEADER" type="java.nio.ByteBuffer"
  21821. transient="false" volatile="false"
  21822. static="true" final="true" visibility="public"
  21823. deprecated="not deprecated">
  21824. <doc>
  21825. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  21826. </doc>
  21827. </field>
  21828. <field name="CURRENT_VERSION" type="byte"
  21829. transient="false" volatile="false"
  21830. static="true" final="true" visibility="public"
  21831. deprecated="not deprecated">
  21832. </field>
  21833. <field name="LOG" type="org.apache.commons.logging.Log"
  21834. transient="false" volatile="false"
  21835. static="true" final="true" visibility="public"
  21836. deprecated="not deprecated">
  21837. </field>
  21838. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  21839. transient="false" volatile="false"
  21840. static="false" final="false" visibility="protected"
  21841. deprecated="not deprecated">
  21842. </field>
  21843. <doc>
  21844. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  21845. parameter, and return a {@link Writable} as their value. A service runs on
  21846. a port and is defined by a parameter class and a value class.
  21847. @see Client]]>
  21848. </doc>
  21849. </class>
  21850. <!-- end class org.apache.hadoop.ipc.Server -->
  21851. <!-- start class org.apache.hadoop.ipc.Server.Connection -->
  21852. <class name="Server.Connection" extends="java.lang.Object"
  21853. abstract="false"
  21854. static="false" final="false" visibility="public"
  21855. deprecated="not deprecated">
  21856. <constructor name="Server.Connection" type="java.nio.channels.SelectionKey, java.nio.channels.SocketChannel, long"
  21857. static="false" final="false" visibility="public"
  21858. deprecated="not deprecated">
  21859. </constructor>
  21860. <method name="toString" return="java.lang.String"
  21861. abstract="false" native="false" synchronized="false"
  21862. static="false" final="false" visibility="public"
  21863. deprecated="not deprecated">
  21864. </method>
  21865. <method name="getHostAddress" return="java.lang.String"
  21866. abstract="false" native="false" synchronized="false"
  21867. static="false" final="false" visibility="public"
  21868. deprecated="not deprecated">
  21869. </method>
  21870. <method name="getHostInetAddress" return="java.net.InetAddress"
  21871. abstract="false" native="false" synchronized="false"
  21872. static="false" final="false" visibility="public"
  21873. deprecated="not deprecated">
  21874. </method>
  21875. <method name="setLastContact"
  21876. abstract="false" native="false" synchronized="false"
  21877. static="false" final="false" visibility="public"
  21878. deprecated="not deprecated">
  21879. <param name="lastContact" type="long"/>
  21880. </method>
  21881. <method name="getLastContact" return="long"
  21882. abstract="false" native="false" synchronized="false"
  21883. static="false" final="false" visibility="public"
  21884. deprecated="not deprecated">
  21885. </method>
  21886. <method name="readAndProcess" return="int"
  21887. abstract="false" native="false" synchronized="false"
  21888. static="false" final="false" visibility="public"
  21889. deprecated="not deprecated">
  21890. <exception name="IOException" type="java.io.IOException"/>
  21891. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21892. </method>
  21893. <field name="attemptingUser" type="org.apache.hadoop.security.UserGroupInformation"
  21894. transient="false" volatile="false"
  21895. static="false" final="false" visibility="public"
  21896. deprecated="not deprecated">
  21897. </field>
  21898. <doc>
  21899. <![CDATA[Reads calls from a connection and queues them for handling.]]>
  21900. </doc>
  21901. </class>
  21902. <!-- end class org.apache.hadoop.ipc.Server.Connection -->
  21903. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  21904. <interface name="VersionedProtocol" abstract="true"
  21905. static="false" final="false" visibility="public"
  21906. deprecated="not deprecated">
  21907. <method name="getProtocolVersion" return="long"
  21908. abstract="false" native="false" synchronized="false"
  21909. static="false" final="false" visibility="public"
  21910. deprecated="not deprecated">
  21911. <param name="protocol" type="java.lang.String"/>
  21912. <param name="clientVersion" type="long"/>
  21913. <exception name="IOException" type="java.io.IOException"/>
  21914. <doc>
  21915. <![CDATA[Return protocol version corresponding to protocol interface.
  21916. @param protocol The classname of the protocol interface
  21917. @param clientVersion The version of the protocol that the client speaks
  21918. @return the version that the server will speak]]>
  21919. </doc>
  21920. </method>
  21921. <doc>
  21922. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  21923. Subclasses of this interface are also supposed to have
  21924. a static final long versionID field.]]>
  21925. </doc>
  21926. </interface>
  21927. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  21928. </package>
  21929. <package name="org.apache.hadoop.ipc.metrics">
  21930. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  21931. <class name="RpcInstrumentation" extends="java.lang.Object"
  21932. abstract="false"
  21933. static="false" final="false" visibility="public"
  21934. deprecated="not deprecated">
  21935. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  21936. <method name="getMetrics"
  21937. abstract="false" native="false" synchronized="false"
  21938. static="false" final="false" visibility="public"
  21939. deprecated="not deprecated">
  21940. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  21941. <param name="all" type="boolean"/>
  21942. </method>
  21943. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  21944. abstract="false" native="false" synchronized="false"
  21945. static="true" final="false" visibility="public"
  21946. deprecated="not deprecated">
  21947. <param name="serverName" type="java.lang.String"/>
  21948. <param name="port" type="int"/>
  21949. <doc>
  21950. <![CDATA[Create an RPC instrumentation object
  21951. @param serverName name of the server
  21952. @param port the RPC port
  21953. @return the instrumentation object]]>
  21954. </doc>
  21955. </method>
  21956. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  21957. abstract="false" native="false" synchronized="false"
  21958. static="true" final="false" visibility="public"
  21959. deprecated="not deprecated">
  21960. <param name="serverName" type="java.lang.String"/>
  21961. <param name="port" type="int"/>
  21962. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  21963. <doc>
  21964. <![CDATA[Create an RPC instrumentation object
  21965. Mostly useful for testing.
  21966. @param serverName name of the server
  21967. @param port the RPC port
  21968. @param ms the metrics system object
  21969. @return the instrumentation object]]>
  21970. </doc>
  21971. </method>
  21972. <method name="detailed" return="org.apache.hadoop.metrics2.MetricsSource"
  21973. abstract="false" native="false" synchronized="false"
  21974. static="false" final="false" visibility="public"
  21975. deprecated="not deprecated">
  21976. <doc>
  21977. <![CDATA[@return the detailed (per call) metrics source for RPC]]>
  21978. </doc>
  21979. </method>
  21980. <method name="incrAuthenticationFailures"
  21981. abstract="false" native="false" synchronized="false"
  21982. static="false" final="false" visibility="public"
  21983. deprecated="not deprecated">
  21984. <doc>
  21985. <![CDATA[One authentication failure event]]>
  21986. </doc>
  21987. </method>
  21988. <method name="incrAuthenticationSuccesses"
  21989. abstract="false" native="false" synchronized="false"
  21990. static="false" final="false" visibility="public"
  21991. deprecated="not deprecated">
  21992. <doc>
  21993. <![CDATA[One authentication success event]]>
  21994. </doc>
  21995. </method>
  21996. <method name="incrAuthorizationSuccesses"
  21997. abstract="false" native="false" synchronized="false"
  21998. static="false" final="false" visibility="public"
  21999. deprecated="not deprecated">
  22000. <doc>
  22001. <![CDATA[One authorization success event]]>
  22002. </doc>
  22003. </method>
  22004. <method name="incrAuthorizationFailures"
  22005. abstract="false" native="false" synchronized="false"
  22006. static="false" final="false" visibility="public"
  22007. deprecated="not deprecated">
  22008. <doc>
  22009. <![CDATA[One authorization failure event]]>
  22010. </doc>
  22011. </method>
  22012. <method name="shutdown"
  22013. abstract="false" native="false" synchronized="false"
  22014. static="false" final="false" visibility="public"
  22015. deprecated="not deprecated">
  22016. <doc>
  22017. <![CDATA[Shutdown the instrumentation for the process]]>
  22018. </doc>
  22019. </method>
  22020. <method name="incrSentBytes"
  22021. abstract="false" native="false" synchronized="false"
  22022. static="false" final="false" visibility="public"
  22023. deprecated="not deprecated">
  22024. <param name="count" type="int"/>
  22025. <doc>
  22026. <![CDATA[Increment sent bytes by count
  22027. @param count to increment]]>
  22028. </doc>
  22029. </method>
  22030. <method name="incrReceivedBytes"
  22031. abstract="false" native="false" synchronized="false"
  22032. static="false" final="false" visibility="public"
  22033. deprecated="not deprecated">
  22034. <param name="count" type="int"/>
  22035. <doc>
  22036. <![CDATA[Increment received bytes by count
  22037. @param count to increment]]>
  22038. </doc>
  22039. </method>
  22040. <method name="addRpcQueueTime"
  22041. abstract="false" native="false" synchronized="false"
  22042. static="false" final="false" visibility="public"
  22043. deprecated="not deprecated">
  22044. <param name="qTime" type="int"/>
  22045. <doc>
  22046. <![CDATA[Add an RPC queue time sample
  22047. @param qTime]]>
  22048. </doc>
  22049. </method>
  22050. <method name="addRpcProcessingTime"
  22051. abstract="false" native="false" synchronized="false"
  22052. static="false" final="false" visibility="public"
  22053. deprecated="not deprecated">
  22054. <param name="processingTime" type="int"/>
  22055. <doc>
  22056. <![CDATA[Add an RPC processing time sample
  22057. @param processingTime]]>
  22058. </doc>
  22059. </method>
  22060. <method name="addRpcProcessingTime"
  22061. abstract="false" native="false" synchronized="false"
  22062. static="false" final="false" visibility="public"
  22063. deprecated="not deprecated">
  22064. <param name="methodName" type="java.lang.String"/>
  22065. <param name="processingTime" type="int"/>
  22066. <doc>
  22067. <![CDATA[Add an RPC processing time sample for a particular RPC method
  22068. @param methodName method name of the RPC
  22069. @param processingTime elapsed processing time of the RPC]]>
  22070. </doc>
  22071. </method>
  22072. <doc>
  22073. <![CDATA[The RPC metrics instrumentation]]>
  22074. </doc>
  22075. </class>
  22076. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  22077. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  22078. <class name="RpcInstrumentation.Detailed" extends="org.apache.hadoop.metrics2.lib.AbstractMetricsSource"
  22079. abstract="false"
  22080. static="true" final="false" visibility="public"
  22081. deprecated="not deprecated">
  22082. <method name="addRpcProcessingTime"
  22083. abstract="false" native="false" synchronized="true"
  22084. static="false" final="false" visibility="public"
  22085. deprecated="not deprecated">
  22086. <param name="methodName" type="java.lang.String"/>
  22087. <param name="processingTime" type="int"/>
  22088. </method>
  22089. <doc>
  22090. <![CDATA[Use a separate source for detailed (per call) RPC metrics for
  22091. easy and efficient filtering]]>
  22092. </doc>
  22093. </class>
  22094. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  22095. </package>
  22096. <package name="org.apache.hadoop.jmx">
  22097. <!-- start class org.apache.hadoop.jmx.JMXJsonServlet -->
  22098. <class name="JMXJsonServlet" extends="javax.servlet.http.HttpServlet"
  22099. abstract="false"
  22100. static="false" final="false" visibility="public"
  22101. deprecated="not deprecated">
  22102. <constructor name="JMXJsonServlet"
  22103. static="false" final="false" visibility="public"
  22104. deprecated="not deprecated">
  22105. </constructor>
  22106. <method name="init"
  22107. abstract="false" native="false" synchronized="false"
  22108. static="false" final="false" visibility="public"
  22109. deprecated="not deprecated">
  22110. <exception name="ServletException" type="javax.servlet.ServletException"/>
  22111. <doc>
  22112. <![CDATA[Initialize this servlet.]]>
  22113. </doc>
  22114. </method>
  22115. <method name="doGet"
  22116. abstract="false" native="false" synchronized="false"
  22117. static="false" final="false" visibility="public"
  22118. deprecated="not deprecated">
  22119. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  22120. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  22121. <doc>
  22122. <![CDATA[Process a GET request for the specified resource.
  22123. @param request
  22124. The servlet request we are processing
  22125. @param response
  22126. The servlet response we are creating]]>
  22127. </doc>
  22128. </method>
  22129. <field name="mBeanServer" type="javax.management.MBeanServer"
  22130. transient="true" volatile="false"
  22131. static="false" final="false" visibility="protected"
  22132. deprecated="not deprecated">
  22133. <doc>
  22134. <![CDATA[MBean server.]]>
  22135. </doc>
  22136. </field>
  22137. <doc>
  22138. <![CDATA[Provides Read only web access to JMX.
  22139. <p>
  22140. This servlet generally will be placed under the /jmx URL for each
  22141. HttpServer. It provides read only
  22142. access to JMX metrics. The optional <code>qry</code> parameter
  22143. may be used to query only a subset of the JMX Beans. This query
  22144. functionality is provided through the
  22145. {@link MBeanServer#queryNames(ObjectName, javax.management.QueryExp)}
  22146. method.
  22147. <p>
  22148. For example <code>http://.../jmx?qry=Hadoop:*</code> will return
  22149. all hadoop metrics exposed through JMX.
  22150. <p>
  22151. If the <code>qry</code> parameter is not formatted correctly then a
  22152. 400 BAD REQUEST http response code will be returned.
  22153. <p>
  22154. The return format is JSON and in the form
  22155. <p>
  22156. <code><pre>
  22157. {
  22158. "beans" : [
  22159. {
  22160. "name":"bean-name"
  22161. ...
  22162. }
  22163. ]
  22164. }
  22165. </pre></code>
  22166. <p>
  22167. The servlet attempts to convert the the JMXBeans into JSON. Each
  22168. bean's attributes will be converted to a JSON object member.
  22169. If the attribute is a boolean, a number, a string, or an array
  22170. it will be converted to the JSON equivalent.
  22171. If the value is a {@link CompositeData} then it will be converted
  22172. to a JSON object with the keys as the name of the JSON member and
  22173. the value is converted following these same rules.
  22174. If the value is a {@link TabularData} then it will be converted
  22175. to an array of the {@link CompositeData} elements that it contains.
  22176. All other objects will be converted to a string and output as such.
  22177. The bean's name and modelerType will be returned for all beans.]]>
  22178. </doc>
  22179. </class>
  22180. <!-- end class org.apache.hadoop.jmx.JMXJsonServlet -->
  22181. </package>
  22182. <package name="org.apache.hadoop.log">
  22183. <!-- start class org.apache.hadoop.log.EventCounter -->
  22184. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  22185. abstract="false"
  22186. static="false" final="false" visibility="public"
  22187. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  22188. <constructor name="EventCounter"
  22189. static="false" final="false" visibility="public"
  22190. deprecated="not deprecated">
  22191. </constructor>
  22192. <doc>
  22193. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  22194. fatal, error and warn. The class name is used in log4j.properties
  22195. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  22196. </doc>
  22197. </class>
  22198. <!-- end class org.apache.hadoop.log.EventCounter -->
  22199. <!-- start class org.apache.hadoop.log.LogLevel -->
  22200. <class name="LogLevel" extends="java.lang.Object"
  22201. abstract="false"
  22202. static="false" final="false" visibility="public"
  22203. deprecated="not deprecated">
  22204. <constructor name="LogLevel"
  22205. static="false" final="false" visibility="public"
  22206. deprecated="not deprecated">
  22207. </constructor>
  22208. <method name="main"
  22209. abstract="false" native="false" synchronized="false"
  22210. static="true" final="false" visibility="public"
  22211. deprecated="not deprecated">
  22212. <param name="args" type="java.lang.String[]"/>
  22213. <doc>
  22214. <![CDATA[A command line implementation]]>
  22215. </doc>
  22216. </method>
  22217. <field name="USAGES" type="java.lang.String"
  22218. transient="false" volatile="false"
  22219. static="true" final="true" visibility="public"
  22220. deprecated="not deprecated">
  22221. </field>
  22222. <doc>
  22223. <![CDATA[Change log level in runtime.]]>
  22224. </doc>
  22225. </class>
  22226. <!-- end class org.apache.hadoop.log.LogLevel -->
  22227. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  22228. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  22229. abstract="false"
  22230. static="true" final="false" visibility="public"
  22231. deprecated="not deprecated">
  22232. <constructor name="LogLevel.Servlet"
  22233. static="false" final="false" visibility="public"
  22234. deprecated="not deprecated">
  22235. </constructor>
  22236. <method name="doGet"
  22237. abstract="false" native="false" synchronized="false"
  22238. static="false" final="false" visibility="public"
  22239. deprecated="not deprecated">
  22240. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  22241. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  22242. <exception name="ServletException" type="javax.servlet.ServletException"/>
  22243. <exception name="IOException" type="java.io.IOException"/>
  22244. </method>
  22245. <doc>
  22246. <![CDATA[A servlet implementation]]>
  22247. </doc>
  22248. </class>
  22249. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  22250. </package>
  22251. <package name="org.apache.hadoop.log.metrics">
  22252. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  22253. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  22254. abstract="false"
  22255. static="false" final="false" visibility="public"
  22256. deprecated="not deprecated">
  22257. <constructor name="EventCounter"
  22258. static="false" final="false" visibility="public"
  22259. deprecated="not deprecated">
  22260. </constructor>
  22261. <method name="getFatal" return="long"
  22262. abstract="false" native="false" synchronized="false"
  22263. static="true" final="false" visibility="public"
  22264. deprecated="not deprecated">
  22265. </method>
  22266. <method name="getError" return="long"
  22267. abstract="false" native="false" synchronized="false"
  22268. static="true" final="false" visibility="public"
  22269. deprecated="not deprecated">
  22270. </method>
  22271. <method name="getWarn" return="long"
  22272. abstract="false" native="false" synchronized="false"
  22273. static="true" final="false" visibility="public"
  22274. deprecated="not deprecated">
  22275. </method>
  22276. <method name="getInfo" return="long"
  22277. abstract="false" native="false" synchronized="false"
  22278. static="true" final="false" visibility="public"
  22279. deprecated="not deprecated">
  22280. </method>
  22281. <method name="append"
  22282. abstract="false" native="false" synchronized="false"
  22283. static="false" final="false" visibility="public"
  22284. deprecated="not deprecated">
  22285. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  22286. </method>
  22287. <method name="close"
  22288. abstract="false" native="false" synchronized="false"
  22289. static="false" final="false" visibility="public"
  22290. deprecated="not deprecated">
  22291. </method>
  22292. <method name="requiresLayout" return="boolean"
  22293. abstract="false" native="false" synchronized="false"
  22294. static="false" final="false" visibility="public"
  22295. deprecated="not deprecated">
  22296. </method>
  22297. <doc>
  22298. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  22299. fatal, error and warn. The class name is used in log4j.properties]]>
  22300. </doc>
  22301. </class>
  22302. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  22303. </package>
  22304. <package name="org.apache.hadoop.metrics">
  22305. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  22306. <class name="ContextFactory" extends="java.lang.Object"
  22307. abstract="false"
  22308. static="false" final="false" visibility="public"
  22309. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22310. <constructor name="ContextFactory"
  22311. static="false" final="false" visibility="protected"
  22312. deprecated="not deprecated">
  22313. <doc>
  22314. <![CDATA[Creates a new instance of ContextFactory]]>
  22315. </doc>
  22316. </constructor>
  22317. <method name="getAttribute" return="java.lang.Object"
  22318. abstract="false" native="false" synchronized="false"
  22319. static="false" final="false" visibility="public"
  22320. deprecated="not deprecated">
  22321. <param name="attributeName" type="java.lang.String"/>
  22322. <doc>
  22323. <![CDATA[Returns the value of the named attribute, or null if there is no
  22324. attribute of that name.
  22325. @param attributeName the attribute name
  22326. @return the attribute value]]>
  22327. </doc>
  22328. </method>
  22329. <method name="getAttributeNames" return="java.lang.String[]"
  22330. abstract="false" native="false" synchronized="false"
  22331. static="false" final="false" visibility="public"
  22332. deprecated="not deprecated">
  22333. <doc>
  22334. <![CDATA[Returns the names of all the factory's attributes.
  22335. @return the attribute names]]>
  22336. </doc>
  22337. </method>
  22338. <method name="setAttribute"
  22339. abstract="false" native="false" synchronized="false"
  22340. static="false" final="false" visibility="public"
  22341. deprecated="not deprecated">
  22342. <param name="attributeName" type="java.lang.String"/>
  22343. <param name="value" type="java.lang.Object"/>
  22344. <doc>
  22345. <![CDATA[Sets the named factory attribute to the specified value, creating it
  22346. if it did not already exist. If the value is null, this is the same as
  22347. calling removeAttribute.
  22348. @param attributeName the attribute name
  22349. @param value the new attribute value]]>
  22350. </doc>
  22351. </method>
  22352. <method name="removeAttribute"
  22353. abstract="false" native="false" synchronized="false"
  22354. static="false" final="false" visibility="public"
  22355. deprecated="not deprecated">
  22356. <param name="attributeName" type="java.lang.String"/>
  22357. <doc>
  22358. <![CDATA[Removes the named attribute if it exists.
  22359. @param attributeName the attribute name]]>
  22360. </doc>
  22361. </method>
  22362. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  22363. abstract="false" native="false" synchronized="true"
  22364. static="false" final="false" visibility="public"
  22365. deprecated="not deprecated">
  22366. <param name="refName" type="java.lang.String"/>
  22367. <param name="contextName" type="java.lang.String"/>
  22368. <exception name="IOException" type="java.io.IOException"/>
  22369. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  22370. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  22371. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  22372. <doc>
  22373. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  22374. using the factory's current configuration attributes. <p/>
  22375. When constructing the instance, if the factory property
  22376. <i>contextName</i>.class</code> exists,
  22377. its value is taken to be the name of the class to instantiate. Otherwise,
  22378. the default is to create an instance of
  22379. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  22380. dummy "no-op" context which will cause all metric data to be discarded.
  22381. @param contextName the name of the context
  22382. @return the named MetricsContext]]>
  22383. </doc>
  22384. </method>
  22385. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  22386. abstract="false" native="false" synchronized="true"
  22387. static="false" final="false" visibility="public"
  22388. deprecated="not deprecated">
  22389. <param name="contextName" type="java.lang.String"/>
  22390. <exception name="IOException" type="java.io.IOException"/>
  22391. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  22392. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  22393. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  22394. </method>
  22395. <method name="getAllContexts" return="java.util.Collection"
  22396. abstract="false" native="false" synchronized="true"
  22397. static="false" final="false" visibility="public"
  22398. deprecated="not deprecated">
  22399. <doc>
  22400. <![CDATA[Returns all MetricsContexts built by this factory.]]>
  22401. </doc>
  22402. </method>
  22403. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  22404. abstract="false" native="false" synchronized="true"
  22405. static="true" final="false" visibility="public"
  22406. deprecated="not deprecated">
  22407. <param name="contextName" type="java.lang.String"/>
  22408. <doc>
  22409. <![CDATA[Returns a "null" context - one which does nothing.]]>
  22410. </doc>
  22411. </method>
  22412. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  22413. abstract="false" native="false" synchronized="true"
  22414. static="true" final="false" visibility="public"
  22415. deprecated="not deprecated">
  22416. <exception name="IOException" type="java.io.IOException"/>
  22417. <doc>
  22418. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  22419. necessary. <p/>
  22420. When the instance is constructed, this method checks if the file
  22421. <code>hadoop-metrics.properties</code> exists on the class path. If it
  22422. exists, it must be in the format defined by java.util.Properties, and all
  22423. the properties in the file are set as attributes on the newly created
  22424. ContextFactory instance.
  22425. @return the singleton ContextFactory instance]]>
  22426. </doc>
  22427. </method>
  22428. <doc>
  22429. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  22430. of this class, use the static <code>getFactory()</code> method.
  22431. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  22432. </doc>
  22433. </class>
  22434. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  22435. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  22436. <interface name="MetricsContext" abstract="true"
  22437. static="false" final="false" visibility="public"
  22438. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22439. <method name="init"
  22440. abstract="false" native="false" synchronized="false"
  22441. static="false" final="false" visibility="public"
  22442. deprecated="not deprecated">
  22443. <param name="contextName" type="java.lang.String"/>
  22444. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  22445. <doc>
  22446. <![CDATA[Initialize this context.
  22447. @param contextName The given name for this context
  22448. @param factory The creator of this context]]>
  22449. </doc>
  22450. </method>
  22451. <method name="getContextName" return="java.lang.String"
  22452. abstract="false" native="false" synchronized="false"
  22453. static="false" final="false" visibility="public"
  22454. deprecated="not deprecated">
  22455. <doc>
  22456. <![CDATA[Returns the context name.
  22457. @return the context name]]>
  22458. </doc>
  22459. </method>
  22460. <method name="startMonitoring"
  22461. abstract="false" native="false" synchronized="false"
  22462. static="false" final="false" visibility="public"
  22463. deprecated="not deprecated">
  22464. <exception name="IOException" type="java.io.IOException"/>
  22465. <doc>
  22466. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  22467. updated.]]>
  22468. </doc>
  22469. </method>
  22470. <method name="stopMonitoring"
  22471. abstract="false" native="false" synchronized="false"
  22472. static="false" final="false" visibility="public"
  22473. deprecated="not deprecated">
  22474. <doc>
  22475. <![CDATA[Stops monitoring. This does not free any data that the implementation
  22476. may have buffered for sending at the next timer event. It
  22477. is OK to call <code>startMonitoring()</code> again after calling
  22478. this.
  22479. @see #close()]]>
  22480. </doc>
  22481. </method>
  22482. <method name="isMonitoring" return="boolean"
  22483. abstract="false" native="false" synchronized="false"
  22484. static="false" final="false" visibility="public"
  22485. deprecated="not deprecated">
  22486. <doc>
  22487. <![CDATA[Returns true if monitoring is currently in progress.]]>
  22488. </doc>
  22489. </method>
  22490. <method name="close"
  22491. abstract="false" native="false" synchronized="false"
  22492. static="false" final="false" visibility="public"
  22493. deprecated="not deprecated">
  22494. <doc>
  22495. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  22496. object to its initial state.]]>
  22497. </doc>
  22498. </method>
  22499. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  22500. abstract="false" native="false" synchronized="false"
  22501. static="false" final="false" visibility="public"
  22502. deprecated="not deprecated">
  22503. <param name="recordName" type="java.lang.String"/>
  22504. <doc>
  22505. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  22506. Throws an exception if the metrics implementation is configured with a fixed
  22507. set of record names and <code>recordName</code> is not in that set.
  22508. @param recordName the name of the record
  22509. @throws MetricsException if recordName conflicts with configuration data]]>
  22510. </doc>
  22511. </method>
  22512. <method name="registerUpdater"
  22513. abstract="false" native="false" synchronized="false"
  22514. static="false" final="false" visibility="public"
  22515. deprecated="not deprecated">
  22516. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  22517. <doc>
  22518. <![CDATA[Registers a callback to be called at regular time intervals, as
  22519. determined by the implementation-class specific configuration.
  22520. @param updater object to be run periodically; it should updated
  22521. some metrics records and then return]]>
  22522. </doc>
  22523. </method>
  22524. <method name="unregisterUpdater"
  22525. abstract="false" native="false" synchronized="false"
  22526. static="false" final="false" visibility="public"
  22527. deprecated="not deprecated">
  22528. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  22529. <doc>
  22530. <![CDATA[Removes a callback, if it exists.
  22531. @param updater object to be removed from the callback list]]>
  22532. </doc>
  22533. </method>
  22534. <method name="getPeriod" return="int"
  22535. abstract="false" native="false" synchronized="false"
  22536. static="false" final="false" visibility="public"
  22537. deprecated="not deprecated">
  22538. <doc>
  22539. <![CDATA[Returns the timer period.]]>
  22540. </doc>
  22541. </method>
  22542. <method name="getAllRecords" return="java.util.Map"
  22543. abstract="false" native="false" synchronized="false"
  22544. static="false" final="false" visibility="public"
  22545. deprecated="not deprecated">
  22546. <doc>
  22547. <![CDATA[Retrieves all the records managed by this MetricsContext.
  22548. Useful for monitoring systems that are polling-based.
  22549. @return A non-null map from all record names to the records managed.]]>
  22550. </doc>
  22551. </method>
  22552. <field name="DEFAULT_PERIOD" type="int"
  22553. transient="false" volatile="false"
  22554. static="true" final="true" visibility="public"
  22555. deprecated="not deprecated">
  22556. <doc>
  22557. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  22558. </doc>
  22559. </field>
  22560. <doc>
  22561. <![CDATA[The main interface to the metrics package.
  22562. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  22563. </doc>
  22564. </interface>
  22565. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  22566. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  22567. <class name="MetricsException" extends="java.lang.RuntimeException"
  22568. abstract="false"
  22569. static="false" final="false" visibility="public"
  22570. deprecated="in favor of {@link org.apache.hadoop.metrics2.MetricsException}.">
  22571. <constructor name="MetricsException"
  22572. static="false" final="false" visibility="public"
  22573. deprecated="not deprecated">
  22574. <doc>
  22575. <![CDATA[Creates a new instance of MetricsException]]>
  22576. </doc>
  22577. </constructor>
  22578. <constructor name="MetricsException" type="java.lang.String"
  22579. static="false" final="false" visibility="public"
  22580. deprecated="not deprecated">
  22581. <doc>
  22582. <![CDATA[Creates a new instance of MetricsException
  22583. @param message an error message]]>
  22584. </doc>
  22585. </constructor>
  22586. <doc>
  22587. <![CDATA[General-purpose, unchecked metrics exception.
  22588. @deprecated in favor of {@link org.apache.hadoop.metrics2.MetricsException}.]]>
  22589. </doc>
  22590. </class>
  22591. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  22592. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  22593. <interface name="MetricsRecord" abstract="true"
  22594. static="false" final="false" visibility="public"
  22595. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22596. <method name="getRecordName" return="java.lang.String"
  22597. abstract="false" native="false" synchronized="false"
  22598. static="false" final="false" visibility="public"
  22599. deprecated="not deprecated">
  22600. <doc>
  22601. <![CDATA[Returns the record name.
  22602. @return the record name]]>
  22603. </doc>
  22604. </method>
  22605. <method name="setTag"
  22606. abstract="false" native="false" synchronized="false"
  22607. static="false" final="false" visibility="public"
  22608. deprecated="not deprecated">
  22609. <param name="tagName" type="java.lang.String"/>
  22610. <param name="tagValue" type="java.lang.String"/>
  22611. <doc>
  22612. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  22613. which is treated the same as an empty String.
  22614. @param tagName name of the tag
  22615. @param tagValue new value of the tag
  22616. @throws MetricsException if the tagName conflicts with the configuration]]>
  22617. </doc>
  22618. </method>
  22619. <method name="setTag"
  22620. abstract="false" native="false" synchronized="false"
  22621. static="false" final="false" visibility="public"
  22622. deprecated="not deprecated">
  22623. <param name="tagName" type="java.lang.String"/>
  22624. <param name="tagValue" type="int"/>
  22625. <doc>
  22626. <![CDATA[Sets the named tag to the specified value.
  22627. @param tagName name of the tag
  22628. @param tagValue new value of the tag
  22629. @throws MetricsException if the tagName conflicts with the configuration]]>
  22630. </doc>
  22631. </method>
  22632. <method name="setTag"
  22633. abstract="false" native="false" synchronized="false"
  22634. static="false" final="false" visibility="public"
  22635. deprecated="not deprecated">
  22636. <param name="tagName" type="java.lang.String"/>
  22637. <param name="tagValue" type="long"/>
  22638. <doc>
  22639. <![CDATA[Sets the named tag to the specified value.
  22640. @param tagName name of the tag
  22641. @param tagValue new value of the tag
  22642. @throws MetricsException if the tagName conflicts with the configuration]]>
  22643. </doc>
  22644. </method>
  22645. <method name="setTag"
  22646. abstract="false" native="false" synchronized="false"
  22647. static="false" final="false" visibility="public"
  22648. deprecated="not deprecated">
  22649. <param name="tagName" type="java.lang.String"/>
  22650. <param name="tagValue" type="short"/>
  22651. <doc>
  22652. <![CDATA[Sets the named tag to the specified value.
  22653. @param tagName name of the tag
  22654. @param tagValue new value of the tag
  22655. @throws MetricsException if the tagName conflicts with the configuration]]>
  22656. </doc>
  22657. </method>
  22658. <method name="setTag"
  22659. abstract="false" native="false" synchronized="false"
  22660. static="false" final="false" visibility="public"
  22661. deprecated="not deprecated">
  22662. <param name="tagName" type="java.lang.String"/>
  22663. <param name="tagValue" type="byte"/>
  22664. <doc>
  22665. <![CDATA[Sets the named tag to the specified value.
  22666. @param tagName name of the tag
  22667. @param tagValue new value of the tag
  22668. @throws MetricsException if the tagName conflicts with the configuration]]>
  22669. </doc>
  22670. </method>
  22671. <method name="removeTag"
  22672. abstract="false" native="false" synchronized="false"
  22673. static="false" final="false" visibility="public"
  22674. deprecated="not deprecated">
  22675. <param name="tagName" type="java.lang.String"/>
  22676. <doc>
  22677. <![CDATA[Removes any tag of the specified name.
  22678. @param tagName name of a tag]]>
  22679. </doc>
  22680. </method>
  22681. <method name="setMetric"
  22682. abstract="false" native="false" synchronized="false"
  22683. static="false" final="false" visibility="public"
  22684. deprecated="not deprecated">
  22685. <param name="metricName" type="java.lang.String"/>
  22686. <param name="metricValue" type="int"/>
  22687. <doc>
  22688. <![CDATA[Sets the named metric to the specified value.
  22689. @param metricName name of the metric
  22690. @param metricValue new value of the metric
  22691. @throws MetricsException if the metricName or the type of the metricValue
  22692. conflicts with the configuration]]>
  22693. </doc>
  22694. </method>
  22695. <method name="setMetric"
  22696. abstract="false" native="false" synchronized="false"
  22697. static="false" final="false" visibility="public"
  22698. deprecated="not deprecated">
  22699. <param name="metricName" type="java.lang.String"/>
  22700. <param name="metricValue" type="long"/>
  22701. <doc>
  22702. <![CDATA[Sets the named metric to the specified value.
  22703. @param metricName name of the metric
  22704. @param metricValue new value of the metric
  22705. @throws MetricsException if the metricName or the type of the metricValue
  22706. conflicts with the configuration]]>
  22707. </doc>
  22708. </method>
  22709. <method name="setMetric"
  22710. abstract="false" native="false" synchronized="false"
  22711. static="false" final="false" visibility="public"
  22712. deprecated="not deprecated">
  22713. <param name="metricName" type="java.lang.String"/>
  22714. <param name="metricValue" type="short"/>
  22715. <doc>
  22716. <![CDATA[Sets the named metric to the specified value.
  22717. @param metricName name of the metric
  22718. @param metricValue new value of the metric
  22719. @throws MetricsException if the metricName or the type of the metricValue
  22720. conflicts with the configuration]]>
  22721. </doc>
  22722. </method>
  22723. <method name="setMetric"
  22724. abstract="false" native="false" synchronized="false"
  22725. static="false" final="false" visibility="public"
  22726. deprecated="not deprecated">
  22727. <param name="metricName" type="java.lang.String"/>
  22728. <param name="metricValue" type="byte"/>
  22729. <doc>
  22730. <![CDATA[Sets the named metric to the specified value.
  22731. @param metricName name of the metric
  22732. @param metricValue new value of the metric
  22733. @throws MetricsException if the metricName or the type of the metricValue
  22734. conflicts with the configuration]]>
  22735. </doc>
  22736. </method>
  22737. <method name="setMetric"
  22738. abstract="false" native="false" synchronized="false"
  22739. static="false" final="false" visibility="public"
  22740. deprecated="not deprecated">
  22741. <param name="metricName" type="java.lang.String"/>
  22742. <param name="metricValue" type="float"/>
  22743. <doc>
  22744. <![CDATA[Sets the named metric to the specified value.
  22745. @param metricName name of the metric
  22746. @param metricValue new value of the metric
  22747. @throws MetricsException if the metricName or the type of the metricValue
  22748. conflicts with the configuration]]>
  22749. </doc>
  22750. </method>
  22751. <method name="incrMetric"
  22752. abstract="false" native="false" synchronized="false"
  22753. static="false" final="false" visibility="public"
  22754. deprecated="not deprecated">
  22755. <param name="metricName" type="java.lang.String"/>
  22756. <param name="metricValue" type="int"/>
  22757. <doc>
  22758. <![CDATA[Increments the named metric by the specified value.
  22759. @param metricName name of the metric
  22760. @param metricValue incremental value
  22761. @throws MetricsException if the metricName or the type of the metricValue
  22762. conflicts with the configuration]]>
  22763. </doc>
  22764. </method>
  22765. <method name="incrMetric"
  22766. abstract="false" native="false" synchronized="false"
  22767. static="false" final="false" visibility="public"
  22768. deprecated="not deprecated">
  22769. <param name="metricName" type="java.lang.String"/>
  22770. <param name="metricValue" type="long"/>
  22771. <doc>
  22772. <![CDATA[Increments the named metric by the specified value.
  22773. @param metricName name of the metric
  22774. @param metricValue incremental value
  22775. @throws MetricsException if the metricName or the type of the metricValue
  22776. conflicts with the configuration]]>
  22777. </doc>
  22778. </method>
  22779. <method name="incrMetric"
  22780. abstract="false" native="false" synchronized="false"
  22781. static="false" final="false" visibility="public"
  22782. deprecated="not deprecated">
  22783. <param name="metricName" type="java.lang.String"/>
  22784. <param name="metricValue" type="short"/>
  22785. <doc>
  22786. <![CDATA[Increments the named metric by the specified value.
  22787. @param metricName name of the metric
  22788. @param metricValue incremental value
  22789. @throws MetricsException if the metricName or the type of the metricValue
  22790. conflicts with the configuration]]>
  22791. </doc>
  22792. </method>
  22793. <method name="incrMetric"
  22794. abstract="false" native="false" synchronized="false"
  22795. static="false" final="false" visibility="public"
  22796. deprecated="not deprecated">
  22797. <param name="metricName" type="java.lang.String"/>
  22798. <param name="metricValue" type="byte"/>
  22799. <doc>
  22800. <![CDATA[Increments the named metric by the specified value.
  22801. @param metricName name of the metric
  22802. @param metricValue incremental value
  22803. @throws MetricsException if the metricName or the type of the metricValue
  22804. conflicts with the configuration]]>
  22805. </doc>
  22806. </method>
  22807. <method name="incrMetric"
  22808. abstract="false" native="false" synchronized="false"
  22809. static="false" final="false" visibility="public"
  22810. deprecated="not deprecated">
  22811. <param name="metricName" type="java.lang.String"/>
  22812. <param name="metricValue" type="float"/>
  22813. <doc>
  22814. <![CDATA[Increments the named metric by the specified value.
  22815. @param metricName name of the metric
  22816. @param metricValue incremental value
  22817. @throws MetricsException if the metricName or the type of the metricValue
  22818. conflicts with the configuration]]>
  22819. </doc>
  22820. </method>
  22821. <method name="update"
  22822. abstract="false" native="false" synchronized="false"
  22823. static="false" final="false" visibility="public"
  22824. deprecated="not deprecated">
  22825. <doc>
  22826. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  22827. If the tag values match an existing row, that row is updated;
  22828. otherwise, a new row is added.]]>
  22829. </doc>
  22830. </method>
  22831. <method name="remove"
  22832. abstract="false" native="false" synchronized="false"
  22833. static="false" final="false" visibility="public"
  22834. deprecated="not deprecated">
  22835. <doc>
  22836. <![CDATA[Removes, from the buffered data table, all rows having tags
  22837. that equal the tags that have been set on this record. For example,
  22838. if there are no tags on this record, all rows for this record name
  22839. would be removed. Or, if there is a single tag on this record, then
  22840. just rows containing a tag with the same name and value would be removed.]]>
  22841. </doc>
  22842. </method>
  22843. <doc>
  22844. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  22845. system. <p/>
  22846. A record name identifies the kind of data to be reported. For example, a
  22847. program reporting statistics relating to the disks on a computer might use
  22848. a record name "diskStats".<p/>
  22849. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  22850. continue the example, the "diskStats" record might use a tag named
  22851. "diskName" to identify a particular disk. Sometimes it is useful to have
  22852. more than one tag, so there might also be a "diskType" with value "ide" or
  22853. "scsi" or whatever.<p/>
  22854. A record also has zero or more <i>metrics</i>. These are the named
  22855. values that are to be reported to the metrics system. In the "diskStats"
  22856. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  22857. "kbReadPerSecond", etc.<p/>
  22858. The general procedure for using a MetricsRecord is to fill in its tag and
  22859. metric values, and then call <code>update()</code> to pass the record to the
  22860. client library.
  22861. Metric data is not immediately sent to the metrics system
  22862. each time that <code>update()</code> is called.
  22863. An internal table is maintained, identified by the record name. This
  22864. table has columns
  22865. corresponding to the tag and the metric names, and rows
  22866. corresponding to each unique set of tag values. An update
  22867. either modifies an existing row in the table, or adds a new row with a set of
  22868. tag values that are different from all the other rows. Note that if there
  22869. are no tags, then there can be at most one row in the table. <p/>
  22870. Once a row is added to the table, its data will be sent to the metrics system
  22871. on every timer period, whether or not it has been updated since the previous
  22872. timer period. If this is inappropriate, for example if metrics were being
  22873. reported by some transient object in an application, the <code>remove()</code>
  22874. method can be used to remove the row and thus stop the data from being
  22875. sent.<p/>
  22876. Note that the <code>update()</code> method is atomic. This means that it is
  22877. safe for different threads to be updating the same metric. More precisely,
  22878. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  22879. with the same set of tag names and tag values. Different threads should
  22880. <b>not</b> use the same MetricsRecord instance at the same time.
  22881. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  22882. </doc>
  22883. </interface>
  22884. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  22885. <!-- start class org.apache.hadoop.metrics.MetricsServlet -->
  22886. <class name="MetricsServlet" extends="javax.servlet.http.HttpServlet"
  22887. abstract="false"
  22888. static="false" final="false" visibility="public"
  22889. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22890. <constructor name="MetricsServlet"
  22891. static="false" final="false" visibility="public"
  22892. deprecated="not deprecated">
  22893. </constructor>
  22894. <method name="doGet"
  22895. abstract="false" native="false" synchronized="false"
  22896. static="false" final="false" visibility="public"
  22897. deprecated="not deprecated">
  22898. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  22899. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  22900. <exception name="ServletException" type="javax.servlet.ServletException"/>
  22901. <exception name="IOException" type="java.io.IOException"/>
  22902. </method>
  22903. <doc>
  22904. <![CDATA[A servlet to print out metrics data. By default, the servlet returns a
  22905. textual representation (no promises are made for parseability), and
  22906. users can use "?format=json" for parseable output.
  22907. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  22908. </doc>
  22909. </class>
  22910. <!-- end class org.apache.hadoop.metrics.MetricsServlet -->
  22911. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  22912. <class name="MetricsUtil" extends="java.lang.Object"
  22913. abstract="false"
  22914. static="false" final="false" visibility="public"
  22915. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22916. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  22917. abstract="false" native="false" synchronized="false"
  22918. static="true" final="false" visibility="public"
  22919. deprecated="not deprecated">
  22920. <param name="contextName" type="java.lang.String"/>
  22921. </method>
  22922. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  22923. abstract="false" native="false" synchronized="false"
  22924. static="true" final="false" visibility="public"
  22925. deprecated="not deprecated">
  22926. <param name="refName" type="java.lang.String"/>
  22927. <param name="contextName" type="java.lang.String"/>
  22928. <doc>
  22929. <![CDATA[Utility method to return the named context.
  22930. If the desired context cannot be created for any reason, the exception
  22931. is logged, and a null context is returned.]]>
  22932. </doc>
  22933. </method>
  22934. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  22935. abstract="false" native="false" synchronized="false"
  22936. static="true" final="false" visibility="public"
  22937. deprecated="not deprecated">
  22938. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  22939. <param name="recordName" type="java.lang.String"/>
  22940. <doc>
  22941. <![CDATA[Utility method to create and return new metrics record instance within the
  22942. given context. This record is tagged with the host name.
  22943. @param context the context
  22944. @param recordName name of the record
  22945. @return newly created metrics record]]>
  22946. </doc>
  22947. </method>
  22948. <field name="LOG" type="org.apache.commons.logging.Log"
  22949. transient="false" volatile="false"
  22950. static="true" final="true" visibility="public"
  22951. deprecated="not deprecated">
  22952. </field>
  22953. <doc>
  22954. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  22955. For examples of usage, see NameNodeMetrics.
  22956. @see org.apache.hadoop.metrics.MetricsRecord
  22957. @see org.apache.hadoop.metrics.MetricsContext
  22958. @see org.apache.hadoop.metrics.ContextFactory
  22959. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  22960. </doc>
  22961. </class>
  22962. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  22963. <!-- start interface org.apache.hadoop.metrics.Updater -->
  22964. <interface name="Updater" abstract="true"
  22965. static="false" final="false" visibility="public"
  22966. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22967. <method name="doUpdates"
  22968. abstract="false" native="false" synchronized="false"
  22969. static="false" final="false" visibility="public"
  22970. deprecated="not deprecated">
  22971. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  22972. <doc>
  22973. <![CDATA[Timer-based call-back from the metric library.]]>
  22974. </doc>
  22975. </method>
  22976. <doc>
  22977. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.
  22978. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  22979. </doc>
  22980. </interface>
  22981. <!-- end interface org.apache.hadoop.metrics.Updater -->
  22982. </package>
  22983. <package name="org.apache.hadoop.metrics.file">
  22984. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  22985. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  22986. abstract="false"
  22987. static="false" final="false" visibility="public"
  22988. deprecated="use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.">
  22989. <constructor name="FileContext"
  22990. static="false" final="false" visibility="public"
  22991. deprecated="not deprecated">
  22992. <doc>
  22993. <![CDATA[Creates a new instance of FileContext]]>
  22994. </doc>
  22995. </constructor>
  22996. <method name="init"
  22997. abstract="false" native="false" synchronized="false"
  22998. static="false" final="false" visibility="public"
  22999. deprecated="not deprecated">
  23000. <param name="contextName" type="java.lang.String"/>
  23001. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23002. </method>
  23003. <method name="getFileName" return="java.lang.String"
  23004. abstract="false" native="false" synchronized="false"
  23005. static="false" final="false" visibility="public"
  23006. deprecated="not deprecated">
  23007. <doc>
  23008. <![CDATA[Returns the configured file name, or null.]]>
  23009. </doc>
  23010. </method>
  23011. <method name="startMonitoring"
  23012. abstract="false" native="false" synchronized="false"
  23013. static="false" final="false" visibility="public"
  23014. deprecated="not deprecated">
  23015. <exception name="IOException" type="java.io.IOException"/>
  23016. <doc>
  23017. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  23018. file specified by the <code>fileName</code> attribute,
  23019. if specified. Otherwise the data will be written to standard
  23020. output.]]>
  23021. </doc>
  23022. </method>
  23023. <method name="stopMonitoring"
  23024. abstract="false" native="false" synchronized="false"
  23025. static="false" final="false" visibility="public"
  23026. deprecated="not deprecated">
  23027. <doc>
  23028. <![CDATA[Stops monitoring, closing the file.
  23029. @see #close()]]>
  23030. </doc>
  23031. </method>
  23032. <method name="emitRecord"
  23033. abstract="false" native="false" synchronized="false"
  23034. static="false" final="false" visibility="public"
  23035. deprecated="not deprecated">
  23036. <param name="contextName" type="java.lang.String"/>
  23037. <param name="recordName" type="java.lang.String"/>
  23038. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23039. <doc>
  23040. <![CDATA[Emits a metrics record to a file.]]>
  23041. </doc>
  23042. </method>
  23043. <method name="flush"
  23044. abstract="false" native="false" synchronized="false"
  23045. static="false" final="false" visibility="public"
  23046. deprecated="not deprecated">
  23047. <doc>
  23048. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  23049. </doc>
  23050. </method>
  23051. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  23052. transient="false" volatile="false"
  23053. static="true" final="true" visibility="protected"
  23054. deprecated="not deprecated">
  23055. </field>
  23056. <field name="PERIOD_PROPERTY" type="java.lang.String"
  23057. transient="false" volatile="false"
  23058. static="true" final="true" visibility="protected"
  23059. deprecated="not deprecated">
  23060. </field>
  23061. <doc>
  23062. <![CDATA[Metrics context for writing metrics to a file.<p/>
  23063. This class is configured by setting ContextFactory attributes which in turn
  23064. are usually configured through a properties file. All the attributes are
  23065. prefixed by the contextName. For example, the properties file might contain:
  23066. <pre>
  23067. myContextName.fileName=/tmp/metrics.log
  23068. myContextName.period=5
  23069. </pre>
  23070. @deprecated use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.]]>
  23071. </doc>
  23072. </class>
  23073. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  23074. </package>
  23075. <package name="org.apache.hadoop.metrics.ganglia">
  23076. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  23077. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23078. abstract="false"
  23079. static="false" final="false" visibility="public"
  23080. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23081. <constructor name="GangliaContext"
  23082. static="false" final="false" visibility="public"
  23083. deprecated="not deprecated">
  23084. <doc>
  23085. <![CDATA[Creates a new instance of GangliaContext]]>
  23086. </doc>
  23087. </constructor>
  23088. <method name="init"
  23089. abstract="false" native="false" synchronized="false"
  23090. static="false" final="false" visibility="public"
  23091. deprecated="not deprecated">
  23092. <param name="contextName" type="java.lang.String"/>
  23093. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23094. </method>
  23095. <method name="emitRecord"
  23096. abstract="false" native="false" synchronized="false"
  23097. static="false" final="false" visibility="public"
  23098. deprecated="not deprecated">
  23099. <param name="contextName" type="java.lang.String"/>
  23100. <param name="recordName" type="java.lang.String"/>
  23101. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23102. <exception name="IOException" type="java.io.IOException"/>
  23103. </method>
  23104. <method name="emitMetric"
  23105. abstract="false" native="false" synchronized="false"
  23106. static="false" final="false" visibility="protected"
  23107. deprecated="not deprecated">
  23108. <param name="name" type="java.lang.String"/>
  23109. <param name="type" type="java.lang.String"/>
  23110. <param name="value" type="java.lang.String"/>
  23111. <exception name="IOException" type="java.io.IOException"/>
  23112. </method>
  23113. <method name="getUnits" return="java.lang.String"
  23114. abstract="false" native="false" synchronized="false"
  23115. static="false" final="false" visibility="protected"
  23116. deprecated="not deprecated">
  23117. <param name="metricName" type="java.lang.String"/>
  23118. </method>
  23119. <method name="getSlope" return="int"
  23120. abstract="false" native="false" synchronized="false"
  23121. static="false" final="false" visibility="protected"
  23122. deprecated="not deprecated">
  23123. <param name="metricName" type="java.lang.String"/>
  23124. </method>
  23125. <method name="getTmax" return="int"
  23126. abstract="false" native="false" synchronized="false"
  23127. static="false" final="false" visibility="protected"
  23128. deprecated="not deprecated">
  23129. <param name="metricName" type="java.lang.String"/>
  23130. </method>
  23131. <method name="getDmax" return="int"
  23132. abstract="false" native="false" synchronized="false"
  23133. static="false" final="false" visibility="protected"
  23134. deprecated="not deprecated">
  23135. <param name="metricName" type="java.lang.String"/>
  23136. </method>
  23137. <method name="xdr_string"
  23138. abstract="false" native="false" synchronized="false"
  23139. static="false" final="false" visibility="protected"
  23140. deprecated="not deprecated">
  23141. <param name="s" type="java.lang.String"/>
  23142. <doc>
  23143. <![CDATA[Puts a string into the buffer by first writing the size of the string
  23144. as an int, followed by the bytes of the string, padded if necessary to
  23145. a multiple of 4.]]>
  23146. </doc>
  23147. </method>
  23148. <method name="xdr_int"
  23149. abstract="false" native="false" synchronized="false"
  23150. static="false" final="false" visibility="protected"
  23151. deprecated="not deprecated">
  23152. <param name="i" type="int"/>
  23153. <doc>
  23154. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  23155. </doc>
  23156. </method>
  23157. <field name="buffer" type="byte[]"
  23158. transient="false" volatile="false"
  23159. static="false" final="false" visibility="protected"
  23160. deprecated="not deprecated">
  23161. </field>
  23162. <field name="offset" type="int"
  23163. transient="false" volatile="false"
  23164. static="false" final="false" visibility="protected"
  23165. deprecated="not deprecated">
  23166. </field>
  23167. <field name="metricsServers" type="java.util.List"
  23168. transient="false" volatile="false"
  23169. static="false" final="false" visibility="protected"
  23170. deprecated="not deprecated">
  23171. </field>
  23172. <field name="datagramSocket" type="java.net.DatagramSocket"
  23173. transient="false" volatile="false"
  23174. static="false" final="false" visibility="protected"
  23175. deprecated="not deprecated">
  23176. </field>
  23177. <doc>
  23178. <![CDATA[Context for sending metrics to Ganglia.
  23179. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23180. </doc>
  23181. </class>
  23182. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  23183. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  23184. <class name="GangliaContext31" extends="org.apache.hadoop.metrics.ganglia.GangliaContext"
  23185. abstract="false"
  23186. static="false" final="false" visibility="public"
  23187. deprecated="not deprecated">
  23188. <constructor name="GangliaContext31"
  23189. static="false" final="false" visibility="public"
  23190. deprecated="not deprecated">
  23191. </constructor>
  23192. <method name="init"
  23193. abstract="false" native="false" synchronized="false"
  23194. static="false" final="false" visibility="public"
  23195. deprecated="not deprecated">
  23196. <param name="contextName" type="java.lang.String"/>
  23197. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23198. </method>
  23199. <method name="emitMetric"
  23200. abstract="false" native="false" synchronized="false"
  23201. static="false" final="false" visibility="protected"
  23202. deprecated="not deprecated">
  23203. <param name="name" type="java.lang.String"/>
  23204. <param name="type" type="java.lang.String"/>
  23205. <param name="value" type="java.lang.String"/>
  23206. <exception name="IOException" type="java.io.IOException"/>
  23207. </method>
  23208. <doc>
  23209. <![CDATA[Context for sending metrics to Ganglia version 3.1.x.
  23210. 3.1.1 has a slightly different wire portal compared to 3.0.x.]]>
  23211. </doc>
  23212. </class>
  23213. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  23214. </package>
  23215. <package name="org.apache.hadoop.metrics.jvm">
  23216. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  23217. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  23218. abstract="false"
  23219. static="false" final="false" visibility="public"
  23220. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  23221. <constructor name="EventCounter"
  23222. static="false" final="false" visibility="public"
  23223. deprecated="not deprecated">
  23224. </constructor>
  23225. <doc>
  23226. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23227. fatal, error and warn.
  23228. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  23229. </doc>
  23230. </class>
  23231. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  23232. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  23233. <class name="JvmMetrics" extends="java.lang.Object"
  23234. abstract="false"
  23235. static="false" final="false" visibility="public"
  23236. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23237. <implements name="org.apache.hadoop.metrics.Updater"/>
  23238. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  23239. abstract="false" native="false" synchronized="true"
  23240. static="true" final="false" visibility="public"
  23241. deprecated="not deprecated">
  23242. <param name="processName" type="java.lang.String"/>
  23243. <param name="sessionId" type="java.lang.String"/>
  23244. </method>
  23245. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  23246. abstract="false" native="false" synchronized="true"
  23247. static="true" final="false" visibility="public"
  23248. deprecated="not deprecated">
  23249. <param name="processName" type="java.lang.String"/>
  23250. <param name="sessionId" type="java.lang.String"/>
  23251. <param name="recordName" type="java.lang.String"/>
  23252. </method>
  23253. <method name="doUpdates"
  23254. abstract="false" native="false" synchronized="false"
  23255. static="false" final="false" visibility="public"
  23256. deprecated="not deprecated">
  23257. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  23258. <doc>
  23259. <![CDATA[This will be called periodically (with the period being configuration
  23260. dependent).]]>
  23261. </doc>
  23262. </method>
  23263. <doc>
  23264. <![CDATA[Singleton class which reports Java Virtual Machine metrics to the metrics API.
  23265. Any application can create an instance of this class in order to emit
  23266. Java VM metrics.
  23267. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23268. </doc>
  23269. </class>
  23270. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  23271. </package>
  23272. <package name="org.apache.hadoop.metrics.spi">
  23273. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  23274. <class name="AbstractMetricsContext" extends="java.lang.Object"
  23275. abstract="true"
  23276. static="false" final="false" visibility="public"
  23277. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23278. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  23279. <constructor name="AbstractMetricsContext"
  23280. static="false" final="false" visibility="protected"
  23281. deprecated="not deprecated">
  23282. <doc>
  23283. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  23284. </doc>
  23285. </constructor>
  23286. <method name="init"
  23287. abstract="false" native="false" synchronized="false"
  23288. static="false" final="false" visibility="public"
  23289. deprecated="not deprecated">
  23290. <param name="contextName" type="java.lang.String"/>
  23291. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23292. <doc>
  23293. <![CDATA[Initializes the context.]]>
  23294. </doc>
  23295. </method>
  23296. <method name="getAttribute" return="java.lang.String"
  23297. abstract="false" native="false" synchronized="false"
  23298. static="false" final="false" visibility="protected"
  23299. deprecated="not deprecated">
  23300. <param name="attributeName" type="java.lang.String"/>
  23301. <doc>
  23302. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  23303. </doc>
  23304. </method>
  23305. <method name="getAttributeTable" return="java.util.Map"
  23306. abstract="false" native="false" synchronized="false"
  23307. static="false" final="false" visibility="protected"
  23308. deprecated="not deprecated">
  23309. <param name="tableName" type="java.lang.String"/>
  23310. <doc>
  23311. <![CDATA[Returns an attribute-value map derived from the factory attributes
  23312. by finding all factory attributes that begin with
  23313. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  23314. those attributes with the contextName and tableName stripped off.]]>
  23315. </doc>
  23316. </method>
  23317. <method name="getContextName" return="java.lang.String"
  23318. abstract="false" native="false" synchronized="false"
  23319. static="false" final="false" visibility="public"
  23320. deprecated="not deprecated">
  23321. <doc>
  23322. <![CDATA[Returns the context name.]]>
  23323. </doc>
  23324. </method>
  23325. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  23326. abstract="false" native="false" synchronized="false"
  23327. static="false" final="false" visibility="public"
  23328. deprecated="not deprecated">
  23329. <doc>
  23330. <![CDATA[Returns the factory by which this context was created.]]>
  23331. </doc>
  23332. </method>
  23333. <method name="startMonitoring"
  23334. abstract="false" native="false" synchronized="true"
  23335. static="false" final="false" visibility="public"
  23336. deprecated="not deprecated">
  23337. <exception name="IOException" type="java.io.IOException"/>
  23338. <doc>
  23339. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  23340. </doc>
  23341. </method>
  23342. <method name="stopMonitoring"
  23343. abstract="false" native="false" synchronized="true"
  23344. static="false" final="false" visibility="public"
  23345. deprecated="not deprecated">
  23346. <doc>
  23347. <![CDATA[Stops monitoring. This does not free buffered data.
  23348. @see #close()]]>
  23349. </doc>
  23350. </method>
  23351. <method name="isMonitoring" return="boolean"
  23352. abstract="false" native="false" synchronized="false"
  23353. static="false" final="false" visibility="public"
  23354. deprecated="not deprecated">
  23355. <doc>
  23356. <![CDATA[Returns true if monitoring is currently in progress.]]>
  23357. </doc>
  23358. </method>
  23359. <method name="close"
  23360. abstract="false" native="false" synchronized="true"
  23361. static="false" final="false" visibility="public"
  23362. deprecated="not deprecated">
  23363. <doc>
  23364. <![CDATA[Stops monitoring and frees buffered data, returning this
  23365. object to its initial state.]]>
  23366. </doc>
  23367. </method>
  23368. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23369. abstract="false" native="false" synchronized="true"
  23370. static="false" final="true" visibility="public"
  23371. deprecated="not deprecated">
  23372. <param name="recordName" type="java.lang.String"/>
  23373. <doc>
  23374. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  23375. Throws an exception if the metrics implementation is configured with a fixed
  23376. set of record names and <code>recordName</code> is not in that set.
  23377. @param recordName the name of the record
  23378. @throws MetricsException if recordName conflicts with configuration data]]>
  23379. </doc>
  23380. </method>
  23381. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23382. abstract="false" native="false" synchronized="false"
  23383. static="false" final="false" visibility="protected"
  23384. deprecated="not deprecated">
  23385. <param name="recordName" type="java.lang.String"/>
  23386. <doc>
  23387. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  23388. @param recordName the name of the record
  23389. @return newly created instance of MetricsRecordImpl or subclass]]>
  23390. </doc>
  23391. </method>
  23392. <method name="registerUpdater"
  23393. abstract="false" native="false" synchronized="true"
  23394. static="false" final="false" visibility="public"
  23395. deprecated="not deprecated">
  23396. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23397. <doc>
  23398. <![CDATA[Registers a callback to be called at time intervals determined by
  23399. the configuration.
  23400. @param updater object to be run periodically; it should update
  23401. some metrics records]]>
  23402. </doc>
  23403. </method>
  23404. <method name="unregisterUpdater"
  23405. abstract="false" native="false" synchronized="true"
  23406. static="false" final="false" visibility="public"
  23407. deprecated="not deprecated">
  23408. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23409. <doc>
  23410. <![CDATA[Removes a callback, if it exists.
  23411. @param updater object to be removed from the callback list]]>
  23412. </doc>
  23413. </method>
  23414. <method name="getAllRecords" return="java.util.Map"
  23415. abstract="false" native="false" synchronized="true"
  23416. static="false" final="false" visibility="public"
  23417. deprecated="not deprecated">
  23418. <doc>
  23419. <![CDATA[Retrieves all the records managed by this MetricsContext.
  23420. Useful for monitoring systems that are polling-based.
  23421. @return A non-null collection of all monitoring records.]]>
  23422. </doc>
  23423. </method>
  23424. <method name="emitRecord"
  23425. abstract="true" native="false" synchronized="false"
  23426. static="false" final="false" visibility="protected"
  23427. deprecated="not deprecated">
  23428. <param name="contextName" type="java.lang.String"/>
  23429. <param name="recordName" type="java.lang.String"/>
  23430. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23431. <exception name="IOException" type="java.io.IOException"/>
  23432. <doc>
  23433. <![CDATA[Sends a record to the metrics system.]]>
  23434. </doc>
  23435. </method>
  23436. <method name="flush"
  23437. abstract="false" native="false" synchronized="false"
  23438. static="false" final="false" visibility="protected"
  23439. deprecated="not deprecated">
  23440. <exception name="IOException" type="java.io.IOException"/>
  23441. <doc>
  23442. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  23443. Subclasses may override it in order to perform some kind of flush.]]>
  23444. </doc>
  23445. </method>
  23446. <method name="update"
  23447. abstract="false" native="false" synchronized="false"
  23448. static="false" final="false" visibility="protected"
  23449. deprecated="not deprecated">
  23450. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  23451. <doc>
  23452. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  23453. the internal table of metric data.]]>
  23454. </doc>
  23455. </method>
  23456. <method name="remove"
  23457. abstract="false" native="false" synchronized="false"
  23458. static="false" final="false" visibility="protected"
  23459. deprecated="not deprecated">
  23460. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  23461. <doc>
  23462. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  23463. the internal table of metric data. A row matches if it has the same
  23464. tag names and values as record, but it may also have additional
  23465. tags.]]>
  23466. </doc>
  23467. </method>
  23468. <method name="getPeriod" return="int"
  23469. abstract="false" native="false" synchronized="false"
  23470. static="false" final="false" visibility="public"
  23471. deprecated="not deprecated">
  23472. <doc>
  23473. <![CDATA[Returns the timer period.]]>
  23474. </doc>
  23475. </method>
  23476. <method name="setPeriod"
  23477. abstract="false" native="false" synchronized="false"
  23478. static="false" final="false" visibility="protected"
  23479. deprecated="not deprecated">
  23480. <param name="period" type="int"/>
  23481. <doc>
  23482. <![CDATA[Sets the timer period]]>
  23483. </doc>
  23484. </method>
  23485. <method name="parseAndSetPeriod"
  23486. abstract="false" native="false" synchronized="false"
  23487. static="false" final="false" visibility="protected"
  23488. deprecated="not deprecated">
  23489. <param name="attributeName" type="java.lang.String"/>
  23490. <doc>
  23491. <![CDATA[If a period is set in the attribute passed in, override
  23492. the default with it.]]>
  23493. </doc>
  23494. </method>
  23495. <doc>
  23496. <![CDATA[The main class of the Service Provider Interface. This class should be
  23497. extended in order to integrate the Metrics API with a specific metrics
  23498. client library. <p/>
  23499. This class implements the internal table of metric data, and the timer
  23500. on which data is to be sent to the metrics system. Subclasses must
  23501. override the abstract <code>emitRecord</code> method in order to transmit
  23502. the data. <p/>
  23503. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23504. </doc>
  23505. </class>
  23506. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  23507. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  23508. <class name="AbstractMetricsContext.MetricMap" extends="java.util.TreeMap"
  23509. abstract="false"
  23510. static="true" final="false" visibility="public"
  23511. deprecated="not deprecated">
  23512. </class>
  23513. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  23514. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  23515. <class name="AbstractMetricsContext.TagMap" extends="java.util.TreeMap"
  23516. abstract="false"
  23517. static="true" final="false" visibility="public"
  23518. deprecated="not deprecated">
  23519. <method name="containsAll" return="boolean"
  23520. abstract="false" native="false" synchronized="false"
  23521. static="false" final="false" visibility="public"
  23522. deprecated="not deprecated">
  23523. <param name="other" type="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"/>
  23524. <doc>
  23525. <![CDATA[Returns true if this tagmap contains every tag in other.]]>
  23526. </doc>
  23527. </method>
  23528. </class>
  23529. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  23530. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  23531. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23532. abstract="false"
  23533. static="false" final="false" visibility="public"
  23534. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23535. <constructor name="CompositeContext"
  23536. static="false" final="false" visibility="public"
  23537. deprecated="not deprecated">
  23538. </constructor>
  23539. <method name="init"
  23540. abstract="false" native="false" synchronized="false"
  23541. static="false" final="false" visibility="public"
  23542. deprecated="not deprecated">
  23543. <param name="contextName" type="java.lang.String"/>
  23544. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23545. </method>
  23546. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23547. abstract="false" native="false" synchronized="false"
  23548. static="false" final="false" visibility="public"
  23549. deprecated="not deprecated">
  23550. <param name="recordName" type="java.lang.String"/>
  23551. </method>
  23552. <method name="emitRecord"
  23553. abstract="false" native="false" synchronized="false"
  23554. static="false" final="false" visibility="protected"
  23555. deprecated="not deprecated">
  23556. <param name="contextName" type="java.lang.String"/>
  23557. <param name="recordName" type="java.lang.String"/>
  23558. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23559. <exception name="IOException" type="java.io.IOException"/>
  23560. </method>
  23561. <method name="flush"
  23562. abstract="false" native="false" synchronized="false"
  23563. static="false" final="false" visibility="protected"
  23564. deprecated="not deprecated">
  23565. <exception name="IOException" type="java.io.IOException"/>
  23566. </method>
  23567. <method name="startMonitoring"
  23568. abstract="false" native="false" synchronized="false"
  23569. static="false" final="false" visibility="public"
  23570. deprecated="not deprecated">
  23571. <exception name="IOException" type="java.io.IOException"/>
  23572. </method>
  23573. <method name="stopMonitoring"
  23574. abstract="false" native="false" synchronized="false"
  23575. static="false" final="false" visibility="public"
  23576. deprecated="not deprecated">
  23577. </method>
  23578. <method name="isMonitoring" return="boolean"
  23579. abstract="false" native="false" synchronized="false"
  23580. static="false" final="false" visibility="public"
  23581. deprecated="not deprecated">
  23582. <doc>
  23583. <![CDATA[Return true if all subcontexts are monitoring.]]>
  23584. </doc>
  23585. </method>
  23586. <method name="close"
  23587. abstract="false" native="false" synchronized="false"
  23588. static="false" final="false" visibility="public"
  23589. deprecated="not deprecated">
  23590. </method>
  23591. <method name="registerUpdater"
  23592. abstract="false" native="false" synchronized="false"
  23593. static="false" final="false" visibility="public"
  23594. deprecated="not deprecated">
  23595. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23596. </method>
  23597. <method name="unregisterUpdater"
  23598. abstract="false" native="false" synchronized="false"
  23599. static="false" final="false" visibility="public"
  23600. deprecated="not deprecated">
  23601. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23602. </method>
  23603. <doc>
  23604. <![CDATA[@deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23605. </doc>
  23606. </class>
  23607. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  23608. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  23609. <class name="MetricsRecordImpl" extends="java.lang.Object"
  23610. abstract="false"
  23611. static="false" final="false" visibility="public"
  23612. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23613. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  23614. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23615. static="false" final="false" visibility="protected"
  23616. deprecated="not deprecated">
  23617. <doc>
  23618. <![CDATA[Creates a new instance of FileRecord]]>
  23619. </doc>
  23620. </constructor>
  23621. <method name="getRecordName" return="java.lang.String"
  23622. abstract="false" native="false" synchronized="false"
  23623. static="false" final="false" visibility="public"
  23624. deprecated="not deprecated">
  23625. <doc>
  23626. <![CDATA[Returns the record name.
  23627. @return the record name]]>
  23628. </doc>
  23629. </method>
  23630. <method name="setTag"
  23631. abstract="false" native="false" synchronized="false"
  23632. static="false" final="false" visibility="public"
  23633. deprecated="not deprecated">
  23634. <param name="tagName" type="java.lang.String"/>
  23635. <param name="tagValue" type="java.lang.String"/>
  23636. <doc>
  23637. <![CDATA[Sets the named tag to the specified value.
  23638. @param tagName name of the tag
  23639. @param tagValue new value of the tag
  23640. @throws MetricsException if the tagName conflicts with the configuration]]>
  23641. </doc>
  23642. </method>
  23643. <method name="setTag"
  23644. abstract="false" native="false" synchronized="false"
  23645. static="false" final="false" visibility="public"
  23646. deprecated="not deprecated">
  23647. <param name="tagName" type="java.lang.String"/>
  23648. <param name="tagValue" type="int"/>
  23649. <doc>
  23650. <![CDATA[Sets the named tag to the specified value.
  23651. @param tagName name of the tag
  23652. @param tagValue new value of the tag
  23653. @throws MetricsException if the tagName conflicts with the configuration]]>
  23654. </doc>
  23655. </method>
  23656. <method name="setTag"
  23657. abstract="false" native="false" synchronized="false"
  23658. static="false" final="false" visibility="public"
  23659. deprecated="not deprecated">
  23660. <param name="tagName" type="java.lang.String"/>
  23661. <param name="tagValue" type="long"/>
  23662. <doc>
  23663. <![CDATA[Sets the named tag to the specified value.
  23664. @param tagName name of the tag
  23665. @param tagValue new value of the tag
  23666. @throws MetricsException if the tagName conflicts with the configuration]]>
  23667. </doc>
  23668. </method>
  23669. <method name="setTag"
  23670. abstract="false" native="false" synchronized="false"
  23671. static="false" final="false" visibility="public"
  23672. deprecated="not deprecated">
  23673. <param name="tagName" type="java.lang.String"/>
  23674. <param name="tagValue" type="short"/>
  23675. <doc>
  23676. <![CDATA[Sets the named tag to the specified value.
  23677. @param tagName name of the tag
  23678. @param tagValue new value of the tag
  23679. @throws MetricsException if the tagName conflicts with the configuration]]>
  23680. </doc>
  23681. </method>
  23682. <method name="setTag"
  23683. abstract="false" native="false" synchronized="false"
  23684. static="false" final="false" visibility="public"
  23685. deprecated="not deprecated">
  23686. <param name="tagName" type="java.lang.String"/>
  23687. <param name="tagValue" type="byte"/>
  23688. <doc>
  23689. <![CDATA[Sets the named tag to the specified value.
  23690. @param tagName name of the tag
  23691. @param tagValue new value of the tag
  23692. @throws MetricsException if the tagName conflicts with the configuration]]>
  23693. </doc>
  23694. </method>
  23695. <method name="removeTag"
  23696. abstract="false" native="false" synchronized="false"
  23697. static="false" final="false" visibility="public"
  23698. deprecated="not deprecated">
  23699. <param name="tagName" type="java.lang.String"/>
  23700. <doc>
  23701. <![CDATA[Removes any tag of the specified name.]]>
  23702. </doc>
  23703. </method>
  23704. <method name="setMetric"
  23705. abstract="false" native="false" synchronized="false"
  23706. static="false" final="false" visibility="public"
  23707. deprecated="not deprecated">
  23708. <param name="metricName" type="java.lang.String"/>
  23709. <param name="metricValue" type="int"/>
  23710. <doc>
  23711. <![CDATA[Sets the named metric to the specified value.
  23712. @param metricName name of the metric
  23713. @param metricValue new value of the metric
  23714. @throws MetricsException if the metricName or the type of the metricValue
  23715. conflicts with the configuration]]>
  23716. </doc>
  23717. </method>
  23718. <method name="setMetric"
  23719. abstract="false" native="false" synchronized="false"
  23720. static="false" final="false" visibility="public"
  23721. deprecated="not deprecated">
  23722. <param name="metricName" type="java.lang.String"/>
  23723. <param name="metricValue" type="long"/>
  23724. <doc>
  23725. <![CDATA[Sets the named metric to the specified value.
  23726. @param metricName name of the metric
  23727. @param metricValue new value of the metric
  23728. @throws MetricsException if the metricName or the type of the metricValue
  23729. conflicts with the configuration]]>
  23730. </doc>
  23731. </method>
  23732. <method name="setMetric"
  23733. abstract="false" native="false" synchronized="false"
  23734. static="false" final="false" visibility="public"
  23735. deprecated="not deprecated">
  23736. <param name="metricName" type="java.lang.String"/>
  23737. <param name="metricValue" type="short"/>
  23738. <doc>
  23739. <![CDATA[Sets the named metric to the specified value.
  23740. @param metricName name of the metric
  23741. @param metricValue new value of the metric
  23742. @throws MetricsException if the metricName or the type of the metricValue
  23743. conflicts with the configuration]]>
  23744. </doc>
  23745. </method>
  23746. <method name="setMetric"
  23747. abstract="false" native="false" synchronized="false"
  23748. static="false" final="false" visibility="public"
  23749. deprecated="not deprecated">
  23750. <param name="metricName" type="java.lang.String"/>
  23751. <param name="metricValue" type="byte"/>
  23752. <doc>
  23753. <![CDATA[Sets the named metric to the specified value.
  23754. @param metricName name of the metric
  23755. @param metricValue new value of the metric
  23756. @throws MetricsException if the metricName or the type of the metricValue
  23757. conflicts with the configuration]]>
  23758. </doc>
  23759. </method>
  23760. <method name="setMetric"
  23761. abstract="false" native="false" synchronized="false"
  23762. static="false" final="false" visibility="public"
  23763. deprecated="not deprecated">
  23764. <param name="metricName" type="java.lang.String"/>
  23765. <param name="metricValue" type="float"/>
  23766. <doc>
  23767. <![CDATA[Sets the named metric to the specified value.
  23768. @param metricName name of the metric
  23769. @param metricValue new value of the metric
  23770. @throws MetricsException if the metricName or the type of the metricValue
  23771. conflicts with the configuration]]>
  23772. </doc>
  23773. </method>
  23774. <method name="incrMetric"
  23775. abstract="false" native="false" synchronized="false"
  23776. static="false" final="false" visibility="public"
  23777. deprecated="not deprecated">
  23778. <param name="metricName" type="java.lang.String"/>
  23779. <param name="metricValue" type="int"/>
  23780. <doc>
  23781. <![CDATA[Increments the named metric by the specified value.
  23782. @param metricName name of the metric
  23783. @param metricValue incremental value
  23784. @throws MetricsException if the metricName or the type of the metricValue
  23785. conflicts with the configuration]]>
  23786. </doc>
  23787. </method>
  23788. <method name="incrMetric"
  23789. abstract="false" native="false" synchronized="false"
  23790. static="false" final="false" visibility="public"
  23791. deprecated="not deprecated">
  23792. <param name="metricName" type="java.lang.String"/>
  23793. <param name="metricValue" type="long"/>
  23794. <doc>
  23795. <![CDATA[Increments the named metric by the specified value.
  23796. @param metricName name of the metric
  23797. @param metricValue incremental value
  23798. @throws MetricsException if the metricName or the type of the metricValue
  23799. conflicts with the configuration]]>
  23800. </doc>
  23801. </method>
  23802. <method name="incrMetric"
  23803. abstract="false" native="false" synchronized="false"
  23804. static="false" final="false" visibility="public"
  23805. deprecated="not deprecated">
  23806. <param name="metricName" type="java.lang.String"/>
  23807. <param name="metricValue" type="short"/>
  23808. <doc>
  23809. <![CDATA[Increments the named metric by the specified value.
  23810. @param metricName name of the metric
  23811. @param metricValue incremental value
  23812. @throws MetricsException if the metricName or the type of the metricValue
  23813. conflicts with the configuration]]>
  23814. </doc>
  23815. </method>
  23816. <method name="incrMetric"
  23817. abstract="false" native="false" synchronized="false"
  23818. static="false" final="false" visibility="public"
  23819. deprecated="not deprecated">
  23820. <param name="metricName" type="java.lang.String"/>
  23821. <param name="metricValue" type="byte"/>
  23822. <doc>
  23823. <![CDATA[Increments the named metric by the specified value.
  23824. @param metricName name of the metric
  23825. @param metricValue incremental value
  23826. @throws MetricsException if the metricName or the type of the metricValue
  23827. conflicts with the configuration]]>
  23828. </doc>
  23829. </method>
  23830. <method name="incrMetric"
  23831. abstract="false" native="false" synchronized="false"
  23832. static="false" final="false" visibility="public"
  23833. deprecated="not deprecated">
  23834. <param name="metricName" type="java.lang.String"/>
  23835. <param name="metricValue" type="float"/>
  23836. <doc>
  23837. <![CDATA[Increments the named metric by the specified value.
  23838. @param metricName name of the metric
  23839. @param metricValue incremental value
  23840. @throws MetricsException if the metricName or the type of the metricValue
  23841. conflicts with the configuration]]>
  23842. </doc>
  23843. </method>
  23844. <method name="update"
  23845. abstract="false" native="false" synchronized="false"
  23846. static="false" final="false" visibility="public"
  23847. deprecated="not deprecated">
  23848. <doc>
  23849. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  23850. If the tag values match an existing row, that row is updated;
  23851. otherwise, a new row is added.]]>
  23852. </doc>
  23853. </method>
  23854. <method name="remove"
  23855. abstract="false" native="false" synchronized="false"
  23856. static="false" final="false" visibility="public"
  23857. deprecated="not deprecated">
  23858. <doc>
  23859. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  23860. that equal the tags that have been set on this record.]]>
  23861. </doc>
  23862. </method>
  23863. <doc>
  23864. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  23865. from which it was created, and delegates back to it on <code>update</code>
  23866. and <code>remove()</code>.
  23867. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23868. </doc>
  23869. </class>
  23870. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  23871. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  23872. <class name="MetricValue" extends="java.lang.Object"
  23873. abstract="false"
  23874. static="false" final="false" visibility="public"
  23875. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23876. <constructor name="MetricValue" type="java.lang.Number, boolean"
  23877. static="false" final="false" visibility="public"
  23878. deprecated="not deprecated">
  23879. <doc>
  23880. <![CDATA[Creates a new instance of MetricValue]]>
  23881. </doc>
  23882. </constructor>
  23883. <method name="isIncrement" return="boolean"
  23884. abstract="false" native="false" synchronized="false"
  23885. static="false" final="false" visibility="public"
  23886. deprecated="not deprecated">
  23887. </method>
  23888. <method name="isAbsolute" return="boolean"
  23889. abstract="false" native="false" synchronized="false"
  23890. static="false" final="false" visibility="public"
  23891. deprecated="not deprecated">
  23892. </method>
  23893. <method name="getNumber" return="java.lang.Number"
  23894. abstract="false" native="false" synchronized="false"
  23895. static="false" final="false" visibility="public"
  23896. deprecated="not deprecated">
  23897. </method>
  23898. <field name="ABSOLUTE" type="boolean"
  23899. transient="false" volatile="false"
  23900. static="true" final="true" visibility="public"
  23901. deprecated="not deprecated">
  23902. </field>
  23903. <field name="INCREMENT" type="boolean"
  23904. transient="false" volatile="false"
  23905. static="true" final="true" visibility="public"
  23906. deprecated="not deprecated">
  23907. </field>
  23908. <doc>
  23909. <![CDATA[A Number that is either an absolute or an incremental amount.
  23910. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23911. </doc>
  23912. </class>
  23913. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  23914. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  23915. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23916. abstract="false"
  23917. static="false" final="false" visibility="public"
  23918. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23919. <constructor name="NoEmitMetricsContext"
  23920. static="false" final="false" visibility="public"
  23921. deprecated="not deprecated">
  23922. <doc>
  23923. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  23924. </doc>
  23925. </constructor>
  23926. <method name="init"
  23927. abstract="false" native="false" synchronized="false"
  23928. static="false" final="false" visibility="public"
  23929. deprecated="not deprecated">
  23930. <param name="contextName" type="java.lang.String"/>
  23931. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23932. </method>
  23933. <method name="emitRecord"
  23934. abstract="false" native="false" synchronized="false"
  23935. static="false" final="false" visibility="protected"
  23936. deprecated="not deprecated">
  23937. <param name="contextName" type="java.lang.String"/>
  23938. <param name="recordName" type="java.lang.String"/>
  23939. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23940. <doc>
  23941. <![CDATA[Do-nothing version of emitRecord]]>
  23942. </doc>
  23943. </method>
  23944. <doc>
  23945. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  23946. does save it for retrieval with getAllRecords().
  23947. This is useful if you want to support {@link MetricsServlet}, but
  23948. not emit metrics in any other way.
  23949. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23950. </doc>
  23951. </class>
  23952. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  23953. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  23954. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23955. abstract="false"
  23956. static="false" final="false" visibility="public"
  23957. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23958. <constructor name="NullContext"
  23959. static="false" final="false" visibility="public"
  23960. deprecated="not deprecated">
  23961. <doc>
  23962. <![CDATA[Creates a new instance of NullContext]]>
  23963. </doc>
  23964. </constructor>
  23965. <method name="startMonitoring"
  23966. abstract="false" native="false" synchronized="false"
  23967. static="false" final="false" visibility="public"
  23968. deprecated="not deprecated">
  23969. <doc>
  23970. <![CDATA[Do-nothing version of startMonitoring]]>
  23971. </doc>
  23972. </method>
  23973. <method name="emitRecord"
  23974. abstract="false" native="false" synchronized="false"
  23975. static="false" final="false" visibility="protected"
  23976. deprecated="not deprecated">
  23977. <param name="contextName" type="java.lang.String"/>
  23978. <param name="recordName" type="java.lang.String"/>
  23979. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23980. <doc>
  23981. <![CDATA[Do-nothing version of emitRecord]]>
  23982. </doc>
  23983. </method>
  23984. <method name="update"
  23985. abstract="false" native="false" synchronized="false"
  23986. static="false" final="false" visibility="protected"
  23987. deprecated="not deprecated">
  23988. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  23989. <doc>
  23990. <![CDATA[Do-nothing version of update]]>
  23991. </doc>
  23992. </method>
  23993. <method name="remove"
  23994. abstract="false" native="false" synchronized="false"
  23995. static="false" final="false" visibility="protected"
  23996. deprecated="not deprecated">
  23997. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  23998. <doc>
  23999. <![CDATA[Do-nothing version of remove]]>
  24000. </doc>
  24001. </method>
  24002. <doc>
  24003. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  24004. default context, so that no performance data is emitted if no configuration
  24005. data is found.
  24006. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24007. </doc>
  24008. </class>
  24009. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  24010. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  24011. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24012. abstract="false"
  24013. static="false" final="false" visibility="public"
  24014. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24015. <constructor name="NullContextWithUpdateThread"
  24016. static="false" final="false" visibility="public"
  24017. deprecated="not deprecated">
  24018. <doc>
  24019. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  24020. </doc>
  24021. </constructor>
  24022. <method name="init"
  24023. abstract="false" native="false" synchronized="false"
  24024. static="false" final="false" visibility="public"
  24025. deprecated="not deprecated">
  24026. <param name="contextName" type="java.lang.String"/>
  24027. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24028. </method>
  24029. <method name="emitRecord"
  24030. abstract="false" native="false" synchronized="false"
  24031. static="false" final="false" visibility="protected"
  24032. deprecated="not deprecated">
  24033. <param name="contextName" type="java.lang.String"/>
  24034. <param name="recordName" type="java.lang.String"/>
  24035. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24036. <doc>
  24037. <![CDATA[Do-nothing version of emitRecord]]>
  24038. </doc>
  24039. </method>
  24040. <method name="update"
  24041. abstract="false" native="false" synchronized="false"
  24042. static="false" final="false" visibility="protected"
  24043. deprecated="not deprecated">
  24044. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24045. <doc>
  24046. <![CDATA[Do-nothing version of update]]>
  24047. </doc>
  24048. </method>
  24049. <method name="remove"
  24050. abstract="false" native="false" synchronized="false"
  24051. static="false" final="false" visibility="protected"
  24052. deprecated="not deprecated">
  24053. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24054. <doc>
  24055. <![CDATA[Do-nothing version of remove]]>
  24056. </doc>
  24057. </method>
  24058. <doc>
  24059. <![CDATA[A null context which has a thread calling
  24060. periodically when monitoring is started. This keeps the data sampled
  24061. correctly.
  24062. In all other respects, this is like the NULL context: No data is emitted.
  24063. This is suitable for Monitoring systems like JMX which reads the metrics
  24064. when someone reads the data from JMX.
  24065. The default impl of start and stop monitoring:
  24066. is the AbstractMetricsContext is good enough.
  24067. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24068. </doc>
  24069. </class>
  24070. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  24071. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  24072. <class name="OutputRecord" extends="java.lang.Object"
  24073. abstract="false"
  24074. static="false" final="false" visibility="public"
  24075. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24076. <method name="getTagNames" return="java.util.Set"
  24077. abstract="false" native="false" synchronized="false"
  24078. static="false" final="false" visibility="public"
  24079. deprecated="not deprecated">
  24080. <doc>
  24081. <![CDATA[Returns the set of tag names]]>
  24082. </doc>
  24083. </method>
  24084. <method name="getTag" return="java.lang.Object"
  24085. abstract="false" native="false" synchronized="false"
  24086. static="false" final="false" visibility="public"
  24087. deprecated="not deprecated">
  24088. <param name="name" type="java.lang.String"/>
  24089. <doc>
  24090. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  24091. @return the tag value, or null if there is no such tag]]>
  24092. </doc>
  24093. </method>
  24094. <method name="getMetricNames" return="java.util.Set"
  24095. abstract="false" native="false" synchronized="false"
  24096. static="false" final="false" visibility="public"
  24097. deprecated="not deprecated">
  24098. <doc>
  24099. <![CDATA[Returns the set of metric names.]]>
  24100. </doc>
  24101. </method>
  24102. <method name="getMetric" return="java.lang.Number"
  24103. abstract="false" native="false" synchronized="false"
  24104. static="false" final="false" visibility="public"
  24105. deprecated="not deprecated">
  24106. <param name="name" type="java.lang.String"/>
  24107. <doc>
  24108. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  24109. </doc>
  24110. </method>
  24111. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  24112. abstract="false" native="false" synchronized="false"
  24113. static="false" final="false" visibility="public"
  24114. deprecated="not deprecated">
  24115. <doc>
  24116. <![CDATA[Returns a copy of this record's tags.]]>
  24117. </doc>
  24118. </method>
  24119. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  24120. abstract="false" native="false" synchronized="false"
  24121. static="false" final="false" visibility="public"
  24122. deprecated="not deprecated">
  24123. <doc>
  24124. <![CDATA[Returns a copy of this record's metrics.]]>
  24125. </doc>
  24126. </method>
  24127. <doc>
  24128. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  24129. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24130. </doc>
  24131. </class>
  24132. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  24133. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  24134. <class name="Util" extends="java.lang.Object"
  24135. abstract="false"
  24136. static="false" final="false" visibility="public"
  24137. deprecated="not deprecated">
  24138. <method name="parse" return="java.util.List"
  24139. abstract="false" native="false" synchronized="false"
  24140. static="true" final="false" visibility="public"
  24141. deprecated="not deprecated">
  24142. <param name="specs" type="java.lang.String"/>
  24143. <param name="defaultPort" type="int"/>
  24144. <doc>
  24145. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  24146. of the form <i>hostname</i> or <i>hostname:port</i>. If
  24147. the specs string is null, defaults to localhost:defaultPort.
  24148. @return a list of InetSocketAddress objects.]]>
  24149. </doc>
  24150. </method>
  24151. <doc>
  24152. <![CDATA[Static utility methods]]>
  24153. </doc>
  24154. </class>
  24155. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  24156. </package>
  24157. <package name="org.apache.hadoop.metrics.util">
  24158. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  24159. <class name="MBeanUtil" extends="java.lang.Object"
  24160. abstract="false"
  24161. static="false" final="false" visibility="public"
  24162. deprecated="in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.">
  24163. <constructor name="MBeanUtil"
  24164. static="false" final="false" visibility="public"
  24165. deprecated="not deprecated">
  24166. </constructor>
  24167. <method name="registerMBean" return="javax.management.ObjectName"
  24168. abstract="false" native="false" synchronized="false"
  24169. static="true" final="false" visibility="public"
  24170. deprecated="not deprecated">
  24171. <param name="serviceName" type="java.lang.String"/>
  24172. <param name="nameName" type="java.lang.String"/>
  24173. <param name="theMbean" type="java.lang.Object"/>
  24174. <doc>
  24175. <![CDATA[Register the MBean using our standard MBeanName format
  24176. "hadoop:service=<serviceName>,name=<nameName>"
  24177. Where the <serviceName> and <nameName> are the supplied parameters
  24178. @param serviceName
  24179. @param nameName
  24180. @param theMbean - the MBean to register
  24181. @return the named used to register the MBean]]>
  24182. </doc>
  24183. </method>
  24184. <method name="unregisterMBean"
  24185. abstract="false" native="false" synchronized="false"
  24186. static="true" final="false" visibility="public"
  24187. deprecated="not deprecated">
  24188. <param name="mbeanName" type="javax.management.ObjectName"/>
  24189. </method>
  24190. <doc>
  24191. <![CDATA[This util class provides a method to register an MBean using
  24192. our standard naming convention as described in the doc
  24193. for {@link #registerMBean(String, String, Object)}
  24194. @deprecated in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.]]>
  24195. </doc>
  24196. </class>
  24197. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  24198. <!-- start class org.apache.hadoop.metrics.util.MetricsBase -->
  24199. <class name="MetricsBase" extends="java.lang.Object"
  24200. abstract="true"
  24201. static="false" final="false" visibility="public"
  24202. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24203. <constructor name="MetricsBase" type="java.lang.String"
  24204. static="false" final="false" visibility="protected"
  24205. deprecated="not deprecated">
  24206. </constructor>
  24207. <constructor name="MetricsBase" type="java.lang.String, java.lang.String"
  24208. static="false" final="false" visibility="protected"
  24209. deprecated="not deprecated">
  24210. </constructor>
  24211. <method name="pushMetric"
  24212. abstract="true" native="false" synchronized="false"
  24213. static="false" final="false" visibility="public"
  24214. deprecated="not deprecated">
  24215. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24216. </method>
  24217. <method name="getName" return="java.lang.String"
  24218. abstract="false" native="false" synchronized="false"
  24219. static="false" final="false" visibility="public"
  24220. deprecated="not deprecated">
  24221. </method>
  24222. <method name="getDescription" return="java.lang.String"
  24223. abstract="false" native="false" synchronized="false"
  24224. static="false" final="false" visibility="public"
  24225. deprecated="not deprecated">
  24226. </method>
  24227. <field name="NO_DESCRIPTION" type="java.lang.String"
  24228. transient="false" volatile="false"
  24229. static="true" final="true" visibility="public"
  24230. deprecated="not deprecated">
  24231. </field>
  24232. <doc>
  24233. <![CDATA[This is base class for all metrics
  24234. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24235. </doc>
  24236. </class>
  24237. <!-- end class org.apache.hadoop.metrics.util.MetricsBase -->
  24238. <!-- start class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  24239. <class name="MetricsDynamicMBeanBase" extends="java.lang.Object"
  24240. abstract="true"
  24241. static="false" final="false" visibility="public"
  24242. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24243. <implements name="javax.management.DynamicMBean"/>
  24244. <constructor name="MetricsDynamicMBeanBase" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24245. static="false" final="false" visibility="protected"
  24246. deprecated="not deprecated">
  24247. </constructor>
  24248. <method name="getAttribute" return="java.lang.Object"
  24249. abstract="false" native="false" synchronized="false"
  24250. static="false" final="false" visibility="public"
  24251. deprecated="not deprecated">
  24252. <param name="attributeName" type="java.lang.String"/>
  24253. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  24254. <exception name="MBeanException" type="javax.management.MBeanException"/>
  24255. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  24256. </method>
  24257. <method name="getAttributes" return="javax.management.AttributeList"
  24258. abstract="false" native="false" synchronized="false"
  24259. static="false" final="false" visibility="public"
  24260. deprecated="not deprecated">
  24261. <param name="attributeNames" type="java.lang.String[]"/>
  24262. </method>
  24263. <method name="getMBeanInfo" return="javax.management.MBeanInfo"
  24264. abstract="false" native="false" synchronized="false"
  24265. static="false" final="false" visibility="public"
  24266. deprecated="not deprecated">
  24267. </method>
  24268. <method name="invoke" return="java.lang.Object"
  24269. abstract="false" native="false" synchronized="false"
  24270. static="false" final="false" visibility="public"
  24271. deprecated="not deprecated">
  24272. <param name="actionName" type="java.lang.String"/>
  24273. <param name="parms" type="java.lang.Object[]"/>
  24274. <param name="signature" type="java.lang.String[]"/>
  24275. <exception name="MBeanException" type="javax.management.MBeanException"/>
  24276. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  24277. </method>
  24278. <method name="setAttribute"
  24279. abstract="false" native="false" synchronized="false"
  24280. static="false" final="false" visibility="public"
  24281. deprecated="not deprecated">
  24282. <param name="attribute" type="javax.management.Attribute"/>
  24283. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  24284. <exception name="InvalidAttributeValueException" type="javax.management.InvalidAttributeValueException"/>
  24285. <exception name="MBeanException" type="javax.management.MBeanException"/>
  24286. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  24287. </method>
  24288. <method name="setAttributes" return="javax.management.AttributeList"
  24289. abstract="false" native="false" synchronized="false"
  24290. static="false" final="false" visibility="public"
  24291. deprecated="not deprecated">
  24292. <param name="attributes" type="javax.management.AttributeList"/>
  24293. </method>
  24294. <doc>
  24295. <![CDATA[This abstract base class facilitates creating dynamic mbeans automatically from
  24296. metrics.
  24297. The metrics constructors registers metrics in a registry.
  24298. Different categories of metrics should be in differnt classes with their own
  24299. registry (as in NameNodeMetrics and DataNodeMetrics).
  24300. Then the MBean can be created passing the registry to the constructor.
  24301. The MBean should be then registered using a mbean name (example):
  24302. MetricsHolder myMetrics = new MetricsHolder(); // has metrics and registry
  24303. MetricsTestMBean theMBean = new MetricsTestMBean(myMetrics.mregistry);
  24304. ObjectName mbeanName = MBeanUtil.registerMBean("ServiceFoo",
  24305. "TestStatistics", theMBean);
  24306. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24307. </doc>
  24308. </class>
  24309. <!-- end class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  24310. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  24311. <class name="MetricsIntValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24312. abstract="false"
  24313. static="false" final="false" visibility="public"
  24314. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.">
  24315. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24316. static="false" final="false" visibility="public"
  24317. deprecated="not deprecated">
  24318. <doc>
  24319. <![CDATA[Constructor - create a new metric
  24320. @param nam the name of the metrics to be used to publish the metric
  24321. @param registry - where the metrics object will be registered]]>
  24322. </doc>
  24323. </constructor>
  24324. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24325. static="false" final="false" visibility="public"
  24326. deprecated="not deprecated">
  24327. <doc>
  24328. <![CDATA[Constructor - create a new metric
  24329. @param nam the name of the metrics to be used to publish the metric
  24330. @param registry - where the metrics object will be registered
  24331. A description of {@link #NO_DESCRIPTION} is used]]>
  24332. </doc>
  24333. </constructor>
  24334. <method name="set"
  24335. abstract="false" native="false" synchronized="true"
  24336. static="false" final="false" visibility="public"
  24337. deprecated="not deprecated">
  24338. <param name="newValue" type="int"/>
  24339. <doc>
  24340. <![CDATA[Set the value
  24341. @param newValue]]>
  24342. </doc>
  24343. </method>
  24344. <method name="get" return="int"
  24345. abstract="false" native="false" synchronized="true"
  24346. static="false" final="false" visibility="public"
  24347. deprecated="not deprecated">
  24348. <doc>
  24349. <![CDATA[Get value
  24350. @return the value last set]]>
  24351. </doc>
  24352. </method>
  24353. <method name="pushMetric"
  24354. abstract="false" native="false" synchronized="true"
  24355. static="false" final="false" visibility="public"
  24356. deprecated="not deprecated">
  24357. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24358. <doc>
  24359. <![CDATA[Push the metric to the mr.
  24360. The metric is pushed only if it was updated since last push
  24361. Note this does NOT push to JMX
  24362. (JMX gets the info via {@link #get()}
  24363. @param mr]]>
  24364. </doc>
  24365. </method>
  24366. <doc>
  24367. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  24368. but changes only when it is set.
  24369. Each time its value is set, it is published only *once* at the next update
  24370. call.
  24371. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.]]>
  24372. </doc>
  24373. </class>
  24374. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  24375. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  24376. <class name="MetricsLongValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24377. abstract="false"
  24378. static="false" final="false" visibility="public"
  24379. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24380. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24381. static="false" final="false" visibility="public"
  24382. deprecated="not deprecated">
  24383. <doc>
  24384. <![CDATA[Constructor - create a new metric
  24385. @param nam the name of the metrics to be used to publish the metric
  24386. @param registry - where the metrics object will be registered]]>
  24387. </doc>
  24388. </constructor>
  24389. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24390. static="false" final="false" visibility="public"
  24391. deprecated="not deprecated">
  24392. <doc>
  24393. <![CDATA[Constructor - create a new metric
  24394. @param nam the name of the metrics to be used to publish the metric
  24395. @param registry - where the metrics object will be registered
  24396. A description of {@link #NO_DESCRIPTION} is used]]>
  24397. </doc>
  24398. </constructor>
  24399. <method name="set"
  24400. abstract="false" native="false" synchronized="true"
  24401. static="false" final="false" visibility="public"
  24402. deprecated="not deprecated">
  24403. <param name="newValue" type="long"/>
  24404. <doc>
  24405. <![CDATA[Set the value
  24406. @param newValue]]>
  24407. </doc>
  24408. </method>
  24409. <method name="get" return="long"
  24410. abstract="false" native="false" synchronized="true"
  24411. static="false" final="false" visibility="public"
  24412. deprecated="not deprecated">
  24413. <doc>
  24414. <![CDATA[Get value
  24415. @return the value last set]]>
  24416. </doc>
  24417. </method>
  24418. <method name="pushMetric"
  24419. abstract="false" native="false" synchronized="true"
  24420. static="false" final="false" visibility="public"
  24421. deprecated="not deprecated">
  24422. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24423. <doc>
  24424. <![CDATA[Push the metric to the mr.
  24425. The metric is pushed only if it was updated since last push
  24426. Note this does NOT push to JMX
  24427. (JMX gets the info via {@link #get()}
  24428. @param mr]]>
  24429. </doc>
  24430. </method>
  24431. <doc>
  24432. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  24433. but changes only when it is set.
  24434. Each time its value is set, it is published only *once* at the next update
  24435. call.
  24436. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24437. </doc>
  24438. </class>
  24439. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  24440. <!-- start class org.apache.hadoop.metrics.util.MetricsRegistry -->
  24441. <class name="MetricsRegistry" extends="java.lang.Object"
  24442. abstract="false"
  24443. static="false" final="false" visibility="public"
  24444. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.">
  24445. <constructor name="MetricsRegistry"
  24446. static="false" final="false" visibility="public"
  24447. deprecated="not deprecated">
  24448. </constructor>
  24449. <method name="size" return="int"
  24450. abstract="false" native="false" synchronized="false"
  24451. static="false" final="false" visibility="public"
  24452. deprecated="not deprecated">
  24453. <doc>
  24454. <![CDATA[@return number of metrics in the registry]]>
  24455. </doc>
  24456. </method>
  24457. <method name="add"
  24458. abstract="false" native="false" synchronized="true"
  24459. static="false" final="false" visibility="public"
  24460. deprecated="not deprecated">
  24461. <param name="metricsName" type="java.lang.String"/>
  24462. <param name="theMetricsObj" type="org.apache.hadoop.metrics.util.MetricsBase"/>
  24463. <doc>
  24464. <![CDATA[Add a new metrics to the registry
  24465. @param metricsName - the name
  24466. @param theMetricsObj - the metrics
  24467. @throws IllegalArgumentException if a name is already registered]]>
  24468. </doc>
  24469. </method>
  24470. <method name="get" return="org.apache.hadoop.metrics.util.MetricsBase"
  24471. abstract="false" native="false" synchronized="true"
  24472. static="false" final="false" visibility="public"
  24473. deprecated="not deprecated">
  24474. <param name="metricsName" type="java.lang.String"/>
  24475. <doc>
  24476. <![CDATA[@param metricsName
  24477. @return the metrics if there is one registered by the supplied name.
  24478. Returns null if none is registered]]>
  24479. </doc>
  24480. </method>
  24481. <method name="getKeyList" return="java.util.Collection"
  24482. abstract="false" native="false" synchronized="true"
  24483. static="false" final="false" visibility="public"
  24484. deprecated="not deprecated">
  24485. <doc>
  24486. <![CDATA[@return the list of metrics names]]>
  24487. </doc>
  24488. </method>
  24489. <method name="getMetricsList" return="java.util.Collection"
  24490. abstract="false" native="false" synchronized="true"
  24491. static="false" final="false" visibility="public"
  24492. deprecated="not deprecated">
  24493. <doc>
  24494. <![CDATA[@return the list of metrics]]>
  24495. </doc>
  24496. </method>
  24497. <doc>
  24498. <![CDATA[This is the registry for metrics.
  24499. Related set of metrics should be declared in a holding class and registered
  24500. in a registry for those metrics which is also stored in the the holding class.
  24501. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.]]>
  24502. </doc>
  24503. </class>
  24504. <!-- end class org.apache.hadoop.metrics.util.MetricsRegistry -->
  24505. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  24506. <class name="MetricsTimeVaryingInt" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24507. abstract="false"
  24508. static="false" final="false" visibility="public"
  24509. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.">
  24510. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24511. static="false" final="false" visibility="public"
  24512. deprecated="not deprecated">
  24513. <doc>
  24514. <![CDATA[Constructor - create a new metric
  24515. @param nam the name of the metrics to be used to publish the metric
  24516. @param registry - where the metrics object will be registered
  24517. @param description - the description]]>
  24518. </doc>
  24519. </constructor>
  24520. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24521. static="false" final="false" visibility="public"
  24522. deprecated="not deprecated">
  24523. <doc>
  24524. <![CDATA[Constructor - create a new metric
  24525. @param nam the name of the metrics to be used to publish the metric
  24526. @param registry - where the metrics object will be registered
  24527. A description of {@link #NO_DESCRIPTION} is used]]>
  24528. </doc>
  24529. </constructor>
  24530. <method name="inc"
  24531. abstract="false" native="false" synchronized="true"
  24532. static="false" final="false" visibility="public"
  24533. deprecated="not deprecated">
  24534. <param name="incr" type="int"/>
  24535. <doc>
  24536. <![CDATA[Inc metrics for incr vlaue
  24537. @param incr - number of operations]]>
  24538. </doc>
  24539. </method>
  24540. <method name="inc"
  24541. abstract="false" native="false" synchronized="true"
  24542. static="false" final="false" visibility="public"
  24543. deprecated="not deprecated">
  24544. <doc>
  24545. <![CDATA[Inc metrics by one]]>
  24546. </doc>
  24547. </method>
  24548. <method name="pushMetric"
  24549. abstract="false" native="false" synchronized="true"
  24550. static="false" final="false" visibility="public"
  24551. deprecated="not deprecated">
  24552. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24553. <doc>
  24554. <![CDATA[Push the delta metrics to the mr.
  24555. The delta is since the last push/interval.
  24556. Note this does NOT push to JMX
  24557. (JMX gets the info via {@link #previousIntervalValue}
  24558. @param mr]]>
  24559. </doc>
  24560. </method>
  24561. <method name="getPreviousIntervalValue" return="int"
  24562. abstract="false" native="false" synchronized="true"
  24563. static="false" final="false" visibility="public"
  24564. deprecated="not deprecated">
  24565. <doc>
  24566. <![CDATA[The Value at the Previous interval
  24567. @return prev interval value]]>
  24568. </doc>
  24569. </method>
  24570. <method name="getCurrentIntervalValue" return="int"
  24571. abstract="false" native="false" synchronized="true"
  24572. static="false" final="false" visibility="public"
  24573. deprecated="not deprecated">
  24574. <doc>
  24575. <![CDATA[The Value at the current interval
  24576. @return prev interval value]]>
  24577. </doc>
  24578. </method>
  24579. <doc>
  24580. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  24581. varies over time (e.g. number of files created). The metrics is accumulated
  24582. over an interval (set in the metrics config file); the metrics is
  24583. published at the end of each interval and then
  24584. reset to zero. Hence the counter has the value in the current interval.
  24585. Note if one wants a time associated with the metric then use
  24586. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  24587. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.]]>
  24588. </doc>
  24589. </class>
  24590. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  24591. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  24592. <class name="MetricsTimeVaryingLong" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24593. abstract="false"
  24594. static="false" final="false" visibility="public"
  24595. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.">
  24596. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24597. static="false" final="false" visibility="public"
  24598. deprecated="not deprecated">
  24599. <doc>
  24600. <![CDATA[Constructor - create a new metric
  24601. @param nam the name of the metrics to be used to publish the metric
  24602. @param registry - where the metrics object will be registered]]>
  24603. </doc>
  24604. </constructor>
  24605. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24606. static="false" final="false" visibility="public"
  24607. deprecated="not deprecated">
  24608. <doc>
  24609. <![CDATA[Constructor - create a new metric
  24610. @param nam the name of the metrics to be used to publish the metric
  24611. @param registry - where the metrics object will be registered
  24612. A description of {@link #NO_DESCRIPTION} is used]]>
  24613. </doc>
  24614. </constructor>
  24615. <method name="inc"
  24616. abstract="false" native="false" synchronized="true"
  24617. static="false" final="false" visibility="public"
  24618. deprecated="not deprecated">
  24619. <param name="incr" type="long"/>
  24620. <doc>
  24621. <![CDATA[Inc metrics for incr vlaue
  24622. @param incr - number of operations]]>
  24623. </doc>
  24624. </method>
  24625. <method name="inc"
  24626. abstract="false" native="false" synchronized="true"
  24627. static="false" final="false" visibility="public"
  24628. deprecated="not deprecated">
  24629. <doc>
  24630. <![CDATA[Inc metrics by one]]>
  24631. </doc>
  24632. </method>
  24633. <method name="pushMetric"
  24634. abstract="false" native="false" synchronized="true"
  24635. static="false" final="false" visibility="public"
  24636. deprecated="not deprecated">
  24637. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24638. <doc>
  24639. <![CDATA[Push the delta metrics to the mr.
  24640. The delta is since the last push/interval.
  24641. Note this does NOT push to JMX
  24642. (JMX gets the info via {@link #previousIntervalValue}
  24643. @param mr]]>
  24644. </doc>
  24645. </method>
  24646. <method name="getPreviousIntervalValue" return="long"
  24647. abstract="false" native="false" synchronized="true"
  24648. static="false" final="false" visibility="public"
  24649. deprecated="not deprecated">
  24650. <doc>
  24651. <![CDATA[The Value at the Previous interval
  24652. @return prev interval value]]>
  24653. </doc>
  24654. </method>
  24655. <method name="getCurrentIntervalValue" return="long"
  24656. abstract="false" native="false" synchronized="true"
  24657. static="false" final="false" visibility="public"
  24658. deprecated="not deprecated">
  24659. <doc>
  24660. <![CDATA[The Value at the current interval
  24661. @return prev interval value]]>
  24662. </doc>
  24663. </method>
  24664. <doc>
  24665. <![CDATA[The MetricsTimeVaryingLong class is for a metric that naturally
  24666. varies over time (e.g. number of files created). The metrics is accumulated
  24667. over an interval (set in the metrics config file); the metrics is
  24668. published at the end of each interval and then
  24669. reset to zero. Hence the counter has the value in the current interval.
  24670. Note if one wants a time associated with the metric then use
  24671. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  24672. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.]]>
  24673. </doc>
  24674. </class>
  24675. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  24676. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  24677. <class name="MetricsTimeVaryingRate" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24678. abstract="false"
  24679. static="false" final="false" visibility="public"
  24680. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.">
  24681. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24682. static="false" final="false" visibility="public"
  24683. deprecated="not deprecated">
  24684. <doc>
  24685. <![CDATA[Constructor - create a new metric
  24686. @param nam the name of the metrics to be used to publish the metric
  24687. @param registry - where the metrics object will be registered]]>
  24688. </doc>
  24689. </constructor>
  24690. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24691. static="false" final="false" visibility="public"
  24692. deprecated="not deprecated">
  24693. <doc>
  24694. <![CDATA[Constructor - create a new metric
  24695. @param nam the name of the metrics to be used to publish the metric
  24696. @param registry - where the metrics object will be registered
  24697. A description of {@link #NO_DESCRIPTION} is used]]>
  24698. </doc>
  24699. </constructor>
  24700. <method name="inc"
  24701. abstract="false" native="false" synchronized="true"
  24702. static="false" final="false" visibility="public"
  24703. deprecated="not deprecated">
  24704. <param name="numOps" type="int"/>
  24705. <param name="time" type="long"/>
  24706. <doc>
  24707. <![CDATA[Increment the metrics for numOps operations
  24708. @param numOps - number of operations
  24709. @param time - time for numOps operations]]>
  24710. </doc>
  24711. </method>
  24712. <method name="inc"
  24713. abstract="false" native="false" synchronized="true"
  24714. static="false" final="false" visibility="public"
  24715. deprecated="not deprecated">
  24716. <param name="time" type="long"/>
  24717. <doc>
  24718. <![CDATA[Increment the metrics for one operation
  24719. @param time for one operation]]>
  24720. </doc>
  24721. </method>
  24722. <method name="pushMetric"
  24723. abstract="false" native="false" synchronized="true"
  24724. static="false" final="false" visibility="public"
  24725. deprecated="not deprecated">
  24726. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24727. <doc>
  24728. <![CDATA[Push the delta metrics to the mr.
  24729. The delta is since the last push/interval.
  24730. Note this does NOT push to JMX
  24731. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  24732. {@link #getPreviousIntervalNumOps()}
  24733. @param mr]]>
  24734. </doc>
  24735. </method>
  24736. <method name="getPreviousIntervalNumOps" return="int"
  24737. abstract="false" native="false" synchronized="true"
  24738. static="false" final="false" visibility="public"
  24739. deprecated="not deprecated">
  24740. <doc>
  24741. <![CDATA[The number of operations in the previous interval
  24742. @return - ops in prev interval]]>
  24743. </doc>
  24744. </method>
  24745. <method name="getPreviousIntervalAverageTime" return="long"
  24746. abstract="false" native="false" synchronized="true"
  24747. static="false" final="false" visibility="public"
  24748. deprecated="not deprecated">
  24749. <doc>
  24750. <![CDATA[The average rate of an operation in the previous interval
  24751. @return - the average rate.]]>
  24752. </doc>
  24753. </method>
  24754. <method name="getMinTime" return="long"
  24755. abstract="false" native="false" synchronized="true"
  24756. static="false" final="false" visibility="public"
  24757. deprecated="not deprecated">
  24758. <doc>
  24759. <![CDATA[The min time for a single operation since the last reset
  24760. {@link #resetMinMax()}
  24761. @return min time for an operation]]>
  24762. </doc>
  24763. </method>
  24764. <method name="getMaxTime" return="long"
  24765. abstract="false" native="false" synchronized="true"
  24766. static="false" final="false" visibility="public"
  24767. deprecated="not deprecated">
  24768. <doc>
  24769. <![CDATA[The max time for a single operation since the last reset
  24770. {@link #resetMinMax()}
  24771. @return max time for an operation]]>
  24772. </doc>
  24773. </method>
  24774. <method name="resetMinMax"
  24775. abstract="false" native="false" synchronized="true"
  24776. static="false" final="false" visibility="public"
  24777. deprecated="not deprecated">
  24778. <doc>
  24779. <![CDATA[Reset the min max values]]>
  24780. </doc>
  24781. </method>
  24782. <doc>
  24783. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  24784. naturally varies over time (e.g. time taken to create a file).
  24785. The rate is averaged at each interval heart beat (the interval
  24786. is set in the metrics config file).
  24787. This class also keeps track of the min and max rates along with
  24788. a method to reset the min-max.
  24789. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.]]>
  24790. </doc>
  24791. </class>
  24792. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  24793. </package>
  24794. <package name="org.apache.hadoop.metrics2">
  24795. <!-- start class org.apache.hadoop.metrics2.Metric -->
  24796. <class name="Metric" extends="java.lang.Object"
  24797. abstract="true"
  24798. static="false" final="false" visibility="public"
  24799. deprecated="not deprecated">
  24800. <constructor name="Metric" type="java.lang.String"
  24801. static="false" final="false" visibility="public"
  24802. deprecated="not deprecated">
  24803. <doc>
  24804. <![CDATA[Construct the metric with name only
  24805. @param name of the metric]]>
  24806. </doc>
  24807. </constructor>
  24808. <constructor name="Metric" type="java.lang.String, java.lang.String"
  24809. static="false" final="false" visibility="public"
  24810. deprecated="not deprecated">
  24811. <doc>
  24812. <![CDATA[Construct the metric with a name and a description
  24813. @param name of the metric
  24814. @param desc description of the metric]]>
  24815. </doc>
  24816. </constructor>
  24817. <method name="name" return="java.lang.String"
  24818. abstract="false" native="false" synchronized="false"
  24819. static="false" final="false" visibility="public"
  24820. deprecated="not deprecated">
  24821. <doc>
  24822. <![CDATA[Get the name of the metric
  24823. @return the name]]>
  24824. </doc>
  24825. </method>
  24826. <method name="description" return="java.lang.String"
  24827. abstract="false" native="false" synchronized="false"
  24828. static="false" final="false" visibility="public"
  24829. deprecated="not deprecated">
  24830. <doc>
  24831. <![CDATA[Get the description of the metric
  24832. @return the description]]>
  24833. </doc>
  24834. </method>
  24835. <method name="value" return="java.lang.Number"
  24836. abstract="true" native="false" synchronized="false"
  24837. static="false" final="false" visibility="public"
  24838. deprecated="not deprecated">
  24839. <doc>
  24840. <![CDATA[Get the value of the metric
  24841. @return the value of the metric]]>
  24842. </doc>
  24843. </method>
  24844. <method name="visit"
  24845. abstract="true" native="false" synchronized="false"
  24846. static="false" final="false" visibility="public"
  24847. deprecated="not deprecated">
  24848. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  24849. <doc>
  24850. <![CDATA[Accept a visitor interface
  24851. @param visitor of the metric]]>
  24852. </doc>
  24853. </method>
  24854. <method name="equals" return="boolean"
  24855. abstract="false" native="false" synchronized="false"
  24856. static="false" final="false" visibility="public"
  24857. deprecated="not deprecated">
  24858. <param name="obj" type="java.lang.Object"/>
  24859. </method>
  24860. <method name="hashCode" return="int"
  24861. abstract="false" native="false" synchronized="false"
  24862. static="false" final="false" visibility="public"
  24863. deprecated="not deprecated">
  24864. </method>
  24865. <method name="toString" return="java.lang.String"
  24866. abstract="false" native="false" synchronized="false"
  24867. static="false" final="false" visibility="public"
  24868. deprecated="not deprecated">
  24869. </method>
  24870. <field name="NO_DESCRIPTION" type="java.lang.String"
  24871. transient="false" volatile="false"
  24872. static="true" final="true" visibility="public"
  24873. deprecated="not deprecated">
  24874. </field>
  24875. <doc>
  24876. <![CDATA[The immutable metric]]>
  24877. </doc>
  24878. </class>
  24879. <!-- end class org.apache.hadoop.metrics2.Metric -->
  24880. <!-- start class org.apache.hadoop.metrics2.MetricCounter -->
  24881. <class name="MetricCounter" extends="org.apache.hadoop.metrics2.Metric"
  24882. abstract="true"
  24883. static="false" final="false" visibility="public"
  24884. deprecated="not deprecated">
  24885. <constructor name="MetricCounter" type="java.lang.String, java.lang.String"
  24886. static="false" final="false" visibility="public"
  24887. deprecated="not deprecated">
  24888. <doc>
  24889. <![CDATA[Construct a counter metric
  24890. @param name of the metric
  24891. @param description of the metric]]>
  24892. </doc>
  24893. </constructor>
  24894. <method name="value" return="java.lang.Number"
  24895. abstract="true" native="false" synchronized="false"
  24896. static="false" final="false" visibility="public"
  24897. deprecated="not deprecated">
  24898. </method>
  24899. <doc>
  24900. <![CDATA[A generic immutable counter metric type
  24901. @param <T> value type of the metric]]>
  24902. </doc>
  24903. </class>
  24904. <!-- end class org.apache.hadoop.metrics2.MetricCounter -->
  24905. <!-- start class org.apache.hadoop.metrics2.MetricGauge -->
  24906. <class name="MetricGauge" extends="org.apache.hadoop.metrics2.Metric"
  24907. abstract="true"
  24908. static="false" final="false" visibility="public"
  24909. deprecated="not deprecated">
  24910. <constructor name="MetricGauge" type="java.lang.String, java.lang.String"
  24911. static="false" final="false" visibility="public"
  24912. deprecated="not deprecated">
  24913. <doc>
  24914. <![CDATA[Construct a gauge metric
  24915. @param name of the metric
  24916. @param description of the metric]]>
  24917. </doc>
  24918. </constructor>
  24919. <method name="value" return="java.lang.Number"
  24920. abstract="true" native="false" synchronized="false"
  24921. static="false" final="false" visibility="public"
  24922. deprecated="not deprecated">
  24923. </method>
  24924. <doc>
  24925. <![CDATA[A generic immutable gauge metric
  24926. @param <T> value type of the metric]]>
  24927. </doc>
  24928. </class>
  24929. <!-- end class org.apache.hadoop.metrics2.MetricGauge -->
  24930. <!-- start interface org.apache.hadoop.metrics2.MetricsBuilder -->
  24931. <interface name="MetricsBuilder" abstract="true"
  24932. static="false" final="false" visibility="public"
  24933. deprecated="not deprecated">
  24934. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24935. abstract="false" native="false" synchronized="false"
  24936. static="false" final="false" visibility="public"
  24937. deprecated="not deprecated">
  24938. <param name="name" type="java.lang.String"/>
  24939. <doc>
  24940. <![CDATA[Add a metrics record
  24941. @param name of the record
  24942. @return a metrics record builder for the record]]>
  24943. </doc>
  24944. </method>
  24945. <doc>
  24946. <![CDATA[The metrics builder interface]]>
  24947. </doc>
  24948. </interface>
  24949. <!-- end interface org.apache.hadoop.metrics2.MetricsBuilder -->
  24950. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  24951. <class name="MetricsException" extends="java.lang.RuntimeException"
  24952. abstract="false"
  24953. static="false" final="false" visibility="public"
  24954. deprecated="not deprecated">
  24955. <constructor name="MetricsException" type="java.lang.String"
  24956. static="false" final="false" visibility="public"
  24957. deprecated="not deprecated">
  24958. <doc>
  24959. <![CDATA[Construct the exception with a message
  24960. @param message for the exception]]>
  24961. </doc>
  24962. </constructor>
  24963. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  24964. static="false" final="false" visibility="public"
  24965. deprecated="not deprecated">
  24966. <doc>
  24967. <![CDATA[Construct the exception with a message and a cause
  24968. @param message for the exception
  24969. @param cause of the exception]]>
  24970. </doc>
  24971. </constructor>
  24972. <constructor name="MetricsException" type="java.lang.Throwable"
  24973. static="false" final="false" visibility="public"
  24974. deprecated="not deprecated">
  24975. <doc>
  24976. <![CDATA[Construct the exception with a cause
  24977. @param cause of the exception]]>
  24978. </doc>
  24979. </constructor>
  24980. <doc>
  24981. <![CDATA[A general metrics exception wrapper]]>
  24982. </doc>
  24983. </class>
  24984. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  24985. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  24986. <class name="MetricsFilter" extends="java.lang.Object"
  24987. abstract="true"
  24988. static="false" final="false" visibility="public"
  24989. deprecated="not deprecated">
  24990. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  24991. <constructor name="MetricsFilter"
  24992. static="false" final="false" visibility="public"
  24993. deprecated="not deprecated">
  24994. </constructor>
  24995. <method name="init"
  24996. abstract="true" native="false" synchronized="false"
  24997. static="false" final="false" visibility="public"
  24998. deprecated="not deprecated">
  24999. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  25000. </method>
  25001. <method name="accepts" return="boolean"
  25002. abstract="true" native="false" synchronized="false"
  25003. static="false" final="false" visibility="public"
  25004. deprecated="not deprecated">
  25005. <param name="name" type="java.lang.String"/>
  25006. <doc>
  25007. <![CDATA[Whether to accept the name
  25008. @param name to filter on
  25009. @return true to accept; false otherwise.]]>
  25010. </doc>
  25011. </method>
  25012. <method name="accepts" return="boolean"
  25013. abstract="true" native="false" synchronized="false"
  25014. static="false" final="false" visibility="public"
  25015. deprecated="not deprecated">
  25016. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25017. <doc>
  25018. <![CDATA[Whether to accept the tag
  25019. @param tag to filter on
  25020. @return true to accept; false otherwise]]>
  25021. </doc>
  25022. </method>
  25023. <method name="accepts" return="boolean"
  25024. abstract="true" native="false" synchronized="false"
  25025. static="false" final="false" visibility="public"
  25026. deprecated="not deprecated">
  25027. <param name="tags" type="java.lang.Iterable"/>
  25028. <doc>
  25029. <![CDATA[Whether to accept the tags
  25030. @param tags to filter on
  25031. @return true to accept; false otherwise]]>
  25032. </doc>
  25033. </method>
  25034. <method name="accepts" return="boolean"
  25035. abstract="false" native="false" synchronized="false"
  25036. static="false" final="false" visibility="public"
  25037. deprecated="not deprecated">
  25038. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  25039. <doc>
  25040. <![CDATA[Whether to accept the record
  25041. @param record to filter on
  25042. @return true to accept; false otherwise.]]>
  25043. </doc>
  25044. </method>
  25045. <doc>
  25046. <![CDATA[The metrics filter interface]]>
  25047. </doc>
  25048. </class>
  25049. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  25050. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  25051. <interface name="MetricsPlugin" abstract="true"
  25052. static="false" final="false" visibility="public"
  25053. deprecated="not deprecated">
  25054. <method name="init"
  25055. abstract="false" native="false" synchronized="false"
  25056. static="false" final="false" visibility="public"
  25057. deprecated="not deprecated">
  25058. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  25059. <doc>
  25060. <![CDATA[Initialize the plugin
  25061. @param conf the configuration object for the plugin]]>
  25062. </doc>
  25063. </method>
  25064. <doc>
  25065. <![CDATA[A fairly generic plugin interface]]>
  25066. </doc>
  25067. </interface>
  25068. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  25069. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  25070. <interface name="MetricsRecord" abstract="true"
  25071. static="false" final="false" visibility="public"
  25072. deprecated="not deprecated">
  25073. <method name="timestamp" return="long"
  25074. abstract="false" native="false" synchronized="false"
  25075. static="false" final="false" visibility="public"
  25076. deprecated="not deprecated">
  25077. <doc>
  25078. <![CDATA[Get the timestamp of the metrics
  25079. @return the timestamp]]>
  25080. </doc>
  25081. </method>
  25082. <method name="name" return="java.lang.String"
  25083. abstract="false" native="false" synchronized="false"
  25084. static="false" final="false" visibility="public"
  25085. deprecated="not deprecated">
  25086. <doc>
  25087. <![CDATA[Get the record name of the metrics
  25088. @return the record name]]>
  25089. </doc>
  25090. </method>
  25091. <method name="context" return="java.lang.String"
  25092. abstract="false" native="false" synchronized="false"
  25093. static="false" final="false" visibility="public"
  25094. deprecated="not deprecated">
  25095. <doc>
  25096. <![CDATA[Get the context name of the metrics
  25097. @return the context name]]>
  25098. </doc>
  25099. </method>
  25100. <method name="tags" return="java.lang.Iterable"
  25101. abstract="false" native="false" synchronized="false"
  25102. static="false" final="false" visibility="public"
  25103. deprecated="not deprecated">
  25104. <doc>
  25105. <![CDATA[Get the tags of the record
  25106. @return the tags]]>
  25107. </doc>
  25108. </method>
  25109. <method name="metrics" return="java.lang.Iterable"
  25110. abstract="false" native="false" synchronized="false"
  25111. static="false" final="false" visibility="public"
  25112. deprecated="not deprecated">
  25113. <doc>
  25114. <![CDATA[Get the metrics of the record
  25115. @return the metrics]]>
  25116. </doc>
  25117. </method>
  25118. <doc>
  25119. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  25120. </doc>
  25121. </interface>
  25122. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  25123. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  25124. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  25125. abstract="true"
  25126. static="false" final="false" visibility="public"
  25127. deprecated="not deprecated">
  25128. <constructor name="MetricsRecordBuilder"
  25129. static="false" final="false" visibility="public"
  25130. deprecated="not deprecated">
  25131. </constructor>
  25132. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25133. abstract="true" native="false" synchronized="false"
  25134. static="false" final="false" visibility="public"
  25135. deprecated="not deprecated">
  25136. <param name="name" type="java.lang.String"/>
  25137. <param name="description" type="java.lang.String"/>
  25138. <param name="value" type="java.lang.String"/>
  25139. <doc>
  25140. <![CDATA[Add a metrics tag
  25141. @param name of the tag
  25142. @param description of the tag
  25143. @param value of the tag
  25144. @return self]]>
  25145. </doc>
  25146. </method>
  25147. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25148. abstract="true" native="false" synchronized="false"
  25149. static="false" final="false" visibility="public"
  25150. deprecated="not deprecated">
  25151. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25152. <doc>
  25153. <![CDATA[Add an immutable metrics tag object
  25154. @param tag a pre-made tag object (potentially save an object construction)
  25155. @return self]]>
  25156. </doc>
  25157. </method>
  25158. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25159. abstract="true" native="false" synchronized="false"
  25160. static="false" final="false" visibility="public"
  25161. deprecated="not deprecated">
  25162. <param name="value" type="java.lang.String"/>
  25163. <doc>
  25164. <![CDATA[Set the context tag
  25165. @param value of the context
  25166. @return self]]>
  25167. </doc>
  25168. </method>
  25169. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25170. abstract="true" native="false" synchronized="false"
  25171. static="false" final="false" visibility="public"
  25172. deprecated="not deprecated">
  25173. <param name="name" type="java.lang.String"/>
  25174. <param name="description" type="java.lang.String"/>
  25175. <param name="value" type="int"/>
  25176. <doc>
  25177. <![CDATA[Add an int counter metric
  25178. @param name of the metric
  25179. @param description of the metric
  25180. @param value of the metric
  25181. @return self]]>
  25182. </doc>
  25183. </method>
  25184. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25185. abstract="true" native="false" synchronized="false"
  25186. static="false" final="false" visibility="public"
  25187. deprecated="not deprecated">
  25188. <param name="name" type="java.lang.String"/>
  25189. <param name="description" type="java.lang.String"/>
  25190. <param name="value" type="long"/>
  25191. <doc>
  25192. <![CDATA[Add an long counter metric
  25193. @param name of the metric
  25194. @param description of the metric
  25195. @param value of the metric
  25196. @return self]]>
  25197. </doc>
  25198. </method>
  25199. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25200. abstract="true" native="false" synchronized="false"
  25201. static="false" final="false" visibility="public"
  25202. deprecated="not deprecated">
  25203. <param name="name" type="java.lang.String"/>
  25204. <param name="description" type="java.lang.String"/>
  25205. <param name="value" type="int"/>
  25206. <doc>
  25207. <![CDATA[Add a int gauge metric
  25208. @param name of the metric
  25209. @param description of the metric
  25210. @param value of the metric
  25211. @return self]]>
  25212. </doc>
  25213. </method>
  25214. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25215. abstract="true" native="false" synchronized="false"
  25216. static="false" final="false" visibility="public"
  25217. deprecated="not deprecated">
  25218. <param name="name" type="java.lang.String"/>
  25219. <param name="description" type="java.lang.String"/>
  25220. <param name="value" type="long"/>
  25221. <doc>
  25222. <![CDATA[Add a long gauge metric
  25223. @param name of the metric
  25224. @param description of the metric
  25225. @param value of the metric
  25226. @return self]]>
  25227. </doc>
  25228. </method>
  25229. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25230. abstract="true" native="false" synchronized="false"
  25231. static="false" final="false" visibility="public"
  25232. deprecated="not deprecated">
  25233. <param name="name" type="java.lang.String"/>
  25234. <param name="description" type="java.lang.String"/>
  25235. <param name="value" type="float"/>
  25236. <doc>
  25237. <![CDATA[Add a float gauge metric
  25238. @param name of the metric
  25239. @param description of the metric
  25240. @param value of the metric
  25241. @return self]]>
  25242. </doc>
  25243. </method>
  25244. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25245. abstract="true" native="false" synchronized="false"
  25246. static="false" final="false" visibility="public"
  25247. deprecated="not deprecated">
  25248. <param name="name" type="java.lang.String"/>
  25249. <param name="description" type="java.lang.String"/>
  25250. <param name="value" type="double"/>
  25251. <doc>
  25252. <![CDATA[Add a double gauge metric
  25253. @param name of the metric
  25254. @param description of the metric
  25255. @param value of the metric
  25256. @return self]]>
  25257. </doc>
  25258. </method>
  25259. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25260. abstract="true" native="false" synchronized="false"
  25261. static="false" final="false" visibility="public"
  25262. deprecated="not deprecated">
  25263. <param name="metric" type="org.apache.hadoop.metrics2.Metric"/>
  25264. <doc>
  25265. <![CDATA[Add a pre-made immutable metric object
  25266. @param metric the pre-made metric to save an object construction
  25267. @return self]]>
  25268. </doc>
  25269. </method>
  25270. <doc>
  25271. <![CDATA[The metrics record builder interface]]>
  25272. </doc>
  25273. </class>
  25274. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  25275. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  25276. <interface name="MetricsSink" abstract="true"
  25277. static="false" final="false" visibility="public"
  25278. deprecated="not deprecated">
  25279. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  25280. <method name="putMetrics"
  25281. abstract="false" native="false" synchronized="false"
  25282. static="false" final="false" visibility="public"
  25283. deprecated="not deprecated">
  25284. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  25285. <doc>
  25286. <![CDATA[Put a metrics record in the sink
  25287. @param record the record to put]]>
  25288. </doc>
  25289. </method>
  25290. <method name="flush"
  25291. abstract="false" native="false" synchronized="false"
  25292. static="false" final="false" visibility="public"
  25293. deprecated="not deprecated">
  25294. <doc>
  25295. <![CDATA[Flush any buffered metrics]]>
  25296. </doc>
  25297. </method>
  25298. <doc>
  25299. <![CDATA[The metrics sink interface]]>
  25300. </doc>
  25301. </interface>
  25302. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  25303. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  25304. <interface name="MetricsSource" abstract="true"
  25305. static="false" final="false" visibility="public"
  25306. deprecated="not deprecated">
  25307. <method name="getMetrics"
  25308. abstract="false" native="false" synchronized="false"
  25309. static="false" final="false" visibility="public"
  25310. deprecated="not deprecated">
  25311. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  25312. <param name="all" type="boolean"/>
  25313. <doc>
  25314. <![CDATA[Get metrics from the source
  25315. @param builder to contain the resulting metrics snapshot
  25316. @param all if true, return all metrics even if unchanged.]]>
  25317. </doc>
  25318. </method>
  25319. <doc>
  25320. <![CDATA[The metrics source interface]]>
  25321. </doc>
  25322. </interface>
  25323. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  25324. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem -->
  25325. <interface name="MetricsSystem" abstract="true"
  25326. static="false" final="false" visibility="public"
  25327. deprecated="not deprecated">
  25328. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  25329. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  25330. abstract="false" native="false" synchronized="false"
  25331. static="false" final="false" visibility="public"
  25332. deprecated="not deprecated">
  25333. <param name="name" type="java.lang.String"/>
  25334. <param name="desc" type="java.lang.String"/>
  25335. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  25336. <doc>
  25337. <![CDATA[Register a metrics source
  25338. @param <T> the type of the source
  25339. @param source to register
  25340. @param name of the source. Must be unique.
  25341. @param desc the description of the source.
  25342. @return the source
  25343. @exception MetricsException]]>
  25344. </doc>
  25345. </method>
  25346. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  25347. abstract="false" native="false" synchronized="false"
  25348. static="false" final="false" visibility="public"
  25349. deprecated="not deprecated">
  25350. <param name="name" type="java.lang.String"/>
  25351. <param name="desc" type="java.lang.String"/>
  25352. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  25353. <doc>
  25354. <![CDATA[Register a metrics sink
  25355. @param <T> the type of the sink
  25356. @param sink to register
  25357. @param name of the sink. Must be unique.
  25358. @param desc the description of the sink
  25359. @return the sink
  25360. @exception MetricsException]]>
  25361. </doc>
  25362. </method>
  25363. <method name="register"
  25364. abstract="false" native="false" synchronized="false"
  25365. static="false" final="false" visibility="public"
  25366. deprecated="not deprecated">
  25367. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  25368. <doc>
  25369. <![CDATA[Register a callback interface for JMX events
  25370. @param callback the callback object implementing the MBean interface.]]>
  25371. </doc>
  25372. </method>
  25373. <method name="shutdown"
  25374. abstract="false" native="false" synchronized="false"
  25375. static="false" final="false" visibility="public"
  25376. deprecated="not deprecated">
  25377. <doc>
  25378. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  25379. The MetricsSystemMXBean will be unregistered.]]>
  25380. </doc>
  25381. </method>
  25382. <doc>
  25383. <![CDATA[The metrics system interface]]>
  25384. </doc>
  25385. </interface>
  25386. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem -->
  25387. <!-- start class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  25388. <class name="MetricsSystem.AbstractCallback" extends="java.lang.Object"
  25389. abstract="true"
  25390. static="true" final="false" visibility="public"
  25391. deprecated="not deprecated">
  25392. <implements name="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  25393. <constructor name="MetricsSystem.AbstractCallback"
  25394. static="false" final="false" visibility="public"
  25395. deprecated="not deprecated">
  25396. </constructor>
  25397. <method name="preStart"
  25398. abstract="false" native="false" synchronized="false"
  25399. static="false" final="false" visibility="public"
  25400. deprecated="not deprecated">
  25401. </method>
  25402. <method name="postStart"
  25403. abstract="false" native="false" synchronized="false"
  25404. static="false" final="false" visibility="public"
  25405. deprecated="not deprecated">
  25406. </method>
  25407. <method name="preStop"
  25408. abstract="false" native="false" synchronized="false"
  25409. static="false" final="false" visibility="public"
  25410. deprecated="not deprecated">
  25411. </method>
  25412. <method name="postStop"
  25413. abstract="false" native="false" synchronized="false"
  25414. static="false" final="false" visibility="public"
  25415. deprecated="not deprecated">
  25416. </method>
  25417. <doc>
  25418. <![CDATA[Convenient abstract class for implementing callback interface]]>
  25419. </doc>
  25420. </class>
  25421. <!-- end class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  25422. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  25423. <interface name="MetricsSystem.Callback" abstract="true"
  25424. static="true" final="false" visibility="public"
  25425. deprecated="not deprecated">
  25426. <method name="preStart"
  25427. abstract="false" native="false" synchronized="false"
  25428. static="false" final="false" visibility="public"
  25429. deprecated="not deprecated">
  25430. <doc>
  25431. <![CDATA[Called before start()]]>
  25432. </doc>
  25433. </method>
  25434. <method name="postStart"
  25435. abstract="false" native="false" synchronized="false"
  25436. static="false" final="false" visibility="public"
  25437. deprecated="not deprecated">
  25438. <doc>
  25439. <![CDATA[Called after start()]]>
  25440. </doc>
  25441. </method>
  25442. <method name="preStop"
  25443. abstract="false" native="false" synchronized="false"
  25444. static="false" final="false" visibility="public"
  25445. deprecated="not deprecated">
  25446. <doc>
  25447. <![CDATA[Called before stop()]]>
  25448. </doc>
  25449. </method>
  25450. <method name="postStop"
  25451. abstract="false" native="false" synchronized="false"
  25452. static="false" final="false" visibility="public"
  25453. deprecated="not deprecated">
  25454. <doc>
  25455. <![CDATA[Called after stop()]]>
  25456. </doc>
  25457. </method>
  25458. <doc>
  25459. <![CDATA[The metrics system callback interface]]>
  25460. </doc>
  25461. </interface>
  25462. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  25463. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  25464. <interface name="MetricsSystemMXBean" abstract="true"
  25465. static="false" final="false" visibility="public"
  25466. deprecated="not deprecated">
  25467. <method name="start"
  25468. abstract="false" native="false" synchronized="false"
  25469. static="false" final="false" visibility="public"
  25470. deprecated="not deprecated">
  25471. <doc>
  25472. <![CDATA[Start the metrics system
  25473. @exception MetricsException]]>
  25474. </doc>
  25475. </method>
  25476. <method name="stop"
  25477. abstract="false" native="false" synchronized="false"
  25478. static="false" final="false" visibility="public"
  25479. deprecated="not deprecated">
  25480. <doc>
  25481. <![CDATA[Stop the metrics system
  25482. @exception MetricsException]]>
  25483. </doc>
  25484. </method>
  25485. <method name="refreshMBeans"
  25486. abstract="false" native="false" synchronized="false"
  25487. static="false" final="false" visibility="public"
  25488. deprecated="not deprecated">
  25489. <doc>
  25490. <![CDATA[Force a refresh of MBeans
  25491. @exception MetricsException]]>
  25492. </doc>
  25493. </method>
  25494. <method name="currentConfig" return="java.lang.String"
  25495. abstract="false" native="false" synchronized="false"
  25496. static="false" final="false" visibility="public"
  25497. deprecated="not deprecated">
  25498. <doc>
  25499. <![CDATA[@return the current config
  25500. Note, avoid getConfig, as it'll turn it into an attribute,
  25501. which doesn't support multiple lines in the values.
  25502. @exception MetricsException]]>
  25503. </doc>
  25504. </method>
  25505. <doc>
  25506. <![CDATA[The JMX interface to the metrics system]]>
  25507. </doc>
  25508. </interface>
  25509. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  25510. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  25511. <class name="MetricsTag" extends="java.lang.Object"
  25512. abstract="false"
  25513. static="false" final="false" visibility="public"
  25514. deprecated="not deprecated">
  25515. <constructor name="MetricsTag" type="java.lang.String, java.lang.String, java.lang.String"
  25516. static="false" final="false" visibility="public"
  25517. deprecated="not deprecated">
  25518. <doc>
  25519. <![CDATA[Construct the tag with name, description and value
  25520. @param name of the tag
  25521. @param description of the tag
  25522. @param value of the tag]]>
  25523. </doc>
  25524. </constructor>
  25525. <method name="name" return="java.lang.String"
  25526. abstract="false" native="false" synchronized="false"
  25527. static="false" final="false" visibility="public"
  25528. deprecated="not deprecated">
  25529. <doc>
  25530. <![CDATA[Get the name of the tag
  25531. @return the name]]>
  25532. </doc>
  25533. </method>
  25534. <method name="description" return="java.lang.String"
  25535. abstract="false" native="false" synchronized="false"
  25536. static="false" final="false" visibility="public"
  25537. deprecated="not deprecated">
  25538. <doc>
  25539. <![CDATA[Get the description of the tag
  25540. @return the description]]>
  25541. </doc>
  25542. </method>
  25543. <method name="value" return="java.lang.String"
  25544. abstract="false" native="false" synchronized="false"
  25545. static="false" final="false" visibility="public"
  25546. deprecated="not deprecated">
  25547. <doc>
  25548. <![CDATA[Get the value of the tag
  25549. @return the value]]>
  25550. </doc>
  25551. </method>
  25552. <method name="equals" return="boolean"
  25553. abstract="false" native="false" synchronized="false"
  25554. static="false" final="false" visibility="public"
  25555. deprecated="not deprecated">
  25556. <param name="obj" type="java.lang.Object"/>
  25557. </method>
  25558. <method name="hashCode" return="int"
  25559. abstract="false" native="false" synchronized="false"
  25560. static="false" final="false" visibility="public"
  25561. deprecated="not deprecated">
  25562. </method>
  25563. <method name="toString" return="java.lang.String"
  25564. abstract="false" native="false" synchronized="false"
  25565. static="false" final="false" visibility="public"
  25566. deprecated="not deprecated">
  25567. </method>
  25568. <doc>
  25569. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  25570. </doc>
  25571. </class>
  25572. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  25573. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  25574. <interface name="MetricsVisitor" abstract="true"
  25575. static="false" final="false" visibility="public"
  25576. deprecated="not deprecated">
  25577. <method name="gauge"
  25578. abstract="false" native="false" synchronized="false"
  25579. static="false" final="false" visibility="public"
  25580. deprecated="not deprecated">
  25581. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  25582. <param name="value" type="int"/>
  25583. <doc>
  25584. <![CDATA[Callback for int value gauges
  25585. @param metric the metric object
  25586. @param value of the metric]]>
  25587. </doc>
  25588. </method>
  25589. <method name="gauge"
  25590. abstract="false" native="false" synchronized="false"
  25591. static="false" final="false" visibility="public"
  25592. deprecated="not deprecated">
  25593. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  25594. <param name="value" type="long"/>
  25595. <doc>
  25596. <![CDATA[Callback for long value gauges
  25597. @param metric the metric object
  25598. @param value of the metric]]>
  25599. </doc>
  25600. </method>
  25601. <method name="gauge"
  25602. abstract="false" native="false" synchronized="false"
  25603. static="false" final="false" visibility="public"
  25604. deprecated="not deprecated">
  25605. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  25606. <param name="value" type="float"/>
  25607. <doc>
  25608. <![CDATA[Callback for float value gauges
  25609. @param metric the metric object
  25610. @param value of the metric]]>
  25611. </doc>
  25612. </method>
  25613. <method name="gauge"
  25614. abstract="false" native="false" synchronized="false"
  25615. static="false" final="false" visibility="public"
  25616. deprecated="not deprecated">
  25617. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  25618. <param name="value" type="double"/>
  25619. <doc>
  25620. <![CDATA[Callback for double value gauges
  25621. @param metric the metric object
  25622. @param value of the metric]]>
  25623. </doc>
  25624. </method>
  25625. <method name="counter"
  25626. abstract="false" native="false" synchronized="false"
  25627. static="false" final="false" visibility="public"
  25628. deprecated="not deprecated">
  25629. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  25630. <param name="value" type="int"/>
  25631. <doc>
  25632. <![CDATA[Callback for integer value counters
  25633. @param metric the metric object
  25634. @param value of the metric]]>
  25635. </doc>
  25636. </method>
  25637. <method name="counter"
  25638. abstract="false" native="false" synchronized="false"
  25639. static="false" final="false" visibility="public"
  25640. deprecated="not deprecated">
  25641. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  25642. <param name="value" type="long"/>
  25643. <doc>
  25644. <![CDATA[Callback for long value counters
  25645. @param metric the metric object
  25646. @param value of the metric]]>
  25647. </doc>
  25648. </method>
  25649. <doc>
  25650. <![CDATA[A visitor interface for metrics]]>
  25651. </doc>
  25652. </interface>
  25653. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  25654. </package>
  25655. <package name="org.apache.hadoop.metrics2.filter">
  25656. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  25657. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  25658. abstract="false"
  25659. static="false" final="false" visibility="public"
  25660. deprecated="not deprecated">
  25661. <constructor name="GlobFilter"
  25662. static="false" final="false" visibility="public"
  25663. deprecated="not deprecated">
  25664. </constructor>
  25665. <method name="compile" return="java.util.regex.Pattern"
  25666. abstract="false" native="false" synchronized="false"
  25667. static="false" final="false" visibility="protected"
  25668. deprecated="not deprecated">
  25669. <param name="s" type="java.lang.String"/>
  25670. </method>
  25671. <doc>
  25672. <![CDATA[A glob pattern filter for metrics]]>
  25673. </doc>
  25674. </class>
  25675. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  25676. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25677. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  25678. abstract="false"
  25679. static="false" final="false" visibility="public"
  25680. deprecated="not deprecated">
  25681. <constructor name="RegexFilter"
  25682. static="false" final="false" visibility="public"
  25683. deprecated="not deprecated">
  25684. </constructor>
  25685. <method name="compile" return="java.util.regex.Pattern"
  25686. abstract="false" native="false" synchronized="false"
  25687. static="false" final="false" visibility="protected"
  25688. deprecated="not deprecated">
  25689. <param name="s" type="java.lang.String"/>
  25690. </method>
  25691. <doc>
  25692. <![CDATA[A regex pattern filter for metrics]]>
  25693. </doc>
  25694. </class>
  25695. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25696. </package>
  25697. <package name="org.apache.hadoop.metrics2.impl">
  25698. <!-- start class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  25699. <class name="MetricsConfigException" extends="org.apache.hadoop.metrics2.MetricsException"
  25700. abstract="false"
  25701. static="false" final="false" visibility="public"
  25702. deprecated="not deprecated">
  25703. <doc>
  25704. <![CDATA[The metrics configuration runtime exception]]>
  25705. </doc>
  25706. </class>
  25707. <!-- end class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  25708. <!-- start class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  25709. <class name="MetricsRecordImpl" extends="java.lang.Object"
  25710. abstract="false"
  25711. static="false" final="false" visibility="public"
  25712. deprecated="not deprecated">
  25713. <implements name="org.apache.hadoop.metrics2.MetricsRecord"/>
  25714. <constructor name="MetricsRecordImpl" type="java.lang.String, long, java.lang.Iterable, java.lang.Iterable"
  25715. static="false" final="false" visibility="public"
  25716. deprecated="not deprecated">
  25717. <doc>
  25718. <![CDATA[Construct a metrics record
  25719. @param name of the record
  25720. @param timestamp of the record
  25721. @param tags of the record
  25722. @param metrics of the record]]>
  25723. </doc>
  25724. </constructor>
  25725. <method name="timestamp" return="long"
  25726. abstract="false" native="false" synchronized="false"
  25727. static="false" final="false" visibility="public"
  25728. deprecated="not deprecated">
  25729. </method>
  25730. <method name="name" return="java.lang.String"
  25731. abstract="false" native="false" synchronized="false"
  25732. static="false" final="false" visibility="public"
  25733. deprecated="not deprecated">
  25734. </method>
  25735. <method name="context" return="java.lang.String"
  25736. abstract="false" native="false" synchronized="false"
  25737. static="false" final="false" visibility="public"
  25738. deprecated="not deprecated">
  25739. </method>
  25740. <method name="tags" return="java.lang.Iterable"
  25741. abstract="false" native="false" synchronized="false"
  25742. static="false" final="false" visibility="public"
  25743. deprecated="not deprecated">
  25744. </method>
  25745. <method name="metrics" return="java.lang.Iterable"
  25746. abstract="false" native="false" synchronized="false"
  25747. static="false" final="false" visibility="public"
  25748. deprecated="not deprecated">
  25749. </method>
  25750. <method name="equals" return="boolean"
  25751. abstract="false" native="false" synchronized="false"
  25752. static="false" final="false" visibility="public"
  25753. deprecated="not deprecated">
  25754. <param name="obj" type="java.lang.Object"/>
  25755. </method>
  25756. <method name="hashCode" return="int"
  25757. abstract="false" native="false" synchronized="false"
  25758. static="false" final="false" visibility="public"
  25759. deprecated="not deprecated">
  25760. </method>
  25761. <method name="toString" return="java.lang.String"
  25762. abstract="false" native="false" synchronized="false"
  25763. static="false" final="false" visibility="public"
  25764. deprecated="not deprecated">
  25765. </method>
  25766. <field name="CONTEXT_KEY" type="java.lang.String"
  25767. transient="false" volatile="false"
  25768. static="true" final="true" visibility="protected"
  25769. deprecated="not deprecated">
  25770. </field>
  25771. <field name="DEFAULT_CONTEXT" type="java.lang.String"
  25772. transient="false" volatile="false"
  25773. static="true" final="true" visibility="protected"
  25774. deprecated="not deprecated">
  25775. </field>
  25776. </class>
  25777. <!-- end class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  25778. <!-- start class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  25779. <class name="MetricsSystemImpl" extends="java.lang.Object"
  25780. abstract="false"
  25781. static="false" final="false" visibility="public"
  25782. deprecated="not deprecated">
  25783. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  25784. <constructor name="MetricsSystemImpl" type="java.lang.String"
  25785. static="false" final="false" visibility="public"
  25786. deprecated="not deprecated">
  25787. <doc>
  25788. <![CDATA[Construct the metrics system
  25789. @param prefix for the system]]>
  25790. </doc>
  25791. </constructor>
  25792. <constructor name="MetricsSystemImpl"
  25793. static="false" final="false" visibility="public"
  25794. deprecated="not deprecated">
  25795. <doc>
  25796. <![CDATA[Construct the system but not initializing (read config etc.) it.]]>
  25797. </doc>
  25798. </constructor>
  25799. <method name="init"
  25800. abstract="false" native="false" synchronized="true"
  25801. static="false" final="false" visibility="public"
  25802. deprecated="not deprecated">
  25803. <param name="prefix" type="java.lang.String"/>
  25804. <doc>
  25805. <![CDATA[Initialized the metrics system with a prefix.
  25806. @param prefix the system will look for configs with the prefix]]>
  25807. </doc>
  25808. </method>
  25809. <method name="start"
  25810. abstract="false" native="false" synchronized="true"
  25811. static="false" final="false" visibility="public"
  25812. deprecated="not deprecated">
  25813. </method>
  25814. <method name="stop"
  25815. abstract="false" native="false" synchronized="true"
  25816. static="false" final="false" visibility="public"
  25817. deprecated="not deprecated">
  25818. </method>
  25819. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  25820. abstract="false" native="false" synchronized="true"
  25821. static="false" final="false" visibility="public"
  25822. deprecated="not deprecated">
  25823. <param name="name" type="java.lang.String"/>
  25824. <param name="desc" type="java.lang.String"/>
  25825. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  25826. </method>
  25827. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  25828. abstract="false" native="false" synchronized="true"
  25829. static="false" final="false" visibility="public"
  25830. deprecated="not deprecated">
  25831. <param name="name" type="java.lang.String"/>
  25832. <param name="description" type="java.lang.String"/>
  25833. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  25834. </method>
  25835. <method name="register"
  25836. abstract="false" native="false" synchronized="true"
  25837. static="false" final="false" visibility="public"
  25838. deprecated="not deprecated">
  25839. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  25840. </method>
  25841. <method name="refreshMBeans"
  25842. abstract="false" native="false" synchronized="true"
  25843. static="false" final="false" visibility="public"
  25844. deprecated="not deprecated">
  25845. </method>
  25846. <method name="currentConfig" return="java.lang.String"
  25847. abstract="false" native="false" synchronized="true"
  25848. static="false" final="false" visibility="public"
  25849. deprecated="not deprecated">
  25850. </method>
  25851. <method name="shutdown"
  25852. abstract="false" native="false" synchronized="true"
  25853. static="false" final="false" visibility="public"
  25854. deprecated="not deprecated">
  25855. </method>
  25856. <doc>
  25857. <![CDATA[A base class for metrics system singletons]]>
  25858. </doc>
  25859. </class>
  25860. <!-- end class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  25861. </package>
  25862. <package name="org.apache.hadoop.metrics2.lib">
  25863. <!-- start class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  25864. <class name="AbstractMetricsSource" extends="java.lang.Object"
  25865. abstract="true"
  25866. static="false" final="false" visibility="public"
  25867. deprecated="not deprecated">
  25868. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  25869. <constructor name="AbstractMetricsSource" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  25870. static="false" final="false" visibility="public"
  25871. deprecated="not deprecated">
  25872. <doc>
  25873. <![CDATA[Construct the source with name and a mutable metrics factory
  25874. @param name of the default record
  25875. @param mf the factory to create mutable metrics]]>
  25876. </doc>
  25877. </constructor>
  25878. <constructor name="AbstractMetricsSource" type="java.lang.String"
  25879. static="false" final="false" visibility="public"
  25880. deprecated="not deprecated">
  25881. <doc>
  25882. <![CDATA[Construct the source with a name with a default factory
  25883. @param name of the default record]]>
  25884. </doc>
  25885. </constructor>
  25886. <method name="registry" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25887. abstract="false" native="false" synchronized="false"
  25888. static="false" final="false" visibility="public"
  25889. deprecated="not deprecated">
  25890. <doc>
  25891. <![CDATA[@return the registry for mutable metrics]]>
  25892. </doc>
  25893. </method>
  25894. <method name="getMetrics"
  25895. abstract="false" native="false" synchronized="false"
  25896. static="false" final="false" visibility="public"
  25897. deprecated="not deprecated">
  25898. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  25899. <param name="all" type="boolean"/>
  25900. </method>
  25901. <field name="registry" type="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25902. transient="false" volatile="false"
  25903. static="false" final="true" visibility="protected"
  25904. deprecated="not deprecated">
  25905. </field>
  25906. <doc>
  25907. <![CDATA[A convenient base class for writing metrics sources]]>
  25908. </doc>
  25909. </class>
  25910. <!-- end class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  25911. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  25912. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  25913. abstract="false"
  25914. static="false" final="true" visibility="public"
  25915. deprecated="not deprecated">
  25916. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  25917. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  25918. abstract="false" native="false" synchronized="false"
  25919. static="true" final="false" visibility="public"
  25920. deprecated="not deprecated">
  25921. </method>
  25922. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  25923. abstract="false" native="false" synchronized="false"
  25924. static="true" final="false" visibility="public"
  25925. deprecated="not deprecated">
  25926. <param name="name" type="java.lang.String"/>
  25927. </method>
  25928. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  25929. abstract="false" native="false" synchronized="false"
  25930. static="true" final="false" visibility="public"
  25931. deprecated="not deprecated">
  25932. <param name="prefix" type="java.lang.String"/>
  25933. <doc>
  25934. <![CDATA[Common static convenience method to initialize the metrics system
  25935. @param prefix for configuration
  25936. @return the metrics system instance]]>
  25937. </doc>
  25938. </method>
  25939. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  25940. abstract="false" native="false" synchronized="false"
  25941. static="false" final="false" visibility="public"
  25942. deprecated="not deprecated">
  25943. <param name="name" type="java.lang.String"/>
  25944. <param name="desc" type="java.lang.String"/>
  25945. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  25946. </method>
  25947. <method name="registerSource" return="org.apache.hadoop.metrics2.MetricsSource"
  25948. abstract="false" native="false" synchronized="false"
  25949. static="true" final="false" visibility="public"
  25950. deprecated="not deprecated">
  25951. <param name="name" type="java.lang.String"/>
  25952. <param name="desc" type="java.lang.String"/>
  25953. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  25954. <doc>
  25955. <![CDATA[Common static method to register a source
  25956. @param <T> type of the source
  25957. @param name of the source
  25958. @param desc description
  25959. @param source the source object to register
  25960. @return the source object]]>
  25961. </doc>
  25962. </method>
  25963. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  25964. abstract="false" native="false" synchronized="false"
  25965. static="false" final="false" visibility="public"
  25966. deprecated="not deprecated">
  25967. <param name="name" type="java.lang.String"/>
  25968. <param name="desc" type="java.lang.String"/>
  25969. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  25970. </method>
  25971. <method name="register"
  25972. abstract="false" native="false" synchronized="false"
  25973. static="false" final="false" visibility="public"
  25974. deprecated="not deprecated">
  25975. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  25976. </method>
  25977. <method name="start"
  25978. abstract="false" native="false" synchronized="false"
  25979. static="false" final="false" visibility="public"
  25980. deprecated="not deprecated">
  25981. </method>
  25982. <method name="stop"
  25983. abstract="false" native="false" synchronized="false"
  25984. static="false" final="false" visibility="public"
  25985. deprecated="not deprecated">
  25986. </method>
  25987. <method name="refreshMBeans"
  25988. abstract="false" native="false" synchronized="false"
  25989. static="false" final="false" visibility="public"
  25990. deprecated="not deprecated">
  25991. </method>
  25992. <method name="currentConfig" return="java.lang.String"
  25993. abstract="false" native="false" synchronized="false"
  25994. static="false" final="false" visibility="public"
  25995. deprecated="not deprecated">
  25996. </method>
  25997. <method name="shutdown"
  25998. abstract="false" native="false" synchronized="false"
  25999. static="false" final="false" visibility="public"
  26000. deprecated="not deprecated">
  26001. </method>
  26002. <field name="INSTANCE" type="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  26003. transient="false" volatile="false"
  26004. static="true" final="true" visibility="public"
  26005. deprecated="not deprecated">
  26006. <doc>
  26007. <![CDATA[The singleton instance]]>
  26008. </doc>
  26009. </field>
  26010. <doc>
  26011. <![CDATA[The default metrics system singleton]]>
  26012. </doc>
  26013. </class>
  26014. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  26015. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutable -->
  26016. <class name="MetricMutable" extends="java.lang.Object"
  26017. abstract="true"
  26018. static="false" final="false" visibility="public"
  26019. deprecated="not deprecated">
  26020. <constructor name="MetricMutable" type="java.lang.String, java.lang.String"
  26021. static="false" final="false" visibility="public"
  26022. deprecated="not deprecated">
  26023. <doc>
  26024. <![CDATA[Construct a mutable metric
  26025. @param name of the metric
  26026. @param description of the metric]]>
  26027. </doc>
  26028. </constructor>
  26029. <method name="snapshot"
  26030. abstract="true" native="false" synchronized="false"
  26031. static="false" final="false" visibility="public"
  26032. deprecated="not deprecated">
  26033. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26034. <param name="all" type="boolean"/>
  26035. <doc>
  26036. <![CDATA[Get a snapshot/snapshot of the metric
  26037. @param builder the metrics record builder
  26038. @param all if true, snapshot unchanged metrics as well]]>
  26039. </doc>
  26040. </method>
  26041. <method name="snapshot"
  26042. abstract="false" native="false" synchronized="false"
  26043. static="false" final="false" visibility="public"
  26044. deprecated="not deprecated">
  26045. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26046. <doc>
  26047. <![CDATA[Get a sampe/snapshot of metric if changed
  26048. @param builder the metrics record builder]]>
  26049. </doc>
  26050. </method>
  26051. <method name="setChanged"
  26052. abstract="false" native="false" synchronized="false"
  26053. static="false" final="false" visibility="protected"
  26054. deprecated="not deprecated">
  26055. <doc>
  26056. <![CDATA[Set the changed flag in mutable operations]]>
  26057. </doc>
  26058. </method>
  26059. <method name="clearChanged"
  26060. abstract="false" native="false" synchronized="false"
  26061. static="false" final="false" visibility="protected"
  26062. deprecated="not deprecated">
  26063. <doc>
  26064. <![CDATA[Clear the changed flag in the snapshot operations]]>
  26065. </doc>
  26066. </method>
  26067. <method name="changed" return="boolean"
  26068. abstract="false" native="false" synchronized="false"
  26069. static="false" final="false" visibility="public"
  26070. deprecated="not deprecated">
  26071. <doc>
  26072. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  26073. </doc>
  26074. </method>
  26075. <field name="name" type="java.lang.String"
  26076. transient="false" volatile="false"
  26077. static="false" final="true" visibility="public"
  26078. deprecated="not deprecated">
  26079. <doc>
  26080. <![CDATA[name of the metric]]>
  26081. </doc>
  26082. </field>
  26083. <field name="description" type="java.lang.String"
  26084. transient="false" volatile="false"
  26085. static="false" final="true" visibility="public"
  26086. deprecated="not deprecated">
  26087. <doc>
  26088. <![CDATA[description of the metric]]>
  26089. </doc>
  26090. </field>
  26091. <doc>
  26092. <![CDATA[The mutable metric interface]]>
  26093. </doc>
  26094. </class>
  26095. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutable -->
  26096. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  26097. <class name="MetricMutableCounter" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  26098. abstract="true"
  26099. static="false" final="false" visibility="public"
  26100. deprecated="not deprecated">
  26101. <constructor name="MetricMutableCounter" type="java.lang.String, java.lang.String"
  26102. static="false" final="false" visibility="public"
  26103. deprecated="not deprecated">
  26104. <doc>
  26105. <![CDATA[Construct the metric with name and description
  26106. @param name
  26107. @param description]]>
  26108. </doc>
  26109. </constructor>
  26110. <method name="incr"
  26111. abstract="true" native="false" synchronized="false"
  26112. static="false" final="false" visibility="public"
  26113. deprecated="not deprecated">
  26114. <doc>
  26115. <![CDATA[Increment the metric value by 1.]]>
  26116. </doc>
  26117. </method>
  26118. <doc>
  26119. <![CDATA[The mutable counter (monotonically increasing) metric interface
  26120. @param <T> the type of the metric]]>
  26121. </doc>
  26122. </class>
  26123. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  26124. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  26125. <class name="MetricMutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  26126. abstract="false"
  26127. static="false" final="false" visibility="public"
  26128. deprecated="not deprecated">
  26129. <constructor name="MetricMutableCounterInt" type="java.lang.String, java.lang.String, int"
  26130. static="false" final="false" visibility="public"
  26131. deprecated="not deprecated">
  26132. <doc>
  26133. <![CDATA[Construct a mutable int counter
  26134. @param name of the counter
  26135. @param description of the counter
  26136. @param initValue the initial value of the counter]]>
  26137. </doc>
  26138. </constructor>
  26139. <method name="incr"
  26140. abstract="false" native="false" synchronized="true"
  26141. static="false" final="false" visibility="public"
  26142. deprecated="not deprecated">
  26143. </method>
  26144. <method name="incr"
  26145. abstract="false" native="false" synchronized="true"
  26146. static="false" final="false" visibility="public"
  26147. deprecated="not deprecated">
  26148. <param name="delta" type="int"/>
  26149. <doc>
  26150. <![CDATA[Increment the value by a delta
  26151. @param delta of the increment]]>
  26152. </doc>
  26153. </method>
  26154. <method name="snapshot"
  26155. abstract="false" native="false" synchronized="false"
  26156. static="false" final="false" visibility="public"
  26157. deprecated="not deprecated">
  26158. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26159. <param name="all" type="boolean"/>
  26160. </method>
  26161. <doc>
  26162. <![CDATA[A mutable int counter for implementing metrics sources]]>
  26163. </doc>
  26164. </class>
  26165. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  26166. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  26167. <class name="MetricMutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  26168. abstract="false"
  26169. static="false" final="false" visibility="public"
  26170. deprecated="not deprecated">
  26171. <constructor name="MetricMutableCounterLong" type="java.lang.String, java.lang.String, long"
  26172. static="false" final="false" visibility="public"
  26173. deprecated="not deprecated">
  26174. <doc>
  26175. <![CDATA[Construct a mutable long counter
  26176. @param name of the counter
  26177. @param description of the counter
  26178. @param initValue the initial value of the counter]]>
  26179. </doc>
  26180. </constructor>
  26181. <method name="incr"
  26182. abstract="false" native="false" synchronized="true"
  26183. static="false" final="false" visibility="public"
  26184. deprecated="not deprecated">
  26185. </method>
  26186. <method name="incr"
  26187. abstract="false" native="false" synchronized="true"
  26188. static="false" final="false" visibility="public"
  26189. deprecated="not deprecated">
  26190. <param name="delta" type="long"/>
  26191. <doc>
  26192. <![CDATA[Increment the value by a delta
  26193. @param delta of the increment]]>
  26194. </doc>
  26195. </method>
  26196. <method name="snapshot"
  26197. abstract="false" native="false" synchronized="false"
  26198. static="false" final="false" visibility="public"
  26199. deprecated="not deprecated">
  26200. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26201. <param name="all" type="boolean"/>
  26202. </method>
  26203. <doc>
  26204. <![CDATA[A mutable long counter]]>
  26205. </doc>
  26206. </class>
  26207. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  26208. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  26209. <class name="MetricMutableFactory" extends="java.lang.Object"
  26210. abstract="false"
  26211. static="false" final="false" visibility="public"
  26212. deprecated="not deprecated">
  26213. <constructor name="MetricMutableFactory"
  26214. static="false" final="false" visibility="public"
  26215. deprecated="not deprecated">
  26216. </constructor>
  26217. <method name="newMetric" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  26218. abstract="false" native="false" synchronized="false"
  26219. static="false" final="false" visibility="public"
  26220. deprecated="not deprecated">
  26221. <param name="name" type="java.lang.String"/>
  26222. <doc>
  26223. <![CDATA[Create a new mutable metric by name
  26224. Usually overridden by app specific factory
  26225. @param name of the metric
  26226. @return a new metric object]]>
  26227. </doc>
  26228. </method>
  26229. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  26230. abstract="false" native="false" synchronized="false"
  26231. static="false" final="false" visibility="public"
  26232. deprecated="not deprecated">
  26233. <param name="name" type="java.lang.String"/>
  26234. <param name="description" type="java.lang.String"/>
  26235. <param name="initValue" type="int"/>
  26236. <doc>
  26237. <![CDATA[Create a mutable integer counter
  26238. @param name of the metric
  26239. @param description of the metric
  26240. @param initValue of the metric
  26241. @return a new metric object]]>
  26242. </doc>
  26243. </method>
  26244. <method name="newCounterInt" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  26245. abstract="false" native="false" synchronized="false"
  26246. static="false" final="false" visibility="public"
  26247. deprecated="not deprecated">
  26248. <param name="name" type="java.lang.String"/>
  26249. <doc>
  26250. <![CDATA[Create a mutable integer counter with name only.
  26251. Usually gets overridden.
  26252. @param name of the metric
  26253. @return a new metric object]]>
  26254. </doc>
  26255. </method>
  26256. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  26257. abstract="false" native="false" synchronized="false"
  26258. static="false" final="false" visibility="public"
  26259. deprecated="not deprecated">
  26260. <param name="name" type="java.lang.String"/>
  26261. <param name="description" type="java.lang.String"/>
  26262. <param name="initValue" type="long"/>
  26263. <doc>
  26264. <![CDATA[Create a mutable long integer counter
  26265. @param name of the metric
  26266. @param description of the metric
  26267. @param initValue of the metric
  26268. @return a new metric object]]>
  26269. </doc>
  26270. </method>
  26271. <method name="newCounterLong" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  26272. abstract="false" native="false" synchronized="false"
  26273. static="false" final="false" visibility="public"
  26274. deprecated="not deprecated">
  26275. <param name="name" type="java.lang.String"/>
  26276. <doc>
  26277. <![CDATA[Create a mutable long integer counter with a name
  26278. Usually gets overridden.
  26279. @param name of the metric
  26280. @return a new metric object]]>
  26281. </doc>
  26282. </method>
  26283. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  26284. abstract="false" native="false" synchronized="false"
  26285. static="false" final="false" visibility="public"
  26286. deprecated="not deprecated">
  26287. <param name="name" type="java.lang.String"/>
  26288. <param name="description" type="java.lang.String"/>
  26289. <param name="initValue" type="int"/>
  26290. <doc>
  26291. <![CDATA[Create a mutable integer gauge
  26292. @param name of the metric
  26293. @param description of the metric
  26294. @param initValue of the metric
  26295. @return a new metric object]]>
  26296. </doc>
  26297. </method>
  26298. <method name="newGaugeInt" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  26299. abstract="false" native="false" synchronized="false"
  26300. static="false" final="false" visibility="public"
  26301. deprecated="not deprecated">
  26302. <param name="name" type="java.lang.String"/>
  26303. <doc>
  26304. <![CDATA[Create a mutable integer gauge with name only.
  26305. Usually gets overridden.
  26306. @param name of the metric
  26307. @return a new metric object]]>
  26308. </doc>
  26309. </method>
  26310. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  26311. abstract="false" native="false" synchronized="false"
  26312. static="false" final="false" visibility="public"
  26313. deprecated="not deprecated">
  26314. <param name="name" type="java.lang.String"/>
  26315. <param name="description" type="java.lang.String"/>
  26316. <param name="initValue" type="long"/>
  26317. <doc>
  26318. <![CDATA[Create a mutable long integer gauge
  26319. @param name of the metric
  26320. @param description of the metric
  26321. @param initValue of the metric
  26322. @return a new metric object]]>
  26323. </doc>
  26324. </method>
  26325. <method name="newGaugeLong" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  26326. abstract="false" native="false" synchronized="false"
  26327. static="false" final="false" visibility="public"
  26328. deprecated="not deprecated">
  26329. <param name="name" type="java.lang.String"/>
  26330. <doc>
  26331. <![CDATA[Create a mutable long integer gauge with name only.
  26332. Usually gets overridden.
  26333. @param name of the metric
  26334. @return a new metric object]]>
  26335. </doc>
  26336. </method>
  26337. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26338. abstract="false" native="false" synchronized="false"
  26339. static="false" final="false" visibility="public"
  26340. deprecated="not deprecated">
  26341. <param name="name" type="java.lang.String"/>
  26342. <param name="description" type="java.lang.String"/>
  26343. <param name="sampleName" type="java.lang.String"/>
  26344. <param name="valueName" type="java.lang.String"/>
  26345. <param name="extended" type="boolean"/>
  26346. <doc>
  26347. <![CDATA[Create a mutable stat metric
  26348. @param name of the metric
  26349. @param description of the metric
  26350. @param sampleName of the metric (e.g., ops)
  26351. @param valueName of the metric (e.g., time or latency)
  26352. @param extended if true, produces extended stat (stdev, min/max etc.)
  26353. @return a new metric object]]>
  26354. </doc>
  26355. </method>
  26356. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26357. abstract="false" native="false" synchronized="false"
  26358. static="false" final="false" visibility="public"
  26359. deprecated="not deprecated">
  26360. <param name="name" type="java.lang.String"/>
  26361. <doc>
  26362. <![CDATA[Create a mutable stat metric with name only.
  26363. Usually gets overridden.
  26364. @param name of the metric
  26365. @return a new metric object]]>
  26366. </doc>
  26367. </method>
  26368. <doc>
  26369. <![CDATA[Factory class for mutable metrics]]>
  26370. </doc>
  26371. </class>
  26372. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  26373. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  26374. <class name="MetricMutableGauge" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  26375. abstract="true"
  26376. static="false" final="false" visibility="public"
  26377. deprecated="not deprecated">
  26378. <constructor name="MetricMutableGauge" type="java.lang.String, java.lang.String"
  26379. static="false" final="false" visibility="public"
  26380. deprecated="not deprecated">
  26381. <doc>
  26382. <![CDATA[Construct the metric with name and description
  26383. @param name of the metric
  26384. @param description of the metric]]>
  26385. </doc>
  26386. </constructor>
  26387. <method name="incr"
  26388. abstract="true" native="false" synchronized="false"
  26389. static="false" final="false" visibility="public"
  26390. deprecated="not deprecated">
  26391. <doc>
  26392. <![CDATA[Increment the value of the metric by 1]]>
  26393. </doc>
  26394. </method>
  26395. <method name="decr"
  26396. abstract="true" native="false" synchronized="false"
  26397. static="false" final="false" visibility="public"
  26398. deprecated="not deprecated">
  26399. <doc>
  26400. <![CDATA[Decrement the value of the metric by 1]]>
  26401. </doc>
  26402. </method>
  26403. <doc>
  26404. <![CDATA[The mutable gauge metric interface
  26405. @param <T> the type of the metric]]>
  26406. </doc>
  26407. </class>
  26408. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  26409. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  26410. <class name="MetricMutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  26411. abstract="false"
  26412. static="false" final="false" visibility="public"
  26413. deprecated="not deprecated">
  26414. <constructor name="MetricMutableGaugeInt" type="java.lang.String, java.lang.String, int"
  26415. static="false" final="false" visibility="public"
  26416. deprecated="not deprecated">
  26417. <doc>
  26418. <![CDATA[Construct a mutable int gauge metric
  26419. @param name of the gauge
  26420. @param description of the gauge
  26421. @param initValue the initial value of the gauge]]>
  26422. </doc>
  26423. </constructor>
  26424. <method name="incr"
  26425. abstract="false" native="false" synchronized="true"
  26426. static="false" final="false" visibility="public"
  26427. deprecated="not deprecated">
  26428. </method>
  26429. <method name="incr"
  26430. abstract="false" native="false" synchronized="true"
  26431. static="false" final="false" visibility="public"
  26432. deprecated="not deprecated">
  26433. <param name="delta" type="int"/>
  26434. <doc>
  26435. <![CDATA[Increment by delta
  26436. @param delta of the increment]]>
  26437. </doc>
  26438. </method>
  26439. <method name="decr"
  26440. abstract="false" native="false" synchronized="true"
  26441. static="false" final="false" visibility="public"
  26442. deprecated="not deprecated">
  26443. </method>
  26444. <method name="decr"
  26445. abstract="false" native="false" synchronized="true"
  26446. static="false" final="false" visibility="public"
  26447. deprecated="not deprecated">
  26448. <param name="delta" type="int"/>
  26449. <doc>
  26450. <![CDATA[decrement by delta
  26451. @param delta of the decrement]]>
  26452. </doc>
  26453. </method>
  26454. <method name="set"
  26455. abstract="false" native="false" synchronized="false"
  26456. static="false" final="false" visibility="public"
  26457. deprecated="not deprecated">
  26458. <param name="value" type="int"/>
  26459. <doc>
  26460. <![CDATA[Set the value of the metric
  26461. @param value to set]]>
  26462. </doc>
  26463. </method>
  26464. <method name="snapshot"
  26465. abstract="false" native="false" synchronized="false"
  26466. static="false" final="false" visibility="public"
  26467. deprecated="not deprecated">
  26468. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26469. <param name="all" type="boolean"/>
  26470. </method>
  26471. <doc>
  26472. <![CDATA[A mutable int gauge]]>
  26473. </doc>
  26474. </class>
  26475. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  26476. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  26477. <class name="MetricMutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  26478. abstract="false"
  26479. static="false" final="false" visibility="public"
  26480. deprecated="not deprecated">
  26481. <constructor name="MetricMutableGaugeLong" type="java.lang.String, java.lang.String, long"
  26482. static="false" final="false" visibility="public"
  26483. deprecated="not deprecated">
  26484. <doc>
  26485. <![CDATA[Construct a mutable long gauge metric
  26486. @param name of the gauge
  26487. @param description of the gauge
  26488. @param initValue the initial value of the gauge]]>
  26489. </doc>
  26490. </constructor>
  26491. <method name="incr"
  26492. abstract="false" native="false" synchronized="true"
  26493. static="false" final="false" visibility="public"
  26494. deprecated="not deprecated">
  26495. </method>
  26496. <method name="incr"
  26497. abstract="false" native="false" synchronized="true"
  26498. static="false" final="false" visibility="public"
  26499. deprecated="not deprecated">
  26500. <param name="delta" type="long"/>
  26501. <doc>
  26502. <![CDATA[Increment by delta
  26503. @param delta of the increment]]>
  26504. </doc>
  26505. </method>
  26506. <method name="decr"
  26507. abstract="false" native="false" synchronized="true"
  26508. static="false" final="false" visibility="public"
  26509. deprecated="not deprecated">
  26510. </method>
  26511. <method name="decr"
  26512. abstract="false" native="false" synchronized="true"
  26513. static="false" final="false" visibility="public"
  26514. deprecated="not deprecated">
  26515. <param name="delta" type="long"/>
  26516. <doc>
  26517. <![CDATA[decrement by delta
  26518. @param delta of the decrement]]>
  26519. </doc>
  26520. </method>
  26521. <method name="set"
  26522. abstract="false" native="false" synchronized="false"
  26523. static="false" final="false" visibility="public"
  26524. deprecated="not deprecated">
  26525. <param name="value" type="long"/>
  26526. <doc>
  26527. <![CDATA[Set the value of the metric
  26528. @param value to set]]>
  26529. </doc>
  26530. </method>
  26531. <method name="snapshot"
  26532. abstract="false" native="false" synchronized="false"
  26533. static="false" final="false" visibility="public"
  26534. deprecated="not deprecated">
  26535. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26536. <param name="all" type="boolean"/>
  26537. </method>
  26538. <doc>
  26539. <![CDATA[A mutable long gauge]]>
  26540. </doc>
  26541. </class>
  26542. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  26543. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  26544. <class name="MetricMutableStat" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  26545. abstract="false"
  26546. static="false" final="false" visibility="public"
  26547. deprecated="not deprecated">
  26548. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  26549. static="false" final="false" visibility="public"
  26550. deprecated="not deprecated">
  26551. <doc>
  26552. <![CDATA[Construct a sample statistics metric
  26553. @param name of the metric
  26554. @param description of the metric
  26555. @param sampleName of the metric (e.g. "ops")
  26556. @param valueName of the metric (e.g. "time", "latency")
  26557. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  26558. </doc>
  26559. </constructor>
  26560. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  26561. static="false" final="false" visibility="public"
  26562. deprecated="not deprecated">
  26563. <doc>
  26564. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  26565. @param name of the metric
  26566. @param description of the metric
  26567. @param sampleName of the metric (e.g. "ops")
  26568. @param valueName of the metric (e.g. "time", "latency")]]>
  26569. </doc>
  26570. </constructor>
  26571. <method name="add"
  26572. abstract="false" native="false" synchronized="true"
  26573. static="false" final="false" visibility="public"
  26574. deprecated="not deprecated">
  26575. <param name="numSamples" type="long"/>
  26576. <param name="sum" type="long"/>
  26577. <doc>
  26578. <![CDATA[Add a number of samples and their sum to the running stat
  26579. @param numSamples number of samples
  26580. @param sum of the samples]]>
  26581. </doc>
  26582. </method>
  26583. <method name="add"
  26584. abstract="false" native="false" synchronized="true"
  26585. static="false" final="false" visibility="public"
  26586. deprecated="not deprecated">
  26587. <param name="value" type="long"/>
  26588. <doc>
  26589. <![CDATA[Add a snapshot to the metric
  26590. @param value of the metric]]>
  26591. </doc>
  26592. </method>
  26593. <method name="snapshot"
  26594. abstract="false" native="false" synchronized="true"
  26595. static="false" final="false" visibility="public"
  26596. deprecated="not deprecated">
  26597. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26598. <param name="all" type="boolean"/>
  26599. </method>
  26600. <method name="resetMinMax"
  26601. abstract="false" native="false" synchronized="false"
  26602. static="false" final="false" visibility="public"
  26603. deprecated="not deprecated">
  26604. <doc>
  26605. <![CDATA[Reset the all time min max of the metric]]>
  26606. </doc>
  26607. </method>
  26608. <doc>
  26609. <![CDATA[A mutable metric with stats
  26610. Useful for keep throughput/latency stats.
  26611. e.g., new MetricMutableStat("rpcName", "rpcName stats", "ops", "time");]]>
  26612. </doc>
  26613. </class>
  26614. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  26615. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  26616. <class name="MetricsRegistry" extends="java.lang.Object"
  26617. abstract="false"
  26618. static="false" final="false" visibility="public"
  26619. deprecated="not deprecated">
  26620. <constructor name="MetricsRegistry" type="java.lang.String"
  26621. static="false" final="false" visibility="public"
  26622. deprecated="not deprecated">
  26623. <doc>
  26624. <![CDATA[Construct the registry with a record name
  26625. @param name of the record of the metrics]]>
  26626. </doc>
  26627. </constructor>
  26628. <constructor name="MetricsRegistry" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  26629. static="false" final="false" visibility="public"
  26630. deprecated="not deprecated">
  26631. <doc>
  26632. <![CDATA[Construct the registry with a name and a metric factory
  26633. @param name of the record of the metrics
  26634. @param factory for creating new mutable metrics]]>
  26635. </doc>
  26636. </constructor>
  26637. <method name="name" return="java.lang.String"
  26638. abstract="false" native="false" synchronized="false"
  26639. static="false" final="false" visibility="public"
  26640. deprecated="not deprecated">
  26641. <doc>
  26642. <![CDATA[@return the name of the metrics registry]]>
  26643. </doc>
  26644. </method>
  26645. <method name="get" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  26646. abstract="false" native="false" synchronized="false"
  26647. static="false" final="false" visibility="public"
  26648. deprecated="not deprecated">
  26649. <param name="name" type="java.lang.String"/>
  26650. <doc>
  26651. <![CDATA[Get a metric by name
  26652. @param name of the metric
  26653. @return the metric object]]>
  26654. </doc>
  26655. </method>
  26656. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  26657. abstract="false" native="false" synchronized="false"
  26658. static="false" final="false" visibility="public"
  26659. deprecated="not deprecated">
  26660. <param name="name" type="java.lang.String"/>
  26661. <param name="description" type="java.lang.String"/>
  26662. <param name="initValue" type="int"/>
  26663. <doc>
  26664. <![CDATA[Create a mutable integer counter
  26665. @param name of the metric
  26666. @param description of the metric
  26667. @param initValue of the metric
  26668. @return a new counter object]]>
  26669. </doc>
  26670. </method>
  26671. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  26672. abstract="false" native="false" synchronized="false"
  26673. static="false" final="false" visibility="public"
  26674. deprecated="not deprecated">
  26675. <param name="name" type="java.lang.String"/>
  26676. <param name="description" type="java.lang.String"/>
  26677. <param name="initValue" type="long"/>
  26678. <doc>
  26679. <![CDATA[Create a mutable long integer counter
  26680. @param name of the metric
  26681. @param description of the metric
  26682. @param initValue of the metric
  26683. @return a new counter object]]>
  26684. </doc>
  26685. </method>
  26686. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  26687. abstract="false" native="false" synchronized="false"
  26688. static="false" final="false" visibility="public"
  26689. deprecated="not deprecated">
  26690. <param name="name" type="java.lang.String"/>
  26691. <param name="description" type="java.lang.String"/>
  26692. <param name="initValue" type="int"/>
  26693. <doc>
  26694. <![CDATA[Create a mutable integer gauge
  26695. @param name of the metric
  26696. @param description of the metric
  26697. @param initValue of the metric
  26698. @return a new gauge object]]>
  26699. </doc>
  26700. </method>
  26701. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  26702. abstract="false" native="false" synchronized="false"
  26703. static="false" final="false" visibility="public"
  26704. deprecated="not deprecated">
  26705. <param name="name" type="java.lang.String"/>
  26706. <param name="description" type="java.lang.String"/>
  26707. <param name="initValue" type="long"/>
  26708. <doc>
  26709. <![CDATA[Create a mutable long integer gauge
  26710. @param name of the metric
  26711. @param description of the metric
  26712. @param initValue of the metric
  26713. @return a new gauge object]]>
  26714. </doc>
  26715. </method>
  26716. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26717. abstract="false" native="false" synchronized="false"
  26718. static="false" final="false" visibility="public"
  26719. deprecated="not deprecated">
  26720. <param name="name" type="java.lang.String"/>
  26721. <param name="description" type="java.lang.String"/>
  26722. <param name="sampleName" type="java.lang.String"/>
  26723. <param name="valueName" type="java.lang.String"/>
  26724. <param name="extended" type="boolean"/>
  26725. <doc>
  26726. <![CDATA[Create a mutable metric with stats
  26727. @param name of the metric
  26728. @param description of the metric
  26729. @param sampleName of the metric (e.g., "ops")
  26730. @param valueName of the metric (e.g., "time" or "latency")
  26731. @param extended produce extended stat (stdev, min/max etc.) if true.
  26732. @return a new metric object]]>
  26733. </doc>
  26734. </method>
  26735. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26736. abstract="false" native="false" synchronized="false"
  26737. static="false" final="false" visibility="public"
  26738. deprecated="not deprecated">
  26739. <param name="name" type="java.lang.String"/>
  26740. <param name="description" type="java.lang.String"/>
  26741. <param name="sampleName" type="java.lang.String"/>
  26742. <param name="valueName" type="java.lang.String"/>
  26743. <doc>
  26744. <![CDATA[Create a mutable metric with stats
  26745. @param name of the metric
  26746. @param description of the metric
  26747. @param sampleName of the metric (e.g., "ops")
  26748. @param valueName of the metric (e.g., "time" or "latency")
  26749. @return a new metric object]]>
  26750. </doc>
  26751. </method>
  26752. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26753. abstract="false" native="false" synchronized="false"
  26754. static="false" final="false" visibility="public"
  26755. deprecated="not deprecated">
  26756. <param name="name" type="java.lang.String"/>
  26757. <doc>
  26758. <![CDATA[Create a mutable metric with stats using the name only
  26759. @param name of the metric
  26760. @return a new metric object]]>
  26761. </doc>
  26762. </method>
  26763. <method name="incr"
  26764. abstract="false" native="false" synchronized="false"
  26765. static="false" final="false" visibility="public"
  26766. deprecated="not deprecated">
  26767. <param name="name" type="java.lang.String"/>
  26768. <doc>
  26769. <![CDATA[Increment a metric by name.
  26770. @param name of the metric]]>
  26771. </doc>
  26772. </method>
  26773. <method name="incr"
  26774. abstract="false" native="false" synchronized="false"
  26775. static="false" final="false" visibility="public"
  26776. deprecated="not deprecated">
  26777. <param name="name" type="java.lang.String"/>
  26778. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  26779. <doc>
  26780. <![CDATA[Increment a metric by name.
  26781. @param name of the metric
  26782. @param factory to lazily create the metric if not null]]>
  26783. </doc>
  26784. </method>
  26785. <method name="decr"
  26786. abstract="false" native="false" synchronized="false"
  26787. static="false" final="false" visibility="public"
  26788. deprecated="not deprecated">
  26789. <param name="name" type="java.lang.String"/>
  26790. <doc>
  26791. <![CDATA[Decrement a metric by name.
  26792. @param name of the metric]]>
  26793. </doc>
  26794. </method>
  26795. <method name="decr"
  26796. abstract="false" native="false" synchronized="false"
  26797. static="false" final="false" visibility="public"
  26798. deprecated="not deprecated">
  26799. <param name="name" type="java.lang.String"/>
  26800. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  26801. <doc>
  26802. <![CDATA[Decrement a metric by name.
  26803. @param name of the metric
  26804. @param factory to lazily create the metric if not null]]>
  26805. </doc>
  26806. </method>
  26807. <method name="add"
  26808. abstract="false" native="false" synchronized="false"
  26809. static="false" final="false" visibility="public"
  26810. deprecated="not deprecated">
  26811. <param name="name" type="java.lang.String"/>
  26812. <param name="value" type="long"/>
  26813. <doc>
  26814. <![CDATA[Add a value to a metric by name.
  26815. @param name of the metric
  26816. @param value of the snapshot to add]]>
  26817. </doc>
  26818. </method>
  26819. <method name="add"
  26820. abstract="false" native="false" synchronized="false"
  26821. static="false" final="false" visibility="public"
  26822. deprecated="not deprecated">
  26823. <param name="name" type="java.lang.String"/>
  26824. <param name="value" type="long"/>
  26825. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  26826. <doc>
  26827. <![CDATA[Decrement a metric by name.
  26828. @param name of the metric
  26829. @param value of the snapshot to add
  26830. @param factory to lazily create the metric if not null]]>
  26831. </doc>
  26832. </method>
  26833. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26834. abstract="false" native="false" synchronized="false"
  26835. static="false" final="false" visibility="public"
  26836. deprecated="not deprecated">
  26837. <param name="name" type="java.lang.String"/>
  26838. <doc>
  26839. <![CDATA[Set the metrics context tag
  26840. @param name of the context
  26841. @return the registry itself as a convenience]]>
  26842. </doc>
  26843. </method>
  26844. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26845. abstract="false" native="false" synchronized="false"
  26846. static="false" final="false" visibility="public"
  26847. deprecated="not deprecated">
  26848. <param name="name" type="java.lang.String"/>
  26849. <param name="description" type="java.lang.String"/>
  26850. <param name="value" type="java.lang.String"/>
  26851. <doc>
  26852. <![CDATA[Add a tag to the metrics
  26853. @param name of the tag
  26854. @param description of the tag
  26855. @param value of the tag
  26856. @return the registry (for keep adding tags)]]>
  26857. </doc>
  26858. </method>
  26859. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26860. abstract="false" native="false" synchronized="false"
  26861. static="false" final="false" visibility="public"
  26862. deprecated="not deprecated">
  26863. <param name="name" type="java.lang.String"/>
  26864. <param name="description" type="java.lang.String"/>
  26865. <param name="value" type="java.lang.String"/>
  26866. <param name="override" type="boolean"/>
  26867. <doc>
  26868. <![CDATA[Add a tag to the metrics
  26869. @param name of the tag
  26870. @param description of the tag
  26871. @param value of the tag
  26872. @param override existing tag if true
  26873. @return the registry (for keep adding tags)]]>
  26874. </doc>
  26875. </method>
  26876. <method name="tags" return="java.util.Set"
  26877. abstract="false" native="false" synchronized="false"
  26878. static="false" final="false" visibility="public"
  26879. deprecated="not deprecated">
  26880. <doc>
  26881. <![CDATA[Get the tags
  26882. @return the tags set]]>
  26883. </doc>
  26884. </method>
  26885. <method name="metrics" return="java.util.Set"
  26886. abstract="false" native="false" synchronized="false"
  26887. static="false" final="false" visibility="public"
  26888. deprecated="not deprecated">
  26889. <doc>
  26890. <![CDATA[Get the metrics
  26891. @return the metrics set]]>
  26892. </doc>
  26893. </method>
  26894. <method name="snapshot"
  26895. abstract="false" native="false" synchronized="false"
  26896. static="false" final="false" visibility="public"
  26897. deprecated="not deprecated">
  26898. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26899. <param name="all" type="boolean"/>
  26900. <doc>
  26901. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  26902. @param builder to contain the metrics snapshot
  26903. @param all get all the metrics even if the values are not changed.]]>
  26904. </doc>
  26905. </method>
  26906. <field name="CONTEXT_KEY" type="java.lang.String"
  26907. transient="false" volatile="false"
  26908. static="true" final="true" visibility="public"
  26909. deprecated="not deprecated">
  26910. <doc>
  26911. <![CDATA[key for the context tag]]>
  26912. </doc>
  26913. </field>
  26914. <field name="CONTEXT_DESC" type="java.lang.String"
  26915. transient="false" volatile="false"
  26916. static="true" final="true" visibility="public"
  26917. deprecated="not deprecated">
  26918. <doc>
  26919. <![CDATA[description for the context tag]]>
  26920. </doc>
  26921. </field>
  26922. <doc>
  26923. <![CDATA[An optional metrics registry class for creating and maintaining a
  26924. collection of MetricsMutables, making writing metrics source easier.]]>
  26925. </doc>
  26926. </class>
  26927. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  26928. </package>
  26929. <package name="org.apache.hadoop.metrics2.sink">
  26930. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  26931. <class name="FileSink" extends="java.lang.Object"
  26932. abstract="false"
  26933. static="false" final="false" visibility="public"
  26934. deprecated="not deprecated">
  26935. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26936. <constructor name="FileSink"
  26937. static="false" final="false" visibility="public"
  26938. deprecated="not deprecated">
  26939. </constructor>
  26940. <method name="init"
  26941. abstract="false" native="false" synchronized="false"
  26942. static="false" final="false" visibility="public"
  26943. deprecated="not deprecated">
  26944. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26945. </method>
  26946. <method name="putMetrics"
  26947. abstract="false" native="false" synchronized="false"
  26948. static="false" final="false" visibility="public"
  26949. deprecated="not deprecated">
  26950. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26951. </method>
  26952. <method name="flush"
  26953. abstract="false" native="false" synchronized="false"
  26954. static="false" final="false" visibility="public"
  26955. deprecated="not deprecated">
  26956. </method>
  26957. </class>
  26958. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  26959. </package>
  26960. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  26961. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  26962. <class name="AbstractGangliaSink" extends="java.lang.Object"
  26963. abstract="true"
  26964. static="false" final="false" visibility="public"
  26965. deprecated="not deprecated">
  26966. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26967. <constructor name="AbstractGangliaSink"
  26968. static="false" final="false" visibility="public"
  26969. deprecated="not deprecated">
  26970. </constructor>
  26971. <method name="init"
  26972. abstract="false" native="false" synchronized="false"
  26973. static="false" final="false" visibility="public"
  26974. deprecated="not deprecated">
  26975. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26976. </method>
  26977. <method name="flush"
  26978. abstract="false" native="false" synchronized="false"
  26979. static="false" final="false" visibility="public"
  26980. deprecated="not deprecated">
  26981. </method>
  26982. <method name="getGangliaConfForMetric" return="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"
  26983. abstract="false" native="false" synchronized="false"
  26984. static="false" final="false" visibility="protected"
  26985. deprecated="not deprecated">
  26986. <param name="metricName" type="java.lang.String"/>
  26987. <doc>
  26988. <![CDATA[Lookup GangliaConf from cache. If not found, return default values
  26989. @param metricName
  26990. @return looked up GangliaConf]]>
  26991. </doc>
  26992. </method>
  26993. <method name="getHostName" return="java.lang.String"
  26994. abstract="false" native="false" synchronized="false"
  26995. static="false" final="false" visibility="protected"
  26996. deprecated="not deprecated">
  26997. <doc>
  26998. <![CDATA[@return the hostName]]>
  26999. </doc>
  27000. </method>
  27001. <method name="xdr_string"
  27002. abstract="false" native="false" synchronized="false"
  27003. static="false" final="false" visibility="protected"
  27004. deprecated="not deprecated">
  27005. <param name="s" type="java.lang.String"/>
  27006. <doc>
  27007. <![CDATA[Puts a string into the buffer by first writing the size of the string as an
  27008. int, followed by the bytes of the string, padded if necessary to a multiple
  27009. of 4.
  27010. @param s the string to be written to buffer at offset location]]>
  27011. </doc>
  27012. </method>
  27013. <method name="xdr_int"
  27014. abstract="false" native="false" synchronized="false"
  27015. static="false" final="false" visibility="protected"
  27016. deprecated="not deprecated">
  27017. <param name="i" type="int"/>
  27018. <doc>
  27019. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  27020. </doc>
  27021. </method>
  27022. <method name="emitToGangliaHosts"
  27023. abstract="false" native="false" synchronized="false"
  27024. static="false" final="false" visibility="protected"
  27025. deprecated="not deprecated">
  27026. <exception name="IOException" type="java.io.IOException"/>
  27027. <doc>
  27028. <![CDATA[Sends Ganglia Metrics to the configured hosts
  27029. @throws IOException]]>
  27030. </doc>
  27031. </method>
  27032. <method name="isSupportSparseMetrics" return="boolean"
  27033. abstract="false" native="false" synchronized="false"
  27034. static="false" final="false" visibility="protected"
  27035. deprecated="not deprecated">
  27036. <doc>
  27037. <![CDATA[@return whether sparse metrics are supported]]>
  27038. </doc>
  27039. </method>
  27040. <field name="LOG" type="org.apache.commons.logging.Log"
  27041. transient="false" volatile="false"
  27042. static="false" final="true" visibility="public"
  27043. deprecated="not deprecated">
  27044. </field>
  27045. <field name="DEFAULT_UNITS" type="java.lang.String"
  27046. transient="false" volatile="false"
  27047. static="true" final="true" visibility="public"
  27048. deprecated="not deprecated">
  27049. </field>
  27050. <field name="DEFAULT_TMAX" type="int"
  27051. transient="false" volatile="false"
  27052. static="true" final="true" visibility="public"
  27053. deprecated="not deprecated">
  27054. </field>
  27055. <field name="DEFAULT_DMAX" type="int"
  27056. transient="false" volatile="false"
  27057. static="true" final="true" visibility="public"
  27058. deprecated="not deprecated">
  27059. </field>
  27060. <field name="DEFAULT_SLOPE" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27061. transient="false" volatile="false"
  27062. static="true" final="true" visibility="public"
  27063. deprecated="not deprecated">
  27064. </field>
  27065. <field name="DEFAULT_PORT" type="int"
  27066. transient="false" volatile="false"
  27067. static="true" final="true" visibility="public"
  27068. deprecated="not deprecated">
  27069. </field>
  27070. <field name="SERVERS_PROPERTY" type="java.lang.String"
  27071. transient="false" volatile="false"
  27072. static="true" final="true" visibility="public"
  27073. deprecated="not deprecated">
  27074. </field>
  27075. <field name="BUFFER_SIZE" type="int"
  27076. transient="false" volatile="false"
  27077. static="true" final="true" visibility="public"
  27078. deprecated="not deprecated">
  27079. </field>
  27080. <field name="SUPPORT_SPARSE_METRICS_PROPERTY" type="java.lang.String"
  27081. transient="false" volatile="false"
  27082. static="true" final="true" visibility="public"
  27083. deprecated="not deprecated">
  27084. </field>
  27085. <field name="SUPPORT_SPARSE_METRICS_DEFAULT" type="boolean"
  27086. transient="false" volatile="false"
  27087. static="true" final="true" visibility="public"
  27088. deprecated="not deprecated">
  27089. </field>
  27090. <field name="EQUAL" type="java.lang.String"
  27091. transient="false" volatile="false"
  27092. static="true" final="true" visibility="public"
  27093. deprecated="not deprecated">
  27094. </field>
  27095. <field name="gangliaMetricVisitor" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaMetricVisitor"
  27096. transient="false" volatile="false"
  27097. static="false" final="true" visibility="protected"
  27098. deprecated="not deprecated">
  27099. <doc>
  27100. <![CDATA[Used for visiting Metrics]]>
  27101. </doc>
  27102. </field>
  27103. <doc>
  27104. <![CDATA[This the base class for Ganglia sink classes using metrics2. Lot of the code
  27105. has been derived from org.apache.hadoop.metrics.ganglia.GangliaContext.
  27106. As per the documentation, sink implementations doesn't have to worry about
  27107. thread safety. Hence the code wasn't written for thread safety and should
  27108. be modified in case the above assumption changes in the future.]]>
  27109. </doc>
  27110. </class>
  27111. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  27112. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  27113. <class name="AbstractGangliaSink.GangliaConfType" extends="java.lang.Enum"
  27114. abstract="false"
  27115. static="true" final="true" visibility="public"
  27116. deprecated="not deprecated">
  27117. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType[]"
  27118. abstract="false" native="false" synchronized="false"
  27119. static="true" final="false" visibility="public"
  27120. deprecated="not deprecated">
  27121. </method>
  27122. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27123. abstract="false" native="false" synchronized="false"
  27124. static="true" final="false" visibility="public"
  27125. deprecated="not deprecated">
  27126. <param name="name" type="java.lang.String"/>
  27127. </method>
  27128. <field name="slope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27129. transient="false" volatile="false"
  27130. static="true" final="true" visibility="public"
  27131. deprecated="not deprecated">
  27132. </field>
  27133. <field name="units" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27134. transient="false" volatile="false"
  27135. static="true" final="true" visibility="public"
  27136. deprecated="not deprecated">
  27137. </field>
  27138. <field name="dmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27139. transient="false" volatile="false"
  27140. static="true" final="true" visibility="public"
  27141. deprecated="not deprecated">
  27142. </field>
  27143. <field name="tmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27144. transient="false" volatile="false"
  27145. static="true" final="true" visibility="public"
  27146. deprecated="not deprecated">
  27147. </field>
  27148. <doc>
  27149. <![CDATA[define enum for various type of conf]]>
  27150. </doc>
  27151. </class>
  27152. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  27153. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  27154. <class name="AbstractGangliaSink.GangliaSlope" extends="java.lang.Enum"
  27155. abstract="false"
  27156. static="true" final="true" visibility="public"
  27157. deprecated="not deprecated">
  27158. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope[]"
  27159. abstract="false" native="false" synchronized="false"
  27160. static="true" final="false" visibility="public"
  27161. deprecated="not deprecated">
  27162. </method>
  27163. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27164. abstract="false" native="false" synchronized="false"
  27165. static="true" final="false" visibility="public"
  27166. deprecated="not deprecated">
  27167. <param name="name" type="java.lang.String"/>
  27168. </method>
  27169. <field name="zero" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27170. transient="false" volatile="false"
  27171. static="true" final="true" visibility="public"
  27172. deprecated="not deprecated">
  27173. </field>
  27174. <field name="positive" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27175. transient="false" volatile="false"
  27176. static="true" final="true" visibility="public"
  27177. deprecated="not deprecated">
  27178. </field>
  27179. <field name="negative" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27180. transient="false" volatile="false"
  27181. static="true" final="true" visibility="public"
  27182. deprecated="not deprecated">
  27183. </field>
  27184. <field name="both" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27185. transient="false" volatile="false"
  27186. static="true" final="true" visibility="public"
  27187. deprecated="not deprecated">
  27188. </field>
  27189. <doc>
  27190. <![CDATA[ganglia slope values which equal the ordinal]]>
  27191. </doc>
  27192. </class>
  27193. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  27194. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  27195. <class name="GangliaSink30" extends="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink"
  27196. abstract="false"
  27197. static="false" final="false" visibility="public"
  27198. deprecated="not deprecated">
  27199. <constructor name="GangliaSink30"
  27200. static="false" final="false" visibility="public"
  27201. deprecated="not deprecated">
  27202. </constructor>
  27203. <method name="putMetrics"
  27204. abstract="false" native="false" synchronized="false"
  27205. static="false" final="false" visibility="public"
  27206. deprecated="not deprecated">
  27207. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27208. </method>
  27209. <method name="emitMetric"
  27210. abstract="false" native="false" synchronized="false"
  27211. static="false" final="false" visibility="protected"
  27212. deprecated="not deprecated">
  27213. <param name="groupName" type="java.lang.String"/>
  27214. <param name="name" type="java.lang.String"/>
  27215. <param name="type" type="java.lang.String"/>
  27216. <param name="value" type="java.lang.String"/>
  27217. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  27218. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  27219. <exception name="IOException" type="java.io.IOException"/>
  27220. <doc>
  27221. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  27222. org.apache.hadoop.metrics.ganglia.GangliaContext30 with minimal changes in
  27223. order to keep it in sync.
  27224. @param groupName The group name of the metric
  27225. @param name The metric name
  27226. @param type The type of the metric
  27227. @param value The value of the metric
  27228. @param gConf The GangliaConf for this metric
  27229. @param gSlope The slope for this metric
  27230. @throws IOException]]>
  27231. </doc>
  27232. </method>
  27233. <field name="LOG" type="org.apache.commons.logging.Log"
  27234. transient="false" volatile="false"
  27235. static="false" final="true" visibility="public"
  27236. deprecated="not deprecated">
  27237. </field>
  27238. <field name="metricsCache" type="org.apache.hadoop.metrics2.util.MetricsCache"
  27239. transient="false" volatile="false"
  27240. static="false" final="false" visibility="protected"
  27241. deprecated="not deprecated">
  27242. </field>
  27243. <doc>
  27244. <![CDATA[This code supports Ganglia 3.0]]>
  27245. </doc>
  27246. </class>
  27247. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  27248. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  27249. <class name="GangliaSink31" extends="org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30"
  27250. abstract="false"
  27251. static="false" final="false" visibility="public"
  27252. deprecated="not deprecated">
  27253. <constructor name="GangliaSink31"
  27254. static="false" final="false" visibility="public"
  27255. deprecated="not deprecated">
  27256. </constructor>
  27257. <method name="emitMetric"
  27258. abstract="false" native="false" synchronized="false"
  27259. static="false" final="false" visibility="protected"
  27260. deprecated="not deprecated">
  27261. <param name="groupName" type="java.lang.String"/>
  27262. <param name="name" type="java.lang.String"/>
  27263. <param name="type" type="java.lang.String"/>
  27264. <param name="value" type="java.lang.String"/>
  27265. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  27266. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  27267. <exception name="IOException" type="java.io.IOException"/>
  27268. <doc>
  27269. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  27270. org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in
  27271. order to keep it in sync.
  27272. @param groupName The group name of the metric
  27273. @param name The metric name
  27274. @param type The type of the metric
  27275. @param value The value of the metric
  27276. @param gConf The GangliaConf for this metric
  27277. @param gSlope The slope for this metric
  27278. @throws IOException]]>
  27279. </doc>
  27280. </method>
  27281. <field name="LOG" type="org.apache.commons.logging.Log"
  27282. transient="false" volatile="false"
  27283. static="false" final="true" visibility="public"
  27284. deprecated="not deprecated">
  27285. </field>
  27286. <doc>
  27287. <![CDATA[This code supports Ganglia 3.1]]>
  27288. </doc>
  27289. </class>
  27290. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  27291. </package>
  27292. <package name="org.apache.hadoop.metrics2.source">
  27293. <!-- start class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  27294. <class name="JvmMetricsSource" extends="java.lang.Object"
  27295. abstract="false"
  27296. static="false" final="false" visibility="public"
  27297. deprecated="not deprecated">
  27298. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  27299. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  27300. abstract="false" native="false" synchronized="false"
  27301. static="true" final="false" visibility="public"
  27302. deprecated="not deprecated">
  27303. <param name="processName" type="java.lang.String"/>
  27304. <param name="sessionId" type="java.lang.String"/>
  27305. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  27306. </method>
  27307. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  27308. abstract="false" native="false" synchronized="false"
  27309. static="true" final="false" visibility="public"
  27310. deprecated="not deprecated">
  27311. <param name="processName" type="java.lang.String"/>
  27312. <param name="sessionId" type="java.lang.String"/>
  27313. </method>
  27314. <method name="getMetrics"
  27315. abstract="false" native="false" synchronized="false"
  27316. static="false" final="false" visibility="public"
  27317. deprecated="not deprecated">
  27318. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  27319. <param name="all" type="boolean"/>
  27320. </method>
  27321. </class>
  27322. <!-- end class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  27323. </package>
  27324. <package name="org.apache.hadoop.metrics2.util">
  27325. <!-- start class org.apache.hadoop.metrics2.util.Contracts -->
  27326. <class name="Contracts" extends="java.lang.Object"
  27327. abstract="false"
  27328. static="false" final="false" visibility="public"
  27329. deprecated="not deprecated">
  27330. <method name="checkNotNull" return="java.lang.Object"
  27331. abstract="false" native="false" synchronized="false"
  27332. static="true" final="false" visibility="public"
  27333. deprecated="not deprecated">
  27334. <param name="ref" type="java.lang.Object"/>
  27335. <param name="msg" type="java.lang.Object"/>
  27336. <doc>
  27337. <![CDATA[Check that a reference is not null.
  27338. @param <T> type of the reference
  27339. @param ref the reference to check
  27340. @param msg the error message
  27341. @throws NullPointerException if {@code ref} is null
  27342. @return the checked reference for convenience]]>
  27343. </doc>
  27344. </method>
  27345. <method name="checkState"
  27346. abstract="false" native="false" synchronized="false"
  27347. static="true" final="false" visibility="public"
  27348. deprecated="not deprecated">
  27349. <param name="expression" type="boolean"/>
  27350. <param name="msg" type="java.lang.Object"/>
  27351. <doc>
  27352. <![CDATA[Check the state expression for false conditions
  27353. @param expression the boolean expression to check
  27354. @param msg the error message if {@code expression} is false
  27355. @throws IllegalStateException if {@code expression} is false]]>
  27356. </doc>
  27357. </method>
  27358. <method name="checkArg" return="java.lang.Object"
  27359. abstract="false" native="false" synchronized="false"
  27360. static="true" final="false" visibility="public"
  27361. deprecated="not deprecated">
  27362. <param name="arg" type="java.lang.Object"/>
  27363. <param name="expression" type="boolean"/>
  27364. <param name="msg" type="java.lang.Object"/>
  27365. <doc>
  27366. <![CDATA[Check an argument for false conditions
  27367. @param <T> type of the argument
  27368. @param arg the argument to check
  27369. @param expression the boolean expression for the condition
  27370. @param msg the error message if {@code expression} is false
  27371. @return the argument for convenience]]>
  27372. </doc>
  27373. </method>
  27374. <method name="checkArg" return="int"
  27375. abstract="false" native="false" synchronized="false"
  27376. static="true" final="false" visibility="public"
  27377. deprecated="not deprecated">
  27378. <param name="arg" type="int"/>
  27379. <param name="expression" type="boolean"/>
  27380. <param name="msg" type="java.lang.Object"/>
  27381. <doc>
  27382. <![CDATA[Check an argument for false conditions
  27383. @param arg the argument to check
  27384. @param expression the boolean expression for the condition
  27385. @param msg the error message if {@code expression} is false
  27386. @return the argument for convenience]]>
  27387. </doc>
  27388. </method>
  27389. <method name="checkArg" return="long"
  27390. abstract="false" native="false" synchronized="false"
  27391. static="true" final="false" visibility="public"
  27392. deprecated="not deprecated">
  27393. <param name="arg" type="long"/>
  27394. <param name="expression" type="boolean"/>
  27395. <param name="msg" type="java.lang.Object"/>
  27396. <doc>
  27397. <![CDATA[Check an argument for false conditions
  27398. @param arg the argument to check
  27399. @param expression the boolean expression for the condition
  27400. @param msg the error message if {@code expression} is false
  27401. @return the argument for convenience]]>
  27402. </doc>
  27403. </method>
  27404. <method name="checkArg" return="float"
  27405. abstract="false" native="false" synchronized="false"
  27406. static="true" final="false" visibility="public"
  27407. deprecated="not deprecated">
  27408. <param name="arg" type="float"/>
  27409. <param name="expression" type="boolean"/>
  27410. <param name="msg" type="java.lang.Object"/>
  27411. <doc>
  27412. <![CDATA[Check an argument for false conditions
  27413. @param arg the argument to check
  27414. @param expression the boolean expression for the condition
  27415. @param msg the error message if {@code expression} is false
  27416. @return the argument for convenience]]>
  27417. </doc>
  27418. </method>
  27419. <method name="checkArg" return="double"
  27420. abstract="false" native="false" synchronized="false"
  27421. static="true" final="false" visibility="public"
  27422. deprecated="not deprecated">
  27423. <param name="arg" type="double"/>
  27424. <param name="expression" type="boolean"/>
  27425. <param name="msg" type="java.lang.Object"/>
  27426. <doc>
  27427. <![CDATA[Check an argument for false conditions
  27428. @param arg the argument to check
  27429. @param expression the boolean expression for the condition
  27430. @param msg the error message if {@code expression} is false
  27431. @return the argument for convenience]]>
  27432. </doc>
  27433. </method>
  27434. <doc>
  27435. <![CDATA[Utilities for programming by contract (preconditions, postconditions etc.)]]>
  27436. </doc>
  27437. </class>
  27438. <!-- end class org.apache.hadoop.metrics2.util.Contracts -->
  27439. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  27440. <class name="MBeans" extends="java.lang.Object"
  27441. abstract="false"
  27442. static="false" final="false" visibility="public"
  27443. deprecated="not deprecated">
  27444. <constructor name="MBeans"
  27445. static="false" final="false" visibility="public"
  27446. deprecated="not deprecated">
  27447. </constructor>
  27448. <method name="register" return="javax.management.ObjectName"
  27449. abstract="false" native="false" synchronized="false"
  27450. static="true" final="false" visibility="public"
  27451. deprecated="not deprecated">
  27452. <param name="serviceName" type="java.lang.String"/>
  27453. <param name="nameName" type="java.lang.String"/>
  27454. <param name="theMbean" type="java.lang.Object"/>
  27455. <doc>
  27456. <![CDATA[Register the MBean using our standard MBeanName format
  27457. "hadoop:service=<serviceName>,name=<nameName>"
  27458. Where the <serviceName> and <nameName> are the supplied parameters
  27459. @param serviceName
  27460. @param nameName
  27461. @param theMbean - the MBean to register
  27462. @return the named used to register the MBean]]>
  27463. </doc>
  27464. </method>
  27465. <method name="unregister"
  27466. abstract="false" native="false" synchronized="false"
  27467. static="true" final="false" visibility="public"
  27468. deprecated="not deprecated">
  27469. <param name="mbeanName" type="javax.management.ObjectName"/>
  27470. </method>
  27471. <doc>
  27472. <![CDATA[This util class provides a method to register an MBean using
  27473. our standard naming convention as described in the doc
  27474. for {link {@link #register(String, String, Object)}]]>
  27475. </doc>
  27476. </class>
  27477. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  27478. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  27479. <class name="MetricsCache" extends="java.lang.Object"
  27480. abstract="false"
  27481. static="false" final="false" visibility="public"
  27482. deprecated="not deprecated">
  27483. <constructor name="MetricsCache"
  27484. static="false" final="false" visibility="public"
  27485. deprecated="not deprecated">
  27486. </constructor>
  27487. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  27488. abstract="false" native="false" synchronized="false"
  27489. static="false" final="false" visibility="public"
  27490. deprecated="not deprecated">
  27491. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27492. <param name="includingTags" type="boolean"/>
  27493. <doc>
  27494. <![CDATA[Update the cache and return the cached record
  27495. @param mr the update record
  27496. @param includingTags cache tag values (for later lookup by name) if true
  27497. @return the updated cached record]]>
  27498. </doc>
  27499. </method>
  27500. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  27501. abstract="false" native="false" synchronized="false"
  27502. static="false" final="false" visibility="public"
  27503. deprecated="not deprecated">
  27504. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27505. </method>
  27506. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  27507. abstract="false" native="false" synchronized="false"
  27508. static="false" final="false" visibility="public"
  27509. deprecated="not deprecated">
  27510. <param name="name" type="java.lang.String"/>
  27511. <param name="tags" type="java.util.Collection"/>
  27512. <doc>
  27513. <![CDATA[Get the cached record
  27514. @param name of the record
  27515. @param tags of the record
  27516. @return the cached record or null]]>
  27517. </doc>
  27518. </method>
  27519. <doc>
  27520. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  27521. </doc>
  27522. </class>
  27523. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  27524. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  27525. <class name="MetricsCache.Record" extends="java.lang.Object"
  27526. abstract="false"
  27527. static="true" final="false" visibility="public"
  27528. deprecated="not deprecated">
  27529. <constructor name="MetricsCache.Record"
  27530. static="false" final="false" visibility="public"
  27531. deprecated="not deprecated">
  27532. </constructor>
  27533. <method name="getTag" return="java.lang.String"
  27534. abstract="false" native="false" synchronized="false"
  27535. static="false" final="false" visibility="public"
  27536. deprecated="not deprecated">
  27537. <param name="key" type="java.lang.String"/>
  27538. <doc>
  27539. <![CDATA[Get the tag value
  27540. @param key name of the tag
  27541. @return the tag value]]>
  27542. </doc>
  27543. </method>
  27544. <method name="getMetric" return="java.lang.Number"
  27545. abstract="false" native="false" synchronized="false"
  27546. static="false" final="false" visibility="public"
  27547. deprecated="not deprecated">
  27548. <param name="key" type="java.lang.String"/>
  27549. <doc>
  27550. <![CDATA[Get the metric value
  27551. @param key name of the metric
  27552. @return the metric value]]>
  27553. </doc>
  27554. </method>
  27555. <method name="getMetricInstance" return="org.apache.hadoop.metrics2.Metric"
  27556. abstract="false" native="false" synchronized="false"
  27557. static="false" final="false" visibility="public"
  27558. deprecated="not deprecated">
  27559. <param name="key" type="java.lang.String"/>
  27560. <doc>
  27561. <![CDATA[Get the metric value
  27562. @param key name of the metric
  27563. @return the metric value]]>
  27564. </doc>
  27565. </method>
  27566. <method name="metrics" return="java.util.Set"
  27567. abstract="false" native="false" synchronized="false"
  27568. static="false" final="false" visibility="public"
  27569. deprecated="not deprecated">
  27570. <doc>
  27571. <![CDATA[@return entry set of metrics]]>
  27572. </doc>
  27573. </method>
  27574. <method name="metricsEntrySet" return="java.util.Set"
  27575. abstract="false" native="false" synchronized="false"
  27576. static="false" final="false" visibility="public"
  27577. deprecated="not deprecated">
  27578. <doc>
  27579. <![CDATA[@return entry set of metrics]]>
  27580. </doc>
  27581. </method>
  27582. <doc>
  27583. <![CDATA[Cached record]]>
  27584. </doc>
  27585. </class>
  27586. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  27587. <!-- start class org.apache.hadoop.metrics2.util.SampleStat -->
  27588. <class name="SampleStat" extends="java.lang.Object"
  27589. abstract="false"
  27590. static="false" final="false" visibility="public"
  27591. deprecated="not deprecated">
  27592. <constructor name="SampleStat"
  27593. static="false" final="false" visibility="public"
  27594. deprecated="not deprecated">
  27595. <doc>
  27596. <![CDATA[Construct a new running sample stat]]>
  27597. </doc>
  27598. </constructor>
  27599. <method name="reset"
  27600. abstract="false" native="false" synchronized="false"
  27601. static="false" final="false" visibility="public"
  27602. deprecated="not deprecated">
  27603. </method>
  27604. <method name="copyTo"
  27605. abstract="false" native="false" synchronized="false"
  27606. static="false" final="false" visibility="public"
  27607. deprecated="not deprecated">
  27608. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat"/>
  27609. <doc>
  27610. <![CDATA[Copy the values to other (saves object creation and gc.)
  27611. @param other the destination to hold our values]]>
  27612. </doc>
  27613. </method>
  27614. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  27615. abstract="false" native="false" synchronized="false"
  27616. static="false" final="false" visibility="public"
  27617. deprecated="not deprecated">
  27618. <param name="x" type="double"/>
  27619. <doc>
  27620. <![CDATA[Add a sample the running stat.
  27621. @param x the sample number
  27622. @return self]]>
  27623. </doc>
  27624. </method>
  27625. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  27626. abstract="false" native="false" synchronized="false"
  27627. static="false" final="false" visibility="public"
  27628. deprecated="not deprecated">
  27629. <param name="nSamples" type="long"/>
  27630. <param name="x" type="double"/>
  27631. <doc>
  27632. <![CDATA[Add some sample and a partial sum to the running stat.
  27633. Note, min/max is not evaluated using this method.
  27634. @param nSamples number of samples
  27635. @param x the partial sum
  27636. @return self]]>
  27637. </doc>
  27638. </method>
  27639. <method name="numSamples" return="long"
  27640. abstract="false" native="false" synchronized="false"
  27641. static="false" final="false" visibility="public"
  27642. deprecated="not deprecated">
  27643. <doc>
  27644. <![CDATA[@return the total number of samples]]>
  27645. </doc>
  27646. </method>
  27647. <method name="mean" return="double"
  27648. abstract="false" native="false" synchronized="false"
  27649. static="false" final="false" visibility="public"
  27650. deprecated="not deprecated">
  27651. <doc>
  27652. <![CDATA[@return the arithmetic mean of the samples]]>
  27653. </doc>
  27654. </method>
  27655. <method name="variance" return="double"
  27656. abstract="false" native="false" synchronized="false"
  27657. static="false" final="false" visibility="public"
  27658. deprecated="not deprecated">
  27659. <doc>
  27660. <![CDATA[@return the variance of the samples]]>
  27661. </doc>
  27662. </method>
  27663. <method name="stddev" return="double"
  27664. abstract="false" native="false" synchronized="false"
  27665. static="false" final="false" visibility="public"
  27666. deprecated="not deprecated">
  27667. <doc>
  27668. <![CDATA[@return the standard deviation of the samples]]>
  27669. </doc>
  27670. </method>
  27671. <method name="min" return="double"
  27672. abstract="false" native="false" synchronized="false"
  27673. static="false" final="false" visibility="public"
  27674. deprecated="not deprecated">
  27675. <doc>
  27676. <![CDATA[@return the minimum value of the samples]]>
  27677. </doc>
  27678. </method>
  27679. <method name="max" return="double"
  27680. abstract="false" native="false" synchronized="false"
  27681. static="false" final="false" visibility="public"
  27682. deprecated="not deprecated">
  27683. <doc>
  27684. <![CDATA[@return the maximum value of the samples]]>
  27685. </doc>
  27686. </method>
  27687. <doc>
  27688. <![CDATA[Helper to compute running sample stats]]>
  27689. </doc>
  27690. </class>
  27691. <!-- end class org.apache.hadoop.metrics2.util.SampleStat -->
  27692. <!-- start class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  27693. <class name="SampleStat.MinMax" extends="java.lang.Object"
  27694. abstract="false"
  27695. static="true" final="false" visibility="public"
  27696. deprecated="not deprecated">
  27697. <constructor name="SampleStat.MinMax"
  27698. static="false" final="false" visibility="public"
  27699. deprecated="not deprecated">
  27700. </constructor>
  27701. <method name="add"
  27702. abstract="false" native="false" synchronized="false"
  27703. static="false" final="false" visibility="public"
  27704. deprecated="not deprecated">
  27705. <param name="value" type="double"/>
  27706. </method>
  27707. <method name="min" return="double"
  27708. abstract="false" native="false" synchronized="false"
  27709. static="false" final="false" visibility="public"
  27710. deprecated="not deprecated">
  27711. </method>
  27712. <method name="max" return="double"
  27713. abstract="false" native="false" synchronized="false"
  27714. static="false" final="false" visibility="public"
  27715. deprecated="not deprecated">
  27716. </method>
  27717. <method name="reset"
  27718. abstract="false" native="false" synchronized="false"
  27719. static="false" final="false" visibility="public"
  27720. deprecated="not deprecated">
  27721. </method>
  27722. <method name="reset"
  27723. abstract="false" native="false" synchronized="false"
  27724. static="false" final="false" visibility="public"
  27725. deprecated="not deprecated">
  27726. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat.MinMax"/>
  27727. </method>
  27728. <doc>
  27729. <![CDATA[Helper to keep running min/max]]>
  27730. </doc>
  27731. </class>
  27732. <!-- end class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  27733. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  27734. <class name="Servers" extends="java.lang.Object"
  27735. abstract="false"
  27736. static="false" final="false" visibility="public"
  27737. deprecated="not deprecated">
  27738. <method name="parse" return="java.util.List"
  27739. abstract="false" native="false" synchronized="false"
  27740. static="true" final="false" visibility="public"
  27741. deprecated="not deprecated">
  27742. <param name="specs" type="java.lang.String"/>
  27743. <param name="defaultPort" type="int"/>
  27744. <doc>
  27745. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  27746. of the form <i>hostname</i> or <i>hostname:port</i>. If
  27747. the specs string is null, defaults to localhost:defaultPort.
  27748. @param specs server specs (see description)
  27749. @param defaultPort the default port if not specified
  27750. @return a list of InetSocketAddress objects.]]>
  27751. </doc>
  27752. </method>
  27753. <doc>
  27754. <![CDATA[Helpers to handle server addresses]]>
  27755. </doc>
  27756. </class>
  27757. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  27758. <!-- start class org.apache.hadoop.metrics2.util.TryIterator -->
  27759. <class name="TryIterator" extends="java.lang.Object"
  27760. abstract="true"
  27761. static="false" final="false" visibility="public"
  27762. deprecated="not deprecated">
  27763. <implements name="java.util.Iterator"/>
  27764. <constructor name="TryIterator"
  27765. static="false" final="false" visibility="public"
  27766. deprecated="not deprecated">
  27767. </constructor>
  27768. <method name="tryNext" return="java.lang.Object"
  27769. abstract="true" native="false" synchronized="false"
  27770. static="false" final="false" visibility="protected"
  27771. deprecated="not deprecated">
  27772. <doc>
  27773. <![CDATA[Return the next element. Must call {@link #done()} when done, otherwise
  27774. infinite loop could occur. If this method throws an exception, any
  27775. further attempts to use the iterator would result in an
  27776. {@link IllegalStateException}.
  27777. @return the next element if there is one or return {@link #done()}]]>
  27778. </doc>
  27779. </method>
  27780. <method name="done" return="java.lang.Object"
  27781. abstract="false" native="false" synchronized="false"
  27782. static="false" final="true" visibility="protected"
  27783. deprecated="not deprecated">
  27784. <doc>
  27785. <![CDATA[Implementations of {@link #tryNext} <b>must</b> call this method
  27786. when there are no more elements left in the iteration.
  27787. @return null as a convenience to implement {@link #tryNext()}]]>
  27788. </doc>
  27789. </method>
  27790. <method name="hasNext" return="boolean"
  27791. abstract="false" native="false" synchronized="false"
  27792. static="false" final="true" visibility="public"
  27793. deprecated="not deprecated">
  27794. <doc>
  27795. <![CDATA[@return true if we have a next element or false otherwise.]]>
  27796. </doc>
  27797. </method>
  27798. <method name="next" return="java.lang.Object"
  27799. abstract="false" native="false" synchronized="false"
  27800. static="false" final="true" visibility="public"
  27801. deprecated="not deprecated">
  27802. <doc>
  27803. <![CDATA[@return the next element if we have one.]]>
  27804. </doc>
  27805. </method>
  27806. <method name="current" return="java.lang.Object"
  27807. abstract="false" native="false" synchronized="false"
  27808. static="false" final="true" visibility="public"
  27809. deprecated="not deprecated">
  27810. <doc>
  27811. <![CDATA[@return the current element without advancing the iterator]]>
  27812. </doc>
  27813. </method>
  27814. <method name="remove"
  27815. abstract="false" native="false" synchronized="false"
  27816. static="false" final="true" visibility="public"
  27817. deprecated="not deprecated">
  27818. <doc>
  27819. <![CDATA[Guaranteed to throw UnsupportedOperationException]]>
  27820. </doc>
  27821. </method>
  27822. <doc>
  27823. <![CDATA[A base class for unmodifiable iterators (throws on remove)
  27824. This class also makes writing filtering iterators easier, where the only
  27825. way to discover the end of data is by trying to read it. The same applies
  27826. to writing iterator wrappers around stream read calls.
  27827. One only needs to implement the tryNext() method and call done() when done.
  27828. @param <T> the type of the iterator]]>
  27829. </doc>
  27830. </class>
  27831. <!-- end class org.apache.hadoop.metrics2.util.TryIterator -->
  27832. </package>
  27833. <package name="org.apache.hadoop.net">
  27834. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  27835. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  27836. abstract="false"
  27837. static="false" final="false" visibility="public"
  27838. deprecated="not deprecated">
  27839. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  27840. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  27841. static="false" final="false" visibility="public"
  27842. deprecated="not deprecated">
  27843. </constructor>
  27844. <method name="resolve" return="java.util.List"
  27845. abstract="false" native="false" synchronized="false"
  27846. static="false" final="false" visibility="public"
  27847. deprecated="not deprecated">
  27848. <param name="names" type="java.util.List"/>
  27849. </method>
  27850. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  27851. transient="false" volatile="false"
  27852. static="false" final="false" visibility="protected"
  27853. deprecated="not deprecated">
  27854. </field>
  27855. <doc>
  27856. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  27857. raw DNSToSwitchMapping and stores the resolved network location in
  27858. a cache. The following calls to a resolved network location
  27859. will get its location from the cache.]]>
  27860. </doc>
  27861. </class>
  27862. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  27863. <!-- start class org.apache.hadoop.net.DNS -->
  27864. <class name="DNS" extends="java.lang.Object"
  27865. abstract="false"
  27866. static="false" final="false" visibility="public"
  27867. deprecated="not deprecated">
  27868. <constructor name="DNS"
  27869. static="false" final="false" visibility="public"
  27870. deprecated="not deprecated">
  27871. </constructor>
  27872. <method name="reverseDns" return="java.lang.String"
  27873. abstract="false" native="false" synchronized="false"
  27874. static="true" final="false" visibility="public"
  27875. deprecated="not deprecated">
  27876. <param name="hostIp" type="java.net.InetAddress"/>
  27877. <param name="ns" type="java.lang.String"/>
  27878. <exception name="NamingException" type="javax.naming.NamingException"/>
  27879. <doc>
  27880. <![CDATA[Returns the hostname associated with the specified IP address by the
  27881. provided nameserver.
  27882. @param hostIp
  27883. The address to reverse lookup
  27884. @param ns
  27885. The host name of a reachable DNS server
  27886. @return The host name associated with the provided IP
  27887. @throws NamingException
  27888. If a NamingException is encountered]]>
  27889. </doc>
  27890. </method>
  27891. <method name="getIPs" return="java.lang.String[]"
  27892. abstract="false" native="false" synchronized="false"
  27893. static="true" final="false" visibility="public"
  27894. deprecated="not deprecated">
  27895. <param name="strInterface" type="java.lang.String"/>
  27896. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27897. <doc>
  27898. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  27899. textual form.
  27900. @param strInterface
  27901. The name of the network interface to query (e.g. eth0)
  27902. @return A string vector of all the IPs associated with the provided
  27903. interface
  27904. @throws UnknownHostException
  27905. If an UnknownHostException is encountered in querying the
  27906. default interface]]>
  27907. </doc>
  27908. </method>
  27909. <method name="getDefaultIP" return="java.lang.String"
  27910. abstract="false" native="false" synchronized="false"
  27911. static="true" final="false" visibility="public"
  27912. deprecated="not deprecated">
  27913. <param name="strInterface" type="java.lang.String"/>
  27914. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27915. <doc>
  27916. <![CDATA[Returns the first available IP address associated with the provided
  27917. network interface
  27918. @param strInterface
  27919. The name of the network interface to query (e.g. eth0)
  27920. @return The IP address in text form
  27921. @throws UnknownHostException
  27922. If one is encountered in querying the default interface]]>
  27923. </doc>
  27924. </method>
  27925. <method name="getHosts" return="java.lang.String[]"
  27926. abstract="false" native="false" synchronized="false"
  27927. static="true" final="false" visibility="public"
  27928. deprecated="not deprecated">
  27929. <param name="strInterface" type="java.lang.String"/>
  27930. <param name="nameserver" type="java.lang.String"/>
  27931. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27932. <doc>
  27933. <![CDATA[Returns all the host names associated by the provided nameserver with the
  27934. address bound to the specified network interface
  27935. @param strInterface
  27936. The name of the network interface to query (e.g. eth0)
  27937. @param nameserver
  27938. The DNS host name
  27939. @return A string vector of all host names associated with the IPs tied to
  27940. the specified interface
  27941. @throws UnknownHostException]]>
  27942. </doc>
  27943. </method>
  27944. <method name="getHosts" return="java.lang.String[]"
  27945. abstract="false" native="false" synchronized="false"
  27946. static="true" final="false" visibility="public"
  27947. deprecated="not deprecated">
  27948. <param name="strInterface" type="java.lang.String"/>
  27949. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27950. <doc>
  27951. <![CDATA[Returns all the host names associated by the default nameserver with the
  27952. address bound to the specified network interface
  27953. @param strInterface
  27954. The name of the network interface to query (e.g. eth0)
  27955. @return The list of host names associated with IPs bound to the network
  27956. interface
  27957. @throws UnknownHostException
  27958. If one is encountered while querying the deault interface]]>
  27959. </doc>
  27960. </method>
  27961. <method name="getDefaultHost" return="java.lang.String"
  27962. abstract="false" native="false" synchronized="false"
  27963. static="true" final="false" visibility="public"
  27964. deprecated="not deprecated">
  27965. <param name="strInterface" type="java.lang.String"/>
  27966. <param name="nameserver" type="java.lang.String"/>
  27967. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27968. <doc>
  27969. <![CDATA[Returns the default (first) host name associated by the provided
  27970. nameserver with the address bound to the specified network interface
  27971. @param strInterface
  27972. The name of the network interface to query (e.g. eth0)
  27973. @param nameserver
  27974. The DNS host name
  27975. @return The default host names associated with IPs bound to the network
  27976. interface
  27977. @throws UnknownHostException
  27978. If one is encountered while querying the deault interface]]>
  27979. </doc>
  27980. </method>
  27981. <method name="getDefaultHost" return="java.lang.String"
  27982. abstract="false" native="false" synchronized="false"
  27983. static="true" final="false" visibility="public"
  27984. deprecated="not deprecated">
  27985. <param name="strInterface" type="java.lang.String"/>
  27986. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  27987. <doc>
  27988. <![CDATA[Returns the default (first) host name associated by the default
  27989. nameserver with the address bound to the specified network interface
  27990. @param strInterface
  27991. The name of the network interface to query (e.g. eth0)
  27992. @return The default host name associated with IPs bound to the network
  27993. interface
  27994. @throws UnknownHostException
  27995. If one is encountered while querying the deault interface]]>
  27996. </doc>
  27997. </method>
  27998. <doc>
  27999. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  28000. the querying of specific network interfaces or nameservers.]]>
  28001. </doc>
  28002. </class>
  28003. <!-- end class org.apache.hadoop.net.DNS -->
  28004. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  28005. <interface name="DNSToSwitchMapping" abstract="true"
  28006. static="false" final="false" visibility="public"
  28007. deprecated="not deprecated">
  28008. <method name="resolve" return="java.util.List"
  28009. abstract="false" native="false" synchronized="false"
  28010. static="false" final="false" visibility="public"
  28011. deprecated="not deprecated">
  28012. <param name="names" type="java.util.List"/>
  28013. <doc>
  28014. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  28015. switch information (network paths). One-to-one correspondence must be
  28016. maintained between the elements in the lists.
  28017. Consider an element in the argument list - x.y.com. The switch information
  28018. that is returned must be a network path of the form /foo/rack,
  28019. where / is the root, and 'foo' is the switch where 'rack' is connected.
  28020. Note the hostname/ip-address is not part of the returned path.
  28021. The network topology of the cluster would determine the number of
  28022. components in the network path.
  28023. @param names
  28024. @return list of resolved network paths]]>
  28025. </doc>
  28026. </method>
  28027. <doc>
  28028. <![CDATA[An interface that should be implemented to allow pluggable
  28029. DNS-name/IP-address to RackID resolvers.]]>
  28030. </doc>
  28031. </interface>
  28032. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  28033. <!-- start class org.apache.hadoop.net.NetUtils -->
  28034. <class name="NetUtils" extends="java.lang.Object"
  28035. abstract="false"
  28036. static="false" final="false" visibility="public"
  28037. deprecated="not deprecated">
  28038. <constructor name="NetUtils"
  28039. static="false" final="false" visibility="public"
  28040. deprecated="not deprecated">
  28041. </constructor>
  28042. <method name="setUseQualifiedHostResolver"
  28043. abstract="false" native="false" synchronized="false"
  28044. static="true" final="false" visibility="public"
  28045. deprecated="not deprecated">
  28046. <param name="flag" type="boolean"/>
  28047. <doc>
  28048. <![CDATA[This method is intended for use only by SecurityUtils!
  28049. @param flag where the qualified or standard host resolver is used
  28050. to create socket addresses]]>
  28051. </doc>
  28052. </method>
  28053. <method name="getSocketFactory" return="javax.net.SocketFactory"
  28054. abstract="false" native="false" synchronized="false"
  28055. static="true" final="false" visibility="public"
  28056. deprecated="not deprecated">
  28057. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28058. <param name="clazz" type="java.lang.Class"/>
  28059. <doc>
  28060. <![CDATA[Get the socket factory for the given class according to its
  28061. configuration parameter
  28062. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  28063. such parameter exists then fall back on the default socket factory as
  28064. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  28065. this default socket factory is not configured, then fall back on the JVM
  28066. default socket factory.
  28067. @param conf the configuration
  28068. @param clazz the class (usually a {@link VersionedProtocol})
  28069. @return a socket factory]]>
  28070. </doc>
  28071. </method>
  28072. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  28073. abstract="false" native="false" synchronized="false"
  28074. static="true" final="false" visibility="public"
  28075. deprecated="not deprecated">
  28076. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28077. <doc>
  28078. <![CDATA[Get the default socket factory as specified by the configuration
  28079. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  28080. @param conf the configuration
  28081. @return the default socket factory as specified in the configuration or
  28082. the JVM default socket factory if the configuration does not
  28083. contain a default socket factory property.]]>
  28084. </doc>
  28085. </method>
  28086. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  28087. abstract="false" native="false" synchronized="false"
  28088. static="true" final="false" visibility="public"
  28089. deprecated="not deprecated">
  28090. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28091. <param name="propValue" type="java.lang.String"/>
  28092. <doc>
  28093. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  28094. given proxy URI corresponds to an absence of configuration parameter,
  28095. returns null. If the URI is malformed raises an exception.
  28096. @param propValue the property which is the class name of the
  28097. SocketFactory to instantiate; assumed non null and non empty.
  28098. @return a socket factory as defined in the property value.]]>
  28099. </doc>
  28100. </method>
  28101. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  28102. abstract="false" native="false" synchronized="false"
  28103. static="true" final="false" visibility="public"
  28104. deprecated="not deprecated">
  28105. <param name="target" type="java.lang.String"/>
  28106. <doc>
  28107. <![CDATA[Util method to build socket addr from either:
  28108. <host>:<post>
  28109. <fs>://<host>:<port>/<path>]]>
  28110. </doc>
  28111. </method>
  28112. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  28113. abstract="false" native="false" synchronized="false"
  28114. static="true" final="false" visibility="public"
  28115. deprecated="not deprecated">
  28116. <param name="target" type="java.lang.String"/>
  28117. <param name="defaultPort" type="int"/>
  28118. <doc>
  28119. <![CDATA[Util method to build socket addr from either:
  28120. <host>
  28121. <host>:<post>
  28122. <fs>://<host>:<port>/<path>]]>
  28123. </doc>
  28124. </method>
  28125. <method name="makeSocketAddr" return="java.net.InetSocketAddress"
  28126. abstract="false" native="false" synchronized="false"
  28127. static="true" final="false" visibility="public"
  28128. deprecated="not deprecated">
  28129. <param name="host" type="java.lang.String"/>
  28130. <param name="port" type="int"/>
  28131. <doc>
  28132. <![CDATA[Create a socket address with the given host and port. The hostname
  28133. might be replaced with another host that was set via
  28134. {@link #addStaticResolution(String, String)}. The value of
  28135. hadoop.security.token.service.use_ip will determine whether the
  28136. standard java host resolver is used, or if the fully qualified resolver
  28137. is used.
  28138. @param host the hostname or IP use to instantiate the object
  28139. @param port the port number
  28140. @return InetSocketAddress]]>
  28141. </doc>
  28142. </method>
  28143. <method name="getServerAddress" return="java.lang.String"
  28144. abstract="false" native="false" synchronized="false"
  28145. static="true" final="false" visibility="public"
  28146. deprecated="not deprecated">
  28147. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28148. <param name="oldBindAddressName" type="java.lang.String"/>
  28149. <param name="oldPortName" type="java.lang.String"/>
  28150. <param name="newBindAddressName" type="java.lang.String"/>
  28151. <doc>
  28152. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  28153. to a single colon separated one.
  28154. @param conf the configuration to check
  28155. @param oldBindAddressName the old address attribute name
  28156. @param oldPortName the old port attribute name
  28157. @param newBindAddressName the new combined name
  28158. @return the complete address from the configuration]]>
  28159. </doc>
  28160. </method>
  28161. <method name="addStaticResolution"
  28162. abstract="false" native="false" synchronized="false"
  28163. static="true" final="false" visibility="public"
  28164. deprecated="not deprecated">
  28165. <param name="host" type="java.lang.String"/>
  28166. <param name="resolvedName" type="java.lang.String"/>
  28167. <doc>
  28168. <![CDATA[Adds a static resolution for host. This can be used for setting up
  28169. hostnames with names that are fake to point to a well known host. For e.g.
  28170. in some testcases we require to have daemons with different hostnames
  28171. running on the same machine. In order to create connections to these
  28172. daemons, one can set up mappings from those hostnames to "localhost".
  28173. {@link NetUtils#getStaticResolution(String)} can be used to query for
  28174. the actual hostname.
  28175. @param host
  28176. @param resolvedName]]>
  28177. </doc>
  28178. </method>
  28179. <method name="getStaticResolution" return="java.lang.String"
  28180. abstract="false" native="false" synchronized="false"
  28181. static="true" final="false" visibility="public"
  28182. deprecated="not deprecated">
  28183. <param name="host" type="java.lang.String"/>
  28184. <doc>
  28185. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  28186. have been set earlier using
  28187. {@link NetUtils#addStaticResolution(String, String)}
  28188. @param host
  28189. @return the resolution]]>
  28190. </doc>
  28191. </method>
  28192. <method name="getAllStaticResolutions" return="java.util.List"
  28193. abstract="false" native="false" synchronized="false"
  28194. static="true" final="false" visibility="public"
  28195. deprecated="not deprecated">
  28196. <doc>
  28197. <![CDATA[This is used to get all the resolutions that were added using
  28198. {@link NetUtils#addStaticResolution(String, String)}. The return
  28199. value is a List each element of which contains an array of String
  28200. of the form String[0]=hostname, String[1]=resolved-hostname
  28201. @return the list of resolutions]]>
  28202. </doc>
  28203. </method>
  28204. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  28205. abstract="false" native="false" synchronized="false"
  28206. static="true" final="false" visibility="public"
  28207. deprecated="not deprecated">
  28208. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  28209. <doc>
  28210. <![CDATA[Returns InetSocketAddress that a client can use to
  28211. connect to the server. Server.getListenerAddress() is not correct when
  28212. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  28213. the getListenerAddress() returns "0.0.0.0:port".
  28214. @param server
  28215. @return socket address that a client can use to connect to the server.]]>
  28216. </doc>
  28217. </method>
  28218. <method name="getInputStream" return="java.io.InputStream"
  28219. abstract="false" native="false" synchronized="false"
  28220. static="true" final="false" visibility="public"
  28221. deprecated="not deprecated">
  28222. <param name="socket" type="java.net.Socket"/>
  28223. <exception name="IOException" type="java.io.IOException"/>
  28224. <doc>
  28225. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  28226. From documentation for {@link #getInputStream(Socket, long)}:<br>
  28227. Returns InputStream for the socket. If the socket has an associated
  28228. SocketChannel then it returns a
  28229. {@link SocketInputStream} with the given timeout. If the socket does not
  28230. have a channel, {@link Socket#getInputStream()} is returned. In the later
  28231. case, the timeout argument is ignored and the timeout set with
  28232. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  28233. Any socket created using socket factories returned by {@link NetUtils},
  28234. must use this interface instead of {@link Socket#getInputStream()}.
  28235. @see #getInputStream(Socket, long)
  28236. @param socket
  28237. @return InputStream for reading from the socket.
  28238. @throws IOException]]>
  28239. </doc>
  28240. </method>
  28241. <method name="getInputStream" return="java.io.InputStream"
  28242. abstract="false" native="false" synchronized="false"
  28243. static="true" final="false" visibility="public"
  28244. deprecated="not deprecated">
  28245. <param name="socket" type="java.net.Socket"/>
  28246. <param name="timeout" type="long"/>
  28247. <exception name="IOException" type="java.io.IOException"/>
  28248. <doc>
  28249. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  28250. SocketChannel then it returns a
  28251. {@link SocketInputStream} with the given timeout. If the socket does not
  28252. have a channel, {@link Socket#getInputStream()} is returned. In the later
  28253. case, the timeout argument is ignored and the timeout set with
  28254. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  28255. Any socket created using socket factories returned by {@link NetUtils},
  28256. must use this interface instead of {@link Socket#getInputStream()}.
  28257. @see Socket#getChannel()
  28258. @param socket
  28259. @param timeout timeout in milliseconds. This may not always apply. zero
  28260. for waiting as long as necessary.
  28261. @return InputStream for reading from the socket.
  28262. @throws IOException]]>
  28263. </doc>
  28264. </method>
  28265. <method name="getOutputStream" return="java.io.OutputStream"
  28266. abstract="false" native="false" synchronized="false"
  28267. static="true" final="false" visibility="public"
  28268. deprecated="not deprecated">
  28269. <param name="socket" type="java.net.Socket"/>
  28270. <exception name="IOException" type="java.io.IOException"/>
  28271. <doc>
  28272. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  28273. wait until data is available.<br><br>
  28274. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  28275. Returns OutputStream for the socket. If the socket has an associated
  28276. SocketChannel then it returns a
  28277. {@link SocketOutputStream} with the given timeout. If the socket does not
  28278. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  28279. case, the timeout argument is ignored and the write will wait until
  28280. data is available.<br><br>
  28281. Any socket created using socket factories returned by {@link NetUtils},
  28282. must use this interface instead of {@link Socket#getOutputStream()}.
  28283. @see #getOutputStream(Socket, long)
  28284. @param socket
  28285. @return OutputStream for writing to the socket.
  28286. @throws IOException]]>
  28287. </doc>
  28288. </method>
  28289. <method name="getOutputStream" return="java.io.OutputStream"
  28290. abstract="false" native="false" synchronized="false"
  28291. static="true" final="false" visibility="public"
  28292. deprecated="not deprecated">
  28293. <param name="socket" type="java.net.Socket"/>
  28294. <param name="timeout" type="long"/>
  28295. <exception name="IOException" type="java.io.IOException"/>
  28296. <doc>
  28297. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  28298. SocketChannel then it returns a
  28299. {@link SocketOutputStream} with the given timeout. If the socket does not
  28300. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  28301. case, the timeout argument is ignored and the write will wait until
  28302. data is available.<br><br>
  28303. Any socket created using socket factories returned by {@link NetUtils},
  28304. must use this interface instead of {@link Socket#getOutputStream()}.
  28305. @see Socket#getChannel()
  28306. @param socket
  28307. @param timeout timeout in milliseconds. This may not always apply. zero
  28308. for waiting as long as necessary.
  28309. @return OutputStream for writing to the socket.
  28310. @throws IOException]]>
  28311. </doc>
  28312. </method>
  28313. <method name="connect"
  28314. abstract="false" native="false" synchronized="false"
  28315. static="true" final="false" visibility="public"
  28316. deprecated="not deprecated">
  28317. <param name="socket" type="java.net.Socket"/>
  28318. <param name="endpoint" type="java.net.SocketAddress"/>
  28319. <param name="timeout" type="int"/>
  28320. <exception name="IOException" type="java.io.IOException"/>
  28321. <doc>
  28322. <![CDATA[This is a drop-in replacement for
  28323. {@link Socket#connect(SocketAddress, int)}.
  28324. In the case of normal sockets that don't have associated channels, this
  28325. just invokes <code>socket.connect(endpoint, timeout)</code>. If
  28326. <code>socket.getChannel()</code> returns a non-null channel,
  28327. connect is implemented using Hadoop's selectors. This is done mainly
  28328. to avoid Sun's connect implementation from creating thread-local
  28329. selectors, since Hadoop does not have control on when these are closed
  28330. and could end up taking all the available file descriptors.
  28331. @see java.net.Socket#connect(java.net.SocketAddress, int)
  28332. @param socket
  28333. @param endpoint
  28334. @param timeout - timeout in milliseconds]]>
  28335. </doc>
  28336. </method>
  28337. <method name="normalizeHostName" return="java.lang.String"
  28338. abstract="false" native="false" synchronized="false"
  28339. static="true" final="false" visibility="public"
  28340. deprecated="not deprecated">
  28341. <param name="name" type="java.lang.String"/>
  28342. <doc>
  28343. <![CDATA[Given a string representation of a host, return its ip address
  28344. in textual presentation.
  28345. @param name a string representation of a host:
  28346. either a textual representation its IP address or its host name
  28347. @return its IP address in the string format]]>
  28348. </doc>
  28349. </method>
  28350. <method name="normalizeHostNames" return="java.util.List"
  28351. abstract="false" native="false" synchronized="false"
  28352. static="true" final="false" visibility="public"
  28353. deprecated="not deprecated">
  28354. <param name="names" type="java.util.Collection"/>
  28355. <doc>
  28356. <![CDATA[Given a collection of string representation of hosts, return a list of
  28357. corresponding IP addresses in the textual representation.
  28358. @param names a collection of string representations of hosts
  28359. @return a list of corresponding IP addresses in the string format
  28360. @see #normalizeHostName(String)]]>
  28361. </doc>
  28362. </method>
  28363. <method name="verifyHostnames"
  28364. abstract="false" native="false" synchronized="false"
  28365. static="true" final="false" visibility="public"
  28366. deprecated="not deprecated">
  28367. <param name="names" type="java.lang.String[]"/>
  28368. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28369. <doc>
  28370. <![CDATA[Performs a sanity check on the list of hostnames/IPs to verify they at least
  28371. appear to be valid.
  28372. @param names - List of hostnames/IPs
  28373. @throws UnknownHostException]]>
  28374. </doc>
  28375. </method>
  28376. <method name="getLocalInetAddress" return="java.net.InetAddress"
  28377. abstract="false" native="false" synchronized="false"
  28378. static="true" final="false" visibility="public"
  28379. deprecated="not deprecated">
  28380. <param name="host" type="java.lang.String"/>
  28381. <exception name="SocketException" type="java.net.SocketException"/>
  28382. <doc>
  28383. <![CDATA[Checks if {@code host} is a local host name and return {@link InetAddress}
  28384. corresponding to that address.
  28385. @param host the specified host
  28386. @return a valid local {@link InetAddress} or null
  28387. @throws SocketException if an I/O error occurs]]>
  28388. </doc>
  28389. </method>
  28390. </class>
  28391. <!-- end class org.apache.hadoop.net.NetUtils -->
  28392. <!-- start interface org.apache.hadoop.net.NetUtils.HostResolver -->
  28393. <interface name="NetUtils.HostResolver" abstract="true"
  28394. static="true" final="false" visibility="protected"
  28395. deprecated="not deprecated">
  28396. <method name="getByName" return="java.net.InetAddress"
  28397. abstract="false" native="false" synchronized="false"
  28398. static="false" final="false" visibility="public"
  28399. deprecated="not deprecated">
  28400. <param name="host" type="java.lang.String"/>
  28401. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28402. </method>
  28403. </interface>
  28404. <!-- end interface org.apache.hadoop.net.NetUtils.HostResolver -->
  28405. <!-- start class org.apache.hadoop.net.NetUtils.QualifiedHostResolver -->
  28406. <class name="NetUtils.QualifiedHostResolver" extends="java.lang.Object"
  28407. abstract="false"
  28408. static="true" final="false" visibility="protected"
  28409. deprecated="not deprecated">
  28410. <implements name="org.apache.hadoop.net.NetUtils.HostResolver"/>
  28411. <constructor name="NetUtils.QualifiedHostResolver"
  28412. static="false" final="false" visibility="protected"
  28413. deprecated="not deprecated">
  28414. </constructor>
  28415. <method name="getByName" return="java.net.InetAddress"
  28416. abstract="false" native="false" synchronized="false"
  28417. static="false" final="false" visibility="public"
  28418. deprecated="not deprecated">
  28419. <param name="host" type="java.lang.String"/>
  28420. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28421. <doc>
  28422. <![CDATA[Create an InetAddress with a fully qualified hostname of the given
  28423. hostname. InetAddress does not qualify an incomplete hostname that
  28424. is resolved via the domain search list.
  28425. {@link InetAddress#getCanonicalHostName()} will fully qualify the
  28426. hostname, but it always return the A record whereas the given hostname
  28427. may be a CNAME.
  28428. @param host a hostname or ip address
  28429. @return InetAddress with the fully qualified hostname or ip
  28430. @throws UnknownHostException if host does not exist]]>
  28431. </doc>
  28432. </method>
  28433. <doc>
  28434. <![CDATA[This an alternate resolver with important properties that the standard
  28435. java resolver lacks:
  28436. 1) The hostname is fully qualified. This avoids security issues if not
  28437. all hosts in the cluster do not share the same search domains. It
  28438. also prevents other hosts from performing unnecessary dns searches.
  28439. In contrast, InetAddress simply returns the host as given.
  28440. 2) The InetAddress is instantiated with an exact host and IP to prevent
  28441. further unnecessary lookups. InetAddress may perform an unnecessary
  28442. reverse lookup for an IP.
  28443. 3) A call to getHostName() will always return the qualified hostname, or
  28444. more importantly, the IP if instantiated with an IP. This avoids
  28445. unnecessary dns timeouts if the host is not resolvable.
  28446. 4) Point 3 also ensures that if the host is re-resolved, ex. during a
  28447. connection re-attempt, that a reverse lookup to host and forward
  28448. lookup to IP is not performed since the reverse/forward mappings may
  28449. not always return the same IP. If the client initiated a connection
  28450. with an IP, then that IP is all that should ever be contacted.
  28451. NOTE: this resolver is only used if:
  28452. hadoop.security.token.service.use_ip=false]]>
  28453. </doc>
  28454. </class>
  28455. <!-- end class org.apache.hadoop.net.NetUtils.QualifiedHostResolver -->
  28456. <!-- start class org.apache.hadoop.net.NetUtils.StandardHostResolver -->
  28457. <class name="NetUtils.StandardHostResolver" extends="java.lang.Object"
  28458. abstract="false"
  28459. static="true" final="false" visibility="protected"
  28460. deprecated="not deprecated">
  28461. <implements name="org.apache.hadoop.net.NetUtils.HostResolver"/>
  28462. <constructor name="NetUtils.StandardHostResolver"
  28463. static="false" final="false" visibility="protected"
  28464. deprecated="not deprecated">
  28465. </constructor>
  28466. <method name="getByName" return="java.net.InetAddress"
  28467. abstract="false" native="false" synchronized="false"
  28468. static="false" final="false" visibility="public"
  28469. deprecated="not deprecated">
  28470. <param name="host" type="java.lang.String"/>
  28471. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28472. </method>
  28473. <doc>
  28474. <![CDATA[Uses standard java host resolution]]>
  28475. </doc>
  28476. </class>
  28477. <!-- end class org.apache.hadoop.net.NetUtils.StandardHostResolver -->
  28478. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  28479. <class name="NetworkTopology" extends="java.lang.Object"
  28480. abstract="false"
  28481. static="false" final="false" visibility="public"
  28482. deprecated="not deprecated">
  28483. <constructor name="NetworkTopology"
  28484. static="false" final="false" visibility="public"
  28485. deprecated="not deprecated">
  28486. </constructor>
  28487. <method name="add"
  28488. abstract="false" native="false" synchronized="false"
  28489. static="false" final="false" visibility="public"
  28490. deprecated="not deprecated">
  28491. <param name="node" type="org.apache.hadoop.net.Node"/>
  28492. <doc>
  28493. <![CDATA[Add a leaf node
  28494. Update node counter & rack counter if neccessary
  28495. @param node
  28496. node to be added
  28497. @exception IllegalArgumentException if add a node to a leave
  28498. or node to be added is not a leaf]]>
  28499. </doc>
  28500. </method>
  28501. <method name="remove"
  28502. abstract="false" native="false" synchronized="false"
  28503. static="false" final="false" visibility="public"
  28504. deprecated="not deprecated">
  28505. <param name="node" type="org.apache.hadoop.net.Node"/>
  28506. <doc>
  28507. <![CDATA[Remove a node
  28508. Update node counter & rack counter if neccessary
  28509. @param node
  28510. node to be removed]]>
  28511. </doc>
  28512. </method>
  28513. <method name="contains" return="boolean"
  28514. abstract="false" native="false" synchronized="false"
  28515. static="false" final="false" visibility="public"
  28516. deprecated="not deprecated">
  28517. <param name="node" type="org.apache.hadoop.net.Node"/>
  28518. <doc>
  28519. <![CDATA[Check if the tree contains node <i>node</i>
  28520. @param node
  28521. a node
  28522. @return true if <i>node</i> is already in the tree; false otherwise]]>
  28523. </doc>
  28524. </method>
  28525. <method name="getNode" return="org.apache.hadoop.net.Node"
  28526. abstract="false" native="false" synchronized="false"
  28527. static="false" final="false" visibility="public"
  28528. deprecated="not deprecated">
  28529. <param name="loc" type="java.lang.String"/>
  28530. <doc>
  28531. <![CDATA[Given a string representation of a node, return its reference
  28532. @param loc
  28533. a path-like string representation of a node
  28534. @return a reference to the node; null if the node is not in the tree]]>
  28535. </doc>
  28536. </method>
  28537. <method name="getNumOfRacks" return="int"
  28538. abstract="false" native="false" synchronized="false"
  28539. static="false" final="false" visibility="public"
  28540. deprecated="not deprecated">
  28541. <doc>
  28542. <![CDATA[Return the total number of racks]]>
  28543. </doc>
  28544. </method>
  28545. <method name="getNumOfLeaves" return="int"
  28546. abstract="false" native="false" synchronized="false"
  28547. static="false" final="false" visibility="public"
  28548. deprecated="not deprecated">
  28549. <doc>
  28550. <![CDATA[Return the total number of nodes]]>
  28551. </doc>
  28552. </method>
  28553. <method name="getDistance" return="int"
  28554. abstract="false" native="false" synchronized="false"
  28555. static="false" final="false" visibility="public"
  28556. deprecated="not deprecated">
  28557. <param name="node1" type="org.apache.hadoop.net.Node"/>
  28558. <param name="node2" type="org.apache.hadoop.net.Node"/>
  28559. <doc>
  28560. <![CDATA[Return the distance between two nodes
  28561. It is assumed that the distance from one node to its parent is 1
  28562. The distance between two nodes is calculated by summing up their distances
  28563. to their closest common ancestor.
  28564. @param node1 one node
  28565. @param node2 another node
  28566. @return the distance between node1 and node2
  28567. node1 or node2 do not belong to the cluster]]>
  28568. </doc>
  28569. </method>
  28570. <method name="isOnSameRack" return="boolean"
  28571. abstract="false" native="false" synchronized="false"
  28572. static="false" final="false" visibility="public"
  28573. deprecated="not deprecated">
  28574. <param name="node1" type="org.apache.hadoop.net.Node"/>
  28575. <param name="node2" type="org.apache.hadoop.net.Node"/>
  28576. <doc>
  28577. <![CDATA[Check if two nodes are on the same rack
  28578. @param node1 one node
  28579. @param node2 another node
  28580. @return true if node1 and node2 are pm the same rack; false otherwise
  28581. @exception IllegalArgumentException when either node1 or node2 is null, or
  28582. node1 or node2 do not belong to the cluster]]>
  28583. </doc>
  28584. </method>
  28585. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  28586. abstract="false" native="false" synchronized="false"
  28587. static="false" final="false" visibility="public"
  28588. deprecated="not deprecated">
  28589. <param name="scope" type="java.lang.String"/>
  28590. <doc>
  28591. <![CDATA[randomly choose one node from <i>scope</i>
  28592. if scope starts with ~, choose one from the all nodes except for the
  28593. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  28594. @param scope range of nodes from which a node will be choosen
  28595. @return the choosen node]]>
  28596. </doc>
  28597. </method>
  28598. <method name="countNumOfAvailableNodes" return="int"
  28599. abstract="false" native="false" synchronized="false"
  28600. static="false" final="false" visibility="public"
  28601. deprecated="not deprecated">
  28602. <param name="scope" type="java.lang.String"/>
  28603. <param name="excludedNodes" type="java.util.List"/>
  28604. <doc>
  28605. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  28606. if scope starts with ~, return the number of nodes that are not
  28607. in <i>scope</i> and <i>excludedNodes</i>;
  28608. @param scope a path string that may start with ~
  28609. @param excludedNodes a list of nodes
  28610. @return number of available nodes]]>
  28611. </doc>
  28612. </method>
  28613. <method name="toString" return="java.lang.String"
  28614. abstract="false" native="false" synchronized="false"
  28615. static="false" final="false" visibility="public"
  28616. deprecated="not deprecated">
  28617. <doc>
  28618. <![CDATA[convert a network tree to a string]]>
  28619. </doc>
  28620. </method>
  28621. <method name="pseudoSortByDistance"
  28622. abstract="false" native="false" synchronized="false"
  28623. static="false" final="false" visibility="public"
  28624. deprecated="not deprecated">
  28625. <param name="reader" type="org.apache.hadoop.net.Node"/>
  28626. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  28627. <doc>
  28628. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  28629. It linearly scans the array, if a local node is found, swap it with
  28630. the first element of the array.
  28631. If a local rack node is found, swap it with the first element following
  28632. the local node.
  28633. If neither local node or local rack node is found, put a random replica
  28634. location at postion 0.
  28635. It leaves the rest nodes untouched.]]>
  28636. </doc>
  28637. </method>
  28638. <field name="DEFAULT_RACK" type="java.lang.String"
  28639. transient="false" volatile="false"
  28640. static="true" final="true" visibility="public"
  28641. deprecated="not deprecated">
  28642. </field>
  28643. <field name="DEFAULT_HOST_LEVEL" type="int"
  28644. transient="false" volatile="false"
  28645. static="true" final="true" visibility="public"
  28646. deprecated="not deprecated">
  28647. </field>
  28648. <field name="LOG" type="org.apache.commons.logging.Log"
  28649. transient="false" volatile="false"
  28650. static="true" final="true" visibility="public"
  28651. deprecated="not deprecated">
  28652. </field>
  28653. <doc>
  28654. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  28655. network topology.
  28656. For example, a cluster may be consists of many data centers filled
  28657. with racks of computers.
  28658. In a network topology, leaves represent data nodes (computers) and inner
  28659. nodes represent switches/routers that manage traffic in/out of data centers
  28660. or racks.]]>
  28661. </doc>
  28662. </class>
  28663. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  28664. <!-- start interface org.apache.hadoop.net.Node -->
  28665. <interface name="Node" abstract="true"
  28666. static="false" final="false" visibility="public"
  28667. deprecated="not deprecated">
  28668. <method name="getNetworkLocation" return="java.lang.String"
  28669. abstract="false" native="false" synchronized="false"
  28670. static="false" final="false" visibility="public"
  28671. deprecated="not deprecated">
  28672. <doc>
  28673. <![CDATA[Return the string representation of this node's network location]]>
  28674. </doc>
  28675. </method>
  28676. <method name="setNetworkLocation"
  28677. abstract="false" native="false" synchronized="false"
  28678. static="false" final="false" visibility="public"
  28679. deprecated="not deprecated">
  28680. <param name="location" type="java.lang.String"/>
  28681. <doc>
  28682. <![CDATA[Set the node's network location]]>
  28683. </doc>
  28684. </method>
  28685. <method name="getName" return="java.lang.String"
  28686. abstract="false" native="false" synchronized="false"
  28687. static="false" final="false" visibility="public"
  28688. deprecated="not deprecated">
  28689. <doc>
  28690. <![CDATA[Return this node's name]]>
  28691. </doc>
  28692. </method>
  28693. <method name="getParent" return="org.apache.hadoop.net.Node"
  28694. abstract="false" native="false" synchronized="false"
  28695. static="false" final="false" visibility="public"
  28696. deprecated="not deprecated">
  28697. <doc>
  28698. <![CDATA[Return this node's parent]]>
  28699. </doc>
  28700. </method>
  28701. <method name="setParent"
  28702. abstract="false" native="false" synchronized="false"
  28703. static="false" final="false" visibility="public"
  28704. deprecated="not deprecated">
  28705. <param name="parent" type="org.apache.hadoop.net.Node"/>
  28706. <doc>
  28707. <![CDATA[Set this node's parent]]>
  28708. </doc>
  28709. </method>
  28710. <method name="getLevel" return="int"
  28711. abstract="false" native="false" synchronized="false"
  28712. static="false" final="false" visibility="public"
  28713. deprecated="not deprecated">
  28714. <doc>
  28715. <![CDATA[Return this node's level in the tree.
  28716. E.g. the root of a tree returns 0 and its children return 1]]>
  28717. </doc>
  28718. </method>
  28719. <method name="setLevel"
  28720. abstract="false" native="false" synchronized="false"
  28721. static="false" final="false" visibility="public"
  28722. deprecated="not deprecated">
  28723. <param name="i" type="int"/>
  28724. <doc>
  28725. <![CDATA[Set this node's level in the tree.]]>
  28726. </doc>
  28727. </method>
  28728. <doc>
  28729. <![CDATA[The interface defines a node in a network topology.
  28730. A node may be a leave representing a data node or an inner
  28731. node representing a datacenter or rack.
  28732. Each data has a name and its location in the network is
  28733. decided by a string with syntax similar to a file name.
  28734. For example, a data node's name is hostname:port# and if it's located at
  28735. rack "orange" in datacenter "dog", the string representation of its
  28736. network location is /dog/orange]]>
  28737. </doc>
  28738. </interface>
  28739. <!-- end interface org.apache.hadoop.net.Node -->
  28740. <!-- start class org.apache.hadoop.net.NodeBase -->
  28741. <class name="NodeBase" extends="java.lang.Object"
  28742. abstract="false"
  28743. static="false" final="false" visibility="public"
  28744. deprecated="not deprecated">
  28745. <implements name="org.apache.hadoop.net.Node"/>
  28746. <constructor name="NodeBase"
  28747. static="false" final="false" visibility="public"
  28748. deprecated="not deprecated">
  28749. <doc>
  28750. <![CDATA[Default constructor]]>
  28751. </doc>
  28752. </constructor>
  28753. <constructor name="NodeBase" type="java.lang.String"
  28754. static="false" final="false" visibility="public"
  28755. deprecated="not deprecated">
  28756. <doc>
  28757. <![CDATA[Construct a node from its path
  28758. @param path
  28759. a concatenation of this node's location, the path seperator, and its name]]>
  28760. </doc>
  28761. </constructor>
  28762. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  28763. static="false" final="false" visibility="public"
  28764. deprecated="not deprecated">
  28765. <doc>
  28766. <![CDATA[Construct a node from its name and its location
  28767. @param name this node's name
  28768. @param location this node's location]]>
  28769. </doc>
  28770. </constructor>
  28771. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  28772. static="false" final="false" visibility="public"
  28773. deprecated="not deprecated">
  28774. <doc>
  28775. <![CDATA[Construct a node from its name and its location
  28776. @param name this node's name
  28777. @param location this node's location
  28778. @param parent this node's parent node
  28779. @param level this node's level in the tree]]>
  28780. </doc>
  28781. </constructor>
  28782. <method name="getName" return="java.lang.String"
  28783. abstract="false" native="false" synchronized="false"
  28784. static="false" final="false" visibility="public"
  28785. deprecated="not deprecated">
  28786. <doc>
  28787. <![CDATA[Return this node's name]]>
  28788. </doc>
  28789. </method>
  28790. <method name="getNetworkLocation" return="java.lang.String"
  28791. abstract="false" native="false" synchronized="false"
  28792. static="false" final="false" visibility="public"
  28793. deprecated="not deprecated">
  28794. <doc>
  28795. <![CDATA[Return this node's network location]]>
  28796. </doc>
  28797. </method>
  28798. <method name="setNetworkLocation"
  28799. abstract="false" native="false" synchronized="false"
  28800. static="false" final="false" visibility="public"
  28801. deprecated="not deprecated">
  28802. <param name="location" type="java.lang.String"/>
  28803. <doc>
  28804. <![CDATA[Set this node's network location]]>
  28805. </doc>
  28806. </method>
  28807. <method name="getPath" return="java.lang.String"
  28808. abstract="false" native="false" synchronized="false"
  28809. static="true" final="false" visibility="public"
  28810. deprecated="not deprecated">
  28811. <param name="node" type="org.apache.hadoop.net.Node"/>
  28812. <doc>
  28813. <![CDATA[Return this node's path]]>
  28814. </doc>
  28815. </method>
  28816. <method name="toString" return="java.lang.String"
  28817. abstract="false" native="false" synchronized="false"
  28818. static="false" final="false" visibility="public"
  28819. deprecated="not deprecated">
  28820. <doc>
  28821. <![CDATA[Return this node's string representation]]>
  28822. </doc>
  28823. </method>
  28824. <method name="normalize" return="java.lang.String"
  28825. abstract="false" native="false" synchronized="false"
  28826. static="true" final="false" visibility="public"
  28827. deprecated="not deprecated">
  28828. <param name="path" type="java.lang.String"/>
  28829. <doc>
  28830. <![CDATA[Normalize a path]]>
  28831. </doc>
  28832. </method>
  28833. <method name="getParent" return="org.apache.hadoop.net.Node"
  28834. abstract="false" native="false" synchronized="false"
  28835. static="false" final="false" visibility="public"
  28836. deprecated="not deprecated">
  28837. <doc>
  28838. <![CDATA[Return this node's parent]]>
  28839. </doc>
  28840. </method>
  28841. <method name="setParent"
  28842. abstract="false" native="false" synchronized="false"
  28843. static="false" final="false" visibility="public"
  28844. deprecated="not deprecated">
  28845. <param name="parent" type="org.apache.hadoop.net.Node"/>
  28846. <doc>
  28847. <![CDATA[Set this node's parent]]>
  28848. </doc>
  28849. </method>
  28850. <method name="getLevel" return="int"
  28851. abstract="false" native="false" synchronized="false"
  28852. static="false" final="false" visibility="public"
  28853. deprecated="not deprecated">
  28854. <doc>
  28855. <![CDATA[Return this node's level in the tree.
  28856. E.g. the root of a tree returns 0 and its children return 1]]>
  28857. </doc>
  28858. </method>
  28859. <method name="setLevel"
  28860. abstract="false" native="false" synchronized="false"
  28861. static="false" final="false" visibility="public"
  28862. deprecated="not deprecated">
  28863. <param name="level" type="int"/>
  28864. <doc>
  28865. <![CDATA[Set this node's level in the tree]]>
  28866. </doc>
  28867. </method>
  28868. <field name="PATH_SEPARATOR" type="char"
  28869. transient="false" volatile="false"
  28870. static="true" final="true" visibility="public"
  28871. deprecated="not deprecated">
  28872. </field>
  28873. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  28874. transient="false" volatile="false"
  28875. static="true" final="true" visibility="public"
  28876. deprecated="not deprecated">
  28877. </field>
  28878. <field name="ROOT" type="java.lang.String"
  28879. transient="false" volatile="false"
  28880. static="true" final="true" visibility="public"
  28881. deprecated="not deprecated">
  28882. </field>
  28883. <field name="name" type="java.lang.String"
  28884. transient="false" volatile="false"
  28885. static="false" final="false" visibility="protected"
  28886. deprecated="not deprecated">
  28887. </field>
  28888. <field name="location" type="java.lang.String"
  28889. transient="false" volatile="false"
  28890. static="false" final="false" visibility="protected"
  28891. deprecated="not deprecated">
  28892. </field>
  28893. <field name="level" type="int"
  28894. transient="false" volatile="false"
  28895. static="false" final="false" visibility="protected"
  28896. deprecated="not deprecated">
  28897. </field>
  28898. <field name="parent" type="org.apache.hadoop.net.Node"
  28899. transient="false" volatile="false"
  28900. static="false" final="false" visibility="protected"
  28901. deprecated="not deprecated">
  28902. </field>
  28903. <doc>
  28904. <![CDATA[A base class that implements interface Node]]>
  28905. </doc>
  28906. </class>
  28907. <!-- end class org.apache.hadoop.net.NodeBase -->
  28908. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  28909. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  28910. abstract="false"
  28911. static="false" final="true" visibility="public"
  28912. deprecated="not deprecated">
  28913. <implements name="org.apache.hadoop.conf.Configurable"/>
  28914. <constructor name="ScriptBasedMapping"
  28915. static="false" final="false" visibility="public"
  28916. deprecated="not deprecated">
  28917. </constructor>
  28918. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  28919. static="false" final="false" visibility="public"
  28920. deprecated="not deprecated">
  28921. </constructor>
  28922. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28923. abstract="false" native="false" synchronized="false"
  28924. static="false" final="false" visibility="public"
  28925. deprecated="not deprecated">
  28926. </method>
  28927. <method name="setConf"
  28928. abstract="false" native="false" synchronized="false"
  28929. static="false" final="false" visibility="public"
  28930. deprecated="not deprecated">
  28931. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28932. </method>
  28933. <doc>
  28934. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  28935. script configured via topology.script.file.name .]]>
  28936. </doc>
  28937. </class>
  28938. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  28939. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  28940. <class name="SocketInputStream" extends="java.io.InputStream"
  28941. abstract="false"
  28942. static="false" final="false" visibility="public"
  28943. deprecated="not deprecated">
  28944. <implements name="java.nio.channels.ReadableByteChannel"/>
  28945. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  28946. static="false" final="false" visibility="public"
  28947. deprecated="not deprecated">
  28948. <exception name="IOException" type="java.io.IOException"/>
  28949. <doc>
  28950. <![CDATA[Create a new input stream with the given timeout. If the timeout
  28951. is zero, it will be treated as infinite timeout. The socket's
  28952. channel will be configured to be non-blocking.
  28953. @param channel
  28954. Channel for reading, should also be a {@link SelectableChannel}.
  28955. The channel will be configured to be non-blocking.
  28956. @param timeout timeout in milliseconds. must not be negative.
  28957. @throws IOException]]>
  28958. </doc>
  28959. </constructor>
  28960. <constructor name="SocketInputStream" type="java.net.Socket, long"
  28961. static="false" final="false" visibility="public"
  28962. deprecated="not deprecated">
  28963. <exception name="IOException" type="java.io.IOException"/>
  28964. <doc>
  28965. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  28966. Create a new input stream with the given timeout. If the timeout
  28967. is zero, it will be treated as infinite timeout. The socket's
  28968. channel will be configured to be non-blocking.
  28969. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  28970. @param socket should have a channel associated with it.
  28971. @param timeout timeout timeout in milliseconds. must not be negative.
  28972. @throws IOException]]>
  28973. </doc>
  28974. </constructor>
  28975. <constructor name="SocketInputStream" type="java.net.Socket"
  28976. static="false" final="false" visibility="public"
  28977. deprecated="not deprecated">
  28978. <exception name="IOException" type="java.io.IOException"/>
  28979. <doc>
  28980. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  28981. :<br><br>
  28982. Create a new input stream with the given timeout. If the timeout
  28983. is zero, it will be treated as infinite timeout. The socket's
  28984. channel will be configured to be non-blocking.
  28985. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  28986. @param socket should have a channel associated with it.
  28987. @throws IOException]]>
  28988. </doc>
  28989. </constructor>
  28990. <method name="read" return="int"
  28991. abstract="false" native="false" synchronized="false"
  28992. static="false" final="false" visibility="public"
  28993. deprecated="not deprecated">
  28994. <exception name="IOException" type="java.io.IOException"/>
  28995. </method>
  28996. <method name="read" return="int"
  28997. abstract="false" native="false" synchronized="false"
  28998. static="false" final="false" visibility="public"
  28999. deprecated="not deprecated">
  29000. <param name="b" type="byte[]"/>
  29001. <param name="off" type="int"/>
  29002. <param name="len" type="int"/>
  29003. <exception name="IOException" type="java.io.IOException"/>
  29004. </method>
  29005. <method name="close"
  29006. abstract="false" native="false" synchronized="true"
  29007. static="false" final="false" visibility="public"
  29008. deprecated="not deprecated">
  29009. <exception name="IOException" type="java.io.IOException"/>
  29010. </method>
  29011. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  29012. abstract="false" native="false" synchronized="false"
  29013. static="false" final="false" visibility="public"
  29014. deprecated="not deprecated">
  29015. <doc>
  29016. <![CDATA[Returns underlying channel used by inputstream.
  29017. This is useful in certain cases like channel for
  29018. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  29019. </doc>
  29020. </method>
  29021. <method name="isOpen" return="boolean"
  29022. abstract="false" native="false" synchronized="false"
  29023. static="false" final="false" visibility="public"
  29024. deprecated="not deprecated">
  29025. </method>
  29026. <method name="read" return="int"
  29027. abstract="false" native="false" synchronized="false"
  29028. static="false" final="false" visibility="public"
  29029. deprecated="not deprecated">
  29030. <param name="dst" type="java.nio.ByteBuffer"/>
  29031. <exception name="IOException" type="java.io.IOException"/>
  29032. </method>
  29033. <method name="waitForReadable"
  29034. abstract="false" native="false" synchronized="false"
  29035. static="false" final="false" visibility="public"
  29036. deprecated="not deprecated">
  29037. <exception name="IOException" type="java.io.IOException"/>
  29038. <doc>
  29039. <![CDATA[waits for the underlying channel to be ready for reading.
  29040. The timeout specified for this stream applies to this wait.
  29041. @throws SocketTimeoutException
  29042. if select on the channel times out.
  29043. @throws IOException
  29044. if any other I/O error occurs.]]>
  29045. </doc>
  29046. </method>
  29047. <doc>
  29048. <![CDATA[This implements an input stream that can have a timeout while reading.
  29049. This sets non-blocking flag on the socket channel.
  29050. So after create this object, read() on
  29051. {@link Socket#getInputStream()} and write() on
  29052. {@link Socket#getOutputStream()} for the associated socket will throw
  29053. IllegalBlockingModeException.
  29054. Please use {@link SocketOutputStream} for writing.]]>
  29055. </doc>
  29056. </class>
  29057. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  29058. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  29059. <class name="SocketOutputStream" extends="java.io.OutputStream"
  29060. abstract="false"
  29061. static="false" final="false" visibility="public"
  29062. deprecated="not deprecated">
  29063. <implements name="java.nio.channels.WritableByteChannel"/>
  29064. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  29065. static="false" final="false" visibility="public"
  29066. deprecated="not deprecated">
  29067. <exception name="IOException" type="java.io.IOException"/>
  29068. <doc>
  29069. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  29070. is zero, it will be treated as infinite timeout. The socket's
  29071. channel will be configured to be non-blocking.
  29072. @param channel
  29073. Channel for writing, should also be a {@link SelectableChannel}.
  29074. The channel will be configured to be non-blocking.
  29075. @param timeout timeout in milliseconds. must not be negative.
  29076. @throws IOException]]>
  29077. </doc>
  29078. </constructor>
  29079. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  29080. static="false" final="false" visibility="public"
  29081. deprecated="not deprecated">
  29082. <exception name="IOException" type="java.io.IOException"/>
  29083. <doc>
  29084. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  29085. Create a new ouput stream with the given timeout. If the timeout
  29086. is zero, it will be treated as infinite timeout. The socket's
  29087. channel will be configured to be non-blocking.
  29088. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  29089. @param socket should have a channel associated with it.
  29090. @param timeout timeout timeout in milliseconds. must not be negative.
  29091. @throws IOException]]>
  29092. </doc>
  29093. </constructor>
  29094. <method name="write"
  29095. abstract="false" native="false" synchronized="false"
  29096. static="false" final="false" visibility="public"
  29097. deprecated="not deprecated">
  29098. <param name="b" type="int"/>
  29099. <exception name="IOException" type="java.io.IOException"/>
  29100. </method>
  29101. <method name="write"
  29102. abstract="false" native="false" synchronized="false"
  29103. static="false" final="false" visibility="public"
  29104. deprecated="not deprecated">
  29105. <param name="b" type="byte[]"/>
  29106. <param name="off" type="int"/>
  29107. <param name="len" type="int"/>
  29108. <exception name="IOException" type="java.io.IOException"/>
  29109. </method>
  29110. <method name="close"
  29111. abstract="false" native="false" synchronized="true"
  29112. static="false" final="false" visibility="public"
  29113. deprecated="not deprecated">
  29114. <exception name="IOException" type="java.io.IOException"/>
  29115. </method>
  29116. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  29117. abstract="false" native="false" synchronized="false"
  29118. static="false" final="false" visibility="public"
  29119. deprecated="not deprecated">
  29120. <doc>
  29121. <![CDATA[Returns underlying channel used by this stream.
  29122. This is useful in certain cases like channel for
  29123. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  29124. </doc>
  29125. </method>
  29126. <method name="isOpen" return="boolean"
  29127. abstract="false" native="false" synchronized="false"
  29128. static="false" final="false" visibility="public"
  29129. deprecated="not deprecated">
  29130. </method>
  29131. <method name="write" return="int"
  29132. abstract="false" native="false" synchronized="false"
  29133. static="false" final="false" visibility="public"
  29134. deprecated="not deprecated">
  29135. <param name="src" type="java.nio.ByteBuffer"/>
  29136. <exception name="IOException" type="java.io.IOException"/>
  29137. </method>
  29138. <method name="waitForWritable"
  29139. abstract="false" native="false" synchronized="false"
  29140. static="false" final="false" visibility="public"
  29141. deprecated="not deprecated">
  29142. <exception name="IOException" type="java.io.IOException"/>
  29143. <doc>
  29144. <![CDATA[waits for the underlying channel to be ready for writing.
  29145. The timeout specified for this stream applies to this wait.
  29146. @throws SocketTimeoutException
  29147. if select on the channel times out.
  29148. @throws IOException
  29149. if any other I/O error occurs.]]>
  29150. </doc>
  29151. </method>
  29152. <method name="transferToFully"
  29153. abstract="false" native="false" synchronized="false"
  29154. static="false" final="false" visibility="public"
  29155. deprecated="not deprecated">
  29156. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  29157. <param name="position" type="long"/>
  29158. <param name="count" type="int"/>
  29159. <exception name="IOException" type="java.io.IOException"/>
  29160. <doc>
  29161. <![CDATA[Transfers data from FileChannel using
  29162. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  29163. Similar to readFully(), this waits till requested amount of
  29164. data is transfered.
  29165. @param fileCh FileChannel to transfer data from.
  29166. @param position position within the channel where the transfer begins
  29167. @param count number of bytes to transfer.
  29168. @throws EOFException
  29169. If end of input file is reached before requested number of
  29170. bytes are transfered.
  29171. @throws SocketTimeoutException
  29172. If this channel blocks transfer longer than timeout for
  29173. this stream.
  29174. @throws IOException Includes any exception thrown by
  29175. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  29176. </doc>
  29177. </method>
  29178. <doc>
  29179. <![CDATA[This implements an output stream that can have a timeout while writing.
  29180. This sets non-blocking flag on the socket channel.
  29181. So after creating this object , read() on
  29182. {@link Socket#getInputStream()} and write() on
  29183. {@link Socket#getOutputStream()} on the associated socket will throw
  29184. llegalBlockingModeException.
  29185. Please use {@link SocketInputStream} for reading.]]>
  29186. </doc>
  29187. </class>
  29188. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  29189. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  29190. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  29191. abstract="false"
  29192. static="false" final="false" visibility="public"
  29193. deprecated="not deprecated">
  29194. <implements name="org.apache.hadoop.conf.Configurable"/>
  29195. <constructor name="SocksSocketFactory"
  29196. static="false" final="false" visibility="public"
  29197. deprecated="not deprecated">
  29198. <doc>
  29199. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  29200. </doc>
  29201. </constructor>
  29202. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  29203. static="false" final="false" visibility="public"
  29204. deprecated="not deprecated">
  29205. <doc>
  29206. <![CDATA[Constructor with a supplied Proxy
  29207. @param proxy the proxy to use to create sockets]]>
  29208. </doc>
  29209. </constructor>
  29210. <method name="createSocket" return="java.net.Socket"
  29211. abstract="false" native="false" synchronized="false"
  29212. static="false" final="false" visibility="public"
  29213. deprecated="not deprecated">
  29214. <exception name="IOException" type="java.io.IOException"/>
  29215. </method>
  29216. <method name="createSocket" return="java.net.Socket"
  29217. abstract="false" native="false" synchronized="false"
  29218. static="false" final="false" visibility="public"
  29219. deprecated="not deprecated">
  29220. <param name="addr" type="java.net.InetAddress"/>
  29221. <param name="port" type="int"/>
  29222. <exception name="IOException" type="java.io.IOException"/>
  29223. </method>
  29224. <method name="createSocket" return="java.net.Socket"
  29225. abstract="false" native="false" synchronized="false"
  29226. static="false" final="false" visibility="public"
  29227. deprecated="not deprecated">
  29228. <param name="addr" type="java.net.InetAddress"/>
  29229. <param name="port" type="int"/>
  29230. <param name="localHostAddr" type="java.net.InetAddress"/>
  29231. <param name="localPort" type="int"/>
  29232. <exception name="IOException" type="java.io.IOException"/>
  29233. </method>
  29234. <method name="createSocket" return="java.net.Socket"
  29235. abstract="false" native="false" synchronized="false"
  29236. static="false" final="false" visibility="public"
  29237. deprecated="not deprecated">
  29238. <param name="host" type="java.lang.String"/>
  29239. <param name="port" type="int"/>
  29240. <exception name="IOException" type="java.io.IOException"/>
  29241. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29242. </method>
  29243. <method name="createSocket" return="java.net.Socket"
  29244. abstract="false" native="false" synchronized="false"
  29245. static="false" final="false" visibility="public"
  29246. deprecated="not deprecated">
  29247. <param name="host" type="java.lang.String"/>
  29248. <param name="port" type="int"/>
  29249. <param name="localHostAddr" type="java.net.InetAddress"/>
  29250. <param name="localPort" type="int"/>
  29251. <exception name="IOException" type="java.io.IOException"/>
  29252. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29253. </method>
  29254. <method name="hashCode" return="int"
  29255. abstract="false" native="false" synchronized="false"
  29256. static="false" final="false" visibility="public"
  29257. deprecated="not deprecated">
  29258. </method>
  29259. <method name="equals" return="boolean"
  29260. abstract="false" native="false" synchronized="false"
  29261. static="false" final="false" visibility="public"
  29262. deprecated="not deprecated">
  29263. <param name="obj" type="java.lang.Object"/>
  29264. </method>
  29265. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  29266. abstract="false" native="false" synchronized="false"
  29267. static="false" final="false" visibility="public"
  29268. deprecated="not deprecated">
  29269. </method>
  29270. <method name="setConf"
  29271. abstract="false" native="false" synchronized="false"
  29272. static="false" final="false" visibility="public"
  29273. deprecated="not deprecated">
  29274. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29275. </method>
  29276. <doc>
  29277. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  29278. </doc>
  29279. </class>
  29280. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  29281. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  29282. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  29283. abstract="false"
  29284. static="false" final="false" visibility="public"
  29285. deprecated="not deprecated">
  29286. <constructor name="StandardSocketFactory"
  29287. static="false" final="false" visibility="public"
  29288. deprecated="not deprecated">
  29289. <doc>
  29290. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  29291. </doc>
  29292. </constructor>
  29293. <method name="createSocket" return="java.net.Socket"
  29294. abstract="false" native="false" synchronized="false"
  29295. static="false" final="false" visibility="public"
  29296. deprecated="not deprecated">
  29297. <exception name="IOException" type="java.io.IOException"/>
  29298. </method>
  29299. <method name="createSocket" return="java.net.Socket"
  29300. abstract="false" native="false" synchronized="false"
  29301. static="false" final="false" visibility="public"
  29302. deprecated="not deprecated">
  29303. <param name="addr" type="java.net.InetAddress"/>
  29304. <param name="port" type="int"/>
  29305. <exception name="IOException" type="java.io.IOException"/>
  29306. </method>
  29307. <method name="createSocket" return="java.net.Socket"
  29308. abstract="false" native="false" synchronized="false"
  29309. static="false" final="false" visibility="public"
  29310. deprecated="not deprecated">
  29311. <param name="addr" type="java.net.InetAddress"/>
  29312. <param name="port" type="int"/>
  29313. <param name="localHostAddr" type="java.net.InetAddress"/>
  29314. <param name="localPort" type="int"/>
  29315. <exception name="IOException" type="java.io.IOException"/>
  29316. </method>
  29317. <method name="createSocket" return="java.net.Socket"
  29318. abstract="false" native="false" synchronized="false"
  29319. static="false" final="false" visibility="public"
  29320. deprecated="not deprecated">
  29321. <param name="host" type="java.lang.String"/>
  29322. <param name="port" type="int"/>
  29323. <exception name="IOException" type="java.io.IOException"/>
  29324. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29325. </method>
  29326. <method name="createSocket" return="java.net.Socket"
  29327. abstract="false" native="false" synchronized="false"
  29328. static="false" final="false" visibility="public"
  29329. deprecated="not deprecated">
  29330. <param name="host" type="java.lang.String"/>
  29331. <param name="port" type="int"/>
  29332. <param name="localHostAddr" type="java.net.InetAddress"/>
  29333. <param name="localPort" type="int"/>
  29334. <exception name="IOException" type="java.io.IOException"/>
  29335. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29336. </method>
  29337. <method name="equals" return="boolean"
  29338. abstract="false" native="false" synchronized="false"
  29339. static="false" final="false" visibility="public"
  29340. deprecated="not deprecated">
  29341. <param name="obj" type="java.lang.Object"/>
  29342. </method>
  29343. <method name="hashCode" return="int"
  29344. abstract="false" native="false" synchronized="false"
  29345. static="false" final="false" visibility="public"
  29346. deprecated="not deprecated">
  29347. </method>
  29348. <doc>
  29349. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  29350. </doc>
  29351. </class>
  29352. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  29353. </package>
  29354. <package name="org.apache.hadoop.record">
  29355. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  29356. <class name="BinaryRecordInput" extends="java.lang.Object"
  29357. abstract="false"
  29358. static="false" final="false" visibility="public"
  29359. deprecated="not deprecated">
  29360. <implements name="org.apache.hadoop.record.RecordInput"/>
  29361. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  29362. static="false" final="false" visibility="public"
  29363. deprecated="not deprecated">
  29364. <doc>
  29365. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  29366. </doc>
  29367. </constructor>
  29368. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  29369. static="false" final="false" visibility="public"
  29370. deprecated="not deprecated">
  29371. <doc>
  29372. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  29373. </doc>
  29374. </constructor>
  29375. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  29376. abstract="false" native="false" synchronized="false"
  29377. static="true" final="false" visibility="public"
  29378. deprecated="not deprecated">
  29379. <param name="inp" type="java.io.DataInput"/>
  29380. <doc>
  29381. <![CDATA[Get a thread-local record input for the supplied DataInput.
  29382. @param inp data input stream
  29383. @return binary record input corresponding to the supplied DataInput.]]>
  29384. </doc>
  29385. </method>
  29386. <method name="readByte" return="byte"
  29387. abstract="false" native="false" synchronized="false"
  29388. static="false" final="false" visibility="public"
  29389. deprecated="not deprecated">
  29390. <param name="tag" type="java.lang.String"/>
  29391. <exception name="IOException" type="java.io.IOException"/>
  29392. </method>
  29393. <method name="readBool" return="boolean"
  29394. abstract="false" native="false" synchronized="false"
  29395. static="false" final="false" visibility="public"
  29396. deprecated="not deprecated">
  29397. <param name="tag" type="java.lang.String"/>
  29398. <exception name="IOException" type="java.io.IOException"/>
  29399. </method>
  29400. <method name="readInt" return="int"
  29401. abstract="false" native="false" synchronized="false"
  29402. static="false" final="false" visibility="public"
  29403. deprecated="not deprecated">
  29404. <param name="tag" type="java.lang.String"/>
  29405. <exception name="IOException" type="java.io.IOException"/>
  29406. </method>
  29407. <method name="readLong" return="long"
  29408. abstract="false" native="false" synchronized="false"
  29409. static="false" final="false" visibility="public"
  29410. deprecated="not deprecated">
  29411. <param name="tag" type="java.lang.String"/>
  29412. <exception name="IOException" type="java.io.IOException"/>
  29413. </method>
  29414. <method name="readFloat" return="float"
  29415. abstract="false" native="false" synchronized="false"
  29416. static="false" final="false" visibility="public"
  29417. deprecated="not deprecated">
  29418. <param name="tag" type="java.lang.String"/>
  29419. <exception name="IOException" type="java.io.IOException"/>
  29420. </method>
  29421. <method name="readDouble" return="double"
  29422. abstract="false" native="false" synchronized="false"
  29423. static="false" final="false" visibility="public"
  29424. deprecated="not deprecated">
  29425. <param name="tag" type="java.lang.String"/>
  29426. <exception name="IOException" type="java.io.IOException"/>
  29427. </method>
  29428. <method name="readString" return="java.lang.String"
  29429. abstract="false" native="false" synchronized="false"
  29430. static="false" final="false" visibility="public"
  29431. deprecated="not deprecated">
  29432. <param name="tag" type="java.lang.String"/>
  29433. <exception name="IOException" type="java.io.IOException"/>
  29434. </method>
  29435. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  29436. abstract="false" native="false" synchronized="false"
  29437. static="false" final="false" visibility="public"
  29438. deprecated="not deprecated">
  29439. <param name="tag" type="java.lang.String"/>
  29440. <exception name="IOException" type="java.io.IOException"/>
  29441. </method>
  29442. <method name="startRecord"
  29443. abstract="false" native="false" synchronized="false"
  29444. static="false" final="false" visibility="public"
  29445. deprecated="not deprecated">
  29446. <param name="tag" type="java.lang.String"/>
  29447. <exception name="IOException" type="java.io.IOException"/>
  29448. </method>
  29449. <method name="endRecord"
  29450. abstract="false" native="false" synchronized="false"
  29451. static="false" final="false" visibility="public"
  29452. deprecated="not deprecated">
  29453. <param name="tag" type="java.lang.String"/>
  29454. <exception name="IOException" type="java.io.IOException"/>
  29455. </method>
  29456. <method name="startVector" return="org.apache.hadoop.record.Index"
  29457. abstract="false" native="false" synchronized="false"
  29458. static="false" final="false" visibility="public"
  29459. deprecated="not deprecated">
  29460. <param name="tag" type="java.lang.String"/>
  29461. <exception name="IOException" type="java.io.IOException"/>
  29462. </method>
  29463. <method name="endVector"
  29464. abstract="false" native="false" synchronized="false"
  29465. static="false" final="false" visibility="public"
  29466. deprecated="not deprecated">
  29467. <param name="tag" type="java.lang.String"/>
  29468. <exception name="IOException" type="java.io.IOException"/>
  29469. </method>
  29470. <method name="startMap" return="org.apache.hadoop.record.Index"
  29471. abstract="false" native="false" synchronized="false"
  29472. static="false" final="false" visibility="public"
  29473. deprecated="not deprecated">
  29474. <param name="tag" type="java.lang.String"/>
  29475. <exception name="IOException" type="java.io.IOException"/>
  29476. </method>
  29477. <method name="endMap"
  29478. abstract="false" native="false" synchronized="false"
  29479. static="false" final="false" visibility="public"
  29480. deprecated="not deprecated">
  29481. <param name="tag" type="java.lang.String"/>
  29482. <exception name="IOException" type="java.io.IOException"/>
  29483. </method>
  29484. </class>
  29485. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  29486. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  29487. <class name="BinaryRecordOutput" extends="java.lang.Object"
  29488. abstract="false"
  29489. static="false" final="false" visibility="public"
  29490. deprecated="not deprecated">
  29491. <implements name="org.apache.hadoop.record.RecordOutput"/>
  29492. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  29493. static="false" final="false" visibility="public"
  29494. deprecated="not deprecated">
  29495. <doc>
  29496. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  29497. </doc>
  29498. </constructor>
  29499. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  29500. static="false" final="false" visibility="public"
  29501. deprecated="not deprecated">
  29502. <doc>
  29503. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  29504. </doc>
  29505. </constructor>
  29506. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  29507. abstract="false" native="false" synchronized="false"
  29508. static="true" final="false" visibility="public"
  29509. deprecated="not deprecated">
  29510. <param name="out" type="java.io.DataOutput"/>
  29511. <doc>
  29512. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  29513. @param out data output stream
  29514. @return binary record output corresponding to the supplied DataOutput.]]>
  29515. </doc>
  29516. </method>
  29517. <method name="writeByte"
  29518. abstract="false" native="false" synchronized="false"
  29519. static="false" final="false" visibility="public"
  29520. deprecated="not deprecated">
  29521. <param name="b" type="byte"/>
  29522. <param name="tag" type="java.lang.String"/>
  29523. <exception name="IOException" type="java.io.IOException"/>
  29524. </method>
  29525. <method name="writeBool"
  29526. abstract="false" native="false" synchronized="false"
  29527. static="false" final="false" visibility="public"
  29528. deprecated="not deprecated">
  29529. <param name="b" type="boolean"/>
  29530. <param name="tag" type="java.lang.String"/>
  29531. <exception name="IOException" type="java.io.IOException"/>
  29532. </method>
  29533. <method name="writeInt"
  29534. abstract="false" native="false" synchronized="false"
  29535. static="false" final="false" visibility="public"
  29536. deprecated="not deprecated">
  29537. <param name="i" type="int"/>
  29538. <param name="tag" type="java.lang.String"/>
  29539. <exception name="IOException" type="java.io.IOException"/>
  29540. </method>
  29541. <method name="writeLong"
  29542. abstract="false" native="false" synchronized="false"
  29543. static="false" final="false" visibility="public"
  29544. deprecated="not deprecated">
  29545. <param name="l" type="long"/>
  29546. <param name="tag" type="java.lang.String"/>
  29547. <exception name="IOException" type="java.io.IOException"/>
  29548. </method>
  29549. <method name="writeFloat"
  29550. abstract="false" native="false" synchronized="false"
  29551. static="false" final="false" visibility="public"
  29552. deprecated="not deprecated">
  29553. <param name="f" type="float"/>
  29554. <param name="tag" type="java.lang.String"/>
  29555. <exception name="IOException" type="java.io.IOException"/>
  29556. </method>
  29557. <method name="writeDouble"
  29558. abstract="false" native="false" synchronized="false"
  29559. static="false" final="false" visibility="public"
  29560. deprecated="not deprecated">
  29561. <param name="d" type="double"/>
  29562. <param name="tag" type="java.lang.String"/>
  29563. <exception name="IOException" type="java.io.IOException"/>
  29564. </method>
  29565. <method name="writeString"
  29566. abstract="false" native="false" synchronized="false"
  29567. static="false" final="false" visibility="public"
  29568. deprecated="not deprecated">
  29569. <param name="s" type="java.lang.String"/>
  29570. <param name="tag" type="java.lang.String"/>
  29571. <exception name="IOException" type="java.io.IOException"/>
  29572. </method>
  29573. <method name="writeBuffer"
  29574. abstract="false" native="false" synchronized="false"
  29575. static="false" final="false" visibility="public"
  29576. deprecated="not deprecated">
  29577. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  29578. <param name="tag" type="java.lang.String"/>
  29579. <exception name="IOException" type="java.io.IOException"/>
  29580. </method>
  29581. <method name="startRecord"
  29582. abstract="false" native="false" synchronized="false"
  29583. static="false" final="false" visibility="public"
  29584. deprecated="not deprecated">
  29585. <param name="r" type="org.apache.hadoop.record.Record"/>
  29586. <param name="tag" type="java.lang.String"/>
  29587. <exception name="IOException" type="java.io.IOException"/>
  29588. </method>
  29589. <method name="endRecord"
  29590. abstract="false" native="false" synchronized="false"
  29591. static="false" final="false" visibility="public"
  29592. deprecated="not deprecated">
  29593. <param name="r" type="org.apache.hadoop.record.Record"/>
  29594. <param name="tag" type="java.lang.String"/>
  29595. <exception name="IOException" type="java.io.IOException"/>
  29596. </method>
  29597. <method name="startVector"
  29598. abstract="false" native="false" synchronized="false"
  29599. static="false" final="false" visibility="public"
  29600. deprecated="not deprecated">
  29601. <param name="v" type="java.util.ArrayList"/>
  29602. <param name="tag" type="java.lang.String"/>
  29603. <exception name="IOException" type="java.io.IOException"/>
  29604. </method>
  29605. <method name="endVector"
  29606. abstract="false" native="false" synchronized="false"
  29607. static="false" final="false" visibility="public"
  29608. deprecated="not deprecated">
  29609. <param name="v" type="java.util.ArrayList"/>
  29610. <param name="tag" type="java.lang.String"/>
  29611. <exception name="IOException" type="java.io.IOException"/>
  29612. </method>
  29613. <method name="startMap"
  29614. abstract="false" native="false" synchronized="false"
  29615. static="false" final="false" visibility="public"
  29616. deprecated="not deprecated">
  29617. <param name="v" type="java.util.TreeMap"/>
  29618. <param name="tag" type="java.lang.String"/>
  29619. <exception name="IOException" type="java.io.IOException"/>
  29620. </method>
  29621. <method name="endMap"
  29622. abstract="false" native="false" synchronized="false"
  29623. static="false" final="false" visibility="public"
  29624. deprecated="not deprecated">
  29625. <param name="v" type="java.util.TreeMap"/>
  29626. <param name="tag" type="java.lang.String"/>
  29627. <exception name="IOException" type="java.io.IOException"/>
  29628. </method>
  29629. </class>
  29630. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  29631. <!-- start class org.apache.hadoop.record.Buffer -->
  29632. <class name="Buffer" extends="java.lang.Object"
  29633. abstract="false"
  29634. static="false" final="false" visibility="public"
  29635. deprecated="not deprecated">
  29636. <implements name="java.lang.Comparable"/>
  29637. <implements name="java.lang.Cloneable"/>
  29638. <constructor name="Buffer"
  29639. static="false" final="false" visibility="public"
  29640. deprecated="not deprecated">
  29641. <doc>
  29642. <![CDATA[Create a zero-count sequence.]]>
  29643. </doc>
  29644. </constructor>
  29645. <constructor name="Buffer" type="byte[]"
  29646. static="false" final="false" visibility="public"
  29647. deprecated="not deprecated">
  29648. <doc>
  29649. <![CDATA[Create a Buffer using the byte array as the initial value.
  29650. @param bytes This array becomes the backing storage for the object.]]>
  29651. </doc>
  29652. </constructor>
  29653. <constructor name="Buffer" type="byte[], int, int"
  29654. static="false" final="false" visibility="public"
  29655. deprecated="not deprecated">
  29656. <doc>
  29657. <![CDATA[Create a Buffer using the byte range as the initial value.
  29658. @param bytes Copy of this array becomes the backing storage for the object.
  29659. @param offset offset into byte array
  29660. @param length length of data]]>
  29661. </doc>
  29662. </constructor>
  29663. <method name="set"
  29664. abstract="false" native="false" synchronized="false"
  29665. static="false" final="false" visibility="public"
  29666. deprecated="not deprecated">
  29667. <param name="bytes" type="byte[]"/>
  29668. <doc>
  29669. <![CDATA[Use the specified bytes array as underlying sequence.
  29670. @param bytes byte sequence]]>
  29671. </doc>
  29672. </method>
  29673. <method name="copy"
  29674. abstract="false" native="false" synchronized="false"
  29675. static="false" final="true" visibility="public"
  29676. deprecated="not deprecated">
  29677. <param name="bytes" type="byte[]"/>
  29678. <param name="offset" type="int"/>
  29679. <param name="length" type="int"/>
  29680. <doc>
  29681. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  29682. @param bytes byte array to be assigned
  29683. @param offset offset into byte array
  29684. @param length length of data]]>
  29685. </doc>
  29686. </method>
  29687. <method name="get" return="byte[]"
  29688. abstract="false" native="false" synchronized="false"
  29689. static="false" final="false" visibility="public"
  29690. deprecated="not deprecated">
  29691. <doc>
  29692. <![CDATA[Get the data from the Buffer.
  29693. @return The data is only valid between 0 and getCount() - 1.]]>
  29694. </doc>
  29695. </method>
  29696. <method name="getCount" return="int"
  29697. abstract="false" native="false" synchronized="false"
  29698. static="false" final="false" visibility="public"
  29699. deprecated="not deprecated">
  29700. <doc>
  29701. <![CDATA[Get the current count of the buffer.]]>
  29702. </doc>
  29703. </method>
  29704. <method name="getCapacity" return="int"
  29705. abstract="false" native="false" synchronized="false"
  29706. static="false" final="false" visibility="public"
  29707. deprecated="not deprecated">
  29708. <doc>
  29709. <![CDATA[Get the capacity, which is the maximum count that could handled without
  29710. resizing the backing storage.
  29711. @return The number of bytes]]>
  29712. </doc>
  29713. </method>
  29714. <method name="setCapacity"
  29715. abstract="false" native="false" synchronized="false"
  29716. static="false" final="false" visibility="public"
  29717. deprecated="not deprecated">
  29718. <param name="newCapacity" type="int"/>
  29719. <doc>
  29720. <![CDATA[Change the capacity of the backing storage.
  29721. The data is preserved if newCapacity >= getCount().
  29722. @param newCapacity The new capacity in bytes.]]>
  29723. </doc>
  29724. </method>
  29725. <method name="reset"
  29726. abstract="false" native="false" synchronized="false"
  29727. static="false" final="false" visibility="public"
  29728. deprecated="not deprecated">
  29729. <doc>
  29730. <![CDATA[Reset the buffer to 0 size]]>
  29731. </doc>
  29732. </method>
  29733. <method name="truncate"
  29734. abstract="false" native="false" synchronized="false"
  29735. static="false" final="false" visibility="public"
  29736. deprecated="not deprecated">
  29737. <doc>
  29738. <![CDATA[Change the capacity of the backing store to be the same as the current
  29739. count of buffer.]]>
  29740. </doc>
  29741. </method>
  29742. <method name="append"
  29743. abstract="false" native="false" synchronized="false"
  29744. static="false" final="false" visibility="public"
  29745. deprecated="not deprecated">
  29746. <param name="bytes" type="byte[]"/>
  29747. <param name="offset" type="int"/>
  29748. <param name="length" type="int"/>
  29749. <doc>
  29750. <![CDATA[Append specified bytes to the buffer.
  29751. @param bytes byte array to be appended
  29752. @param offset offset into byte array
  29753. @param length length of data]]>
  29754. </doc>
  29755. </method>
  29756. <method name="append"
  29757. abstract="false" native="false" synchronized="false"
  29758. static="false" final="false" visibility="public"
  29759. deprecated="not deprecated">
  29760. <param name="bytes" type="byte[]"/>
  29761. <doc>
  29762. <![CDATA[Append specified bytes to the buffer
  29763. @param bytes byte array to be appended]]>
  29764. </doc>
  29765. </method>
  29766. <method name="hashCode" return="int"
  29767. abstract="false" native="false" synchronized="false"
  29768. static="false" final="false" visibility="public"
  29769. deprecated="not deprecated">
  29770. </method>
  29771. <method name="compareTo" return="int"
  29772. abstract="false" native="false" synchronized="false"
  29773. static="false" final="false" visibility="public"
  29774. deprecated="not deprecated">
  29775. <param name="other" type="java.lang.Object"/>
  29776. <doc>
  29777. <![CDATA[Define the sort order of the Buffer.
  29778. @param other The other buffer
  29779. @return Positive if this is bigger than other, 0 if they are equal, and
  29780. negative if this is smaller than other.]]>
  29781. </doc>
  29782. </method>
  29783. <method name="equals" return="boolean"
  29784. abstract="false" native="false" synchronized="false"
  29785. static="false" final="false" visibility="public"
  29786. deprecated="not deprecated">
  29787. <param name="other" type="java.lang.Object"/>
  29788. </method>
  29789. <method name="toString" return="java.lang.String"
  29790. abstract="false" native="false" synchronized="false"
  29791. static="false" final="false" visibility="public"
  29792. deprecated="not deprecated">
  29793. </method>
  29794. <method name="toString" return="java.lang.String"
  29795. abstract="false" native="false" synchronized="false"
  29796. static="false" final="false" visibility="public"
  29797. deprecated="not deprecated">
  29798. <param name="charsetName" type="java.lang.String"/>
  29799. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  29800. <doc>
  29801. <![CDATA[Convert the byte buffer to a string an specific character encoding
  29802. @param charsetName Valid Java Character Set Name]]>
  29803. </doc>
  29804. </method>
  29805. <method name="clone" return="java.lang.Object"
  29806. abstract="false" native="false" synchronized="false"
  29807. static="false" final="false" visibility="public"
  29808. deprecated="not deprecated">
  29809. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  29810. </method>
  29811. <doc>
  29812. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  29813. It is resizable and distinguishes between the count of the seqeunce and
  29814. the current capacity.]]>
  29815. </doc>
  29816. </class>
  29817. <!-- end class org.apache.hadoop.record.Buffer -->
  29818. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  29819. <class name="CsvRecordInput" extends="java.lang.Object"
  29820. abstract="false"
  29821. static="false" final="false" visibility="public"
  29822. deprecated="not deprecated">
  29823. <implements name="org.apache.hadoop.record.RecordInput"/>
  29824. <constructor name="CsvRecordInput" type="java.io.InputStream"
  29825. static="false" final="false" visibility="public"
  29826. deprecated="not deprecated">
  29827. <doc>
  29828. <![CDATA[Creates a new instance of CsvRecordInput]]>
  29829. </doc>
  29830. </constructor>
  29831. <method name="readByte" return="byte"
  29832. abstract="false" native="false" synchronized="false"
  29833. static="false" final="false" visibility="public"
  29834. deprecated="not deprecated">
  29835. <param name="tag" type="java.lang.String"/>
  29836. <exception name="IOException" type="java.io.IOException"/>
  29837. </method>
  29838. <method name="readBool" return="boolean"
  29839. abstract="false" native="false" synchronized="false"
  29840. static="false" final="false" visibility="public"
  29841. deprecated="not deprecated">
  29842. <param name="tag" type="java.lang.String"/>
  29843. <exception name="IOException" type="java.io.IOException"/>
  29844. </method>
  29845. <method name="readInt" return="int"
  29846. abstract="false" native="false" synchronized="false"
  29847. static="false" final="false" visibility="public"
  29848. deprecated="not deprecated">
  29849. <param name="tag" type="java.lang.String"/>
  29850. <exception name="IOException" type="java.io.IOException"/>
  29851. </method>
  29852. <method name="readLong" return="long"
  29853. abstract="false" native="false" synchronized="false"
  29854. static="false" final="false" visibility="public"
  29855. deprecated="not deprecated">
  29856. <param name="tag" type="java.lang.String"/>
  29857. <exception name="IOException" type="java.io.IOException"/>
  29858. </method>
  29859. <method name="readFloat" return="float"
  29860. abstract="false" native="false" synchronized="false"
  29861. static="false" final="false" visibility="public"
  29862. deprecated="not deprecated">
  29863. <param name="tag" type="java.lang.String"/>
  29864. <exception name="IOException" type="java.io.IOException"/>
  29865. </method>
  29866. <method name="readDouble" return="double"
  29867. abstract="false" native="false" synchronized="false"
  29868. static="false" final="false" visibility="public"
  29869. deprecated="not deprecated">
  29870. <param name="tag" type="java.lang.String"/>
  29871. <exception name="IOException" type="java.io.IOException"/>
  29872. </method>
  29873. <method name="readString" return="java.lang.String"
  29874. abstract="false" native="false" synchronized="false"
  29875. static="false" final="false" visibility="public"
  29876. deprecated="not deprecated">
  29877. <param name="tag" type="java.lang.String"/>
  29878. <exception name="IOException" type="java.io.IOException"/>
  29879. </method>
  29880. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  29881. abstract="false" native="false" synchronized="false"
  29882. static="false" final="false" visibility="public"
  29883. deprecated="not deprecated">
  29884. <param name="tag" type="java.lang.String"/>
  29885. <exception name="IOException" type="java.io.IOException"/>
  29886. </method>
  29887. <method name="startRecord"
  29888. abstract="false" native="false" synchronized="false"
  29889. static="false" final="false" visibility="public"
  29890. deprecated="not deprecated">
  29891. <param name="tag" type="java.lang.String"/>
  29892. <exception name="IOException" type="java.io.IOException"/>
  29893. </method>
  29894. <method name="endRecord"
  29895. abstract="false" native="false" synchronized="false"
  29896. static="false" final="false" visibility="public"
  29897. deprecated="not deprecated">
  29898. <param name="tag" type="java.lang.String"/>
  29899. <exception name="IOException" type="java.io.IOException"/>
  29900. </method>
  29901. <method name="startVector" return="org.apache.hadoop.record.Index"
  29902. abstract="false" native="false" synchronized="false"
  29903. static="false" final="false" visibility="public"
  29904. deprecated="not deprecated">
  29905. <param name="tag" type="java.lang.String"/>
  29906. <exception name="IOException" type="java.io.IOException"/>
  29907. </method>
  29908. <method name="endVector"
  29909. abstract="false" native="false" synchronized="false"
  29910. static="false" final="false" visibility="public"
  29911. deprecated="not deprecated">
  29912. <param name="tag" type="java.lang.String"/>
  29913. <exception name="IOException" type="java.io.IOException"/>
  29914. </method>
  29915. <method name="startMap" return="org.apache.hadoop.record.Index"
  29916. abstract="false" native="false" synchronized="false"
  29917. static="false" final="false" visibility="public"
  29918. deprecated="not deprecated">
  29919. <param name="tag" type="java.lang.String"/>
  29920. <exception name="IOException" type="java.io.IOException"/>
  29921. </method>
  29922. <method name="endMap"
  29923. abstract="false" native="false" synchronized="false"
  29924. static="false" final="false" visibility="public"
  29925. deprecated="not deprecated">
  29926. <param name="tag" type="java.lang.String"/>
  29927. <exception name="IOException" type="java.io.IOException"/>
  29928. </method>
  29929. </class>
  29930. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  29931. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  29932. <class name="CsvRecordOutput" extends="java.lang.Object"
  29933. abstract="false"
  29934. static="false" final="false" visibility="public"
  29935. deprecated="not deprecated">
  29936. <implements name="org.apache.hadoop.record.RecordOutput"/>
  29937. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  29938. static="false" final="false" visibility="public"
  29939. deprecated="not deprecated">
  29940. <doc>
  29941. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  29942. </doc>
  29943. </constructor>
  29944. <method name="writeByte"
  29945. abstract="false" native="false" synchronized="false"
  29946. static="false" final="false" visibility="public"
  29947. deprecated="not deprecated">
  29948. <param name="b" type="byte"/>
  29949. <param name="tag" type="java.lang.String"/>
  29950. <exception name="IOException" type="java.io.IOException"/>
  29951. </method>
  29952. <method name="writeBool"
  29953. abstract="false" native="false" synchronized="false"
  29954. static="false" final="false" visibility="public"
  29955. deprecated="not deprecated">
  29956. <param name="b" type="boolean"/>
  29957. <param name="tag" type="java.lang.String"/>
  29958. <exception name="IOException" type="java.io.IOException"/>
  29959. </method>
  29960. <method name="writeInt"
  29961. abstract="false" native="false" synchronized="false"
  29962. static="false" final="false" visibility="public"
  29963. deprecated="not deprecated">
  29964. <param name="i" type="int"/>
  29965. <param name="tag" type="java.lang.String"/>
  29966. <exception name="IOException" type="java.io.IOException"/>
  29967. </method>
  29968. <method name="writeLong"
  29969. abstract="false" native="false" synchronized="false"
  29970. static="false" final="false" visibility="public"
  29971. deprecated="not deprecated">
  29972. <param name="l" type="long"/>
  29973. <param name="tag" type="java.lang.String"/>
  29974. <exception name="IOException" type="java.io.IOException"/>
  29975. </method>
  29976. <method name="writeFloat"
  29977. abstract="false" native="false" synchronized="false"
  29978. static="false" final="false" visibility="public"
  29979. deprecated="not deprecated">
  29980. <param name="f" type="float"/>
  29981. <param name="tag" type="java.lang.String"/>
  29982. <exception name="IOException" type="java.io.IOException"/>
  29983. </method>
  29984. <method name="writeDouble"
  29985. abstract="false" native="false" synchronized="false"
  29986. static="false" final="false" visibility="public"
  29987. deprecated="not deprecated">
  29988. <param name="d" type="double"/>
  29989. <param name="tag" type="java.lang.String"/>
  29990. <exception name="IOException" type="java.io.IOException"/>
  29991. </method>
  29992. <method name="writeString"
  29993. abstract="false" native="false" synchronized="false"
  29994. static="false" final="false" visibility="public"
  29995. deprecated="not deprecated">
  29996. <param name="s" type="java.lang.String"/>
  29997. <param name="tag" type="java.lang.String"/>
  29998. <exception name="IOException" type="java.io.IOException"/>
  29999. </method>
  30000. <method name="writeBuffer"
  30001. abstract="false" native="false" synchronized="false"
  30002. static="false" final="false" visibility="public"
  30003. deprecated="not deprecated">
  30004. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  30005. <param name="tag" type="java.lang.String"/>
  30006. <exception name="IOException" type="java.io.IOException"/>
  30007. </method>
  30008. <method name="startRecord"
  30009. abstract="false" native="false" synchronized="false"
  30010. static="false" final="false" visibility="public"
  30011. deprecated="not deprecated">
  30012. <param name="r" type="org.apache.hadoop.record.Record"/>
  30013. <param name="tag" type="java.lang.String"/>
  30014. <exception name="IOException" type="java.io.IOException"/>
  30015. </method>
  30016. <method name="endRecord"
  30017. abstract="false" native="false" synchronized="false"
  30018. static="false" final="false" visibility="public"
  30019. deprecated="not deprecated">
  30020. <param name="r" type="org.apache.hadoop.record.Record"/>
  30021. <param name="tag" type="java.lang.String"/>
  30022. <exception name="IOException" type="java.io.IOException"/>
  30023. </method>
  30024. <method name="startVector"
  30025. abstract="false" native="false" synchronized="false"
  30026. static="false" final="false" visibility="public"
  30027. deprecated="not deprecated">
  30028. <param name="v" type="java.util.ArrayList"/>
  30029. <param name="tag" type="java.lang.String"/>
  30030. <exception name="IOException" type="java.io.IOException"/>
  30031. </method>
  30032. <method name="endVector"
  30033. abstract="false" native="false" synchronized="false"
  30034. static="false" final="false" visibility="public"
  30035. deprecated="not deprecated">
  30036. <param name="v" type="java.util.ArrayList"/>
  30037. <param name="tag" type="java.lang.String"/>
  30038. <exception name="IOException" type="java.io.IOException"/>
  30039. </method>
  30040. <method name="startMap"
  30041. abstract="false" native="false" synchronized="false"
  30042. static="false" final="false" visibility="public"
  30043. deprecated="not deprecated">
  30044. <param name="v" type="java.util.TreeMap"/>
  30045. <param name="tag" type="java.lang.String"/>
  30046. <exception name="IOException" type="java.io.IOException"/>
  30047. </method>
  30048. <method name="endMap"
  30049. abstract="false" native="false" synchronized="false"
  30050. static="false" final="false" visibility="public"
  30051. deprecated="not deprecated">
  30052. <param name="v" type="java.util.TreeMap"/>
  30053. <param name="tag" type="java.lang.String"/>
  30054. <exception name="IOException" type="java.io.IOException"/>
  30055. </method>
  30056. </class>
  30057. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  30058. <!-- start interface org.apache.hadoop.record.Index -->
  30059. <interface name="Index" abstract="true"
  30060. static="false" final="false" visibility="public"
  30061. deprecated="not deprecated">
  30062. <method name="done" return="boolean"
  30063. abstract="false" native="false" synchronized="false"
  30064. static="false" final="false" visibility="public"
  30065. deprecated="not deprecated">
  30066. </method>
  30067. <method name="incr"
  30068. abstract="false" native="false" synchronized="false"
  30069. static="false" final="false" visibility="public"
  30070. deprecated="not deprecated">
  30071. </method>
  30072. <doc>
  30073. <![CDATA[Interface that acts as an iterator for deserializing maps.
  30074. The deserializer returns an instance that the record uses to
  30075. read vectors and maps. An example of usage is as follows:
  30076. <code>
  30077. Index idx = startVector(...);
  30078. while (!idx.done()) {
  30079. .... // read element of a vector
  30080. idx.incr();
  30081. }
  30082. </code>]]>
  30083. </doc>
  30084. </interface>
  30085. <!-- end interface org.apache.hadoop.record.Index -->
  30086. <!-- start class org.apache.hadoop.record.Record -->
  30087. <class name="Record" extends="java.lang.Object"
  30088. abstract="true"
  30089. static="false" final="false" visibility="public"
  30090. deprecated="not deprecated">
  30091. <implements name="org.apache.hadoop.io.WritableComparable"/>
  30092. <implements name="java.lang.Cloneable"/>
  30093. <constructor name="Record"
  30094. static="false" final="false" visibility="public"
  30095. deprecated="not deprecated">
  30096. </constructor>
  30097. <method name="serialize"
  30098. abstract="true" native="false" synchronized="false"
  30099. static="false" final="false" visibility="public"
  30100. deprecated="not deprecated">
  30101. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  30102. <param name="tag" type="java.lang.String"/>
  30103. <exception name="IOException" type="java.io.IOException"/>
  30104. <doc>
  30105. <![CDATA[Serialize a record with tag (ususally field name)
  30106. @param rout Record output destination
  30107. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  30108. </doc>
  30109. </method>
  30110. <method name="deserialize"
  30111. abstract="true" native="false" synchronized="false"
  30112. static="false" final="false" visibility="public"
  30113. deprecated="not deprecated">
  30114. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  30115. <param name="tag" type="java.lang.String"/>
  30116. <exception name="IOException" type="java.io.IOException"/>
  30117. <doc>
  30118. <![CDATA[Deserialize a record with a tag (usually field name)
  30119. @param rin Record input source
  30120. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  30121. </doc>
  30122. </method>
  30123. <method name="compareTo" return="int"
  30124. abstract="true" native="false" synchronized="false"
  30125. static="false" final="false" visibility="public"
  30126. deprecated="not deprecated">
  30127. <param name="peer" type="java.lang.Object"/>
  30128. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  30129. </method>
  30130. <method name="serialize"
  30131. abstract="false" native="false" synchronized="false"
  30132. static="false" final="false" visibility="public"
  30133. deprecated="not deprecated">
  30134. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  30135. <exception name="IOException" type="java.io.IOException"/>
  30136. <doc>
  30137. <![CDATA[Serialize a record without a tag
  30138. @param rout Record output destination]]>
  30139. </doc>
  30140. </method>
  30141. <method name="deserialize"
  30142. abstract="false" native="false" synchronized="false"
  30143. static="false" final="false" visibility="public"
  30144. deprecated="not deprecated">
  30145. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  30146. <exception name="IOException" type="java.io.IOException"/>
  30147. <doc>
  30148. <![CDATA[Deserialize a record without a tag
  30149. @param rin Record input source]]>
  30150. </doc>
  30151. </method>
  30152. <method name="write"
  30153. abstract="false" native="false" synchronized="false"
  30154. static="false" final="false" visibility="public"
  30155. deprecated="not deprecated">
  30156. <param name="out" type="java.io.DataOutput"/>
  30157. <exception name="IOException" type="java.io.IOException"/>
  30158. </method>
  30159. <method name="readFields"
  30160. abstract="false" native="false" synchronized="false"
  30161. static="false" final="false" visibility="public"
  30162. deprecated="not deprecated">
  30163. <param name="din" type="java.io.DataInput"/>
  30164. <exception name="IOException" type="java.io.IOException"/>
  30165. </method>
  30166. <method name="toString" return="java.lang.String"
  30167. abstract="false" native="false" synchronized="false"
  30168. static="false" final="false" visibility="public"
  30169. deprecated="not deprecated">
  30170. </method>
  30171. <doc>
  30172. <![CDATA[Abstract class that is extended by generated classes.]]>
  30173. </doc>
  30174. </class>
  30175. <!-- end class org.apache.hadoop.record.Record -->
  30176. <!-- start class org.apache.hadoop.record.RecordComparator -->
  30177. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  30178. abstract="true"
  30179. static="false" final="false" visibility="public"
  30180. deprecated="not deprecated">
  30181. <constructor name="RecordComparator" type="java.lang.Class"
  30182. static="false" final="false" visibility="protected"
  30183. deprecated="not deprecated">
  30184. <doc>
  30185. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  30186. </doc>
  30187. </constructor>
  30188. <method name="compare" return="int"
  30189. abstract="true" native="false" synchronized="false"
  30190. static="false" final="false" visibility="public"
  30191. deprecated="not deprecated">
  30192. <param name="b1" type="byte[]"/>
  30193. <param name="s1" type="int"/>
  30194. <param name="l1" type="int"/>
  30195. <param name="b2" type="byte[]"/>
  30196. <param name="s2" type="int"/>
  30197. <param name="l2" type="int"/>
  30198. </method>
  30199. <method name="define"
  30200. abstract="false" native="false" synchronized="true"
  30201. static="true" final="false" visibility="public"
  30202. deprecated="not deprecated">
  30203. <param name="c" type="java.lang.Class"/>
  30204. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  30205. <doc>
  30206. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  30207. @param c record classs for which a raw comparator is provided
  30208. @param comparator Raw comparator instance for class c]]>
  30209. </doc>
  30210. </method>
  30211. <doc>
  30212. <![CDATA[A raw record comparator base class]]>
  30213. </doc>
  30214. </class>
  30215. <!-- end class org.apache.hadoop.record.RecordComparator -->
  30216. <!-- start interface org.apache.hadoop.record.RecordInput -->
  30217. <interface name="RecordInput" abstract="true"
  30218. static="false" final="false" visibility="public"
  30219. deprecated="not deprecated">
  30220. <method name="readByte" return="byte"
  30221. abstract="false" native="false" synchronized="false"
  30222. static="false" final="false" visibility="public"
  30223. deprecated="not deprecated">
  30224. <param name="tag" type="java.lang.String"/>
  30225. <exception name="IOException" type="java.io.IOException"/>
  30226. <doc>
  30227. <![CDATA[Read a byte from serialized record.
  30228. @param tag Used by tagged serialization formats (such as XML)
  30229. @return value read from serialized record.]]>
  30230. </doc>
  30231. </method>
  30232. <method name="readBool" return="boolean"
  30233. abstract="false" native="false" synchronized="false"
  30234. static="false" final="false" visibility="public"
  30235. deprecated="not deprecated">
  30236. <param name="tag" type="java.lang.String"/>
  30237. <exception name="IOException" type="java.io.IOException"/>
  30238. <doc>
  30239. <![CDATA[Read a boolean from serialized record.
  30240. @param tag Used by tagged serialization formats (such as XML)
  30241. @return value read from serialized record.]]>
  30242. </doc>
  30243. </method>
  30244. <method name="readInt" return="int"
  30245. abstract="false" native="false" synchronized="false"
  30246. static="false" final="false" visibility="public"
  30247. deprecated="not deprecated">
  30248. <param name="tag" type="java.lang.String"/>
  30249. <exception name="IOException" type="java.io.IOException"/>
  30250. <doc>
  30251. <![CDATA[Read an integer from serialized record.
  30252. @param tag Used by tagged serialization formats (such as XML)
  30253. @return value read from serialized record.]]>
  30254. </doc>
  30255. </method>
  30256. <method name="readLong" return="long"
  30257. abstract="false" native="false" synchronized="false"
  30258. static="false" final="false" visibility="public"
  30259. deprecated="not deprecated">
  30260. <param name="tag" type="java.lang.String"/>
  30261. <exception name="IOException" type="java.io.IOException"/>
  30262. <doc>
  30263. <![CDATA[Read a long integer from serialized record.
  30264. @param tag Used by tagged serialization formats (such as XML)
  30265. @return value read from serialized record.]]>
  30266. </doc>
  30267. </method>
  30268. <method name="readFloat" return="float"
  30269. abstract="false" native="false" synchronized="false"
  30270. static="false" final="false" visibility="public"
  30271. deprecated="not deprecated">
  30272. <param name="tag" type="java.lang.String"/>
  30273. <exception name="IOException" type="java.io.IOException"/>
  30274. <doc>
  30275. <![CDATA[Read a single-precision float from serialized record.
  30276. @param tag Used by tagged serialization formats (such as XML)
  30277. @return value read from serialized record.]]>
  30278. </doc>
  30279. </method>
  30280. <method name="readDouble" return="double"
  30281. abstract="false" native="false" synchronized="false"
  30282. static="false" final="false" visibility="public"
  30283. deprecated="not deprecated">
  30284. <param name="tag" type="java.lang.String"/>
  30285. <exception name="IOException" type="java.io.IOException"/>
  30286. <doc>
  30287. <![CDATA[Read a double-precision number from serialized record.
  30288. @param tag Used by tagged serialization formats (such as XML)
  30289. @return value read from serialized record.]]>
  30290. </doc>
  30291. </method>
  30292. <method name="readString" return="java.lang.String"
  30293. abstract="false" native="false" synchronized="false"
  30294. static="false" final="false" visibility="public"
  30295. deprecated="not deprecated">
  30296. <param name="tag" type="java.lang.String"/>
  30297. <exception name="IOException" type="java.io.IOException"/>
  30298. <doc>
  30299. <![CDATA[Read a UTF-8 encoded string from serialized record.
  30300. @param tag Used by tagged serialization formats (such as XML)
  30301. @return value read from serialized record.]]>
  30302. </doc>
  30303. </method>
  30304. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30305. abstract="false" native="false" synchronized="false"
  30306. static="false" final="false" visibility="public"
  30307. deprecated="not deprecated">
  30308. <param name="tag" type="java.lang.String"/>
  30309. <exception name="IOException" type="java.io.IOException"/>
  30310. <doc>
  30311. <![CDATA[Read byte array from serialized record.
  30312. @param tag Used by tagged serialization formats (such as XML)
  30313. @return value read from serialized record.]]>
  30314. </doc>
  30315. </method>
  30316. <method name="startRecord"
  30317. abstract="false" native="false" synchronized="false"
  30318. static="false" final="false" visibility="public"
  30319. deprecated="not deprecated">
  30320. <param name="tag" type="java.lang.String"/>
  30321. <exception name="IOException" type="java.io.IOException"/>
  30322. <doc>
  30323. <![CDATA[Check the mark for start of the serialized record.
  30324. @param tag Used by tagged serialization formats (such as XML)]]>
  30325. </doc>
  30326. </method>
  30327. <method name="endRecord"
  30328. abstract="false" native="false" synchronized="false"
  30329. static="false" final="false" visibility="public"
  30330. deprecated="not deprecated">
  30331. <param name="tag" type="java.lang.String"/>
  30332. <exception name="IOException" type="java.io.IOException"/>
  30333. <doc>
  30334. <![CDATA[Check the mark for end of the serialized record.
  30335. @param tag Used by tagged serialization formats (such as XML)]]>
  30336. </doc>
  30337. </method>
  30338. <method name="startVector" return="org.apache.hadoop.record.Index"
  30339. abstract="false" native="false" synchronized="false"
  30340. static="false" final="false" visibility="public"
  30341. deprecated="not deprecated">
  30342. <param name="tag" type="java.lang.String"/>
  30343. <exception name="IOException" type="java.io.IOException"/>
  30344. <doc>
  30345. <![CDATA[Check the mark for start of the serialized vector.
  30346. @param tag Used by tagged serialization formats (such as XML)
  30347. @return Index that is used to count the number of elements.]]>
  30348. </doc>
  30349. </method>
  30350. <method name="endVector"
  30351. abstract="false" native="false" synchronized="false"
  30352. static="false" final="false" visibility="public"
  30353. deprecated="not deprecated">
  30354. <param name="tag" type="java.lang.String"/>
  30355. <exception name="IOException" type="java.io.IOException"/>
  30356. <doc>
  30357. <![CDATA[Check the mark for end of the serialized vector.
  30358. @param tag Used by tagged serialization formats (such as XML)]]>
  30359. </doc>
  30360. </method>
  30361. <method name="startMap" return="org.apache.hadoop.record.Index"
  30362. abstract="false" native="false" synchronized="false"
  30363. static="false" final="false" visibility="public"
  30364. deprecated="not deprecated">
  30365. <param name="tag" type="java.lang.String"/>
  30366. <exception name="IOException" type="java.io.IOException"/>
  30367. <doc>
  30368. <![CDATA[Check the mark for start of the serialized map.
  30369. @param tag Used by tagged serialization formats (such as XML)
  30370. @return Index that is used to count the number of map entries.]]>
  30371. </doc>
  30372. </method>
  30373. <method name="endMap"
  30374. abstract="false" native="false" synchronized="false"
  30375. static="false" final="false" visibility="public"
  30376. deprecated="not deprecated">
  30377. <param name="tag" type="java.lang.String"/>
  30378. <exception name="IOException" type="java.io.IOException"/>
  30379. <doc>
  30380. <![CDATA[Check the mark for end of the serialized map.
  30381. @param tag Used by tagged serialization formats (such as XML)]]>
  30382. </doc>
  30383. </method>
  30384. <doc>
  30385. <![CDATA[Interface that all the Deserializers have to implement.]]>
  30386. </doc>
  30387. </interface>
  30388. <!-- end interface org.apache.hadoop.record.RecordInput -->
  30389. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  30390. <interface name="RecordOutput" abstract="true"
  30391. static="false" final="false" visibility="public"
  30392. deprecated="not deprecated">
  30393. <method name="writeByte"
  30394. abstract="false" native="false" synchronized="false"
  30395. static="false" final="false" visibility="public"
  30396. deprecated="not deprecated">
  30397. <param name="b" type="byte"/>
  30398. <param name="tag" type="java.lang.String"/>
  30399. <exception name="IOException" type="java.io.IOException"/>
  30400. <doc>
  30401. <![CDATA[Write a byte to serialized record.
  30402. @param b Byte to be serialized
  30403. @param tag Used by tagged serialization formats (such as XML)
  30404. @throws IOException Indicates error in serialization]]>
  30405. </doc>
  30406. </method>
  30407. <method name="writeBool"
  30408. abstract="false" native="false" synchronized="false"
  30409. static="false" final="false" visibility="public"
  30410. deprecated="not deprecated">
  30411. <param name="b" type="boolean"/>
  30412. <param name="tag" type="java.lang.String"/>
  30413. <exception name="IOException" type="java.io.IOException"/>
  30414. <doc>
  30415. <![CDATA[Write a boolean to serialized record.
  30416. @param b Boolean to be serialized
  30417. @param tag Used by tagged serialization formats (such as XML)
  30418. @throws IOException Indicates error in serialization]]>
  30419. </doc>
  30420. </method>
  30421. <method name="writeInt"
  30422. abstract="false" native="false" synchronized="false"
  30423. static="false" final="false" visibility="public"
  30424. deprecated="not deprecated">
  30425. <param name="i" type="int"/>
  30426. <param name="tag" type="java.lang.String"/>
  30427. <exception name="IOException" type="java.io.IOException"/>
  30428. <doc>
  30429. <![CDATA[Write an integer to serialized record.
  30430. @param i Integer to be serialized
  30431. @param tag Used by tagged serialization formats (such as XML)
  30432. @throws IOException Indicates error in serialization]]>
  30433. </doc>
  30434. </method>
  30435. <method name="writeLong"
  30436. abstract="false" native="false" synchronized="false"
  30437. static="false" final="false" visibility="public"
  30438. deprecated="not deprecated">
  30439. <param name="l" type="long"/>
  30440. <param name="tag" type="java.lang.String"/>
  30441. <exception name="IOException" type="java.io.IOException"/>
  30442. <doc>
  30443. <![CDATA[Write a long integer to serialized record.
  30444. @param l Long to be serialized
  30445. @param tag Used by tagged serialization formats (such as XML)
  30446. @throws IOException Indicates error in serialization]]>
  30447. </doc>
  30448. </method>
  30449. <method name="writeFloat"
  30450. abstract="false" native="false" synchronized="false"
  30451. static="false" final="false" visibility="public"
  30452. deprecated="not deprecated">
  30453. <param name="f" type="float"/>
  30454. <param name="tag" type="java.lang.String"/>
  30455. <exception name="IOException" type="java.io.IOException"/>
  30456. <doc>
  30457. <![CDATA[Write a single-precision float to serialized record.
  30458. @param f Float to be serialized
  30459. @param tag Used by tagged serialization formats (such as XML)
  30460. @throws IOException Indicates error in serialization]]>
  30461. </doc>
  30462. </method>
  30463. <method name="writeDouble"
  30464. abstract="false" native="false" synchronized="false"
  30465. static="false" final="false" visibility="public"
  30466. deprecated="not deprecated">
  30467. <param name="d" type="double"/>
  30468. <param name="tag" type="java.lang.String"/>
  30469. <exception name="IOException" type="java.io.IOException"/>
  30470. <doc>
  30471. <![CDATA[Write a double precision floating point number to serialized record.
  30472. @param d Double to be serialized
  30473. @param tag Used by tagged serialization formats (such as XML)
  30474. @throws IOException Indicates error in serialization]]>
  30475. </doc>
  30476. </method>
  30477. <method name="writeString"
  30478. abstract="false" native="false" synchronized="false"
  30479. static="false" final="false" visibility="public"
  30480. deprecated="not deprecated">
  30481. <param name="s" type="java.lang.String"/>
  30482. <param name="tag" type="java.lang.String"/>
  30483. <exception name="IOException" type="java.io.IOException"/>
  30484. <doc>
  30485. <![CDATA[Write a unicode string to serialized record.
  30486. @param s String to be serialized
  30487. @param tag Used by tagged serialization formats (such as XML)
  30488. @throws IOException Indicates error in serialization]]>
  30489. </doc>
  30490. </method>
  30491. <method name="writeBuffer"
  30492. abstract="false" native="false" synchronized="false"
  30493. static="false" final="false" visibility="public"
  30494. deprecated="not deprecated">
  30495. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  30496. <param name="tag" type="java.lang.String"/>
  30497. <exception name="IOException" type="java.io.IOException"/>
  30498. <doc>
  30499. <![CDATA[Write a buffer to serialized record.
  30500. @param buf Buffer to be serialized
  30501. @param tag Used by tagged serialization formats (such as XML)
  30502. @throws IOException Indicates error in serialization]]>
  30503. </doc>
  30504. </method>
  30505. <method name="startRecord"
  30506. abstract="false" native="false" synchronized="false"
  30507. static="false" final="false" visibility="public"
  30508. deprecated="not deprecated">
  30509. <param name="r" type="org.apache.hadoop.record.Record"/>
  30510. <param name="tag" type="java.lang.String"/>
  30511. <exception name="IOException" type="java.io.IOException"/>
  30512. <doc>
  30513. <![CDATA[Mark the start of a record to be serialized.
  30514. @param r Record to be serialized
  30515. @param tag Used by tagged serialization formats (such as XML)
  30516. @throws IOException Indicates error in serialization]]>
  30517. </doc>
  30518. </method>
  30519. <method name="endRecord"
  30520. abstract="false" native="false" synchronized="false"
  30521. static="false" final="false" visibility="public"
  30522. deprecated="not deprecated">
  30523. <param name="r" type="org.apache.hadoop.record.Record"/>
  30524. <param name="tag" type="java.lang.String"/>
  30525. <exception name="IOException" type="java.io.IOException"/>
  30526. <doc>
  30527. <![CDATA[Mark the end of a serialized record.
  30528. @param r Record to be serialized
  30529. @param tag Used by tagged serialization formats (such as XML)
  30530. @throws IOException Indicates error in serialization]]>
  30531. </doc>
  30532. </method>
  30533. <method name="startVector"
  30534. abstract="false" native="false" synchronized="false"
  30535. static="false" final="false" visibility="public"
  30536. deprecated="not deprecated">
  30537. <param name="v" type="java.util.ArrayList"/>
  30538. <param name="tag" type="java.lang.String"/>
  30539. <exception name="IOException" type="java.io.IOException"/>
  30540. <doc>
  30541. <![CDATA[Mark the start of a vector to be serialized.
  30542. @param v Vector to be serialized
  30543. @param tag Used by tagged serialization formats (such as XML)
  30544. @throws IOException Indicates error in serialization]]>
  30545. </doc>
  30546. </method>
  30547. <method name="endVector"
  30548. abstract="false" native="false" synchronized="false"
  30549. static="false" final="false" visibility="public"
  30550. deprecated="not deprecated">
  30551. <param name="v" type="java.util.ArrayList"/>
  30552. <param name="tag" type="java.lang.String"/>
  30553. <exception name="IOException" type="java.io.IOException"/>
  30554. <doc>
  30555. <![CDATA[Mark the end of a serialized vector.
  30556. @param v Vector to be serialized
  30557. @param tag Used by tagged serialization formats (such as XML)
  30558. @throws IOException Indicates error in serialization]]>
  30559. </doc>
  30560. </method>
  30561. <method name="startMap"
  30562. abstract="false" native="false" synchronized="false"
  30563. static="false" final="false" visibility="public"
  30564. deprecated="not deprecated">
  30565. <param name="m" type="java.util.TreeMap"/>
  30566. <param name="tag" type="java.lang.String"/>
  30567. <exception name="IOException" type="java.io.IOException"/>
  30568. <doc>
  30569. <![CDATA[Mark the start of a map to be serialized.
  30570. @param m Map to be serialized
  30571. @param tag Used by tagged serialization formats (such as XML)
  30572. @throws IOException Indicates error in serialization]]>
  30573. </doc>
  30574. </method>
  30575. <method name="endMap"
  30576. abstract="false" native="false" synchronized="false"
  30577. static="false" final="false" visibility="public"
  30578. deprecated="not deprecated">
  30579. <param name="m" type="java.util.TreeMap"/>
  30580. <param name="tag" type="java.lang.String"/>
  30581. <exception name="IOException" type="java.io.IOException"/>
  30582. <doc>
  30583. <![CDATA[Mark the end of a serialized map.
  30584. @param m Map to be serialized
  30585. @param tag Used by tagged serialization formats (such as XML)
  30586. @throws IOException Indicates error in serialization]]>
  30587. </doc>
  30588. </method>
  30589. <doc>
  30590. <![CDATA[Interface that alll the serializers have to implement.]]>
  30591. </doc>
  30592. </interface>
  30593. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  30594. <!-- start class org.apache.hadoop.record.Utils -->
  30595. <class name="Utils" extends="java.lang.Object"
  30596. abstract="false"
  30597. static="false" final="false" visibility="public"
  30598. deprecated="not deprecated">
  30599. <method name="readFloat" return="float"
  30600. abstract="false" native="false" synchronized="false"
  30601. static="true" final="false" visibility="public"
  30602. deprecated="not deprecated">
  30603. <param name="bytes" type="byte[]"/>
  30604. <param name="start" type="int"/>
  30605. <doc>
  30606. <![CDATA[Parse a float from a byte array.]]>
  30607. </doc>
  30608. </method>
  30609. <method name="readDouble" return="double"
  30610. abstract="false" native="false" synchronized="false"
  30611. static="true" final="false" visibility="public"
  30612. deprecated="not deprecated">
  30613. <param name="bytes" type="byte[]"/>
  30614. <param name="start" type="int"/>
  30615. <doc>
  30616. <![CDATA[Parse a double from a byte array.]]>
  30617. </doc>
  30618. </method>
  30619. <method name="readVLong" return="long"
  30620. abstract="false" native="false" synchronized="false"
  30621. static="true" final="false" visibility="public"
  30622. deprecated="not deprecated">
  30623. <param name="bytes" type="byte[]"/>
  30624. <param name="start" type="int"/>
  30625. <exception name="IOException" type="java.io.IOException"/>
  30626. <doc>
  30627. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  30628. @param bytes byte array with decode long
  30629. @param start starting index
  30630. @throws java.io.IOException
  30631. @return deserialized long]]>
  30632. </doc>
  30633. </method>
  30634. <method name="readVInt" return="int"
  30635. abstract="false" native="false" synchronized="false"
  30636. static="true" final="false" visibility="public"
  30637. deprecated="not deprecated">
  30638. <param name="bytes" type="byte[]"/>
  30639. <param name="start" type="int"/>
  30640. <exception name="IOException" type="java.io.IOException"/>
  30641. <doc>
  30642. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  30643. @param bytes byte array with the encoded integer
  30644. @param start start index
  30645. @throws java.io.IOException
  30646. @return deserialized integer]]>
  30647. </doc>
  30648. </method>
  30649. <method name="readVLong" return="long"
  30650. abstract="false" native="false" synchronized="false"
  30651. static="true" final="false" visibility="public"
  30652. deprecated="not deprecated">
  30653. <param name="in" type="java.io.DataInput"/>
  30654. <exception name="IOException" type="java.io.IOException"/>
  30655. <doc>
  30656. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  30657. @param in input stream
  30658. @throws java.io.IOException
  30659. @return deserialized long]]>
  30660. </doc>
  30661. </method>
  30662. <method name="readVInt" return="int"
  30663. abstract="false" native="false" synchronized="false"
  30664. static="true" final="false" visibility="public"
  30665. deprecated="not deprecated">
  30666. <param name="in" type="java.io.DataInput"/>
  30667. <exception name="IOException" type="java.io.IOException"/>
  30668. <doc>
  30669. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  30670. @param in input stream
  30671. @throws java.io.IOException
  30672. @return deserialized integer]]>
  30673. </doc>
  30674. </method>
  30675. <method name="getVIntSize" return="int"
  30676. abstract="false" native="false" synchronized="false"
  30677. static="true" final="false" visibility="public"
  30678. deprecated="not deprecated">
  30679. <param name="i" type="long"/>
  30680. <doc>
  30681. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  30682. @return the encoded length]]>
  30683. </doc>
  30684. </method>
  30685. <method name="writeVLong"
  30686. abstract="false" native="false" synchronized="false"
  30687. static="true" final="false" visibility="public"
  30688. deprecated="not deprecated">
  30689. <param name="stream" type="java.io.DataOutput"/>
  30690. <param name="i" type="long"/>
  30691. <exception name="IOException" type="java.io.IOException"/>
  30692. <doc>
  30693. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  30694. For -112 <= i <= 127, only one byte is used with the actual value.
  30695. For other values of i, the first byte value indicates whether the
  30696. long is positive or negative, and the number of bytes that follow.
  30697. If the first byte value v is between -113 and -120, the following long
  30698. is positive, with number of bytes that follow are -(v+112).
  30699. If the first byte value v is between -121 and -128, the following long
  30700. is negative, with number of bytes that follow are -(v+120). Bytes are
  30701. stored in the high-non-zero-byte-first order.
  30702. @param stream Binary output stream
  30703. @param i Long to be serialized
  30704. @throws java.io.IOException]]>
  30705. </doc>
  30706. </method>
  30707. <method name="writeVInt"
  30708. abstract="false" native="false" synchronized="false"
  30709. static="true" final="false" visibility="public"
  30710. deprecated="not deprecated">
  30711. <param name="stream" type="java.io.DataOutput"/>
  30712. <param name="i" type="int"/>
  30713. <exception name="IOException" type="java.io.IOException"/>
  30714. <doc>
  30715. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  30716. @param stream Binary output stream
  30717. @param i int to be serialized
  30718. @throws java.io.IOException]]>
  30719. </doc>
  30720. </method>
  30721. <method name="compareBytes" return="int"
  30722. abstract="false" native="false" synchronized="false"
  30723. static="true" final="false" visibility="public"
  30724. deprecated="not deprecated">
  30725. <param name="b1" type="byte[]"/>
  30726. <param name="s1" type="int"/>
  30727. <param name="l1" type="int"/>
  30728. <param name="b2" type="byte[]"/>
  30729. <param name="s2" type="int"/>
  30730. <param name="l2" type="int"/>
  30731. <doc>
  30732. <![CDATA[Lexicographic order of binary data.]]>
  30733. </doc>
  30734. </method>
  30735. <field name="hexchars" type="char[]"
  30736. transient="false" volatile="false"
  30737. static="true" final="true" visibility="public"
  30738. deprecated="not deprecated">
  30739. </field>
  30740. <doc>
  30741. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  30742. </doc>
  30743. </class>
  30744. <!-- end class org.apache.hadoop.record.Utils -->
  30745. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  30746. <class name="XmlRecordInput" extends="java.lang.Object"
  30747. abstract="false"
  30748. static="false" final="false" visibility="public"
  30749. deprecated="not deprecated">
  30750. <implements name="org.apache.hadoop.record.RecordInput"/>
  30751. <constructor name="XmlRecordInput" type="java.io.InputStream"
  30752. static="false" final="false" visibility="public"
  30753. deprecated="not deprecated">
  30754. <doc>
  30755. <![CDATA[Creates a new instance of XmlRecordInput]]>
  30756. </doc>
  30757. </constructor>
  30758. <method name="readByte" return="byte"
  30759. abstract="false" native="false" synchronized="false"
  30760. static="false" final="false" visibility="public"
  30761. deprecated="not deprecated">
  30762. <param name="tag" type="java.lang.String"/>
  30763. <exception name="IOException" type="java.io.IOException"/>
  30764. </method>
  30765. <method name="readBool" return="boolean"
  30766. abstract="false" native="false" synchronized="false"
  30767. static="false" final="false" visibility="public"
  30768. deprecated="not deprecated">
  30769. <param name="tag" type="java.lang.String"/>
  30770. <exception name="IOException" type="java.io.IOException"/>
  30771. </method>
  30772. <method name="readInt" return="int"
  30773. abstract="false" native="false" synchronized="false"
  30774. static="false" final="false" visibility="public"
  30775. deprecated="not deprecated">
  30776. <param name="tag" type="java.lang.String"/>
  30777. <exception name="IOException" type="java.io.IOException"/>
  30778. </method>
  30779. <method name="readLong" return="long"
  30780. abstract="false" native="false" synchronized="false"
  30781. static="false" final="false" visibility="public"
  30782. deprecated="not deprecated">
  30783. <param name="tag" type="java.lang.String"/>
  30784. <exception name="IOException" type="java.io.IOException"/>
  30785. </method>
  30786. <method name="readFloat" return="float"
  30787. abstract="false" native="false" synchronized="false"
  30788. static="false" final="false" visibility="public"
  30789. deprecated="not deprecated">
  30790. <param name="tag" type="java.lang.String"/>
  30791. <exception name="IOException" type="java.io.IOException"/>
  30792. </method>
  30793. <method name="readDouble" return="double"
  30794. abstract="false" native="false" synchronized="false"
  30795. static="false" final="false" visibility="public"
  30796. deprecated="not deprecated">
  30797. <param name="tag" type="java.lang.String"/>
  30798. <exception name="IOException" type="java.io.IOException"/>
  30799. </method>
  30800. <method name="readString" return="java.lang.String"
  30801. abstract="false" native="false" synchronized="false"
  30802. static="false" final="false" visibility="public"
  30803. deprecated="not deprecated">
  30804. <param name="tag" type="java.lang.String"/>
  30805. <exception name="IOException" type="java.io.IOException"/>
  30806. </method>
  30807. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30808. abstract="false" native="false" synchronized="false"
  30809. static="false" final="false" visibility="public"
  30810. deprecated="not deprecated">
  30811. <param name="tag" type="java.lang.String"/>
  30812. <exception name="IOException" type="java.io.IOException"/>
  30813. </method>
  30814. <method name="startRecord"
  30815. abstract="false" native="false" synchronized="false"
  30816. static="false" final="false" visibility="public"
  30817. deprecated="not deprecated">
  30818. <param name="tag" type="java.lang.String"/>
  30819. <exception name="IOException" type="java.io.IOException"/>
  30820. </method>
  30821. <method name="endRecord"
  30822. abstract="false" native="false" synchronized="false"
  30823. static="false" final="false" visibility="public"
  30824. deprecated="not deprecated">
  30825. <param name="tag" type="java.lang.String"/>
  30826. <exception name="IOException" type="java.io.IOException"/>
  30827. </method>
  30828. <method name="startVector" return="org.apache.hadoop.record.Index"
  30829. abstract="false" native="false" synchronized="false"
  30830. static="false" final="false" visibility="public"
  30831. deprecated="not deprecated">
  30832. <param name="tag" type="java.lang.String"/>
  30833. <exception name="IOException" type="java.io.IOException"/>
  30834. </method>
  30835. <method name="endVector"
  30836. abstract="false" native="false" synchronized="false"
  30837. static="false" final="false" visibility="public"
  30838. deprecated="not deprecated">
  30839. <param name="tag" type="java.lang.String"/>
  30840. <exception name="IOException" type="java.io.IOException"/>
  30841. </method>
  30842. <method name="startMap" return="org.apache.hadoop.record.Index"
  30843. abstract="false" native="false" synchronized="false"
  30844. static="false" final="false" visibility="public"
  30845. deprecated="not deprecated">
  30846. <param name="tag" type="java.lang.String"/>
  30847. <exception name="IOException" type="java.io.IOException"/>
  30848. </method>
  30849. <method name="endMap"
  30850. abstract="false" native="false" synchronized="false"
  30851. static="false" final="false" visibility="public"
  30852. deprecated="not deprecated">
  30853. <param name="tag" type="java.lang.String"/>
  30854. <exception name="IOException" type="java.io.IOException"/>
  30855. </method>
  30856. <doc>
  30857. <![CDATA[XML Deserializer.]]>
  30858. </doc>
  30859. </class>
  30860. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  30861. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  30862. <class name="XmlRecordOutput" extends="java.lang.Object"
  30863. abstract="false"
  30864. static="false" final="false" visibility="public"
  30865. deprecated="not deprecated">
  30866. <implements name="org.apache.hadoop.record.RecordOutput"/>
  30867. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  30868. static="false" final="false" visibility="public"
  30869. deprecated="not deprecated">
  30870. <doc>
  30871. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  30872. </doc>
  30873. </constructor>
  30874. <method name="writeByte"
  30875. abstract="false" native="false" synchronized="false"
  30876. static="false" final="false" visibility="public"
  30877. deprecated="not deprecated">
  30878. <param name="b" type="byte"/>
  30879. <param name="tag" type="java.lang.String"/>
  30880. <exception name="IOException" type="java.io.IOException"/>
  30881. </method>
  30882. <method name="writeBool"
  30883. abstract="false" native="false" synchronized="false"
  30884. static="false" final="false" visibility="public"
  30885. deprecated="not deprecated">
  30886. <param name="b" type="boolean"/>
  30887. <param name="tag" type="java.lang.String"/>
  30888. <exception name="IOException" type="java.io.IOException"/>
  30889. </method>
  30890. <method name="writeInt"
  30891. abstract="false" native="false" synchronized="false"
  30892. static="false" final="false" visibility="public"
  30893. deprecated="not deprecated">
  30894. <param name="i" type="int"/>
  30895. <param name="tag" type="java.lang.String"/>
  30896. <exception name="IOException" type="java.io.IOException"/>
  30897. </method>
  30898. <method name="writeLong"
  30899. abstract="false" native="false" synchronized="false"
  30900. static="false" final="false" visibility="public"
  30901. deprecated="not deprecated">
  30902. <param name="l" type="long"/>
  30903. <param name="tag" type="java.lang.String"/>
  30904. <exception name="IOException" type="java.io.IOException"/>
  30905. </method>
  30906. <method name="writeFloat"
  30907. abstract="false" native="false" synchronized="false"
  30908. static="false" final="false" visibility="public"
  30909. deprecated="not deprecated">
  30910. <param name="f" type="float"/>
  30911. <param name="tag" type="java.lang.String"/>
  30912. <exception name="IOException" type="java.io.IOException"/>
  30913. </method>
  30914. <method name="writeDouble"
  30915. abstract="false" native="false" synchronized="false"
  30916. static="false" final="false" visibility="public"
  30917. deprecated="not deprecated">
  30918. <param name="d" type="double"/>
  30919. <param name="tag" type="java.lang.String"/>
  30920. <exception name="IOException" type="java.io.IOException"/>
  30921. </method>
  30922. <method name="writeString"
  30923. abstract="false" native="false" synchronized="false"
  30924. static="false" final="false" visibility="public"
  30925. deprecated="not deprecated">
  30926. <param name="s" type="java.lang.String"/>
  30927. <param name="tag" type="java.lang.String"/>
  30928. <exception name="IOException" type="java.io.IOException"/>
  30929. </method>
  30930. <method name="writeBuffer"
  30931. abstract="false" native="false" synchronized="false"
  30932. static="false" final="false" visibility="public"
  30933. deprecated="not deprecated">
  30934. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  30935. <param name="tag" type="java.lang.String"/>
  30936. <exception name="IOException" type="java.io.IOException"/>
  30937. </method>
  30938. <method name="startRecord"
  30939. abstract="false" native="false" synchronized="false"
  30940. static="false" final="false" visibility="public"
  30941. deprecated="not deprecated">
  30942. <param name="r" type="org.apache.hadoop.record.Record"/>
  30943. <param name="tag" type="java.lang.String"/>
  30944. <exception name="IOException" type="java.io.IOException"/>
  30945. </method>
  30946. <method name="endRecord"
  30947. abstract="false" native="false" synchronized="false"
  30948. static="false" final="false" visibility="public"
  30949. deprecated="not deprecated">
  30950. <param name="r" type="org.apache.hadoop.record.Record"/>
  30951. <param name="tag" type="java.lang.String"/>
  30952. <exception name="IOException" type="java.io.IOException"/>
  30953. </method>
  30954. <method name="startVector"
  30955. abstract="false" native="false" synchronized="false"
  30956. static="false" final="false" visibility="public"
  30957. deprecated="not deprecated">
  30958. <param name="v" type="java.util.ArrayList"/>
  30959. <param name="tag" type="java.lang.String"/>
  30960. <exception name="IOException" type="java.io.IOException"/>
  30961. </method>
  30962. <method name="endVector"
  30963. abstract="false" native="false" synchronized="false"
  30964. static="false" final="false" visibility="public"
  30965. deprecated="not deprecated">
  30966. <param name="v" type="java.util.ArrayList"/>
  30967. <param name="tag" type="java.lang.String"/>
  30968. <exception name="IOException" type="java.io.IOException"/>
  30969. </method>
  30970. <method name="startMap"
  30971. abstract="false" native="false" synchronized="false"
  30972. static="false" final="false" visibility="public"
  30973. deprecated="not deprecated">
  30974. <param name="v" type="java.util.TreeMap"/>
  30975. <param name="tag" type="java.lang.String"/>
  30976. <exception name="IOException" type="java.io.IOException"/>
  30977. </method>
  30978. <method name="endMap"
  30979. abstract="false" native="false" synchronized="false"
  30980. static="false" final="false" visibility="public"
  30981. deprecated="not deprecated">
  30982. <param name="v" type="java.util.TreeMap"/>
  30983. <param name="tag" type="java.lang.String"/>
  30984. <exception name="IOException" type="java.io.IOException"/>
  30985. </method>
  30986. <doc>
  30987. <![CDATA[XML Serializer.]]>
  30988. </doc>
  30989. </class>
  30990. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  30991. </package>
  30992. <package name="org.apache.hadoop.record.compiler">
  30993. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  30994. <class name="CodeBuffer" extends="java.lang.Object"
  30995. abstract="false"
  30996. static="false" final="false" visibility="public"
  30997. deprecated="not deprecated">
  30998. <method name="toString" return="java.lang.String"
  30999. abstract="false" native="false" synchronized="false"
  31000. static="false" final="false" visibility="public"
  31001. deprecated="not deprecated">
  31002. </method>
  31003. <doc>
  31004. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  31005. </doc>
  31006. </class>
  31007. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  31008. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  31009. <class name="Consts" extends="java.lang.Object"
  31010. abstract="false"
  31011. static="false" final="false" visibility="public"
  31012. deprecated="not deprecated">
  31013. <field name="RIO_PREFIX" type="java.lang.String"
  31014. transient="false" volatile="false"
  31015. static="true" final="true" visibility="public"
  31016. deprecated="not deprecated">
  31017. </field>
  31018. <field name="RTI_VAR" type="java.lang.String"
  31019. transient="false" volatile="false"
  31020. static="true" final="true" visibility="public"
  31021. deprecated="not deprecated">
  31022. </field>
  31023. <field name="RTI_FILTER" type="java.lang.String"
  31024. transient="false" volatile="false"
  31025. static="true" final="true" visibility="public"
  31026. deprecated="not deprecated">
  31027. </field>
  31028. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  31029. transient="false" volatile="false"
  31030. static="true" final="true" visibility="public"
  31031. deprecated="not deprecated">
  31032. </field>
  31033. <field name="RECORD_OUTPUT" type="java.lang.String"
  31034. transient="false" volatile="false"
  31035. static="true" final="true" visibility="public"
  31036. deprecated="not deprecated">
  31037. </field>
  31038. <field name="RECORD_INPUT" type="java.lang.String"
  31039. transient="false" volatile="false"
  31040. static="true" final="true" visibility="public"
  31041. deprecated="not deprecated">
  31042. </field>
  31043. <field name="TAG" type="java.lang.String"
  31044. transient="false" volatile="false"
  31045. static="true" final="true" visibility="public"
  31046. deprecated="not deprecated">
  31047. </field>
  31048. <doc>
  31049. <![CDATA[const definitions for Record I/O compiler]]>
  31050. </doc>
  31051. </class>
  31052. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  31053. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  31054. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  31055. abstract="false"
  31056. static="false" final="false" visibility="public"
  31057. deprecated="not deprecated">
  31058. <constructor name="JBoolean"
  31059. static="false" final="false" visibility="public"
  31060. deprecated="not deprecated">
  31061. <doc>
  31062. <![CDATA[Creates a new instance of JBoolean]]>
  31063. </doc>
  31064. </constructor>
  31065. </class>
  31066. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  31067. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  31068. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  31069. abstract="false"
  31070. static="false" final="false" visibility="public"
  31071. deprecated="not deprecated">
  31072. <constructor name="JBuffer"
  31073. static="false" final="false" visibility="public"
  31074. deprecated="not deprecated">
  31075. <doc>
  31076. <![CDATA[Creates a new instance of JBuffer]]>
  31077. </doc>
  31078. </constructor>
  31079. <doc>
  31080. <![CDATA[Code generator for "buffer" type.]]>
  31081. </doc>
  31082. </class>
  31083. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  31084. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  31085. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  31086. abstract="false"
  31087. static="false" final="false" visibility="public"
  31088. deprecated="not deprecated">
  31089. <constructor name="JByte"
  31090. static="false" final="false" visibility="public"
  31091. deprecated="not deprecated">
  31092. </constructor>
  31093. <doc>
  31094. <![CDATA[Code generator for "byte" type.]]>
  31095. </doc>
  31096. </class>
  31097. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  31098. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  31099. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  31100. abstract="false"
  31101. static="false" final="false" visibility="public"
  31102. deprecated="not deprecated">
  31103. <constructor name="JDouble"
  31104. static="false" final="false" visibility="public"
  31105. deprecated="not deprecated">
  31106. <doc>
  31107. <![CDATA[Creates a new instance of JDouble]]>
  31108. </doc>
  31109. </constructor>
  31110. </class>
  31111. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  31112. <!-- start class org.apache.hadoop.record.compiler.JField -->
  31113. <class name="JField" extends="java.lang.Object"
  31114. abstract="false"
  31115. static="false" final="false" visibility="public"
  31116. deprecated="not deprecated">
  31117. <constructor name="JField" type="java.lang.String, java.lang.Object"
  31118. static="false" final="false" visibility="public"
  31119. deprecated="not deprecated">
  31120. <doc>
  31121. <![CDATA[Creates a new instance of JField]]>
  31122. </doc>
  31123. </constructor>
  31124. <doc>
  31125. <![CDATA[A thin wrappper around record field.]]>
  31126. </doc>
  31127. </class>
  31128. <!-- end class org.apache.hadoop.record.compiler.JField -->
  31129. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  31130. <class name="JFile" extends="java.lang.Object"
  31131. abstract="false"
  31132. static="false" final="false" visibility="public"
  31133. deprecated="not deprecated">
  31134. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  31135. static="false" final="false" visibility="public"
  31136. deprecated="not deprecated">
  31137. <doc>
  31138. <![CDATA[Creates a new instance of JFile
  31139. @param name possibly full pathname to the file
  31140. @param inclFiles included files (as JFile)
  31141. @param recList List of records defined within this file]]>
  31142. </doc>
  31143. </constructor>
  31144. <method name="genCode" return="int"
  31145. abstract="false" native="false" synchronized="false"
  31146. static="false" final="false" visibility="public"
  31147. deprecated="not deprecated">
  31148. <param name="language" type="java.lang.String"/>
  31149. <param name="destDir" type="java.lang.String"/>
  31150. <param name="options" type="java.util.ArrayList"/>
  31151. <exception name="IOException" type="java.io.IOException"/>
  31152. <doc>
  31153. <![CDATA[Generate record code in given language. Language should be all
  31154. lowercase.]]>
  31155. </doc>
  31156. </method>
  31157. <doc>
  31158. <![CDATA[Container for the Hadoop Record DDL.
  31159. The main components of the file are filename, list of included files,
  31160. and records defined in that file.]]>
  31161. </doc>
  31162. </class>
  31163. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  31164. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  31165. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  31166. abstract="false"
  31167. static="false" final="false" visibility="public"
  31168. deprecated="not deprecated">
  31169. <constructor name="JFloat"
  31170. static="false" final="false" visibility="public"
  31171. deprecated="not deprecated">
  31172. <doc>
  31173. <![CDATA[Creates a new instance of JFloat]]>
  31174. </doc>
  31175. </constructor>
  31176. </class>
  31177. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  31178. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  31179. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  31180. abstract="false"
  31181. static="false" final="false" visibility="public"
  31182. deprecated="not deprecated">
  31183. <constructor name="JInt"
  31184. static="false" final="false" visibility="public"
  31185. deprecated="not deprecated">
  31186. <doc>
  31187. <![CDATA[Creates a new instance of JInt]]>
  31188. </doc>
  31189. </constructor>
  31190. <doc>
  31191. <![CDATA[Code generator for "int" type]]>
  31192. </doc>
  31193. </class>
  31194. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  31195. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  31196. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  31197. abstract="false"
  31198. static="false" final="false" visibility="public"
  31199. deprecated="not deprecated">
  31200. <constructor name="JLong"
  31201. static="false" final="false" visibility="public"
  31202. deprecated="not deprecated">
  31203. <doc>
  31204. <![CDATA[Creates a new instance of JLong]]>
  31205. </doc>
  31206. </constructor>
  31207. <doc>
  31208. <![CDATA[Code generator for "long" type]]>
  31209. </doc>
  31210. </class>
  31211. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  31212. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  31213. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  31214. abstract="false"
  31215. static="false" final="false" visibility="public"
  31216. deprecated="not deprecated">
  31217. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  31218. static="false" final="false" visibility="public"
  31219. deprecated="not deprecated">
  31220. <doc>
  31221. <![CDATA[Creates a new instance of JMap]]>
  31222. </doc>
  31223. </constructor>
  31224. </class>
  31225. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  31226. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  31227. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  31228. abstract="false"
  31229. static="false" final="false" visibility="public"
  31230. deprecated="not deprecated">
  31231. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  31232. static="false" final="false" visibility="public"
  31233. deprecated="not deprecated">
  31234. <doc>
  31235. <![CDATA[Creates a new instance of JRecord]]>
  31236. </doc>
  31237. </constructor>
  31238. </class>
  31239. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  31240. <!-- start class org.apache.hadoop.record.compiler.JString -->
  31241. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  31242. abstract="false"
  31243. static="false" final="false" visibility="public"
  31244. deprecated="not deprecated">
  31245. <constructor name="JString"
  31246. static="false" final="false" visibility="public"
  31247. deprecated="not deprecated">
  31248. <doc>
  31249. <![CDATA[Creates a new instance of JString]]>
  31250. </doc>
  31251. </constructor>
  31252. </class>
  31253. <!-- end class org.apache.hadoop.record.compiler.JString -->
  31254. <!-- start class org.apache.hadoop.record.compiler.JType -->
  31255. <class name="JType" extends="java.lang.Object"
  31256. abstract="true"
  31257. static="false" final="false" visibility="public"
  31258. deprecated="not deprecated">
  31259. <constructor name="JType"
  31260. static="false" final="false" visibility="public"
  31261. deprecated="not deprecated">
  31262. </constructor>
  31263. <doc>
  31264. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  31265. </doc>
  31266. </class>
  31267. <!-- end class org.apache.hadoop.record.compiler.JType -->
  31268. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  31269. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  31270. abstract="false"
  31271. static="false" final="false" visibility="public"
  31272. deprecated="not deprecated">
  31273. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  31274. static="false" final="false" visibility="public"
  31275. deprecated="not deprecated">
  31276. <doc>
  31277. <![CDATA[Creates a new instance of JVector]]>
  31278. </doc>
  31279. </constructor>
  31280. </class>
  31281. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  31282. </package>
  31283. <package name="org.apache.hadoop.record.compiler.ant">
  31284. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  31285. <class name="RccTask" extends="org.apache.tools.ant.Task"
  31286. abstract="false"
  31287. static="false" final="false" visibility="public"
  31288. deprecated="not deprecated">
  31289. <constructor name="RccTask"
  31290. static="false" final="false" visibility="public"
  31291. deprecated="not deprecated">
  31292. <doc>
  31293. <![CDATA[Creates a new instance of RccTask]]>
  31294. </doc>
  31295. </constructor>
  31296. <method name="setLanguage"
  31297. abstract="false" native="false" synchronized="false"
  31298. static="false" final="false" visibility="public"
  31299. deprecated="not deprecated">
  31300. <param name="language" type="java.lang.String"/>
  31301. <doc>
  31302. <![CDATA[Sets the output language option
  31303. @param language "java"/"c++"]]>
  31304. </doc>
  31305. </method>
  31306. <method name="setFile"
  31307. abstract="false" native="false" synchronized="false"
  31308. static="false" final="false" visibility="public"
  31309. deprecated="not deprecated">
  31310. <param name="file" type="java.io.File"/>
  31311. <doc>
  31312. <![CDATA[Sets the record definition file attribute
  31313. @param file record definition file]]>
  31314. </doc>
  31315. </method>
  31316. <method name="setFailonerror"
  31317. abstract="false" native="false" synchronized="false"
  31318. static="false" final="false" visibility="public"
  31319. deprecated="not deprecated">
  31320. <param name="flag" type="boolean"/>
  31321. <doc>
  31322. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  31323. @param flag true will throw build exception in case of failure (default)]]>
  31324. </doc>
  31325. </method>
  31326. <method name="setDestdir"
  31327. abstract="false" native="false" synchronized="false"
  31328. static="false" final="false" visibility="public"
  31329. deprecated="not deprecated">
  31330. <param name="dir" type="java.io.File"/>
  31331. <doc>
  31332. <![CDATA[Sets directory where output files will be generated
  31333. @param dir output directory]]>
  31334. </doc>
  31335. </method>
  31336. <method name="addFileset"
  31337. abstract="false" native="false" synchronized="false"
  31338. static="false" final="false" visibility="public"
  31339. deprecated="not deprecated">
  31340. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  31341. <doc>
  31342. <![CDATA[Adds a fileset that can consist of one or more files
  31343. @param set Set of record definition files]]>
  31344. </doc>
  31345. </method>
  31346. <method name="execute"
  31347. abstract="false" native="false" synchronized="false"
  31348. static="false" final="false" visibility="public"
  31349. deprecated="not deprecated">
  31350. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  31351. <doc>
  31352. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  31353. </doc>
  31354. </method>
  31355. <doc>
  31356. <![CDATA[Hadoop record compiler ant Task
  31357. <p> This task takes the given record definition files and compiles them into
  31358. java or c++
  31359. files. It is then up to the user to compile the generated files.
  31360. <p> The task requires the <code>file</code> or the nested fileset element to be
  31361. specified. Optional attributes are <code>language</code> (set the output
  31362. language, default is "java"),
  31363. <code>destdir</code> (name of the destination directory for generated java/c++
  31364. code, default is ".") and <code>failonerror</code> (specifies error handling
  31365. behavior. default is true).
  31366. <p><h4>Usage</h4>
  31367. <pre>
  31368. &lt;recordcc
  31369. destdir="${basedir}/gensrc"
  31370. language="java"&gt;
  31371. &lt;fileset include="**\/*.jr" /&gt;
  31372. &lt;/recordcc&gt;
  31373. </pre>]]>
  31374. </doc>
  31375. </class>
  31376. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  31377. </package>
  31378. <package name="org.apache.hadoop.record.compiler.generated">
  31379. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  31380. <class name="ParseException" extends="java.lang.Exception"
  31381. abstract="false"
  31382. static="false" final="false" visibility="public"
  31383. deprecated="not deprecated">
  31384. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  31385. static="false" final="false" visibility="public"
  31386. deprecated="not deprecated">
  31387. <doc>
  31388. <![CDATA[This constructor is used by the method "generateParseException"
  31389. in the generated parser. Calling this constructor generates
  31390. a new object of this type with the fields "currentToken",
  31391. "expectedTokenSequences", and "tokenImage" set. The boolean
  31392. flag "specialConstructor" is also set to true to indicate that
  31393. this constructor was used to create this object.
  31394. This constructor calls its super class with the empty string
  31395. to force the "toString" method of parent class "Throwable" to
  31396. print the error message in the form:
  31397. ParseException: <result of getMessage>]]>
  31398. </doc>
  31399. </constructor>
  31400. <constructor name="ParseException"
  31401. static="false" final="false" visibility="public"
  31402. deprecated="not deprecated">
  31403. <doc>
  31404. <![CDATA[The following constructors are for use by you for whatever
  31405. purpose you can think of. Constructing the exception in this
  31406. manner makes the exception behave in the normal way - i.e., as
  31407. documented in the class "Throwable". The fields "errorToken",
  31408. "expectedTokenSequences", and "tokenImage" do not contain
  31409. relevant information. The JavaCC generated code does not use
  31410. these constructors.]]>
  31411. </doc>
  31412. </constructor>
  31413. <constructor name="ParseException" type="java.lang.String"
  31414. static="false" final="false" visibility="public"
  31415. deprecated="not deprecated">
  31416. </constructor>
  31417. <method name="getMessage" return="java.lang.String"
  31418. abstract="false" native="false" synchronized="false"
  31419. static="false" final="false" visibility="public"
  31420. deprecated="not deprecated">
  31421. <doc>
  31422. <![CDATA[This method has the standard behavior when this object has been
  31423. created using the standard constructors. Otherwise, it uses
  31424. "currentToken" and "expectedTokenSequences" to generate a parse
  31425. error message and returns it. If this object has been created
  31426. due to a parse error, and you do not catch it (it gets thrown
  31427. from the parser), then this method is called during the printing
  31428. of the final stack trace, and hence the correct error message
  31429. gets displayed.]]>
  31430. </doc>
  31431. </method>
  31432. <method name="add_escapes" return="java.lang.String"
  31433. abstract="false" native="false" synchronized="false"
  31434. static="false" final="false" visibility="protected"
  31435. deprecated="not deprecated">
  31436. <param name="str" type="java.lang.String"/>
  31437. <doc>
  31438. <![CDATA[Used to convert raw characters to their escaped version
  31439. when these raw version cannot be used as part of an ASCII
  31440. string literal.]]>
  31441. </doc>
  31442. </method>
  31443. <field name="specialConstructor" type="boolean"
  31444. transient="false" volatile="false"
  31445. static="false" final="false" visibility="protected"
  31446. deprecated="not deprecated">
  31447. <doc>
  31448. <![CDATA[This variable determines which constructor was used to create
  31449. this object and thereby affects the semantics of the
  31450. "getMessage" method (see below).]]>
  31451. </doc>
  31452. </field>
  31453. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  31454. transient="false" volatile="false"
  31455. static="false" final="false" visibility="public"
  31456. deprecated="not deprecated">
  31457. <doc>
  31458. <![CDATA[This is the last token that has been consumed successfully. If
  31459. this object has been created due to a parse error, the token
  31460. followng this token will (therefore) be the first error token.]]>
  31461. </doc>
  31462. </field>
  31463. <field name="expectedTokenSequences" type="int[][]"
  31464. transient="false" volatile="false"
  31465. static="false" final="false" visibility="public"
  31466. deprecated="not deprecated">
  31467. <doc>
  31468. <![CDATA[Each entry in this array is an array of integers. Each array
  31469. of integers represents a sequence of tokens (by their ordinal
  31470. values) that is expected at this point of the parse.]]>
  31471. </doc>
  31472. </field>
  31473. <field name="tokenImage" type="java.lang.String[]"
  31474. transient="false" volatile="false"
  31475. static="false" final="false" visibility="public"
  31476. deprecated="not deprecated">
  31477. <doc>
  31478. <![CDATA[This is a reference to the "tokenImage" array of the generated
  31479. parser within which the parse error occurred. This array is
  31480. defined in the generated ...Constants interface.]]>
  31481. </doc>
  31482. </field>
  31483. <field name="eol" type="java.lang.String"
  31484. transient="false" volatile="false"
  31485. static="false" final="false" visibility="protected"
  31486. deprecated="not deprecated">
  31487. <doc>
  31488. <![CDATA[The end of line string for this machine.]]>
  31489. </doc>
  31490. </field>
  31491. <doc>
  31492. <![CDATA[This exception is thrown when parse errors are encountered.
  31493. You can explicitly create objects of this exception type by
  31494. calling the method generateParseException in the generated
  31495. parser.
  31496. You can modify this class to customize your error reporting
  31497. mechanisms so long as you retain the public fields.]]>
  31498. </doc>
  31499. </class>
  31500. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  31501. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  31502. <class name="Rcc" extends="java.lang.Object"
  31503. abstract="false"
  31504. static="false" final="false" visibility="public"
  31505. deprecated="not deprecated">
  31506. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  31507. <constructor name="Rcc" type="java.io.InputStream"
  31508. static="false" final="false" visibility="public"
  31509. deprecated="not deprecated">
  31510. </constructor>
  31511. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  31512. static="false" final="false" visibility="public"
  31513. deprecated="not deprecated">
  31514. </constructor>
  31515. <constructor name="Rcc" type="java.io.Reader"
  31516. static="false" final="false" visibility="public"
  31517. deprecated="not deprecated">
  31518. </constructor>
  31519. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  31520. static="false" final="false" visibility="public"
  31521. deprecated="not deprecated">
  31522. </constructor>
  31523. <method name="main"
  31524. abstract="false" native="false" synchronized="false"
  31525. static="true" final="false" visibility="public"
  31526. deprecated="not deprecated">
  31527. <param name="args" type="java.lang.String[]"/>
  31528. </method>
  31529. <method name="usage"
  31530. abstract="false" native="false" synchronized="false"
  31531. static="true" final="false" visibility="public"
  31532. deprecated="not deprecated">
  31533. </method>
  31534. <method name="driver" return="int"
  31535. abstract="false" native="false" synchronized="false"
  31536. static="true" final="false" visibility="public"
  31537. deprecated="not deprecated">
  31538. <param name="args" type="java.lang.String[]"/>
  31539. </method>
  31540. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  31541. abstract="false" native="false" synchronized="false"
  31542. static="false" final="true" visibility="public"
  31543. deprecated="not deprecated">
  31544. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31545. </method>
  31546. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  31547. abstract="false" native="false" synchronized="false"
  31548. static="false" final="true" visibility="public"
  31549. deprecated="not deprecated">
  31550. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31551. </method>
  31552. <method name="Module" return="java.util.ArrayList"
  31553. abstract="false" native="false" synchronized="false"
  31554. static="false" final="true" visibility="public"
  31555. deprecated="not deprecated">
  31556. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31557. </method>
  31558. <method name="ModuleName" return="java.lang.String"
  31559. abstract="false" native="false" synchronized="false"
  31560. static="false" final="true" visibility="public"
  31561. deprecated="not deprecated">
  31562. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31563. </method>
  31564. <method name="RecordList" return="java.util.ArrayList"
  31565. abstract="false" native="false" synchronized="false"
  31566. static="false" final="true" visibility="public"
  31567. deprecated="not deprecated">
  31568. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31569. </method>
  31570. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  31571. abstract="false" native="false" synchronized="false"
  31572. static="false" final="true" visibility="public"
  31573. deprecated="not deprecated">
  31574. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31575. </method>
  31576. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  31577. abstract="false" native="false" synchronized="false"
  31578. static="false" final="true" visibility="public"
  31579. deprecated="not deprecated">
  31580. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31581. </method>
  31582. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  31583. abstract="false" native="false" synchronized="false"
  31584. static="false" final="true" visibility="public"
  31585. deprecated="not deprecated">
  31586. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31587. </method>
  31588. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  31589. abstract="false" native="false" synchronized="false"
  31590. static="false" final="true" visibility="public"
  31591. deprecated="not deprecated">
  31592. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31593. </method>
  31594. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  31595. abstract="false" native="false" synchronized="false"
  31596. static="false" final="true" visibility="public"
  31597. deprecated="not deprecated">
  31598. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31599. </method>
  31600. <method name="ReInit"
  31601. abstract="false" native="false" synchronized="false"
  31602. static="false" final="false" visibility="public"
  31603. deprecated="not deprecated">
  31604. <param name="stream" type="java.io.InputStream"/>
  31605. </method>
  31606. <method name="ReInit"
  31607. abstract="false" native="false" synchronized="false"
  31608. static="false" final="false" visibility="public"
  31609. deprecated="not deprecated">
  31610. <param name="stream" type="java.io.InputStream"/>
  31611. <param name="encoding" type="java.lang.String"/>
  31612. </method>
  31613. <method name="ReInit"
  31614. abstract="false" native="false" synchronized="false"
  31615. static="false" final="false" visibility="public"
  31616. deprecated="not deprecated">
  31617. <param name="stream" type="java.io.Reader"/>
  31618. </method>
  31619. <method name="ReInit"
  31620. abstract="false" native="false" synchronized="false"
  31621. static="false" final="false" visibility="public"
  31622. deprecated="not deprecated">
  31623. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  31624. </method>
  31625. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31626. abstract="false" native="false" synchronized="false"
  31627. static="false" final="true" visibility="public"
  31628. deprecated="not deprecated">
  31629. </method>
  31630. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31631. abstract="false" native="false" synchronized="false"
  31632. static="false" final="true" visibility="public"
  31633. deprecated="not deprecated">
  31634. <param name="index" type="int"/>
  31635. </method>
  31636. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  31637. abstract="false" native="false" synchronized="false"
  31638. static="false" final="false" visibility="public"
  31639. deprecated="not deprecated">
  31640. </method>
  31641. <method name="enable_tracing"
  31642. abstract="false" native="false" synchronized="false"
  31643. static="false" final="true" visibility="public"
  31644. deprecated="not deprecated">
  31645. </method>
  31646. <method name="disable_tracing"
  31647. abstract="false" native="false" synchronized="false"
  31648. static="false" final="true" visibility="public"
  31649. deprecated="not deprecated">
  31650. </method>
  31651. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  31652. transient="false" volatile="false"
  31653. static="false" final="false" visibility="public"
  31654. deprecated="not deprecated">
  31655. </field>
  31656. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  31657. transient="false" volatile="false"
  31658. static="false" final="false" visibility="public"
  31659. deprecated="not deprecated">
  31660. </field>
  31661. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  31662. transient="false" volatile="false"
  31663. static="false" final="false" visibility="public"
  31664. deprecated="not deprecated">
  31665. </field>
  31666. </class>
  31667. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  31668. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  31669. <interface name="RccConstants" abstract="true"
  31670. static="false" final="false" visibility="public"
  31671. deprecated="not deprecated">
  31672. <field name="EOF" type="int"
  31673. transient="false" volatile="false"
  31674. static="true" final="true" visibility="public"
  31675. deprecated="not deprecated">
  31676. </field>
  31677. <field name="MODULE_TKN" type="int"
  31678. transient="false" volatile="false"
  31679. static="true" final="true" visibility="public"
  31680. deprecated="not deprecated">
  31681. </field>
  31682. <field name="RECORD_TKN" type="int"
  31683. transient="false" volatile="false"
  31684. static="true" final="true" visibility="public"
  31685. deprecated="not deprecated">
  31686. </field>
  31687. <field name="INCLUDE_TKN" type="int"
  31688. transient="false" volatile="false"
  31689. static="true" final="true" visibility="public"
  31690. deprecated="not deprecated">
  31691. </field>
  31692. <field name="BYTE_TKN" type="int"
  31693. transient="false" volatile="false"
  31694. static="true" final="true" visibility="public"
  31695. deprecated="not deprecated">
  31696. </field>
  31697. <field name="BOOLEAN_TKN" type="int"
  31698. transient="false" volatile="false"
  31699. static="true" final="true" visibility="public"
  31700. deprecated="not deprecated">
  31701. </field>
  31702. <field name="INT_TKN" type="int"
  31703. transient="false" volatile="false"
  31704. static="true" final="true" visibility="public"
  31705. deprecated="not deprecated">
  31706. </field>
  31707. <field name="LONG_TKN" type="int"
  31708. transient="false" volatile="false"
  31709. static="true" final="true" visibility="public"
  31710. deprecated="not deprecated">
  31711. </field>
  31712. <field name="FLOAT_TKN" type="int"
  31713. transient="false" volatile="false"
  31714. static="true" final="true" visibility="public"
  31715. deprecated="not deprecated">
  31716. </field>
  31717. <field name="DOUBLE_TKN" type="int"
  31718. transient="false" volatile="false"
  31719. static="true" final="true" visibility="public"
  31720. deprecated="not deprecated">
  31721. </field>
  31722. <field name="USTRING_TKN" type="int"
  31723. transient="false" volatile="false"
  31724. static="true" final="true" visibility="public"
  31725. deprecated="not deprecated">
  31726. </field>
  31727. <field name="BUFFER_TKN" type="int"
  31728. transient="false" volatile="false"
  31729. static="true" final="true" visibility="public"
  31730. deprecated="not deprecated">
  31731. </field>
  31732. <field name="VECTOR_TKN" type="int"
  31733. transient="false" volatile="false"
  31734. static="true" final="true" visibility="public"
  31735. deprecated="not deprecated">
  31736. </field>
  31737. <field name="MAP_TKN" type="int"
  31738. transient="false" volatile="false"
  31739. static="true" final="true" visibility="public"
  31740. deprecated="not deprecated">
  31741. </field>
  31742. <field name="LBRACE_TKN" type="int"
  31743. transient="false" volatile="false"
  31744. static="true" final="true" visibility="public"
  31745. deprecated="not deprecated">
  31746. </field>
  31747. <field name="RBRACE_TKN" type="int"
  31748. transient="false" volatile="false"
  31749. static="true" final="true" visibility="public"
  31750. deprecated="not deprecated">
  31751. </field>
  31752. <field name="LT_TKN" type="int"
  31753. transient="false" volatile="false"
  31754. static="true" final="true" visibility="public"
  31755. deprecated="not deprecated">
  31756. </field>
  31757. <field name="GT_TKN" type="int"
  31758. transient="false" volatile="false"
  31759. static="true" final="true" visibility="public"
  31760. deprecated="not deprecated">
  31761. </field>
  31762. <field name="SEMICOLON_TKN" type="int"
  31763. transient="false" volatile="false"
  31764. static="true" final="true" visibility="public"
  31765. deprecated="not deprecated">
  31766. </field>
  31767. <field name="COMMA_TKN" type="int"
  31768. transient="false" volatile="false"
  31769. static="true" final="true" visibility="public"
  31770. deprecated="not deprecated">
  31771. </field>
  31772. <field name="DOT_TKN" type="int"
  31773. transient="false" volatile="false"
  31774. static="true" final="true" visibility="public"
  31775. deprecated="not deprecated">
  31776. </field>
  31777. <field name="CSTRING_TKN" type="int"
  31778. transient="false" volatile="false"
  31779. static="true" final="true" visibility="public"
  31780. deprecated="not deprecated">
  31781. </field>
  31782. <field name="IDENT_TKN" type="int"
  31783. transient="false" volatile="false"
  31784. static="true" final="true" visibility="public"
  31785. deprecated="not deprecated">
  31786. </field>
  31787. <field name="DEFAULT" type="int"
  31788. transient="false" volatile="false"
  31789. static="true" final="true" visibility="public"
  31790. deprecated="not deprecated">
  31791. </field>
  31792. <field name="WithinOneLineComment" type="int"
  31793. transient="false" volatile="false"
  31794. static="true" final="true" visibility="public"
  31795. deprecated="not deprecated">
  31796. </field>
  31797. <field name="WithinMultiLineComment" type="int"
  31798. transient="false" volatile="false"
  31799. static="true" final="true" visibility="public"
  31800. deprecated="not deprecated">
  31801. </field>
  31802. <field name="tokenImage" type="java.lang.String[]"
  31803. transient="false" volatile="false"
  31804. static="true" final="true" visibility="public"
  31805. deprecated="not deprecated">
  31806. </field>
  31807. </interface>
  31808. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  31809. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  31810. <class name="RccTokenManager" extends="java.lang.Object"
  31811. abstract="false"
  31812. static="false" final="false" visibility="public"
  31813. deprecated="not deprecated">
  31814. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  31815. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  31816. static="false" final="false" visibility="public"
  31817. deprecated="not deprecated">
  31818. </constructor>
  31819. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  31820. static="false" final="false" visibility="public"
  31821. deprecated="not deprecated">
  31822. </constructor>
  31823. <method name="setDebugStream"
  31824. abstract="false" native="false" synchronized="false"
  31825. static="false" final="false" visibility="public"
  31826. deprecated="not deprecated">
  31827. <param name="ds" type="java.io.PrintStream"/>
  31828. </method>
  31829. <method name="ReInit"
  31830. abstract="false" native="false" synchronized="false"
  31831. static="false" final="false" visibility="public"
  31832. deprecated="not deprecated">
  31833. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  31834. </method>
  31835. <method name="ReInit"
  31836. abstract="false" native="false" synchronized="false"
  31837. static="false" final="false" visibility="public"
  31838. deprecated="not deprecated">
  31839. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  31840. <param name="lexState" type="int"/>
  31841. </method>
  31842. <method name="SwitchTo"
  31843. abstract="false" native="false" synchronized="false"
  31844. static="false" final="false" visibility="public"
  31845. deprecated="not deprecated">
  31846. <param name="lexState" type="int"/>
  31847. </method>
  31848. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31849. abstract="false" native="false" synchronized="false"
  31850. static="false" final="false" visibility="protected"
  31851. deprecated="not deprecated">
  31852. </method>
  31853. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31854. abstract="false" native="false" synchronized="false"
  31855. static="false" final="false" visibility="public"
  31856. deprecated="not deprecated">
  31857. </method>
  31858. <field name="debugStream" type="java.io.PrintStream"
  31859. transient="false" volatile="false"
  31860. static="false" final="false" visibility="public"
  31861. deprecated="not deprecated">
  31862. </field>
  31863. <field name="jjstrLiteralImages" type="java.lang.String[]"
  31864. transient="false" volatile="false"
  31865. static="true" final="true" visibility="public"
  31866. deprecated="not deprecated">
  31867. </field>
  31868. <field name="lexStateNames" type="java.lang.String[]"
  31869. transient="false" volatile="false"
  31870. static="true" final="true" visibility="public"
  31871. deprecated="not deprecated">
  31872. </field>
  31873. <field name="jjnewLexState" type="int[]"
  31874. transient="false" volatile="false"
  31875. static="true" final="true" visibility="public"
  31876. deprecated="not deprecated">
  31877. </field>
  31878. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  31879. transient="false" volatile="false"
  31880. static="false" final="false" visibility="protected"
  31881. deprecated="not deprecated">
  31882. </field>
  31883. <field name="curChar" type="char"
  31884. transient="false" volatile="false"
  31885. static="false" final="false" visibility="protected"
  31886. deprecated="not deprecated">
  31887. </field>
  31888. </class>
  31889. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  31890. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  31891. <class name="SimpleCharStream" extends="java.lang.Object"
  31892. abstract="false"
  31893. static="false" final="false" visibility="public"
  31894. deprecated="not deprecated">
  31895. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  31896. static="false" final="false" visibility="public"
  31897. deprecated="not deprecated">
  31898. </constructor>
  31899. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  31900. static="false" final="false" visibility="public"
  31901. deprecated="not deprecated">
  31902. </constructor>
  31903. <constructor name="SimpleCharStream" type="java.io.Reader"
  31904. static="false" final="false" visibility="public"
  31905. deprecated="not deprecated">
  31906. </constructor>
  31907. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  31908. static="false" final="false" visibility="public"
  31909. deprecated="not deprecated">
  31910. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  31911. </constructor>
  31912. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  31913. static="false" final="false" visibility="public"
  31914. deprecated="not deprecated">
  31915. </constructor>
  31916. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  31917. static="false" final="false" visibility="public"
  31918. deprecated="not deprecated">
  31919. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  31920. </constructor>
  31921. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  31922. static="false" final="false" visibility="public"
  31923. deprecated="not deprecated">
  31924. </constructor>
  31925. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  31926. static="false" final="false" visibility="public"
  31927. deprecated="not deprecated">
  31928. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  31929. </constructor>
  31930. <constructor name="SimpleCharStream" type="java.io.InputStream"
  31931. static="false" final="false" visibility="public"
  31932. deprecated="not deprecated">
  31933. </constructor>
  31934. <method name="setTabSize"
  31935. abstract="false" native="false" synchronized="false"
  31936. static="false" final="false" visibility="protected"
  31937. deprecated="not deprecated">
  31938. <param name="i" type="int"/>
  31939. </method>
  31940. <method name="getTabSize" return="int"
  31941. abstract="false" native="false" synchronized="false"
  31942. static="false" final="false" visibility="protected"
  31943. deprecated="not deprecated">
  31944. <param name="i" type="int"/>
  31945. </method>
  31946. <method name="ExpandBuff"
  31947. abstract="false" native="false" synchronized="false"
  31948. static="false" final="false" visibility="protected"
  31949. deprecated="not deprecated">
  31950. <param name="wrapAround" type="boolean"/>
  31951. </method>
  31952. <method name="FillBuff"
  31953. abstract="false" native="false" synchronized="false"
  31954. static="false" final="false" visibility="protected"
  31955. deprecated="not deprecated">
  31956. <exception name="IOException" type="java.io.IOException"/>
  31957. </method>
  31958. <method name="BeginToken" return="char"
  31959. abstract="false" native="false" synchronized="false"
  31960. static="false" final="false" visibility="public"
  31961. deprecated="not deprecated">
  31962. <exception name="IOException" type="java.io.IOException"/>
  31963. </method>
  31964. <method name="UpdateLineColumn"
  31965. abstract="false" native="false" synchronized="false"
  31966. static="false" final="false" visibility="protected"
  31967. deprecated="not deprecated">
  31968. <param name="c" type="char"/>
  31969. </method>
  31970. <method name="readChar" return="char"
  31971. abstract="false" native="false" synchronized="false"
  31972. static="false" final="false" visibility="public"
  31973. deprecated="not deprecated">
  31974. <exception name="IOException" type="java.io.IOException"/>
  31975. </method>
  31976. <method name="getEndColumn" return="int"
  31977. abstract="false" native="false" synchronized="false"
  31978. static="false" final="false" visibility="public"
  31979. deprecated="not deprecated">
  31980. </method>
  31981. <method name="getEndLine" return="int"
  31982. abstract="false" native="false" synchronized="false"
  31983. static="false" final="false" visibility="public"
  31984. deprecated="not deprecated">
  31985. </method>
  31986. <method name="getBeginColumn" return="int"
  31987. abstract="false" native="false" synchronized="false"
  31988. static="false" final="false" visibility="public"
  31989. deprecated="not deprecated">
  31990. </method>
  31991. <method name="getBeginLine" return="int"
  31992. abstract="false" native="false" synchronized="false"
  31993. static="false" final="false" visibility="public"
  31994. deprecated="not deprecated">
  31995. </method>
  31996. <method name="backup"
  31997. abstract="false" native="false" synchronized="false"
  31998. static="false" final="false" visibility="public"
  31999. deprecated="not deprecated">
  32000. <param name="amount" type="int"/>
  32001. </method>
  32002. <method name="ReInit"
  32003. abstract="false" native="false" synchronized="false"
  32004. static="false" final="false" visibility="public"
  32005. deprecated="not deprecated">
  32006. <param name="dstream" type="java.io.Reader"/>
  32007. <param name="startline" type="int"/>
  32008. <param name="startcolumn" type="int"/>
  32009. <param name="buffersize" type="int"/>
  32010. </method>
  32011. <method name="ReInit"
  32012. abstract="false" native="false" synchronized="false"
  32013. static="false" final="false" visibility="public"
  32014. deprecated="not deprecated">
  32015. <param name="dstream" type="java.io.Reader"/>
  32016. <param name="startline" type="int"/>
  32017. <param name="startcolumn" type="int"/>
  32018. </method>
  32019. <method name="ReInit"
  32020. abstract="false" native="false" synchronized="false"
  32021. static="false" final="false" visibility="public"
  32022. deprecated="not deprecated">
  32023. <param name="dstream" type="java.io.Reader"/>
  32024. </method>
  32025. <method name="ReInit"
  32026. abstract="false" native="false" synchronized="false"
  32027. static="false" final="false" visibility="public"
  32028. deprecated="not deprecated">
  32029. <param name="dstream" type="java.io.InputStream"/>
  32030. <param name="encoding" type="java.lang.String"/>
  32031. <param name="startline" type="int"/>
  32032. <param name="startcolumn" type="int"/>
  32033. <param name="buffersize" type="int"/>
  32034. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32035. </method>
  32036. <method name="ReInit"
  32037. abstract="false" native="false" synchronized="false"
  32038. static="false" final="false" visibility="public"
  32039. deprecated="not deprecated">
  32040. <param name="dstream" type="java.io.InputStream"/>
  32041. <param name="startline" type="int"/>
  32042. <param name="startcolumn" type="int"/>
  32043. <param name="buffersize" type="int"/>
  32044. </method>
  32045. <method name="ReInit"
  32046. abstract="false" native="false" synchronized="false"
  32047. static="false" final="false" visibility="public"
  32048. deprecated="not deprecated">
  32049. <param name="dstream" type="java.io.InputStream"/>
  32050. <param name="encoding" type="java.lang.String"/>
  32051. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32052. </method>
  32053. <method name="ReInit"
  32054. abstract="false" native="false" synchronized="false"
  32055. static="false" final="false" visibility="public"
  32056. deprecated="not deprecated">
  32057. <param name="dstream" type="java.io.InputStream"/>
  32058. </method>
  32059. <method name="ReInit"
  32060. abstract="false" native="false" synchronized="false"
  32061. static="false" final="false" visibility="public"
  32062. deprecated="not deprecated">
  32063. <param name="dstream" type="java.io.InputStream"/>
  32064. <param name="encoding" type="java.lang.String"/>
  32065. <param name="startline" type="int"/>
  32066. <param name="startcolumn" type="int"/>
  32067. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32068. </method>
  32069. <method name="ReInit"
  32070. abstract="false" native="false" synchronized="false"
  32071. static="false" final="false" visibility="public"
  32072. deprecated="not deprecated">
  32073. <param name="dstream" type="java.io.InputStream"/>
  32074. <param name="startline" type="int"/>
  32075. <param name="startcolumn" type="int"/>
  32076. </method>
  32077. <method name="GetImage" return="java.lang.String"
  32078. abstract="false" native="false" synchronized="false"
  32079. static="false" final="false" visibility="public"
  32080. deprecated="not deprecated">
  32081. </method>
  32082. <method name="GetSuffix" return="char[]"
  32083. abstract="false" native="false" synchronized="false"
  32084. static="false" final="false" visibility="public"
  32085. deprecated="not deprecated">
  32086. <param name="len" type="int"/>
  32087. </method>
  32088. <method name="Done"
  32089. abstract="false" native="false" synchronized="false"
  32090. static="false" final="false" visibility="public"
  32091. deprecated="not deprecated">
  32092. </method>
  32093. <method name="adjustBeginLineColumn"
  32094. abstract="false" native="false" synchronized="false"
  32095. static="false" final="false" visibility="public"
  32096. deprecated="not deprecated">
  32097. <param name="newLine" type="int"/>
  32098. <param name="newCol" type="int"/>
  32099. <doc>
  32100. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  32101. </doc>
  32102. </method>
  32103. <field name="staticFlag" type="boolean"
  32104. transient="false" volatile="false"
  32105. static="true" final="true" visibility="public"
  32106. deprecated="not deprecated">
  32107. </field>
  32108. <field name="bufpos" type="int"
  32109. transient="false" volatile="false"
  32110. static="false" final="false" visibility="public"
  32111. deprecated="not deprecated">
  32112. </field>
  32113. <field name="bufline" type="int[]"
  32114. transient="false" volatile="false"
  32115. static="false" final="false" visibility="protected"
  32116. deprecated="not deprecated">
  32117. </field>
  32118. <field name="bufcolumn" type="int[]"
  32119. transient="false" volatile="false"
  32120. static="false" final="false" visibility="protected"
  32121. deprecated="not deprecated">
  32122. </field>
  32123. <field name="column" type="int"
  32124. transient="false" volatile="false"
  32125. static="false" final="false" visibility="protected"
  32126. deprecated="not deprecated">
  32127. </field>
  32128. <field name="line" type="int"
  32129. transient="false" volatile="false"
  32130. static="false" final="false" visibility="protected"
  32131. deprecated="not deprecated">
  32132. </field>
  32133. <field name="prevCharIsCR" type="boolean"
  32134. transient="false" volatile="false"
  32135. static="false" final="false" visibility="protected"
  32136. deprecated="not deprecated">
  32137. </field>
  32138. <field name="prevCharIsLF" type="boolean"
  32139. transient="false" volatile="false"
  32140. static="false" final="false" visibility="protected"
  32141. deprecated="not deprecated">
  32142. </field>
  32143. <field name="inputStream" type="java.io.Reader"
  32144. transient="false" volatile="false"
  32145. static="false" final="false" visibility="protected"
  32146. deprecated="not deprecated">
  32147. </field>
  32148. <field name="buffer" type="char[]"
  32149. transient="false" volatile="false"
  32150. static="false" final="false" visibility="protected"
  32151. deprecated="not deprecated">
  32152. </field>
  32153. <field name="maxNextCharInd" type="int"
  32154. transient="false" volatile="false"
  32155. static="false" final="false" visibility="protected"
  32156. deprecated="not deprecated">
  32157. </field>
  32158. <field name="inBuf" type="int"
  32159. transient="false" volatile="false"
  32160. static="false" final="false" visibility="protected"
  32161. deprecated="not deprecated">
  32162. </field>
  32163. <field name="tabSize" type="int"
  32164. transient="false" volatile="false"
  32165. static="false" final="false" visibility="protected"
  32166. deprecated="not deprecated">
  32167. </field>
  32168. <doc>
  32169. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  32170. contain only ASCII characters (without unicode processing).]]>
  32171. </doc>
  32172. </class>
  32173. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  32174. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  32175. <class name="Token" extends="java.lang.Object"
  32176. abstract="false"
  32177. static="false" final="false" visibility="public"
  32178. deprecated="not deprecated">
  32179. <constructor name="Token"
  32180. static="false" final="false" visibility="public"
  32181. deprecated="not deprecated">
  32182. </constructor>
  32183. <method name="toString" return="java.lang.String"
  32184. abstract="false" native="false" synchronized="false"
  32185. static="false" final="false" visibility="public"
  32186. deprecated="not deprecated">
  32187. <doc>
  32188. <![CDATA[Returns the image.]]>
  32189. </doc>
  32190. </method>
  32191. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  32192. abstract="false" native="false" synchronized="false"
  32193. static="true" final="true" visibility="public"
  32194. deprecated="not deprecated">
  32195. <param name="ofKind" type="int"/>
  32196. <doc>
  32197. <![CDATA[Returns a new Token object, by default. However, if you want, you
  32198. can create and return subclass objects based on the value of ofKind.
  32199. Simply add the cases to the switch for all those special cases.
  32200. For example, if you have a subclass of Token called IDToken that
  32201. you want to create if ofKind is ID, simlpy add something like :
  32202. case MyParserConstants.ID : return new IDToken();
  32203. to the following switch statement. Then you can cast matchedToken
  32204. variable to the appropriate type and use it in your lexical actions.]]>
  32205. </doc>
  32206. </method>
  32207. <field name="kind" type="int"
  32208. transient="false" volatile="false"
  32209. static="false" final="false" visibility="public"
  32210. deprecated="not deprecated">
  32211. <doc>
  32212. <![CDATA[An integer that describes the kind of this token. This numbering
  32213. system is determined by JavaCCParser, and a table of these numbers is
  32214. stored in the file ...Constants.java.]]>
  32215. </doc>
  32216. </field>
  32217. <field name="beginLine" type="int"
  32218. transient="false" volatile="false"
  32219. static="false" final="false" visibility="public"
  32220. deprecated="not deprecated">
  32221. <doc>
  32222. <![CDATA[beginLine and beginColumn describe the position of the first character
  32223. of this token; endLine and endColumn describe the position of the
  32224. last character of this token.]]>
  32225. </doc>
  32226. </field>
  32227. <field name="beginColumn" type="int"
  32228. transient="false" volatile="false"
  32229. static="false" final="false" visibility="public"
  32230. deprecated="not deprecated">
  32231. <doc>
  32232. <![CDATA[beginLine and beginColumn describe the position of the first character
  32233. of this token; endLine and endColumn describe the position of the
  32234. last character of this token.]]>
  32235. </doc>
  32236. </field>
  32237. <field name="endLine" type="int"
  32238. transient="false" volatile="false"
  32239. static="false" final="false" visibility="public"
  32240. deprecated="not deprecated">
  32241. <doc>
  32242. <![CDATA[beginLine and beginColumn describe the position of the first character
  32243. of this token; endLine and endColumn describe the position of the
  32244. last character of this token.]]>
  32245. </doc>
  32246. </field>
  32247. <field name="endColumn" type="int"
  32248. transient="false" volatile="false"
  32249. static="false" final="false" visibility="public"
  32250. deprecated="not deprecated">
  32251. <doc>
  32252. <![CDATA[beginLine and beginColumn describe the position of the first character
  32253. of this token; endLine and endColumn describe the position of the
  32254. last character of this token.]]>
  32255. </doc>
  32256. </field>
  32257. <field name="image" type="java.lang.String"
  32258. transient="false" volatile="false"
  32259. static="false" final="false" visibility="public"
  32260. deprecated="not deprecated">
  32261. <doc>
  32262. <![CDATA[The string image of the token.]]>
  32263. </doc>
  32264. </field>
  32265. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  32266. transient="false" volatile="false"
  32267. static="false" final="false" visibility="public"
  32268. deprecated="not deprecated">
  32269. <doc>
  32270. <![CDATA[A reference to the next regular (non-special) token from the input
  32271. stream. If this is the last token from the input stream, or if the
  32272. token manager has not read tokens beyond this one, this field is
  32273. set to null. This is true only if this token is also a regular
  32274. token. Otherwise, see below for a description of the contents of
  32275. this field.]]>
  32276. </doc>
  32277. </field>
  32278. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  32279. transient="false" volatile="false"
  32280. static="false" final="false" visibility="public"
  32281. deprecated="not deprecated">
  32282. <doc>
  32283. <![CDATA[This field is used to access special tokens that occur prior to this
  32284. token, but after the immediately preceding regular (non-special) token.
  32285. If there are no such special tokens, this field is set to null.
  32286. When there are more than one such special token, this field refers
  32287. to the last of these special tokens, which in turn refers to the next
  32288. previous special token through its specialToken field, and so on
  32289. until the first special token (whose specialToken field is null).
  32290. The next fields of special tokens refer to other special tokens that
  32291. immediately follow it (without an intervening regular token). If there
  32292. is no such token, this field is null.]]>
  32293. </doc>
  32294. </field>
  32295. <doc>
  32296. <![CDATA[Describes the input token stream.]]>
  32297. </doc>
  32298. </class>
  32299. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  32300. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  32301. <class name="TokenMgrError" extends="java.lang.Error"
  32302. abstract="false"
  32303. static="false" final="false" visibility="public"
  32304. deprecated="not deprecated">
  32305. <constructor name="TokenMgrError"
  32306. static="false" final="false" visibility="public"
  32307. deprecated="not deprecated">
  32308. </constructor>
  32309. <constructor name="TokenMgrError" type="java.lang.String, int"
  32310. static="false" final="false" visibility="public"
  32311. deprecated="not deprecated">
  32312. </constructor>
  32313. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  32314. static="false" final="false" visibility="public"
  32315. deprecated="not deprecated">
  32316. </constructor>
  32317. <method name="addEscapes" return="java.lang.String"
  32318. abstract="false" native="false" synchronized="false"
  32319. static="true" final="true" visibility="protected"
  32320. deprecated="not deprecated">
  32321. <param name="str" type="java.lang.String"/>
  32322. <doc>
  32323. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  32324. equivalents in the given string]]>
  32325. </doc>
  32326. </method>
  32327. <method name="LexicalError" return="java.lang.String"
  32328. abstract="false" native="false" synchronized="false"
  32329. static="true" final="false" visibility="protected"
  32330. deprecated="not deprecated">
  32331. <param name="EOFSeen" type="boolean"/>
  32332. <param name="lexState" type="int"/>
  32333. <param name="errorLine" type="int"/>
  32334. <param name="errorColumn" type="int"/>
  32335. <param name="errorAfter" type="java.lang.String"/>
  32336. <param name="curChar" type="char"/>
  32337. <doc>
  32338. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  32339. token manager to indicate a lexical error.
  32340. Parameters :
  32341. EOFSeen : indicates if EOF caused the lexicl error
  32342. curLexState : lexical state in which this error occured
  32343. errorLine : line number when the error occured
  32344. errorColumn : column number when the error occured
  32345. errorAfter : prefix that was seen before this error occured
  32346. curchar : the offending character
  32347. Note: You can customize the lexical error message by modifying this method.]]>
  32348. </doc>
  32349. </method>
  32350. <method name="getMessage" return="java.lang.String"
  32351. abstract="false" native="false" synchronized="false"
  32352. static="false" final="false" visibility="public"
  32353. deprecated="not deprecated">
  32354. <doc>
  32355. <![CDATA[You can also modify the body of this method to customize your error messages.
  32356. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  32357. of end-users concern, so you can return something like :
  32358. "Internal Error : Please file a bug report .... "
  32359. from this method for such cases in the release version of your parser.]]>
  32360. </doc>
  32361. </method>
  32362. </class>
  32363. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  32364. </package>
  32365. <package name="org.apache.hadoop.record.meta">
  32366. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  32367. <class name="FieldTypeInfo" extends="java.lang.Object"
  32368. abstract="false"
  32369. static="false" final="false" visibility="public"
  32370. deprecated="not deprecated">
  32371. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32372. abstract="false" native="false" synchronized="false"
  32373. static="false" final="false" visibility="public"
  32374. deprecated="not deprecated">
  32375. <doc>
  32376. <![CDATA[get the field's TypeID object]]>
  32377. </doc>
  32378. </method>
  32379. <method name="getFieldID" return="java.lang.String"
  32380. abstract="false" native="false" synchronized="false"
  32381. static="false" final="false" visibility="public"
  32382. deprecated="not deprecated">
  32383. <doc>
  32384. <![CDATA[get the field's id (name)]]>
  32385. </doc>
  32386. </method>
  32387. <method name="equals" return="boolean"
  32388. abstract="false" native="false" synchronized="false"
  32389. static="false" final="false" visibility="public"
  32390. deprecated="not deprecated">
  32391. <param name="o" type="java.lang.Object"/>
  32392. <doc>
  32393. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  32394. </doc>
  32395. </method>
  32396. <method name="hashCode" return="int"
  32397. abstract="false" native="false" synchronized="false"
  32398. static="false" final="false" visibility="public"
  32399. deprecated="not deprecated">
  32400. <doc>
  32401. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32402. be used as a hashmap key]]>
  32403. </doc>
  32404. </method>
  32405. <method name="equals" return="boolean"
  32406. abstract="false" native="false" synchronized="false"
  32407. static="false" final="false" visibility="public"
  32408. deprecated="not deprecated">
  32409. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  32410. </method>
  32411. <doc>
  32412. <![CDATA[Represents a type information for a field, which is made up of its
  32413. ID (name) and its type (a TypeID object).]]>
  32414. </doc>
  32415. </class>
  32416. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  32417. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  32418. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32419. abstract="false"
  32420. static="false" final="false" visibility="public"
  32421. deprecated="not deprecated">
  32422. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  32423. static="false" final="false" visibility="public"
  32424. deprecated="not deprecated">
  32425. </constructor>
  32426. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32427. abstract="false" native="false" synchronized="false"
  32428. static="false" final="false" visibility="public"
  32429. deprecated="not deprecated">
  32430. <doc>
  32431. <![CDATA[get the TypeID of the map's key element]]>
  32432. </doc>
  32433. </method>
  32434. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32435. abstract="false" native="false" synchronized="false"
  32436. static="false" final="false" visibility="public"
  32437. deprecated="not deprecated">
  32438. <doc>
  32439. <![CDATA[get the TypeID of the map's value element]]>
  32440. </doc>
  32441. </method>
  32442. <method name="equals" return="boolean"
  32443. abstract="false" native="false" synchronized="false"
  32444. static="false" final="false" visibility="public"
  32445. deprecated="not deprecated">
  32446. <param name="o" type="java.lang.Object"/>
  32447. <doc>
  32448. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  32449. same type]]>
  32450. </doc>
  32451. </method>
  32452. <method name="hashCode" return="int"
  32453. abstract="false" native="false" synchronized="false"
  32454. static="false" final="false" visibility="public"
  32455. deprecated="not deprecated">
  32456. <doc>
  32457. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32458. be used as a hashmap key]]>
  32459. </doc>
  32460. </method>
  32461. <doc>
  32462. <![CDATA[Represents typeID for a Map]]>
  32463. </doc>
  32464. </class>
  32465. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  32466. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  32467. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  32468. abstract="false"
  32469. static="false" final="false" visibility="public"
  32470. deprecated="not deprecated">
  32471. <constructor name="RecordTypeInfo"
  32472. static="false" final="false" visibility="public"
  32473. deprecated="not deprecated">
  32474. <doc>
  32475. <![CDATA[Create an empty RecordTypeInfo object.]]>
  32476. </doc>
  32477. </constructor>
  32478. <constructor name="RecordTypeInfo" type="java.lang.String"
  32479. static="false" final="false" visibility="public"
  32480. deprecated="not deprecated">
  32481. <doc>
  32482. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  32483. @param name Name of the record]]>
  32484. </doc>
  32485. </constructor>
  32486. <method name="getName" return="java.lang.String"
  32487. abstract="false" native="false" synchronized="false"
  32488. static="false" final="false" visibility="public"
  32489. deprecated="not deprecated">
  32490. <doc>
  32491. <![CDATA[return the name of the record]]>
  32492. </doc>
  32493. </method>
  32494. <method name="setName"
  32495. abstract="false" native="false" synchronized="false"
  32496. static="false" final="false" visibility="public"
  32497. deprecated="not deprecated">
  32498. <param name="name" type="java.lang.String"/>
  32499. <doc>
  32500. <![CDATA[set the name of the record]]>
  32501. </doc>
  32502. </method>
  32503. <method name="addField"
  32504. abstract="false" native="false" synchronized="false"
  32505. static="false" final="false" visibility="public"
  32506. deprecated="not deprecated">
  32507. <param name="fieldName" type="java.lang.String"/>
  32508. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  32509. <doc>
  32510. <![CDATA[Add a field.
  32511. @param fieldName Name of the field
  32512. @param tid Type ID of the field]]>
  32513. </doc>
  32514. </method>
  32515. <method name="getFieldTypeInfos" return="java.util.Collection"
  32516. abstract="false" native="false" synchronized="false"
  32517. static="false" final="false" visibility="public"
  32518. deprecated="not deprecated">
  32519. <doc>
  32520. <![CDATA[Return a collection of field type infos]]>
  32521. </doc>
  32522. </method>
  32523. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  32524. abstract="false" native="false" synchronized="false"
  32525. static="false" final="false" visibility="public"
  32526. deprecated="not deprecated">
  32527. <param name="name" type="java.lang.String"/>
  32528. <doc>
  32529. <![CDATA[Return the type info of a nested record. We only consider nesting
  32530. to one level.
  32531. @param name Name of the nested record]]>
  32532. </doc>
  32533. </method>
  32534. <method name="serialize"
  32535. abstract="false" native="false" synchronized="false"
  32536. static="false" final="false" visibility="public"
  32537. deprecated="not deprecated">
  32538. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  32539. <param name="tag" type="java.lang.String"/>
  32540. <exception name="IOException" type="java.io.IOException"/>
  32541. <doc>
  32542. <![CDATA[Serialize the type information for a record]]>
  32543. </doc>
  32544. </method>
  32545. <method name="deserialize"
  32546. abstract="false" native="false" synchronized="false"
  32547. static="false" final="false" visibility="public"
  32548. deprecated="not deprecated">
  32549. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32550. <param name="tag" type="java.lang.String"/>
  32551. <exception name="IOException" type="java.io.IOException"/>
  32552. <doc>
  32553. <![CDATA[Deserialize the type information for a record]]>
  32554. </doc>
  32555. </method>
  32556. <method name="compareTo" return="int"
  32557. abstract="false" native="false" synchronized="false"
  32558. static="false" final="false" visibility="public"
  32559. deprecated="not deprecated">
  32560. <param name="peer_" type="java.lang.Object"/>
  32561. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  32562. <doc>
  32563. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  32564. for anything besides de/serializing.
  32565. So we always throw an exception.
  32566. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  32567. </doc>
  32568. </method>
  32569. <doc>
  32570. <![CDATA[A record's Type Information object which can read/write itself.
  32571. Type information for a record comprises metadata about the record,
  32572. as well as a collection of type information for each field in the record.]]>
  32573. </doc>
  32574. </class>
  32575. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  32576. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  32577. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32578. abstract="false"
  32579. static="false" final="false" visibility="public"
  32580. deprecated="not deprecated">
  32581. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  32582. static="false" final="false" visibility="public"
  32583. deprecated="not deprecated">
  32584. <doc>
  32585. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  32586. </doc>
  32587. </constructor>
  32588. <method name="getFieldTypeInfos" return="java.util.Collection"
  32589. abstract="false" native="false" synchronized="false"
  32590. static="false" final="false" visibility="public"
  32591. deprecated="not deprecated">
  32592. </method>
  32593. <doc>
  32594. <![CDATA[Represents typeID for a struct]]>
  32595. </doc>
  32596. </class>
  32597. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  32598. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  32599. <class name="TypeID" extends="java.lang.Object"
  32600. abstract="false"
  32601. static="false" final="false" visibility="public"
  32602. deprecated="not deprecated">
  32603. <method name="getTypeVal" return="byte"
  32604. abstract="false" native="false" synchronized="false"
  32605. static="false" final="false" visibility="public"
  32606. deprecated="not deprecated">
  32607. <doc>
  32608. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  32609. </doc>
  32610. </method>
  32611. <method name="equals" return="boolean"
  32612. abstract="false" native="false" synchronized="false"
  32613. static="false" final="false" visibility="public"
  32614. deprecated="not deprecated">
  32615. <param name="o" type="java.lang.Object"/>
  32616. <doc>
  32617. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  32618. </doc>
  32619. </method>
  32620. <method name="hashCode" return="int"
  32621. abstract="false" native="false" synchronized="false"
  32622. static="false" final="false" visibility="public"
  32623. deprecated="not deprecated">
  32624. <doc>
  32625. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32626. be used as a hashmap key]]>
  32627. </doc>
  32628. </method>
  32629. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32630. transient="false" volatile="false"
  32631. static="true" final="true" visibility="public"
  32632. deprecated="not deprecated">
  32633. <doc>
  32634. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  32635. </doc>
  32636. </field>
  32637. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32638. transient="false" volatile="false"
  32639. static="true" final="true" visibility="public"
  32640. deprecated="not deprecated">
  32641. </field>
  32642. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32643. transient="false" volatile="false"
  32644. static="true" final="true" visibility="public"
  32645. deprecated="not deprecated">
  32646. </field>
  32647. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32648. transient="false" volatile="false"
  32649. static="true" final="true" visibility="public"
  32650. deprecated="not deprecated">
  32651. </field>
  32652. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32653. transient="false" volatile="false"
  32654. static="true" final="true" visibility="public"
  32655. deprecated="not deprecated">
  32656. </field>
  32657. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32658. transient="false" volatile="false"
  32659. static="true" final="true" visibility="public"
  32660. deprecated="not deprecated">
  32661. </field>
  32662. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32663. transient="false" volatile="false"
  32664. static="true" final="true" visibility="public"
  32665. deprecated="not deprecated">
  32666. </field>
  32667. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32668. transient="false" volatile="false"
  32669. static="true" final="true" visibility="public"
  32670. deprecated="not deprecated">
  32671. </field>
  32672. <field name="typeVal" type="byte"
  32673. transient="false" volatile="false"
  32674. static="false" final="false" visibility="protected"
  32675. deprecated="not deprecated">
  32676. </field>
  32677. <doc>
  32678. <![CDATA[Represents typeID for basic types.]]>
  32679. </doc>
  32680. </class>
  32681. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  32682. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  32683. <class name="TypeID.RIOType" extends="java.lang.Object"
  32684. abstract="false"
  32685. static="true" final="true" visibility="public"
  32686. deprecated="not deprecated">
  32687. <constructor name="TypeID.RIOType"
  32688. static="false" final="false" visibility="public"
  32689. deprecated="not deprecated">
  32690. </constructor>
  32691. <field name="BOOL" type="byte"
  32692. transient="false" volatile="false"
  32693. static="true" final="true" visibility="public"
  32694. deprecated="not deprecated">
  32695. </field>
  32696. <field name="BUFFER" type="byte"
  32697. transient="false" volatile="false"
  32698. static="true" final="true" visibility="public"
  32699. deprecated="not deprecated">
  32700. </field>
  32701. <field name="BYTE" type="byte"
  32702. transient="false" volatile="false"
  32703. static="true" final="true" visibility="public"
  32704. deprecated="not deprecated">
  32705. </field>
  32706. <field name="DOUBLE" type="byte"
  32707. transient="false" volatile="false"
  32708. static="true" final="true" visibility="public"
  32709. deprecated="not deprecated">
  32710. </field>
  32711. <field name="FLOAT" type="byte"
  32712. transient="false" volatile="false"
  32713. static="true" final="true" visibility="public"
  32714. deprecated="not deprecated">
  32715. </field>
  32716. <field name="INT" type="byte"
  32717. transient="false" volatile="false"
  32718. static="true" final="true" visibility="public"
  32719. deprecated="not deprecated">
  32720. </field>
  32721. <field name="LONG" type="byte"
  32722. transient="false" volatile="false"
  32723. static="true" final="true" visibility="public"
  32724. deprecated="not deprecated">
  32725. </field>
  32726. <field name="MAP" type="byte"
  32727. transient="false" volatile="false"
  32728. static="true" final="true" visibility="public"
  32729. deprecated="not deprecated">
  32730. </field>
  32731. <field name="STRING" type="byte"
  32732. transient="false" volatile="false"
  32733. static="true" final="true" visibility="public"
  32734. deprecated="not deprecated">
  32735. </field>
  32736. <field name="STRUCT" type="byte"
  32737. transient="false" volatile="false"
  32738. static="true" final="true" visibility="public"
  32739. deprecated="not deprecated">
  32740. </field>
  32741. <field name="VECTOR" type="byte"
  32742. transient="false" volatile="false"
  32743. static="true" final="true" visibility="public"
  32744. deprecated="not deprecated">
  32745. </field>
  32746. <doc>
  32747. <![CDATA[constants representing the IDL types we support]]>
  32748. </doc>
  32749. </class>
  32750. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  32751. <!-- start class org.apache.hadoop.record.meta.Utils -->
  32752. <class name="Utils" extends="java.lang.Object"
  32753. abstract="false"
  32754. static="false" final="false" visibility="public"
  32755. deprecated="not deprecated">
  32756. <method name="skip"
  32757. abstract="false" native="false" synchronized="false"
  32758. static="true" final="false" visibility="public"
  32759. deprecated="not deprecated">
  32760. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32761. <param name="tag" type="java.lang.String"/>
  32762. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  32763. <exception name="IOException" type="java.io.IOException"/>
  32764. <doc>
  32765. <![CDATA[read/skip bytes from stream based on a type]]>
  32766. </doc>
  32767. </method>
  32768. <doc>
  32769. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  32770. </doc>
  32771. </class>
  32772. <!-- end class org.apache.hadoop.record.meta.Utils -->
  32773. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  32774. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32775. abstract="false"
  32776. static="false" final="false" visibility="public"
  32777. deprecated="not deprecated">
  32778. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32779. static="false" final="false" visibility="public"
  32780. deprecated="not deprecated">
  32781. </constructor>
  32782. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32783. abstract="false" native="false" synchronized="false"
  32784. static="false" final="false" visibility="public"
  32785. deprecated="not deprecated">
  32786. </method>
  32787. <method name="equals" return="boolean"
  32788. abstract="false" native="false" synchronized="false"
  32789. static="false" final="false" visibility="public"
  32790. deprecated="not deprecated">
  32791. <param name="o" type="java.lang.Object"/>
  32792. <doc>
  32793. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  32794. same type]]>
  32795. </doc>
  32796. </method>
  32797. <method name="hashCode" return="int"
  32798. abstract="false" native="false" synchronized="false"
  32799. static="false" final="false" visibility="public"
  32800. deprecated="not deprecated">
  32801. <doc>
  32802. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32803. be used as a hashmap key]]>
  32804. </doc>
  32805. </method>
  32806. <doc>
  32807. <![CDATA[Represents typeID for vector.]]>
  32808. </doc>
  32809. </class>
  32810. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  32811. </package>
  32812. <package name="org.apache.hadoop.security">
  32813. <!-- start class org.apache.hadoop.security.AccessControlException -->
  32814. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  32815. abstract="false"
  32816. static="false" final="false" visibility="public"
  32817. deprecated="not deprecated">
  32818. <constructor name="AccessControlException"
  32819. static="false" final="false" visibility="public"
  32820. deprecated="not deprecated">
  32821. <doc>
  32822. <![CDATA[Default constructor is needed for unwrapping from
  32823. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  32824. </doc>
  32825. </constructor>
  32826. <constructor name="AccessControlException" type="java.lang.String"
  32827. static="false" final="false" visibility="public"
  32828. deprecated="not deprecated">
  32829. <doc>
  32830. <![CDATA[Constructs an {@link AccessControlException}
  32831. with the specified detail message.
  32832. @param s the detail message.]]>
  32833. </doc>
  32834. </constructor>
  32835. <constructor name="AccessControlException" type="java.lang.Throwable"
  32836. static="false" final="false" visibility="public"
  32837. deprecated="not deprecated">
  32838. <doc>
  32839. <![CDATA[Constructs a new exception with the specified cause and a detail
  32840. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  32841. typically contains the class and detail message of <tt>cause</tt>).
  32842. @param cause the cause (which is saved for later retrieval by the
  32843. {@link #getCause()} method). (A <tt>null</tt> value is
  32844. permitted, and indicates that the cause is nonexistent or
  32845. unknown.)]]>
  32846. </doc>
  32847. </constructor>
  32848. <doc>
  32849. <![CDATA[An exception class for access control related issues.]]>
  32850. </doc>
  32851. </class>
  32852. <!-- end class org.apache.hadoop.security.AccessControlException -->
  32853. <!-- start class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  32854. <class name="AuthenticationFilterInitializer" extends="org.apache.hadoop.http.FilterInitializer"
  32855. abstract="false"
  32856. static="false" final="false" visibility="public"
  32857. deprecated="not deprecated">
  32858. <constructor name="AuthenticationFilterInitializer"
  32859. static="false" final="false" visibility="public"
  32860. deprecated="not deprecated">
  32861. </constructor>
  32862. <method name="initFilter"
  32863. abstract="false" native="false" synchronized="false"
  32864. static="false" final="false" visibility="public"
  32865. deprecated="not deprecated">
  32866. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  32867. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32868. <doc>
  32869. <![CDATA[Initializes Alfredo AuthenticationFilter.
  32870. <p/>
  32871. Propagates to Alfredo AuthenticationFilter configuration all Hadoop
  32872. configuration properties prefixed with "hadoop.http.authentication."
  32873. @param container The filter container
  32874. @param conf Configuration for run-time parameters]]>
  32875. </doc>
  32876. </method>
  32877. <doc>
  32878. <![CDATA[Initializes Alfredo AuthenticationFilter which provides support for
  32879. Kerberos HTTP SPENGO authentication.
  32880. <p/>
  32881. It enables anonymous access, simple/speudo and Kerberos HTTP SPNEGO
  32882. authentication for Hadoop JobTracker, NameNode, DataNodes and
  32883. TaskTrackers.
  32884. <p/>
  32885. Refer to the <code>core-default.xml</code> file, after the comment
  32886. 'HTTP Authentication' for details on the configuration options.
  32887. All related configuration properties have 'hadoop.http.authentication.'
  32888. as prefix.]]>
  32889. </doc>
  32890. </class>
  32891. <!-- end class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  32892. <!-- start class org.apache.hadoop.security.Credentials -->
  32893. <class name="Credentials" extends="java.lang.Object"
  32894. abstract="false"
  32895. static="false" final="false" visibility="public"
  32896. deprecated="not deprecated">
  32897. <implements name="org.apache.hadoop.io.Writable"/>
  32898. <constructor name="Credentials"
  32899. static="false" final="false" visibility="public"
  32900. deprecated="not deprecated">
  32901. </constructor>
  32902. <method name="getSecretKey" return="byte[]"
  32903. abstract="false" native="false" synchronized="false"
  32904. static="false" final="false" visibility="public"
  32905. deprecated="not deprecated">
  32906. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32907. <doc>
  32908. <![CDATA[Returns the key bytes for the alias
  32909. @param alias the alias for the key
  32910. @return key for this alias]]>
  32911. </doc>
  32912. </method>
  32913. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  32914. abstract="false" native="false" synchronized="false"
  32915. static="false" final="false" visibility="public"
  32916. deprecated="not deprecated">
  32917. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32918. <doc>
  32919. <![CDATA[Returns the Token object for the alias
  32920. @param alias the alias for the Token
  32921. @return token for this alias]]>
  32922. </doc>
  32923. </method>
  32924. <method name="addToken"
  32925. abstract="false" native="false" synchronized="false"
  32926. static="false" final="false" visibility="public"
  32927. deprecated="not deprecated">
  32928. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32929. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  32930. <doc>
  32931. <![CDATA[Add a token in the storage (in memory)
  32932. @param alias the alias for the key
  32933. @param t the token object]]>
  32934. </doc>
  32935. </method>
  32936. <method name="getAllTokens" return="java.util.Collection"
  32937. abstract="false" native="false" synchronized="false"
  32938. static="false" final="false" visibility="public"
  32939. deprecated="not deprecated">
  32940. <doc>
  32941. <![CDATA[Return all the tokens in the in-memory map]]>
  32942. </doc>
  32943. </method>
  32944. <method name="numberOfTokens" return="int"
  32945. abstract="false" native="false" synchronized="false"
  32946. static="false" final="false" visibility="public"
  32947. deprecated="not deprecated">
  32948. <doc>
  32949. <![CDATA[@return number of Tokens in the in-memory map]]>
  32950. </doc>
  32951. </method>
  32952. <method name="numberOfSecretKeys" return="int"
  32953. abstract="false" native="false" synchronized="false"
  32954. static="false" final="false" visibility="public"
  32955. deprecated="not deprecated">
  32956. <doc>
  32957. <![CDATA[@return number of keys in the in-memory map]]>
  32958. </doc>
  32959. </method>
  32960. <method name="addSecretKey"
  32961. abstract="false" native="false" synchronized="false"
  32962. static="false" final="false" visibility="public"
  32963. deprecated="not deprecated">
  32964. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32965. <param name="key" type="byte[]"/>
  32966. <doc>
  32967. <![CDATA[Set the key for an alias
  32968. @param alias the alias for the key
  32969. @param key the key bytes]]>
  32970. </doc>
  32971. </method>
  32972. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  32973. abstract="false" native="false" synchronized="false"
  32974. static="true" final="false" visibility="public"
  32975. deprecated="not deprecated">
  32976. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  32977. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32978. <exception name="IOException" type="java.io.IOException"/>
  32979. <doc>
  32980. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  32981. therein in the passed UGI
  32982. @param filename
  32983. @param conf
  32984. @throws IOException]]>
  32985. </doc>
  32986. </method>
  32987. <method name="readTokenStorageStream"
  32988. abstract="false" native="false" synchronized="false"
  32989. static="false" final="false" visibility="public"
  32990. deprecated="not deprecated">
  32991. <param name="in" type="java.io.DataInputStream"/>
  32992. <exception name="IOException" type="java.io.IOException"/>
  32993. <doc>
  32994. <![CDATA[Convenience method for reading a token storage file directly from a
  32995. datainputstream]]>
  32996. </doc>
  32997. </method>
  32998. <method name="writeTokenStorageToStream"
  32999. abstract="false" native="false" synchronized="false"
  33000. static="false" final="false" visibility="public"
  33001. deprecated="not deprecated">
  33002. <param name="os" type="java.io.DataOutputStream"/>
  33003. <exception name="IOException" type="java.io.IOException"/>
  33004. </method>
  33005. <method name="writeTokenStorageFile"
  33006. abstract="false" native="false" synchronized="false"
  33007. static="false" final="false" visibility="public"
  33008. deprecated="not deprecated">
  33009. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  33010. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33011. <exception name="IOException" type="java.io.IOException"/>
  33012. </method>
  33013. <method name="write"
  33014. abstract="false" native="false" synchronized="false"
  33015. static="false" final="false" visibility="public"
  33016. deprecated="not deprecated">
  33017. <param name="out" type="java.io.DataOutput"/>
  33018. <exception name="IOException" type="java.io.IOException"/>
  33019. <doc>
  33020. <![CDATA[Stores all the keys to DataOutput
  33021. @param out
  33022. @throws IOException]]>
  33023. </doc>
  33024. </method>
  33025. <method name="readFields"
  33026. abstract="false" native="false" synchronized="false"
  33027. static="false" final="false" visibility="public"
  33028. deprecated="not deprecated">
  33029. <param name="in" type="java.io.DataInput"/>
  33030. <exception name="IOException" type="java.io.IOException"/>
  33031. <doc>
  33032. <![CDATA[Loads all the keys
  33033. @param in
  33034. @throws IOException]]>
  33035. </doc>
  33036. </method>
  33037. <method name="addAll"
  33038. abstract="false" native="false" synchronized="false"
  33039. static="false" final="false" visibility="public"
  33040. deprecated="not deprecated">
  33041. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  33042. <doc>
  33043. <![CDATA[Copy all of the credentials from one credential object into another.
  33044. @param other the credentials to copy]]>
  33045. </doc>
  33046. </method>
  33047. <doc>
  33048. <![CDATA[A class that provides the facilities of reading and writing
  33049. secret keys and Tokens.]]>
  33050. </doc>
  33051. </class>
  33052. <!-- end class org.apache.hadoop.security.Credentials -->
  33053. <!-- start class org.apache.hadoop.security.Groups -->
  33054. <class name="Groups" extends="java.lang.Object"
  33055. abstract="false"
  33056. static="false" final="false" visibility="public"
  33057. deprecated="not deprecated">
  33058. <constructor name="Groups" type="org.apache.hadoop.conf.Configuration"
  33059. static="false" final="false" visibility="public"
  33060. deprecated="not deprecated">
  33061. </constructor>
  33062. <method name="getGroups" return="java.util.List"
  33063. abstract="false" native="false" synchronized="false"
  33064. static="false" final="false" visibility="public"
  33065. deprecated="not deprecated">
  33066. <param name="user" type="java.lang.String"/>
  33067. <exception name="IOException" type="java.io.IOException"/>
  33068. <doc>
  33069. <![CDATA[Get the group memberships of a given user.
  33070. @param user User's name
  33071. @return the group memberships of the user
  33072. @throws IOException]]>
  33073. </doc>
  33074. </method>
  33075. <method name="refresh"
  33076. abstract="false" native="false" synchronized="false"
  33077. static="false" final="false" visibility="public"
  33078. deprecated="not deprecated">
  33079. <doc>
  33080. <![CDATA[Refresh all user-to-groups mappings.]]>
  33081. </doc>
  33082. </method>
  33083. <method name="cacheGroupsAdd"
  33084. abstract="false" native="false" synchronized="false"
  33085. static="false" final="false" visibility="public"
  33086. deprecated="not deprecated">
  33087. <param name="groups" type="java.util.List"/>
  33088. </method>
  33089. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  33090. abstract="false" native="false" synchronized="false"
  33091. static="true" final="false" visibility="public"
  33092. deprecated="not deprecated">
  33093. <doc>
  33094. <![CDATA[Get the groups being used to map user-to-groups.
  33095. @return the groups being used to map user-to-groups.]]>
  33096. </doc>
  33097. </method>
  33098. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  33099. abstract="false" native="false" synchronized="false"
  33100. static="true" final="false" visibility="public"
  33101. deprecated="not deprecated">
  33102. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33103. </method>
  33104. <doc>
  33105. <![CDATA[A user-to-groups mapping service.
  33106. {@link Groups} allows for server to get the various group memberships
  33107. of a given user via the {@link #getGroups(String)} call, thus ensuring
  33108. a consistent user-to-groups mapping and protects against vagaries of
  33109. different mappings on servers and clients in a Hadoop cluster.]]>
  33110. </doc>
  33111. </class>
  33112. <!-- end class org.apache.hadoop.security.Groups -->
  33113. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  33114. <class name="JniBasedUnixGroupsMapping" extends="java.lang.Object"
  33115. abstract="false"
  33116. static="false" final="false" visibility="public"
  33117. deprecated="not deprecated">
  33118. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  33119. <constructor name="JniBasedUnixGroupsMapping"
  33120. static="false" final="false" visibility="public"
  33121. deprecated="not deprecated">
  33122. </constructor>
  33123. <method name="getGroups" return="java.util.List"
  33124. abstract="false" native="false" synchronized="false"
  33125. static="false" final="false" visibility="public"
  33126. deprecated="not deprecated">
  33127. <param name="user" type="java.lang.String"/>
  33128. <exception name="IOException" type="java.io.IOException"/>
  33129. </method>
  33130. <method name="cacheGroupsRefresh"
  33131. abstract="false" native="false" synchronized="false"
  33132. static="false" final="false" visibility="public"
  33133. deprecated="not deprecated">
  33134. <exception name="IOException" type="java.io.IOException"/>
  33135. </method>
  33136. <method name="cacheGroupsAdd"
  33137. abstract="false" native="false" synchronized="false"
  33138. static="false" final="false" visibility="public"
  33139. deprecated="not deprecated">
  33140. <param name="groups" type="java.util.List"/>
  33141. <exception name="IOException" type="java.io.IOException"/>
  33142. </method>
  33143. <doc>
  33144. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  33145. that invokes libC calls to get the group
  33146. memberships of a given user.]]>
  33147. </doc>
  33148. </class>
  33149. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  33150. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  33151. <class name="JniBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.JniBasedUnixGroupsMapping"
  33152. abstract="false"
  33153. static="false" final="false" visibility="public"
  33154. deprecated="not deprecated">
  33155. <constructor name="JniBasedUnixGroupsNetgroupMapping"
  33156. static="false" final="false" visibility="public"
  33157. deprecated="not deprecated">
  33158. </constructor>
  33159. <method name="getGroups" return="java.util.List"
  33160. abstract="false" native="false" synchronized="false"
  33161. static="false" final="false" visibility="public"
  33162. deprecated="not deprecated">
  33163. <param name="user" type="java.lang.String"/>
  33164. <exception name="IOException" type="java.io.IOException"/>
  33165. <doc>
  33166. <![CDATA[Gets unix groups and netgroups for the user.
  33167. It gets all unix groups as returned by id -Gn but it
  33168. only returns netgroups that are used in ACLs (there is
  33169. no way to get all netgroups for a given user, see
  33170. documentation for getent netgroup)]]>
  33171. </doc>
  33172. </method>
  33173. <method name="cacheGroupsRefresh"
  33174. abstract="false" native="false" synchronized="false"
  33175. static="false" final="false" visibility="public"
  33176. deprecated="not deprecated">
  33177. <exception name="IOException" type="java.io.IOException"/>
  33178. </method>
  33179. <method name="cacheGroupsAdd"
  33180. abstract="false" native="false" synchronized="false"
  33181. static="false" final="false" visibility="public"
  33182. deprecated="not deprecated">
  33183. <param name="groups" type="java.util.List"/>
  33184. <exception name="IOException" type="java.io.IOException"/>
  33185. </method>
  33186. <method name="getUsersForNetgroup" return="java.util.List"
  33187. abstract="false" native="false" synchronized="true"
  33188. static="false" final="false" visibility="protected"
  33189. deprecated="not deprecated">
  33190. <param name="netgroup" type="java.lang.String"/>
  33191. <doc>
  33192. <![CDATA[Calls JNI function to get users for a netgroup, since C functions
  33193. are not reentrant we need to make this synchronized (see
  33194. documentation for setnetgrent, getnetgrent and endnetgrent)]]>
  33195. </doc>
  33196. </method>
  33197. <doc>
  33198. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  33199. that invokes libC calls to get the group
  33200. memberships of a given user.]]>
  33201. </doc>
  33202. </class>
  33203. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  33204. <!-- start interface org.apache.hadoop.security.KerberosInfo -->
  33205. <interface name="KerberosInfo" abstract="true"
  33206. static="false" final="false" visibility="public"
  33207. deprecated="not deprecated">
  33208. <implements name="java.lang.annotation.Annotation"/>
  33209. <method name="serverPrincipal" return="java.lang.String"
  33210. abstract="false" native="false" synchronized="false"
  33211. static="false" final="false" visibility="public"
  33212. deprecated="not deprecated">
  33213. <doc>
  33214. <![CDATA[Key for getting server's Kerberos principal name from Configuration]]>
  33215. </doc>
  33216. </method>
  33217. <method name="clientPrincipal" return="java.lang.String"
  33218. abstract="false" native="false" synchronized="false"
  33219. static="false" final="false" visibility="public"
  33220. deprecated="not deprecated">
  33221. </method>
  33222. <doc>
  33223. <![CDATA[Indicates Kerberos related information to be used]]>
  33224. </doc>
  33225. </interface>
  33226. <!-- end interface org.apache.hadoop.security.KerberosInfo -->
  33227. <!-- start class org.apache.hadoop.security.KerberosName -->
  33228. <class name="KerberosName" extends="java.lang.Object"
  33229. abstract="false"
  33230. static="false" final="false" visibility="public"
  33231. deprecated="not deprecated">
  33232. <constructor name="KerberosName" type="java.lang.String"
  33233. static="false" final="false" visibility="public"
  33234. deprecated="not deprecated">
  33235. <doc>
  33236. <![CDATA[Create a name from the full Kerberos principal name.
  33237. @param name]]>
  33238. </doc>
  33239. </constructor>
  33240. <method name="getDefaultRealm" return="java.lang.String"
  33241. abstract="false" native="false" synchronized="false"
  33242. static="false" final="false" visibility="public"
  33243. deprecated="not deprecated">
  33244. <doc>
  33245. <![CDATA[Get the configured default realm.
  33246. @return the default realm from the krb5.conf]]>
  33247. </doc>
  33248. </method>
  33249. <method name="toString" return="java.lang.String"
  33250. abstract="false" native="false" synchronized="false"
  33251. static="false" final="false" visibility="public"
  33252. deprecated="not deprecated">
  33253. <doc>
  33254. <![CDATA[Put the name back together from the parts.]]>
  33255. </doc>
  33256. </method>
  33257. <method name="getServiceName" return="java.lang.String"
  33258. abstract="false" native="false" synchronized="false"
  33259. static="false" final="false" visibility="public"
  33260. deprecated="not deprecated">
  33261. <doc>
  33262. <![CDATA[Get the first component of the name.
  33263. @return the first section of the Kerberos principal name]]>
  33264. </doc>
  33265. </method>
  33266. <method name="getHostName" return="java.lang.String"
  33267. abstract="false" native="false" synchronized="false"
  33268. static="false" final="false" visibility="public"
  33269. deprecated="not deprecated">
  33270. <doc>
  33271. <![CDATA[Get the second component of the name.
  33272. @return the second section of the Kerberos principal name, and may be null]]>
  33273. </doc>
  33274. </method>
  33275. <method name="getRealm" return="java.lang.String"
  33276. abstract="false" native="false" synchronized="false"
  33277. static="false" final="false" visibility="public"
  33278. deprecated="not deprecated">
  33279. <doc>
  33280. <![CDATA[Get the realm of the name.
  33281. @return the realm of the name, may be null]]>
  33282. </doc>
  33283. </method>
  33284. <method name="setConfiguration"
  33285. abstract="false" native="false" synchronized="false"
  33286. static="true" final="false" visibility="public"
  33287. deprecated="not deprecated">
  33288. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33289. <exception name="IOException" type="java.io.IOException"/>
  33290. <doc>
  33291. <![CDATA[Set the static configuration to get the rules.
  33292. @param conf the new configuration
  33293. @throws IOException]]>
  33294. </doc>
  33295. </method>
  33296. <method name="setRules"
  33297. abstract="false" native="false" synchronized="false"
  33298. static="true" final="false" visibility="public"
  33299. deprecated="not deprecated">
  33300. <param name="ruleString" type="java.lang.String"/>
  33301. <doc>
  33302. <![CDATA[Set the rules.
  33303. @param ruleString the rules string.]]>
  33304. </doc>
  33305. </method>
  33306. <method name="getShortName" return="java.lang.String"
  33307. abstract="false" native="false" synchronized="false"
  33308. static="false" final="false" visibility="public"
  33309. deprecated="not deprecated">
  33310. <exception name="IOException" type="java.io.IOException"/>
  33311. <doc>
  33312. <![CDATA[Get the translation of the principal name into an operating system
  33313. user name.
  33314. @return the short name
  33315. @throws IOException]]>
  33316. </doc>
  33317. </method>
  33318. <method name="printRules"
  33319. abstract="false" native="false" synchronized="false"
  33320. static="true" final="false" visibility="public"
  33321. deprecated="not deprecated">
  33322. <exception name="IOException" type="java.io.IOException"/>
  33323. </method>
  33324. <method name="main"
  33325. abstract="false" native="false" synchronized="false"
  33326. static="true" final="false" visibility="public"
  33327. deprecated="not deprecated">
  33328. <param name="args" type="java.lang.String[]"/>
  33329. <exception name="Exception" type="java.lang.Exception"/>
  33330. </method>
  33331. <doc>
  33332. <![CDATA[This class implements parsing and handling of Kerberos principal names. In
  33333. particular, it splits them apart and translates them down into local
  33334. operating system names.]]>
  33335. </doc>
  33336. </class>
  33337. <!-- end class org.apache.hadoop.security.KerberosName -->
  33338. <!-- start class org.apache.hadoop.security.KerberosName.BadFormatString -->
  33339. <class name="KerberosName.BadFormatString" extends="java.io.IOException"
  33340. abstract="false"
  33341. static="true" final="false" visibility="public"
  33342. deprecated="not deprecated">
  33343. </class>
  33344. <!-- end class org.apache.hadoop.security.KerberosName.BadFormatString -->
  33345. <!-- start class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  33346. <class name="KerberosName.NoMatchingRule" extends="java.io.IOException"
  33347. abstract="false"
  33348. static="true" final="false" visibility="public"
  33349. deprecated="not deprecated">
  33350. </class>
  33351. <!-- end class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  33352. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  33353. <class name="Krb5AndCertsSslSocketConnector" extends="org.mortbay.jetty.security.SslSocketConnector"
  33354. abstract="false"
  33355. static="false" final="false" visibility="public"
  33356. deprecated="not deprecated">
  33357. <constructor name="Krb5AndCertsSslSocketConnector"
  33358. static="false" final="false" visibility="public"
  33359. deprecated="not deprecated">
  33360. </constructor>
  33361. <constructor name="Krb5AndCertsSslSocketConnector" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33362. static="false" final="false" visibility="public"
  33363. deprecated="not deprecated">
  33364. </constructor>
  33365. <method name="createFactory" return="javax.net.ssl.SSLServerSocketFactory"
  33366. abstract="false" native="false" synchronized="false"
  33367. static="false" final="false" visibility="protected"
  33368. deprecated="not deprecated">
  33369. <exception name="Exception" type="java.lang.Exception"/>
  33370. </method>
  33371. <method name="newServerSocket" return="java.net.ServerSocket"
  33372. abstract="false" native="false" synchronized="false"
  33373. static="false" final="false" visibility="protected"
  33374. deprecated="not deprecated">
  33375. <param name="host" type="java.lang.String"/>
  33376. <param name="port" type="int"/>
  33377. <param name="backlog" type="int"/>
  33378. <exception name="IOException" type="java.io.IOException"/>
  33379. </method>
  33380. <method name="customize"
  33381. abstract="false" native="false" synchronized="false"
  33382. static="false" final="false" visibility="public"
  33383. deprecated="not deprecated">
  33384. <param name="endpoint" type="org.mortbay.io.EndPoint"/>
  33385. <param name="request" type="org.mortbay.jetty.Request"/>
  33386. <exception name="IOException" type="java.io.IOException"/>
  33387. </method>
  33388. <field name="KRB5_CIPHER_SUITES" type="java.util.List"
  33389. transient="false" volatile="false"
  33390. static="true" final="true" visibility="public"
  33391. deprecated="not deprecated">
  33392. </field>
  33393. <doc>
  33394. <![CDATA[Extend Jetty's {@link SslSocketConnector} to optionally also provide
  33395. Kerberos5ized SSL sockets. The only change in behavior from superclass
  33396. is that we no longer honor requests to turn off NeedAuthentication when
  33397. running with Kerberos support.]]>
  33398. </doc>
  33399. </class>
  33400. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  33401. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  33402. <class name="Krb5AndCertsSslSocketConnector.Krb5SslFilter" extends="java.lang.Object"
  33403. abstract="false"
  33404. static="true" final="false" visibility="public"
  33405. deprecated="not deprecated">
  33406. <implements name="javax.servlet.Filter"/>
  33407. <constructor name="Krb5AndCertsSslSocketConnector.Krb5SslFilter"
  33408. static="false" final="false" visibility="public"
  33409. deprecated="not deprecated">
  33410. </constructor>
  33411. <method name="doFilter"
  33412. abstract="false" native="false" synchronized="false"
  33413. static="false" final="false" visibility="public"
  33414. deprecated="not deprecated">
  33415. <param name="req" type="javax.servlet.ServletRequest"/>
  33416. <param name="resp" type="javax.servlet.ServletResponse"/>
  33417. <param name="chain" type="javax.servlet.FilterChain"/>
  33418. <exception name="IOException" type="java.io.IOException"/>
  33419. <exception name="ServletException" type="javax.servlet.ServletException"/>
  33420. </method>
  33421. <method name="init"
  33422. abstract="false" native="false" synchronized="false"
  33423. static="false" final="false" visibility="public"
  33424. deprecated="not deprecated">
  33425. <param name="arg0" type="javax.servlet.FilterConfig"/>
  33426. <exception name="ServletException" type="javax.servlet.ServletException"/>
  33427. </method>
  33428. <method name="destroy"
  33429. abstract="false" native="false" synchronized="false"
  33430. static="false" final="false" visibility="public"
  33431. deprecated="not deprecated">
  33432. </method>
  33433. <doc>
  33434. <![CDATA[Filter that takes the Kerberos principal identified in the
  33435. {@link Krb5AndCertsSslSocketConnector} and provides it the to the servlet
  33436. at runtime, setting the principal and short name.]]>
  33437. </doc>
  33438. </class>
  33439. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  33440. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  33441. <class name="Krb5AndCertsSslSocketConnector.MODE" extends="java.lang.Enum"
  33442. abstract="false"
  33443. static="true" final="true" visibility="public"
  33444. deprecated="not deprecated">
  33445. <method name="values" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE[]"
  33446. abstract="false" native="false" synchronized="false"
  33447. static="true" final="false" visibility="public"
  33448. deprecated="not deprecated">
  33449. </method>
  33450. <method name="valueOf" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33451. abstract="false" native="false" synchronized="false"
  33452. static="true" final="false" visibility="public"
  33453. deprecated="not deprecated">
  33454. <param name="name" type="java.lang.String"/>
  33455. </method>
  33456. <field name="KRB" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33457. transient="false" volatile="false"
  33458. static="true" final="true" visibility="public"
  33459. deprecated="not deprecated">
  33460. </field>
  33461. <field name="CERTS" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33462. transient="false" volatile="false"
  33463. static="true" final="true" visibility="public"
  33464. deprecated="not deprecated">
  33465. </field>
  33466. <field name="BOTH" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33467. transient="false" volatile="false"
  33468. static="true" final="true" visibility="public"
  33469. deprecated="not deprecated">
  33470. </field>
  33471. </class>
  33472. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  33473. <!-- start class org.apache.hadoop.security.NetgroupCache -->
  33474. <class name="NetgroupCache" extends="java.lang.Object"
  33475. abstract="false"
  33476. static="false" final="false" visibility="public"
  33477. deprecated="not deprecated">
  33478. <constructor name="NetgroupCache"
  33479. static="false" final="false" visibility="public"
  33480. deprecated="not deprecated">
  33481. </constructor>
  33482. <method name="getNetgroups"
  33483. abstract="false" native="false" synchronized="false"
  33484. static="false" final="false" visibility="public"
  33485. deprecated="not deprecated">
  33486. <param name="user" type="java.lang.String"/>
  33487. <param name="groups" type="java.util.List"/>
  33488. </method>
  33489. <method name="getNetgroupNames" return="java.util.List"
  33490. abstract="false" native="false" synchronized="false"
  33491. static="false" final="false" visibility="public"
  33492. deprecated="not deprecated">
  33493. </method>
  33494. <method name="isCached" return="boolean"
  33495. abstract="false" native="false" synchronized="false"
  33496. static="false" final="false" visibility="public"
  33497. deprecated="not deprecated">
  33498. <param name="group" type="java.lang.String"/>
  33499. </method>
  33500. <method name="clear"
  33501. abstract="false" native="false" synchronized="false"
  33502. static="false" final="false" visibility="public"
  33503. deprecated="not deprecated">
  33504. </method>
  33505. <method name="add"
  33506. abstract="false" native="false" synchronized="false"
  33507. static="false" final="false" visibility="public"
  33508. deprecated="not deprecated">
  33509. <param name="group" type="java.lang.String"/>
  33510. <param name="users" type="java.util.List"/>
  33511. </method>
  33512. <doc>
  33513. <![CDATA[Class that caches the netgroups and inverts group-to-user map
  33514. to user-to-group map]]>
  33515. </doc>
  33516. </class>
  33517. <!-- end class org.apache.hadoop.security.NetgroupCache -->
  33518. <!-- start interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  33519. <interface name="RefreshUserMappingsProtocol" abstract="true"
  33520. static="false" final="false" visibility="public"
  33521. deprecated="not deprecated">
  33522. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  33523. <method name="refreshUserToGroupsMappings"
  33524. abstract="false" native="false" synchronized="false"
  33525. static="false" final="false" visibility="public"
  33526. deprecated="not deprecated">
  33527. <exception name="IOException" type="java.io.IOException"/>
  33528. <doc>
  33529. <![CDATA[Refresh user to group mappings.
  33530. @throws IOException]]>
  33531. </doc>
  33532. </method>
  33533. <method name="refreshSuperUserGroupsConfiguration"
  33534. abstract="false" native="false" synchronized="false"
  33535. static="false" final="false" visibility="public"
  33536. deprecated="not deprecated">
  33537. <exception name="IOException" type="java.io.IOException"/>
  33538. <doc>
  33539. <![CDATA[Refresh superuser proxy group list
  33540. @throws IOException]]>
  33541. </doc>
  33542. </method>
  33543. <field name="versionID" type="long"
  33544. transient="false" volatile="false"
  33545. static="true" final="true" visibility="public"
  33546. deprecated="not deprecated">
  33547. <doc>
  33548. <![CDATA[Version 1: Initial version.]]>
  33549. </doc>
  33550. </field>
  33551. <doc>
  33552. <![CDATA[Protocol use]]>
  33553. </doc>
  33554. </interface>
  33555. <!-- end interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  33556. <!-- start class org.apache.hadoop.security.SaslInputStream -->
  33557. <class name="SaslInputStream" extends="java.io.InputStream"
  33558. abstract="false"
  33559. static="false" final="false" visibility="public"
  33560. deprecated="not deprecated">
  33561. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslServer"
  33562. static="false" final="false" visibility="public"
  33563. deprecated="not deprecated">
  33564. <doc>
  33565. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslServer <br>
  33566. Note: if the specified InputStream or SaslServer is null, a
  33567. NullPointerException may be thrown later when they are used.
  33568. @param inStream
  33569. the InputStream to be processed
  33570. @param saslServer
  33571. an initialized SaslServer object]]>
  33572. </doc>
  33573. </constructor>
  33574. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslClient"
  33575. static="false" final="false" visibility="public"
  33576. deprecated="not deprecated">
  33577. <doc>
  33578. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslClient <br>
  33579. Note: if the specified InputStream or SaslClient is null, a
  33580. NullPointerException may be thrown later when they are used.
  33581. @param inStream
  33582. the InputStream to be processed
  33583. @param saslClient
  33584. an initialized SaslClient object]]>
  33585. </doc>
  33586. </constructor>
  33587. <method name="read" return="int"
  33588. abstract="false" native="false" synchronized="false"
  33589. static="false" final="false" visibility="public"
  33590. deprecated="not deprecated">
  33591. <exception name="IOException" type="java.io.IOException"/>
  33592. <doc>
  33593. <![CDATA[Reads the next byte of data from this input stream. The value byte is
  33594. returned as an <code>int</code> in the range <code>0</code> to
  33595. <code>255</code>. If no byte is available because the end of the stream has
  33596. been reached, the value <code>-1</code> is returned. This method blocks
  33597. until input data is available, the end of the stream is detected, or an
  33598. exception is thrown.
  33599. <p>
  33600. @return the next byte of data, or <code>-1</code> if the end of the stream
  33601. is reached.
  33602. @exception IOException
  33603. if an I/O error occurs.]]>
  33604. </doc>
  33605. </method>
  33606. <method name="read" return="int"
  33607. abstract="false" native="false" synchronized="false"
  33608. static="false" final="false" visibility="public"
  33609. deprecated="not deprecated">
  33610. <param name="b" type="byte[]"/>
  33611. <exception name="IOException" type="java.io.IOException"/>
  33612. <doc>
  33613. <![CDATA[Reads up to <code>b.length</code> bytes of data from this input stream into
  33614. an array of bytes.
  33615. <p>
  33616. The <code>read</code> method of <code>InputStream</code> calls the
  33617. <code>read</code> method of three arguments with the arguments
  33618. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  33619. @param b
  33620. the buffer into which the data is read.
  33621. @return the total number of bytes read into the buffer, or <code>-1</code>
  33622. is there is no more data because the end of the stream has been
  33623. reached.
  33624. @exception IOException
  33625. if an I/O error occurs.]]>
  33626. </doc>
  33627. </method>
  33628. <method name="read" return="int"
  33629. abstract="false" native="false" synchronized="false"
  33630. static="false" final="false" visibility="public"
  33631. deprecated="not deprecated">
  33632. <param name="b" type="byte[]"/>
  33633. <param name="off" type="int"/>
  33634. <param name="len" type="int"/>
  33635. <exception name="IOException" type="java.io.IOException"/>
  33636. <doc>
  33637. <![CDATA[Reads up to <code>len</code> bytes of data from this input stream into an
  33638. array of bytes. This method blocks until some input is available. If the
  33639. first argument is <code>null,</code> up to <code>len</code> bytes are read
  33640. and discarded.
  33641. @param b
  33642. the buffer into which the data is read.
  33643. @param off
  33644. the start offset of the data.
  33645. @param len
  33646. the maximum number of bytes read.
  33647. @return the total number of bytes read into the buffer, or <code>-1</code>
  33648. if there is no more data because the end of the stream has been
  33649. reached.
  33650. @exception IOException
  33651. if an I/O error occurs.]]>
  33652. </doc>
  33653. </method>
  33654. <method name="skip" return="long"
  33655. abstract="false" native="false" synchronized="false"
  33656. static="false" final="false" visibility="public"
  33657. deprecated="not deprecated">
  33658. <param name="n" type="long"/>
  33659. <exception name="IOException" type="java.io.IOException"/>
  33660. <doc>
  33661. <![CDATA[Skips <code>n</code> bytes of input from the bytes that can be read from
  33662. this input stream without blocking.
  33663. <p>
  33664. Fewer bytes than requested might be skipped. The actual number of bytes
  33665. skipped is equal to <code>n</code> or the result of a call to
  33666. {@link #available() <code>available</code>}, whichever is smaller. If
  33667. <code>n</code> is less than zero, no bytes are skipped.
  33668. <p>
  33669. The actual number of bytes skipped is returned.
  33670. @param n
  33671. the number of bytes to be skipped.
  33672. @return the actual number of bytes skipped.
  33673. @exception IOException
  33674. if an I/O error occurs.]]>
  33675. </doc>
  33676. </method>
  33677. <method name="available" return="int"
  33678. abstract="false" native="false" synchronized="false"
  33679. static="false" final="false" visibility="public"
  33680. deprecated="not deprecated">
  33681. <exception name="IOException" type="java.io.IOException"/>
  33682. <doc>
  33683. <![CDATA[Returns the number of bytes that can be read from this input stream without
  33684. blocking. The <code>available</code> method of <code>InputStream</code>
  33685. returns <code>0</code>. This method <B>should</B> be overridden by
  33686. subclasses.
  33687. @return the number of bytes that can be read from this input stream without
  33688. blocking.
  33689. @exception IOException
  33690. if an I/O error occurs.]]>
  33691. </doc>
  33692. </method>
  33693. <method name="close"
  33694. abstract="false" native="false" synchronized="false"
  33695. static="false" final="false" visibility="public"
  33696. deprecated="not deprecated">
  33697. <exception name="IOException" type="java.io.IOException"/>
  33698. <doc>
  33699. <![CDATA[Closes this input stream and releases any system resources associated with
  33700. the stream.
  33701. <p>
  33702. The <code>close</code> method of <code>SASLInputStream</code> calls the
  33703. <code>close</code> method of its underlying input stream.
  33704. @exception IOException
  33705. if an I/O error occurs.]]>
  33706. </doc>
  33707. </method>
  33708. <method name="markSupported" return="boolean"
  33709. abstract="false" native="false" synchronized="false"
  33710. static="false" final="false" visibility="public"
  33711. deprecated="not deprecated">
  33712. <doc>
  33713. <![CDATA[Tests if this input stream supports the <code>mark</code> and
  33714. <code>reset</code> methods, which it does not.
  33715. @return <code>false</code>, since this class does not support the
  33716. <code>mark</code> and <code>reset</code> methods.]]>
  33717. </doc>
  33718. </method>
  33719. <field name="LOG" type="org.apache.commons.logging.Log"
  33720. transient="false" volatile="false"
  33721. static="true" final="true" visibility="public"
  33722. deprecated="not deprecated">
  33723. </field>
  33724. <doc>
  33725. <![CDATA[A SaslInputStream is composed of an InputStream and a SaslServer (or
  33726. SaslClient) so that read() methods return data that are read in from the
  33727. underlying InputStream but have been additionally processed by the SaslServer
  33728. (or SaslClient) object. The SaslServer (or SaslClient) object must be fully
  33729. initialized before being used by a SaslInputStream.]]>
  33730. </doc>
  33731. </class>
  33732. <!-- end class org.apache.hadoop.security.SaslInputStream -->
  33733. <!-- start class org.apache.hadoop.security.SaslOutputStream -->
  33734. <class name="SaslOutputStream" extends="java.io.OutputStream"
  33735. abstract="false"
  33736. static="false" final="false" visibility="public"
  33737. deprecated="not deprecated">
  33738. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslServer"
  33739. static="false" final="false" visibility="public"
  33740. deprecated="not deprecated">
  33741. <doc>
  33742. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
  33743. Note: if the specified OutputStream or SaslServer is null, a
  33744. NullPointerException may be thrown later when they are used.
  33745. @param outStream
  33746. the OutputStream to be processed
  33747. @param saslServer
  33748. an initialized SaslServer object]]>
  33749. </doc>
  33750. </constructor>
  33751. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslClient"
  33752. static="false" final="false" visibility="public"
  33753. deprecated="not deprecated">
  33754. <doc>
  33755. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslClient <br>
  33756. Note: if the specified OutputStream or SaslClient is null, a
  33757. NullPointerException may be thrown later when they are used.
  33758. @param outStream
  33759. the OutputStream to be processed
  33760. @param saslClient
  33761. an initialized SaslClient object]]>
  33762. </doc>
  33763. </constructor>
  33764. <method name="write"
  33765. abstract="false" native="false" synchronized="false"
  33766. static="false" final="false" visibility="public"
  33767. deprecated="not deprecated">
  33768. <param name="b" type="int"/>
  33769. <exception name="IOException" type="java.io.IOException"/>
  33770. <doc>
  33771. <![CDATA[Writes the specified byte to this output stream.
  33772. @param b
  33773. the <code>byte</code>.
  33774. @exception IOException
  33775. if an I/O error occurs.]]>
  33776. </doc>
  33777. </method>
  33778. <method name="write"
  33779. abstract="false" native="false" synchronized="false"
  33780. static="false" final="false" visibility="public"
  33781. deprecated="not deprecated">
  33782. <param name="b" type="byte[]"/>
  33783. <exception name="IOException" type="java.io.IOException"/>
  33784. <doc>
  33785. <![CDATA[Writes <code>b.length</code> bytes from the specified byte array to this
  33786. output stream.
  33787. <p>
  33788. The <code>write</code> method of <code>SASLOutputStream</code> calls the
  33789. <code>write</code> method of three arguments with the three arguments
  33790. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  33791. @param b
  33792. the data.
  33793. @exception NullPointerException
  33794. if <code>b</code> is null.
  33795. @exception IOException
  33796. if an I/O error occurs.]]>
  33797. </doc>
  33798. </method>
  33799. <method name="write"
  33800. abstract="false" native="false" synchronized="false"
  33801. static="false" final="false" visibility="public"
  33802. deprecated="not deprecated">
  33803. <param name="inBuf" type="byte[]"/>
  33804. <param name="off" type="int"/>
  33805. <param name="len" type="int"/>
  33806. <exception name="IOException" type="java.io.IOException"/>
  33807. <doc>
  33808. <![CDATA[Writes <code>len</code> bytes from the specified byte array starting at
  33809. offset <code>off</code> to this output stream.
  33810. @param inBuf
  33811. the data.
  33812. @param off
  33813. the start offset in the data.
  33814. @param len
  33815. the number of bytes to write.
  33816. @exception IOException
  33817. if an I/O error occurs.]]>
  33818. </doc>
  33819. </method>
  33820. <method name="flush"
  33821. abstract="false" native="false" synchronized="false"
  33822. static="false" final="false" visibility="public"
  33823. deprecated="not deprecated">
  33824. <exception name="IOException" type="java.io.IOException"/>
  33825. <doc>
  33826. <![CDATA[Flushes this output stream
  33827. @exception IOException
  33828. if an I/O error occurs.]]>
  33829. </doc>
  33830. </method>
  33831. <method name="close"
  33832. abstract="false" native="false" synchronized="false"
  33833. static="false" final="false" visibility="public"
  33834. deprecated="not deprecated">
  33835. <exception name="IOException" type="java.io.IOException"/>
  33836. <doc>
  33837. <![CDATA[Closes this output stream and releases any system resources associated with
  33838. this stream.
  33839. @exception IOException
  33840. if an I/O error occurs.]]>
  33841. </doc>
  33842. </method>
  33843. <doc>
  33844. <![CDATA[A SaslOutputStream is composed of an OutputStream and a SaslServer (or
  33845. SaslClient) so that write() methods first process the data before writing
  33846. them out to the underlying OutputStream. The SaslServer (or SaslClient)
  33847. object must be fully initialized before being used by a SaslOutputStream.]]>
  33848. </doc>
  33849. </class>
  33850. <!-- end class org.apache.hadoop.security.SaslOutputStream -->
  33851. <!-- start class org.apache.hadoop.security.SaslRpcClient -->
  33852. <class name="SaslRpcClient" extends="java.lang.Object"
  33853. abstract="false"
  33854. static="false" final="false" visibility="public"
  33855. deprecated="not deprecated">
  33856. <constructor name="SaslRpcClient" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod, org.apache.hadoop.security.token.Token, java.lang.String"
  33857. static="false" final="false" visibility="public"
  33858. deprecated="not deprecated">
  33859. <exception name="IOException" type="java.io.IOException"/>
  33860. <doc>
  33861. <![CDATA[Create a SaslRpcClient for an authentication method
  33862. @param method
  33863. the requested authentication method
  33864. @param token
  33865. token to use if needed by the authentication method]]>
  33866. </doc>
  33867. </constructor>
  33868. <method name="saslConnect" return="boolean"
  33869. abstract="false" native="false" synchronized="false"
  33870. static="false" final="false" visibility="public"
  33871. deprecated="not deprecated">
  33872. <param name="inS" type="java.io.InputStream"/>
  33873. <param name="outS" type="java.io.OutputStream"/>
  33874. <exception name="IOException" type="java.io.IOException"/>
  33875. <doc>
  33876. <![CDATA[Do client side SASL authentication with server via the given InputStream
  33877. and OutputStream
  33878. @param inS
  33879. InputStream to use
  33880. @param outS
  33881. OutputStream to use
  33882. @return true if connection is set up, or false if needs to switch
  33883. to simple Auth.
  33884. @throws IOException]]>
  33885. </doc>
  33886. </method>
  33887. <method name="getInputStream" return="java.io.InputStream"
  33888. abstract="false" native="false" synchronized="false"
  33889. static="false" final="false" visibility="public"
  33890. deprecated="not deprecated">
  33891. <param name="in" type="java.io.InputStream"/>
  33892. <exception name="IOException" type="java.io.IOException"/>
  33893. <doc>
  33894. <![CDATA[Get a SASL wrapped InputStream. Can be called only after saslConnect() has
  33895. been called.
  33896. @param in
  33897. the InputStream to wrap
  33898. @return a SASL wrapped InputStream
  33899. @throws IOException]]>
  33900. </doc>
  33901. </method>
  33902. <method name="getOutputStream" return="java.io.OutputStream"
  33903. abstract="false" native="false" synchronized="false"
  33904. static="false" final="false" visibility="public"
  33905. deprecated="not deprecated">
  33906. <param name="out" type="java.io.OutputStream"/>
  33907. <exception name="IOException" type="java.io.IOException"/>
  33908. <doc>
  33909. <![CDATA[Get a SASL wrapped OutputStream. Can be called only after saslConnect() has
  33910. been called.
  33911. @param out
  33912. the OutputStream to wrap
  33913. @return a SASL wrapped OutputStream
  33914. @throws IOException]]>
  33915. </doc>
  33916. </method>
  33917. <method name="dispose"
  33918. abstract="false" native="false" synchronized="false"
  33919. static="false" final="false" visibility="public"
  33920. deprecated="not deprecated">
  33921. <exception name="SaslException" type="javax.security.sasl.SaslException"/>
  33922. <doc>
  33923. <![CDATA[Release resources used by wrapped saslClient]]>
  33924. </doc>
  33925. </method>
  33926. <field name="LOG" type="org.apache.commons.logging.Log"
  33927. transient="false" volatile="false"
  33928. static="true" final="true" visibility="public"
  33929. deprecated="not deprecated">
  33930. </field>
  33931. <doc>
  33932. <![CDATA[A utility class that encapsulates SASL logic for RPC client]]>
  33933. </doc>
  33934. </class>
  33935. <!-- end class org.apache.hadoop.security.SaslRpcClient -->
  33936. <!-- start class org.apache.hadoop.security.SaslRpcServer -->
  33937. <class name="SaslRpcServer" extends="java.lang.Object"
  33938. abstract="false"
  33939. static="false" final="false" visibility="public"
  33940. deprecated="not deprecated">
  33941. <constructor name="SaslRpcServer"
  33942. static="false" final="false" visibility="public"
  33943. deprecated="not deprecated">
  33944. </constructor>
  33945. <method name="init"
  33946. abstract="false" native="false" synchronized="false"
  33947. static="true" final="false" visibility="public"
  33948. deprecated="not deprecated">
  33949. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33950. </method>
  33951. <method name="getIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  33952. abstract="false" native="false" synchronized="false"
  33953. static="true" final="false" visibility="public"
  33954. deprecated="not deprecated">
  33955. <param name="id" type="java.lang.String"/>
  33956. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  33957. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  33958. </method>
  33959. <method name="splitKerberosName" return="java.lang.String[]"
  33960. abstract="false" native="false" synchronized="false"
  33961. static="true" final="false" visibility="public"
  33962. deprecated="not deprecated">
  33963. <param name="fullName" type="java.lang.String"/>
  33964. <doc>
  33965. <![CDATA[Splitting fully qualified Kerberos name into parts]]>
  33966. </doc>
  33967. </method>
  33968. <field name="LOG" type="org.apache.commons.logging.Log"
  33969. transient="false" volatile="false"
  33970. static="true" final="true" visibility="public"
  33971. deprecated="not deprecated">
  33972. </field>
  33973. <field name="SASL_DEFAULT_REALM" type="java.lang.String"
  33974. transient="false" volatile="false"
  33975. static="true" final="true" visibility="public"
  33976. deprecated="not deprecated">
  33977. </field>
  33978. <field name="SASL_PROPS" type="java.util.Map"
  33979. transient="false" volatile="false"
  33980. static="true" final="true" visibility="public"
  33981. deprecated="not deprecated">
  33982. </field>
  33983. <field name="SWITCH_TO_SIMPLE_AUTH" type="int"
  33984. transient="false" volatile="false"
  33985. static="true" final="true" visibility="public"
  33986. deprecated="not deprecated">
  33987. </field>
  33988. <doc>
  33989. <![CDATA[A utility class for dealing with SASL on RPC server]]>
  33990. </doc>
  33991. </class>
  33992. <!-- end class org.apache.hadoop.security.SaslRpcServer -->
  33993. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  33994. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  33995. abstract="false"
  33996. static="true" final="true" visibility="public"
  33997. deprecated="not deprecated">
  33998. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  33999. abstract="false" native="false" synchronized="false"
  34000. static="true" final="false" visibility="public"
  34001. deprecated="not deprecated">
  34002. </method>
  34003. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34004. abstract="false" native="false" synchronized="false"
  34005. static="true" final="false" visibility="public"
  34006. deprecated="not deprecated">
  34007. <param name="name" type="java.lang.String"/>
  34008. </method>
  34009. <method name="getMechanismName" return="java.lang.String"
  34010. abstract="false" native="false" synchronized="false"
  34011. static="false" final="false" visibility="public"
  34012. deprecated="not deprecated">
  34013. <doc>
  34014. <![CDATA[Return the SASL mechanism name]]>
  34015. </doc>
  34016. </method>
  34017. <method name="read" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34018. abstract="false" native="false" synchronized="false"
  34019. static="true" final="false" visibility="public"
  34020. deprecated="not deprecated">
  34021. <param name="in" type="java.io.DataInput"/>
  34022. <exception name="IOException" type="java.io.IOException"/>
  34023. <doc>
  34024. <![CDATA[Read from in]]>
  34025. </doc>
  34026. </method>
  34027. <method name="write"
  34028. abstract="false" native="false" synchronized="false"
  34029. static="false" final="false" visibility="public"
  34030. deprecated="not deprecated">
  34031. <param name="out" type="java.io.DataOutput"/>
  34032. <exception name="IOException" type="java.io.IOException"/>
  34033. <doc>
  34034. <![CDATA[Write to out]]>
  34035. </doc>
  34036. </method>
  34037. <field name="SIMPLE" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34038. transient="false" volatile="false"
  34039. static="true" final="true" visibility="public"
  34040. deprecated="not deprecated">
  34041. </field>
  34042. <field name="KERBEROS" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34043. transient="false" volatile="false"
  34044. static="true" final="true" visibility="public"
  34045. deprecated="not deprecated">
  34046. </field>
  34047. <field name="DIGEST" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34048. transient="false" volatile="false"
  34049. static="true" final="true" visibility="public"
  34050. deprecated="not deprecated">
  34051. </field>
  34052. <field name="code" type="byte"
  34053. transient="false" volatile="false"
  34054. static="false" final="true" visibility="public"
  34055. deprecated="not deprecated">
  34056. <doc>
  34057. <![CDATA[The code for this method.]]>
  34058. </doc>
  34059. </field>
  34060. <field name="mechanismName" type="java.lang.String"
  34061. transient="false" volatile="false"
  34062. static="false" final="true" visibility="public"
  34063. deprecated="not deprecated">
  34064. </field>
  34065. <field name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34066. transient="false" volatile="false"
  34067. static="false" final="true" visibility="public"
  34068. deprecated="not deprecated">
  34069. </field>
  34070. <doc>
  34071. <![CDATA[Authentication method]]>
  34072. </doc>
  34073. </class>
  34074. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  34075. <!-- start class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  34076. <class name="SaslRpcServer.QualityOfProtection" extends="java.lang.Enum"
  34077. abstract="false"
  34078. static="true" final="true" visibility="public"
  34079. deprecated="not deprecated">
  34080. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection[]"
  34081. abstract="false" native="false" synchronized="false"
  34082. static="true" final="false" visibility="public"
  34083. deprecated="not deprecated">
  34084. </method>
  34085. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34086. abstract="false" native="false" synchronized="false"
  34087. static="true" final="false" visibility="public"
  34088. deprecated="not deprecated">
  34089. <param name="name" type="java.lang.String"/>
  34090. </method>
  34091. <method name="getSaslQop" return="java.lang.String"
  34092. abstract="false" native="false" synchronized="false"
  34093. static="false" final="false" visibility="public"
  34094. deprecated="not deprecated">
  34095. </method>
  34096. <field name="AUTHENTICATION" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34097. transient="false" volatile="false"
  34098. static="true" final="true" visibility="public"
  34099. deprecated="not deprecated">
  34100. </field>
  34101. <field name="INTEGRITY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34102. transient="false" volatile="false"
  34103. static="true" final="true" visibility="public"
  34104. deprecated="not deprecated">
  34105. </field>
  34106. <field name="PRIVACY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34107. transient="false" volatile="false"
  34108. static="true" final="true" visibility="public"
  34109. deprecated="not deprecated">
  34110. </field>
  34111. <field name="saslQop" type="java.lang.String"
  34112. transient="false" volatile="false"
  34113. static="false" final="true" visibility="public"
  34114. deprecated="not deprecated">
  34115. </field>
  34116. </class>
  34117. <!-- end class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  34118. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  34119. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  34120. abstract="false"
  34121. static="true" final="false" visibility="public"
  34122. deprecated="not deprecated">
  34123. <implements name="javax.security.auth.callback.CallbackHandler"/>
  34124. <constructor name="SaslRpcServer.SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  34125. static="false" final="false" visibility="public"
  34126. deprecated="not deprecated">
  34127. </constructor>
  34128. <method name="handle"
  34129. abstract="false" native="false" synchronized="false"
  34130. static="false" final="false" visibility="public"
  34131. deprecated="not deprecated">
  34132. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  34133. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34134. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  34135. <doc>
  34136. <![CDATA[{@inheritDoc}]]>
  34137. </doc>
  34138. </method>
  34139. <doc>
  34140. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  34141. </doc>
  34142. </class>
  34143. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  34144. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  34145. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  34146. abstract="false"
  34147. static="true" final="false" visibility="public"
  34148. deprecated="not deprecated">
  34149. <implements name="javax.security.auth.callback.CallbackHandler"/>
  34150. <constructor name="SaslRpcServer.SaslGssCallbackHandler"
  34151. static="false" final="false" visibility="public"
  34152. deprecated="not deprecated">
  34153. </constructor>
  34154. <method name="handle"
  34155. abstract="false" native="false" synchronized="false"
  34156. static="false" final="false" visibility="public"
  34157. deprecated="not deprecated">
  34158. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  34159. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  34160. <doc>
  34161. <![CDATA[{@inheritDoc}]]>
  34162. </doc>
  34163. </method>
  34164. <doc>
  34165. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  34166. </doc>
  34167. </class>
  34168. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  34169. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  34170. <class name="SaslRpcServer.SaslStatus" extends="java.lang.Enum"
  34171. abstract="false"
  34172. static="true" final="true" visibility="public"
  34173. deprecated="not deprecated">
  34174. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus[]"
  34175. abstract="false" native="false" synchronized="false"
  34176. static="true" final="false" visibility="public"
  34177. deprecated="not deprecated">
  34178. </method>
  34179. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  34180. abstract="false" native="false" synchronized="false"
  34181. static="true" final="false" visibility="public"
  34182. deprecated="not deprecated">
  34183. <param name="name" type="java.lang.String"/>
  34184. </method>
  34185. <field name="SUCCESS" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  34186. transient="false" volatile="false"
  34187. static="true" final="true" visibility="public"
  34188. deprecated="not deprecated">
  34189. </field>
  34190. <field name="ERROR" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  34191. transient="false" volatile="false"
  34192. static="true" final="true" visibility="public"
  34193. deprecated="not deprecated">
  34194. </field>
  34195. <field name="state" type="int"
  34196. transient="false" volatile="false"
  34197. static="false" final="true" visibility="public"
  34198. deprecated="not deprecated">
  34199. </field>
  34200. </class>
  34201. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  34202. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  34203. <class name="SecurityUtil" extends="java.lang.Object"
  34204. abstract="false"
  34205. static="false" final="false" visibility="public"
  34206. deprecated="not deprecated">
  34207. <constructor name="SecurityUtil"
  34208. static="false" final="false" visibility="public"
  34209. deprecated="not deprecated">
  34210. </constructor>
  34211. <method name="getTokenServiceUseIp" return="boolean"
  34212. abstract="false" native="false" synchronized="false"
  34213. static="true" final="false" visibility="public"
  34214. deprecated="not deprecated">
  34215. <doc>
  34216. <![CDATA[Intended only for temporary use by NetUtils. Do not use.
  34217. @return whether tokens use an IP address]]>
  34218. </doc>
  34219. </method>
  34220. <method name="isOriginalTGT" return="boolean"
  34221. abstract="false" native="false" synchronized="false"
  34222. static="true" final="false" visibility="protected"
  34223. deprecated="not deprecated">
  34224. <param name="name" type="java.lang.String"/>
  34225. </method>
  34226. <method name="fetchServiceTicket"
  34227. abstract="false" native="false" synchronized="false"
  34228. static="true" final="false" visibility="public"
  34229. deprecated="not deprecated">
  34230. <param name="remoteHost" type="java.net.URL"/>
  34231. <exception name="IOException" type="java.io.IOException"/>
  34232. <doc>
  34233. <![CDATA[Explicitly pull the service ticket for the specified host. This solves a
  34234. problem with Java's Kerberos SSL problem where the client cannot
  34235. authenticate against a cross-realm service. It is necessary for clients
  34236. making kerberized https requests to call this method on the target URL
  34237. to ensure that in a cross-realm environment the remote host will be
  34238. successfully authenticated.
  34239. This method is internal to Hadoop and should not be used by other
  34240. applications. This method should not be considered stable or open:
  34241. it will be removed when the Java behavior is changed.
  34242. @param remoteHost Target URL the krb-https client will access]]>
  34243. </doc>
  34244. </method>
  34245. <method name="getServerPrincipal" return="java.lang.String"
  34246. abstract="false" native="false" synchronized="false"
  34247. static="true" final="false" visibility="public"
  34248. deprecated="not deprecated">
  34249. <param name="principalConfig" type="java.lang.String"/>
  34250. <param name="hostname" type="java.lang.String"/>
  34251. <exception name="IOException" type="java.io.IOException"/>
  34252. <doc>
  34253. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  34254. names. It replaces hostname pattern with hostname, which should be
  34255. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  34256. dynamically looked-up fqdn of the current host instead.
  34257. @param principalConfig
  34258. the Kerberos principal name conf value to convert
  34259. @param hostname
  34260. the fully-qualified domain name used for substitution
  34261. @return converted Kerberos principal name
  34262. @throws IOException]]>
  34263. </doc>
  34264. </method>
  34265. <method name="getServerPrincipal" return="java.lang.String"
  34266. abstract="false" native="false" synchronized="false"
  34267. static="true" final="false" visibility="public"
  34268. deprecated="not deprecated">
  34269. <param name="principalConfig" type="java.lang.String"/>
  34270. <param name="addr" type="java.net.InetAddress"/>
  34271. <exception name="IOException" type="java.io.IOException"/>
  34272. <doc>
  34273. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  34274. This method is similar to {@link #getServerPrincipal(String, String)},
  34275. except 1) the reverse DNS lookup from addr to hostname is done only when
  34276. necessary, 2) param addr can't be null (no default behavior of using local
  34277. hostname when addr is null).
  34278. @param principalConfig
  34279. Kerberos principal name pattern to convert
  34280. @param addr
  34281. InetAddress of the host used for substitution
  34282. @return converted Kerberos principal name
  34283. @throws IOException]]>
  34284. </doc>
  34285. </method>
  34286. <method name="login"
  34287. abstract="false" native="false" synchronized="false"
  34288. static="true" final="false" visibility="public"
  34289. deprecated="not deprecated">
  34290. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34291. <param name="keytabFileKey" type="java.lang.String"/>
  34292. <param name="userNameKey" type="java.lang.String"/>
  34293. <exception name="IOException" type="java.io.IOException"/>
  34294. <doc>
  34295. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  34296. user's Kerberos principal name with a dynamically looked-up fully-qualified
  34297. domain name of the current host.
  34298. @param conf
  34299. conf to use
  34300. @param keytabFileKey
  34301. the key to look for keytab file in conf
  34302. @param userNameKey
  34303. the key to look for user's Kerberos principal name in conf
  34304. @throws IOException]]>
  34305. </doc>
  34306. </method>
  34307. <method name="login"
  34308. abstract="false" native="false" synchronized="false"
  34309. static="true" final="false" visibility="public"
  34310. deprecated="not deprecated">
  34311. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34312. <param name="keytabFileKey" type="java.lang.String"/>
  34313. <param name="userNameKey" type="java.lang.String"/>
  34314. <param name="hostname" type="java.lang.String"/>
  34315. <exception name="IOException" type="java.io.IOException"/>
  34316. <doc>
  34317. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  34318. user's Kerberos principal name with hostname.
  34319. @param conf
  34320. conf to use
  34321. @param keytabFileKey
  34322. the key to look for keytab file in conf
  34323. @param userNameKey
  34324. the key to look for user's Kerberos principal name in conf
  34325. @param hostname
  34326. hostname to use for substitution
  34327. @throws IOException]]>
  34328. </doc>
  34329. </method>
  34330. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  34331. abstract="false" native="false" synchronized="false"
  34332. static="true" final="false" visibility="public"
  34333. deprecated="not deprecated">
  34334. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34335. <doc>
  34336. <![CDATA[Decode the given token's service field into an InetAddress
  34337. @param token from which to obtain the service
  34338. @return InetAddress for the service]]>
  34339. </doc>
  34340. </method>
  34341. <method name="setTokenService"
  34342. abstract="false" native="false" synchronized="false"
  34343. static="true" final="false" visibility="public"
  34344. deprecated="not deprecated">
  34345. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34346. <param name="addr" type="java.net.InetSocketAddress"/>
  34347. <doc>
  34348. <![CDATA[Set the given token's service to the format expected by the RPC client
  34349. @param token a delegation token
  34350. @param addr the socket for the rpc connection]]>
  34351. </doc>
  34352. </method>
  34353. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  34354. abstract="false" native="false" synchronized="false"
  34355. static="true" final="false" visibility="public"
  34356. deprecated="not deprecated">
  34357. <param name="addr" type="java.net.InetSocketAddress"/>
  34358. <doc>
  34359. <![CDATA[Construct the service key for a token
  34360. @param addr InetSocketAddress of remote connection with a token
  34361. @return "ip:port" or "host:port" depending on the value of
  34362. hadoop.security.token.service.use_ip]]>
  34363. </doc>
  34364. </method>
  34365. <method name="buildDTServiceName" return="java.lang.String"
  34366. abstract="false" native="false" synchronized="false"
  34367. static="true" final="false" visibility="public"
  34368. deprecated="not deprecated">
  34369. <param name="uri" type="java.net.URI"/>
  34370. <param name="defPort" type="int"/>
  34371. <doc>
  34372. <![CDATA[create the service name for a Delegation token
  34373. @param uri of the service
  34374. @param defPort is used if the uri lacks a port
  34375. @return the token service, or null if no authority
  34376. @see #buildTokenService(InetSocketAddress)]]>
  34377. </doc>
  34378. </method>
  34379. <method name="getAdminAcls" return="org.apache.hadoop.security.authorize.AccessControlList"
  34380. abstract="false" native="false" synchronized="false"
  34381. static="true" final="false" visibility="public"
  34382. deprecated="not deprecated">
  34383. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34384. <param name="configKey" type="java.lang.String"/>
  34385. <doc>
  34386. <![CDATA[Get the ACL object representing the cluster administrators
  34387. The user who starts the daemon is automatically added as an admin
  34388. @param conf
  34389. @param configKey the key that holds the ACL string in its value
  34390. @return AccessControlList instance]]>
  34391. </doc>
  34392. </method>
  34393. <method name="getHostFromPrincipal" return="java.lang.String"
  34394. abstract="false" native="false" synchronized="false"
  34395. static="true" final="false" visibility="public"
  34396. deprecated="not deprecated">
  34397. <param name="principalName" type="java.lang.String"/>
  34398. <doc>
  34399. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  34400. @param principalName principal name of format as described above
  34401. @return host name if the the string conforms to the above format, else null]]>
  34402. </doc>
  34403. </method>
  34404. <field name="LOG" type="org.apache.commons.logging.Log"
  34405. transient="false" volatile="false"
  34406. static="true" final="true" visibility="public"
  34407. deprecated="not deprecated">
  34408. </field>
  34409. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  34410. transient="false" volatile="false"
  34411. static="true" final="true" visibility="public"
  34412. deprecated="not deprecated">
  34413. </field>
  34414. </class>
  34415. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  34416. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  34417. <class name="ShellBasedUnixGroupsMapping" extends="java.lang.Object"
  34418. abstract="false"
  34419. static="false" final="false" visibility="public"
  34420. deprecated="not deprecated">
  34421. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  34422. <constructor name="ShellBasedUnixGroupsMapping"
  34423. static="false" final="false" visibility="public"
  34424. deprecated="not deprecated">
  34425. </constructor>
  34426. <method name="getGroups" return="java.util.List"
  34427. abstract="false" native="false" synchronized="false"
  34428. static="false" final="false" visibility="public"
  34429. deprecated="not deprecated">
  34430. <param name="user" type="java.lang.String"/>
  34431. <exception name="IOException" type="java.io.IOException"/>
  34432. </method>
  34433. <method name="cacheGroupsRefresh"
  34434. abstract="false" native="false" synchronized="false"
  34435. static="false" final="false" visibility="public"
  34436. deprecated="not deprecated">
  34437. <exception name="IOException" type="java.io.IOException"/>
  34438. </method>
  34439. <method name="cacheGroupsAdd"
  34440. abstract="false" native="false" synchronized="false"
  34441. static="false" final="false" visibility="public"
  34442. deprecated="not deprecated">
  34443. <param name="groups" type="java.util.List"/>
  34444. <exception name="IOException" type="java.io.IOException"/>
  34445. </method>
  34446. <doc>
  34447. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  34448. that exec's the <code>groups</code> shell command to fetch the group
  34449. memberships of a given user.]]>
  34450. </doc>
  34451. </class>
  34452. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  34453. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  34454. <class name="ShellBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.ShellBasedUnixGroupsMapping"
  34455. abstract="false"
  34456. static="false" final="false" visibility="public"
  34457. deprecated="not deprecated">
  34458. <constructor name="ShellBasedUnixGroupsNetgroupMapping"
  34459. static="false" final="false" visibility="public"
  34460. deprecated="not deprecated">
  34461. </constructor>
  34462. <method name="getGroups" return="java.util.List"
  34463. abstract="false" native="false" synchronized="false"
  34464. static="false" final="false" visibility="public"
  34465. deprecated="not deprecated">
  34466. <param name="user" type="java.lang.String"/>
  34467. <exception name="IOException" type="java.io.IOException"/>
  34468. </method>
  34469. <method name="cacheGroupsRefresh"
  34470. abstract="false" native="false" synchronized="false"
  34471. static="false" final="false" visibility="public"
  34472. deprecated="not deprecated">
  34473. <exception name="IOException" type="java.io.IOException"/>
  34474. </method>
  34475. <method name="cacheGroupsAdd"
  34476. abstract="false" native="false" synchronized="false"
  34477. static="false" final="false" visibility="public"
  34478. deprecated="not deprecated">
  34479. <param name="groups" type="java.util.List"/>
  34480. <exception name="IOException" type="java.io.IOException"/>
  34481. </method>
  34482. <method name="cacheNetgroup"
  34483. abstract="false" native="false" synchronized="false"
  34484. static="false" final="false" visibility="protected"
  34485. deprecated="not deprecated">
  34486. <param name="group" type="java.lang.String"/>
  34487. <exception name="IOException" type="java.io.IOException"/>
  34488. </method>
  34489. <method name="getNetgroups"
  34490. abstract="false" native="false" synchronized="false"
  34491. static="false" final="false" visibility="protected"
  34492. deprecated="not deprecated">
  34493. <param name="user" type="java.lang.String"/>
  34494. <param name="groups" type="java.util.List"/>
  34495. <exception name="IOException" type="java.io.IOException"/>
  34496. </method>
  34497. <method name="execShellGetUnixGroups" return="java.lang.String"
  34498. abstract="false" native="false" synchronized="false"
  34499. static="false" final="false" visibility="protected"
  34500. deprecated="not deprecated">
  34501. <param name="user" type="java.lang.String"/>
  34502. <exception name="IOException" type="java.io.IOException"/>
  34503. </method>
  34504. <method name="execShellGetUserForNetgroup" return="java.lang.String"
  34505. abstract="false" native="false" synchronized="false"
  34506. static="false" final="false" visibility="protected"
  34507. deprecated="not deprecated">
  34508. <param name="netgroup" type="java.lang.String"/>
  34509. <exception name="IOException" type="java.io.IOException"/>
  34510. </method>
  34511. <field name="netgroupToUsersMapUpdated" type="boolean"
  34512. transient="false" volatile="false"
  34513. static="true" final="false" visibility="protected"
  34514. deprecated="not deprecated">
  34515. </field>
  34516. <field name="netgroupToUsersMap" type="java.util.Map"
  34517. transient="false" volatile="false"
  34518. static="true" final="false" visibility="protected"
  34519. deprecated="not deprecated">
  34520. </field>
  34521. <field name="userToNetgroupsMap" type="java.util.Map"
  34522. transient="false" volatile="false"
  34523. static="true" final="false" visibility="protected"
  34524. deprecated="not deprecated">
  34525. </field>
  34526. <doc>
  34527. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  34528. that exec's the <code>groups</code> shell command to fetch the group
  34529. memberships of a given user.]]>
  34530. </doc>
  34531. </class>
  34532. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  34533. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  34534. <class name="UserGroupInformation" extends="java.lang.Object"
  34535. abstract="false"
  34536. static="false" final="false" visibility="public"
  34537. deprecated="not deprecated">
  34538. <method name="setConfiguration"
  34539. abstract="false" native="false" synchronized="false"
  34540. static="true" final="false" visibility="public"
  34541. deprecated="not deprecated">
  34542. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34543. <doc>
  34544. <![CDATA[Set the static configuration for UGI.
  34545. In particular, set the security authentication mechanism and the
  34546. group look up service.
  34547. @param conf the configuration to use]]>
  34548. </doc>
  34549. </method>
  34550. <method name="isSecurityEnabled" return="boolean"
  34551. abstract="false" native="false" synchronized="false"
  34552. static="true" final="false" visibility="public"
  34553. deprecated="not deprecated">
  34554. <doc>
  34555. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  34556. user identities or is relying on simple authentication
  34557. @return true if UGI is working in a secure environment]]>
  34558. </doc>
  34559. </method>
  34560. <method name="hasKerberosCredentials" return="boolean"
  34561. abstract="false" native="false" synchronized="false"
  34562. static="false" final="false" visibility="public"
  34563. deprecated="not deprecated">
  34564. <doc>
  34565. <![CDATA[checks if logged in using kerberos
  34566. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  34567. </doc>
  34568. </method>
  34569. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  34570. abstract="false" native="false" synchronized="false"
  34571. static="true" final="false" visibility="public"
  34572. deprecated="not deprecated">
  34573. <exception name="IOException" type="java.io.IOException"/>
  34574. <doc>
  34575. <![CDATA[Return the current user, including any doAs in the current stack.
  34576. @return the current user
  34577. @throws IOException if login fails]]>
  34578. </doc>
  34579. </method>
  34580. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  34581. abstract="false" native="false" synchronized="true"
  34582. static="true" final="false" visibility="public"
  34583. deprecated="not deprecated">
  34584. <exception name="IOException" type="java.io.IOException"/>
  34585. <doc>
  34586. <![CDATA[Get the currently logged in user.
  34587. @return the logged in user
  34588. @throws IOException if login fails]]>
  34589. </doc>
  34590. </method>
  34591. <method name="isFromKeytab" return="boolean"
  34592. abstract="false" native="false" synchronized="false"
  34593. static="false" final="false" visibility="public"
  34594. deprecated="not deprecated">
  34595. <doc>
  34596. <![CDATA[Is this user logged in from a keytab file?
  34597. @return true if the credentials are from a keytab file.]]>
  34598. </doc>
  34599. </method>
  34600. <method name="loginUserFromKeytab"
  34601. abstract="false" native="false" synchronized="true"
  34602. static="true" final="false" visibility="public"
  34603. deprecated="not deprecated">
  34604. <param name="user" type="java.lang.String"/>
  34605. <param name="path" type="java.lang.String"/>
  34606. <exception name="IOException" type="java.io.IOException"/>
  34607. <doc>
  34608. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  34609. file and logs them in. They become the currently logged-in user.
  34610. @param user the principal name to load from the keytab
  34611. @param path the path to the keytab file
  34612. @throws IOException if the keytab file can't be read]]>
  34613. </doc>
  34614. </method>
  34615. <method name="reloginFromTicketCache"
  34616. abstract="false" native="false" synchronized="true"
  34617. static="false" final="false" visibility="public"
  34618. deprecated="not deprecated">
  34619. <exception name="IOException" type="java.io.IOException"/>
  34620. <doc>
  34621. <![CDATA[Re-Login a user in from the ticket cache. This
  34622. method assumes that login had happened already.
  34623. The Subject field of this UserGroupInformation object is updated to have
  34624. the new credentials.
  34625. @throws IOException on a failure]]>
  34626. </doc>
  34627. </method>
  34628. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  34629. abstract="false" native="false" synchronized="true"
  34630. static="true" final="false" visibility="public"
  34631. deprecated="not deprecated">
  34632. <param name="user" type="java.lang.String"/>
  34633. <param name="path" type="java.lang.String"/>
  34634. <exception name="IOException" type="java.io.IOException"/>
  34635. <doc>
  34636. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  34637. file and login them in. This new user does not affect the currently
  34638. logged-in user.
  34639. @param user the principal name to load from the keytab
  34640. @param path the path to the keytab file
  34641. @throws IOException if the keytab file can't be read]]>
  34642. </doc>
  34643. </method>
  34644. <method name="checkTGTAndReloginFromKeytab"
  34645. abstract="false" native="false" synchronized="true"
  34646. static="false" final="false" visibility="public"
  34647. deprecated="not deprecated">
  34648. <exception name="IOException" type="java.io.IOException"/>
  34649. <doc>
  34650. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  34651. @throws IOException]]>
  34652. </doc>
  34653. </method>
  34654. <method name="reloginFromKeytab"
  34655. abstract="false" native="false" synchronized="true"
  34656. static="false" final="false" visibility="public"
  34657. deprecated="not deprecated">
  34658. <exception name="IOException" type="java.io.IOException"/>
  34659. <doc>
  34660. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  34661. file and logs them in. They become the currently logged-in user. This
  34662. method assumes that {@link #loginUserFromKeytab(String, String)} had
  34663. happened already.
  34664. The Subject field of this UserGroupInformation object is updated to have
  34665. the new credentials.
  34666. @throws IOException on a failure]]>
  34667. </doc>
  34668. </method>
  34669. <method name="isLoginKeytabBased" return="boolean"
  34670. abstract="false" native="false" synchronized="true"
  34671. static="true" final="false" visibility="public"
  34672. deprecated="not deprecated">
  34673. <exception name="IOException" type="java.io.IOException"/>
  34674. <doc>
  34675. <![CDATA[Did the login happen via keytab
  34676. @return true or false]]>
  34677. </doc>
  34678. </method>
  34679. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  34680. abstract="false" native="false" synchronized="false"
  34681. static="true" final="false" visibility="public"
  34682. deprecated="not deprecated">
  34683. <param name="user" type="java.lang.String"/>
  34684. <doc>
  34685. <![CDATA[Create a user from a login name. It is intended to be used for remote
  34686. users in RPC, since it won't have any credentials.
  34687. @param user the full user principal name, must not be empty or null
  34688. @return the UserGroupInformation for the remote user.]]>
  34689. </doc>
  34690. </method>
  34691. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  34692. abstract="false" native="false" synchronized="false"
  34693. static="true" final="false" visibility="public"
  34694. deprecated="not deprecated">
  34695. <param name="user" type="java.lang.String"/>
  34696. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  34697. <doc>
  34698. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  34699. real user.
  34700. @param user
  34701. @param realUser
  34702. @return proxyUser ugi]]>
  34703. </doc>
  34704. </method>
  34705. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  34706. abstract="false" native="false" synchronized="false"
  34707. static="false" final="false" visibility="public"
  34708. deprecated="not deprecated">
  34709. <doc>
  34710. <![CDATA[get RealUser (vs. EffectiveUser)
  34711. @return realUser running over proxy user]]>
  34712. </doc>
  34713. </method>
  34714. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  34715. abstract="false" native="false" synchronized="false"
  34716. static="true" final="false" visibility="public"
  34717. deprecated="not deprecated">
  34718. <param name="user" type="java.lang.String"/>
  34719. <param name="userGroups" type="java.lang.String[]"/>
  34720. <doc>
  34721. <![CDATA[Create a UGI for testing HDFS and MapReduce
  34722. @param user the full user principal name
  34723. @param userGroups the names of the groups that the user belongs to
  34724. @return a fake user for running unit tests]]>
  34725. </doc>
  34726. </method>
  34727. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  34728. abstract="false" native="false" synchronized="false"
  34729. static="true" final="false" visibility="public"
  34730. deprecated="not deprecated">
  34731. <param name="user" type="java.lang.String"/>
  34732. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  34733. <param name="userGroups" type="java.lang.String[]"/>
  34734. <doc>
  34735. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  34736. @param user
  34737. the full user principal name for effective user
  34738. @param realUser
  34739. UGI of the real user
  34740. @param userGroups
  34741. the names of the groups that the user belongs to
  34742. @return a fake user for running unit tests]]>
  34743. </doc>
  34744. </method>
  34745. <method name="getShortUserName" return="java.lang.String"
  34746. abstract="false" native="false" synchronized="false"
  34747. static="false" final="false" visibility="public"
  34748. deprecated="not deprecated">
  34749. <doc>
  34750. <![CDATA[Get the user's login name.
  34751. @return the user's name up to the first '/' or '@'.]]>
  34752. </doc>
  34753. </method>
  34754. <method name="getUserName" return="java.lang.String"
  34755. abstract="false" native="false" synchronized="false"
  34756. static="false" final="false" visibility="public"
  34757. deprecated="not deprecated">
  34758. <doc>
  34759. <![CDATA[Get the user's full principal name.
  34760. @return the user's full principal name.]]>
  34761. </doc>
  34762. </method>
  34763. <method name="addTokenIdentifier" return="boolean"
  34764. abstract="false" native="false" synchronized="true"
  34765. static="false" final="false" visibility="public"
  34766. deprecated="not deprecated">
  34767. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  34768. <doc>
  34769. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  34770. authenticated by the RPC layer as belonging to the user represented by this
  34771. UGI.
  34772. @param tokenId
  34773. tokenIdentifier to be added
  34774. @return true on successful add of new tokenIdentifier]]>
  34775. </doc>
  34776. </method>
  34777. <method name="getTokenIdentifiers" return="java.util.Set"
  34778. abstract="false" native="false" synchronized="true"
  34779. static="false" final="false" visibility="public"
  34780. deprecated="not deprecated">
  34781. <doc>
  34782. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  34783. @return the set of TokenIdentifiers belonging to this UGI]]>
  34784. </doc>
  34785. </method>
  34786. <method name="addToken" return="boolean"
  34787. abstract="false" native="false" synchronized="true"
  34788. static="false" final="false" visibility="public"
  34789. deprecated="not deprecated">
  34790. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34791. <doc>
  34792. <![CDATA[Add a token to this UGI
  34793. @param token Token to be added
  34794. @return true on successful add of new token]]>
  34795. </doc>
  34796. </method>
  34797. <method name="getTokens" return="java.util.Collection"
  34798. abstract="false" native="false" synchronized="true"
  34799. static="false" final="false" visibility="public"
  34800. deprecated="not deprecated">
  34801. <doc>
  34802. <![CDATA[Obtain the collection of tokens associated with this user.
  34803. @return an unmodifiable collection of tokens associated with user]]>
  34804. </doc>
  34805. </method>
  34806. <method name="getGroupNames" return="java.lang.String[]"
  34807. abstract="false" native="false" synchronized="true"
  34808. static="false" final="false" visibility="public"
  34809. deprecated="not deprecated">
  34810. <doc>
  34811. <![CDATA[Get the group names for this user.
  34812. @return the list of users with the primary group first. If the command
  34813. fails, it returns an empty list.]]>
  34814. </doc>
  34815. </method>
  34816. <method name="toString" return="java.lang.String"
  34817. abstract="false" native="false" synchronized="false"
  34818. static="false" final="false" visibility="public"
  34819. deprecated="not deprecated">
  34820. <doc>
  34821. <![CDATA[Return the username.]]>
  34822. </doc>
  34823. </method>
  34824. <method name="setAuthenticationMethod"
  34825. abstract="false" native="false" synchronized="true"
  34826. static="false" final="false" visibility="public"
  34827. deprecated="not deprecated">
  34828. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  34829. <doc>
  34830. <![CDATA[Sets the authentication method in the subject
  34831. @param authMethod]]>
  34832. </doc>
  34833. </method>
  34834. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34835. abstract="false" native="false" synchronized="true"
  34836. static="false" final="false" visibility="public"
  34837. deprecated="not deprecated">
  34838. <doc>
  34839. <![CDATA[Get the authentication method from the subject
  34840. @return AuthenticationMethod in the subject, null if not present.]]>
  34841. </doc>
  34842. </method>
  34843. <method name="equals" return="boolean"
  34844. abstract="false" native="false" synchronized="false"
  34845. static="false" final="false" visibility="public"
  34846. deprecated="not deprecated">
  34847. <param name="o" type="java.lang.Object"/>
  34848. <doc>
  34849. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  34850. </doc>
  34851. </method>
  34852. <method name="hashCode" return="int"
  34853. abstract="false" native="false" synchronized="false"
  34854. static="false" final="false" visibility="public"
  34855. deprecated="not deprecated">
  34856. <doc>
  34857. <![CDATA[Return the hash of the subject.]]>
  34858. </doc>
  34859. </method>
  34860. <method name="getSubject" return="javax.security.auth.Subject"
  34861. abstract="false" native="false" synchronized="false"
  34862. static="false" final="false" visibility="protected"
  34863. deprecated="not deprecated">
  34864. <doc>
  34865. <![CDATA[Get the underlying subject from this ugi.
  34866. @return the subject that represents this user.]]>
  34867. </doc>
  34868. </method>
  34869. <method name="doAs" return="java.lang.Object"
  34870. abstract="false" native="false" synchronized="false"
  34871. static="false" final="false" visibility="public"
  34872. deprecated="not deprecated">
  34873. <param name="action" type="java.security.PrivilegedAction"/>
  34874. <doc>
  34875. <![CDATA[Run the given action as the user.
  34876. @param <T> the return type of the run method
  34877. @param action the method to execute
  34878. @return the value from the run method]]>
  34879. </doc>
  34880. </method>
  34881. <method name="doAs" return="java.lang.Object"
  34882. abstract="false" native="false" synchronized="false"
  34883. static="false" final="false" visibility="public"
  34884. deprecated="not deprecated">
  34885. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  34886. <exception name="IOException" type="java.io.IOException"/>
  34887. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34888. <doc>
  34889. <![CDATA[Run the given action as the user, potentially throwing an exception.
  34890. @param <T> the return type of the run method
  34891. @param action the method to execute
  34892. @return the value from the run method
  34893. @throws IOException if the action throws an IOException
  34894. @throws Error if the action throws an Error
  34895. @throws RuntimeException if the action throws a RuntimeException
  34896. @throws InterruptedException if the action throws an InterruptedException
  34897. @throws UndeclaredThrowableException if the action throws something else]]>
  34898. </doc>
  34899. </method>
  34900. <method name="main"
  34901. abstract="false" native="false" synchronized="false"
  34902. static="true" final="false" visibility="public"
  34903. deprecated="not deprecated">
  34904. <param name="args" type="java.lang.String[]"/>
  34905. <exception name="Exception" type="java.lang.Exception"/>
  34906. <doc>
  34907. <![CDATA[A test method to print out the current user's UGI.
  34908. @param args if there are two arguments, read the user from the keytab
  34909. and print it out.
  34910. @throws Exception]]>
  34911. </doc>
  34912. </method>
  34913. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  34914. transient="false" volatile="false"
  34915. static="true" final="true" visibility="public"
  34916. deprecated="not deprecated">
  34917. <doc>
  34918. <![CDATA[Environment variable pointing to the token cache file]]>
  34919. </doc>
  34920. </field>
  34921. <doc>
  34922. <![CDATA[User and group information for Hadoop.
  34923. This class wraps around a JAAS Subject and provides methods to determine the
  34924. user's username and groups. It supports both the Windows, Unix and Kerberos
  34925. login modules.]]>
  34926. </doc>
  34927. </class>
  34928. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  34929. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  34930. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  34931. abstract="false"
  34932. static="true" final="true" visibility="public"
  34933. deprecated="not deprecated">
  34934. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  34935. abstract="false" native="false" synchronized="false"
  34936. static="true" final="false" visibility="public"
  34937. deprecated="not deprecated">
  34938. </method>
  34939. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34940. abstract="false" native="false" synchronized="false"
  34941. static="true" final="false" visibility="public"
  34942. deprecated="not deprecated">
  34943. <param name="name" type="java.lang.String"/>
  34944. </method>
  34945. <field name="SIMPLE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34946. transient="false" volatile="false"
  34947. static="true" final="true" visibility="public"
  34948. deprecated="not deprecated">
  34949. </field>
  34950. <field name="KERBEROS" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34951. transient="false" volatile="false"
  34952. static="true" final="true" visibility="public"
  34953. deprecated="not deprecated">
  34954. </field>
  34955. <field name="TOKEN" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34956. transient="false" volatile="false"
  34957. static="true" final="true" visibility="public"
  34958. deprecated="not deprecated">
  34959. </field>
  34960. <field name="CERTIFICATE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34961. transient="false" volatile="false"
  34962. static="true" final="true" visibility="public"
  34963. deprecated="not deprecated">
  34964. </field>
  34965. <field name="KERBEROS_SSL" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34966. transient="false" volatile="false"
  34967. static="true" final="true" visibility="public"
  34968. deprecated="not deprecated">
  34969. </field>
  34970. <field name="PROXY" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34971. transient="false" volatile="false"
  34972. static="true" final="true" visibility="public"
  34973. deprecated="not deprecated">
  34974. </field>
  34975. <doc>
  34976. <![CDATA[existing types of authentications' methods]]>
  34977. </doc>
  34978. </class>
  34979. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  34980. <!-- start class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  34981. <class name="UserGroupInformation.HadoopLoginModule" extends="java.lang.Object"
  34982. abstract="false"
  34983. static="true" final="false" visibility="public"
  34984. deprecated="not deprecated">
  34985. <implements name="javax.security.auth.spi.LoginModule"/>
  34986. <constructor name="UserGroupInformation.HadoopLoginModule"
  34987. static="false" final="false" visibility="public"
  34988. deprecated="not deprecated">
  34989. </constructor>
  34990. <method name="abort" return="boolean"
  34991. abstract="false" native="false" synchronized="false"
  34992. static="false" final="false" visibility="public"
  34993. deprecated="not deprecated">
  34994. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  34995. </method>
  34996. <method name="commit" return="boolean"
  34997. abstract="false" native="false" synchronized="false"
  34998. static="false" final="false" visibility="public"
  34999. deprecated="not deprecated">
  35000. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35001. </method>
  35002. <method name="initialize"
  35003. abstract="false" native="false" synchronized="false"
  35004. static="false" final="false" visibility="public"
  35005. deprecated="not deprecated">
  35006. <param name="subject" type="javax.security.auth.Subject"/>
  35007. <param name="callbackHandler" type="javax.security.auth.callback.CallbackHandler"/>
  35008. <param name="sharedState" type="java.util.Map"/>
  35009. <param name="options" type="java.util.Map"/>
  35010. </method>
  35011. <method name="login" return="boolean"
  35012. abstract="false" native="false" synchronized="false"
  35013. static="false" final="false" visibility="public"
  35014. deprecated="not deprecated">
  35015. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35016. </method>
  35017. <method name="logout" return="boolean"
  35018. abstract="false" native="false" synchronized="false"
  35019. static="false" final="false" visibility="public"
  35020. deprecated="not deprecated">
  35021. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35022. </method>
  35023. <doc>
  35024. <![CDATA[A login module that looks at the Kerberos, Unix, or Windows principal and
  35025. adds the corresponding UserName.]]>
  35026. </doc>
  35027. </class>
  35028. <!-- end class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  35029. </package>
  35030. <package name="org.apache.hadoop.security.authentication.client">
  35031. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  35032. <class name="AuthenticatedURL" extends="java.lang.Object"
  35033. abstract="false"
  35034. static="false" final="false" visibility="public"
  35035. deprecated="not deprecated">
  35036. <constructor name="AuthenticatedURL"
  35037. static="false" final="false" visibility="public"
  35038. deprecated="not deprecated">
  35039. <doc>
  35040. <![CDATA[Creates an {@link AuthenticatedURL}.]]>
  35041. </doc>
  35042. </constructor>
  35043. <constructor name="AuthenticatedURL" type="org.apache.hadoop.security.authentication.client.Authenticator"
  35044. static="false" final="false" visibility="public"
  35045. deprecated="not deprecated">
  35046. <doc>
  35047. <![CDATA[Creates an <code>AuthenticatedURL</code>.
  35048. @param authenticator the {@link Authenticator} instance to use, if <code>null</code> a {@link
  35049. KerberosAuthenticator} is used.]]>
  35050. </doc>
  35051. </constructor>
  35052. <method name="setDefaultAuthenticator"
  35053. abstract="false" native="false" synchronized="false"
  35054. static="true" final="false" visibility="public"
  35055. deprecated="not deprecated">
  35056. <param name="authenticator" type="java.lang.Class"/>
  35057. <doc>
  35058. <![CDATA[Sets the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  35059. is created without specifying an authenticator.
  35060. @param authenticator the authenticator class to use as default.]]>
  35061. </doc>
  35062. </method>
  35063. <method name="getDefaultAuthenticator" return="java.lang.Class"
  35064. abstract="false" native="false" synchronized="false"
  35065. static="true" final="false" visibility="public"
  35066. deprecated="not deprecated">
  35067. <doc>
  35068. <![CDATA[Returns the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  35069. is created without specifying an authenticator.
  35070. @return the authenticator class to use as default.]]>
  35071. </doc>
  35072. </method>
  35073. <method name="openConnection" return="java.net.HttpURLConnection"
  35074. abstract="false" native="false" synchronized="false"
  35075. static="false" final="false" visibility="public"
  35076. deprecated="not deprecated">
  35077. <param name="url" type="java.net.URL"/>
  35078. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35079. <exception name="IOException" type="java.io.IOException"/>
  35080. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35081. <doc>
  35082. <![CDATA[Returns an authenticated {@link HttpURLConnection}.
  35083. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35084. @param token the authentication token being used for the user.
  35085. @return an authenticated {@link HttpURLConnection}.
  35086. @throws IOException if an IO error occurred.
  35087. @throws AuthenticationException if an authentication exception occurred.]]>
  35088. </doc>
  35089. </method>
  35090. <method name="injectToken"
  35091. abstract="false" native="false" synchronized="false"
  35092. static="true" final="false" visibility="public"
  35093. deprecated="not deprecated">
  35094. <param name="conn" type="java.net.HttpURLConnection"/>
  35095. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35096. <doc>
  35097. <![CDATA[Helper method that injects an authentication token to send with a connection.
  35098. @param conn connection to inject the authentication token into.
  35099. @param token authentication token to inject.]]>
  35100. </doc>
  35101. </method>
  35102. <method name="extractToken"
  35103. abstract="false" native="false" synchronized="false"
  35104. static="true" final="false" visibility="public"
  35105. deprecated="not deprecated">
  35106. <param name="conn" type="java.net.HttpURLConnection"/>
  35107. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35108. <exception name="IOException" type="java.io.IOException"/>
  35109. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35110. <doc>
  35111. <![CDATA[Helper method that extracts an authentication token received from a connection.
  35112. <p/>
  35113. This method is used by {@link Authenticator} implementations.
  35114. @param conn connection to extract the authentication token from.
  35115. @param token the authentication token.
  35116. @throws IOException if an IO error occurred.
  35117. @throws AuthenticationException if an authentication exception occurred.]]>
  35118. </doc>
  35119. </method>
  35120. <field name="AUTH_COOKIE" type="java.lang.String"
  35121. transient="false" volatile="false"
  35122. static="true" final="true" visibility="public"
  35123. deprecated="not deprecated">
  35124. <doc>
  35125. <![CDATA[Name of the HTTP cookie used for the authentication token between the client and the server.]]>
  35126. </doc>
  35127. </field>
  35128. <doc>
  35129. <![CDATA[The {@link AuthenticatedURL} class enables the use of the JDK {@link URL} class
  35130. against HTTP endpoints protected with the {@link AuthenticationFilter}.
  35131. <p/>
  35132. The authentication mechanisms supported by default are Hadoop Simple authentication
  35133. (also known as pseudo authentication) and Kerberos SPNEGO authentication.
  35134. <p/>
  35135. Additional authentication mechanisms can be supported via {@link Authenticator} implementations.
  35136. <p/>
  35137. The default {@link Authenticator} is the {@link KerberosAuthenticator} class which supports
  35138. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication.
  35139. <p/>
  35140. <code>AuthenticatedURL</code> instances are not thread-safe.
  35141. <p/>
  35142. The usage pattern of the {@link AuthenticatedURL} is:
  35143. <p/>
  35144. <pre>
  35145. // establishing an initial connection
  35146. URL url = new URL("http://foo:8080/bar");
  35147. AuthenticatedURL.Token token = new AuthenticatedURL.Token();
  35148. AuthenticatedURL aUrl = new AuthenticatedURL();
  35149. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  35150. ....
  35151. // use the 'conn' instance
  35152. ....
  35153. // establishing a follow up connection using a token from the previous connection
  35154. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  35155. ....
  35156. // use the 'conn' instance
  35157. ....
  35158. </pre>]]>
  35159. </doc>
  35160. </class>
  35161. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  35162. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  35163. <class name="AuthenticatedURL.Token" extends="java.lang.Object"
  35164. abstract="false"
  35165. static="true" final="false" visibility="public"
  35166. deprecated="not deprecated">
  35167. <constructor name="AuthenticatedURL.Token"
  35168. static="false" final="false" visibility="public"
  35169. deprecated="not deprecated">
  35170. <doc>
  35171. <![CDATA[Creates a token.]]>
  35172. </doc>
  35173. </constructor>
  35174. <constructor name="AuthenticatedURL.Token" type="java.lang.String"
  35175. static="false" final="false" visibility="public"
  35176. deprecated="not deprecated">
  35177. <doc>
  35178. <![CDATA[Creates a token using an existing string representation of the token.
  35179. @param tokenStr string representation of the tokenStr.]]>
  35180. </doc>
  35181. </constructor>
  35182. <method name="isSet" return="boolean"
  35183. abstract="false" native="false" synchronized="false"
  35184. static="false" final="false" visibility="public"
  35185. deprecated="not deprecated">
  35186. <doc>
  35187. <![CDATA[Returns if a token from the server has been set.
  35188. @return if a token from the server has been set.]]>
  35189. </doc>
  35190. </method>
  35191. <method name="toString" return="java.lang.String"
  35192. abstract="false" native="false" synchronized="false"
  35193. static="false" final="false" visibility="public"
  35194. deprecated="not deprecated">
  35195. <doc>
  35196. <![CDATA[Returns the string representation of the token.
  35197. @return the string representation of the token.]]>
  35198. </doc>
  35199. </method>
  35200. <method name="hashCode" return="int"
  35201. abstract="false" native="false" synchronized="false"
  35202. static="false" final="false" visibility="public"
  35203. deprecated="not deprecated">
  35204. <doc>
  35205. <![CDATA[Return the hashcode for the token.
  35206. @return the hashcode for the token.]]>
  35207. </doc>
  35208. </method>
  35209. <method name="equals" return="boolean"
  35210. abstract="false" native="false" synchronized="false"
  35211. static="false" final="false" visibility="public"
  35212. deprecated="not deprecated">
  35213. <param name="o" type="java.lang.Object"/>
  35214. <doc>
  35215. <![CDATA[Return if two token instances are equal.
  35216. @param o the other token instance.
  35217. @return if this instance and the other instance are equal.]]>
  35218. </doc>
  35219. </method>
  35220. <doc>
  35221. <![CDATA[Client side authentication token.]]>
  35222. </doc>
  35223. </class>
  35224. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  35225. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  35226. <class name="AuthenticationException" extends="java.lang.Exception"
  35227. abstract="false"
  35228. static="false" final="false" visibility="public"
  35229. deprecated="not deprecated">
  35230. <constructor name="AuthenticationException" type="java.lang.Throwable"
  35231. static="false" final="false" visibility="public"
  35232. deprecated="not deprecated">
  35233. <doc>
  35234. <![CDATA[Creates an {@link AuthenticationException}.
  35235. @param cause original exception.]]>
  35236. </doc>
  35237. </constructor>
  35238. <constructor name="AuthenticationException" type="java.lang.String"
  35239. static="false" final="false" visibility="public"
  35240. deprecated="not deprecated">
  35241. <doc>
  35242. <![CDATA[Creates an {@link AuthenticationException}.
  35243. @param msg exception message.]]>
  35244. </doc>
  35245. </constructor>
  35246. <constructor name="AuthenticationException" type="java.lang.String, java.lang.Throwable"
  35247. static="false" final="false" visibility="public"
  35248. deprecated="not deprecated">
  35249. <doc>
  35250. <![CDATA[Creates an {@link AuthenticationException}.
  35251. @param msg exception message.
  35252. @param cause original exception.]]>
  35253. </doc>
  35254. </constructor>
  35255. <doc>
  35256. <![CDATA[Exception thrown when an authentication error occurrs.]]>
  35257. </doc>
  35258. </class>
  35259. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  35260. <!-- start interface org.apache.hadoop.security.authentication.client.Authenticator -->
  35261. <interface name="Authenticator" abstract="true"
  35262. static="false" final="false" visibility="public"
  35263. deprecated="not deprecated">
  35264. <method name="authenticate"
  35265. abstract="false" native="false" synchronized="false"
  35266. static="false" final="false" visibility="public"
  35267. deprecated="not deprecated">
  35268. <param name="url" type="java.net.URL"/>
  35269. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35270. <exception name="IOException" type="java.io.IOException"/>
  35271. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35272. <doc>
  35273. <![CDATA[Authenticates against a URL and returns a {@link AuthenticatedURL.Token} to be
  35274. used by subsequent requests.
  35275. @param url the URl to authenticate against.
  35276. @param token the authentication token being used for the user.
  35277. @throws IOException if an IO error occurred.
  35278. @throws AuthenticationException if an authentication error occurred.]]>
  35279. </doc>
  35280. </method>
  35281. <doc>
  35282. <![CDATA[Interface for client authentication mechanisms.
  35283. <p/>
  35284. Implementations are use-once instances, they don't need to be thread safe.]]>
  35285. </doc>
  35286. </interface>
  35287. <!-- end interface org.apache.hadoop.security.authentication.client.Authenticator -->
  35288. <!-- start class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  35289. <class name="KerberosAuthenticator" extends="java.lang.Object"
  35290. abstract="false"
  35291. static="false" final="false" visibility="public"
  35292. deprecated="not deprecated">
  35293. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  35294. <constructor name="KerberosAuthenticator"
  35295. static="false" final="false" visibility="public"
  35296. deprecated="not deprecated">
  35297. </constructor>
  35298. <method name="authenticate"
  35299. abstract="false" native="false" synchronized="false"
  35300. static="false" final="false" visibility="public"
  35301. deprecated="not deprecated">
  35302. <param name="url" type="java.net.URL"/>
  35303. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35304. <exception name="IOException" type="java.io.IOException"/>
  35305. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35306. <doc>
  35307. <![CDATA[Performs SPNEGO authentication against the specified URL.
  35308. <p/>
  35309. If a token is given it does a NOP and returns the given token.
  35310. <p/>
  35311. If no token is given, it will perform the SPNEGO authentication sequence using an
  35312. HTTP <code>OPTIONS</code> request.
  35313. @param url the URl to authenticate against.
  35314. @param token the authentication token being used for the user.
  35315. @throws IOException if an IO error occurred.
  35316. @throws AuthenticationException if an authentication error occurred.]]>
  35317. </doc>
  35318. </method>
  35319. <method name="getFallBackAuthenticator" return="org.apache.hadoop.security.authentication.client.Authenticator"
  35320. abstract="false" native="false" synchronized="false"
  35321. static="false" final="false" visibility="protected"
  35322. deprecated="not deprecated">
  35323. <doc>
  35324. <![CDATA[If the specified URL does not support SPNEGO authentication, a fallback {@link Authenticator} will be used.
  35325. <p/>
  35326. This implementation returns a {@link PseudoAuthenticator}.
  35327. @return the fallback {@link Authenticator}.]]>
  35328. </doc>
  35329. </method>
  35330. <field name="WWW_AUTHENTICATE" type="java.lang.String"
  35331. transient="false" volatile="false"
  35332. static="true" final="true" visibility="public"
  35333. deprecated="not deprecated">
  35334. <doc>
  35335. <![CDATA[HTTP header used by the SPNEGO server endpoint during an authentication sequence.]]>
  35336. </doc>
  35337. </field>
  35338. <field name="AUTHORIZATION" type="java.lang.String"
  35339. transient="false" volatile="false"
  35340. static="true" final="true" visibility="public"
  35341. deprecated="not deprecated">
  35342. <doc>
  35343. <![CDATA[HTTP header used by the SPNEGO client endpoint during an authentication sequence.]]>
  35344. </doc>
  35345. </field>
  35346. <field name="NEGOTIATE" type="java.lang.String"
  35347. transient="false" volatile="false"
  35348. static="true" final="true" visibility="public"
  35349. deprecated="not deprecated">
  35350. <doc>
  35351. <![CDATA[HTTP header prefix used by the SPNEGO client/server endpoints during an authentication sequence.]]>
  35352. </doc>
  35353. </field>
  35354. <doc>
  35355. <![CDATA[The {@link KerberosAuthenticator} implements the Kerberos SPNEGO authentication sequence.
  35356. <p/>
  35357. It uses the default principal for the Kerberos cache (normally set via kinit).
  35358. <p/>
  35359. It falls back to the {@link PseudoAuthenticator} if the HTTP endpoint does not trigger an SPNEGO authentication
  35360. sequence.]]>
  35361. </doc>
  35362. </class>
  35363. <!-- end class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  35364. <!-- start class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  35365. <class name="PseudoAuthenticator" extends="java.lang.Object"
  35366. abstract="false"
  35367. static="false" final="false" visibility="public"
  35368. deprecated="not deprecated">
  35369. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  35370. <constructor name="PseudoAuthenticator"
  35371. static="false" final="false" visibility="public"
  35372. deprecated="not deprecated">
  35373. </constructor>
  35374. <method name="authenticate"
  35375. abstract="false" native="false" synchronized="false"
  35376. static="false" final="false" visibility="public"
  35377. deprecated="not deprecated">
  35378. <param name="url" type="java.net.URL"/>
  35379. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35380. <exception name="IOException" type="java.io.IOException"/>
  35381. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35382. <doc>
  35383. <![CDATA[Performs simple authentication against the specified URL.
  35384. <p/>
  35385. If a token is given it does a NOP and returns the given token.
  35386. <p/>
  35387. If no token is given, it will perform an HTTP <code>OPTIONS</code> request injecting an additional
  35388. parameter {@link #USER_NAME} in the query string with the value returned by the {@link #getUserName()}
  35389. method.
  35390. <p/>
  35391. If the response is successful it will update the authentication token.
  35392. @param url the URl to authenticate against.
  35393. @param token the authencation token being used for the user.
  35394. @throws IOException if an IO error occurred.
  35395. @throws AuthenticationException if an authentication error occurred.]]>
  35396. </doc>
  35397. </method>
  35398. <method name="getUserName" return="java.lang.String"
  35399. abstract="false" native="false" synchronized="false"
  35400. static="false" final="false" visibility="protected"
  35401. deprecated="not deprecated">
  35402. <doc>
  35403. <![CDATA[Returns the current user name.
  35404. <p/>
  35405. This implementation returns the value of the Java system property 'user.name'
  35406. @return the current user name.]]>
  35407. </doc>
  35408. </method>
  35409. <field name="USER_NAME" type="java.lang.String"
  35410. transient="false" volatile="false"
  35411. static="true" final="true" visibility="public"
  35412. deprecated="not deprecated">
  35413. <doc>
  35414. <![CDATA[Name of the additional parameter that carries the 'user.name' value.]]>
  35415. </doc>
  35416. </field>
  35417. <doc>
  35418. <![CDATA[The {@link PseudoAuthenticator} implementation provides an authentication equivalent to Hadoop's
  35419. Simple authentication, it trusts the value of the 'user.name' Java System property.
  35420. <p/>
  35421. The 'user.name' value is propagated using an additional query string parameter {@link #USER_NAME} ('user.name').]]>
  35422. </doc>
  35423. </class>
  35424. <!-- end class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  35425. </package>
  35426. <package name="org.apache.hadoop.security.authentication.server">
  35427. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  35428. <class name="AuthenticationFilter" extends="java.lang.Object"
  35429. abstract="false"
  35430. static="false" final="false" visibility="public"
  35431. deprecated="not deprecated">
  35432. <implements name="javax.servlet.Filter"/>
  35433. <constructor name="AuthenticationFilter"
  35434. static="false" final="false" visibility="public"
  35435. deprecated="not deprecated">
  35436. </constructor>
  35437. <method name="init"
  35438. abstract="false" native="false" synchronized="false"
  35439. static="false" final="false" visibility="public"
  35440. deprecated="not deprecated">
  35441. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  35442. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35443. <doc>
  35444. <![CDATA[Initializes the authentication filter.
  35445. <p/>
  35446. It instantiates and initializes the specified {@link AuthenticationHandler}.
  35447. <p/>
  35448. @param filterConfig filter configuration.
  35449. @throws ServletException thrown if the filter or the authentication handler could not be initialized properly.]]>
  35450. </doc>
  35451. </method>
  35452. <method name="getAuthenticationHandler" return="org.apache.hadoop.security.authentication.server.AuthenticationHandler"
  35453. abstract="false" native="false" synchronized="false"
  35454. static="false" final="false" visibility="protected"
  35455. deprecated="not deprecated">
  35456. <doc>
  35457. <![CDATA[Returns the authentication handler being used.
  35458. @return the authentication handler being used.]]>
  35459. </doc>
  35460. </method>
  35461. <method name="isRandomSecret" return="boolean"
  35462. abstract="false" native="false" synchronized="false"
  35463. static="false" final="false" visibility="protected"
  35464. deprecated="not deprecated">
  35465. <doc>
  35466. <![CDATA[Returns if a random secret is being used.
  35467. @return if a random secret is being used.]]>
  35468. </doc>
  35469. </method>
  35470. <method name="getValidity" return="long"
  35471. abstract="false" native="false" synchronized="false"
  35472. static="false" final="false" visibility="protected"
  35473. deprecated="not deprecated">
  35474. <doc>
  35475. <![CDATA[Returns the validity time of the generated tokens.
  35476. @return the validity time of the generated tokens, in seconds.]]>
  35477. </doc>
  35478. </method>
  35479. <method name="getCookieDomain" return="java.lang.String"
  35480. abstract="false" native="false" synchronized="false"
  35481. static="false" final="false" visibility="protected"
  35482. deprecated="not deprecated">
  35483. <doc>
  35484. <![CDATA[Returns the cookie domain to use for the HTTP cookie.
  35485. @return the cookie domain to use for the HTTP cookie.]]>
  35486. </doc>
  35487. </method>
  35488. <method name="getCookiePath" return="java.lang.String"
  35489. abstract="false" native="false" synchronized="false"
  35490. static="false" final="false" visibility="protected"
  35491. deprecated="not deprecated">
  35492. <doc>
  35493. <![CDATA[Returns the cookie path to use for the HTTP cookie.
  35494. @return the cookie path to use for the HTTP cookie.]]>
  35495. </doc>
  35496. </method>
  35497. <method name="destroy"
  35498. abstract="false" native="false" synchronized="false"
  35499. static="false" final="false" visibility="public"
  35500. deprecated="not deprecated">
  35501. <doc>
  35502. <![CDATA[Destroys the filter.
  35503. <p/>
  35504. It invokes the {@link AuthenticationHandler#destroy()} method to release any resources it may hold.]]>
  35505. </doc>
  35506. </method>
  35507. <method name="getConfiguration" return="java.util.Properties"
  35508. abstract="false" native="false" synchronized="false"
  35509. static="false" final="false" visibility="protected"
  35510. deprecated="not deprecated">
  35511. <param name="configPrefix" type="java.lang.String"/>
  35512. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  35513. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35514. <doc>
  35515. <![CDATA[Returns the filtered configuration (only properties starting with the specified prefix). The property keys
  35516. are also trimmed from the prefix. The returned {@link Properties} object is used to initialized the
  35517. {@link AuthenticationHandler}.
  35518. <p/>
  35519. This method can be overriden by subclasses to obtain the configuration from other configuration source than
  35520. the web.xml file.
  35521. @param configPrefix configuration prefix to use for extracting configuration properties.
  35522. @param filterConfig filter configuration object
  35523. @return the configuration to be used with the {@link AuthenticationHandler} instance.
  35524. @throws ServletException thrown if the configuration could not be created.]]>
  35525. </doc>
  35526. </method>
  35527. <method name="getRequestURL" return="java.lang.String"
  35528. abstract="false" native="false" synchronized="false"
  35529. static="false" final="false" visibility="protected"
  35530. deprecated="not deprecated">
  35531. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  35532. <doc>
  35533. <![CDATA[Returns the full URL of the request including the query string.
  35534. <p/>
  35535. Used as a convenience method for logging purposes.
  35536. @param request the request object.
  35537. @return the full URL of the request including the query string.]]>
  35538. </doc>
  35539. </method>
  35540. <method name="getToken" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  35541. abstract="false" native="false" synchronized="false"
  35542. static="false" final="false" visibility="protected"
  35543. deprecated="not deprecated">
  35544. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  35545. <exception name="IOException" type="java.io.IOException"/>
  35546. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35547. <doc>
  35548. <![CDATA[Returns the {@link AuthenticationToken} for the request.
  35549. <p/>
  35550. It looks at the received HTTP cookies and extracts the value of the {@link AuthenticatedURL#AUTH_COOKIE}
  35551. if present. It verifies the signature and if correct it creates the {@link AuthenticationToken} and returns
  35552. it.
  35553. <p/>
  35554. If this method returns <code>null</code> the filter will invoke the configured {@link AuthenticationHandler}
  35555. to perform user authentication.
  35556. @param request request object.
  35557. @return the Authentication token if the request is authenticated, <code>null</code> otherwise.
  35558. @throws IOException thrown if an IO error occurred.
  35559. @throws AuthenticationException thrown if the token is invalid or if it has expired.]]>
  35560. </doc>
  35561. </method>
  35562. <method name="doFilter"
  35563. abstract="false" native="false" synchronized="false"
  35564. static="false" final="false" visibility="public"
  35565. deprecated="not deprecated">
  35566. <param name="request" type="javax.servlet.ServletRequest"/>
  35567. <param name="response" type="javax.servlet.ServletResponse"/>
  35568. <param name="filterChain" type="javax.servlet.FilterChain"/>
  35569. <exception name="IOException" type="java.io.IOException"/>
  35570. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35571. <doc>
  35572. <![CDATA[If the request has a valid authentication token it allows the request to continue to the target resource,
  35573. otherwise it triggers an authentication sequence using the configured {@link AuthenticationHandler}.
  35574. @param request the request object.
  35575. @param response the response object.
  35576. @param filterChain the filter chain object.
  35577. @throws IOException thrown if an IO error occurred.
  35578. @throws ServletException thrown if a processing error occurred.]]>
  35579. </doc>
  35580. </method>
  35581. <method name="createCookie" return="javax.servlet.http.Cookie"
  35582. abstract="false" native="false" synchronized="false"
  35583. static="false" final="false" visibility="protected"
  35584. deprecated="not deprecated">
  35585. <param name="token" type="java.lang.String"/>
  35586. <doc>
  35587. <![CDATA[Creates the Hadoop authentiation HTTP cookie.
  35588. <p/>
  35589. It sets the domain and path specified in the configuration.
  35590. @param token authentication token for the cookie.
  35591. @return the HTTP cookie.]]>
  35592. </doc>
  35593. </method>
  35594. <field name="CONFIG_PREFIX" type="java.lang.String"
  35595. transient="false" volatile="false"
  35596. static="true" final="true" visibility="public"
  35597. deprecated="not deprecated">
  35598. <doc>
  35599. <![CDATA[Constant for the property that specifies the configuration prefix.]]>
  35600. </doc>
  35601. </field>
  35602. <field name="AUTH_TYPE" type="java.lang.String"
  35603. transient="false" volatile="false"
  35604. static="true" final="true" visibility="public"
  35605. deprecated="not deprecated">
  35606. <doc>
  35607. <![CDATA[Constant for the property that specifies the authentication handler to use.]]>
  35608. </doc>
  35609. </field>
  35610. <field name="SIGNATURE_SECRET" type="java.lang.String"
  35611. transient="false" volatile="false"
  35612. static="true" final="true" visibility="public"
  35613. deprecated="not deprecated">
  35614. <doc>
  35615. <![CDATA[Constant for the property that specifies the secret to use for signing the HTTP Cookies.]]>
  35616. </doc>
  35617. </field>
  35618. <field name="AUTH_TOKEN_VALIDITY" type="java.lang.String"
  35619. transient="false" volatile="false"
  35620. static="true" final="true" visibility="public"
  35621. deprecated="not deprecated">
  35622. <doc>
  35623. <![CDATA[Constant for the configuration property that indicates the validity of the generated token.]]>
  35624. </doc>
  35625. </field>
  35626. <field name="COOKIE_DOMAIN" type="java.lang.String"
  35627. transient="false" volatile="false"
  35628. static="true" final="true" visibility="public"
  35629. deprecated="not deprecated">
  35630. <doc>
  35631. <![CDATA[Constant for the configuration property that indicates the domain to use in the HTTP cookie.]]>
  35632. </doc>
  35633. </field>
  35634. <field name="COOKIE_PATH" type="java.lang.String"
  35635. transient="false" volatile="false"
  35636. static="true" final="true" visibility="public"
  35637. deprecated="not deprecated">
  35638. <doc>
  35639. <![CDATA[Constant for the configuration property that indicates the path to use in the HTTP cookie.]]>
  35640. </doc>
  35641. </field>
  35642. <doc>
  35643. <![CDATA[The {@link AuthenticationFilter} enables protecting web application resources with different (pluggable)
  35644. authentication mechanisms.
  35645. <p/>
  35646. Out of the box it provides 2 authentication mechanisms: Pseudo and Kerberos SPNEGO.
  35647. <p/>
  35648. Additional authentication mechanisms are supported via the {@link AuthenticationHandler} interface.
  35649. <p/>
  35650. This filter delegates to the configured authentication handler for authentication and once it obtains an
  35651. {@link AuthenticationToken} from it, sets a signed HTTP cookie with the token. For client requests
  35652. that provide the signed HTTP cookie, it verifies the validity of the cookie, extracts the user information
  35653. and lets the request proceed to the target resource.
  35654. <p/>
  35655. The supported configuration properties are:
  35656. <ul>
  35657. <li>config.prefix: indicates the prefix to be used by all other configuration properties, the default value
  35658. is no prefix. See below for details on how/why this prefix is used.</li>
  35659. <li>[#PREFIX#.]type: simple|kerberos|#CLASS#, 'simple' is short for the
  35660. {@link PseudoAuthenticationHandler}, 'kerberos' is short for {@link KerberosAuthenticationHandler}, otherwise
  35661. the full class name of the {@link AuthenticationHandler} must be specified.</li>
  35662. <li>[#PREFIX#.]signature.secret: the secret used to sign the HTTP cookie value. The default value is a random
  35663. value. Unless multiple webapp instances need to share the secret the random value is adequate.</li>
  35664. <li>[#PREFIX#.]token.validity: time -in seconds- that the generated token is valid before a
  35665. new authentication is triggered, default value is <code>3600</code> seconds.</li>
  35666. <li>[#PREFIX#.]cookie.domain: domain to use for the HTTP cookie that stores the authentication token.</li>
  35667. <li>[#PREFIX#.]cookie.path: path to use for the HTTP cookie that stores the authentication token.</li>
  35668. </ul>
  35669. <p/>
  35670. The rest of the configuration properties are specific to the {@link AuthenticationHandler} implementation and the
  35671. {@link AuthenticationFilter} will take all the properties that start with the prefix #PREFIX#, it will remove
  35672. the prefix from it and it will pass them to the the authentication handler for initialization. Properties that do
  35673. not start with the prefix will not be passed to the authentication handler initialization.]]>
  35674. </doc>
  35675. </class>
  35676. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  35677. <!-- start interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  35678. <interface name="AuthenticationHandler" abstract="true"
  35679. static="false" final="false" visibility="public"
  35680. deprecated="not deprecated">
  35681. <method name="getType" return="java.lang.String"
  35682. abstract="false" native="false" synchronized="false"
  35683. static="false" final="false" visibility="public"
  35684. deprecated="not deprecated">
  35685. <doc>
  35686. <![CDATA[Returns the authentication type of the authentication handler.
  35687. <p/>
  35688. This should be a name that uniquely identifies the authentication type.
  35689. For example 'simple' or 'kerberos'.
  35690. @return the authentication type of the authentication handler.]]>
  35691. </doc>
  35692. </method>
  35693. <method name="init"
  35694. abstract="false" native="false" synchronized="false"
  35695. static="false" final="false" visibility="public"
  35696. deprecated="not deprecated">
  35697. <param name="config" type="java.util.Properties"/>
  35698. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35699. <doc>
  35700. <![CDATA[Initializes the authentication handler instance.
  35701. <p/>
  35702. This method is invoked by the {@link AuthenticationFilter#init} method.
  35703. @param config configuration properties to initialize the handler.
  35704. @throws ServletException thrown if the handler could not be initialized.]]>
  35705. </doc>
  35706. </method>
  35707. <method name="destroy"
  35708. abstract="false" native="false" synchronized="false"
  35709. static="false" final="false" visibility="public"
  35710. deprecated="not deprecated">
  35711. <doc>
  35712. <![CDATA[Destroys the authentication handler instance.
  35713. <p/>
  35714. This method is invoked by the {@link AuthenticationFilter#destroy} method.]]>
  35715. </doc>
  35716. </method>
  35717. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  35718. abstract="false" native="false" synchronized="false"
  35719. static="false" final="false" visibility="public"
  35720. deprecated="not deprecated">
  35721. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  35722. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  35723. <exception name="IOException" type="java.io.IOException"/>
  35724. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35725. <doc>
  35726. <![CDATA[Performs an authentication step for the given HTTP client request.
  35727. <p/>
  35728. This method is invoked by the {@link AuthenticationFilter} only if the HTTP client request is
  35729. not yet authenticated.
  35730. <p/>
  35731. Depending upon the authentication mechanism being implemented, a particular HTTP client may
  35732. end up making a sequence of invocations before authentication is successfully established (this is
  35733. the case of Kerberos SPNEGO).
  35734. <p/>
  35735. This method must return an {@link AuthenticationToken} only if the the HTTP client request has
  35736. been successfully and fully authenticated.
  35737. <p/>
  35738. If the HTTP client request has not been completely authenticated, this method must take over
  35739. the corresponding HTTP response and it must return <code>null</code>.
  35740. @param request the HTTP client request.
  35741. @param response the HTTP client response.
  35742. @return an {@link AuthenticationToken} if the HTTP client request has been authenticated,
  35743. <code>null</code> otherwise (in this case it must take care of the response).
  35744. @throws IOException thrown if an IO error occurred.
  35745. @throws AuthenticationException thrown if an Authentication error occurred.]]>
  35746. </doc>
  35747. </method>
  35748. <doc>
  35749. <![CDATA[Interface for server authentication mechanisms.
  35750. <p/>
  35751. The {@link AuthenticationFilter} manages the lifecycle of the authentication handler.
  35752. <p/>
  35753. Implementations must be thread-safe as one instance is initialized and used for all requests.]]>
  35754. </doc>
  35755. </interface>
  35756. <!-- end interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  35757. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  35758. <class name="AuthenticationToken" extends="java.lang.Object"
  35759. abstract="false"
  35760. static="false" final="false" visibility="public"
  35761. deprecated="not deprecated">
  35762. <implements name="java.security.Principal"/>
  35763. <constructor name="AuthenticationToken" type="java.lang.String, java.lang.String, java.lang.String"
  35764. static="false" final="false" visibility="public"
  35765. deprecated="not deprecated">
  35766. <doc>
  35767. <![CDATA[Creates an authentication token.
  35768. @param userName user name.
  35769. @param principal principal (commonly matches the user name, with Kerberos is the full/long principal
  35770. name while the userName is the short name).
  35771. @param type the authentication mechanism name.
  35772. (<code>System.currentTimeMillis() + validityPeriod</code>).]]>
  35773. </doc>
  35774. </constructor>
  35775. <method name="setExpires"
  35776. abstract="false" native="false" synchronized="false"
  35777. static="false" final="false" visibility="public"
  35778. deprecated="not deprecated">
  35779. <param name="expires" type="long"/>
  35780. <doc>
  35781. <![CDATA[Sets the expiration of the token.
  35782. @param expires expiration time of the token in milliseconds since the epoch.]]>
  35783. </doc>
  35784. </method>
  35785. <method name="getUserName" return="java.lang.String"
  35786. abstract="false" native="false" synchronized="false"
  35787. static="false" final="false" visibility="public"
  35788. deprecated="not deprecated">
  35789. <doc>
  35790. <![CDATA[Returns the user name.
  35791. @return the user name.]]>
  35792. </doc>
  35793. </method>
  35794. <method name="getName" return="java.lang.String"
  35795. abstract="false" native="false" synchronized="false"
  35796. static="false" final="false" visibility="public"
  35797. deprecated="not deprecated">
  35798. <doc>
  35799. <![CDATA[Returns the principal name (this method name comes from the JDK {@link Principal} interface).
  35800. @return the principal name.]]>
  35801. </doc>
  35802. </method>
  35803. <method name="getType" return="java.lang.String"
  35804. abstract="false" native="false" synchronized="false"
  35805. static="false" final="false" visibility="public"
  35806. deprecated="not deprecated">
  35807. <doc>
  35808. <![CDATA[Returns the authentication mechanism of the token.
  35809. @return the authentication mechanism of the token.]]>
  35810. </doc>
  35811. </method>
  35812. <method name="getExpires" return="long"
  35813. abstract="false" native="false" synchronized="false"
  35814. static="false" final="false" visibility="public"
  35815. deprecated="not deprecated">
  35816. <doc>
  35817. <![CDATA[Returns the expiration time of the token.
  35818. @return the expiration time of the token, in milliseconds since Epoc.]]>
  35819. </doc>
  35820. </method>
  35821. <method name="isExpired" return="boolean"
  35822. abstract="false" native="false" synchronized="false"
  35823. static="false" final="false" visibility="public"
  35824. deprecated="not deprecated">
  35825. <doc>
  35826. <![CDATA[Returns if the token has expired.
  35827. @return if the token has expired.]]>
  35828. </doc>
  35829. </method>
  35830. <method name="toString" return="java.lang.String"
  35831. abstract="false" native="false" synchronized="false"
  35832. static="false" final="false" visibility="public"
  35833. deprecated="not deprecated">
  35834. <doc>
  35835. <![CDATA[Returns the string representation of the token.
  35836. <p/>
  35837. This string representation is parseable by the {@link #parse} method.
  35838. @return the string representation of the token.]]>
  35839. </doc>
  35840. </method>
  35841. <method name="parse" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  35842. abstract="false" native="false" synchronized="false"
  35843. static="true" final="false" visibility="public"
  35844. deprecated="not deprecated">
  35845. <param name="tokenStr" type="java.lang.String"/>
  35846. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35847. <doc>
  35848. <![CDATA[Parses a string into an authentication token.
  35849. @param tokenStr string representation of a token.
  35850. @return the parsed authentication token.
  35851. @throws AuthenticationException thrown if the string representation could not be parsed into
  35852. an authentication token.]]>
  35853. </doc>
  35854. </method>
  35855. <field name="ANONYMOUS" type="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  35856. transient="false" volatile="false"
  35857. static="true" final="true" visibility="public"
  35858. deprecated="not deprecated">
  35859. <doc>
  35860. <![CDATA[Constant that identifies an anonymous request.]]>
  35861. </doc>
  35862. </field>
  35863. <doc>
  35864. <![CDATA[The {@link AuthenticationToken} contains information about an authenticated HTTP client and doubles
  35865. as the {@link Principal} to be returned by authenticated {@link HttpServletRequest}s
  35866. <p/>
  35867. The token can be serialized/deserialized to and from a string as it is sent and received in HTTP client
  35868. responses and requests as a HTTP cookie (this is done by the {@link AuthenticationFilter}).]]>
  35869. </doc>
  35870. </class>
  35871. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  35872. <!-- start class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  35873. <class name="KerberosAuthenticationHandler" extends="java.lang.Object"
  35874. abstract="false"
  35875. static="false" final="false" visibility="public"
  35876. deprecated="not deprecated">
  35877. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  35878. <constructor name="KerberosAuthenticationHandler"
  35879. static="false" final="false" visibility="public"
  35880. deprecated="not deprecated">
  35881. </constructor>
  35882. <method name="init"
  35883. abstract="false" native="false" synchronized="false"
  35884. static="false" final="false" visibility="public"
  35885. deprecated="not deprecated">
  35886. <param name="config" type="java.util.Properties"/>
  35887. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35888. <doc>
  35889. <![CDATA[Initializes the authentication handler instance.
  35890. <p/>
  35891. It creates a Kerberos context using the principal and keytab specified in the configuration.
  35892. <p/>
  35893. This method is invoked by the {@link AuthenticationFilter#init} method.
  35894. @param config configuration properties to initialize the handler.
  35895. @throws ServletException thrown if the handler could not be initialized.]]>
  35896. </doc>
  35897. </method>
  35898. <method name="destroy"
  35899. abstract="false" native="false" synchronized="false"
  35900. static="false" final="false" visibility="public"
  35901. deprecated="not deprecated">
  35902. <doc>
  35903. <![CDATA[Releases any resources initialized by the authentication handler.
  35904. <p/>
  35905. It destroys the Kerberos context.]]>
  35906. </doc>
  35907. </method>
  35908. <method name="getType" return="java.lang.String"
  35909. abstract="false" native="false" synchronized="false"
  35910. static="false" final="false" visibility="public"
  35911. deprecated="not deprecated">
  35912. <doc>
  35913. <![CDATA[Returns the authentication type of the authentication handler, 'kerberos'.
  35914. <p/>
  35915. @return the authentication type of the authentication handler, 'kerberos'.]]>
  35916. </doc>
  35917. </method>
  35918. <method name="getPrincipal" return="java.lang.String"
  35919. abstract="false" native="false" synchronized="false"
  35920. static="false" final="false" visibility="protected"
  35921. deprecated="not deprecated">
  35922. <doc>
  35923. <![CDATA[Returns the Kerberos principal used by the authentication handler.
  35924. @return the Kerberos principal used by the authentication handler.]]>
  35925. </doc>
  35926. </method>
  35927. <method name="getKeytab" return="java.lang.String"
  35928. abstract="false" native="false" synchronized="false"
  35929. static="false" final="false" visibility="protected"
  35930. deprecated="not deprecated">
  35931. <doc>
  35932. <![CDATA[Returns the keytab used by the authentication handler.
  35933. @return the keytab used by the authentication handler.]]>
  35934. </doc>
  35935. </method>
  35936. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  35937. abstract="false" native="false" synchronized="false"
  35938. static="false" final="false" visibility="public"
  35939. deprecated="not deprecated">
  35940. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  35941. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  35942. <exception name="IOException" type="java.io.IOException"/>
  35943. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35944. <doc>
  35945. <![CDATA[It enforces the the Kerberos SPNEGO authentication sequence returning an {@link AuthenticationToken} only
  35946. after the Kerberos SPNEGO sequence has completed successfully.
  35947. <p/>
  35948. @param request the HTTP client request.
  35949. @param response the HTTP client response.
  35950. @return an authentication token if the Kerberos SPNEGO sequence is complete and valid,
  35951. <code>null</code> if it is in progress (in this case the handler handles the response to the client).
  35952. @throws IOException thrown if an IO error occurred.
  35953. @throws AuthenticationException thrown if Kerberos SPNEGO sequence failed.]]>
  35954. </doc>
  35955. </method>
  35956. <field name="TYPE" type="java.lang.String"
  35957. transient="false" volatile="false"
  35958. static="true" final="true" visibility="public"
  35959. deprecated="not deprecated">
  35960. <doc>
  35961. <![CDATA[Constant that identifies the authentication mechanism.]]>
  35962. </doc>
  35963. </field>
  35964. <field name="PRINCIPAL" type="java.lang.String"
  35965. transient="false" volatile="false"
  35966. static="true" final="true" visibility="public"
  35967. deprecated="not deprecated">
  35968. <doc>
  35969. <![CDATA[Constant for the configuration property that indicates the kerberos principal.]]>
  35970. </doc>
  35971. </field>
  35972. <field name="KEYTAB" type="java.lang.String"
  35973. transient="false" volatile="false"
  35974. static="true" final="true" visibility="public"
  35975. deprecated="not deprecated">
  35976. <doc>
  35977. <![CDATA[Constant for the configuration property that indicates the keytab file path.]]>
  35978. </doc>
  35979. </field>
  35980. <field name="NAME_RULES" type="java.lang.String"
  35981. transient="false" volatile="false"
  35982. static="true" final="true" visibility="public"
  35983. deprecated="not deprecated">
  35984. <doc>
  35985. <![CDATA[Constant for the configuration property that indicates the Kerberos name
  35986. rules for the Kerberos principals.]]>
  35987. </doc>
  35988. </field>
  35989. <doc>
  35990. <![CDATA[The {@link KerberosAuthenticationHandler} implements the Kerberos SPNEGO authentication mechanism for HTTP.
  35991. <p/>
  35992. The supported configuration properties are:
  35993. <ul>
  35994. <li>kerberos.principal: the Kerberos principal to used by the server. As stated by the Kerberos SPNEGO
  35995. specification, it should be <code>HTTP/${HOSTNAME}@{REALM}</code>. The realm can be omitted from the
  35996. principal as the JDK GSS libraries will use the realm name of the configured default realm.
  35997. It does not have a default value.</li>
  35998. <li>kerberos.keytab: the keytab file containing the credentials for the Kerberos principal.
  35999. It does not have a default value.</li>
  36000. </ul>]]>
  36001. </doc>
  36002. </class>
  36003. <!-- end class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  36004. <!-- start class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  36005. <class name="PseudoAuthenticationHandler" extends="java.lang.Object"
  36006. abstract="false"
  36007. static="false" final="false" visibility="public"
  36008. deprecated="not deprecated">
  36009. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  36010. <constructor name="PseudoAuthenticationHandler"
  36011. static="false" final="false" visibility="public"
  36012. deprecated="not deprecated">
  36013. </constructor>
  36014. <method name="init"
  36015. abstract="false" native="false" synchronized="false"
  36016. static="false" final="false" visibility="public"
  36017. deprecated="not deprecated">
  36018. <param name="config" type="java.util.Properties"/>
  36019. <exception name="ServletException" type="javax.servlet.ServletException"/>
  36020. <doc>
  36021. <![CDATA[Initializes the authentication handler instance.
  36022. <p/>
  36023. This method is invoked by the {@link AuthenticationFilter#init} method.
  36024. @param config configuration properties to initialize the handler.
  36025. @throws ServletException thrown if the handler could not be initialized.]]>
  36026. </doc>
  36027. </method>
  36028. <method name="getAcceptAnonymous" return="boolean"
  36029. abstract="false" native="false" synchronized="false"
  36030. static="false" final="false" visibility="protected"
  36031. deprecated="not deprecated">
  36032. <doc>
  36033. <![CDATA[Returns if the handler is configured to support anonymous users.
  36034. @return if the handler is configured to support anonymous users.]]>
  36035. </doc>
  36036. </method>
  36037. <method name="destroy"
  36038. abstract="false" native="false" synchronized="false"
  36039. static="false" final="false" visibility="public"
  36040. deprecated="not deprecated">
  36041. <doc>
  36042. <![CDATA[Releases any resources initialized by the authentication handler.
  36043. <p/>
  36044. This implementation does a NOP.]]>
  36045. </doc>
  36046. </method>
  36047. <method name="getType" return="java.lang.String"
  36048. abstract="false" native="false" synchronized="false"
  36049. static="false" final="false" visibility="public"
  36050. deprecated="not deprecated">
  36051. <doc>
  36052. <![CDATA[Returns the authentication type of the authentication handler, 'simple'.
  36053. <p/>
  36054. @return the authentication type of the authentication handler, 'simple'.]]>
  36055. </doc>
  36056. </method>
  36057. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36058. abstract="false" native="false" synchronized="false"
  36059. static="false" final="false" visibility="public"
  36060. deprecated="not deprecated">
  36061. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  36062. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  36063. <exception name="IOException" type="java.io.IOException"/>
  36064. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36065. <doc>
  36066. <![CDATA[Authenticates an HTTP client request.
  36067. <p/>
  36068. It extracts the {@link PseudoAuthenticator#USER_NAME} parameter from the query string and creates
  36069. an {@link AuthenticationToken} with it.
  36070. <p/>
  36071. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  36072. the handler is configured to allow anonymous users it returns the {@link AuthenticationToken#ANONYMOUS}
  36073. token.
  36074. <p/>
  36075. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  36076. the handler is configured to disallow anonymous users it throws an {@link AuthenticationException}.
  36077. @param request the HTTP client request.
  36078. @param response the HTTP client response.
  36079. @return an authentication token if the HTTP client request is accepted and credentials are valid.
  36080. @throws IOException thrown if an IO error occurred.
  36081. @throws AuthenticationException thrown if HTTP client request was not accepted as an authentication request.]]>
  36082. </doc>
  36083. </method>
  36084. <field name="TYPE" type="java.lang.String"
  36085. transient="false" volatile="false"
  36086. static="true" final="true" visibility="public"
  36087. deprecated="not deprecated">
  36088. <doc>
  36089. <![CDATA[Constant that identifies the authentication mechanism.]]>
  36090. </doc>
  36091. </field>
  36092. <field name="ANONYMOUS_ALLOWED" type="java.lang.String"
  36093. transient="false" volatile="false"
  36094. static="true" final="true" visibility="public"
  36095. deprecated="not deprecated">
  36096. <doc>
  36097. <![CDATA[Constant for the configuration property that indicates if anonymous users are allowed.]]>
  36098. </doc>
  36099. </field>
  36100. <doc>
  36101. <![CDATA[The <code>PseudoAuthenticationHandler</code> provides a pseudo authentication mechanism that accepts
  36102. the user name specified as a query string parameter.
  36103. <p/>
  36104. This mimics the model of Hadoop Simple authentication which trust the 'user.name' property provided in
  36105. the configuration object.
  36106. <p/>
  36107. This handler can be configured to support anonymous users.
  36108. <p/>
  36109. The only supported configuration property is:
  36110. <ul>
  36111. <li>simple.anonymous.allowed: <code>true|false</code>, default value is <code>false</code></li>
  36112. </ul>]]>
  36113. </doc>
  36114. </class>
  36115. <!-- end class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  36116. </package>
  36117. <package name="org.apache.hadoop.security.authentication.util">
  36118. <!-- start class org.apache.hadoop.security.authentication.util.Signer -->
  36119. <class name="Signer" extends="java.lang.Object"
  36120. abstract="false"
  36121. static="false" final="false" visibility="public"
  36122. deprecated="not deprecated">
  36123. <constructor name="Signer" type="byte[]"
  36124. static="false" final="false" visibility="public"
  36125. deprecated="not deprecated">
  36126. <doc>
  36127. <![CDATA[Creates a Signer instance using the specified secret.
  36128. @param secret secret to use for creating the digest.]]>
  36129. </doc>
  36130. </constructor>
  36131. <method name="sign" return="java.lang.String"
  36132. abstract="false" native="false" synchronized="false"
  36133. static="false" final="false" visibility="public"
  36134. deprecated="not deprecated">
  36135. <param name="str" type="java.lang.String"/>
  36136. <doc>
  36137. <![CDATA[Returns a signed string.
  36138. <p/>
  36139. The signature '&s=SIGNATURE' is appended at the end of the string.
  36140. @param str string to sign.
  36141. @return the signed string.]]>
  36142. </doc>
  36143. </method>
  36144. <method name="verifyAndExtract" return="java.lang.String"
  36145. abstract="false" native="false" synchronized="false"
  36146. static="false" final="false" visibility="public"
  36147. deprecated="not deprecated">
  36148. <param name="signedStr" type="java.lang.String"/>
  36149. <exception name="SignerException" type="org.apache.hadoop.security.authentication.util.SignerException"/>
  36150. <doc>
  36151. <![CDATA[Verifies a signed string and extracts the original string.
  36152. @param signedStr the signed string to verify and extract.
  36153. @return the extracted original string.
  36154. @throws SignerException thrown if the given string is not a signed string or if the signature is invalid.]]>
  36155. </doc>
  36156. </method>
  36157. <method name="computeSignature" return="java.lang.String"
  36158. abstract="false" native="false" synchronized="false"
  36159. static="false" final="false" visibility="protected"
  36160. deprecated="not deprecated">
  36161. <param name="str" type="java.lang.String"/>
  36162. <doc>
  36163. <![CDATA[Returns then signature of a string.
  36164. @param str string to sign.
  36165. @return the signature for the string.]]>
  36166. </doc>
  36167. </method>
  36168. <doc>
  36169. <![CDATA[Signs strings and verifies signed strings using a SHA digest.]]>
  36170. </doc>
  36171. </class>
  36172. <!-- end class org.apache.hadoop.security.authentication.util.Signer -->
  36173. <!-- start class org.apache.hadoop.security.authentication.util.SignerException -->
  36174. <class name="SignerException" extends="java.lang.Exception"
  36175. abstract="false"
  36176. static="false" final="false" visibility="public"
  36177. deprecated="not deprecated">
  36178. <constructor name="SignerException" type="java.lang.String"
  36179. static="false" final="false" visibility="public"
  36180. deprecated="not deprecated">
  36181. <doc>
  36182. <![CDATA[Creates an exception instance.
  36183. @param msg message for the exception.]]>
  36184. </doc>
  36185. </constructor>
  36186. <doc>
  36187. <![CDATA[Exception thrown by {@link Signer} when a string signature is invalid.]]>
  36188. </doc>
  36189. </class>
  36190. <!-- end class org.apache.hadoop.security.authentication.util.SignerException -->
  36191. </package>
  36192. <package name="org.apache.hadoop.security.authorize">
  36193. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  36194. <class name="AccessControlList" extends="java.lang.Object"
  36195. abstract="false"
  36196. static="false" final="false" visibility="public"
  36197. deprecated="not deprecated">
  36198. <implements name="org.apache.hadoop.io.Writable"/>
  36199. <constructor name="AccessControlList"
  36200. static="false" final="false" visibility="public"
  36201. deprecated="not deprecated">
  36202. <doc>
  36203. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  36204. </doc>
  36205. </constructor>
  36206. <constructor name="AccessControlList" type="java.lang.String"
  36207. static="false" final="false" visibility="public"
  36208. deprecated="not deprecated">
  36209. <doc>
  36210. <![CDATA[Construct a new ACL from a String representation of the same.
  36211. The String is a a comma separated list of users and groups.
  36212. The user list comes first and is separated by a space followed
  36213. by the group list. For e.g. "user1,user2 group1,group2"
  36214. @param aclString String representation of the ACL]]>
  36215. </doc>
  36216. </constructor>
  36217. <method name="isAllAllowed" return="boolean"
  36218. abstract="false" native="false" synchronized="false"
  36219. static="false" final="false" visibility="public"
  36220. deprecated="not deprecated">
  36221. </method>
  36222. <method name="addUser"
  36223. abstract="false" native="false" synchronized="false"
  36224. static="false" final="false" visibility="public"
  36225. deprecated="not deprecated">
  36226. <param name="user" type="java.lang.String"/>
  36227. </method>
  36228. <method name="isUserAllowed" return="boolean"
  36229. abstract="false" native="false" synchronized="false"
  36230. static="false" final="false" visibility="public"
  36231. deprecated="not deprecated">
  36232. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  36233. </method>
  36234. <method name="toString" return="java.lang.String"
  36235. abstract="false" native="false" synchronized="false"
  36236. static="false" final="false" visibility="public"
  36237. deprecated="not deprecated">
  36238. </method>
  36239. <method name="write"
  36240. abstract="false" native="false" synchronized="false"
  36241. static="false" final="false" visibility="public"
  36242. deprecated="not deprecated">
  36243. <param name="out" type="java.io.DataOutput"/>
  36244. <exception name="IOException" type="java.io.IOException"/>
  36245. </method>
  36246. <method name="readFields"
  36247. abstract="false" native="false" synchronized="false"
  36248. static="false" final="false" visibility="public"
  36249. deprecated="not deprecated">
  36250. <param name="in" type="java.io.DataInput"/>
  36251. <exception name="IOException" type="java.io.IOException"/>
  36252. </method>
  36253. <method name="getACLString" return="java.lang.String"
  36254. abstract="false" native="false" synchronized="false"
  36255. static="false" final="false" visibility="public"
  36256. deprecated="not deprecated">
  36257. <doc>
  36258. <![CDATA[Returns the String representation of this ACL. Unlike toString() method's
  36259. return value, this String can be directly given to the constructor of
  36260. AccessControlList to build AccessControlList object.
  36261. This is the method used by the serialization method write().]]>
  36262. </doc>
  36263. </method>
  36264. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  36265. transient="false" volatile="false"
  36266. static="true" final="true" visibility="public"
  36267. deprecated="not deprecated">
  36268. </field>
  36269. <doc>
  36270. <![CDATA[Class representing a configured access control list.]]>
  36271. </doc>
  36272. </class>
  36273. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  36274. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  36275. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  36276. abstract="false"
  36277. static="false" final="false" visibility="public"
  36278. deprecated="not deprecated">
  36279. <constructor name="AuthorizationException"
  36280. static="false" final="false" visibility="public"
  36281. deprecated="not deprecated">
  36282. </constructor>
  36283. <constructor name="AuthorizationException" type="java.lang.String"
  36284. static="false" final="false" visibility="public"
  36285. deprecated="not deprecated">
  36286. </constructor>
  36287. <constructor name="AuthorizationException" type="java.lang.Throwable"
  36288. static="false" final="false" visibility="public"
  36289. deprecated="not deprecated">
  36290. <doc>
  36291. <![CDATA[Constructs a new exception with the specified cause and a detail
  36292. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  36293. typically contains the class and detail message of <tt>cause</tt>).
  36294. @param cause the cause (which is saved for later retrieval by the
  36295. {@link #getCause()} method). (A <tt>null</tt> value is
  36296. permitted, and indicates that the cause is nonexistent or
  36297. unknown.)]]>
  36298. </doc>
  36299. </constructor>
  36300. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  36301. abstract="false" native="false" synchronized="false"
  36302. static="false" final="false" visibility="public"
  36303. deprecated="not deprecated">
  36304. </method>
  36305. <method name="printStackTrace"
  36306. abstract="false" native="false" synchronized="false"
  36307. static="false" final="false" visibility="public"
  36308. deprecated="not deprecated">
  36309. </method>
  36310. <method name="printStackTrace"
  36311. abstract="false" native="false" synchronized="false"
  36312. static="false" final="false" visibility="public"
  36313. deprecated="not deprecated">
  36314. <param name="s" type="java.io.PrintStream"/>
  36315. </method>
  36316. <method name="printStackTrace"
  36317. abstract="false" native="false" synchronized="false"
  36318. static="false" final="false" visibility="public"
  36319. deprecated="not deprecated">
  36320. <param name="s" type="java.io.PrintWriter"/>
  36321. </method>
  36322. <doc>
  36323. <![CDATA[An exception class for authorization-related issues.
  36324. This class <em>does not</em> provide the stack trace for security purposes.]]>
  36325. </doc>
  36326. </class>
  36327. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  36328. <!-- start class org.apache.hadoop.security.authorize.PolicyProvider -->
  36329. <class name="PolicyProvider" extends="java.lang.Object"
  36330. abstract="true"
  36331. static="false" final="false" visibility="public"
  36332. deprecated="not deprecated">
  36333. <constructor name="PolicyProvider"
  36334. static="false" final="false" visibility="public"
  36335. deprecated="not deprecated">
  36336. </constructor>
  36337. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  36338. abstract="true" native="false" synchronized="false"
  36339. static="false" final="false" visibility="public"
  36340. deprecated="not deprecated">
  36341. <doc>
  36342. <![CDATA[Get the {@link Service} definitions from the {@link PolicyProvider}.
  36343. @return the {@link Service} definitions]]>
  36344. </doc>
  36345. </method>
  36346. <field name="POLICY_PROVIDER_CONFIG" type="java.lang.String"
  36347. transient="false" volatile="false"
  36348. static="true" final="true" visibility="public"
  36349. deprecated="not deprecated">
  36350. <doc>
  36351. <![CDATA[Configuration key for the {@link PolicyProvider} implementation.]]>
  36352. </doc>
  36353. </field>
  36354. <field name="DEFAULT_POLICY_PROVIDER" type="org.apache.hadoop.security.authorize.PolicyProvider"
  36355. transient="false" volatile="false"
  36356. static="true" final="true" visibility="public"
  36357. deprecated="not deprecated">
  36358. <doc>
  36359. <![CDATA[A default {@link PolicyProvider} without any defined services.]]>
  36360. </doc>
  36361. </field>
  36362. <doc>
  36363. <![CDATA[{@link PolicyProvider} provides the {@link Service} definitions to the
  36364. security {@link Policy} in effect for Hadoop.]]>
  36365. </doc>
  36366. </class>
  36367. <!-- end class org.apache.hadoop.security.authorize.PolicyProvider -->
  36368. <!-- start class org.apache.hadoop.security.authorize.ProxyUsers -->
  36369. <class name="ProxyUsers" extends="java.lang.Object"
  36370. abstract="false"
  36371. static="false" final="false" visibility="public"
  36372. deprecated="not deprecated">
  36373. <constructor name="ProxyUsers"
  36374. static="false" final="false" visibility="public"
  36375. deprecated="not deprecated">
  36376. </constructor>
  36377. <method name="refreshSuperUserGroupsConfiguration"
  36378. abstract="false" native="false" synchronized="false"
  36379. static="true" final="false" visibility="public"
  36380. deprecated="not deprecated">
  36381. <doc>
  36382. <![CDATA[reread the conf and get new values for "hadoop.proxyuser.*.groups/hosts"]]>
  36383. </doc>
  36384. </method>
  36385. <method name="refreshSuperUserGroupsConfiguration"
  36386. abstract="false" native="false" synchronized="true"
  36387. static="true" final="false" visibility="public"
  36388. deprecated="not deprecated">
  36389. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36390. <doc>
  36391. <![CDATA[refresh configuration
  36392. @param conf]]>
  36393. </doc>
  36394. </method>
  36395. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  36396. abstract="false" native="false" synchronized="false"
  36397. static="true" final="false" visibility="public"
  36398. deprecated="not deprecated">
  36399. <param name="userName" type="java.lang.String"/>
  36400. <doc>
  36401. <![CDATA[Returns configuration key for effective user groups allowed for a superuser
  36402. @param userName name of the superuser
  36403. @return configuration key for superuser groups]]>
  36404. </doc>
  36405. </method>
  36406. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  36407. abstract="false" native="false" synchronized="false"
  36408. static="true" final="false" visibility="public"
  36409. deprecated="not deprecated">
  36410. <param name="userName" type="java.lang.String"/>
  36411. <doc>
  36412. <![CDATA[Return configuration key for superuser ip addresses
  36413. @param userName name of the superuser
  36414. @return configuration key for superuser ip-addresses]]>
  36415. </doc>
  36416. </method>
  36417. <method name="authorize"
  36418. abstract="false" native="false" synchronized="true"
  36419. static="true" final="false" visibility="public"
  36420. deprecated="not deprecated">
  36421. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  36422. <param name="remoteAddress" type="java.lang.String"/>
  36423. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  36424. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  36425. <doc>
  36426. <![CDATA[Authorize the superuser which is doing doAs
  36427. @param user ugi of the effective or proxy user which contains a real user
  36428. @param remoteAddress the ip address of client
  36429. @param newConf configuration
  36430. @throws AuthorizationException]]>
  36431. </doc>
  36432. </method>
  36433. <field name="CONF_GROUPS" type="java.lang.String"
  36434. transient="false" volatile="false"
  36435. static="true" final="true" visibility="public"
  36436. deprecated="not deprecated">
  36437. </field>
  36438. <field name="CONF_HADOOP_PROXYUSER" type="java.lang.String"
  36439. transient="false" volatile="false"
  36440. static="true" final="true" visibility="public"
  36441. deprecated="not deprecated">
  36442. </field>
  36443. <field name="CONF_HADOOP_PROXYUSER_RE" type="java.lang.String"
  36444. transient="false" volatile="false"
  36445. static="true" final="true" visibility="public"
  36446. deprecated="not deprecated">
  36447. </field>
  36448. </class>
  36449. <!-- end class org.apache.hadoop.security.authorize.ProxyUsers -->
  36450. <!-- start interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  36451. <interface name="RefreshAuthorizationPolicyProtocol" abstract="true"
  36452. static="false" final="false" visibility="public"
  36453. deprecated="not deprecated">
  36454. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  36455. <method name="refreshServiceAcl"
  36456. abstract="false" native="false" synchronized="false"
  36457. static="false" final="false" visibility="public"
  36458. deprecated="not deprecated">
  36459. <exception name="IOException" type="java.io.IOException"/>
  36460. <doc>
  36461. <![CDATA[Refresh the service-level authorization policy in-effect.
  36462. @throws IOException]]>
  36463. </doc>
  36464. </method>
  36465. <field name="versionID" type="long"
  36466. transient="false" volatile="false"
  36467. static="true" final="true" visibility="public"
  36468. deprecated="not deprecated">
  36469. <doc>
  36470. <![CDATA[Version 1: Initial version]]>
  36471. </doc>
  36472. </field>
  36473. <doc>
  36474. <![CDATA[Protocol which is used to refresh the authorization policy in use currently.]]>
  36475. </doc>
  36476. </interface>
  36477. <!-- end interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  36478. <!-- start class org.apache.hadoop.security.authorize.Service -->
  36479. <class name="Service" extends="java.lang.Object"
  36480. abstract="false"
  36481. static="false" final="false" visibility="public"
  36482. deprecated="not deprecated">
  36483. <constructor name="Service" type="java.lang.String, java.lang.Class"
  36484. static="false" final="false" visibility="public"
  36485. deprecated="not deprecated">
  36486. </constructor>
  36487. <method name="getServiceKey" return="java.lang.String"
  36488. abstract="false" native="false" synchronized="false"
  36489. static="false" final="false" visibility="public"
  36490. deprecated="not deprecated">
  36491. <doc>
  36492. <![CDATA[Get the configuration key for the service.
  36493. @return the configuration key for the service]]>
  36494. </doc>
  36495. </method>
  36496. <method name="getProtocol" return="java.lang.Class"
  36497. abstract="false" native="false" synchronized="false"
  36498. static="false" final="false" visibility="public"
  36499. deprecated="not deprecated">
  36500. <doc>
  36501. <![CDATA[Get the protocol for the service
  36502. @return the {@link Class} for the protocol]]>
  36503. </doc>
  36504. </method>
  36505. <doc>
  36506. <![CDATA[An abstract definition of <em>service</em> as related to
  36507. Service Level Authorization for Hadoop.
  36508. Each service defines it's configuration key and also the necessary
  36509. {@link Permission} required to access the service.]]>
  36510. </doc>
  36511. </class>
  36512. <!-- end class org.apache.hadoop.security.authorize.Service -->
  36513. <!-- start class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  36514. <class name="ServiceAuthorizationManager" extends="java.lang.Object"
  36515. abstract="false"
  36516. static="false" final="false" visibility="public"
  36517. deprecated="not deprecated">
  36518. <constructor name="ServiceAuthorizationManager"
  36519. static="false" final="false" visibility="public"
  36520. deprecated="not deprecated">
  36521. </constructor>
  36522. <method name="authorize"
  36523. abstract="false" native="false" synchronized="false"
  36524. static="true" final="false" visibility="public"
  36525. deprecated="not deprecated">
  36526. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  36527. <param name="protocol" type="java.lang.Class"/>
  36528. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36529. <param name="addr" type="java.net.InetAddress"/>
  36530. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  36531. <doc>
  36532. <![CDATA[Authorize the user to access the protocol being used.
  36533. @param user user accessing the service
  36534. @param protocol service being accessed
  36535. @param conf configuration to use
  36536. @param addr InetAddress of the client
  36537. @throws AuthorizationException on authorization failure]]>
  36538. </doc>
  36539. </method>
  36540. <method name="refresh"
  36541. abstract="false" native="false" synchronized="true"
  36542. static="true" final="false" visibility="public"
  36543. deprecated="not deprecated">
  36544. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36545. <param name="provider" type="org.apache.hadoop.security.authorize.PolicyProvider"/>
  36546. </method>
  36547. <field name="SERVICE_AUTHORIZATION_CONFIG" type="java.lang.String"
  36548. transient="false" volatile="false"
  36549. static="true" final="true" visibility="public"
  36550. deprecated="Use
  36551. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  36552. instead.">
  36553. <doc>
  36554. <![CDATA[Configuration key for controlling service-level authorization for Hadoop.
  36555. @deprecated Use
  36556. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  36557. instead.]]>
  36558. </doc>
  36559. </field>
  36560. <doc>
  36561. <![CDATA[An authorization manager which handles service-level authorization
  36562. for incoming service requests.]]>
  36563. </doc>
  36564. </class>
  36565. <!-- end class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  36566. </package>
  36567. <package name="org.apache.hadoop.security.token">
  36568. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  36569. <class name="SecretManager" extends="java.lang.Object"
  36570. abstract="true"
  36571. static="false" final="false" visibility="public"
  36572. deprecated="not deprecated">
  36573. <constructor name="SecretManager"
  36574. static="false" final="false" visibility="public"
  36575. deprecated="not deprecated">
  36576. </constructor>
  36577. <method name="createPassword" return="byte[]"
  36578. abstract="true" native="false" synchronized="false"
  36579. static="false" final="false" visibility="protected"
  36580. deprecated="not deprecated">
  36581. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  36582. <doc>
  36583. <![CDATA[Create the password for the given identifier.
  36584. identifier may be modified inside this method.
  36585. @param identifier the identifier to use
  36586. @return the new password]]>
  36587. </doc>
  36588. </method>
  36589. <method name="retrievePassword" return="byte[]"
  36590. abstract="true" native="false" synchronized="false"
  36591. static="false" final="false" visibility="public"
  36592. deprecated="not deprecated">
  36593. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  36594. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  36595. <doc>
  36596. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  36597. or registry to make sure the token hasn't expired or been revoked. Returns
  36598. the relevant password.
  36599. @param identifier the identifier to validate
  36600. @return the password to use
  36601. @throws InvalidToken the token was invalid]]>
  36602. </doc>
  36603. </method>
  36604. <method name="createIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  36605. abstract="true" native="false" synchronized="false"
  36606. static="false" final="false" visibility="public"
  36607. deprecated="not deprecated">
  36608. <doc>
  36609. <![CDATA[Create an empty token identifier.
  36610. @return the newly created empty token identifier]]>
  36611. </doc>
  36612. </method>
  36613. <method name="generateSecret" return="javax.crypto.SecretKey"
  36614. abstract="false" native="false" synchronized="false"
  36615. static="false" final="false" visibility="protected"
  36616. deprecated="not deprecated">
  36617. <doc>
  36618. <![CDATA[Generate a new random secret key.
  36619. @return the new key]]>
  36620. </doc>
  36621. </method>
  36622. <method name="createPassword" return="byte[]"
  36623. abstract="false" native="false" synchronized="false"
  36624. static="true" final="false" visibility="protected"
  36625. deprecated="not deprecated">
  36626. <param name="identifier" type="byte[]"/>
  36627. <param name="key" type="javax.crypto.SecretKey"/>
  36628. <doc>
  36629. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  36630. output as password
  36631. @param identifier the bytes of the identifier
  36632. @param key the secret key
  36633. @return the bytes of the generated password]]>
  36634. </doc>
  36635. </method>
  36636. <method name="createSecretKey" return="javax.crypto.SecretKey"
  36637. abstract="false" native="false" synchronized="false"
  36638. static="true" final="false" visibility="protected"
  36639. deprecated="not deprecated">
  36640. <param name="key" type="byte[]"/>
  36641. <doc>
  36642. <![CDATA[Convert the byte[] to a secret key
  36643. @param key the byte[] to create a secret key from
  36644. @return the secret key]]>
  36645. </doc>
  36646. </method>
  36647. <doc>
  36648. <![CDATA[The server-side secret manager for each token type.
  36649. @param <T> The type of the token identifier]]>
  36650. </doc>
  36651. </class>
  36652. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  36653. <!-- start class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  36654. <class name="SecretManager.InvalidToken" extends="java.io.IOException"
  36655. abstract="false"
  36656. static="true" final="false" visibility="public"
  36657. deprecated="not deprecated">
  36658. <constructor name="SecretManager.InvalidToken" type="java.lang.String"
  36659. static="false" final="false" visibility="public"
  36660. deprecated="not deprecated">
  36661. </constructor>
  36662. <doc>
  36663. <![CDATA[The token was invalid and the message explains why.]]>
  36664. </doc>
  36665. </class>
  36666. <!-- end class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  36667. <!-- start class org.apache.hadoop.security.token.Token -->
  36668. <class name="Token" extends="java.lang.Object"
  36669. abstract="false"
  36670. static="false" final="false" visibility="public"
  36671. deprecated="not deprecated">
  36672. <implements name="org.apache.hadoop.io.Writable"/>
  36673. <constructor name="Token" type="org.apache.hadoop.security.token.TokenIdentifier, org.apache.hadoop.security.token.SecretManager"
  36674. static="false" final="false" visibility="public"
  36675. deprecated="not deprecated">
  36676. <doc>
  36677. <![CDATA[Construct a token given a token identifier and a secret manager for the
  36678. type of the token identifier.
  36679. @param id the token identifier
  36680. @param mgr the secret manager]]>
  36681. </doc>
  36682. </constructor>
  36683. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  36684. static="false" final="false" visibility="public"
  36685. deprecated="not deprecated">
  36686. <doc>
  36687. <![CDATA[Construct a token from the components.
  36688. @param identifier the token identifier
  36689. @param password the token's password
  36690. @param kind the kind of token
  36691. @param service the service for this token]]>
  36692. </doc>
  36693. </constructor>
  36694. <constructor name="Token"
  36695. static="false" final="false" visibility="public"
  36696. deprecated="not deprecated">
  36697. <doc>
  36698. <![CDATA[Default constructor]]>
  36699. </doc>
  36700. </constructor>
  36701. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  36702. static="false" final="false" visibility="public"
  36703. deprecated="not deprecated">
  36704. <doc>
  36705. <![CDATA[Clone a token.
  36706. @param other the token to clone]]>
  36707. </doc>
  36708. </constructor>
  36709. <method name="getIdentifier" return="byte[]"
  36710. abstract="false" native="false" synchronized="false"
  36711. static="false" final="false" visibility="public"
  36712. deprecated="not deprecated">
  36713. <doc>
  36714. <![CDATA[Get the token identifier
  36715. @return the token identifier]]>
  36716. </doc>
  36717. </method>
  36718. <method name="getPassword" return="byte[]"
  36719. abstract="false" native="false" synchronized="false"
  36720. static="false" final="false" visibility="public"
  36721. deprecated="not deprecated">
  36722. <doc>
  36723. <![CDATA[Get the token password/secret
  36724. @return the token password/secret]]>
  36725. </doc>
  36726. </method>
  36727. <method name="getKind" return="org.apache.hadoop.io.Text"
  36728. abstract="false" native="false" synchronized="false"
  36729. static="false" final="false" visibility="public"
  36730. deprecated="not deprecated">
  36731. <doc>
  36732. <![CDATA[Get the token kind
  36733. @return the kind of the token]]>
  36734. </doc>
  36735. </method>
  36736. <method name="setKind"
  36737. abstract="false" native="false" synchronized="true"
  36738. static="false" final="false" visibility="public"
  36739. deprecated="not deprecated">
  36740. <param name="newKind" type="org.apache.hadoop.io.Text"/>
  36741. <doc>
  36742. <![CDATA[Set the token kind. This is only intended to be used by services that
  36743. wrap another service's token, such as HFTP wrapping HDFS.
  36744. @param newKind]]>
  36745. </doc>
  36746. </method>
  36747. <method name="getService" return="org.apache.hadoop.io.Text"
  36748. abstract="false" native="false" synchronized="false"
  36749. static="false" final="false" visibility="public"
  36750. deprecated="not deprecated">
  36751. <doc>
  36752. <![CDATA[Get the service on which the token is supposed to be used
  36753. @return the service name]]>
  36754. </doc>
  36755. </method>
  36756. <method name="setService"
  36757. abstract="false" native="false" synchronized="false"
  36758. static="false" final="false" visibility="public"
  36759. deprecated="not deprecated">
  36760. <param name="newService" type="org.apache.hadoop.io.Text"/>
  36761. <doc>
  36762. <![CDATA[Set the service on which the token is supposed to be used
  36763. @param newService the service name]]>
  36764. </doc>
  36765. </method>
  36766. <method name="readFields"
  36767. abstract="false" native="false" synchronized="false"
  36768. static="false" final="false" visibility="public"
  36769. deprecated="not deprecated">
  36770. <param name="in" type="java.io.DataInput"/>
  36771. <exception name="IOException" type="java.io.IOException"/>
  36772. <doc>
  36773. <![CDATA[{@inheritDoc}]]>
  36774. </doc>
  36775. </method>
  36776. <method name="write"
  36777. abstract="false" native="false" synchronized="false"
  36778. static="false" final="false" visibility="public"
  36779. deprecated="not deprecated">
  36780. <param name="out" type="java.io.DataOutput"/>
  36781. <exception name="IOException" type="java.io.IOException"/>
  36782. <doc>
  36783. <![CDATA[{@inheritDoc}]]>
  36784. </doc>
  36785. </method>
  36786. <method name="encodeToUrlString" return="java.lang.String"
  36787. abstract="false" native="false" synchronized="false"
  36788. static="false" final="false" visibility="public"
  36789. deprecated="not deprecated">
  36790. <exception name="IOException" type="java.io.IOException"/>
  36791. <doc>
  36792. <![CDATA[Encode this token as a url safe string
  36793. @return the encoded string
  36794. @throws IOException]]>
  36795. </doc>
  36796. </method>
  36797. <method name="decodeFromUrlString"
  36798. abstract="false" native="false" synchronized="false"
  36799. static="false" final="false" visibility="public"
  36800. deprecated="not deprecated">
  36801. <param name="newValue" type="java.lang.String"/>
  36802. <exception name="IOException" type="java.io.IOException"/>
  36803. <doc>
  36804. <![CDATA[Decode the given url safe string into this token.
  36805. @param newValue the encoded string
  36806. @throws IOException]]>
  36807. </doc>
  36808. </method>
  36809. <method name="equals" return="boolean"
  36810. abstract="false" native="false" synchronized="false"
  36811. static="false" final="false" visibility="public"
  36812. deprecated="not deprecated">
  36813. <param name="right" type="java.lang.Object"/>
  36814. </method>
  36815. <method name="hashCode" return="int"
  36816. abstract="false" native="false" synchronized="false"
  36817. static="false" final="false" visibility="public"
  36818. deprecated="not deprecated">
  36819. </method>
  36820. <method name="toString" return="java.lang.String"
  36821. abstract="false" native="false" synchronized="false"
  36822. static="false" final="false" visibility="public"
  36823. deprecated="not deprecated">
  36824. </method>
  36825. <method name="isManaged" return="boolean"
  36826. abstract="false" native="false" synchronized="false"
  36827. static="false" final="false" visibility="public"
  36828. deprecated="not deprecated">
  36829. <exception name="IOException" type="java.io.IOException"/>
  36830. <doc>
  36831. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  36832. @return true, if it can be renewed and cancelled.]]>
  36833. </doc>
  36834. </method>
  36835. <method name="renew" return="long"
  36836. abstract="false" native="false" synchronized="false"
  36837. static="false" final="false" visibility="public"
  36838. deprecated="not deprecated">
  36839. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36840. <exception name="IOException" type="java.io.IOException"/>
  36841. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  36842. <doc>
  36843. <![CDATA[Renew this delegation token
  36844. @return the new expiration time
  36845. @throws IOException
  36846. @throws InterruptedException]]>
  36847. </doc>
  36848. </method>
  36849. <method name="cancel"
  36850. abstract="false" native="false" synchronized="false"
  36851. static="false" final="false" visibility="public"
  36852. deprecated="not deprecated">
  36853. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36854. <exception name="IOException" type="java.io.IOException"/>
  36855. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  36856. <doc>
  36857. <![CDATA[Cancel this delegation token
  36858. @throws IOException
  36859. @throws InterruptedException]]>
  36860. </doc>
  36861. </method>
  36862. <field name="LOG" type="org.apache.commons.logging.Log"
  36863. transient="false" volatile="false"
  36864. static="true" final="true" visibility="public"
  36865. deprecated="not deprecated">
  36866. </field>
  36867. <doc>
  36868. <![CDATA[The client-side form of the token.]]>
  36869. </doc>
  36870. </class>
  36871. <!-- end class org.apache.hadoop.security.token.Token -->
  36872. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  36873. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  36874. abstract="false"
  36875. static="true" final="false" visibility="public"
  36876. deprecated="not deprecated">
  36877. <constructor name="Token.TrivialRenewer"
  36878. static="false" final="false" visibility="public"
  36879. deprecated="not deprecated">
  36880. </constructor>
  36881. <method name="getKind" return="org.apache.hadoop.io.Text"
  36882. abstract="false" native="false" synchronized="false"
  36883. static="false" final="false" visibility="protected"
  36884. deprecated="not deprecated">
  36885. </method>
  36886. <method name="handleKind" return="boolean"
  36887. abstract="false" native="false" synchronized="false"
  36888. static="false" final="false" visibility="public"
  36889. deprecated="not deprecated">
  36890. <param name="kind" type="org.apache.hadoop.io.Text"/>
  36891. </method>
  36892. <method name="isManaged" return="boolean"
  36893. abstract="false" native="false" synchronized="false"
  36894. static="false" final="false" visibility="public"
  36895. deprecated="not deprecated">
  36896. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  36897. </method>
  36898. <method name="renew" return="long"
  36899. abstract="false" native="false" synchronized="false"
  36900. static="false" final="false" visibility="public"
  36901. deprecated="not deprecated">
  36902. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  36903. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36904. </method>
  36905. <method name="cancel"
  36906. abstract="false" native="false" synchronized="false"
  36907. static="false" final="false" visibility="public"
  36908. deprecated="not deprecated">
  36909. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  36910. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36911. <exception name="IOException" type="java.io.IOException"/>
  36912. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  36913. </method>
  36914. <doc>
  36915. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  36916. to implement getKind for their token kind.]]>
  36917. </doc>
  36918. </class>
  36919. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  36920. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  36921. <class name="TokenIdentifier" extends="java.lang.Object"
  36922. abstract="true"
  36923. static="false" final="false" visibility="public"
  36924. deprecated="not deprecated">
  36925. <implements name="org.apache.hadoop.io.Writable"/>
  36926. <constructor name="TokenIdentifier"
  36927. static="false" final="false" visibility="public"
  36928. deprecated="not deprecated">
  36929. </constructor>
  36930. <method name="getKind" return="org.apache.hadoop.io.Text"
  36931. abstract="true" native="false" synchronized="false"
  36932. static="false" final="false" visibility="public"
  36933. deprecated="not deprecated">
  36934. <doc>
  36935. <![CDATA[Get the token kind
  36936. @return the kind of the token]]>
  36937. </doc>
  36938. </method>
  36939. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  36940. abstract="true" native="false" synchronized="false"
  36941. static="false" final="false" visibility="public"
  36942. deprecated="not deprecated">
  36943. <doc>
  36944. <![CDATA[Get the Ugi with the username encoded in the token identifier
  36945. @return the username. null is returned if username in the identifier is
  36946. empty or null.]]>
  36947. </doc>
  36948. </method>
  36949. <method name="getBytes" return="byte[]"
  36950. abstract="false" native="false" synchronized="false"
  36951. static="false" final="false" visibility="public"
  36952. deprecated="not deprecated">
  36953. <doc>
  36954. <![CDATA[Get the bytes for the token identifier
  36955. @return the bytes of the identifier]]>
  36956. </doc>
  36957. </method>
  36958. <doc>
  36959. <![CDATA[An identifier that identifies a token, may contain public information
  36960. about a token, including its kind (or type).]]>
  36961. </doc>
  36962. </class>
  36963. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  36964. <!-- start interface org.apache.hadoop.security.token.TokenInfo -->
  36965. <interface name="TokenInfo" abstract="true"
  36966. static="false" final="false" visibility="public"
  36967. deprecated="not deprecated">
  36968. <implements name="java.lang.annotation.Annotation"/>
  36969. <method name="value" return="java.lang.Class"
  36970. abstract="false" native="false" synchronized="false"
  36971. static="false" final="false" visibility="public"
  36972. deprecated="not deprecated">
  36973. <doc>
  36974. <![CDATA[The type of TokenSelector to be used]]>
  36975. </doc>
  36976. </method>
  36977. <doc>
  36978. <![CDATA[Indicates Token related information to be used]]>
  36979. </doc>
  36980. </interface>
  36981. <!-- end interface org.apache.hadoop.security.token.TokenInfo -->
  36982. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  36983. <class name="TokenRenewer" extends="java.lang.Object"
  36984. abstract="true"
  36985. static="false" final="false" visibility="public"
  36986. deprecated="not deprecated">
  36987. <constructor name="TokenRenewer"
  36988. static="false" final="false" visibility="public"
  36989. deprecated="not deprecated">
  36990. </constructor>
  36991. <method name="handleKind" return="boolean"
  36992. abstract="true" native="false" synchronized="false"
  36993. static="false" final="false" visibility="public"
  36994. deprecated="not deprecated">
  36995. <param name="kind" type="org.apache.hadoop.io.Text"/>
  36996. <doc>
  36997. <![CDATA[Does this renewer handle this kind of token?
  36998. @param kind the kind of the token
  36999. @return true if this renewer can renew it]]>
  37000. </doc>
  37001. </method>
  37002. <method name="isManaged" return="boolean"
  37003. abstract="true" native="false" synchronized="false"
  37004. static="false" final="false" visibility="public"
  37005. deprecated="not deprecated">
  37006. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37007. <exception name="IOException" type="java.io.IOException"/>
  37008. <doc>
  37009. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  37010. cancelled.
  37011. @param token the token being checked
  37012. @return true if the token may be renewed or cancelled
  37013. @throws IOException]]>
  37014. </doc>
  37015. </method>
  37016. <method name="renew" return="long"
  37017. abstract="true" native="false" synchronized="false"
  37018. static="false" final="false" visibility="public"
  37019. deprecated="not deprecated">
  37020. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37021. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37022. <exception name="IOException" type="java.io.IOException"/>
  37023. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37024. <doc>
  37025. <![CDATA[Renew the given token.
  37026. @return the new expiration time
  37027. @throws IOException
  37028. @throws InterruptedException]]>
  37029. </doc>
  37030. </method>
  37031. <method name="cancel"
  37032. abstract="true" native="false" synchronized="false"
  37033. static="false" final="false" visibility="public"
  37034. deprecated="not deprecated">
  37035. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37036. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37037. <exception name="IOException" type="java.io.IOException"/>
  37038. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37039. <doc>
  37040. <![CDATA[Cancel the given token
  37041. @throws IOException
  37042. @throws InterruptedException]]>
  37043. </doc>
  37044. </method>
  37045. <doc>
  37046. <![CDATA[This is the interface for plugins that handle tokens.]]>
  37047. </doc>
  37048. </class>
  37049. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  37050. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  37051. <interface name="TokenSelector" abstract="true"
  37052. static="false" final="false" visibility="public"
  37053. deprecated="not deprecated">
  37054. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  37055. abstract="false" native="false" synchronized="false"
  37056. static="false" final="false" visibility="public"
  37057. deprecated="not deprecated">
  37058. <param name="service" type="org.apache.hadoop.io.Text"/>
  37059. <param name="tokens" type="java.util.Collection"/>
  37060. </method>
  37061. <doc>
  37062. <![CDATA[Select token of type T from tokens for use with named service
  37063. @param <T>
  37064. T extends TokenIdentifier]]>
  37065. </doc>
  37066. </interface>
  37067. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  37068. </package>
  37069. <package name="org.apache.hadoop.security.token.delegation">
  37070. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  37071. <class name="AbstractDelegationTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  37072. abstract="true"
  37073. static="false" final="false" visibility="public"
  37074. deprecated="not deprecated">
  37075. <constructor name="AbstractDelegationTokenIdentifier"
  37076. static="false" final="false" visibility="public"
  37077. deprecated="not deprecated">
  37078. </constructor>
  37079. <constructor name="AbstractDelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  37080. static="false" final="false" visibility="public"
  37081. deprecated="not deprecated">
  37082. </constructor>
  37083. <method name="getKind" return="org.apache.hadoop.io.Text"
  37084. abstract="true" native="false" synchronized="false"
  37085. static="false" final="false" visibility="public"
  37086. deprecated="not deprecated">
  37087. </method>
  37088. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  37089. abstract="false" native="false" synchronized="false"
  37090. static="false" final="false" visibility="public"
  37091. deprecated="not deprecated">
  37092. <doc>
  37093. <![CDATA[Get the username encoded in the token identifier
  37094. @return the username or owner]]>
  37095. </doc>
  37096. </method>
  37097. <method name="getRenewer" return="org.apache.hadoop.io.Text"
  37098. abstract="false" native="false" synchronized="false"
  37099. static="false" final="false" visibility="public"
  37100. deprecated="not deprecated">
  37101. </method>
  37102. <method name="setIssueDate"
  37103. abstract="false" native="false" synchronized="false"
  37104. static="false" final="false" visibility="public"
  37105. deprecated="not deprecated">
  37106. <param name="issueDate" type="long"/>
  37107. </method>
  37108. <method name="getIssueDate" return="long"
  37109. abstract="false" native="false" synchronized="false"
  37110. static="false" final="false" visibility="public"
  37111. deprecated="not deprecated">
  37112. </method>
  37113. <method name="setMaxDate"
  37114. abstract="false" native="false" synchronized="false"
  37115. static="false" final="false" visibility="public"
  37116. deprecated="not deprecated">
  37117. <param name="maxDate" type="long"/>
  37118. </method>
  37119. <method name="getMaxDate" return="long"
  37120. abstract="false" native="false" synchronized="false"
  37121. static="false" final="false" visibility="public"
  37122. deprecated="not deprecated">
  37123. </method>
  37124. <method name="setSequenceNumber"
  37125. abstract="false" native="false" synchronized="false"
  37126. static="false" final="false" visibility="public"
  37127. deprecated="not deprecated">
  37128. <param name="seqNum" type="int"/>
  37129. </method>
  37130. <method name="getSequenceNumber" return="int"
  37131. abstract="false" native="false" synchronized="false"
  37132. static="false" final="false" visibility="public"
  37133. deprecated="not deprecated">
  37134. </method>
  37135. <method name="setMasterKeyId"
  37136. abstract="false" native="false" synchronized="false"
  37137. static="false" final="false" visibility="public"
  37138. deprecated="not deprecated">
  37139. <param name="newId" type="int"/>
  37140. </method>
  37141. <method name="getMasterKeyId" return="int"
  37142. abstract="false" native="false" synchronized="false"
  37143. static="false" final="false" visibility="public"
  37144. deprecated="not deprecated">
  37145. </method>
  37146. <method name="equals" return="boolean"
  37147. abstract="false" native="false" synchronized="false"
  37148. static="false" final="false" visibility="public"
  37149. deprecated="not deprecated">
  37150. <param name="obj" type="java.lang.Object"/>
  37151. <doc>
  37152. <![CDATA[{@inheritDoc}]]>
  37153. </doc>
  37154. </method>
  37155. <method name="hashCode" return="int"
  37156. abstract="false" native="false" synchronized="false"
  37157. static="false" final="false" visibility="public"
  37158. deprecated="not deprecated">
  37159. <doc>
  37160. <![CDATA[{@inheritDoc}]]>
  37161. </doc>
  37162. </method>
  37163. <method name="readFields"
  37164. abstract="false" native="false" synchronized="false"
  37165. static="false" final="false" visibility="public"
  37166. deprecated="not deprecated">
  37167. <param name="in" type="java.io.DataInput"/>
  37168. <exception name="IOException" type="java.io.IOException"/>
  37169. </method>
  37170. <method name="write"
  37171. abstract="false" native="false" synchronized="false"
  37172. static="false" final="false" visibility="public"
  37173. deprecated="not deprecated">
  37174. <param name="out" type="java.io.DataOutput"/>
  37175. <exception name="IOException" type="java.io.IOException"/>
  37176. </method>
  37177. <method name="toString" return="java.lang.String"
  37178. abstract="false" native="false" synchronized="false"
  37179. static="false" final="false" visibility="public"
  37180. deprecated="not deprecated">
  37181. </method>
  37182. </class>
  37183. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  37184. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  37185. <class name="AbstractDelegationTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  37186. abstract="true"
  37187. static="false" final="false" visibility="public"
  37188. deprecated="not deprecated">
  37189. <constructor name="AbstractDelegationTokenSecretManager" type="long, long, long, long"
  37190. static="false" final="false" visibility="public"
  37191. deprecated="not deprecated">
  37192. </constructor>
  37193. <method name="startThreads"
  37194. abstract="false" native="false" synchronized="true"
  37195. static="false" final="false" visibility="public"
  37196. deprecated="not deprecated">
  37197. <exception name="IOException" type="java.io.IOException"/>
  37198. <doc>
  37199. <![CDATA[should be called before this object is used]]>
  37200. </doc>
  37201. </method>
  37202. <method name="isRunning" return="boolean"
  37203. abstract="false" native="false" synchronized="true"
  37204. static="false" final="false" visibility="public"
  37205. deprecated="not deprecated">
  37206. <doc>
  37207. <![CDATA[is secretMgr running
  37208. @return true if secret mgr is running]]>
  37209. </doc>
  37210. </method>
  37211. <method name="addKey"
  37212. abstract="false" native="false" synchronized="true"
  37213. static="false" final="false" visibility="public"
  37214. deprecated="not deprecated">
  37215. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  37216. <exception name="IOException" type="java.io.IOException"/>
  37217. <doc>
  37218. <![CDATA[Add a previously used master key to cache (when NN restarts),
  37219. should be called before activate().]]>
  37220. </doc>
  37221. </method>
  37222. <method name="getAllKeys" return="org.apache.hadoop.security.token.delegation.DelegationKey[]"
  37223. abstract="false" native="false" synchronized="true"
  37224. static="false" final="false" visibility="public"
  37225. deprecated="not deprecated">
  37226. </method>
  37227. <method name="logUpdateMasterKey"
  37228. abstract="false" native="false" synchronized="false"
  37229. static="false" final="false" visibility="protected"
  37230. deprecated="not deprecated">
  37231. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  37232. <exception name="IOException" type="java.io.IOException"/>
  37233. </method>
  37234. <method name="createPassword" return="byte[]"
  37235. abstract="false" native="false" synchronized="true"
  37236. static="false" final="false" visibility="protected"
  37237. deprecated="not deprecated">
  37238. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  37239. </method>
  37240. <method name="retrievePassword" return="byte[]"
  37241. abstract="false" native="false" synchronized="true"
  37242. static="false" final="false" visibility="public"
  37243. deprecated="not deprecated">
  37244. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  37245. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  37246. </method>
  37247. <method name="renewToken" return="long"
  37248. abstract="false" native="false" synchronized="true"
  37249. static="false" final="false" visibility="public"
  37250. deprecated="not deprecated">
  37251. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37252. <param name="renewer" type="java.lang.String"/>
  37253. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  37254. <exception name="IOException" type="java.io.IOException"/>
  37255. <doc>
  37256. <![CDATA[Renew a delegation token.
  37257. @param token the token to renew
  37258. @param renewer the full principal name of the user doing the renewal
  37259. @return the new expiration time
  37260. @throws InvalidToken if the token is invalid
  37261. @throws AccessControlException if the user can't renew token]]>
  37262. </doc>
  37263. </method>
  37264. <method name="cancelToken" return="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  37265. abstract="false" native="false" synchronized="true"
  37266. static="false" final="false" visibility="public"
  37267. deprecated="not deprecated">
  37268. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37269. <param name="canceller" type="java.lang.String"/>
  37270. <exception name="IOException" type="java.io.IOException"/>
  37271. <doc>
  37272. <![CDATA[Cancel a token by removing it from cache.
  37273. @return Identifier of the canceled token
  37274. @throws InvalidToken for invalid token
  37275. @throws AccessControlException if the user isn't allowed to cancel]]>
  37276. </doc>
  37277. </method>
  37278. <method name="createSecretKey" return="javax.crypto.SecretKey"
  37279. abstract="false" native="false" synchronized="false"
  37280. static="true" final="false" visibility="public"
  37281. deprecated="not deprecated">
  37282. <param name="key" type="byte[]"/>
  37283. <doc>
  37284. <![CDATA[Convert the byte[] to a secret key
  37285. @param key the byte[] to create the secret key from
  37286. @return the secret key]]>
  37287. </doc>
  37288. </method>
  37289. <method name="stopThreads"
  37290. abstract="false" native="false" synchronized="true"
  37291. static="false" final="false" visibility="public"
  37292. deprecated="not deprecated">
  37293. </method>
  37294. <field name="currentTokens" type="java.util.Map"
  37295. transient="false" volatile="false"
  37296. static="false" final="true" visibility="protected"
  37297. deprecated="not deprecated">
  37298. <doc>
  37299. <![CDATA[Cache of currently valid tokens, mapping from DelegationTokenIdentifier
  37300. to DelegationTokenInformation. Protected by this object lock.]]>
  37301. </doc>
  37302. </field>
  37303. <field name="delegationTokenSequenceNumber" type="int"
  37304. transient="false" volatile="false"
  37305. static="false" final="false" visibility="protected"
  37306. deprecated="not deprecated">
  37307. <doc>
  37308. <![CDATA[Sequence number to create DelegationTokenIdentifier.
  37309. Protected by this object lock.]]>
  37310. </doc>
  37311. </field>
  37312. <field name="allKeys" type="java.util.Map"
  37313. transient="false" volatile="false"
  37314. static="false" final="true" visibility="protected"
  37315. deprecated="not deprecated">
  37316. <doc>
  37317. <![CDATA[Access to allKeys is protected by this object lock]]>
  37318. </doc>
  37319. </field>
  37320. <field name="currentId" type="int"
  37321. transient="false" volatile="false"
  37322. static="false" final="false" visibility="protected"
  37323. deprecated="not deprecated">
  37324. <doc>
  37325. <![CDATA[Access to currentId is protected by this object lock.]]>
  37326. </doc>
  37327. </field>
  37328. <field name="running" type="boolean"
  37329. transient="false" volatile="true"
  37330. static="false" final="false" visibility="protected"
  37331. deprecated="not deprecated">
  37332. </field>
  37333. </class>
  37334. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  37335. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  37336. <class name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" extends="java.lang.Object"
  37337. abstract="false"
  37338. static="true" final="false" visibility="public"
  37339. deprecated="not deprecated">
  37340. <constructor name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" type="long, byte[]"
  37341. static="false" final="false" visibility="public"
  37342. deprecated="not deprecated">
  37343. </constructor>
  37344. <method name="getRenewDate" return="long"
  37345. abstract="false" native="false" synchronized="false"
  37346. static="false" final="false" visibility="public"
  37347. deprecated="not deprecated">
  37348. <doc>
  37349. <![CDATA[returns renew date]]>
  37350. </doc>
  37351. </method>
  37352. <doc>
  37353. <![CDATA[Class to encapsulate a token's renew date and password.]]>
  37354. </doc>
  37355. </class>
  37356. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  37357. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  37358. <class name="AbstractDelegationTokenSelector" extends="java.lang.Object"
  37359. abstract="false"
  37360. static="false" final="false" visibility="public"
  37361. deprecated="not deprecated">
  37362. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  37363. <constructor name="AbstractDelegationTokenSelector" type="org.apache.hadoop.io.Text"
  37364. static="false" final="false" visibility="protected"
  37365. deprecated="not deprecated">
  37366. </constructor>
  37367. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  37368. abstract="false" native="false" synchronized="false"
  37369. static="false" final="false" visibility="public"
  37370. deprecated="not deprecated">
  37371. <param name="service" type="org.apache.hadoop.io.Text"/>
  37372. <param name="tokens" type="java.util.Collection"/>
  37373. </method>
  37374. <doc>
  37375. <![CDATA[Look through tokens to find the first delegation token that matches the
  37376. service and return it.]]>
  37377. </doc>
  37378. </class>
  37379. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  37380. <!-- start class org.apache.hadoop.security.token.delegation.DelegationKey -->
  37381. <class name="DelegationKey" extends="java.lang.Object"
  37382. abstract="false"
  37383. static="false" final="false" visibility="public"
  37384. deprecated="not deprecated">
  37385. <implements name="org.apache.hadoop.io.Writable"/>
  37386. <constructor name="DelegationKey"
  37387. static="false" final="false" visibility="public"
  37388. deprecated="not deprecated">
  37389. </constructor>
  37390. <constructor name="DelegationKey" type="int, long, javax.crypto.SecretKey"
  37391. static="false" final="false" visibility="public"
  37392. deprecated="not deprecated">
  37393. </constructor>
  37394. <method name="getKeyId" return="int"
  37395. abstract="false" native="false" synchronized="false"
  37396. static="false" final="false" visibility="public"
  37397. deprecated="not deprecated">
  37398. </method>
  37399. <method name="getExpiryDate" return="long"
  37400. abstract="false" native="false" synchronized="false"
  37401. static="false" final="false" visibility="public"
  37402. deprecated="not deprecated">
  37403. </method>
  37404. <method name="getKey" return="javax.crypto.SecretKey"
  37405. abstract="false" native="false" synchronized="false"
  37406. static="false" final="false" visibility="public"
  37407. deprecated="not deprecated">
  37408. </method>
  37409. <method name="setExpiryDate"
  37410. abstract="false" native="false" synchronized="false"
  37411. static="false" final="false" visibility="public"
  37412. deprecated="not deprecated">
  37413. <param name="expiryDate" type="long"/>
  37414. </method>
  37415. <method name="write"
  37416. abstract="false" native="false" synchronized="false"
  37417. static="false" final="false" visibility="public"
  37418. deprecated="not deprecated">
  37419. <param name="out" type="java.io.DataOutput"/>
  37420. <exception name="IOException" type="java.io.IOException"/>
  37421. </method>
  37422. <method name="readFields"
  37423. abstract="false" native="false" synchronized="false"
  37424. static="false" final="false" visibility="public"
  37425. deprecated="not deprecated">
  37426. <param name="in" type="java.io.DataInput"/>
  37427. <exception name="IOException" type="java.io.IOException"/>
  37428. </method>
  37429. <doc>
  37430. <![CDATA[Key used for generating and verifying delegation tokens]]>
  37431. </doc>
  37432. </class>
  37433. <!-- end class org.apache.hadoop.security.token.delegation.DelegationKey -->
  37434. </package>
  37435. <package name="org.apache.hadoop.util">
  37436. <!-- start class org.apache.hadoop.util.ChecksumUtil -->
  37437. <class name="ChecksumUtil" extends="java.lang.Object"
  37438. abstract="false"
  37439. static="false" final="false" visibility="public"
  37440. deprecated="not deprecated">
  37441. <constructor name="ChecksumUtil"
  37442. static="false" final="false" visibility="public"
  37443. deprecated="not deprecated">
  37444. </constructor>
  37445. <method name="updateChunkChecksum"
  37446. abstract="false" native="false" synchronized="false"
  37447. static="true" final="false" visibility="public"
  37448. deprecated="not deprecated">
  37449. <param name="buf" type="byte[]"/>
  37450. <param name="checksumOff" type="int"/>
  37451. <param name="dataOff" type="int"/>
  37452. <param name="dataLen" type="int"/>
  37453. <param name="checksum" type="org.apache.hadoop.util.DataChecksum"/>
  37454. <exception name="IOException" type="java.io.IOException"/>
  37455. <doc>
  37456. <![CDATA[updates the checksum for a buffer
  37457. @param buf - buffer to update the checksum in
  37458. @param chunkOff - offset in the buffer where the checksum is to update
  37459. @param dataOff - offset in the buffer of the data
  37460. @param dataLen - length of data to compute checksum on]]>
  37461. </doc>
  37462. </method>
  37463. </class>
  37464. <!-- end class org.apache.hadoop.util.ChecksumUtil -->
  37465. <!-- start class org.apache.hadoop.util.CyclicIteration -->
  37466. <class name="CyclicIteration" extends="java.lang.Object"
  37467. abstract="false"
  37468. static="false" final="false" visibility="public"
  37469. deprecated="not deprecated">
  37470. <implements name="java.lang.Iterable"/>
  37471. <constructor name="CyclicIteration" type="java.util.NavigableMap, java.lang.Object"
  37472. static="false" final="false" visibility="public"
  37473. deprecated="not deprecated">
  37474. <doc>
  37475. <![CDATA[Construct an {@link Iterable} object,
  37476. so that an {@link Iterator} can be created
  37477. for iterating the given {@link NavigableMap}.
  37478. The iteration begins from the starting key exclusively.]]>
  37479. </doc>
  37480. </constructor>
  37481. <method name="iterator" return="java.util.Iterator"
  37482. abstract="false" native="false" synchronized="false"
  37483. static="false" final="false" visibility="public"
  37484. deprecated="not deprecated">
  37485. <doc>
  37486. <![CDATA[{@inheritDoc}]]>
  37487. </doc>
  37488. </method>
  37489. <doc>
  37490. <![CDATA[Provide an cyclic {@link Iterator} for a {@link NavigableMap}.
  37491. The {@link Iterator} navigates the entries of the map
  37492. according to the map's ordering.
  37493. If the {@link Iterator} hits the last entry of the map,
  37494. it will then continue from the first entry.]]>
  37495. </doc>
  37496. </class>
  37497. <!-- end class org.apache.hadoop.util.CyclicIteration -->
  37498. <!-- start class org.apache.hadoop.util.Daemon -->
  37499. <class name="Daemon" extends="java.lang.Thread"
  37500. abstract="false"
  37501. static="false" final="false" visibility="public"
  37502. deprecated="not deprecated">
  37503. <constructor name="Daemon"
  37504. static="false" final="false" visibility="public"
  37505. deprecated="not deprecated">
  37506. <doc>
  37507. <![CDATA[Construct a daemon thread.]]>
  37508. </doc>
  37509. </constructor>
  37510. <constructor name="Daemon" type="java.lang.Runnable"
  37511. static="false" final="false" visibility="public"
  37512. deprecated="not deprecated">
  37513. <doc>
  37514. <![CDATA[Construct a daemon thread.]]>
  37515. </doc>
  37516. </constructor>
  37517. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  37518. static="false" final="false" visibility="public"
  37519. deprecated="not deprecated">
  37520. <doc>
  37521. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  37522. </doc>
  37523. </constructor>
  37524. <method name="getRunnable" return="java.lang.Runnable"
  37525. abstract="false" native="false" synchronized="false"
  37526. static="false" final="false" visibility="public"
  37527. deprecated="not deprecated">
  37528. </method>
  37529. <doc>
  37530. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  37531. </doc>
  37532. </class>
  37533. <!-- end class org.apache.hadoop.util.Daemon -->
  37534. <!-- start class org.apache.hadoop.util.DataChecksum -->
  37535. <class name="DataChecksum" extends="java.lang.Object"
  37536. abstract="false"
  37537. static="false" final="false" visibility="public"
  37538. deprecated="not deprecated">
  37539. <implements name="java.util.zip.Checksum"/>
  37540. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  37541. abstract="false" native="false" synchronized="false"
  37542. static="true" final="false" visibility="public"
  37543. deprecated="not deprecated">
  37544. <param name="type" type="int"/>
  37545. <param name="bytesPerChecksum" type="int"/>
  37546. </method>
  37547. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  37548. abstract="false" native="false" synchronized="false"
  37549. static="true" final="false" visibility="public"
  37550. deprecated="not deprecated">
  37551. <param name="bytes" type="byte[]"/>
  37552. <param name="offset" type="int"/>
  37553. <doc>
  37554. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  37555. @return DataChecksum of the type in the array or null in case of an error.]]>
  37556. </doc>
  37557. </method>
  37558. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  37559. abstract="false" native="false" synchronized="false"
  37560. static="true" final="false" visibility="public"
  37561. deprecated="not deprecated">
  37562. <param name="in" type="java.io.DataInputStream"/>
  37563. <exception name="IOException" type="java.io.IOException"/>
  37564. <doc>
  37565. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  37566. input stream <i>in</i>]]>
  37567. </doc>
  37568. </method>
  37569. <method name="writeHeader"
  37570. abstract="false" native="false" synchronized="false"
  37571. static="false" final="false" visibility="public"
  37572. deprecated="not deprecated">
  37573. <param name="out" type="java.io.DataOutputStream"/>
  37574. <exception name="IOException" type="java.io.IOException"/>
  37575. <doc>
  37576. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  37577. </doc>
  37578. </method>
  37579. <method name="getHeader" return="byte[]"
  37580. abstract="false" native="false" synchronized="false"
  37581. static="false" final="false" visibility="public"
  37582. deprecated="not deprecated">
  37583. </method>
  37584. <method name="writeValue" return="int"
  37585. abstract="false" native="false" synchronized="false"
  37586. static="false" final="false" visibility="public"
  37587. deprecated="not deprecated">
  37588. <param name="out" type="java.io.DataOutputStream"/>
  37589. <param name="reset" type="boolean"/>
  37590. <exception name="IOException" type="java.io.IOException"/>
  37591. <doc>
  37592. <![CDATA[Writes the current checksum to the stream.
  37593. If <i>reset</i> is true, then resets the checksum.
  37594. @return number of bytes written. Will be equal to getChecksumSize();]]>
  37595. </doc>
  37596. </method>
  37597. <method name="writeValue" return="int"
  37598. abstract="false" native="false" synchronized="false"
  37599. static="false" final="false" visibility="public"
  37600. deprecated="not deprecated">
  37601. <param name="buf" type="byte[]"/>
  37602. <param name="offset" type="int"/>
  37603. <param name="reset" type="boolean"/>
  37604. <exception name="IOException" type="java.io.IOException"/>
  37605. <doc>
  37606. <![CDATA[Writes the current checksum to a buffer.
  37607. If <i>reset</i> is true, then resets the checksum.
  37608. @return number of bytes written. Will be equal to getChecksumSize();]]>
  37609. </doc>
  37610. </method>
  37611. <method name="compare" return="boolean"
  37612. abstract="false" native="false" synchronized="false"
  37613. static="false" final="false" visibility="public"
  37614. deprecated="not deprecated">
  37615. <param name="buf" type="byte[]"/>
  37616. <param name="offset" type="int"/>
  37617. <doc>
  37618. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  37619. @return true if the checksum matches and false otherwise.]]>
  37620. </doc>
  37621. </method>
  37622. <method name="getChecksumType" return="int"
  37623. abstract="false" native="false" synchronized="false"
  37624. static="false" final="false" visibility="public"
  37625. deprecated="not deprecated">
  37626. </method>
  37627. <method name="getChecksumSize" return="int"
  37628. abstract="false" native="false" synchronized="false"
  37629. static="false" final="false" visibility="public"
  37630. deprecated="not deprecated">
  37631. </method>
  37632. <method name="getBytesPerChecksum" return="int"
  37633. abstract="false" native="false" synchronized="false"
  37634. static="false" final="false" visibility="public"
  37635. deprecated="not deprecated">
  37636. </method>
  37637. <method name="getNumBytesInSum" return="int"
  37638. abstract="false" native="false" synchronized="false"
  37639. static="false" final="false" visibility="public"
  37640. deprecated="not deprecated">
  37641. </method>
  37642. <method name="getChecksumHeaderSize" return="int"
  37643. abstract="false" native="false" synchronized="false"
  37644. static="true" final="false" visibility="public"
  37645. deprecated="not deprecated">
  37646. </method>
  37647. <method name="getValue" return="long"
  37648. abstract="false" native="false" synchronized="false"
  37649. static="false" final="false" visibility="public"
  37650. deprecated="not deprecated">
  37651. </method>
  37652. <method name="reset"
  37653. abstract="false" native="false" synchronized="false"
  37654. static="false" final="false" visibility="public"
  37655. deprecated="not deprecated">
  37656. </method>
  37657. <method name="update"
  37658. abstract="false" native="false" synchronized="false"
  37659. static="false" final="false" visibility="public"
  37660. deprecated="not deprecated">
  37661. <param name="b" type="byte[]"/>
  37662. <param name="off" type="int"/>
  37663. <param name="len" type="int"/>
  37664. </method>
  37665. <method name="update"
  37666. abstract="false" native="false" synchronized="false"
  37667. static="false" final="false" visibility="public"
  37668. deprecated="not deprecated">
  37669. <param name="b" type="int"/>
  37670. </method>
  37671. <field name="HEADER_LEN" type="int"
  37672. transient="false" volatile="false"
  37673. static="true" final="true" visibility="public"
  37674. deprecated="not deprecated">
  37675. </field>
  37676. <field name="CHECKSUM_NULL" type="int"
  37677. transient="false" volatile="false"
  37678. static="true" final="true" visibility="public"
  37679. deprecated="not deprecated">
  37680. </field>
  37681. <field name="CHECKSUM_CRC32" type="int"
  37682. transient="false" volatile="false"
  37683. static="true" final="true" visibility="public"
  37684. deprecated="not deprecated">
  37685. </field>
  37686. <field name="SIZE_OF_INTEGER" type="int"
  37687. transient="false" volatile="false"
  37688. static="true" final="true" visibility="public"
  37689. deprecated="not deprecated">
  37690. </field>
  37691. <doc>
  37692. <![CDATA[This class provides inteface and utilities for processing checksums for
  37693. DFS data transfers.]]>
  37694. </doc>
  37695. </class>
  37696. <!-- end class org.apache.hadoop.util.DataChecksum -->
  37697. <!-- start class org.apache.hadoop.util.DiskChecker -->
  37698. <class name="DiskChecker" extends="java.lang.Object"
  37699. abstract="false"
  37700. static="false" final="false" visibility="public"
  37701. deprecated="not deprecated">
  37702. <constructor name="DiskChecker"
  37703. static="false" final="false" visibility="public"
  37704. deprecated="not deprecated">
  37705. </constructor>
  37706. <method name="mkdirsWithExistsCheck" return="boolean"
  37707. abstract="false" native="false" synchronized="false"
  37708. static="true" final="false" visibility="public"
  37709. deprecated="not deprecated">
  37710. <param name="dir" type="java.io.File"/>
  37711. <doc>
  37712. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  37713. method provided in the Sun's java.io.File class in the following way:
  37714. While creating the non-existent parent directories, this method checks for
  37715. the existence of those directories if the mkdir fails at any point (since
  37716. that directory might have just been created by some other process).
  37717. If both mkdir() and the exists() check fails for any seemingly
  37718. non-existent directory, then we signal an error; Sun's mkdir would signal
  37719. an error (return false) if a directory it is attempting to create already
  37720. exists or the mkdir fails.
  37721. @param dir
  37722. @return true on success, false on failure]]>
  37723. </doc>
  37724. </method>
  37725. <method name="checkDir"
  37726. abstract="false" native="false" synchronized="false"
  37727. static="true" final="false" visibility="public"
  37728. deprecated="not deprecated">
  37729. <param name="dir" type="java.io.File"/>
  37730. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  37731. <doc>
  37732. <![CDATA[Create the directory if it doesn't exist and
  37733. @param dir
  37734. @throws DiskErrorException]]>
  37735. </doc>
  37736. </method>
  37737. <method name="mkdirsWithExistsAndPermissionCheck" return="boolean"
  37738. abstract="false" native="false" synchronized="false"
  37739. static="true" final="false" visibility="public"
  37740. deprecated="not deprecated">
  37741. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  37742. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  37743. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  37744. <exception name="IOException" type="java.io.IOException"/>
  37745. <doc>
  37746. <![CDATA[Create the directory or check permissions if it already exists.
  37747. The semantics of mkdirsWithExistsAndPermissionCheck method is different
  37748. from the mkdirs method provided in the Sun's java.io.File class in the
  37749. following way:
  37750. While creating the non-existent parent directories, this method checks for
  37751. the existence of those directories if the mkdir fails at any point (since
  37752. that directory might have just been created by some other process).
  37753. If both mkdir() and the exists() check fails for any seemingly
  37754. non-existent directory, then we signal an error; Sun's mkdir would signal
  37755. an error (return false) if a directory it is attempting to create already
  37756. exists or the mkdir fails.
  37757. @param localFS local filesystem
  37758. @param dir directory to be created or checked
  37759. @param expected expected permission
  37760. @return true on success, false on failure]]>
  37761. </doc>
  37762. </method>
  37763. <method name="checkDir"
  37764. abstract="false" native="false" synchronized="false"
  37765. static="true" final="false" visibility="public"
  37766. deprecated="not deprecated">
  37767. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  37768. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  37769. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  37770. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  37771. <exception name="IOException" type="java.io.IOException"/>
  37772. <doc>
  37773. <![CDATA[Create the local directory if necessary, check permissions and also ensure
  37774. it can be read from and written into.
  37775. @param localFS local filesystem
  37776. @param dir directory
  37777. @param expected permission
  37778. @throws DiskErrorException
  37779. @throws IOException]]>
  37780. </doc>
  37781. </method>
  37782. <doc>
  37783. <![CDATA[Class that provides utility functions for checking disk problem]]>
  37784. </doc>
  37785. </class>
  37786. <!-- end class org.apache.hadoop.util.DiskChecker -->
  37787. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  37788. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  37789. abstract="false"
  37790. static="true" final="false" visibility="public"
  37791. deprecated="not deprecated">
  37792. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  37793. static="false" final="false" visibility="public"
  37794. deprecated="not deprecated">
  37795. </constructor>
  37796. </class>
  37797. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  37798. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  37799. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  37800. abstract="false"
  37801. static="true" final="false" visibility="public"
  37802. deprecated="not deprecated">
  37803. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  37804. static="false" final="false" visibility="public"
  37805. deprecated="not deprecated">
  37806. </constructor>
  37807. </class>
  37808. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  37809. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  37810. <class name="GenericOptionsParser" extends="java.lang.Object"
  37811. abstract="false"
  37812. static="false" final="false" visibility="public"
  37813. deprecated="not deprecated">
  37814. <constructor name="GenericOptionsParser" type="org.apache.commons.cli.Options, java.lang.String[]"
  37815. static="false" final="false" visibility="public"
  37816. deprecated="not deprecated">
  37817. <exception name="IOException" type="java.io.IOException"/>
  37818. <doc>
  37819. <![CDATA[Create an options parser with the given options to parse the args.
  37820. @param opts the options
  37821. @param args the command line arguments
  37822. @throws IOException]]>
  37823. </doc>
  37824. </constructor>
  37825. <constructor name="GenericOptionsParser" type="java.lang.String[]"
  37826. static="false" final="false" visibility="public"
  37827. deprecated="not deprecated">
  37828. <exception name="IOException" type="java.io.IOException"/>
  37829. <doc>
  37830. <![CDATA[Create an options parser to parse the args.
  37831. @param args the command line arguments
  37832. @throws IOException]]>
  37833. </doc>
  37834. </constructor>
  37835. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  37836. static="false" final="false" visibility="public"
  37837. deprecated="not deprecated">
  37838. <exception name="IOException" type="java.io.IOException"/>
  37839. <doc>
  37840. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  37841. arguments.
  37842. The array of string arguments other than the generic arguments can be
  37843. obtained by {@link #getRemainingArgs()}.
  37844. @param conf the <code>Configuration</code> to modify.
  37845. @param args command-line arguments.
  37846. @throws IOException]]>
  37847. </doc>
  37848. </constructor>
  37849. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  37850. static="false" final="false" visibility="public"
  37851. deprecated="not deprecated">
  37852. <exception name="IOException" type="java.io.IOException"/>
  37853. <doc>
  37854. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  37855. as generic Hadoop options.
  37856. The resulting <code>CommandLine</code> object can be obtained by
  37857. {@link #getCommandLine()}.
  37858. @param conf the configuration to modify
  37859. @param options options built by the caller
  37860. @param args User-specified arguments
  37861. @throws IOException]]>
  37862. </doc>
  37863. </constructor>
  37864. <method name="getRemainingArgs" return="java.lang.String[]"
  37865. abstract="false" native="false" synchronized="false"
  37866. static="false" final="false" visibility="public"
  37867. deprecated="not deprecated">
  37868. <doc>
  37869. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  37870. @return array of <code>String</code>s containing the un-parsed arguments
  37871. or <strong>empty array</strong> if commandLine was not defined.]]>
  37872. </doc>
  37873. </method>
  37874. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  37875. abstract="false" native="false" synchronized="false"
  37876. static="false" final="false" visibility="public"
  37877. deprecated="not deprecated">
  37878. <doc>
  37879. <![CDATA[Get the modified configuration
  37880. @return the configuration that has the modified parameters.]]>
  37881. </doc>
  37882. </method>
  37883. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  37884. abstract="false" native="false" synchronized="false"
  37885. static="false" final="false" visibility="public"
  37886. deprecated="not deprecated">
  37887. <doc>
  37888. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  37889. to process the parsed arguments.
  37890. Note: If the object is created with
  37891. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  37892. object will only contain parsed generic options.
  37893. @return <code>CommandLine</code> representing list of arguments
  37894. parsed against Options descriptor.]]>
  37895. </doc>
  37896. </method>
  37897. <method name="getLibJars" return="java.net.URL[]"
  37898. abstract="false" native="false" synchronized="false"
  37899. static="true" final="false" visibility="public"
  37900. deprecated="not deprecated">
  37901. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37902. <exception name="IOException" type="java.io.IOException"/>
  37903. <doc>
  37904. <![CDATA[If libjars are set in the conf, parse the libjars.
  37905. @param conf
  37906. @return libjar urls
  37907. @throws IOException]]>
  37908. </doc>
  37909. </method>
  37910. <method name="printGenericCommandUsage"
  37911. abstract="false" native="false" synchronized="false"
  37912. static="true" final="false" visibility="public"
  37913. deprecated="not deprecated">
  37914. <param name="out" type="java.io.PrintStream"/>
  37915. <doc>
  37916. <![CDATA[Print the usage message for generic command-line options supported.
  37917. @param out stream to print the usage message to.]]>
  37918. </doc>
  37919. </method>
  37920. <doc>
  37921. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  37922. arguments generic to the Hadoop framework.
  37923. <code>GenericOptionsParser</code> recognizes several standarad command
  37924. line arguments, enabling applications to easily specify a namenode, a
  37925. jobtracker, additional configuration resources etc.
  37926. <h4 id="GenericOptions">Generic Options</h4>
  37927. <p>The supported generic options are:</p>
  37928. <p><blockquote><pre>
  37929. -conf &lt;configuration file&gt; specify a configuration file
  37930. -D &lt;property=value&gt; use value for given property
  37931. -fs &lt;local|namenode:port&gt; specify a namenode
  37932. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  37933. -files &lt;comma separated list of files&gt; specify comma separated
  37934. files to be copied to the map reduce cluster
  37935. -libjars &lt;comma separated list of jars&gt; specify comma separated
  37936. jar files to include in the classpath.
  37937. -archives &lt;comma separated list of archives&gt; specify comma
  37938. separated archives to be unarchived on the compute machines.
  37939. </pre></blockquote></p>
  37940. <p>The general command line syntax is:</p>
  37941. <p><tt><pre>
  37942. bin/hadoop command [genericOptions] [commandOptions]
  37943. </pre></tt></p>
  37944. <p>Generic command line arguments <strong>might</strong> modify
  37945. <code>Configuration </code> objects, given to constructors.</p>
  37946. <p>The functionality is implemented using Commons CLI.</p>
  37947. <p>Examples:</p>
  37948. <p><blockquote><pre>
  37949. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  37950. list /data directory in dfs with namenode darwin:8020
  37951. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  37952. list /data directory in dfs with namenode darwin:8020
  37953. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  37954. list /data directory in dfs with conf specified in hadoop-site.xml
  37955. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  37956. submit a job to job tracker darwin:50020
  37957. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  37958. submit a job to job tracker darwin:50020
  37959. $ bin/hadoop job -jt local -submit job.xml
  37960. submit a job to local runner
  37961. $ bin/hadoop jar -libjars testlib.jar
  37962. -archives test.tgz -files file.txt inputjar args
  37963. job submission with libjars, files and archives
  37964. </pre></blockquote></p>
  37965. @see Tool
  37966. @see ToolRunner]]>
  37967. </doc>
  37968. </class>
  37969. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  37970. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  37971. <class name="GenericsUtil" extends="java.lang.Object"
  37972. abstract="false"
  37973. static="false" final="false" visibility="public"
  37974. deprecated="not deprecated">
  37975. <constructor name="GenericsUtil"
  37976. static="false" final="false" visibility="public"
  37977. deprecated="not deprecated">
  37978. </constructor>
  37979. <method name="getClass" return="java.lang.Class"
  37980. abstract="false" native="false" synchronized="false"
  37981. static="true" final="false" visibility="public"
  37982. deprecated="not deprecated">
  37983. <param name="t" type="java.lang.Object"/>
  37984. <doc>
  37985. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  37986. argument of type <code>T</code>.
  37987. @param <T> The type of the argument
  37988. @param t the object to get it class
  37989. @return <code>Class&lt;T&gt;</code>]]>
  37990. </doc>
  37991. </method>
  37992. <method name="toArray" return="java.lang.Object[]"
  37993. abstract="false" native="false" synchronized="false"
  37994. static="true" final="false" visibility="public"
  37995. deprecated="not deprecated">
  37996. <param name="c" type="java.lang.Class"/>
  37997. <param name="list" type="java.util.List"/>
  37998. <doc>
  37999. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  38000. <code>T[]</code>.
  38001. @param c the Class object of the items in the list
  38002. @param list the list to convert]]>
  38003. </doc>
  38004. </method>
  38005. <method name="toArray" return="java.lang.Object[]"
  38006. abstract="false" native="false" synchronized="false"
  38007. static="true" final="false" visibility="public"
  38008. deprecated="not deprecated">
  38009. <param name="list" type="java.util.List"/>
  38010. <doc>
  38011. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  38012. <code>T[]</code>.
  38013. @param list the list to convert
  38014. @throws ArrayIndexOutOfBoundsException if the list is empty.
  38015. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  38016. </doc>
  38017. </method>
  38018. <doc>
  38019. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  38020. </doc>
  38021. </class>
  38022. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  38023. <!-- start class org.apache.hadoop.util.HeapSort -->
  38024. <class name="HeapSort" extends="java.lang.Object"
  38025. abstract="false"
  38026. static="false" final="true" visibility="public"
  38027. deprecated="not deprecated">
  38028. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  38029. <constructor name="HeapSort"
  38030. static="false" final="false" visibility="public"
  38031. deprecated="not deprecated">
  38032. </constructor>
  38033. <method name="sort"
  38034. abstract="false" native="false" synchronized="false"
  38035. static="false" final="false" visibility="public"
  38036. deprecated="not deprecated">
  38037. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38038. <param name="p" type="int"/>
  38039. <param name="r" type="int"/>
  38040. <doc>
  38041. <![CDATA[Sort the given range of items using heap sort.
  38042. {@inheritDoc}]]>
  38043. </doc>
  38044. </method>
  38045. <method name="sort"
  38046. abstract="false" native="false" synchronized="false"
  38047. static="false" final="false" visibility="public"
  38048. deprecated="not deprecated">
  38049. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38050. <param name="p" type="int"/>
  38051. <param name="r" type="int"/>
  38052. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  38053. <doc>
  38054. <![CDATA[{@inheritDoc}]]>
  38055. </doc>
  38056. </method>
  38057. <doc>
  38058. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  38059. </doc>
  38060. </class>
  38061. <!-- end class org.apache.hadoop.util.HeapSort -->
  38062. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  38063. <class name="HostsFileReader" extends="java.lang.Object"
  38064. abstract="false"
  38065. static="false" final="false" visibility="public"
  38066. deprecated="not deprecated">
  38067. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  38068. static="false" final="false" visibility="public"
  38069. deprecated="not deprecated">
  38070. <exception name="IOException" type="java.io.IOException"/>
  38071. </constructor>
  38072. <method name="refresh"
  38073. abstract="false" native="false" synchronized="true"
  38074. static="false" final="false" visibility="public"
  38075. deprecated="not deprecated">
  38076. <exception name="IOException" type="java.io.IOException"/>
  38077. </method>
  38078. <method name="getHosts" return="java.util.Set"
  38079. abstract="false" native="false" synchronized="true"
  38080. static="false" final="false" visibility="public"
  38081. deprecated="not deprecated">
  38082. </method>
  38083. <method name="getExcludedHosts" return="java.util.Set"
  38084. abstract="false" native="false" synchronized="true"
  38085. static="false" final="false" visibility="public"
  38086. deprecated="not deprecated">
  38087. </method>
  38088. <method name="setIncludesFile"
  38089. abstract="false" native="false" synchronized="true"
  38090. static="false" final="false" visibility="public"
  38091. deprecated="not deprecated">
  38092. <param name="includesFile" type="java.lang.String"/>
  38093. </method>
  38094. <method name="setExcludesFile"
  38095. abstract="false" native="false" synchronized="true"
  38096. static="false" final="false" visibility="public"
  38097. deprecated="not deprecated">
  38098. <param name="excludesFile" type="java.lang.String"/>
  38099. </method>
  38100. <method name="updateFileNames"
  38101. abstract="false" native="false" synchronized="true"
  38102. static="false" final="false" visibility="public"
  38103. deprecated="not deprecated">
  38104. <param name="includesFile" type="java.lang.String"/>
  38105. <param name="excludesFile" type="java.lang.String"/>
  38106. <exception name="IOException" type="java.io.IOException"/>
  38107. </method>
  38108. </class>
  38109. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  38110. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  38111. <interface name="IndexedSortable" abstract="true"
  38112. static="false" final="false" visibility="public"
  38113. deprecated="not deprecated">
  38114. <method name="compare" return="int"
  38115. abstract="false" native="false" synchronized="false"
  38116. static="false" final="false" visibility="public"
  38117. deprecated="not deprecated">
  38118. <param name="i" type="int"/>
  38119. <param name="j" type="int"/>
  38120. <doc>
  38121. <![CDATA[Compare items at the given addresses consistent with the semantics of
  38122. {@link java.util.Comparator#compare(Object, Object)}.]]>
  38123. </doc>
  38124. </method>
  38125. <method name="swap"
  38126. abstract="false" native="false" synchronized="false"
  38127. static="false" final="false" visibility="public"
  38128. deprecated="not deprecated">
  38129. <param name="i" type="int"/>
  38130. <param name="j" type="int"/>
  38131. <doc>
  38132. <![CDATA[Swap items at the given addresses.]]>
  38133. </doc>
  38134. </method>
  38135. <doc>
  38136. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  38137. algorithms.]]>
  38138. </doc>
  38139. </interface>
  38140. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  38141. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  38142. <interface name="IndexedSorter" abstract="true"
  38143. static="false" final="false" visibility="public"
  38144. deprecated="not deprecated">
  38145. <method name="sort"
  38146. abstract="false" native="false" synchronized="false"
  38147. static="false" final="false" visibility="public"
  38148. deprecated="not deprecated">
  38149. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38150. <param name="l" type="int"/>
  38151. <param name="r" type="int"/>
  38152. <doc>
  38153. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  38154. range of logical indices. From the perspective of the sort algorithm,
  38155. each index between l (inclusive) and r (exclusive) is an addressable
  38156. entry.
  38157. @see IndexedSortable#compare
  38158. @see IndexedSortable#swap]]>
  38159. </doc>
  38160. </method>
  38161. <method name="sort"
  38162. abstract="false" native="false" synchronized="false"
  38163. static="false" final="false" visibility="public"
  38164. deprecated="not deprecated">
  38165. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38166. <param name="l" type="int"/>
  38167. <param name="r" type="int"/>
  38168. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  38169. <doc>
  38170. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  38171. periodically.
  38172. @see #sort(IndexedSortable,int,int)]]>
  38173. </doc>
  38174. </method>
  38175. <doc>
  38176. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  38177. A sort algorithm implementing this interface may only
  38178. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  38179. for a range of indices to effect a sort across that range.]]>
  38180. </doc>
  38181. </interface>
  38182. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  38183. <!-- start class org.apache.hadoop.util.LineReader -->
  38184. <class name="LineReader" extends="java.lang.Object"
  38185. abstract="false"
  38186. static="false" final="false" visibility="public"
  38187. deprecated="not deprecated">
  38188. <constructor name="LineReader" type="java.io.InputStream"
  38189. static="false" final="false" visibility="public"
  38190. deprecated="not deprecated">
  38191. <doc>
  38192. <![CDATA[Create a line reader that reads from the given stream using the
  38193. default buffer-size (64k).
  38194. @param in The input stream
  38195. @throws IOException]]>
  38196. </doc>
  38197. </constructor>
  38198. <constructor name="LineReader" type="java.io.InputStream, int"
  38199. static="false" final="false" visibility="public"
  38200. deprecated="not deprecated">
  38201. <doc>
  38202. <![CDATA[Create a line reader that reads from the given stream using the
  38203. given buffer-size.
  38204. @param in The input stream
  38205. @param bufferSize Size of the read buffer
  38206. @throws IOException]]>
  38207. </doc>
  38208. </constructor>
  38209. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  38210. static="false" final="false" visibility="public"
  38211. deprecated="not deprecated">
  38212. <exception name="IOException" type="java.io.IOException"/>
  38213. <doc>
  38214. <![CDATA[Create a line reader that reads from the given stream using the
  38215. <code>io.file.buffer.size</code> specified in the given
  38216. <code>Configuration</code>.
  38217. @param in input stream
  38218. @param conf configuration
  38219. @throws IOException]]>
  38220. </doc>
  38221. </constructor>
  38222. <method name="close"
  38223. abstract="false" native="false" synchronized="false"
  38224. static="false" final="false" visibility="public"
  38225. deprecated="not deprecated">
  38226. <exception name="IOException" type="java.io.IOException"/>
  38227. <doc>
  38228. <![CDATA[Close the underlying stream.
  38229. @throws IOException]]>
  38230. </doc>
  38231. </method>
  38232. <method name="readLine" return="int"
  38233. abstract="false" native="false" synchronized="false"
  38234. static="false" final="false" visibility="public"
  38235. deprecated="not deprecated">
  38236. <param name="str" type="org.apache.hadoop.io.Text"/>
  38237. <param name="maxLineLength" type="int"/>
  38238. <param name="maxBytesToConsume" type="int"/>
  38239. <exception name="IOException" type="java.io.IOException"/>
  38240. <doc>
  38241. <![CDATA[Read one line from the InputStream into the given Text. A line
  38242. can be terminated by one of the following: '\n' (LF) , '\r' (CR),
  38243. or '\r\n' (CR+LF). EOF also terminates an otherwise unterminated
  38244. line.
  38245. @param str the object to store the given line (without newline)
  38246. @param maxLineLength the maximum number of bytes to store into str;
  38247. the rest of the line is silently discarded.
  38248. @param maxBytesToConsume the maximum number of bytes to consume
  38249. in this call. This is only a hint, because if the line cross
  38250. this threshold, we allow it to happen. It can overshoot
  38251. potentially by as much as one buffer length.
  38252. @return the number of bytes read including the (longest) newline
  38253. found.
  38254. @throws IOException if the underlying stream throws]]>
  38255. </doc>
  38256. </method>
  38257. <method name="readLine" return="int"
  38258. abstract="false" native="false" synchronized="false"
  38259. static="false" final="false" visibility="public"
  38260. deprecated="not deprecated">
  38261. <param name="str" type="org.apache.hadoop.io.Text"/>
  38262. <param name="maxLineLength" type="int"/>
  38263. <exception name="IOException" type="java.io.IOException"/>
  38264. <doc>
  38265. <![CDATA[Read from the InputStream into the given Text.
  38266. @param str the object to store the given line
  38267. @param maxLineLength the maximum number of bytes to store into str.
  38268. @return the number of bytes read including the newline
  38269. @throws IOException if the underlying stream throws]]>
  38270. </doc>
  38271. </method>
  38272. <method name="readLine" return="int"
  38273. abstract="false" native="false" synchronized="false"
  38274. static="false" final="false" visibility="public"
  38275. deprecated="not deprecated">
  38276. <param name="str" type="org.apache.hadoop.io.Text"/>
  38277. <exception name="IOException" type="java.io.IOException"/>
  38278. <doc>
  38279. <![CDATA[Read from the InputStream into the given Text.
  38280. @param str the object to store the given line
  38281. @return the number of bytes read including the newline
  38282. @throws IOException if the underlying stream throws]]>
  38283. </doc>
  38284. </method>
  38285. <doc>
  38286. <![CDATA[A class that provides a line reader from an input stream.]]>
  38287. </doc>
  38288. </class>
  38289. <!-- end class org.apache.hadoop.util.LineReader -->
  38290. <!-- start class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  38291. <class name="LinuxMemoryCalculatorPlugin" extends="org.apache.hadoop.util.MemoryCalculatorPlugin"
  38292. abstract="false"
  38293. static="false" final="false" visibility="public"
  38294. deprecated="Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  38295. instead">
  38296. <constructor name="LinuxMemoryCalculatorPlugin"
  38297. static="false" final="false" visibility="public"
  38298. deprecated="not deprecated">
  38299. </constructor>
  38300. <method name="getPhysicalMemorySize" return="long"
  38301. abstract="false" native="false" synchronized="false"
  38302. static="false" final="false" visibility="public"
  38303. deprecated="not deprecated">
  38304. <doc>
  38305. <![CDATA[{@inheritDoc}]]>
  38306. </doc>
  38307. </method>
  38308. <method name="getVirtualMemorySize" return="long"
  38309. abstract="false" native="false" synchronized="false"
  38310. static="false" final="false" visibility="public"
  38311. deprecated="not deprecated">
  38312. <doc>
  38313. <![CDATA[{@inheritDoc}]]>
  38314. </doc>
  38315. </method>
  38316. <doc>
  38317. <![CDATA[Plugin to calculate virtual and physical memories on Linux systems.
  38318. @deprecated Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  38319. instead]]>
  38320. </doc>
  38321. </class>
  38322. <!-- end class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  38323. <!-- start class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  38324. <class name="LinuxResourceCalculatorPlugin" extends="org.apache.hadoop.util.ResourceCalculatorPlugin"
  38325. abstract="false"
  38326. static="false" final="false" visibility="public"
  38327. deprecated="not deprecated">
  38328. <constructor name="LinuxResourceCalculatorPlugin"
  38329. static="false" final="false" visibility="public"
  38330. deprecated="not deprecated">
  38331. </constructor>
  38332. <constructor name="LinuxResourceCalculatorPlugin" type="java.lang.String, java.lang.String, java.lang.String, long"
  38333. static="false" final="false" visibility="public"
  38334. deprecated="not deprecated">
  38335. <doc>
  38336. <![CDATA[Constructor which allows assigning the /proc/ directories. This will be
  38337. used only in unit tests
  38338. @param procfsMemFile fake file for /proc/meminfo
  38339. @param procfsCpuFile fake file for /proc/cpuinfo
  38340. @param procfsStatFile fake file for /proc/stat
  38341. @param jiffyLengthInMillis fake jiffy length value]]>
  38342. </doc>
  38343. </constructor>
  38344. <method name="getPhysicalMemorySize" return="long"
  38345. abstract="false" native="false" synchronized="false"
  38346. static="false" final="false" visibility="public"
  38347. deprecated="not deprecated">
  38348. <doc>
  38349. <![CDATA[{@inheritDoc}]]>
  38350. </doc>
  38351. </method>
  38352. <method name="getVirtualMemorySize" return="long"
  38353. abstract="false" native="false" synchronized="false"
  38354. static="false" final="false" visibility="public"
  38355. deprecated="not deprecated">
  38356. <doc>
  38357. <![CDATA[{@inheritDoc}]]>
  38358. </doc>
  38359. </method>
  38360. <method name="getAvailablePhysicalMemorySize" return="long"
  38361. abstract="false" native="false" synchronized="false"
  38362. static="false" final="false" visibility="public"
  38363. deprecated="not deprecated">
  38364. <doc>
  38365. <![CDATA[{@inheritDoc}]]>
  38366. </doc>
  38367. </method>
  38368. <method name="getAvailableVirtualMemorySize" return="long"
  38369. abstract="false" native="false" synchronized="false"
  38370. static="false" final="false" visibility="public"
  38371. deprecated="not deprecated">
  38372. <doc>
  38373. <![CDATA[{@inheritDoc}]]>
  38374. </doc>
  38375. </method>
  38376. <method name="getNumProcessors" return="int"
  38377. abstract="false" native="false" synchronized="false"
  38378. static="false" final="false" visibility="public"
  38379. deprecated="not deprecated">
  38380. <doc>
  38381. <![CDATA[{@inheritDoc}]]>
  38382. </doc>
  38383. </method>
  38384. <method name="getCpuFrequency" return="long"
  38385. abstract="false" native="false" synchronized="false"
  38386. static="false" final="false" visibility="public"
  38387. deprecated="not deprecated">
  38388. <doc>
  38389. <![CDATA[{@inheritDoc}]]>
  38390. </doc>
  38391. </method>
  38392. <method name="getCumulativeCpuTime" return="long"
  38393. abstract="false" native="false" synchronized="false"
  38394. static="false" final="false" visibility="public"
  38395. deprecated="not deprecated">
  38396. <doc>
  38397. <![CDATA[{@inheritDoc}]]>
  38398. </doc>
  38399. </method>
  38400. <method name="getCpuUsage" return="float"
  38401. abstract="false" native="false" synchronized="false"
  38402. static="false" final="false" visibility="public"
  38403. deprecated="not deprecated">
  38404. <doc>
  38405. <![CDATA[{@inheritDoc}]]>
  38406. </doc>
  38407. </method>
  38408. <method name="main"
  38409. abstract="false" native="false" synchronized="false"
  38410. static="true" final="false" visibility="public"
  38411. deprecated="not deprecated">
  38412. <param name="args" type="java.lang.String[]"/>
  38413. <doc>
  38414. <![CDATA[Test the {@link LinuxResourceCalculatorPlugin}
  38415. @param args]]>
  38416. </doc>
  38417. </method>
  38418. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  38419. abstract="false" native="false" synchronized="false"
  38420. static="false" final="false" visibility="public"
  38421. deprecated="not deprecated">
  38422. </method>
  38423. <doc>
  38424. <![CDATA[Plugin to calculate resource information on Linux systems.]]>
  38425. </doc>
  38426. </class>
  38427. <!-- end class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  38428. <!-- start class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  38429. <class name="MemoryCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  38430. abstract="true"
  38431. static="false" final="false" visibility="public"
  38432. deprecated="Use
  38433. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  38434. instead">
  38435. <constructor name="MemoryCalculatorPlugin"
  38436. static="false" final="false" visibility="public"
  38437. deprecated="not deprecated">
  38438. </constructor>
  38439. <method name="getVirtualMemorySize" return="long"
  38440. abstract="true" native="false" synchronized="false"
  38441. static="false" final="false" visibility="public"
  38442. deprecated="not deprecated">
  38443. <doc>
  38444. <![CDATA[Obtain the total size of the virtual memory present in the system.
  38445. @return virtual memory size in bytes.]]>
  38446. </doc>
  38447. </method>
  38448. <method name="getPhysicalMemorySize" return="long"
  38449. abstract="true" native="false" synchronized="false"
  38450. static="false" final="false" visibility="public"
  38451. deprecated="not deprecated">
  38452. <doc>
  38453. <![CDATA[Obtain the total size of the physical memory present in the system.
  38454. @return physical memory size bytes.]]>
  38455. </doc>
  38456. </method>
  38457. <method name="getMemoryCalculatorPlugin" return="org.apache.hadoop.util.MemoryCalculatorPlugin"
  38458. abstract="false" native="false" synchronized="false"
  38459. static="true" final="false" visibility="public"
  38460. deprecated="not deprecated">
  38461. <param name="clazz" type="java.lang.Class"/>
  38462. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38463. <doc>
  38464. <![CDATA[Get the MemoryCalculatorPlugin from the class name and configure it. If
  38465. class name is null, this method will try and return a memory calculator
  38466. plugin available for this system.
  38467. @param clazz class-name
  38468. @param conf configure the plugin with this.
  38469. @return MemoryCalculatorPlugin]]>
  38470. </doc>
  38471. </method>
  38472. <doc>
  38473. <![CDATA[Plugin to calculate virtual and physical memories on the system.
  38474. @deprecated Use
  38475. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  38476. instead]]>
  38477. </doc>
  38478. </class>
  38479. <!-- end class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  38480. <!-- start class org.apache.hadoop.util.MergeSort -->
  38481. <class name="MergeSort" extends="java.lang.Object"
  38482. abstract="false"
  38483. static="false" final="false" visibility="public"
  38484. deprecated="not deprecated">
  38485. <constructor name="MergeSort" type="java.util.Comparator"
  38486. static="false" final="false" visibility="public"
  38487. deprecated="not deprecated">
  38488. </constructor>
  38489. <method name="mergeSort"
  38490. abstract="false" native="false" synchronized="false"
  38491. static="false" final="false" visibility="public"
  38492. deprecated="not deprecated">
  38493. <param name="src" type="int[]"/>
  38494. <param name="dest" type="int[]"/>
  38495. <param name="low" type="int"/>
  38496. <param name="high" type="int"/>
  38497. </method>
  38498. <doc>
  38499. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  38500. </doc>
  38501. </class>
  38502. <!-- end class org.apache.hadoop.util.MergeSort -->
  38503. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  38504. <class name="NativeCodeLoader" extends="java.lang.Object"
  38505. abstract="false"
  38506. static="false" final="false" visibility="public"
  38507. deprecated="not deprecated">
  38508. <constructor name="NativeCodeLoader"
  38509. static="false" final="false" visibility="public"
  38510. deprecated="not deprecated">
  38511. </constructor>
  38512. <method name="isNativeCodeLoaded" return="boolean"
  38513. abstract="false" native="false" synchronized="false"
  38514. static="true" final="false" visibility="public"
  38515. deprecated="not deprecated">
  38516. <doc>
  38517. <![CDATA[Check if native-hadoop code is loaded for this platform.
  38518. @return <code>true</code> if native-hadoop is loaded,
  38519. else <code>false</code>]]>
  38520. </doc>
  38521. </method>
  38522. <method name="getLoadNativeLibraries" return="boolean"
  38523. abstract="false" native="false" synchronized="false"
  38524. static="false" final="false" visibility="public"
  38525. deprecated="not deprecated">
  38526. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38527. <doc>
  38528. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  38529. @param conf configuration
  38530. @return <code>true</code> if native hadoop libraries, if present, can be
  38531. used for this job; <code>false</code> otherwise.]]>
  38532. </doc>
  38533. </method>
  38534. <method name="setLoadNativeLibraries"
  38535. abstract="false" native="false" synchronized="false"
  38536. static="false" final="false" visibility="public"
  38537. deprecated="not deprecated">
  38538. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38539. <param name="loadNativeLibraries" type="boolean"/>
  38540. <doc>
  38541. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  38542. @param conf configuration
  38543. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  38544. </doc>
  38545. </method>
  38546. <doc>
  38547. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  38548. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  38549. or the default java implementations where appropriate.]]>
  38550. </doc>
  38551. </class>
  38552. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  38553. <!-- start class org.apache.hadoop.util.PlatformName -->
  38554. <class name="PlatformName" extends="java.lang.Object"
  38555. abstract="false"
  38556. static="false" final="false" visibility="public"
  38557. deprecated="not deprecated">
  38558. <constructor name="PlatformName"
  38559. static="false" final="false" visibility="public"
  38560. deprecated="not deprecated">
  38561. </constructor>
  38562. <method name="getPlatformName" return="java.lang.String"
  38563. abstract="false" native="false" synchronized="false"
  38564. static="true" final="false" visibility="public"
  38565. deprecated="not deprecated">
  38566. <doc>
  38567. <![CDATA[Get the complete platform as per the java-vm.
  38568. @return returns the complete platform as per the java-vm.]]>
  38569. </doc>
  38570. </method>
  38571. <method name="main"
  38572. abstract="false" native="false" synchronized="false"
  38573. static="true" final="false" visibility="public"
  38574. deprecated="not deprecated">
  38575. <param name="args" type="java.lang.String[]"/>
  38576. </method>
  38577. <doc>
  38578. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  38579. </doc>
  38580. </class>
  38581. <!-- end class org.apache.hadoop.util.PlatformName -->
  38582. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  38583. <class name="PrintJarMainClass" extends="java.lang.Object"
  38584. abstract="false"
  38585. static="false" final="false" visibility="public"
  38586. deprecated="not deprecated">
  38587. <constructor name="PrintJarMainClass"
  38588. static="false" final="false" visibility="public"
  38589. deprecated="not deprecated">
  38590. </constructor>
  38591. <method name="main"
  38592. abstract="false" native="false" synchronized="false"
  38593. static="true" final="false" visibility="public"
  38594. deprecated="not deprecated">
  38595. <param name="args" type="java.lang.String[]"/>
  38596. <doc>
  38597. <![CDATA[@param args]]>
  38598. </doc>
  38599. </method>
  38600. <doc>
  38601. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  38602. </doc>
  38603. </class>
  38604. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  38605. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  38606. <class name="PriorityQueue" extends="java.lang.Object"
  38607. abstract="true"
  38608. static="false" final="false" visibility="public"
  38609. deprecated="not deprecated">
  38610. <constructor name="PriorityQueue"
  38611. static="false" final="false" visibility="public"
  38612. deprecated="not deprecated">
  38613. </constructor>
  38614. <method name="lessThan" return="boolean"
  38615. abstract="true" native="false" synchronized="false"
  38616. static="false" final="false" visibility="protected"
  38617. deprecated="not deprecated">
  38618. <param name="a" type="java.lang.Object"/>
  38619. <param name="b" type="java.lang.Object"/>
  38620. <doc>
  38621. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  38622. must define this one method.]]>
  38623. </doc>
  38624. </method>
  38625. <method name="initialize"
  38626. abstract="false" native="false" synchronized="false"
  38627. static="false" final="true" visibility="protected"
  38628. deprecated="not deprecated">
  38629. <param name="maxSize" type="int"/>
  38630. <doc>
  38631. <![CDATA[Subclass constructors must call this.]]>
  38632. </doc>
  38633. </method>
  38634. <method name="put"
  38635. abstract="false" native="false" synchronized="false"
  38636. static="false" final="true" visibility="public"
  38637. deprecated="not deprecated">
  38638. <param name="element" type="java.lang.Object"/>
  38639. <doc>
  38640. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  38641. If one tries to add more objects than maxSize from initialize
  38642. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  38643. </doc>
  38644. </method>
  38645. <method name="insert" return="boolean"
  38646. abstract="false" native="false" synchronized="false"
  38647. static="false" final="false" visibility="public"
  38648. deprecated="not deprecated">
  38649. <param name="element" type="java.lang.Object"/>
  38650. <doc>
  38651. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  38652. the PriorityQueue is not full, or not lessThan(element, top()).
  38653. @param element
  38654. @return true if element is added, false otherwise.]]>
  38655. </doc>
  38656. </method>
  38657. <method name="top" return="java.lang.Object"
  38658. abstract="false" native="false" synchronized="false"
  38659. static="false" final="true" visibility="public"
  38660. deprecated="not deprecated">
  38661. <doc>
  38662. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  38663. </doc>
  38664. </method>
  38665. <method name="pop" return="java.lang.Object"
  38666. abstract="false" native="false" synchronized="false"
  38667. static="false" final="true" visibility="public"
  38668. deprecated="not deprecated">
  38669. <doc>
  38670. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  38671. time.]]>
  38672. </doc>
  38673. </method>
  38674. <method name="adjustTop"
  38675. abstract="false" native="false" synchronized="false"
  38676. static="false" final="true" visibility="public"
  38677. deprecated="not deprecated">
  38678. <doc>
  38679. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  38680. worst case, but it's at least twice as fast to <pre>
  38681. { pq.top().change(); pq.adjustTop(); }
  38682. </pre> instead of <pre>
  38683. { o = pq.pop(); o.change(); pq.push(o); }
  38684. </pre>]]>
  38685. </doc>
  38686. </method>
  38687. <method name="size" return="int"
  38688. abstract="false" native="false" synchronized="false"
  38689. static="false" final="true" visibility="public"
  38690. deprecated="not deprecated">
  38691. <doc>
  38692. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  38693. </doc>
  38694. </method>
  38695. <method name="clear"
  38696. abstract="false" native="false" synchronized="false"
  38697. static="false" final="true" visibility="public"
  38698. deprecated="not deprecated">
  38699. <doc>
  38700. <![CDATA[Removes all entries from the PriorityQueue.]]>
  38701. </doc>
  38702. </method>
  38703. <doc>
  38704. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  38705. least element can always be found in constant time. Put()'s and pop()'s
  38706. require log(size) time.]]>
  38707. </doc>
  38708. </class>
  38709. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  38710. <!-- start class org.apache.hadoop.util.ProcessTree -->
  38711. <class name="ProcessTree" extends="java.lang.Object"
  38712. abstract="false"
  38713. static="false" final="false" visibility="public"
  38714. deprecated="not deprecated">
  38715. <constructor name="ProcessTree"
  38716. static="false" final="false" visibility="public"
  38717. deprecated="not deprecated">
  38718. </constructor>
  38719. <method name="killProcess"
  38720. abstract="false" native="false" synchronized="false"
  38721. static="true" final="false" visibility="public"
  38722. deprecated="not deprecated">
  38723. <param name="pid" type="java.lang.String"/>
  38724. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  38725. <doc>
  38726. <![CDATA[Sends signal to process, forcefully terminating the process.
  38727. @param pid process id
  38728. @param signal the signal number to send]]>
  38729. </doc>
  38730. </method>
  38731. <method name="killProcessGroup"
  38732. abstract="false" native="false" synchronized="false"
  38733. static="true" final="false" visibility="public"
  38734. deprecated="not deprecated">
  38735. <param name="pgrpId" type="java.lang.String"/>
  38736. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  38737. <doc>
  38738. <![CDATA[Sends signal to all process belonging to same process group,
  38739. forcefully terminating the process group.
  38740. @param pgrpId process group id
  38741. @param signal the signal number to send]]>
  38742. </doc>
  38743. </method>
  38744. <method name="isAlive" return="boolean"
  38745. abstract="false" native="false" synchronized="false"
  38746. static="true" final="false" visibility="public"
  38747. deprecated="not deprecated">
  38748. <param name="pid" type="java.lang.String"/>
  38749. <doc>
  38750. <![CDATA[Is the process with PID pid still alive?
  38751. This method assumes that isAlive is called on a pid that was alive not
  38752. too long ago, and hence assumes no chance of pid-wrapping-around.
  38753. @param pid pid of the process to check.
  38754. @return true if process is alive.]]>
  38755. </doc>
  38756. </method>
  38757. <method name="isProcessGroupAlive" return="boolean"
  38758. abstract="false" native="false" synchronized="false"
  38759. static="true" final="false" visibility="public"
  38760. deprecated="not deprecated">
  38761. <param name="pgrpId" type="java.lang.String"/>
  38762. <doc>
  38763. <![CDATA[Is the process group with still alive?
  38764. This method assumes that isAlive is called on a pid that was alive not
  38765. too long ago, and hence assumes no chance of pid-wrapping-around.
  38766. @param pgrpId process group id
  38767. @return true if any of process in group is alive.]]>
  38768. </doc>
  38769. </method>
  38770. <field name="isSetsidAvailable" type="boolean"
  38771. transient="false" volatile="false"
  38772. static="true" final="true" visibility="public"
  38773. deprecated="not deprecated">
  38774. </field>
  38775. <doc>
  38776. <![CDATA[Process tree related operations]]>
  38777. </doc>
  38778. </class>
  38779. <!-- end class org.apache.hadoop.util.ProcessTree -->
  38780. <!-- start class org.apache.hadoop.util.ProcessTree.Signal -->
  38781. <class name="ProcessTree.Signal" extends="java.lang.Enum"
  38782. abstract="false"
  38783. static="true" final="true" visibility="public"
  38784. deprecated="not deprecated">
  38785. <method name="values" return="org.apache.hadoop.util.ProcessTree.Signal[]"
  38786. abstract="false" native="false" synchronized="false"
  38787. static="true" final="false" visibility="public"
  38788. deprecated="not deprecated">
  38789. </method>
  38790. <method name="valueOf" return="org.apache.hadoop.util.ProcessTree.Signal"
  38791. abstract="false" native="false" synchronized="false"
  38792. static="true" final="false" visibility="public"
  38793. deprecated="not deprecated">
  38794. <param name="name" type="java.lang.String"/>
  38795. </method>
  38796. <method name="getValue" return="int"
  38797. abstract="false" native="false" synchronized="false"
  38798. static="false" final="false" visibility="public"
  38799. deprecated="not deprecated">
  38800. </method>
  38801. <field name="QUIT" type="org.apache.hadoop.util.ProcessTree.Signal"
  38802. transient="false" volatile="false"
  38803. static="true" final="true" visibility="public"
  38804. deprecated="not deprecated">
  38805. </field>
  38806. <field name="KILL" type="org.apache.hadoop.util.ProcessTree.Signal"
  38807. transient="false" volatile="false"
  38808. static="true" final="true" visibility="public"
  38809. deprecated="not deprecated">
  38810. </field>
  38811. <field name="TERM" type="org.apache.hadoop.util.ProcessTree.Signal"
  38812. transient="false" volatile="false"
  38813. static="true" final="true" visibility="public"
  38814. deprecated="not deprecated">
  38815. </field>
  38816. <doc>
  38817. <![CDATA[The constants for the signals.]]>
  38818. </doc>
  38819. </class>
  38820. <!-- end class org.apache.hadoop.util.ProcessTree.Signal -->
  38821. <!-- start class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  38822. <class name="ProcfsBasedProcessTree" extends="org.apache.hadoop.util.ProcessTree"
  38823. abstract="false"
  38824. static="false" final="false" visibility="public"
  38825. deprecated="not deprecated">
  38826. <constructor name="ProcfsBasedProcessTree" type="java.lang.String"
  38827. static="false" final="false" visibility="public"
  38828. deprecated="not deprecated">
  38829. </constructor>
  38830. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, boolean"
  38831. static="false" final="false" visibility="public"
  38832. deprecated="not deprecated">
  38833. </constructor>
  38834. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, java.lang.String"
  38835. static="false" final="false" visibility="public"
  38836. deprecated="not deprecated">
  38837. </constructor>
  38838. <method name="isAvailable" return="boolean"
  38839. abstract="false" native="false" synchronized="false"
  38840. static="true" final="false" visibility="public"
  38841. deprecated="not deprecated">
  38842. <doc>
  38843. <![CDATA[Checks if the ProcfsBasedProcessTree is available on this system.
  38844. @return true if ProcfsBasedProcessTree is available. False otherwise.]]>
  38845. </doc>
  38846. </method>
  38847. <method name="getProcessTree" return="org.apache.hadoop.util.ProcfsBasedProcessTree"
  38848. abstract="false" native="false" synchronized="false"
  38849. static="false" final="false" visibility="public"
  38850. deprecated="not deprecated">
  38851. <doc>
  38852. <![CDATA[Get the process-tree with latest state. If the root-process is not alive,
  38853. an empty tree will be returned.
  38854. @return the process-tree with latest state.]]>
  38855. </doc>
  38856. </method>
  38857. <method name="isAlive" return="boolean"
  38858. abstract="false" native="false" synchronized="false"
  38859. static="false" final="false" visibility="public"
  38860. deprecated="not deprecated">
  38861. <doc>
  38862. <![CDATA[Is the root-process alive?
  38863. @return true if the root-process is alive, false otherwise.]]>
  38864. </doc>
  38865. </method>
  38866. <method name="isAnyProcessInTreeAlive" return="boolean"
  38867. abstract="false" native="false" synchronized="false"
  38868. static="false" final="false" visibility="public"
  38869. deprecated="not deprecated">
  38870. <doc>
  38871. <![CDATA[Is any of the subprocesses in the process-tree alive?
  38872. @return true if any of the processes in the process-tree is
  38873. alive, false otherwise.]]>
  38874. </doc>
  38875. </method>
  38876. <method name="getProcessTreeDump" return="java.lang.String"
  38877. abstract="false" native="false" synchronized="false"
  38878. static="false" final="false" visibility="public"
  38879. deprecated="not deprecated">
  38880. <doc>
  38881. <![CDATA[Get a dump of the process-tree.
  38882. @return a string concatenating the dump of information of all the processes
  38883. in the process-tree]]>
  38884. </doc>
  38885. </method>
  38886. <method name="getCumulativeVmem" return="long"
  38887. abstract="false" native="false" synchronized="false"
  38888. static="false" final="false" visibility="public"
  38889. deprecated="not deprecated">
  38890. <doc>
  38891. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  38892. process-tree.
  38893. @return cumulative virtual memory used by the process-tree in bytes.]]>
  38894. </doc>
  38895. </method>
  38896. <method name="getCumulativeRssmem" return="long"
  38897. abstract="false" native="false" synchronized="false"
  38898. static="false" final="false" visibility="public"
  38899. deprecated="not deprecated">
  38900. <doc>
  38901. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  38902. in the process-tree.
  38903. @return cumulative rss memory used by the process-tree in bytes. return 0
  38904. if it cannot be calculated]]>
  38905. </doc>
  38906. </method>
  38907. <method name="getCumulativeVmem" return="long"
  38908. abstract="false" native="false" synchronized="false"
  38909. static="false" final="false" visibility="public"
  38910. deprecated="not deprecated">
  38911. <param name="olderThanAge" type="int"/>
  38912. <doc>
  38913. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  38914. process-tree that are older than the passed in age.
  38915. @param olderThanAge processes above this age are included in the
  38916. memory addition
  38917. @return cumulative virtual memory used by the process-tree in bytes,
  38918. for processes older than this age.]]>
  38919. </doc>
  38920. </method>
  38921. <method name="getCumulativeRssmem" return="long"
  38922. abstract="false" native="false" synchronized="false"
  38923. static="false" final="false" visibility="public"
  38924. deprecated="not deprecated">
  38925. <param name="olderThanAge" type="int"/>
  38926. <doc>
  38927. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  38928. in the process-tree that are older than the passed in age.
  38929. @param olderThanAge processes above this age are included in the
  38930. memory addition
  38931. @return cumulative rss memory used by the process-tree in bytes,
  38932. for processes older than this age. return 0 if it cannot be
  38933. calculated]]>
  38934. </doc>
  38935. </method>
  38936. <method name="getCumulativeCpuTime" return="long"
  38937. abstract="false" native="false" synchronized="false"
  38938. static="false" final="false" visibility="public"
  38939. deprecated="not deprecated">
  38940. <doc>
  38941. <![CDATA[Get the CPU time in millisecond used by all the processes in the
  38942. process-tree since the process-tree created
  38943. @return cumulative CPU time in millisecond since the process-tree created
  38944. return 0 if it cannot be calculated]]>
  38945. </doc>
  38946. </method>
  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 a string printing PIDs of process present in the
  38953. ProcfsBasedProcessTree. Output format : [pid pid ..]]]>
  38954. </doc>
  38955. </method>
  38956. <field name="PAGE_SIZE" type="long"
  38957. transient="false" volatile="false"
  38958. static="true" final="true" visibility="public"
  38959. deprecated="not deprecated">
  38960. </field>
  38961. <field name="JIFFY_LENGTH_IN_MILLIS" type="long"
  38962. transient="false" volatile="false"
  38963. static="true" final="true" visibility="public"
  38964. deprecated="not deprecated">
  38965. </field>
  38966. <doc>
  38967. <![CDATA[A Proc file-system based ProcessTree. Works only on Linux.]]>
  38968. </doc>
  38969. </class>
  38970. <!-- end class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  38971. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  38972. <class name="ProgramDriver" extends="java.lang.Object"
  38973. abstract="false"
  38974. static="false" final="false" visibility="public"
  38975. deprecated="not deprecated">
  38976. <constructor name="ProgramDriver"
  38977. static="false" final="false" visibility="public"
  38978. deprecated="not deprecated">
  38979. </constructor>
  38980. <method name="addClass"
  38981. abstract="false" native="false" synchronized="false"
  38982. static="false" final="false" visibility="public"
  38983. deprecated="not deprecated">
  38984. <param name="name" type="java.lang.String"/>
  38985. <param name="mainClass" type="java.lang.Class"/>
  38986. <param name="description" type="java.lang.String"/>
  38987. <exception name="Throwable" type="java.lang.Throwable"/>
  38988. <doc>
  38989. <![CDATA[This is the method that adds the classed to the repository
  38990. @param name The name of the string you want the class instance to be called with
  38991. @param mainClass The class that you want to add to the repository
  38992. @param description The description of the class
  38993. @throws NoSuchMethodException
  38994. @throws SecurityException]]>
  38995. </doc>
  38996. </method>
  38997. <method name="driver"
  38998. abstract="false" native="false" synchronized="false"
  38999. static="false" final="false" visibility="public"
  39000. deprecated="not deprecated">
  39001. <param name="args" type="java.lang.String[]"/>
  39002. <exception name="Throwable" type="java.lang.Throwable"/>
  39003. <doc>
  39004. <![CDATA[This is a driver for the example programs.
  39005. It looks at the first command line argument and tries to find an
  39006. example program with that name.
  39007. If it is found, it calls the main method in that class with the rest
  39008. of the command line arguments.
  39009. @param args The argument from the user. args[0] is the command to run.
  39010. @throws NoSuchMethodException
  39011. @throws SecurityException
  39012. @throws IllegalAccessException
  39013. @throws IllegalArgumentException
  39014. @throws Throwable Anything thrown by the example program's main]]>
  39015. </doc>
  39016. </method>
  39017. <doc>
  39018. <![CDATA[A driver that is used to run programs added to it]]>
  39019. </doc>
  39020. </class>
  39021. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  39022. <!-- start class org.apache.hadoop.util.Progress -->
  39023. <class name="Progress" extends="java.lang.Object"
  39024. abstract="false"
  39025. static="false" final="false" visibility="public"
  39026. deprecated="not deprecated">
  39027. <constructor name="Progress"
  39028. static="false" final="false" visibility="public"
  39029. deprecated="not deprecated">
  39030. <doc>
  39031. <![CDATA[Creates a new root node.]]>
  39032. </doc>
  39033. </constructor>
  39034. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  39035. abstract="false" native="false" synchronized="false"
  39036. static="false" final="false" visibility="public"
  39037. deprecated="not deprecated">
  39038. <param name="status" type="java.lang.String"/>
  39039. <doc>
  39040. <![CDATA[Adds a named node to the tree.]]>
  39041. </doc>
  39042. </method>
  39043. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  39044. abstract="false" native="false" synchronized="true"
  39045. static="false" final="false" visibility="public"
  39046. deprecated="not deprecated">
  39047. <doc>
  39048. <![CDATA[Adds a node to the tree.]]>
  39049. </doc>
  39050. </method>
  39051. <method name="startNextPhase"
  39052. abstract="false" native="false" synchronized="true"
  39053. static="false" final="false" visibility="public"
  39054. deprecated="not deprecated">
  39055. <doc>
  39056. <![CDATA[Called during execution to move to the next phase at this level in the
  39057. tree.]]>
  39058. </doc>
  39059. </method>
  39060. <method name="phase" return="org.apache.hadoop.util.Progress"
  39061. abstract="false" native="false" synchronized="true"
  39062. static="false" final="false" visibility="public"
  39063. deprecated="not deprecated">
  39064. <doc>
  39065. <![CDATA[Returns the current sub-node executing.]]>
  39066. </doc>
  39067. </method>
  39068. <method name="complete"
  39069. abstract="false" native="false" synchronized="false"
  39070. static="false" final="false" visibility="public"
  39071. deprecated="not deprecated">
  39072. <doc>
  39073. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  39074. </doc>
  39075. </method>
  39076. <method name="set"
  39077. abstract="false" native="false" synchronized="true"
  39078. static="false" final="false" visibility="public"
  39079. deprecated="not deprecated">
  39080. <param name="progress" type="float"/>
  39081. <doc>
  39082. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  39083. </doc>
  39084. </method>
  39085. <method name="get" return="float"
  39086. abstract="false" native="false" synchronized="true"
  39087. static="false" final="false" visibility="public"
  39088. deprecated="not deprecated">
  39089. <doc>
  39090. <![CDATA[Returns the overall progress of the root.]]>
  39091. </doc>
  39092. </method>
  39093. <method name="setStatus"
  39094. abstract="false" native="false" synchronized="true"
  39095. static="false" final="false" visibility="public"
  39096. deprecated="not deprecated">
  39097. <param name="status" type="java.lang.String"/>
  39098. </method>
  39099. <method name="toString" return="java.lang.String"
  39100. abstract="false" native="false" synchronized="false"
  39101. static="false" final="false" visibility="public"
  39102. deprecated="not deprecated">
  39103. </method>
  39104. <doc>
  39105. <![CDATA[Utility to assist with generation of progress reports. Applications build
  39106. a hierarchy of {@link Progress} instances, each modelling a phase of
  39107. execution. The root is constructed with {@link #Progress()}. Nodes for
  39108. sub-phases are created by calling {@link #addPhase()}.]]>
  39109. </doc>
  39110. </class>
  39111. <!-- end class org.apache.hadoop.util.Progress -->
  39112. <!-- start interface org.apache.hadoop.util.Progressable -->
  39113. <interface name="Progressable" abstract="true"
  39114. static="false" final="false" visibility="public"
  39115. deprecated="not deprecated">
  39116. <method name="progress"
  39117. abstract="false" native="false" synchronized="false"
  39118. static="false" final="false" visibility="public"
  39119. deprecated="not deprecated">
  39120. <doc>
  39121. <![CDATA[Report progress to the Hadoop framework.]]>
  39122. </doc>
  39123. </method>
  39124. <doc>
  39125. <![CDATA[A facility for reporting progress.
  39126. <p>Clients and/or applications can use the provided <code>Progressable</code>
  39127. to explicitly report progress to the Hadoop framework. This is especially
  39128. important for operations which take an insignificant amount of time since,
  39129. in-lieu of the reported progress, the framework has to assume that an error
  39130. has occured and time-out the operation.</p>]]>
  39131. </doc>
  39132. </interface>
  39133. <!-- end interface org.apache.hadoop.util.Progressable -->
  39134. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics -->
  39135. <class name="QueueProcessingStatistics" extends="java.lang.Object"
  39136. abstract="true"
  39137. static="false" final="false" visibility="public"
  39138. deprecated="not deprecated">
  39139. <constructor name="QueueProcessingStatistics" type="java.lang.String, java.lang.String, org.apache.commons.logging.Log"
  39140. static="false" final="false" visibility="public"
  39141. deprecated="not deprecated">
  39142. <doc>
  39143. <![CDATA[@param queueName - Human-readable name of the queue being monitored,
  39144. used as first word in the log messages.
  39145. @param workItemsName - what kind of work items are being managed
  39146. on the queue? A plural word is best here, for logging.
  39147. @param logObject - What log do you want the log messages to be sent to?]]>
  39148. </doc>
  39149. </constructor>
  39150. <method name="startCycle"
  39151. abstract="false" native="false" synchronized="false"
  39152. static="false" final="false" visibility="public"
  39153. deprecated="not deprecated">
  39154. <param name="maxWorkToProcess" type="int"/>
  39155. </method>
  39156. <method name="endCycle"
  39157. abstract="false" native="false" synchronized="false"
  39158. static="false" final="false" visibility="public"
  39159. deprecated="not deprecated">
  39160. <param name="workFound" type="int"/>
  39161. </method>
  39162. <method name="checkRestart"
  39163. abstract="false" native="false" synchronized="false"
  39164. static="false" final="false" visibility="public"
  39165. deprecated="not deprecated">
  39166. </method>
  39167. <method name="preCheckIsLastCycle" return="boolean"
  39168. abstract="true" native="false" synchronized="false"
  39169. static="false" final="false" visibility="public"
  39170. deprecated="not deprecated">
  39171. <param name="maxWorkToProcess" type="int"/>
  39172. <doc>
  39173. <![CDATA[The termination condition is to identify the last cycle that will
  39174. empty the queue. Two abstract APIs are called: {@code preCheckIsLastCycle}
  39175. is called at the beginning of each cycle, and
  39176. {@link #postCheckIsLastCycle} is called at the end of each cycle.
  39177. At least one of them must correctly provide the termination
  39178. condition. The other may always return 'false'. If either of them
  39179. returns 'true' in a given cycle, then at the end of that cycle the
  39180. stats will be output to log, and stats collection will end.
  39181. @param maxWorkToProcess - if this number is greater than the amount
  39182. of work remaining at the start of a cycle, then it will
  39183. be the last cycle.
  39184. @return - true if last cycle detected, else false]]>
  39185. </doc>
  39186. </method>
  39187. <method name="postCheckIsLastCycle" return="boolean"
  39188. abstract="true" native="false" synchronized="false"
  39189. static="false" final="false" visibility="public"
  39190. deprecated="not deprecated">
  39191. <param name="workFound" type="int"/>
  39192. <doc>
  39193. <![CDATA[See {@link #preCheckIsLastCycle}.
  39194. @param workFound - may not be useful
  39195. @return - true if remaining work is zero at end of cycle,
  39196. else false]]>
  39197. </doc>
  39198. </method>
  39199. <doc>
  39200. <![CDATA[Hadoop has several work queues, such as
  39201. {@link org.apache.hadoop.hdfs.server.namenode.FSNamesystem#neededReplications}
  39202. With a properly throttled queue, a worker thread cycles repeatedly,
  39203. doing a chunk of work each cycle then resting a bit, until the queue is
  39204. empty. This class is intended to collect statistics about the behavior of
  39205. such queues and consumers. It reports the amount of work done and
  39206. how long it took, for the first cycle after collection starts, and for
  39207. the total number of cycles needed to flush the queue. We use a state
  39208. machine to detect when the queue has been flushed and then we log the
  39209. stats; see {@link State} for enumeration of the states and their meanings.]]>
  39210. </doc>
  39211. </class>
  39212. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics -->
  39213. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  39214. <class name="QueueProcessingStatistics.State" extends="java.lang.Enum"
  39215. abstract="false"
  39216. static="true" final="true" visibility="public"
  39217. deprecated="not deprecated">
  39218. <method name="values" return="org.apache.hadoop.util.QueueProcessingStatistics.State[]"
  39219. abstract="false" native="false" synchronized="false"
  39220. static="true" final="false" visibility="public"
  39221. deprecated="not deprecated">
  39222. </method>
  39223. <method name="valueOf" return="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39224. abstract="false" native="false" synchronized="false"
  39225. static="true" final="false" visibility="public"
  39226. deprecated="not deprecated">
  39227. <param name="name" type="java.lang.String"/>
  39228. </method>
  39229. <field name="BEGIN_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39230. transient="false" volatile="false"
  39231. static="true" final="true" visibility="public"
  39232. deprecated="not deprecated">
  39233. </field>
  39234. <field name="IN_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39235. transient="false" volatile="false"
  39236. static="true" final="true" visibility="public"
  39237. deprecated="not deprecated">
  39238. </field>
  39239. <field name="IN_SOLE_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39240. transient="false" volatile="false"
  39241. static="true" final="true" visibility="public"
  39242. deprecated="not deprecated">
  39243. </field>
  39244. <field name="DONE_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39245. transient="false" volatile="false"
  39246. static="true" final="true" visibility="public"
  39247. deprecated="not deprecated">
  39248. </field>
  39249. <field name="IN_LAST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39250. transient="false" volatile="false"
  39251. static="true" final="true" visibility="public"
  39252. deprecated="not deprecated">
  39253. </field>
  39254. <field name="DONE_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39255. transient="false" volatile="false"
  39256. static="true" final="true" visibility="public"
  39257. deprecated="not deprecated">
  39258. </field>
  39259. <doc>
  39260. <![CDATA[This enum provides the "states" of a state machine for
  39261. {@link QueueProcessingStatistics}.
  39262. The meanings of the states are: <ul>
  39263. <li> BEGIN_COLLECTING - Ready to begin.
  39264. <li> IN_FIRST_CYCLE - Started the first cycle.
  39265. <li> IN_SOLE_CYCLE - Still in first cycle, but already know there will be
  39266. no further cycles because this one will complete all
  39267. needed work. When done, will go straight to
  39268. "DONE_COLLECTING".
  39269. <li> DONE_FIRST_CYCLE - Done first cycle, doing subsequent cycles.
  39270. <li> IN_LAST_CYCLE - Started the last cycle.
  39271. <li> DONE_COLLECTING - Done with last cycle, finishing up.
  39272. </ul>]]>
  39273. </doc>
  39274. </class>
  39275. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  39276. <!-- start class org.apache.hadoop.util.QuickSort -->
  39277. <class name="QuickSort" extends="java.lang.Object"
  39278. abstract="false"
  39279. static="false" final="true" visibility="public"
  39280. deprecated="not deprecated">
  39281. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  39282. <constructor name="QuickSort"
  39283. static="false" final="false" visibility="public"
  39284. deprecated="not deprecated">
  39285. </constructor>
  39286. <method name="getMaxDepth" return="int"
  39287. abstract="false" native="false" synchronized="false"
  39288. static="true" final="false" visibility="protected"
  39289. deprecated="not deprecated">
  39290. <param name="x" type="int"/>
  39291. <doc>
  39292. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  39293. Returns 2 * ceil(log(n)).]]>
  39294. </doc>
  39295. </method>
  39296. <method name="sort"
  39297. abstract="false" native="false" synchronized="false"
  39298. static="false" final="false" visibility="public"
  39299. deprecated="not deprecated">
  39300. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39301. <param name="p" type="int"/>
  39302. <param name="r" type="int"/>
  39303. <doc>
  39304. <![CDATA[Sort the given range of items using quick sort.
  39305. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  39306. then switch to {@link HeapSort}.]]>
  39307. </doc>
  39308. </method>
  39309. <method name="sort"
  39310. abstract="false" native="false" synchronized="false"
  39311. static="false" final="false" visibility="public"
  39312. deprecated="not deprecated">
  39313. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39314. <param name="p" type="int"/>
  39315. <param name="r" type="int"/>
  39316. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  39317. <doc>
  39318. <![CDATA[{@inheritDoc}]]>
  39319. </doc>
  39320. </method>
  39321. <doc>
  39322. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  39323. </doc>
  39324. </class>
  39325. <!-- end class org.apache.hadoop.util.QuickSort -->
  39326. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  39327. <class name="ReflectionUtils" extends="java.lang.Object"
  39328. abstract="false"
  39329. static="false" final="false" visibility="public"
  39330. deprecated="not deprecated">
  39331. <constructor name="ReflectionUtils"
  39332. static="false" final="false" visibility="public"
  39333. deprecated="not deprecated">
  39334. </constructor>
  39335. <method name="setConf"
  39336. abstract="false" native="false" synchronized="false"
  39337. static="true" final="false" visibility="public"
  39338. deprecated="not deprecated">
  39339. <param name="theObject" type="java.lang.Object"/>
  39340. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39341. <doc>
  39342. <![CDATA[Check and set 'configuration' if necessary.
  39343. @param theObject object for which to set configuration
  39344. @param conf Configuration]]>
  39345. </doc>
  39346. </method>
  39347. <method name="newInstance" return="java.lang.Object"
  39348. abstract="false" native="false" synchronized="false"
  39349. static="true" final="false" visibility="public"
  39350. deprecated="not deprecated">
  39351. <param name="theClass" type="java.lang.Class"/>
  39352. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39353. <doc>
  39354. <![CDATA[Create an object for the given class and initialize it from conf
  39355. @param theClass class of which an object is created
  39356. @param conf Configuration
  39357. @return a new object]]>
  39358. </doc>
  39359. </method>
  39360. <method name="setContentionTracing"
  39361. abstract="false" native="false" synchronized="false"
  39362. static="true" final="false" visibility="public"
  39363. deprecated="not deprecated">
  39364. <param name="val" type="boolean"/>
  39365. </method>
  39366. <method name="printThreadInfo"
  39367. abstract="false" native="false" synchronized="false"
  39368. static="true" final="false" visibility="public"
  39369. deprecated="not deprecated">
  39370. <param name="stream" type="java.io.PrintWriter"/>
  39371. <param name="title" type="java.lang.String"/>
  39372. <doc>
  39373. <![CDATA[Print all of the thread's information and stack traces.
  39374. @param stream the stream to
  39375. @param title a string title for the stack trace]]>
  39376. </doc>
  39377. </method>
  39378. <method name="logThreadInfo"
  39379. abstract="false" native="false" synchronized="false"
  39380. static="true" final="false" visibility="public"
  39381. deprecated="not deprecated">
  39382. <param name="log" type="org.apache.commons.logging.Log"/>
  39383. <param name="title" type="java.lang.String"/>
  39384. <param name="minInterval" type="long"/>
  39385. <doc>
  39386. <![CDATA[Log the current thread stacks at INFO level.
  39387. @param log the logger that logs the stack trace
  39388. @param title a descriptive title for the call stacks
  39389. @param minInterval the minimum time from the last]]>
  39390. </doc>
  39391. </method>
  39392. <method name="getClass" return="java.lang.Class"
  39393. abstract="false" native="false" synchronized="false"
  39394. static="true" final="false" visibility="public"
  39395. deprecated="not deprecated">
  39396. <param name="o" type="java.lang.Object"/>
  39397. <doc>
  39398. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  39399. @param o object whose correctly-typed <code>Class</code> is to be obtained
  39400. @return the correctly typed <code>Class</code> of the given object.]]>
  39401. </doc>
  39402. </method>
  39403. <method name="copy" return="java.lang.Object"
  39404. abstract="false" native="false" synchronized="false"
  39405. static="true" final="false" visibility="public"
  39406. deprecated="not deprecated">
  39407. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39408. <param name="src" type="java.lang.Object"/>
  39409. <param name="dst" type="java.lang.Object"/>
  39410. <exception name="IOException" type="java.io.IOException"/>
  39411. <doc>
  39412. <![CDATA[Make a copy of the writable object using serialization to a buffer
  39413. @param dst the object to copy from
  39414. @param src the object to copy into, which is destroyed
  39415. @throws IOException]]>
  39416. </doc>
  39417. </method>
  39418. <method name="cloneWritableInto"
  39419. abstract="false" native="false" synchronized="false"
  39420. static="true" final="false" visibility="public"
  39421. deprecated="not deprecated">
  39422. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  39423. <param name="src" type="org.apache.hadoop.io.Writable"/>
  39424. <exception name="IOException" type="java.io.IOException"/>
  39425. </method>
  39426. <doc>
  39427. <![CDATA[General reflection utils]]>
  39428. </doc>
  39429. </class>
  39430. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  39431. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  39432. <class name="ResourceCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  39433. abstract="true"
  39434. static="false" final="false" visibility="public"
  39435. deprecated="not deprecated">
  39436. <constructor name="ResourceCalculatorPlugin"
  39437. static="false" final="false" visibility="public"
  39438. deprecated="not deprecated">
  39439. </constructor>
  39440. <method name="getVirtualMemorySize" return="long"
  39441. abstract="true" native="false" synchronized="false"
  39442. static="false" final="false" visibility="public"
  39443. deprecated="not deprecated">
  39444. <doc>
  39445. <![CDATA[Obtain the total size of the virtual memory present in the system.
  39446. @return virtual memory size in bytes.]]>
  39447. </doc>
  39448. </method>
  39449. <method name="getPhysicalMemorySize" return="long"
  39450. abstract="true" native="false" synchronized="false"
  39451. static="false" final="false" visibility="public"
  39452. deprecated="not deprecated">
  39453. <doc>
  39454. <![CDATA[Obtain the total size of the physical memory present in the system.
  39455. @return physical memory size bytes.]]>
  39456. </doc>
  39457. </method>
  39458. <method name="getAvailableVirtualMemorySize" return="long"
  39459. abstract="true" native="false" synchronized="false"
  39460. static="false" final="false" visibility="public"
  39461. deprecated="not deprecated">
  39462. <doc>
  39463. <![CDATA[Obtain the total size of the available virtual memory present
  39464. in the system.
  39465. @return available virtual memory size in bytes.]]>
  39466. </doc>
  39467. </method>
  39468. <method name="getAvailablePhysicalMemorySize" return="long"
  39469. abstract="true" native="false" synchronized="false"
  39470. static="false" final="false" visibility="public"
  39471. deprecated="not deprecated">
  39472. <doc>
  39473. <![CDATA[Obtain the total size of the available physical memory present
  39474. in the system.
  39475. @return available physical memory size bytes.]]>
  39476. </doc>
  39477. </method>
  39478. <method name="getNumProcessors" return="int"
  39479. abstract="true" native="false" synchronized="false"
  39480. static="false" final="false" visibility="public"
  39481. deprecated="not deprecated">
  39482. <doc>
  39483. <![CDATA[Obtain the total number of processors present on the system.
  39484. @return number of processors]]>
  39485. </doc>
  39486. </method>
  39487. <method name="getCpuFrequency" return="long"
  39488. abstract="true" native="false" synchronized="false"
  39489. static="false" final="false" visibility="public"
  39490. deprecated="not deprecated">
  39491. <doc>
  39492. <![CDATA[Obtain the CPU frequency of on the system.
  39493. @return CPU frequency in kHz]]>
  39494. </doc>
  39495. </method>
  39496. <method name="getCumulativeCpuTime" return="long"
  39497. abstract="true" native="false" synchronized="false"
  39498. static="false" final="false" visibility="public"
  39499. deprecated="not deprecated">
  39500. <doc>
  39501. <![CDATA[Obtain the cumulative CPU time since the system is on.
  39502. @return cumulative CPU time in milliseconds]]>
  39503. </doc>
  39504. </method>
  39505. <method name="getCpuUsage" return="float"
  39506. abstract="true" native="false" synchronized="false"
  39507. static="false" final="false" visibility="public"
  39508. deprecated="not deprecated">
  39509. <doc>
  39510. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  39511. @return CPU usage in %]]>
  39512. </doc>
  39513. </method>
  39514. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  39515. abstract="true" native="false" synchronized="false"
  39516. static="false" final="false" visibility="public"
  39517. deprecated="not deprecated">
  39518. <doc>
  39519. <![CDATA[Obtain resource status used by current process tree.]]>
  39520. </doc>
  39521. </method>
  39522. <method name="getResourceCalculatorPlugin" return="org.apache.hadoop.util.ResourceCalculatorPlugin"
  39523. abstract="false" native="false" synchronized="false"
  39524. static="true" final="false" visibility="public"
  39525. deprecated="not deprecated">
  39526. <param name="clazz" type="java.lang.Class"/>
  39527. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39528. <doc>
  39529. <![CDATA[Get the ResourceCalculatorPlugin from the class name and configure it. If
  39530. class name is null, this method will try and return a memory calculator
  39531. plugin available for this system.
  39532. @param clazz class-name
  39533. @param conf configure the plugin with this.
  39534. @return ResourceCalculatorPlugin]]>
  39535. </doc>
  39536. </method>
  39537. <doc>
  39538. <![CDATA[Plugin to calculate resource information on the system.]]>
  39539. </doc>
  39540. </class>
  39541. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  39542. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  39543. <class name="ResourceCalculatorPlugin.ProcResourceValues" extends="java.lang.Object"
  39544. abstract="false"
  39545. static="true" final="false" visibility="public"
  39546. deprecated="not deprecated">
  39547. <constructor name="ResourceCalculatorPlugin.ProcResourceValues" type="long, long, long"
  39548. static="false" final="false" visibility="public"
  39549. deprecated="not deprecated">
  39550. </constructor>
  39551. <method name="getPhysicalMemorySize" return="long"
  39552. abstract="false" native="false" synchronized="false"
  39553. static="false" final="false" visibility="public"
  39554. deprecated="not deprecated">
  39555. <doc>
  39556. <![CDATA[Obtain the physical memory size used by current process tree.
  39557. @return physical memory size in bytes.]]>
  39558. </doc>
  39559. </method>
  39560. <method name="getVirtualMemorySize" return="long"
  39561. abstract="false" native="false" synchronized="false"
  39562. static="false" final="false" visibility="public"
  39563. deprecated="not deprecated">
  39564. <doc>
  39565. <![CDATA[Obtain the virtual memory size used by a current process tree.
  39566. @return virtual memory size in bytes.]]>
  39567. </doc>
  39568. </method>
  39569. <method name="getCumulativeCpuTime" return="long"
  39570. abstract="false" native="false" synchronized="false"
  39571. static="false" final="false" visibility="public"
  39572. deprecated="not deprecated">
  39573. <doc>
  39574. <![CDATA[Obtain the cumulative CPU time used by a current process tree.
  39575. @return cumulative CPU time in milliseconds]]>
  39576. </doc>
  39577. </method>
  39578. </class>
  39579. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  39580. <!-- start class org.apache.hadoop.util.RunJar -->
  39581. <class name="RunJar" extends="java.lang.Object"
  39582. abstract="false"
  39583. static="false" final="false" visibility="public"
  39584. deprecated="not deprecated">
  39585. <constructor name="RunJar"
  39586. static="false" final="false" visibility="public"
  39587. deprecated="not deprecated">
  39588. </constructor>
  39589. <method name="unJar"
  39590. abstract="false" native="false" synchronized="false"
  39591. static="true" final="false" visibility="public"
  39592. deprecated="not deprecated">
  39593. <param name="jarFile" type="java.io.File"/>
  39594. <param name="toDir" type="java.io.File"/>
  39595. <exception name="IOException" type="java.io.IOException"/>
  39596. <doc>
  39597. <![CDATA[Unpack a jar file into a directory.]]>
  39598. </doc>
  39599. </method>
  39600. <method name="main"
  39601. abstract="false" native="false" synchronized="false"
  39602. static="true" final="false" visibility="public"
  39603. deprecated="not deprecated">
  39604. <param name="args" type="java.lang.String[]"/>
  39605. <exception name="Throwable" type="java.lang.Throwable"/>
  39606. <doc>
  39607. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  39608. then it must be provided on the command line.]]>
  39609. </doc>
  39610. </method>
  39611. <doc>
  39612. <![CDATA[Run a Hadoop job jar.]]>
  39613. </doc>
  39614. </class>
  39615. <!-- end class org.apache.hadoop.util.RunJar -->
  39616. <!-- start class org.apache.hadoop.util.ServletUtil -->
  39617. <class name="ServletUtil" extends="java.lang.Object"
  39618. abstract="false"
  39619. static="false" final="false" visibility="public"
  39620. deprecated="not deprecated">
  39621. <constructor name="ServletUtil"
  39622. static="false" final="false" visibility="public"
  39623. deprecated="not deprecated">
  39624. </constructor>
  39625. <method name="initHTML" return="java.io.PrintWriter"
  39626. abstract="false" native="false" synchronized="false"
  39627. static="true" final="false" visibility="public"
  39628. deprecated="not deprecated">
  39629. <param name="response" type="javax.servlet.ServletResponse"/>
  39630. <param name="title" type="java.lang.String"/>
  39631. <exception name="IOException" type="java.io.IOException"/>
  39632. <doc>
  39633. <![CDATA[Initial HTML header]]>
  39634. </doc>
  39635. </method>
  39636. <method name="getParameter" return="java.lang.String"
  39637. abstract="false" native="false" synchronized="false"
  39638. static="true" final="false" visibility="public"
  39639. deprecated="not deprecated">
  39640. <param name="request" type="javax.servlet.ServletRequest"/>
  39641. <param name="name" type="java.lang.String"/>
  39642. <doc>
  39643. <![CDATA[Get a parameter from a ServletRequest.
  39644. Return null if the parameter contains only white spaces.]]>
  39645. </doc>
  39646. </method>
  39647. <method name="htmlFooter" return="java.lang.String"
  39648. abstract="false" native="false" synchronized="false"
  39649. static="true" final="false" visibility="public"
  39650. deprecated="not deprecated">
  39651. <doc>
  39652. <![CDATA[HTML footer to be added in the jsps.
  39653. @return the HTML footer.]]>
  39654. </doc>
  39655. </method>
  39656. <method name="percentageGraph" return="java.lang.String"
  39657. abstract="false" native="false" synchronized="false"
  39658. static="true" final="false" visibility="public"
  39659. deprecated="not deprecated">
  39660. <param name="perc" type="int"/>
  39661. <param name="width" type="int"/>
  39662. <exception name="IOException" type="java.io.IOException"/>
  39663. <doc>
  39664. <![CDATA[Generate the percentage graph and returns HTML representation string
  39665. of the same.
  39666. @param perc The percentage value for which graph is to be generated
  39667. @param width The width of the display table
  39668. @return HTML String representation of the percentage graph
  39669. @throws IOException]]>
  39670. </doc>
  39671. </method>
  39672. <method name="percentageGraph" return="java.lang.String"
  39673. abstract="false" native="false" synchronized="false"
  39674. static="true" final="false" visibility="public"
  39675. deprecated="not deprecated">
  39676. <param name="perc" type="float"/>
  39677. <param name="width" type="int"/>
  39678. <exception name="IOException" type="java.io.IOException"/>
  39679. <doc>
  39680. <![CDATA[Generate the percentage graph and returns HTML representation string
  39681. of the same.
  39682. @param perc The percentage value for which graph is to be generated
  39683. @param width The width of the display table
  39684. @return HTML String representation of the percentage graph
  39685. @throws IOException]]>
  39686. </doc>
  39687. </method>
  39688. <field name="HTML_TAIL" type="java.lang.String"
  39689. transient="false" volatile="false"
  39690. static="true" final="true" visibility="public"
  39691. deprecated="not deprecated">
  39692. </field>
  39693. </class>
  39694. <!-- end class org.apache.hadoop.util.ServletUtil -->
  39695. <!-- start class org.apache.hadoop.util.Shell -->
  39696. <class name="Shell" extends="java.lang.Object"
  39697. abstract="true"
  39698. static="false" final="false" visibility="public"
  39699. deprecated="not deprecated">
  39700. <constructor name="Shell"
  39701. static="false" final="false" visibility="public"
  39702. deprecated="not deprecated">
  39703. </constructor>
  39704. <constructor name="Shell" type="long"
  39705. static="false" final="false" visibility="public"
  39706. deprecated="not deprecated">
  39707. <doc>
  39708. <![CDATA[@param interval the minimum duration to wait before re-executing the
  39709. command.]]>
  39710. </doc>
  39711. </constructor>
  39712. <method name="getGroupsCommand" return="java.lang.String[]"
  39713. abstract="false" native="false" synchronized="false"
  39714. static="true" final="false" visibility="public"
  39715. deprecated="not deprecated">
  39716. <doc>
  39717. <![CDATA[a Unix command to get the current user's groups list]]>
  39718. </doc>
  39719. </method>
  39720. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  39721. abstract="false" native="false" synchronized="false"
  39722. static="true" final="false" visibility="public"
  39723. deprecated="not deprecated">
  39724. <param name="user" type="java.lang.String"/>
  39725. <doc>
  39726. <![CDATA[a Unix command to get a given user's groups list]]>
  39727. </doc>
  39728. </method>
  39729. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  39730. abstract="false" native="false" synchronized="false"
  39731. static="true" final="false" visibility="public"
  39732. deprecated="not deprecated">
  39733. <param name="netgroup" type="java.lang.String"/>
  39734. <doc>
  39735. <![CDATA[a Unix command to get a given netgroup's user list]]>
  39736. </doc>
  39737. </method>
  39738. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  39739. abstract="false" native="false" synchronized="false"
  39740. static="true" final="false" visibility="public"
  39741. deprecated="not deprecated">
  39742. <doc>
  39743. <![CDATA[Return a Unix command to get permission information.]]>
  39744. </doc>
  39745. </method>
  39746. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  39747. abstract="false" native="false" synchronized="false"
  39748. static="true" final="false" visibility="public"
  39749. deprecated="not deprecated">
  39750. <param name="memoryLimit" type="int"/>
  39751. <doc>
  39752. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  39753. to a given child process. This is only relevant when we are forking a
  39754. process from within the Mapper or the Reducer implementations.
  39755. Also see Hadoop Pipes and Hadoop Streaming.
  39756. It also checks to ensure that we are running on a *nix platform else
  39757. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  39758. @param memoryLimit virtual memory limit
  39759. @return a <code>String[]</code> with the ulimit command arguments or
  39760. <code>null</code> if we are running on a non *nix platform or
  39761. if the limit is unspecified.]]>
  39762. </doc>
  39763. </method>
  39764. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  39765. abstract="false" native="false" synchronized="false"
  39766. static="true" final="false" visibility="public"
  39767. deprecated="Use {@link #getUlimitMemoryCommand(int)}">
  39768. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39769. <doc>
  39770. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  39771. to a given child process. This is only relevant when we are forking a
  39772. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  39773. {@link org.apache.hadoop.mapred.Reducer} implementations
  39774. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  39775. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  39776. It also checks to ensure that we are running on a *nix platform else
  39777. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  39778. @param conf configuration
  39779. @return a <code>String[]</code> with the ulimit command arguments or
  39780. <code>null</code> if we are running on a non *nix platform or
  39781. if the limit is unspecified.
  39782. @deprecated Use {@link #getUlimitMemoryCommand(int)}]]>
  39783. </doc>
  39784. </method>
  39785. <method name="setEnvironment"
  39786. abstract="false" native="false" synchronized="false"
  39787. static="false" final="false" visibility="protected"
  39788. deprecated="not deprecated">
  39789. <param name="env" type="java.util.Map"/>
  39790. <doc>
  39791. <![CDATA[set the environment for the command
  39792. @param env Mapping of environment variables]]>
  39793. </doc>
  39794. </method>
  39795. <method name="setWorkingDirectory"
  39796. abstract="false" native="false" synchronized="false"
  39797. static="false" final="false" visibility="protected"
  39798. deprecated="not deprecated">
  39799. <param name="dir" type="java.io.File"/>
  39800. <doc>
  39801. <![CDATA[set the working directory
  39802. @param dir The directory where the command would be executed]]>
  39803. </doc>
  39804. </method>
  39805. <method name="run"
  39806. abstract="false" native="false" synchronized="false"
  39807. static="false" final="false" visibility="protected"
  39808. deprecated="not deprecated">
  39809. <exception name="IOException" type="java.io.IOException"/>
  39810. <doc>
  39811. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  39812. </doc>
  39813. </method>
  39814. <method name="getExecString" return="java.lang.String[]"
  39815. abstract="true" native="false" synchronized="false"
  39816. static="false" final="false" visibility="protected"
  39817. deprecated="not deprecated">
  39818. <doc>
  39819. <![CDATA[return an array containing the command name & its parameters]]>
  39820. </doc>
  39821. </method>
  39822. <method name="parseExecResult"
  39823. abstract="true" native="false" synchronized="false"
  39824. static="false" final="false" visibility="protected"
  39825. deprecated="not deprecated">
  39826. <param name="lines" type="java.io.BufferedReader"/>
  39827. <exception name="IOException" type="java.io.IOException"/>
  39828. <doc>
  39829. <![CDATA[Parse the execution result]]>
  39830. </doc>
  39831. </method>
  39832. <method name="getProcess" return="java.lang.Process"
  39833. abstract="false" native="false" synchronized="false"
  39834. static="false" final="false" visibility="public"
  39835. deprecated="not deprecated">
  39836. <doc>
  39837. <![CDATA[get the current sub-process executing the given command
  39838. @return process executing the command]]>
  39839. </doc>
  39840. </method>
  39841. <method name="getExitCode" return="int"
  39842. abstract="false" native="false" synchronized="false"
  39843. static="false" final="false" visibility="public"
  39844. deprecated="not deprecated">
  39845. <doc>
  39846. <![CDATA[get the exit code
  39847. @return the exit code of the process]]>
  39848. </doc>
  39849. </method>
  39850. <method name="isTimedOut" return="boolean"
  39851. abstract="false" native="false" synchronized="false"
  39852. static="false" final="false" visibility="public"
  39853. deprecated="not deprecated">
  39854. <doc>
  39855. <![CDATA[To check if the passed script to shell command executor timed out or
  39856. not.
  39857. @return if the script timed out.]]>
  39858. </doc>
  39859. </method>
  39860. <method name="execCommand" return="java.lang.String"
  39861. abstract="false" native="false" synchronized="false"
  39862. static="true" final="false" visibility="public"
  39863. deprecated="not deprecated">
  39864. <param name="cmd" type="java.lang.String[]"/>
  39865. <exception name="IOException" type="java.io.IOException"/>
  39866. <doc>
  39867. <![CDATA[Static method to execute a shell command.
  39868. Covers most of the simple cases without requiring the user to implement
  39869. the <code>Shell</code> interface.
  39870. @param cmd shell command to execute.
  39871. @return the output of the executed command.]]>
  39872. </doc>
  39873. </method>
  39874. <method name="execCommand" return="java.lang.String"
  39875. abstract="false" native="false" synchronized="false"
  39876. static="true" final="false" visibility="public"
  39877. deprecated="not deprecated">
  39878. <param name="env" type="java.util.Map"/>
  39879. <param name="cmd" type="java.lang.String[]"/>
  39880. <param name="timeout" type="long"/>
  39881. <exception name="IOException" type="java.io.IOException"/>
  39882. <doc>
  39883. <![CDATA[Static method to execute a shell command.
  39884. Covers most of the simple cases without requiring the user to implement
  39885. the <code>Shell</code> interface.
  39886. @param env the map of environment key=value
  39887. @param cmd shell command to execute.
  39888. @param timeout time in milliseconds after which script should be marked timeout
  39889. @return the output of the executed command.o]]>
  39890. </doc>
  39891. </method>
  39892. <method name="execCommand" return="java.lang.String"
  39893. abstract="false" native="false" synchronized="false"
  39894. static="true" final="false" visibility="public"
  39895. deprecated="not deprecated">
  39896. <param name="env" type="java.util.Map"/>
  39897. <param name="cmd" type="java.lang.String[]"/>
  39898. <exception name="IOException" type="java.io.IOException"/>
  39899. <doc>
  39900. <![CDATA[Static method to execute a shell command.
  39901. Covers most of the simple cases without requiring the user to implement
  39902. the <code>Shell</code> interface.
  39903. @param env the map of environment key=value
  39904. @param cmd shell command to execute.
  39905. @return the output of the executed command.]]>
  39906. </doc>
  39907. </method>
  39908. <field name="LOG" type="org.apache.commons.logging.Log"
  39909. transient="false" volatile="false"
  39910. static="true" final="true" visibility="public"
  39911. deprecated="not deprecated">
  39912. </field>
  39913. <field name="USER_NAME_COMMAND" type="java.lang.String"
  39914. transient="false" volatile="false"
  39915. static="true" final="true" visibility="public"
  39916. deprecated="not deprecated">
  39917. <doc>
  39918. <![CDATA[a Unix command to get the current user's name]]>
  39919. </doc>
  39920. </field>
  39921. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  39922. transient="false" volatile="false"
  39923. static="true" final="true" visibility="public"
  39924. deprecated="not deprecated">
  39925. <doc>
  39926. <![CDATA[a Unix command to set permission]]>
  39927. </doc>
  39928. </field>
  39929. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  39930. transient="false" volatile="false"
  39931. static="true" final="true" visibility="public"
  39932. deprecated="not deprecated">
  39933. <doc>
  39934. <![CDATA[a Unix command to set owner]]>
  39935. </doc>
  39936. </field>
  39937. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  39938. transient="false" volatile="false"
  39939. static="true" final="true" visibility="public"
  39940. deprecated="not deprecated">
  39941. </field>
  39942. <field name="timeOutInterval" type="long"
  39943. transient="false" volatile="false"
  39944. static="false" final="false" visibility="protected"
  39945. deprecated="not deprecated">
  39946. <doc>
  39947. <![CDATA[Time after which the executing script would be timedout]]>
  39948. </doc>
  39949. </field>
  39950. <field name="ULIMIT_COMMAND" type="java.lang.String"
  39951. transient="false" volatile="false"
  39952. static="true" final="true" visibility="public"
  39953. deprecated="not deprecated">
  39954. <doc>
  39955. <![CDATA[a Unix command to get ulimit of a process.]]>
  39956. </doc>
  39957. </field>
  39958. <field name="WINDOWS" type="boolean"
  39959. transient="false" volatile="false"
  39960. static="true" final="true" visibility="public"
  39961. deprecated="not deprecated">
  39962. <doc>
  39963. <![CDATA[Set to true on Windows platforms]]>
  39964. </doc>
  39965. </field>
  39966. <doc>
  39967. <![CDATA[A base class for running a Unix command.
  39968. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  39969. <code>df</code>. It also offers facilities to gate commands by
  39970. time-intervals.]]>
  39971. </doc>
  39972. </class>
  39973. <!-- end class org.apache.hadoop.util.Shell -->
  39974. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  39975. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  39976. abstract="false"
  39977. static="true" final="false" visibility="public"
  39978. deprecated="not deprecated">
  39979. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  39980. static="false" final="false" visibility="public"
  39981. deprecated="not deprecated">
  39982. </constructor>
  39983. <method name="getExitCode" return="int"
  39984. abstract="false" native="false" synchronized="false"
  39985. static="false" final="false" visibility="public"
  39986. deprecated="not deprecated">
  39987. </method>
  39988. <doc>
  39989. <![CDATA[This is an IOException with exit code added.]]>
  39990. </doc>
  39991. </class>
  39992. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  39993. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  39994. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  39995. abstract="false"
  39996. static="true" final="false" visibility="public"
  39997. deprecated="not deprecated">
  39998. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  39999. static="false" final="false" visibility="public"
  40000. deprecated="not deprecated">
  40001. </constructor>
  40002. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  40003. static="false" final="false" visibility="public"
  40004. deprecated="not deprecated">
  40005. </constructor>
  40006. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  40007. static="false" final="false" visibility="public"
  40008. deprecated="not deprecated">
  40009. </constructor>
  40010. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  40011. static="false" final="false" visibility="public"
  40012. deprecated="not deprecated">
  40013. <doc>
  40014. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  40015. @param execString The command to execute with arguments
  40016. @param dir If not-null, specifies the directory which should be set
  40017. as the current working directory for the command.
  40018. If null, the current working directory is not modified.
  40019. @param env If not-null, environment of the command will include the
  40020. key-value pairs specified in the map. If null, the current
  40021. environment is not modified.
  40022. @param timeout Specifies the time in milliseconds, after which the
  40023. command will be killed and the status marked as timedout.
  40024. If 0, the command will not be timed out.]]>
  40025. </doc>
  40026. </constructor>
  40027. <method name="execute"
  40028. abstract="false" native="false" synchronized="false"
  40029. static="false" final="false" visibility="public"
  40030. deprecated="not deprecated">
  40031. <exception name="IOException" type="java.io.IOException"/>
  40032. <doc>
  40033. <![CDATA[Execute the shell command.]]>
  40034. </doc>
  40035. </method>
  40036. <method name="getExecString" return="java.lang.String[]"
  40037. abstract="false" native="false" synchronized="false"
  40038. static="false" final="false" visibility="protected"
  40039. deprecated="not deprecated">
  40040. </method>
  40041. <method name="parseExecResult"
  40042. abstract="false" native="false" synchronized="false"
  40043. static="false" final="false" visibility="protected"
  40044. deprecated="not deprecated">
  40045. <param name="lines" type="java.io.BufferedReader"/>
  40046. <exception name="IOException" type="java.io.IOException"/>
  40047. </method>
  40048. <method name="getOutput" return="java.lang.String"
  40049. abstract="false" native="false" synchronized="false"
  40050. static="false" final="false" visibility="public"
  40051. deprecated="not deprecated">
  40052. <doc>
  40053. <![CDATA[Get the output of the shell command.]]>
  40054. </doc>
  40055. </method>
  40056. <method name="toString" return="java.lang.String"
  40057. abstract="false" native="false" synchronized="false"
  40058. static="false" final="false" visibility="public"
  40059. deprecated="not deprecated">
  40060. <doc>
  40061. <![CDATA[Returns the commands of this instance.
  40062. Arguments with spaces in are presented with quotes round; other
  40063. arguments are presented raw
  40064. @return a string representation of the object.]]>
  40065. </doc>
  40066. </method>
  40067. <doc>
  40068. <![CDATA[A simple shell command executor.
  40069. <code>ShellCommandExecutor</code>should be used in cases where the output
  40070. of the command needs no explicit parsing and where the command, working
  40071. directory and the environment remains unchanged. The output of the command
  40072. is stored as-is and is expected to be small.]]>
  40073. </doc>
  40074. </class>
  40075. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  40076. <!-- start class org.apache.hadoop.util.StringUtils -->
  40077. <class name="StringUtils" extends="java.lang.Object"
  40078. abstract="false"
  40079. static="false" final="false" visibility="public"
  40080. deprecated="not deprecated">
  40081. <constructor name="StringUtils"
  40082. static="false" final="false" visibility="public"
  40083. deprecated="not deprecated">
  40084. </constructor>
  40085. <method name="stringifyException" return="java.lang.String"
  40086. abstract="false" native="false" synchronized="false"
  40087. static="true" final="false" visibility="public"
  40088. deprecated="not deprecated">
  40089. <param name="e" type="java.lang.Throwable"/>
  40090. <doc>
  40091. <![CDATA[Make a string representation of the exception.
  40092. @param e The exception to stringify
  40093. @return A string with exception name and call stack.]]>
  40094. </doc>
  40095. </method>
  40096. <method name="simpleHostname" return="java.lang.String"
  40097. abstract="false" native="false" synchronized="false"
  40098. static="true" final="false" visibility="public"
  40099. deprecated="not deprecated">
  40100. <param name="fullHostname" type="java.lang.String"/>
  40101. <doc>
  40102. <![CDATA[Given a full hostname, return the word upto the first dot.
  40103. @param fullHostname the full hostname
  40104. @return the hostname to the first dot]]>
  40105. </doc>
  40106. </method>
  40107. <method name="humanReadableInt" return="java.lang.String"
  40108. abstract="false" native="false" synchronized="false"
  40109. static="true" final="false" visibility="public"
  40110. deprecated="not deprecated">
  40111. <param name="number" type="long"/>
  40112. <doc>
  40113. <![CDATA[Given an integer, return a string that is in an approximate, but human
  40114. readable format.
  40115. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  40116. @param number the number to format
  40117. @return a human readable form of the integer]]>
  40118. </doc>
  40119. </method>
  40120. <method name="formatPercent" return="java.lang.String"
  40121. abstract="false" native="false" synchronized="false"
  40122. static="true" final="false" visibility="public"
  40123. deprecated="not deprecated">
  40124. <param name="done" type="double"/>
  40125. <param name="digits" type="int"/>
  40126. <doc>
  40127. <![CDATA[Format a percentage for presentation to the user.
  40128. @param done the percentage to format (0.0 to 1.0)
  40129. @param digits the number of digits past the decimal point
  40130. @return a string representation of the percentage]]>
  40131. </doc>
  40132. </method>
  40133. <method name="arrayToString" return="java.lang.String"
  40134. abstract="false" native="false" synchronized="false"
  40135. static="true" final="false" visibility="public"
  40136. deprecated="not deprecated">
  40137. <param name="strs" type="java.lang.String[]"/>
  40138. <doc>
  40139. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  40140. @param strs Array of strings
  40141. @return Empty string if strs.length is 0, comma separated list of strings
  40142. otherwise]]>
  40143. </doc>
  40144. </method>
  40145. <method name="byteToHexString" return="java.lang.String"
  40146. abstract="false" native="false" synchronized="false"
  40147. static="true" final="false" visibility="public"
  40148. deprecated="not deprecated">
  40149. <param name="bytes" type="byte[]"/>
  40150. <param name="start" type="int"/>
  40151. <param name="end" type="int"/>
  40152. <doc>
  40153. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  40154. representation of the bytes
  40155. @param bytes
  40156. @param start start index, inclusively
  40157. @param end end index, exclusively
  40158. @return hex string representation of the byte array]]>
  40159. </doc>
  40160. </method>
  40161. <method name="byteToHexString" return="java.lang.String"
  40162. abstract="false" native="false" synchronized="false"
  40163. static="true" final="false" visibility="public"
  40164. deprecated="not deprecated">
  40165. <param name="bytes" type="byte[]"/>
  40166. <doc>
  40167. <![CDATA[Same as byteToHexString(bytes, 0, bytes.length).]]>
  40168. </doc>
  40169. </method>
  40170. <method name="hexStringToByte" return="byte[]"
  40171. abstract="false" native="false" synchronized="false"
  40172. static="true" final="false" visibility="public"
  40173. deprecated="not deprecated">
  40174. <param name="hex" type="java.lang.String"/>
  40175. <doc>
  40176. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  40177. string
  40178. @param hex the hex String array
  40179. @return a byte array that is a hex string representation of the given
  40180. string. The size of the byte array is therefore hex.length/2]]>
  40181. </doc>
  40182. </method>
  40183. <method name="uriToString" return="java.lang.String"
  40184. abstract="false" native="false" synchronized="false"
  40185. static="true" final="false" visibility="public"
  40186. deprecated="not deprecated">
  40187. <param name="uris" type="java.net.URI[]"/>
  40188. <doc>
  40189. <![CDATA[@param uris]]>
  40190. </doc>
  40191. </method>
  40192. <method name="stringToURI" return="java.net.URI[]"
  40193. abstract="false" native="false" synchronized="false"
  40194. static="true" final="false" visibility="public"
  40195. deprecated="not deprecated">
  40196. <param name="str" type="java.lang.String[]"/>
  40197. <doc>
  40198. <![CDATA[@param str]]>
  40199. </doc>
  40200. </method>
  40201. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  40202. abstract="false" native="false" synchronized="false"
  40203. static="true" final="false" visibility="public"
  40204. deprecated="not deprecated">
  40205. <param name="str" type="java.lang.String[]"/>
  40206. <doc>
  40207. <![CDATA[@param str]]>
  40208. </doc>
  40209. </method>
  40210. <method name="formatTimeDiff" return="java.lang.String"
  40211. abstract="false" native="false" synchronized="false"
  40212. static="true" final="false" visibility="public"
  40213. deprecated="not deprecated">
  40214. <param name="finishTime" type="long"/>
  40215. <param name="startTime" type="long"/>
  40216. <doc>
  40217. <![CDATA[Given a finish and start time in long milliseconds, returns a
  40218. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  40219. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  40220. @param finishTime finish time
  40221. @param startTime start time]]>
  40222. </doc>
  40223. </method>
  40224. <method name="formatTime" return="java.lang.String"
  40225. abstract="false" native="false" synchronized="false"
  40226. static="true" final="false" visibility="public"
  40227. deprecated="not deprecated">
  40228. <param name="timeDiff" type="long"/>
  40229. <doc>
  40230. <![CDATA[Given the time in long milliseconds, returns a
  40231. String in the format Xhrs, Ymins, Z sec.
  40232. @param timeDiff The time difference to format]]>
  40233. </doc>
  40234. </method>
  40235. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  40236. abstract="false" native="false" synchronized="false"
  40237. static="true" final="false" visibility="public"
  40238. deprecated="not deprecated">
  40239. <param name="dateFormat" type="java.text.DateFormat"/>
  40240. <param name="finishTime" type="long"/>
  40241. <param name="startTime" type="long"/>
  40242. <doc>
  40243. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  40244. as returned by formatTimeDiff().
  40245. If finish time is 0, empty string is returned, if start time is 0
  40246. then difference is not appended to return value.
  40247. @param dateFormat date format to use
  40248. @param finishTime fnish time
  40249. @param startTime start time
  40250. @return formatted value.]]>
  40251. </doc>
  40252. </method>
  40253. <method name="getStrings" return="java.lang.String[]"
  40254. abstract="false" native="false" synchronized="false"
  40255. static="true" final="false" visibility="public"
  40256. deprecated="not deprecated">
  40257. <param name="str" type="java.lang.String"/>
  40258. <doc>
  40259. <![CDATA[Returns an arraylist of strings.
  40260. @param str the comma seperated string values
  40261. @return the arraylist of the comma seperated string values]]>
  40262. </doc>
  40263. </method>
  40264. <method name="getStringCollection" return="java.util.Collection"
  40265. abstract="false" native="false" synchronized="false"
  40266. static="true" final="false" visibility="public"
  40267. deprecated="not deprecated">
  40268. <param name="str" type="java.lang.String"/>
  40269. <doc>
  40270. <![CDATA[Returns a collection of strings.
  40271. @param str comma seperated string values
  40272. @return an <code>ArrayList</code> of string values]]>
  40273. </doc>
  40274. </method>
  40275. <method name="split" return="java.lang.String[]"
  40276. abstract="false" native="false" synchronized="false"
  40277. static="true" final="false" visibility="public"
  40278. deprecated="not deprecated">
  40279. <param name="str" type="java.lang.String"/>
  40280. <doc>
  40281. <![CDATA[Split a string using the default separator
  40282. @param str a string that may have escaped separator
  40283. @return an array of strings]]>
  40284. </doc>
  40285. </method>
  40286. <method name="split" return="java.lang.String[]"
  40287. abstract="false" native="false" synchronized="false"
  40288. static="true" final="false" visibility="public"
  40289. deprecated="not deprecated">
  40290. <param name="str" type="java.lang.String"/>
  40291. <param name="escapeChar" type="char"/>
  40292. <param name="separator" type="char"/>
  40293. <doc>
  40294. <![CDATA[Split a string using the given separator
  40295. @param str a string that may have escaped separator
  40296. @param escapeChar a char that be used to escape the separator
  40297. @param separator a separator char
  40298. @return an array of strings]]>
  40299. </doc>
  40300. </method>
  40301. <method name="findNext" return="int"
  40302. abstract="false" native="false" synchronized="false"
  40303. static="true" final="false" visibility="public"
  40304. deprecated="not deprecated">
  40305. <param name="str" type="java.lang.String"/>
  40306. <param name="separator" type="char"/>
  40307. <param name="escapeChar" type="char"/>
  40308. <param name="start" type="int"/>
  40309. <param name="split" type="java.lang.StringBuilder"/>
  40310. <doc>
  40311. <![CDATA[Finds the first occurrence of the separator character ignoring the escaped
  40312. separators starting from the index. Note the substring between the index
  40313. and the position of the separator is passed.
  40314. @param str the source string
  40315. @param separator the character to find
  40316. @param escapeChar character used to escape
  40317. @param start from where to search
  40318. @param split used to pass back the extracted string]]>
  40319. </doc>
  40320. </method>
  40321. <method name="escapeString" return="java.lang.String"
  40322. abstract="false" native="false" synchronized="false"
  40323. static="true" final="false" visibility="public"
  40324. deprecated="not deprecated">
  40325. <param name="str" type="java.lang.String"/>
  40326. <doc>
  40327. <![CDATA[Escape commas in the string using the default escape char
  40328. @param str a string
  40329. @return an escaped string]]>
  40330. </doc>
  40331. </method>
  40332. <method name="escapeString" return="java.lang.String"
  40333. abstract="false" native="false" synchronized="false"
  40334. static="true" final="false" visibility="public"
  40335. deprecated="not deprecated">
  40336. <param name="str" type="java.lang.String"/>
  40337. <param name="escapeChar" type="char"/>
  40338. <param name="charToEscape" type="char"/>
  40339. <doc>
  40340. <![CDATA[Escape <code>charToEscape</code> in the string
  40341. with the escape char <code>escapeChar</code>
  40342. @param str string
  40343. @param escapeChar escape char
  40344. @param charToEscape the char to be escaped
  40345. @return an escaped string]]>
  40346. </doc>
  40347. </method>
  40348. <method name="escapeString" return="java.lang.String"
  40349. abstract="false" native="false" synchronized="false"
  40350. static="true" final="false" visibility="public"
  40351. deprecated="not deprecated">
  40352. <param name="str" type="java.lang.String"/>
  40353. <param name="escapeChar" type="char"/>
  40354. <param name="charsToEscape" type="char[]"/>
  40355. <doc>
  40356. <![CDATA[@param charsToEscape array of characters to be escaped]]>
  40357. </doc>
  40358. </method>
  40359. <method name="unEscapeString" return="java.lang.String"
  40360. abstract="false" native="false" synchronized="false"
  40361. static="true" final="false" visibility="public"
  40362. deprecated="not deprecated">
  40363. <param name="str" type="java.lang.String"/>
  40364. <doc>
  40365. <![CDATA[Unescape commas in the string using the default escape char
  40366. @param str a string
  40367. @return an unescaped string]]>
  40368. </doc>
  40369. </method>
  40370. <method name="unEscapeString" return="java.lang.String"
  40371. abstract="false" native="false" synchronized="false"
  40372. static="true" final="false" visibility="public"
  40373. deprecated="not deprecated">
  40374. <param name="str" type="java.lang.String"/>
  40375. <param name="escapeChar" type="char"/>
  40376. <param name="charToEscape" type="char"/>
  40377. <doc>
  40378. <![CDATA[Unescape <code>charToEscape</code> in the string
  40379. with the escape char <code>escapeChar</code>
  40380. @param str string
  40381. @param escapeChar escape char
  40382. @param charToEscape the escaped char
  40383. @return an unescaped string]]>
  40384. </doc>
  40385. </method>
  40386. <method name="unEscapeString" return="java.lang.String"
  40387. abstract="false" native="false" synchronized="false"
  40388. static="true" final="false" visibility="public"
  40389. deprecated="not deprecated">
  40390. <param name="str" type="java.lang.String"/>
  40391. <param name="escapeChar" type="char"/>
  40392. <param name="charsToEscape" type="char[]"/>
  40393. <doc>
  40394. <![CDATA[@param charsToEscape array of characters to unescape]]>
  40395. </doc>
  40396. </method>
  40397. <method name="getHostname" return="java.lang.String"
  40398. abstract="false" native="false" synchronized="false"
  40399. static="true" final="false" visibility="public"
  40400. deprecated="not deprecated">
  40401. <doc>
  40402. <![CDATA[Return hostname without throwing exception.
  40403. @return hostname]]>
  40404. </doc>
  40405. </method>
  40406. <method name="startupShutdownMessage"
  40407. abstract="false" native="false" synchronized="false"
  40408. static="true" final="false" visibility="public"
  40409. deprecated="not deprecated">
  40410. <param name="clazz" type="java.lang.Class"/>
  40411. <param name="args" type="java.lang.String[]"/>
  40412. <param name="LOG" type="org.apache.commons.logging.Log"/>
  40413. <doc>
  40414. <![CDATA[Print a log message for starting up and shutting down
  40415. @param clazz the class of the server
  40416. @param args arguments
  40417. @param LOG the target log object]]>
  40418. </doc>
  40419. </method>
  40420. <method name="escapeHTML" return="java.lang.String"
  40421. abstract="false" native="false" synchronized="false"
  40422. static="true" final="false" visibility="public"
  40423. deprecated="not deprecated">
  40424. <param name="string" type="java.lang.String"/>
  40425. <doc>
  40426. <![CDATA[Escapes HTML Special characters present in the string.
  40427. @param string
  40428. @return HTML Escaped String representation]]>
  40429. </doc>
  40430. </method>
  40431. <method name="byteDesc" return="java.lang.String"
  40432. abstract="false" native="false" synchronized="false"
  40433. static="true" final="false" visibility="public"
  40434. deprecated="not deprecated">
  40435. <param name="len" type="long"/>
  40436. <doc>
  40437. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  40438. </doc>
  40439. </method>
  40440. <method name="limitDecimalTo2" return="java.lang.String"
  40441. abstract="false" native="false" synchronized="true"
  40442. static="true" final="false" visibility="public"
  40443. deprecated="not deprecated">
  40444. <param name="d" type="double"/>
  40445. </method>
  40446. <method name="join" return="java.lang.String"
  40447. abstract="false" native="false" synchronized="false"
  40448. static="true" final="false" visibility="public"
  40449. deprecated="not deprecated">
  40450. <param name="separator" type="java.lang.CharSequence"/>
  40451. <param name="strings" type="java.lang.Iterable"/>
  40452. <doc>
  40453. <![CDATA[Concatenates strings, using a separator.
  40454. @param separator Separator to join with.
  40455. @param strings Strings to join.
  40456. @return the joined string]]>
  40457. </doc>
  40458. </method>
  40459. <method name="join" return="java.lang.String"
  40460. abstract="false" native="false" synchronized="false"
  40461. static="true" final="false" visibility="public"
  40462. deprecated="not deprecated">
  40463. <param name="separator" type="java.lang.CharSequence"/>
  40464. <param name="strings" type="java.lang.String[]"/>
  40465. <doc>
  40466. <![CDATA[Concatenates strings, using a separator.
  40467. @param separator to join with
  40468. @param strings to join
  40469. @return the joined string]]>
  40470. </doc>
  40471. </method>
  40472. <method name="capitalize" return="java.lang.String"
  40473. abstract="false" native="false" synchronized="false"
  40474. static="true" final="false" visibility="public"
  40475. deprecated="not deprecated">
  40476. <param name="s" type="java.lang.String"/>
  40477. <doc>
  40478. <![CDATA[Capitalize a word
  40479. @param s the input string
  40480. @return capitalized string]]>
  40481. </doc>
  40482. </method>
  40483. <method name="camelize" return="java.lang.String"
  40484. abstract="false" native="false" synchronized="false"
  40485. static="true" final="false" visibility="public"
  40486. deprecated="not deprecated">
  40487. <param name="s" type="java.lang.String"/>
  40488. <doc>
  40489. <![CDATA[Convert SOME_STUFF to SomeStuff
  40490. @param s input string
  40491. @return camelized string]]>
  40492. </doc>
  40493. </method>
  40494. <field name="COMMA" type="char"
  40495. transient="false" volatile="false"
  40496. static="true" final="true" visibility="public"
  40497. deprecated="not deprecated">
  40498. </field>
  40499. <field name="COMMA_STR" type="java.lang.String"
  40500. transient="false" volatile="false"
  40501. static="true" final="true" visibility="public"
  40502. deprecated="not deprecated">
  40503. </field>
  40504. <field name="ESCAPE_CHAR" type="char"
  40505. transient="false" volatile="false"
  40506. static="true" final="true" visibility="public"
  40507. deprecated="not deprecated">
  40508. </field>
  40509. <doc>
  40510. <![CDATA[General string utils]]>
  40511. </doc>
  40512. </class>
  40513. <!-- end class org.apache.hadoop.util.StringUtils -->
  40514. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  40515. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  40516. abstract="false"
  40517. static="true" final="true" visibility="public"
  40518. deprecated="not deprecated">
  40519. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  40520. abstract="false" native="false" synchronized="false"
  40521. static="true" final="false" visibility="public"
  40522. deprecated="not deprecated">
  40523. </method>
  40524. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40525. abstract="false" native="false" synchronized="false"
  40526. static="true" final="false" visibility="public"
  40527. deprecated="not deprecated">
  40528. <param name="name" type="java.lang.String"/>
  40529. </method>
  40530. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40531. abstract="false" native="false" synchronized="false"
  40532. static="true" final="false" visibility="public"
  40533. deprecated="not deprecated">
  40534. <param name="symbol" type="char"/>
  40535. <doc>
  40536. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  40537. </doc>
  40538. </method>
  40539. <method name="string2long" return="long"
  40540. abstract="false" native="false" synchronized="false"
  40541. static="true" final="false" visibility="public"
  40542. deprecated="not deprecated">
  40543. <param name="s" type="java.lang.String"/>
  40544. <doc>
  40545. <![CDATA[Convert a string to long.
  40546. The input string is first be trimmed
  40547. and then it is parsed with traditional binary prefix.
  40548. For example,
  40549. "-1230k" will be converted to -1230 * 1024 = -1259520;
  40550. "891g" will be converted to 891 * 1024^3 = 956703965184;
  40551. @param s input string
  40552. @return a long value represented by the input string.]]>
  40553. </doc>
  40554. </method>
  40555. <field name="KILO" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40556. transient="false" volatile="false"
  40557. static="true" final="true" visibility="public"
  40558. deprecated="not deprecated">
  40559. </field>
  40560. <field name="MEGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40561. transient="false" volatile="false"
  40562. static="true" final="true" visibility="public"
  40563. deprecated="not deprecated">
  40564. </field>
  40565. <field name="GIGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40566. transient="false" volatile="false"
  40567. static="true" final="true" visibility="public"
  40568. deprecated="not deprecated">
  40569. </field>
  40570. <field name="TERA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40571. transient="false" volatile="false"
  40572. static="true" final="true" visibility="public"
  40573. deprecated="not deprecated">
  40574. </field>
  40575. <field name="PETA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40576. transient="false" volatile="false"
  40577. static="true" final="true" visibility="public"
  40578. deprecated="not deprecated">
  40579. </field>
  40580. <field name="EXA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40581. transient="false" volatile="false"
  40582. static="true" final="true" visibility="public"
  40583. deprecated="not deprecated">
  40584. </field>
  40585. <field name="value" type="long"
  40586. transient="false" volatile="false"
  40587. static="false" final="true" visibility="public"
  40588. deprecated="not deprecated">
  40589. </field>
  40590. <field name="symbol" type="char"
  40591. transient="false" volatile="false"
  40592. static="false" final="true" visibility="public"
  40593. deprecated="not deprecated">
  40594. </field>
  40595. <doc>
  40596. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  40597. which can be represented by a 64-bit integer.
  40598. TraditionalBinaryPrefix symbol are case insensitive.]]>
  40599. </doc>
  40600. </class>
  40601. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  40602. <!-- start interface org.apache.hadoop.util.Tool -->
  40603. <interface name="Tool" abstract="true"
  40604. static="false" final="false" visibility="public"
  40605. deprecated="not deprecated">
  40606. <implements name="org.apache.hadoop.conf.Configurable"/>
  40607. <method name="run" return="int"
  40608. abstract="false" native="false" synchronized="false"
  40609. static="false" final="false" visibility="public"
  40610. deprecated="not deprecated">
  40611. <param name="args" type="java.lang.String[]"/>
  40612. <exception name="Exception" type="java.lang.Exception"/>
  40613. <doc>
  40614. <![CDATA[Execute the command with the given arguments.
  40615. @param args command specific arguments.
  40616. @return exit code.
  40617. @throws Exception]]>
  40618. </doc>
  40619. </method>
  40620. <doc>
  40621. <![CDATA[A tool interface that supports handling of generic command-line options.
  40622. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  40623. The tool/application should delegate the handling of
  40624. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  40625. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  40626. and only handle its custom arguments.</p>
  40627. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  40628. <p><blockquote><pre>
  40629. public class MyApp extends Configured implements Tool {
  40630. public int run(String[] args) throws Exception {
  40631. // <code>Configuration</code> processed by <code>ToolRunner</code>
  40632. Configuration conf = getConf();
  40633. // Create a JobConf using the processed <code>conf</code>
  40634. JobConf job = new JobConf(conf, MyApp.class);
  40635. // Process custom command-line options
  40636. Path in = new Path(args[1]);
  40637. Path out = new Path(args[2]);
  40638. // Specify various job-specific parameters
  40639. job.setJobName("my-app");
  40640. job.setInputPath(in);
  40641. job.setOutputPath(out);
  40642. job.setMapperClass(MyApp.MyMapper.class);
  40643. job.setReducerClass(MyApp.MyReducer.class);
  40644. // Submit the job, then poll for progress until the job is complete
  40645. JobClient.runJob(job);
  40646. }
  40647. public static void main(String[] args) throws Exception {
  40648. // Let <code>ToolRunner</code> handle generic command-line options
  40649. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  40650. System.exit(res);
  40651. }
  40652. }
  40653. </pre></blockquote></p>
  40654. @see GenericOptionsParser
  40655. @see ToolRunner]]>
  40656. </doc>
  40657. </interface>
  40658. <!-- end interface org.apache.hadoop.util.Tool -->
  40659. <!-- start class org.apache.hadoop.util.ToolRunner -->
  40660. <class name="ToolRunner" extends="java.lang.Object"
  40661. abstract="false"
  40662. static="false" final="false" visibility="public"
  40663. deprecated="not deprecated">
  40664. <constructor name="ToolRunner"
  40665. static="false" final="false" visibility="public"
  40666. deprecated="not deprecated">
  40667. </constructor>
  40668. <method name="run" return="int"
  40669. abstract="false" native="false" synchronized="false"
  40670. static="true" final="false" visibility="public"
  40671. deprecated="not deprecated">
  40672. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40673. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  40674. <param name="args" type="java.lang.String[]"/>
  40675. <exception name="Exception" type="java.lang.Exception"/>
  40676. <doc>
  40677. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  40678. parsing with the given generic arguments. Uses the given
  40679. <code>Configuration</code>, or builds one if null.
  40680. Sets the <code>Tool</code>'s configuration with the possibly modified
  40681. version of the <code>conf</code>.
  40682. @param conf <code>Configuration</code> for the <code>Tool</code>.
  40683. @param tool <code>Tool</code> to run.
  40684. @param args command-line arguments to the tool.
  40685. @return exit code of the {@link Tool#run(String[])} method.]]>
  40686. </doc>
  40687. </method>
  40688. <method name="run" return="int"
  40689. abstract="false" native="false" synchronized="false"
  40690. static="true" final="false" visibility="public"
  40691. deprecated="not deprecated">
  40692. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  40693. <param name="args" type="java.lang.String[]"/>
  40694. <exception name="Exception" type="java.lang.Exception"/>
  40695. <doc>
  40696. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  40697. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  40698. @param tool <code>Tool</code> to run.
  40699. @param args command-line arguments to the tool.
  40700. @return exit code of the {@link Tool#run(String[])} method.]]>
  40701. </doc>
  40702. </method>
  40703. <method name="printGenericCommandUsage"
  40704. abstract="false" native="false" synchronized="false"
  40705. static="true" final="false" visibility="public"
  40706. deprecated="not deprecated">
  40707. <param name="out" type="java.io.PrintStream"/>
  40708. <doc>
  40709. <![CDATA[Prints generic command-line argurments and usage information.
  40710. @param out stream to write usage information to.]]>
  40711. </doc>
  40712. </method>
  40713. <doc>
  40714. <![CDATA[A utility to help run {@link Tool}s.
  40715. <p><code>ToolRunner</code> can be used to run classes implementing
  40716. <code>Tool</code> interface. It works in conjunction with
  40717. {@link GenericOptionsParser} to parse the
  40718. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  40719. generic hadoop command line arguments</a> and modifies the
  40720. <code>Configuration</code> of the <code>Tool</code>. The
  40721. application-specific options are passed along without being modified.
  40722. </p>
  40723. @see Tool
  40724. @see GenericOptionsParser]]>
  40725. </doc>
  40726. </class>
  40727. <!-- end class org.apache.hadoop.util.ToolRunner -->
  40728. <!-- start class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  40729. <class name="UTF8ByteArrayUtils" extends="java.lang.Object"
  40730. abstract="false"
  40731. static="false" final="false" visibility="public"
  40732. deprecated="not deprecated">
  40733. <constructor name="UTF8ByteArrayUtils"
  40734. static="false" final="false" visibility="public"
  40735. deprecated="not deprecated">
  40736. </constructor>
  40737. <method name="findByte" return="int"
  40738. abstract="false" native="false" synchronized="false"
  40739. static="true" final="false" visibility="public"
  40740. deprecated="not deprecated">
  40741. <param name="utf" type="byte[]"/>
  40742. <param name="start" type="int"/>
  40743. <param name="end" type="int"/>
  40744. <param name="b" type="byte"/>
  40745. <doc>
  40746. <![CDATA[Find the first occurrence of the given byte b in a UTF-8 encoded string
  40747. @param utf a byte array containing a UTF-8 encoded string
  40748. @param start starting offset
  40749. @param end ending position
  40750. @param b the byte to find
  40751. @return position that first byte occures otherwise -1]]>
  40752. </doc>
  40753. </method>
  40754. <method name="findBytes" return="int"
  40755. abstract="false" native="false" synchronized="false"
  40756. static="true" final="false" visibility="public"
  40757. deprecated="not deprecated">
  40758. <param name="utf" type="byte[]"/>
  40759. <param name="start" type="int"/>
  40760. <param name="end" type="int"/>
  40761. <param name="b" type="byte[]"/>
  40762. <doc>
  40763. <![CDATA[Find the first occurrence of the given bytes b in a UTF-8 encoded string
  40764. @param utf a byte array containing a UTF-8 encoded string
  40765. @param start starting offset
  40766. @param end ending position
  40767. @param b the bytes to find
  40768. @return position that first byte occures otherwise -1]]>
  40769. </doc>
  40770. </method>
  40771. <method name="findNthByte" return="int"
  40772. abstract="false" native="false" synchronized="false"
  40773. static="true" final="false" visibility="public"
  40774. deprecated="not deprecated">
  40775. <param name="utf" type="byte[]"/>
  40776. <param name="start" type="int"/>
  40777. <param name="length" type="int"/>
  40778. <param name="b" type="byte"/>
  40779. <param name="n" type="int"/>
  40780. <doc>
  40781. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  40782. @param utf a byte array containing a UTF-8 encoded string
  40783. @param start starting offset
  40784. @param length the length of byte array
  40785. @param b the byte to find
  40786. @param n the desired occurrence of the given byte
  40787. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  40788. </doc>
  40789. </method>
  40790. <method name="findNthByte" return="int"
  40791. abstract="false" native="false" synchronized="false"
  40792. static="true" final="false" visibility="public"
  40793. deprecated="not deprecated">
  40794. <param name="utf" type="byte[]"/>
  40795. <param name="b" type="byte"/>
  40796. <param name="n" type="int"/>
  40797. <doc>
  40798. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  40799. @param utf a byte array containing a UTF-8 encoded string
  40800. @param b the byte to find
  40801. @param n the desired occurrence of the given byte
  40802. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  40803. </doc>
  40804. </method>
  40805. </class>
  40806. <!-- end class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  40807. <!-- start class org.apache.hadoop.util.VersionInfo -->
  40808. <class name="VersionInfo" extends="java.lang.Object"
  40809. abstract="false"
  40810. static="false" final="false" visibility="public"
  40811. deprecated="not deprecated">
  40812. <constructor name="VersionInfo"
  40813. static="false" final="false" visibility="public"
  40814. deprecated="not deprecated">
  40815. </constructor>
  40816. <method name="getVersion" return="java.lang.String"
  40817. abstract="false" native="false" synchronized="false"
  40818. static="true" final="false" visibility="public"
  40819. deprecated="not deprecated">
  40820. <doc>
  40821. <![CDATA[Get the Hadoop version.
  40822. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  40823. </doc>
  40824. </method>
  40825. <method name="getRevision" return="java.lang.String"
  40826. abstract="false" native="false" synchronized="false"
  40827. static="true" final="false" visibility="public"
  40828. deprecated="not deprecated">
  40829. <doc>
  40830. <![CDATA[Get the subversion revision number for the root directory
  40831. @return the revision number, eg. "451451"]]>
  40832. </doc>
  40833. </method>
  40834. <method name="getDate" return="java.lang.String"
  40835. abstract="false" native="false" synchronized="false"
  40836. static="true" final="false" visibility="public"
  40837. deprecated="not deprecated">
  40838. <doc>
  40839. <![CDATA[The date that Hadoop was compiled.
  40840. @return the compilation date in unix date format]]>
  40841. </doc>
  40842. </method>
  40843. <method name="getUser" return="java.lang.String"
  40844. abstract="false" native="false" synchronized="false"
  40845. static="true" final="false" visibility="public"
  40846. deprecated="not deprecated">
  40847. <doc>
  40848. <![CDATA[The user that compiled Hadoop.
  40849. @return the username of the user]]>
  40850. </doc>
  40851. </method>
  40852. <method name="getUrl" return="java.lang.String"
  40853. abstract="false" native="false" synchronized="false"
  40854. static="true" final="false" visibility="public"
  40855. deprecated="not deprecated">
  40856. <doc>
  40857. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  40858. </doc>
  40859. </method>
  40860. <method name="getBuildVersion" return="java.lang.String"
  40861. abstract="false" native="false" synchronized="false"
  40862. static="true" final="false" visibility="public"
  40863. deprecated="not deprecated">
  40864. <doc>
  40865. <![CDATA[Returns the buildVersion which includes version,
  40866. revision, user and date.]]>
  40867. </doc>
  40868. </method>
  40869. <method name="main"
  40870. abstract="false" native="false" synchronized="false"
  40871. static="true" final="false" visibility="public"
  40872. deprecated="not deprecated">
  40873. <param name="args" type="java.lang.String[]"/>
  40874. </method>
  40875. <doc>
  40876. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  40877. information.]]>
  40878. </doc>
  40879. </class>
  40880. <!-- end class org.apache.hadoop.util.VersionInfo -->
  40881. <!-- start class org.apache.hadoop.util.XMLUtils -->
  40882. <class name="XMLUtils" extends="java.lang.Object"
  40883. abstract="false"
  40884. static="false" final="false" visibility="public"
  40885. deprecated="not deprecated">
  40886. <constructor name="XMLUtils"
  40887. static="false" final="false" visibility="public"
  40888. deprecated="not deprecated">
  40889. </constructor>
  40890. <method name="transform"
  40891. abstract="false" native="false" synchronized="false"
  40892. static="true" final="false" visibility="public"
  40893. deprecated="not deprecated">
  40894. <param name="styleSheet" type="java.io.InputStream"/>
  40895. <param name="xml" type="java.io.InputStream"/>
  40896. <param name="out" type="java.io.Writer"/>
  40897. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  40898. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  40899. <doc>
  40900. <![CDATA[Transform input xml given a stylesheet.
  40901. @param styleSheet the style-sheet
  40902. @param xml input xml data
  40903. @param out output
  40904. @throws TransformerConfigurationException
  40905. @throws TransformerException]]>
  40906. </doc>
  40907. </method>
  40908. <doc>
  40909. <![CDATA[General xml utilities.]]>
  40910. </doc>
  40911. </class>
  40912. <!-- end class org.apache.hadoop.util.XMLUtils -->
  40913. </package>
  40914. <package name="org.apache.hadoop.util.bloom">
  40915. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  40916. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  40917. abstract="false"
  40918. static="false" final="false" visibility="public"
  40919. deprecated="not deprecated">
  40920. <constructor name="BloomFilter"
  40921. static="false" final="false" visibility="public"
  40922. deprecated="not deprecated">
  40923. <doc>
  40924. <![CDATA[Default constructor - use with readFields]]>
  40925. </doc>
  40926. </constructor>
  40927. <constructor name="BloomFilter" type="int, int, int"
  40928. static="false" final="false" visibility="public"
  40929. deprecated="not deprecated">
  40930. <doc>
  40931. <![CDATA[Constructor
  40932. @param vectorSize The vector size of <i>this</i> filter.
  40933. @param nbHash The number of hash function to consider.
  40934. @param hashType type of the hashing function (see
  40935. {@link org.apache.hadoop.util.hash.Hash}).]]>
  40936. </doc>
  40937. </constructor>
  40938. <method name="add"
  40939. abstract="false" native="false" synchronized="false"
  40940. static="false" final="false" visibility="public"
  40941. deprecated="not deprecated">
  40942. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  40943. </method>
  40944. <method name="and"
  40945. abstract="false" native="false" synchronized="false"
  40946. static="false" final="false" visibility="public"
  40947. deprecated="not deprecated">
  40948. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  40949. </method>
  40950. <method name="membershipTest" return="boolean"
  40951. abstract="false" native="false" synchronized="false"
  40952. static="false" final="false" visibility="public"
  40953. deprecated="not deprecated">
  40954. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  40955. </method>
  40956. <method name="not"
  40957. abstract="false" native="false" synchronized="false"
  40958. static="false" final="false" visibility="public"
  40959. deprecated="not deprecated">
  40960. </method>
  40961. <method name="or"
  40962. abstract="false" native="false" synchronized="false"
  40963. static="false" final="false" visibility="public"
  40964. deprecated="not deprecated">
  40965. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  40966. </method>
  40967. <method name="xor"
  40968. abstract="false" native="false" synchronized="false"
  40969. static="false" final="false" visibility="public"
  40970. deprecated="not deprecated">
  40971. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  40972. </method>
  40973. <method name="toString" return="java.lang.String"
  40974. abstract="false" native="false" synchronized="false"
  40975. static="false" final="false" visibility="public"
  40976. deprecated="not deprecated">
  40977. </method>
  40978. <method name="getVectorSize" return="int"
  40979. abstract="false" native="false" synchronized="false"
  40980. static="false" final="false" visibility="public"
  40981. deprecated="not deprecated">
  40982. <doc>
  40983. <![CDATA[@return size of the the bloomfilter]]>
  40984. </doc>
  40985. </method>
  40986. <method name="write"
  40987. abstract="false" native="false" synchronized="false"
  40988. static="false" final="false" visibility="public"
  40989. deprecated="not deprecated">
  40990. <param name="out" type="java.io.DataOutput"/>
  40991. <exception name="IOException" type="java.io.IOException"/>
  40992. </method>
  40993. <method name="readFields"
  40994. abstract="false" native="false" synchronized="false"
  40995. static="false" final="false" visibility="public"
  40996. deprecated="not deprecated">
  40997. <param name="in" type="java.io.DataInput"/>
  40998. <exception name="IOException" type="java.io.IOException"/>
  40999. </method>
  41000. <doc>
  41001. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  41002. <p>
  41003. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  41004. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  41005. offers for the transmission of set membership information between networked hosts. A sender encodes
  41006. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  41007. representation. Computation and space costs for construction are linear in the number of elements.
  41008. The receiver uses the filter to test whether various elements are members of the set. Though the
  41009. filter will occasionally return a false positive, it will never return a false negative. When creating
  41010. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  41011. <p>
  41012. Originally created by
  41013. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41014. @see Filter The general behavior of a filter
  41015. @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>]]>
  41016. </doc>
  41017. </class>
  41018. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  41019. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  41020. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  41021. abstract="false"
  41022. static="false" final="true" visibility="public"
  41023. deprecated="not deprecated">
  41024. <constructor name="CountingBloomFilter"
  41025. static="false" final="false" visibility="public"
  41026. deprecated="not deprecated">
  41027. <doc>
  41028. <![CDATA[Default constructor - use with readFields]]>
  41029. </doc>
  41030. </constructor>
  41031. <constructor name="CountingBloomFilter" type="int, int, int"
  41032. static="false" final="false" visibility="public"
  41033. deprecated="not deprecated">
  41034. <doc>
  41035. <![CDATA[Constructor
  41036. @param vectorSize The vector size of <i>this</i> filter.
  41037. @param nbHash The number of hash function to consider.
  41038. @param hashType type of the hashing function (see
  41039. {@link org.apache.hadoop.util.hash.Hash}).]]>
  41040. </doc>
  41041. </constructor>
  41042. <method name="add"
  41043. abstract="false" native="false" synchronized="false"
  41044. static="false" final="false" visibility="public"
  41045. deprecated="not deprecated">
  41046. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41047. </method>
  41048. <method name="delete"
  41049. abstract="false" native="false" synchronized="false"
  41050. static="false" final="false" visibility="public"
  41051. deprecated="not deprecated">
  41052. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41053. <doc>
  41054. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  41055. <p>
  41056. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  41057. @param key The key to remove.]]>
  41058. </doc>
  41059. </method>
  41060. <method name="and"
  41061. abstract="false" native="false" synchronized="false"
  41062. static="false" final="false" visibility="public"
  41063. deprecated="not deprecated">
  41064. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41065. </method>
  41066. <method name="membershipTest" return="boolean"
  41067. abstract="false" native="false" synchronized="false"
  41068. static="false" final="false" visibility="public"
  41069. deprecated="not deprecated">
  41070. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41071. </method>
  41072. <method name="approximateCount" return="int"
  41073. abstract="false" native="false" synchronized="false"
  41074. static="false" final="false" visibility="public"
  41075. deprecated="not deprecated">
  41076. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41077. <doc>
  41078. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  41079. times the key was added to the filter. This allows the filter to be
  41080. used as an approximate <code>key -&gt; count</code> map.
  41081. <p>NOTE: due to the bucket size of this filter, inserting the same
  41082. key more than 15 times will cause an overflow at all filter positions
  41083. associated with this key, and it will significantly increase the error
  41084. rate for this and other keys. For this reason the filter can only be
  41085. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  41086. @param key key to be tested
  41087. @return 0 if the key is not present. Otherwise, a positive value v will
  41088. be returned such that <code>v == count</code> with probability equal to the
  41089. error rate of this filter, and <code>v &gt; count</code> otherwise.
  41090. Additionally, if the filter experienced an underflow as a result of
  41091. {@link #delete(Key)} operation, the return value may be lower than the
  41092. <code>count</code> with the probability of the false negative rate of such
  41093. filter.]]>
  41094. </doc>
  41095. </method>
  41096. <method name="not"
  41097. abstract="false" native="false" synchronized="false"
  41098. static="false" final="false" visibility="public"
  41099. deprecated="not deprecated">
  41100. </method>
  41101. <method name="or"
  41102. abstract="false" native="false" synchronized="false"
  41103. static="false" final="false" visibility="public"
  41104. deprecated="not deprecated">
  41105. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41106. </method>
  41107. <method name="xor"
  41108. abstract="false" native="false" synchronized="false"
  41109. static="false" final="false" visibility="public"
  41110. deprecated="not deprecated">
  41111. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41112. </method>
  41113. <method name="toString" return="java.lang.String"
  41114. abstract="false" native="false" synchronized="false"
  41115. static="false" final="false" visibility="public"
  41116. deprecated="not deprecated">
  41117. </method>
  41118. <method name="write"
  41119. abstract="false" native="false" synchronized="false"
  41120. static="false" final="false" visibility="public"
  41121. deprecated="not deprecated">
  41122. <param name="out" type="java.io.DataOutput"/>
  41123. <exception name="IOException" type="java.io.IOException"/>
  41124. </method>
  41125. <method name="readFields"
  41126. abstract="false" native="false" synchronized="false"
  41127. static="false" final="false" visibility="public"
  41128. deprecated="not deprecated">
  41129. <param name="in" type="java.io.DataInput"/>
  41130. <exception name="IOException" type="java.io.IOException"/>
  41131. </method>
  41132. <doc>
  41133. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  41134. 2000 paper.
  41135. <p>
  41136. A counting Bloom filter is an improvement to standard a Bloom filter as it
  41137. allows dynamic additions and deletions of set membership information. This
  41138. is achieved through the use of a counting vector instead of a bit vector.
  41139. <p>
  41140. Originally created by
  41141. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41142. @see Filter The general behavior of a filter
  41143. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  41144. </doc>
  41145. </class>
  41146. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  41147. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  41148. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  41149. abstract="false"
  41150. static="false" final="false" visibility="public"
  41151. deprecated="not deprecated">
  41152. <constructor name="DynamicBloomFilter"
  41153. static="false" final="false" visibility="public"
  41154. deprecated="not deprecated">
  41155. <doc>
  41156. <![CDATA[Zero-args constructor for the serialization.]]>
  41157. </doc>
  41158. </constructor>
  41159. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  41160. static="false" final="false" visibility="public"
  41161. deprecated="not deprecated">
  41162. <doc>
  41163. <![CDATA[Constructor.
  41164. <p>
  41165. Builds an empty Dynamic Bloom filter.
  41166. @param vectorSize The number of bits in the vector.
  41167. @param nbHash The number of hash function to consider.
  41168. @param hashType type of the hashing function (see
  41169. {@link org.apache.hadoop.util.hash.Hash}).
  41170. @param nr The threshold for the maximum number of keys to record in a
  41171. dynamic Bloom filter row.]]>
  41172. </doc>
  41173. </constructor>
  41174. <method name="add"
  41175. abstract="false" native="false" synchronized="false"
  41176. static="false" final="false" visibility="public"
  41177. deprecated="not deprecated">
  41178. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41179. </method>
  41180. <method name="and"
  41181. abstract="false" native="false" synchronized="false"
  41182. static="false" final="false" visibility="public"
  41183. deprecated="not deprecated">
  41184. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41185. </method>
  41186. <method name="membershipTest" return="boolean"
  41187. abstract="false" native="false" synchronized="false"
  41188. static="false" final="false" visibility="public"
  41189. deprecated="not deprecated">
  41190. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41191. </method>
  41192. <method name="not"
  41193. abstract="false" native="false" synchronized="false"
  41194. static="false" final="false" visibility="public"
  41195. deprecated="not deprecated">
  41196. </method>
  41197. <method name="or"
  41198. abstract="false" native="false" synchronized="false"
  41199. static="false" final="false" visibility="public"
  41200. deprecated="not deprecated">
  41201. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41202. </method>
  41203. <method name="xor"
  41204. abstract="false" native="false" synchronized="false"
  41205. static="false" final="false" visibility="public"
  41206. deprecated="not deprecated">
  41207. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41208. </method>
  41209. <method name="toString" return="java.lang.String"
  41210. abstract="false" native="false" synchronized="false"
  41211. static="false" final="false" visibility="public"
  41212. deprecated="not deprecated">
  41213. </method>
  41214. <method name="write"
  41215. abstract="false" native="false" synchronized="false"
  41216. static="false" final="false" visibility="public"
  41217. deprecated="not deprecated">
  41218. <param name="out" type="java.io.DataOutput"/>
  41219. <exception name="IOException" type="java.io.IOException"/>
  41220. </method>
  41221. <method name="readFields"
  41222. abstract="false" native="false" synchronized="false"
  41223. static="false" final="false" visibility="public"
  41224. deprecated="not deprecated">
  41225. <param name="in" type="java.io.DataInput"/>
  41226. <exception name="IOException" type="java.io.IOException"/>
  41227. </method>
  41228. <doc>
  41229. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  41230. <p>
  41231. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  41232. each of the <code>s</code> rows is a standard Bloom filter. The creation
  41233. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  41234. bit matrix, i.e., it is composed of a single standard Bloom filter.
  41235. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  41236. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  41237. the cardinality of the set <code>A</code> to record in the filter).
  41238. <p>
  41239. As the size of <code>A</code> grows during the execution of the application,
  41240. several keys must be inserted in the DBF. When inserting a key into the DBF,
  41241. one must first get an active Bloom filter in the matrix. A Bloom filter is
  41242. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  41243. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  41244. If an active Bloom filter is found, the key is inserted and
  41245. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  41246. is no active Bloom filter, a new one is created (i.e., a new row is added to
  41247. the matrix) according to the current size of <code>A</code> and the element
  41248. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  41249. this new Bloom filter is set to one. A given key is said to belong to the
  41250. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  41251. <p>
  41252. Originally created by
  41253. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41254. @see Filter The general behavior of a filter
  41255. @see BloomFilter A Bloom filter
  41256. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  41257. </doc>
  41258. </class>
  41259. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  41260. <!-- start class org.apache.hadoop.util.bloom.Filter -->
  41261. <class name="Filter" extends="java.lang.Object"
  41262. abstract="true"
  41263. static="false" final="false" visibility="public"
  41264. deprecated="not deprecated">
  41265. <implements name="org.apache.hadoop.io.Writable"/>
  41266. <constructor name="Filter"
  41267. static="false" final="false" visibility="protected"
  41268. deprecated="not deprecated">
  41269. </constructor>
  41270. <constructor name="Filter" type="int, int, int"
  41271. static="false" final="false" visibility="protected"
  41272. deprecated="not deprecated">
  41273. <doc>
  41274. <![CDATA[Constructor.
  41275. @param vectorSize The vector size of <i>this</i> filter.
  41276. @param nbHash The number of hash functions to consider.
  41277. @param hashType type of the hashing function (see {@link Hash}).]]>
  41278. </doc>
  41279. </constructor>
  41280. <method name="add"
  41281. abstract="true" native="false" synchronized="false"
  41282. static="false" final="false" visibility="public"
  41283. deprecated="not deprecated">
  41284. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41285. <doc>
  41286. <![CDATA[Adds a key to <i>this</i> filter.
  41287. @param key The key to add.]]>
  41288. </doc>
  41289. </method>
  41290. <method name="membershipTest" return="boolean"
  41291. abstract="true" native="false" synchronized="false"
  41292. static="false" final="false" visibility="public"
  41293. deprecated="not deprecated">
  41294. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41295. <doc>
  41296. <![CDATA[Determines wether a specified key belongs to <i>this</i> filter.
  41297. @param key The key to test.
  41298. @return boolean True if the specified key belongs to <i>this</i> filter.
  41299. False otherwise.]]>
  41300. </doc>
  41301. </method>
  41302. <method name="and"
  41303. abstract="true" native="false" synchronized="false"
  41304. static="false" final="false" visibility="public"
  41305. deprecated="not deprecated">
  41306. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41307. <doc>
  41308. <![CDATA[Peforms a logical AND between <i>this</i> filter and a specified filter.
  41309. <p>
  41310. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  41311. @param filter The filter to AND with.]]>
  41312. </doc>
  41313. </method>
  41314. <method name="or"
  41315. abstract="true" native="false" synchronized="false"
  41316. static="false" final="false" visibility="public"
  41317. deprecated="not deprecated">
  41318. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41319. <doc>
  41320. <![CDATA[Peforms a logical OR between <i>this</i> filter and a specified filter.
  41321. <p>
  41322. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  41323. @param filter The filter to OR with.]]>
  41324. </doc>
  41325. </method>
  41326. <method name="xor"
  41327. abstract="true" native="false" synchronized="false"
  41328. static="false" final="false" visibility="public"
  41329. deprecated="not deprecated">
  41330. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41331. <doc>
  41332. <![CDATA[Peforms a logical XOR between <i>this</i> filter and a specified filter.
  41333. <p>
  41334. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  41335. @param filter The filter to XOR with.]]>
  41336. </doc>
  41337. </method>
  41338. <method name="not"
  41339. abstract="true" native="false" synchronized="false"
  41340. static="false" final="false" visibility="public"
  41341. deprecated="not deprecated">
  41342. <doc>
  41343. <![CDATA[Performs a logical NOT on <i>this</i> filter.
  41344. <p>
  41345. The result is assigned to <i>this</i> filter.]]>
  41346. </doc>
  41347. </method>
  41348. <method name="add"
  41349. abstract="false" native="false" synchronized="false"
  41350. static="false" final="false" visibility="public"
  41351. deprecated="not deprecated">
  41352. <param name="keys" type="java.util.List"/>
  41353. <doc>
  41354. <![CDATA[Adds a list of keys to <i>this</i> filter.
  41355. @param keys The list of keys.]]>
  41356. </doc>
  41357. </method>
  41358. <method name="add"
  41359. abstract="false" native="false" synchronized="false"
  41360. static="false" final="false" visibility="public"
  41361. deprecated="not deprecated">
  41362. <param name="keys" type="java.util.Collection"/>
  41363. <doc>
  41364. <![CDATA[Adds a collection of keys to <i>this</i> filter.
  41365. @param keys The collection of keys.]]>
  41366. </doc>
  41367. </method>
  41368. <method name="add"
  41369. abstract="false" native="false" synchronized="false"
  41370. static="false" final="false" visibility="public"
  41371. deprecated="not deprecated">
  41372. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  41373. <doc>
  41374. <![CDATA[Adds an array of keys to <i>this</i> filter.
  41375. @param keys The array of keys.]]>
  41376. </doc>
  41377. </method>
  41378. <method name="write"
  41379. abstract="false" native="false" synchronized="false"
  41380. static="false" final="false" visibility="public"
  41381. deprecated="not deprecated">
  41382. <param name="out" type="java.io.DataOutput"/>
  41383. <exception name="IOException" type="java.io.IOException"/>
  41384. </method>
  41385. <method name="readFields"
  41386. abstract="false" native="false" synchronized="false"
  41387. static="false" final="false" visibility="public"
  41388. deprecated="not deprecated">
  41389. <param name="in" type="java.io.DataInput"/>
  41390. <exception name="IOException" type="java.io.IOException"/>
  41391. </method>
  41392. <field name="vectorSize" type="int"
  41393. transient="false" volatile="false"
  41394. static="false" final="false" visibility="protected"
  41395. deprecated="not deprecated">
  41396. <doc>
  41397. <![CDATA[The vector size of <i>this</i> filter.]]>
  41398. </doc>
  41399. </field>
  41400. <field name="hash" type="org.apache.hadoop.util.bloom.HashFunction"
  41401. transient="false" volatile="false"
  41402. static="false" final="false" visibility="protected"
  41403. deprecated="not deprecated">
  41404. <doc>
  41405. <![CDATA[The hash function used to map a key to several positions in the vector.]]>
  41406. </doc>
  41407. </field>
  41408. <field name="nbHash" type="int"
  41409. transient="false" volatile="false"
  41410. static="false" final="false" visibility="protected"
  41411. deprecated="not deprecated">
  41412. <doc>
  41413. <![CDATA[The number of hash function to consider.]]>
  41414. </doc>
  41415. </field>
  41416. <field name="hashType" type="int"
  41417. transient="false" volatile="false"
  41418. static="false" final="false" visibility="protected"
  41419. deprecated="not deprecated">
  41420. <doc>
  41421. <![CDATA[Type of hashing function to use.]]>
  41422. </doc>
  41423. </field>
  41424. <doc>
  41425. <![CDATA[Defines the general behavior of a filter.
  41426. <p>
  41427. A filter is a data structure which aims at offering a lossy summary of a set <code>A</code>. The
  41428. key idea is to map entries of <code>A</code> (also called <i>keys</i>) into several positions
  41429. in a vector through the use of several hash functions.
  41430. <p>
  41431. Typically, a filter will be implemented as a Bloom filter (or a Bloom filter extension).
  41432. <p>
  41433. It must be extended in order to define the real behavior.
  41434. @see Key The general behavior of a key
  41435. @see HashFunction A hash function]]>
  41436. </doc>
  41437. </class>
  41438. <!-- end class org.apache.hadoop.util.bloom.Filter -->
  41439. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  41440. <class name="HashFunction" extends="java.lang.Object"
  41441. abstract="false"
  41442. static="false" final="true" visibility="public"
  41443. deprecated="not deprecated">
  41444. <constructor name="HashFunction" type="int, int, int"
  41445. static="false" final="false" visibility="public"
  41446. deprecated="not deprecated">
  41447. <doc>
  41448. <![CDATA[Constructor.
  41449. <p>
  41450. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  41451. @param maxValue The maximum highest returned value.
  41452. @param nbHash The number of resulting hashed values.
  41453. @param hashType type of the hashing function (see {@link Hash}).]]>
  41454. </doc>
  41455. </constructor>
  41456. <method name="clear"
  41457. abstract="false" native="false" synchronized="false"
  41458. static="false" final="false" visibility="public"
  41459. deprecated="not deprecated">
  41460. <doc>
  41461. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  41462. </doc>
  41463. </method>
  41464. <method name="hash" return="int[]"
  41465. abstract="false" native="false" synchronized="false"
  41466. static="false" final="false" visibility="public"
  41467. deprecated="not deprecated">
  41468. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  41469. <doc>
  41470. <![CDATA[Hashes a specified key into several integers.
  41471. @param k The specified key.
  41472. @return The array of hashed values.]]>
  41473. </doc>
  41474. </method>
  41475. <doc>
  41476. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  41477. @see Key The general behavior of a key being stored in a filter
  41478. @see Filter The general behavior of a filter]]>
  41479. </doc>
  41480. </class>
  41481. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  41482. <!-- start class org.apache.hadoop.util.bloom.Key -->
  41483. <class name="Key" extends="java.lang.Object"
  41484. abstract="false"
  41485. static="false" final="false" visibility="public"
  41486. deprecated="not deprecated">
  41487. <implements name="org.apache.hadoop.io.WritableComparable"/>
  41488. <constructor name="Key"
  41489. static="false" final="false" visibility="public"
  41490. deprecated="not deprecated">
  41491. <doc>
  41492. <![CDATA[default constructor - use with readFields]]>
  41493. </doc>
  41494. </constructor>
  41495. <constructor name="Key" type="byte[]"
  41496. static="false" final="false" visibility="public"
  41497. deprecated="not deprecated">
  41498. <doc>
  41499. <![CDATA[Constructor.
  41500. <p>
  41501. Builds a key with a default weight.
  41502. @param value The byte value of <i>this</i> key.]]>
  41503. </doc>
  41504. </constructor>
  41505. <constructor name="Key" type="byte[], double"
  41506. static="false" final="false" visibility="public"
  41507. deprecated="not deprecated">
  41508. <doc>
  41509. <![CDATA[Constructor.
  41510. <p>
  41511. Builds a key with a specified weight.
  41512. @param value The value of <i>this</i> key.
  41513. @param weight The weight associated to <i>this</i> key.]]>
  41514. </doc>
  41515. </constructor>
  41516. <method name="set"
  41517. abstract="false" native="false" synchronized="false"
  41518. static="false" final="false" visibility="public"
  41519. deprecated="not deprecated">
  41520. <param name="value" type="byte[]"/>
  41521. <param name="weight" type="double"/>
  41522. <doc>
  41523. <![CDATA[@param value
  41524. @param weight]]>
  41525. </doc>
  41526. </method>
  41527. <method name="getBytes" return="byte[]"
  41528. abstract="false" native="false" synchronized="false"
  41529. static="false" final="false" visibility="public"
  41530. deprecated="not deprecated">
  41531. <doc>
  41532. <![CDATA[@return byte[] The value of <i>this</i> key.]]>
  41533. </doc>
  41534. </method>
  41535. <method name="getWeight" return="double"
  41536. abstract="false" native="false" synchronized="false"
  41537. static="false" final="false" visibility="public"
  41538. deprecated="not deprecated">
  41539. <doc>
  41540. <![CDATA[@return Returns the weight associated to <i>this</i> key.]]>
  41541. </doc>
  41542. </method>
  41543. <method name="incrementWeight"
  41544. abstract="false" native="false" synchronized="false"
  41545. static="false" final="false" visibility="public"
  41546. deprecated="not deprecated">
  41547. <param name="weight" type="double"/>
  41548. <doc>
  41549. <![CDATA[Increments the weight of <i>this</i> key with a specified value.
  41550. @param weight The increment.]]>
  41551. </doc>
  41552. </method>
  41553. <method name="incrementWeight"
  41554. abstract="false" native="false" synchronized="false"
  41555. static="false" final="false" visibility="public"
  41556. deprecated="not deprecated">
  41557. <doc>
  41558. <![CDATA[Increments the weight of <i>this</i> key by one.]]>
  41559. </doc>
  41560. </method>
  41561. <method name="equals" return="boolean"
  41562. abstract="false" native="false" synchronized="false"
  41563. static="false" final="false" visibility="public"
  41564. deprecated="not deprecated">
  41565. <param name="o" type="java.lang.Object"/>
  41566. </method>
  41567. <method name="hashCode" return="int"
  41568. abstract="false" native="false" synchronized="false"
  41569. static="false" final="false" visibility="public"
  41570. deprecated="not deprecated">
  41571. </method>
  41572. <method name="write"
  41573. abstract="false" native="false" synchronized="false"
  41574. static="false" final="false" visibility="public"
  41575. deprecated="not deprecated">
  41576. <param name="out" type="java.io.DataOutput"/>
  41577. <exception name="IOException" type="java.io.IOException"/>
  41578. </method>
  41579. <method name="readFields"
  41580. abstract="false" native="false" synchronized="false"
  41581. static="false" final="false" visibility="public"
  41582. deprecated="not deprecated">
  41583. <param name="in" type="java.io.DataInput"/>
  41584. <exception name="IOException" type="java.io.IOException"/>
  41585. </method>
  41586. <method name="compareTo" return="int"
  41587. abstract="false" native="false" synchronized="false"
  41588. static="false" final="false" visibility="public"
  41589. deprecated="not deprecated">
  41590. <param name="other" type="org.apache.hadoop.util.bloom.Key"/>
  41591. </method>
  41592. <doc>
  41593. <![CDATA[The general behavior of a key that must be stored in a filter.
  41594. @see Filter The general behavior of a filter]]>
  41595. </doc>
  41596. </class>
  41597. <!-- end class org.apache.hadoop.util.bloom.Key -->
  41598. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  41599. <interface name="RemoveScheme" abstract="true"
  41600. static="false" final="false" visibility="public"
  41601. deprecated="not deprecated">
  41602. <field name="RANDOM" type="short"
  41603. transient="false" volatile="false"
  41604. static="true" final="true" visibility="public"
  41605. deprecated="not deprecated">
  41606. <doc>
  41607. <![CDATA[Random selection.
  41608. <p>
  41609. The idea is to randomly select a bit to reset.]]>
  41610. </doc>
  41611. </field>
  41612. <field name="MINIMUM_FN" type="short"
  41613. transient="false" volatile="false"
  41614. static="true" final="true" visibility="public"
  41615. deprecated="not deprecated">
  41616. <doc>
  41617. <![CDATA[MinimumFN Selection.
  41618. <p>
  41619. The idea is to select the bit to reset that will generate the minimum
  41620. number of false negative.]]>
  41621. </doc>
  41622. </field>
  41623. <field name="MAXIMUM_FP" type="short"
  41624. transient="false" volatile="false"
  41625. static="true" final="true" visibility="public"
  41626. deprecated="not deprecated">
  41627. <doc>
  41628. <![CDATA[MaximumFP Selection.
  41629. <p>
  41630. The idea is to select the bit to reset that will remove the maximum number
  41631. of false positive.]]>
  41632. </doc>
  41633. </field>
  41634. <field name="RATIO" type="short"
  41635. transient="false" volatile="false"
  41636. static="true" final="true" visibility="public"
  41637. deprecated="not deprecated">
  41638. <doc>
  41639. <![CDATA[Ratio Selection.
  41640. <p>
  41641. The idea is to select the bit to reset that will, at the same time, remove
  41642. the maximum number of false positve while minimizing the amount of false
  41643. negative generated.]]>
  41644. </doc>
  41645. </field>
  41646. <doc>
  41647. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  41648. <p>
  41649. Originally created by
  41650. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  41651. </doc>
  41652. </interface>
  41653. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  41654. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  41655. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  41656. abstract="false"
  41657. static="false" final="true" visibility="public"
  41658. deprecated="not deprecated">
  41659. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  41660. <constructor name="RetouchedBloomFilter"
  41661. static="false" final="false" visibility="public"
  41662. deprecated="not deprecated">
  41663. <doc>
  41664. <![CDATA[Default constructor - use with readFields]]>
  41665. </doc>
  41666. </constructor>
  41667. <constructor name="RetouchedBloomFilter" type="int, int, int"
  41668. static="false" final="false" visibility="public"
  41669. deprecated="not deprecated">
  41670. <doc>
  41671. <![CDATA[Constructor
  41672. @param vectorSize The vector size of <i>this</i> filter.
  41673. @param nbHash The number of hash function to consider.
  41674. @param hashType type of the hashing function (see
  41675. {@link org.apache.hadoop.util.hash.Hash}).]]>
  41676. </doc>
  41677. </constructor>
  41678. <method name="add"
  41679. abstract="false" native="false" synchronized="false"
  41680. static="false" final="false" visibility="public"
  41681. deprecated="not deprecated">
  41682. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41683. </method>
  41684. <method name="addFalsePositive"
  41685. abstract="false" native="false" synchronized="false"
  41686. static="false" final="false" visibility="public"
  41687. deprecated="not deprecated">
  41688. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41689. <doc>
  41690. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  41691. <p>
  41692. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  41693. @param key The false positive key to add.]]>
  41694. </doc>
  41695. </method>
  41696. <method name="addFalsePositive"
  41697. abstract="false" native="false" synchronized="false"
  41698. static="false" final="false" visibility="public"
  41699. deprecated="not deprecated">
  41700. <param name="coll" type="java.util.Collection"/>
  41701. <doc>
  41702. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  41703. @param coll The collection of false positive.]]>
  41704. </doc>
  41705. </method>
  41706. <method name="addFalsePositive"
  41707. abstract="false" native="false" synchronized="false"
  41708. static="false" final="false" visibility="public"
  41709. deprecated="not deprecated">
  41710. <param name="keys" type="java.util.List"/>
  41711. <doc>
  41712. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  41713. @param keys The list of false positive.]]>
  41714. </doc>
  41715. </method>
  41716. <method name="addFalsePositive"
  41717. abstract="false" native="false" synchronized="false"
  41718. static="false" final="false" visibility="public"
  41719. deprecated="not deprecated">
  41720. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  41721. <doc>
  41722. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  41723. @param keys The array of false positive.]]>
  41724. </doc>
  41725. </method>
  41726. <method name="selectiveClearing"
  41727. abstract="false" native="false" synchronized="false"
  41728. static="false" final="false" visibility="public"
  41729. deprecated="not deprecated">
  41730. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  41731. <param name="scheme" type="short"/>
  41732. <doc>
  41733. <![CDATA[Performs the selective clearing for a given key.
  41734. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  41735. @param scheme The selective clearing scheme to apply.]]>
  41736. </doc>
  41737. </method>
  41738. <method name="write"
  41739. abstract="false" native="false" synchronized="false"
  41740. static="false" final="false" visibility="public"
  41741. deprecated="not deprecated">
  41742. <param name="out" type="java.io.DataOutput"/>
  41743. <exception name="IOException" type="java.io.IOException"/>
  41744. </method>
  41745. <method name="readFields"
  41746. abstract="false" native="false" synchronized="false"
  41747. static="false" final="false" visibility="public"
  41748. deprecated="not deprecated">
  41749. <param name="in" type="java.io.DataInput"/>
  41750. <exception name="IOException" type="java.io.IOException"/>
  41751. </method>
  41752. <doc>
  41753. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  41754. <p>
  41755. It allows the removal of selected false positives at the cost of introducing
  41756. random false negatives, and with the benefit of eliminating some random false
  41757. positives at the same time.
  41758. <p>
  41759. Originally created by
  41760. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41761. @see Filter The general behavior of a filter
  41762. @see BloomFilter A Bloom filter
  41763. @see RemoveScheme The different selective clearing algorithms
  41764. @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>]]>
  41765. </doc>
  41766. </class>
  41767. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  41768. </package>
  41769. <package name="org.apache.hadoop.util.hash">
  41770. <!-- start class org.apache.hadoop.util.hash.Hash -->
  41771. <class name="Hash" extends="java.lang.Object"
  41772. abstract="true"
  41773. static="false" final="false" visibility="public"
  41774. deprecated="not deprecated">
  41775. <constructor name="Hash"
  41776. static="false" final="false" visibility="public"
  41777. deprecated="not deprecated">
  41778. </constructor>
  41779. <method name="parseHashType" return="int"
  41780. abstract="false" native="false" synchronized="false"
  41781. static="true" final="false" visibility="public"
  41782. deprecated="not deprecated">
  41783. <param name="name" type="java.lang.String"/>
  41784. <doc>
  41785. <![CDATA[This utility method converts String representation of hash function name
  41786. to a symbolic constant. Currently two function types are supported,
  41787. "jenkins" and "murmur".
  41788. @param name hash function name
  41789. @return one of the predefined constants]]>
  41790. </doc>
  41791. </method>
  41792. <method name="getHashType" return="int"
  41793. abstract="false" native="false" synchronized="false"
  41794. static="true" final="false" visibility="public"
  41795. deprecated="not deprecated">
  41796. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41797. <doc>
  41798. <![CDATA[This utility method converts the name of the configured
  41799. hash type to a symbolic constant.
  41800. @param conf configuration
  41801. @return one of the predefined constants]]>
  41802. </doc>
  41803. </method>
  41804. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  41805. abstract="false" native="false" synchronized="false"
  41806. static="true" final="false" visibility="public"
  41807. deprecated="not deprecated">
  41808. <param name="type" type="int"/>
  41809. <doc>
  41810. <![CDATA[Get a singleton instance of hash function of a given type.
  41811. @param type predefined hash type
  41812. @return hash function instance, or null if type is invalid]]>
  41813. </doc>
  41814. </method>
  41815. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  41816. abstract="false" native="false" synchronized="false"
  41817. static="true" final="false" visibility="public"
  41818. deprecated="not deprecated">
  41819. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41820. <doc>
  41821. <![CDATA[Get a singleton instance of hash function of a type
  41822. defined in the configuration.
  41823. @param conf current configuration
  41824. @return defined hash type, or null if type is invalid]]>
  41825. </doc>
  41826. </method>
  41827. <method name="hash" return="int"
  41828. abstract="false" native="false" synchronized="false"
  41829. static="false" final="false" visibility="public"
  41830. deprecated="not deprecated">
  41831. <param name="bytes" type="byte[]"/>
  41832. <doc>
  41833. <![CDATA[Calculate a hash using all bytes from the input argument, and
  41834. a seed of -1.
  41835. @param bytes input bytes
  41836. @return hash value]]>
  41837. </doc>
  41838. </method>
  41839. <method name="hash" return="int"
  41840. abstract="false" native="false" synchronized="false"
  41841. static="false" final="false" visibility="public"
  41842. deprecated="not deprecated">
  41843. <param name="bytes" type="byte[]"/>
  41844. <param name="initval" type="int"/>
  41845. <doc>
  41846. <![CDATA[Calculate a hash using all bytes from the input argument,
  41847. and a provided seed value.
  41848. @param bytes input bytes
  41849. @param initval seed value
  41850. @return hash value]]>
  41851. </doc>
  41852. </method>
  41853. <method name="hash" return="int"
  41854. abstract="true" native="false" synchronized="false"
  41855. static="false" final="false" visibility="public"
  41856. deprecated="not deprecated">
  41857. <param name="bytes" type="byte[]"/>
  41858. <param name="length" type="int"/>
  41859. <param name="initval" type="int"/>
  41860. <doc>
  41861. <![CDATA[Calculate a hash using bytes from 0 to <code>length</code>, and
  41862. the provided seed value
  41863. @param bytes input bytes
  41864. @param length length of the valid bytes to consider
  41865. @param initval seed value
  41866. @return hash value]]>
  41867. </doc>
  41868. </method>
  41869. <field name="INVALID_HASH" type="int"
  41870. transient="false" volatile="false"
  41871. static="true" final="true" visibility="public"
  41872. deprecated="not deprecated">
  41873. <doc>
  41874. <![CDATA[Constant to denote invalid hash type.]]>
  41875. </doc>
  41876. </field>
  41877. <field name="JENKINS_HASH" type="int"
  41878. transient="false" volatile="false"
  41879. static="true" final="true" visibility="public"
  41880. deprecated="not deprecated">
  41881. <doc>
  41882. <![CDATA[Constant to denote {@link JenkinsHash}.]]>
  41883. </doc>
  41884. </field>
  41885. <field name="MURMUR_HASH" type="int"
  41886. transient="false" volatile="false"
  41887. static="true" final="true" visibility="public"
  41888. deprecated="not deprecated">
  41889. <doc>
  41890. <![CDATA[Constant to denote {@link MurmurHash}.]]>
  41891. </doc>
  41892. </field>
  41893. <doc>
  41894. <![CDATA[This class represents a common API for hashing functions.]]>
  41895. </doc>
  41896. </class>
  41897. <!-- end class org.apache.hadoop.util.hash.Hash -->
  41898. <!-- start class org.apache.hadoop.util.hash.JenkinsHash -->
  41899. <class name="JenkinsHash" extends="org.apache.hadoop.util.hash.Hash"
  41900. abstract="false"
  41901. static="false" final="false" visibility="public"
  41902. deprecated="not deprecated">
  41903. <constructor name="JenkinsHash"
  41904. static="false" final="false" visibility="public"
  41905. deprecated="not deprecated">
  41906. </constructor>
  41907. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  41908. abstract="false" native="false" synchronized="false"
  41909. static="true" final="false" visibility="public"
  41910. deprecated="not deprecated">
  41911. </method>
  41912. <method name="hash" return="int"
  41913. abstract="false" native="false" synchronized="false"
  41914. static="false" final="false" visibility="public"
  41915. deprecated="not deprecated">
  41916. <param name="key" type="byte[]"/>
  41917. <param name="nbytes" type="int"/>
  41918. <param name="initval" type="int"/>
  41919. <doc>
  41920. <![CDATA[taken from hashlittle() -- hash a variable-length key into a 32-bit value
  41921. @param key the key (the unaligned variable-length array of bytes)
  41922. @param nbytes number of bytes to include in hash
  41923. @param initval can be any integer value
  41924. @return a 32-bit value. Every bit of the key affects every bit of the
  41925. return value. Two keys differing by one or two bits will have totally
  41926. different hash values.
  41927. <p>The best hash table sizes are powers of 2. There is no need to do mod
  41928. a prime (mod is sooo slow!). If you need less than 32 bits, use a bitmask.
  41929. For example, if you need only 10 bits, do
  41930. <code>h = (h & hashmask(10));</code>
  41931. In which case, the hash table should have hashsize(10) elements.
  41932. <p>If you are hashing n strings byte[][] k, do it like this:
  41933. for (int i = 0, h = 0; i < n; ++i) h = hash( k[i], h);
  41934. <p>By Bob Jenkins, 2006. bob_jenkins@burtleburtle.net. You may use this
  41935. code any way you wish, private, educational, or commercial. It's free.
  41936. <p>Use for hash table lookup, or anything where one collision in 2^^32 is
  41937. acceptable. Do NOT use for cryptographic purposes.]]>
  41938. </doc>
  41939. </method>
  41940. <method name="main"
  41941. abstract="false" native="false" synchronized="false"
  41942. static="true" final="false" visibility="public"
  41943. deprecated="not deprecated">
  41944. <param name="args" type="java.lang.String[]"/>
  41945. <exception name="IOException" type="java.io.IOException"/>
  41946. <doc>
  41947. <![CDATA[Compute the hash of the specified file
  41948. @param args name of file to compute hash of.
  41949. @throws IOException]]>
  41950. </doc>
  41951. </method>
  41952. <doc>
  41953. <![CDATA[Produces 32-bit hash for hash table lookup.
  41954. <pre>lookup3.c, by Bob Jenkins, May 2006, Public Domain.
  41955. You can use this free for any purpose. It's in the public domain.
  41956. It has no warranty.
  41957. </pre>
  41958. @see <a href="http://burtleburtle.net/bob/c/lookup3.c">lookup3.c</a>
  41959. @see <a href="http://www.ddj.com/184410284">Hash Functions (and how this
  41960. function compares to others such as CRC, MD?, etc</a>
  41961. @see <a href="http://burtleburtle.net/bob/hash/doobs.html">Has update on the
  41962. Dr. Dobbs Article</a>]]>
  41963. </doc>
  41964. </class>
  41965. <!-- end class org.apache.hadoop.util.hash.JenkinsHash -->
  41966. <!-- start class org.apache.hadoop.util.hash.MurmurHash -->
  41967. <class name="MurmurHash" extends="org.apache.hadoop.util.hash.Hash"
  41968. abstract="false"
  41969. static="false" final="false" visibility="public"
  41970. deprecated="not deprecated">
  41971. <constructor name="MurmurHash"
  41972. static="false" final="false" visibility="public"
  41973. deprecated="not deprecated">
  41974. </constructor>
  41975. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  41976. abstract="false" native="false" synchronized="false"
  41977. static="true" final="false" visibility="public"
  41978. deprecated="not deprecated">
  41979. </method>
  41980. <method name="hash" return="int"
  41981. abstract="false" native="false" synchronized="false"
  41982. static="false" final="false" visibility="public"
  41983. deprecated="not deprecated">
  41984. <param name="data" type="byte[]"/>
  41985. <param name="length" type="int"/>
  41986. <param name="seed" type="int"/>
  41987. </method>
  41988. <doc>
  41989. <![CDATA[This is a very fast, non-cryptographic hash suitable for general hash-based
  41990. lookup. See http://murmurhash.googlepages.com/ for more details.
  41991. <p>The C version of MurmurHash 2.0 found at that site was ported
  41992. to Java by Andrzej Bialecki (ab at getopt org).</p>]]>
  41993. </doc>
  41994. </class>
  41995. <!-- end class org.apache.hadoop.util.hash.MurmurHash -->
  41996. </package>
  41997. <package name="org.apache.hadoop.filecache">
  41998. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  41999. <class name="DistributedCache" extends="java.lang.Object"
  42000. abstract="false"
  42001. static="false" final="false" visibility="public"
  42002. deprecated="not deprecated">
  42003. <constructor name="DistributedCache"
  42004. static="false" final="false" visibility="public"
  42005. deprecated="not deprecated">
  42006. </constructor>
  42007. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  42008. abstract="false" native="false" synchronized="false"
  42009. static="true" final="false" visibility="public"
  42010. deprecated="not deprecated">
  42011. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42012. <param name="cache" type="java.net.URI"/>
  42013. <exception name="IOException" type="java.io.IOException"/>
  42014. <doc>
  42015. <![CDATA[Returns {@link FileStatus} of a given cache file on hdfs. Internal to
  42016. MapReduce.
  42017. @param conf configuration
  42018. @param cache cache file
  42019. @return <code>FileStatus</code> of a given cache file on hdfs
  42020. @throws IOException]]>
  42021. </doc>
  42022. </method>
  42023. <method name="getTimestamp" return="long"
  42024. abstract="false" native="false" synchronized="false"
  42025. static="true" final="false" visibility="public"
  42026. deprecated="not deprecated">
  42027. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42028. <param name="cache" type="java.net.URI"/>
  42029. <exception name="IOException" type="java.io.IOException"/>
  42030. <doc>
  42031. <![CDATA[Returns mtime of a given cache file on hdfs. Internal to MapReduce.
  42032. @param conf configuration
  42033. @param cache cache file
  42034. @return mtime of a given cache file on hdfs
  42035. @throws IOException]]>
  42036. </doc>
  42037. </method>
  42038. <method name="createAllSymlink"
  42039. abstract="false" native="false" synchronized="false"
  42040. static="true" final="false" visibility="public"
  42041. deprecated="Internal to MapReduce framework. Use DistributedCacheManager
  42042. instead.">
  42043. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42044. <param name="jobCacheDir" type="java.io.File"/>
  42045. <param name="workDir" type="java.io.File"/>
  42046. <exception name="IOException" type="java.io.IOException"/>
  42047. <doc>
  42048. <![CDATA[This method create symlinks for all files in a given dir in another directory
  42049. @param conf the configuration
  42050. @param jobCacheDir the target directory for creating symlinks
  42051. @param workDir the directory in which the symlinks are created
  42052. @throws IOException
  42053. @deprecated Internal to MapReduce framework. Use DistributedCacheManager
  42054. instead.]]>
  42055. </doc>
  42056. </method>
  42057. <method name="setCacheArchives"
  42058. abstract="false" native="false" synchronized="false"
  42059. static="true" final="false" visibility="public"
  42060. deprecated="not deprecated">
  42061. <param name="archives" type="java.net.URI[]"/>
  42062. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42063. <doc>
  42064. <![CDATA[Set the configuration with the given set of archives. Intended
  42065. to be used by user code.
  42066. @param archives The list of archives that need to be localized
  42067. @param conf Configuration which will be changed]]>
  42068. </doc>
  42069. </method>
  42070. <method name="setCacheFiles"
  42071. abstract="false" native="false" synchronized="false"
  42072. static="true" final="false" visibility="public"
  42073. deprecated="not deprecated">
  42074. <param name="files" type="java.net.URI[]"/>
  42075. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42076. <doc>
  42077. <![CDATA[Set the configuration with the given set of files. Intended to be
  42078. used by user code.
  42079. @param files The list of files that need to be localized
  42080. @param conf Configuration which will be changed]]>
  42081. </doc>
  42082. </method>
  42083. <method name="getCacheArchives" return="java.net.URI[]"
  42084. abstract="false" native="false" synchronized="false"
  42085. static="true" final="false" visibility="public"
  42086. deprecated="not deprecated">
  42087. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42088. <exception name="IOException" type="java.io.IOException"/>
  42089. <doc>
  42090. <![CDATA[Get cache archives set in the Configuration. Used by
  42091. internal DistributedCache and MapReduce code.
  42092. @param conf The configuration which contains the archives
  42093. @return An array of the caches set in the Configuration
  42094. @throws IOException]]>
  42095. </doc>
  42096. </method>
  42097. <method name="getCacheFiles" return="java.net.URI[]"
  42098. abstract="false" native="false" synchronized="false"
  42099. static="true" final="false" visibility="public"
  42100. deprecated="not deprecated">
  42101. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42102. <exception name="IOException" type="java.io.IOException"/>
  42103. <doc>
  42104. <![CDATA[Get cache files set in the Configuration. Used by internal
  42105. DistributedCache and MapReduce code.
  42106. @param conf The configuration which contains the files
  42107. @return Am array of the files set in the Configuration
  42108. @throws IOException]]>
  42109. </doc>
  42110. </method>
  42111. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  42112. abstract="false" native="false" synchronized="false"
  42113. static="true" final="false" visibility="public"
  42114. deprecated="not deprecated">
  42115. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42116. <exception name="IOException" type="java.io.IOException"/>
  42117. <doc>
  42118. <![CDATA[Return the path array of the localized caches. Intended to be used
  42119. by user code.
  42120. @param conf Configuration that contains the localized archives
  42121. @return A path array of localized caches
  42122. @throws IOException]]>
  42123. </doc>
  42124. </method>
  42125. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  42126. abstract="false" native="false" synchronized="false"
  42127. static="true" final="false" visibility="public"
  42128. deprecated="not deprecated">
  42129. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42130. <exception name="IOException" type="java.io.IOException"/>
  42131. <doc>
  42132. <![CDATA[Return the path array of the localized files. Intended to be used
  42133. by user code.
  42134. @param conf Configuration that contains the localized files
  42135. @return A path array of localized files
  42136. @throws IOException]]>
  42137. </doc>
  42138. </method>
  42139. <method name="getArchiveTimestamps" return="long[]"
  42140. abstract="false" native="false" synchronized="false"
  42141. static="true" final="false" visibility="public"
  42142. deprecated="not deprecated">
  42143. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42144. <doc>
  42145. <![CDATA[Get the timestamps of the archives. Used by internal
  42146. DistributedCache and MapReduce code.
  42147. @param conf The configuration which stored the timestamps
  42148. @return a long array of timestamps
  42149. @throws IOException]]>
  42150. </doc>
  42151. </method>
  42152. <method name="getFileTimestamps" return="long[]"
  42153. abstract="false" native="false" synchronized="false"
  42154. static="true" final="false" visibility="public"
  42155. deprecated="not deprecated">
  42156. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42157. <doc>
  42158. <![CDATA[Get the timestamps of the files. Used by internal
  42159. DistributedCache and MapReduce code.
  42160. @param conf The configuration which stored the timestamps
  42161. @return a long array of timestamps
  42162. @throws IOException]]>
  42163. </doc>
  42164. </method>
  42165. <method name="setArchiveTimestamps"
  42166. abstract="false" native="false" synchronized="false"
  42167. static="true" final="false" visibility="public"
  42168. deprecated="not deprecated">
  42169. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42170. <param name="timestamps" type="java.lang.String"/>
  42171. <doc>
  42172. <![CDATA[This is to check the timestamp of the archives to be localized.
  42173. Used by internal MapReduce code.
  42174. @param conf Configuration which stores the timestamp's
  42175. @param timestamps comma separated list of timestamps of archives.
  42176. The order should be the same as the order in which the archives are added.]]>
  42177. </doc>
  42178. </method>
  42179. <method name="setFileTimestamps"
  42180. abstract="false" native="false" synchronized="false"
  42181. static="true" final="false" visibility="public"
  42182. deprecated="not deprecated">
  42183. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42184. <param name="timestamps" type="java.lang.String"/>
  42185. <doc>
  42186. <![CDATA[This is to check the timestamp of the files to be localized.
  42187. Used by internal MapReduce code.
  42188. @param conf Configuration which stores the timestamp's
  42189. @param timestamps comma separated list of timestamps of files.
  42190. The order should be the same as the order in which the files are added.]]>
  42191. </doc>
  42192. </method>
  42193. <method name="setLocalArchives"
  42194. abstract="false" native="false" synchronized="false"
  42195. static="true" final="false" visibility="public"
  42196. deprecated="not deprecated">
  42197. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42198. <param name="str" type="java.lang.String"/>
  42199. <doc>
  42200. <![CDATA[Set the conf to contain the location for localized archives. Used
  42201. by internal DistributedCache code.
  42202. @param conf The conf to modify to contain the localized caches
  42203. @param str a comma separated list of local archives]]>
  42204. </doc>
  42205. </method>
  42206. <method name="setLocalFiles"
  42207. abstract="false" native="false" synchronized="false"
  42208. static="true" final="false" visibility="public"
  42209. deprecated="not deprecated">
  42210. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42211. <param name="str" type="java.lang.String"/>
  42212. <doc>
  42213. <![CDATA[Set the conf to contain the location for localized files. Used
  42214. by internal DistributedCache code.
  42215. @param conf The conf to modify to contain the localized caches
  42216. @param str a comma separated list of local files]]>
  42217. </doc>
  42218. </method>
  42219. <method name="addLocalArchives"
  42220. abstract="false" native="false" synchronized="false"
  42221. static="true" final="false" visibility="public"
  42222. deprecated="not deprecated">
  42223. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42224. <param name="str" type="java.lang.String"/>
  42225. <doc>
  42226. <![CDATA[Add a archive that has been localized to the conf. Used
  42227. by internal DistributedCache code.
  42228. @param conf The conf to modify to contain the localized caches
  42229. @param str a comma separated list of local archives]]>
  42230. </doc>
  42231. </method>
  42232. <method name="addLocalFiles"
  42233. abstract="false" native="false" synchronized="false"
  42234. static="true" final="false" visibility="public"
  42235. deprecated="not deprecated">
  42236. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42237. <param name="str" type="java.lang.String"/>
  42238. <doc>
  42239. <![CDATA[Add a file that has been localized to the conf.. Used
  42240. by internal DistributedCache code.
  42241. @param conf The conf to modify to contain the localized caches
  42242. @param str a comma separated list of local files]]>
  42243. </doc>
  42244. </method>
  42245. <method name="addCacheArchive"
  42246. abstract="false" native="false" synchronized="false"
  42247. static="true" final="false" visibility="public"
  42248. deprecated="not deprecated">
  42249. <param name="uri" type="java.net.URI"/>
  42250. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42251. <doc>
  42252. <![CDATA[Add a archives to be localized to the conf. Intended to
  42253. be used by user code.
  42254. @param uri The uri of the cache to be localized
  42255. @param conf Configuration to add the cache to]]>
  42256. </doc>
  42257. </method>
  42258. <method name="addCacheFile"
  42259. abstract="false" native="false" synchronized="false"
  42260. static="true" final="false" visibility="public"
  42261. deprecated="not deprecated">
  42262. <param name="uri" type="java.net.URI"/>
  42263. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42264. <doc>
  42265. <![CDATA[Add a file to be localized to the conf. Intended
  42266. to be used by user code.
  42267. @param uri The uri of the cache to be localized
  42268. @param conf Configuration to add the cache to]]>
  42269. </doc>
  42270. </method>
  42271. <method name="addFileToClassPath"
  42272. abstract="false" native="false" synchronized="false"
  42273. static="true" final="false" visibility="public"
  42274. deprecated="Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  42275. instead. The {@code FileSystem} should be obtained within an
  42276. appropriate {@code doAs}.">
  42277. <param name="file" type="org.apache.hadoop.fs.Path"/>
  42278. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42279. <exception name="IOException" type="java.io.IOException"/>
  42280. <doc>
  42281. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  42282. to cache as well. Intended to be used by user code.
  42283. @deprecated
  42284. Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  42285. instead. The {@code FileSystem} should be obtained within an
  42286. appropriate {@code doAs}.
  42287. @param file Path of the file to be added
  42288. @param conf Configuration that contains the classpath setting]]>
  42289. </doc>
  42290. </method>
  42291. <method name="addFileToClassPath"
  42292. abstract="false" native="false" synchronized="false"
  42293. static="true" final="false" visibility="public"
  42294. deprecated="not deprecated">
  42295. <param name="file" type="org.apache.hadoop.fs.Path"/>
  42296. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42297. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  42298. <exception name="IOException" type="java.io.IOException"/>
  42299. <doc>
  42300. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  42301. to cache as well. Intended to be used by user code.
  42302. @param file Path of the file to be added
  42303. @param conf Configuration that contains the classpath setting
  42304. @param fs FileSystem with respect to which {@code archivefile} should
  42305. be interpreted.]]>
  42306. </doc>
  42307. </method>
  42308. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  42309. abstract="false" native="false" synchronized="false"
  42310. static="true" final="false" visibility="public"
  42311. deprecated="not deprecated">
  42312. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42313. <doc>
  42314. <![CDATA[Get the file entries in classpath as an array of Path.
  42315. Used by internal DistributedCache code.
  42316. @param conf Configuration that contains the classpath setting]]>
  42317. </doc>
  42318. </method>
  42319. <method name="addArchiveToClassPath"
  42320. abstract="false" native="false" synchronized="false"
  42321. static="true" final="false" visibility="public"
  42322. deprecated="Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  42323. instead. The {@code FileSystem} should be obtained within an
  42324. appropriate {@code doAs}.">
  42325. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  42326. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42327. <exception name="IOException" type="java.io.IOException"/>
  42328. <doc>
  42329. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  42330. archive to cache as well. Intended to be used by user code.
  42331. @deprecated
  42332. Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  42333. instead. The {@code FileSystem} should be obtained within an
  42334. appropriate {@code doAs}.
  42335. @param archive Path of the archive to be added
  42336. @param conf Configuration that contains the classpath setting]]>
  42337. </doc>
  42338. </method>
  42339. <method name="addArchiveToClassPath"
  42340. abstract="false" native="false" synchronized="false"
  42341. static="true" final="false" visibility="public"
  42342. deprecated="not deprecated">
  42343. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  42344. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42345. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  42346. <exception name="IOException" type="java.io.IOException"/>
  42347. <doc>
  42348. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  42349. archive to cache as well. Intended to be used by user code.
  42350. @param archive Path of the archive to be added
  42351. @param conf Configuration that contains the classpath setting
  42352. @param fs FileSystem with respect to which {@code archive} should be interpreted.]]>
  42353. </doc>
  42354. </method>
  42355. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  42356. abstract="false" native="false" synchronized="false"
  42357. static="true" final="false" visibility="public"
  42358. deprecated="not deprecated">
  42359. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42360. <doc>
  42361. <![CDATA[Get the archive entries in classpath as an array of Path.
  42362. Used by internal DistributedCache code.
  42363. @param conf Configuration that contains the classpath setting]]>
  42364. </doc>
  42365. </method>
  42366. <method name="createSymlink"
  42367. abstract="false" native="false" synchronized="false"
  42368. static="true" final="false" visibility="public"
  42369. deprecated="not deprecated">
  42370. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42371. <doc>
  42372. <![CDATA[This method allows you to create symlinks in the current working directory
  42373. of the task to all the cache files/archives.
  42374. Intended to be used by user code.
  42375. @param conf the jobconf]]>
  42376. </doc>
  42377. </method>
  42378. <method name="getSymlink" return="boolean"
  42379. abstract="false" native="false" synchronized="false"
  42380. static="true" final="false" visibility="public"
  42381. deprecated="not deprecated">
  42382. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42383. <doc>
  42384. <![CDATA[This method checks to see if symlinks are to be create for the
  42385. localized cache files in the current working directory
  42386. Used by internal DistributedCache code.
  42387. @param conf the jobconf
  42388. @return true if symlinks are to be created- else return false]]>
  42389. </doc>
  42390. </method>
  42391. <method name="checkURIs" return="boolean"
  42392. abstract="false" native="false" synchronized="false"
  42393. static="true" final="false" visibility="public"
  42394. deprecated="not deprecated">
  42395. <param name="uriFiles" type="java.net.URI[]"/>
  42396. <param name="uriArchives" type="java.net.URI[]"/>
  42397. <doc>
  42398. <![CDATA[This method checks if there is a conflict in the fragment names
  42399. of the uris. Also makes sure that each uri has a fragment. It
  42400. is only to be called if you want to create symlinks for
  42401. the various archives and files. May be used by user code.
  42402. @param uriFiles The uri array of urifiles
  42403. @param uriArchives the uri array of uri archives]]>
  42404. </doc>
  42405. </method>
  42406. <field name="CACHE_FILES_SIZES" type="java.lang.String"
  42407. transient="false" volatile="false"
  42408. static="true" final="true" visibility="public"
  42409. deprecated="not deprecated">
  42410. <doc>
  42411. <![CDATA[Warning: {@link #CACHE_FILES_SIZES} is not a *public* constant.]]>
  42412. </doc>
  42413. </field>
  42414. <field name="CACHE_ARCHIVES_SIZES" type="java.lang.String"
  42415. transient="false" volatile="false"
  42416. static="true" final="true" visibility="public"
  42417. deprecated="not deprecated">
  42418. <doc>
  42419. <![CDATA[Warning: {@link #CACHE_ARCHIVES_SIZES} is not a *public* constant.]]>
  42420. </doc>
  42421. </field>
  42422. <field name="CACHE_ARCHIVES_TIMESTAMPS" type="java.lang.String"
  42423. transient="false" volatile="false"
  42424. static="true" final="true" visibility="public"
  42425. deprecated="not deprecated">
  42426. <doc>
  42427. <![CDATA[Warning: {@link #CACHE_ARCHIVES_TIMESTAMPS} is not a *public* constant.]]>
  42428. </doc>
  42429. </field>
  42430. <field name="CACHE_FILES_TIMESTAMPS" type="java.lang.String"
  42431. transient="false" volatile="false"
  42432. static="true" final="true" visibility="public"
  42433. deprecated="not deprecated">
  42434. <doc>
  42435. <![CDATA[Warning: {@link #CACHE_FILES_TIMESTAMPS} is not a *public* constant.]]>
  42436. </doc>
  42437. </field>
  42438. <field name="CACHE_ARCHIVES" type="java.lang.String"
  42439. transient="false" volatile="false"
  42440. static="true" final="true" visibility="public"
  42441. deprecated="not deprecated">
  42442. <doc>
  42443. <![CDATA[Warning: {@link #CACHE_ARCHIVES} is not a *public* constant.]]>
  42444. </doc>
  42445. </field>
  42446. <field name="CACHE_FILES" type="java.lang.String"
  42447. transient="false" volatile="false"
  42448. static="true" final="true" visibility="public"
  42449. deprecated="not deprecated">
  42450. <doc>
  42451. <![CDATA[Warning: {@link #CACHE_FILES} is not a *public* constant.]]>
  42452. </doc>
  42453. </field>
  42454. <field name="CACHE_LOCALARCHIVES" type="java.lang.String"
  42455. transient="false" volatile="false"
  42456. static="true" final="true" visibility="public"
  42457. deprecated="not deprecated">
  42458. <doc>
  42459. <![CDATA[Warning: {@link #CACHE_LOCALARCHIVES} is not a *public* constant.]]>
  42460. </doc>
  42461. </field>
  42462. <field name="CACHE_LOCALFILES" type="java.lang.String"
  42463. transient="false" volatile="false"
  42464. static="true" final="true" visibility="public"
  42465. deprecated="not deprecated">
  42466. <doc>
  42467. <![CDATA[Warning: {@link #CACHE_LOCALFILES} is not a *public* constant.]]>
  42468. </doc>
  42469. </field>
  42470. <field name="CACHE_SYMLINK" type="java.lang.String"
  42471. transient="false" volatile="false"
  42472. static="true" final="true" visibility="public"
  42473. deprecated="not deprecated">
  42474. <doc>
  42475. <![CDATA[Warning: {@link #CACHE_SYMLINK} is not a *public* constant.]]>
  42476. </doc>
  42477. </field>
  42478. <doc>
  42479. <![CDATA[Distribute application-specific large, read-only files efficiently.
  42480. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  42481. framework to cache files (text, archives, jars etc.) needed by applications.
  42482. </p>
  42483. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  42484. via the {@link org.apache.hadoop.mapred.JobConf}.
  42485. The <code>DistributedCache</code> assumes that the
  42486. files specified via hdfs:// urls are already present on the
  42487. {@link FileSystem} at the path specified by the url.</p>
  42488. <p>The framework will copy the necessary files on to the slave node before
  42489. any tasks for the job are executed on that node. Its efficiency stems from
  42490. the fact that the files are only copied once per job and the ability to
  42491. cache archives which are un-archived on the slaves.</p>
  42492. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  42493. data/text files and/or more complex types such as archives, jars etc.
  42494. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  42495. Jars may be optionally added to the classpath of the tasks, a rudimentary
  42496. software distribution mechanism. Files have execution permissions.
  42497. Optionally users can also direct it to symlink the distributed cache file(s)
  42498. into the working directory of the task.</p>
  42499. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  42500. files. Clearly the cache files should not be modified by the application
  42501. or externally while the job is executing.</p>
  42502. <p>Here is an illustrative example on how to use the
  42503. <code>DistributedCache</code>:</p>
  42504. <p><blockquote><pre>
  42505. // Setting up the cache for the application
  42506. 1. Copy the requisite files to the <code>FileSystem</code>:
  42507. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  42508. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  42509. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  42510. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  42511. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  42512. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  42513. 2. Setup the application's <code>JobConf</code>:
  42514. JobConf job = new JobConf();
  42515. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  42516. job);
  42517. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  42518. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  42519. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  42520. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  42521. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  42522. 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper}
  42523. or {@link org.apache.hadoop.mapred.Reducer}:
  42524. public static class MapClass extends MapReduceBase
  42525. implements Mapper&lt;K, V, K, V&gt; {
  42526. private Path[] localArchives;
  42527. private Path[] localFiles;
  42528. public void configure(JobConf job) {
  42529. // Get the cached archives/files
  42530. localArchives = DistributedCache.getLocalCacheArchives(job);
  42531. localFiles = DistributedCache.getLocalCacheFiles(job);
  42532. }
  42533. public void map(K key, V value,
  42534. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  42535. throws IOException {
  42536. // Use data from the cached archives/files here
  42537. // ...
  42538. // ...
  42539. output.collect(k, v);
  42540. }
  42541. }
  42542. </pre></blockquote></p>
  42543. It is also very common to use the DistributedCache by using
  42544. {@link org.apache.hadoop.util.GenericOptionsParser}.
  42545. This class includes methods that should be used by users
  42546. (specifically those mentioned in the example above, as well
  42547. as {@link DistributedCache#addArchiveToClassPath(Path, Configuration)}),
  42548. as well as methods intended for use by the MapReduce framework
  42549. (e.g., {@link org.apache.hadoop.mapred.JobClient}). For implementation
  42550. details, see {@link TrackerDistributedCacheManager} and
  42551. {@link TaskDistributedCacheManager}.
  42552. @see TrackerDistributedCacheManager
  42553. @see TaskDistributedCacheManager
  42554. @see org.apache.hadoop.mapred.JobConf
  42555. @see org.apache.hadoop.mapred.JobClient]]>
  42556. </doc>
  42557. </class>
  42558. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  42559. <!-- start class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  42560. <class name="TaskDistributedCacheManager" extends="java.lang.Object"
  42561. abstract="false"
  42562. static="false" final="false" visibility="public"
  42563. deprecated="not deprecated">
  42564. <method name="setupCache"
  42565. abstract="false" native="false" synchronized="false"
  42566. static="false" final="false" visibility="public"
  42567. deprecated="not deprecated">
  42568. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  42569. <param name="publicCacheSubdir" type="java.lang.String"/>
  42570. <param name="privateCacheSubdir" type="java.lang.String"/>
  42571. <exception name="IOException" type="java.io.IOException"/>
  42572. <doc>
  42573. <![CDATA[Retrieve public distributed cache files into the local cache and updates
  42574. the task configuration (which has been passed in via the constructor).
  42575. The private distributed cache is just looked at and the paths where the
  42576. files/archives should go to is decided here. The actual localization is
  42577. done by {@link JobLocalizer}.
  42578. It is the caller's responsibility to re-write the task configuration XML
  42579. file, if necessary.]]>
  42580. </doc>
  42581. </method>
  42582. <method name="getClassPaths" return="java.util.List"
  42583. abstract="false" native="false" synchronized="false"
  42584. static="false" final="false" visibility="public"
  42585. deprecated="not deprecated">
  42586. <exception name="IOException" type="java.io.IOException"/>
  42587. <doc>
  42588. <![CDATA[Retrieves class paths (as local references) to add.
  42589. Should be called after setup().]]>
  42590. </doc>
  42591. </method>
  42592. <method name="release"
  42593. abstract="false" native="false" synchronized="false"
  42594. static="false" final="false" visibility="public"
  42595. deprecated="not deprecated">
  42596. <exception name="IOException" type="java.io.IOException"/>
  42597. <doc>
  42598. <![CDATA[Releases the cached files/archives, so that space
  42599. can be reclaimed by the {@link TrackerDistributedCacheManager}.]]>
  42600. </doc>
  42601. </method>
  42602. <method name="setSizes"
  42603. abstract="false" native="false" synchronized="false"
  42604. static="false" final="false" visibility="public"
  42605. deprecated="not deprecated">
  42606. <param name="sizes" type="long[]"/>
  42607. <exception name="IOException" type="java.io.IOException"/>
  42608. </method>
  42609. <method name="makeClassLoader" return="java.lang.ClassLoader"
  42610. abstract="false" native="false" synchronized="false"
  42611. static="false" final="false" visibility="public"
  42612. deprecated="not deprecated">
  42613. <param name="parent" type="java.lang.ClassLoader"/>
  42614. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  42615. <doc>
  42616. <![CDATA[Creates a class loader that includes the designated
  42617. files and archives.]]>
  42618. </doc>
  42619. </method>
  42620. <doc>
  42621. <![CDATA[Helper class of {@link TrackerDistributedCacheManager} that represents
  42622. the cached files of a single job.
  42623. <b>This class is internal to Hadoop, and should not be treated as a public
  42624. interface.</b>]]>
  42625. </doc>
  42626. </class>
  42627. <!-- end class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  42628. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  42629. <class name="TrackerDistributedCacheManager" extends="java.lang.Object"
  42630. abstract="false"
  42631. static="false" final="false" visibility="public"
  42632. deprecated="not deprecated">
  42633. <constructor name="TrackerDistributedCacheManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  42634. static="false" final="false" visibility="public"
  42635. deprecated="not deprecated">
  42636. <exception name="IOException" type="java.io.IOException"/>
  42637. </constructor>
  42638. <method name="downloadCacheObject" return="long"
  42639. abstract="false" native="false" synchronized="false"
  42640. static="true" final="false" visibility="public"
  42641. deprecated="not deprecated">
  42642. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42643. <param name="source" type="java.net.URI"/>
  42644. <param name="destination" type="org.apache.hadoop.fs.Path"/>
  42645. <param name="desiredTimestamp" type="long"/>
  42646. <param name="isArchive" type="boolean"/>
  42647. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  42648. <exception name="IOException" type="java.io.IOException"/>
  42649. <doc>
  42650. <![CDATA[Download a given path to the local file system.
  42651. @param conf the job's configuration
  42652. @param source the source to copy from
  42653. @param destination where to copy the file. must be local fs
  42654. @param desiredTimestamp the required modification timestamp of the source
  42655. @param isArchive is this an archive that should be expanded
  42656. @param permission the desired permissions of the file.
  42657. @return for archives, the number of bytes in the unpacked directory
  42658. @throws IOException]]>
  42659. </doc>
  42660. </method>
  42661. <method name="createAllSymlink"
  42662. abstract="false" native="false" synchronized="false"
  42663. static="true" final="false" visibility="public"
  42664. deprecated="not deprecated">
  42665. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42666. <param name="jobCacheDir" type="java.io.File"/>
  42667. <param name="workDir" type="java.io.File"/>
  42668. <exception name="IOException" type="java.io.IOException"/>
  42669. <doc>
  42670. <![CDATA[This method create symlinks for all files in a given dir in another
  42671. directory.
  42672. Should not be used outside of DistributedCache code.
  42673. @param conf the configuration
  42674. @param jobCacheDir the target directory for creating symlinks
  42675. @param workDir the directory in which the symlinks are created
  42676. @throws IOException]]>
  42677. </doc>
  42678. </method>
  42679. <method name="purgeCache"
  42680. abstract="false" native="false" synchronized="false"
  42681. static="false" final="false" visibility="public"
  42682. deprecated="not deprecated">
  42683. <doc>
  42684. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  42685. should only be used when the server is reinitializing, because the users
  42686. are going to lose their files.]]>
  42687. </doc>
  42688. </method>
  42689. <method name="newTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  42690. abstract="false" native="false" synchronized="false"
  42691. static="false" final="false" visibility="public"
  42692. deprecated="not deprecated">
  42693. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  42694. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  42695. <exception name="IOException" type="java.io.IOException"/>
  42696. </method>
  42697. <method name="setArchiveSizes"
  42698. abstract="false" native="false" synchronized="false"
  42699. static="false" final="false" visibility="public"
  42700. deprecated="not deprecated">
  42701. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  42702. <param name="sizes" type="long[]"/>
  42703. <exception name="IOException" type="java.io.IOException"/>
  42704. </method>
  42705. <method name="determineTimestamps"
  42706. abstract="false" native="false" synchronized="false"
  42707. static="true" final="false" visibility="public"
  42708. deprecated="not deprecated">
  42709. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  42710. <exception name="IOException" type="java.io.IOException"/>
  42711. <doc>
  42712. <![CDATA[Determines timestamps of files to be cached, and stores those
  42713. in the configuration. This is intended to be used internally by JobClient
  42714. after all cache files have been added.
  42715. This is an internal method!
  42716. @param job Configuration of a job.
  42717. @throws IOException]]>
  42718. </doc>
  42719. </method>
  42720. <method name="determineCacheVisibilities"
  42721. abstract="false" native="false" synchronized="false"
  42722. static="true" final="false" visibility="public"
  42723. deprecated="not deprecated">
  42724. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  42725. <exception name="IOException" type="java.io.IOException"/>
  42726. <doc>
  42727. <![CDATA[Determines the visibilities of the distributed cache files and
  42728. archives. The visibility of a cache path is "public" if the leaf component
  42729. has READ permissions for others, and the parent subdirs have
  42730. EXECUTE permissions for others
  42731. @param job
  42732. @throws IOException]]>
  42733. </doc>
  42734. </method>
  42735. <method name="getFileVisibilities" return="boolean[]"
  42736. abstract="false" native="false" synchronized="false"
  42737. static="true" final="false" visibility="public"
  42738. deprecated="not deprecated">
  42739. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42740. <doc>
  42741. <![CDATA[Get the booleans on whether the files are public or not. Used by
  42742. internal DistributedCache and MapReduce code.
  42743. @param conf The configuration which stored the timestamps
  42744. @return array of booleans
  42745. @throws IOException]]>
  42746. </doc>
  42747. </method>
  42748. <method name="getArchiveVisibilities" return="boolean[]"
  42749. abstract="false" native="false" synchronized="false"
  42750. static="true" final="false" visibility="public"
  42751. deprecated="not deprecated">
  42752. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42753. <doc>
  42754. <![CDATA[Get the booleans on whether the archives are public or not. Used by
  42755. internal DistributedCache and MapReduce code.
  42756. @param conf The configuration which stored the timestamps
  42757. @return array of booleans]]>
  42758. </doc>
  42759. </method>
  42760. <method name="getDelegationTokens"
  42761. abstract="false" native="false" synchronized="false"
  42762. static="true" final="false" visibility="public"
  42763. deprecated="not deprecated">
  42764. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  42765. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  42766. <exception name="IOException" type="java.io.IOException"/>
  42767. <doc>
  42768. <![CDATA[For each archive or cache file - get the corresponding delegation token
  42769. @param job
  42770. @param credentials
  42771. @throws IOException]]>
  42772. </doc>
  42773. </method>
  42774. <method name="validate"
  42775. abstract="false" native="false" synchronized="false"
  42776. static="true" final="false" visibility="public"
  42777. deprecated="not deprecated">
  42778. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42779. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  42780. <doc>
  42781. <![CDATA[This is part of the framework API. It's called within the job
  42782. submission code only, not by users. In the non-error case it has
  42783. no side effects and returns normally. If there's a URI in both
  42784. mapred.cache.files and mapred.cache.archives, it throws its
  42785. exception.
  42786. @param conf a {@link Configuration} to be cheked for duplication
  42787. in cached URIs
  42788. @throws InvalidJobConfException]]>
  42789. </doc>
  42790. </method>
  42791. <method name="startCleanupThread"
  42792. abstract="false" native="false" synchronized="false"
  42793. static="false" final="false" visibility="public"
  42794. deprecated="not deprecated">
  42795. <doc>
  42796. <![CDATA[Start the background thread]]>
  42797. </doc>
  42798. </method>
  42799. <method name="stopCleanupThread"
  42800. abstract="false" native="false" synchronized="false"
  42801. static="false" final="false" visibility="public"
  42802. deprecated="not deprecated">
  42803. <doc>
  42804. <![CDATA[Stop the background thread]]>
  42805. </doc>
  42806. </method>
  42807. <field name="baseDirManager" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager"
  42808. transient="false" volatile="false"
  42809. static="false" final="false" visibility="protected"
  42810. deprecated="not deprecated">
  42811. </field>
  42812. <field name="cleanupThread" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread"
  42813. transient="false" volatile="false"
  42814. static="false" final="false" visibility="protected"
  42815. deprecated="not deprecated">
  42816. </field>
  42817. <doc>
  42818. <![CDATA[Manages a single machine's instance of a cross-job
  42819. cache. This class would typically be instantiated
  42820. by a TaskTracker (or something that emulates it,
  42821. like LocalJobRunner).
  42822. <b>This class is internal to Hadoop, and should not be treated as a public
  42823. interface.</b>]]>
  42824. </doc>
  42825. </class>
  42826. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  42827. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  42828. <class name="TrackerDistributedCacheManager.BaseDirManager" extends="java.lang.Object"
  42829. abstract="false"
  42830. static="false" final="false" visibility="protected"
  42831. deprecated="not deprecated">
  42832. <constructor name="TrackerDistributedCacheManager.BaseDirManager"
  42833. static="false" final="false" visibility="protected"
  42834. deprecated="not deprecated">
  42835. </constructor>
  42836. <method name="deleteCacheInfoUpdate"
  42837. abstract="false" native="false" synchronized="false"
  42838. static="false" final="false" visibility="public"
  42839. deprecated="not deprecated">
  42840. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  42841. <doc>
  42842. <![CDATA[Decrement the size and sub directory count of the cache from baseDirSize
  42843. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  42844. @param cacheStatus cache status of the cache is deleted]]>
  42845. </doc>
  42846. </method>
  42847. <method name="addCacheInfoUpdate"
  42848. abstract="false" native="false" synchronized="false"
  42849. static="false" final="false" visibility="public"
  42850. deprecated="not deprecated">
  42851. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  42852. <doc>
  42853. <![CDATA[Update the maps baseDirSize and baseDirNumberSubDir when adding cache.
  42854. Increase the size and sub directory count of the cache from baseDirSize
  42855. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  42856. @param cacheStatus cache status of the cache is added]]>
  42857. </doc>
  42858. </method>
  42859. <doc>
  42860. <![CDATA[This class holds properties of each base directories and is responsible
  42861. for clean up unused cache files in base directories.]]>
  42862. </doc>
  42863. </class>
  42864. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  42865. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  42866. <class name="TrackerDistributedCacheManager.CleanupThread" extends="java.lang.Thread"
  42867. abstract="false"
  42868. static="false" final="false" visibility="protected"
  42869. deprecated="not deprecated">
  42870. <constructor name="TrackerDistributedCacheManager.CleanupThread" type="org.apache.hadoop.conf.Configuration"
  42871. static="false" final="false" visibility="public"
  42872. deprecated="not deprecated">
  42873. </constructor>
  42874. <method name="stopRunning"
  42875. abstract="false" native="false" synchronized="false"
  42876. static="false" final="false" visibility="public"
  42877. deprecated="not deprecated">
  42878. </method>
  42879. <method name="run"
  42880. abstract="false" native="false" synchronized="false"
  42881. static="false" final="false" visibility="public"
  42882. deprecated="not deprecated">
  42883. </method>
  42884. <method name="exitTaskTracker"
  42885. abstract="false" native="false" synchronized="false"
  42886. static="false" final="false" visibility="protected"
  42887. deprecated="not deprecated">
  42888. <param name="t" type="java.lang.Throwable"/>
  42889. <doc>
  42890. <![CDATA[Exit the task tracker because of a fatal error.]]>
  42891. </doc>
  42892. </method>
  42893. <doc>
  42894. <![CDATA[A thread to check and cleanup the unused files periodically]]>
  42895. </doc>
  42896. </class>
  42897. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  42898. </package>
  42899. <package name="org.apache.hadoop.mapred">
  42900. <!-- start interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  42901. <interface name="AdminOperationsProtocol" abstract="true"
  42902. static="false" final="false" visibility="public"
  42903. deprecated="not deprecated">
  42904. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  42905. <method name="refreshQueues"
  42906. abstract="false" native="false" synchronized="false"
  42907. static="false" final="false" visibility="public"
  42908. deprecated="not deprecated">
  42909. <exception name="IOException" type="java.io.IOException"/>
  42910. <doc>
  42911. <![CDATA[Refresh the queue acls in use currently.
  42912. Refresh the queues used by the jobtracker and scheduler.
  42913. Access control lists and queue states are refreshed.]]>
  42914. </doc>
  42915. </method>
  42916. <method name="refreshNodes"
  42917. abstract="false" native="false" synchronized="false"
  42918. static="false" final="false" visibility="public"
  42919. deprecated="not deprecated">
  42920. <exception name="IOException" type="java.io.IOException"/>
  42921. <doc>
  42922. <![CDATA[Refresh the node list at the {@link JobTracker}]]>
  42923. </doc>
  42924. </method>
  42925. <field name="versionID" type="long"
  42926. transient="false" volatile="false"
  42927. static="true" final="true" visibility="public"
  42928. deprecated="not deprecated">
  42929. <doc>
  42930. <![CDATA[Version 1: Initial version. Added refreshQueueAcls.
  42931. Version 2: Added node refresh facility
  42932. Version 3: Changed refreshQueueAcls to refreshQueues]]>
  42933. </doc>
  42934. </field>
  42935. <doc>
  42936. <![CDATA[Protocol for admin operations. This is a framework-public interface and is
  42937. NOT_TO_BE_USED_BY_USERS_DIRECTLY.]]>
  42938. </doc>
  42939. </interface>
  42940. <!-- end interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  42941. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  42942. <class name="ClusterStatus" extends="java.lang.Object"
  42943. abstract="false"
  42944. static="false" final="false" visibility="public"
  42945. deprecated="not deprecated">
  42946. <implements name="org.apache.hadoop.io.Writable"/>
  42947. <method name="getTaskTrackers" return="int"
  42948. abstract="false" native="false" synchronized="false"
  42949. static="false" final="false" visibility="public"
  42950. deprecated="not deprecated">
  42951. <doc>
  42952. <![CDATA[Get the number of active task trackers in the cluster. Includes
  42953. graylisted but not blacklisted trackers.
  42954. @return the number of active task trackers in the cluster.]]>
  42955. </doc>
  42956. </method>
  42957. <method name="getActiveTrackerNames" return="java.util.Collection"
  42958. abstract="false" native="false" synchronized="false"
  42959. static="false" final="false" visibility="public"
  42960. deprecated="not deprecated">
  42961. <doc>
  42962. <![CDATA[Get the names of active task trackers in the cluster. Includes
  42963. graylisted but not blacklisted trackers.
  42964. @return the active task trackers in the cluster.]]>
  42965. </doc>
  42966. </method>
  42967. <method name="getBlacklistedTrackerNames" return="java.util.Collection"
  42968. abstract="false" native="false" synchronized="false"
  42969. static="false" final="false" visibility="public"
  42970. deprecated="not deprecated">
  42971. <doc>
  42972. <![CDATA[Get the names of blacklisted task trackers in the cluster.
  42973. @return the blacklisted task trackers in the cluster.]]>
  42974. </doc>
  42975. </method>
  42976. <method name="getBlacklistedTrackers" return="int"
  42977. abstract="false" native="false" synchronized="false"
  42978. static="false" final="false" visibility="public"
  42979. deprecated="not deprecated">
  42980. <doc>
  42981. <![CDATA[Get the number of blacklisted task trackers in the cluster.
  42982. @return the number of blacklisted task trackers in the cluster.]]>
  42983. </doc>
  42984. </method>
  42985. <method name="getGraylistedTrackerNames" return="java.util.Collection"
  42986. abstract="false" native="false" synchronized="false"
  42987. static="false" final="false" visibility="public"
  42988. deprecated="not deprecated">
  42989. <doc>
  42990. <![CDATA[Get the names of graylisted task trackers in the cluster.
  42991. @return the graylisted task trackers in the cluster.]]>
  42992. </doc>
  42993. </method>
  42994. <method name="getGraylistedTrackers" return="int"
  42995. abstract="false" native="false" synchronized="false"
  42996. static="false" final="false" visibility="public"
  42997. deprecated="not deprecated">
  42998. <doc>
  42999. <![CDATA[Get the number of graylisted task trackers in the cluster.
  43000. @return the number of graylisted task trackers in the cluster.]]>
  43001. </doc>
  43002. </method>
  43003. <method name="getNumExcludedNodes" return="int"
  43004. abstract="false" native="false" synchronized="false"
  43005. static="false" final="false" visibility="public"
  43006. deprecated="not deprecated">
  43007. <doc>
  43008. <![CDATA[Get the number of excluded hosts in the cluster.
  43009. @return the number of excluded hosts in the cluster.]]>
  43010. </doc>
  43011. </method>
  43012. <method name="getTTExpiryInterval" return="long"
  43013. abstract="false" native="false" synchronized="false"
  43014. static="false" final="false" visibility="public"
  43015. deprecated="not deprecated">
  43016. <doc>
  43017. <![CDATA[Get the tasktracker expiry interval for the cluster
  43018. @return the expiry interval in msec]]>
  43019. </doc>
  43020. </method>
  43021. <method name="getMapTasks" return="int"
  43022. abstract="false" native="false" synchronized="false"
  43023. static="false" final="false" visibility="public"
  43024. deprecated="not deprecated">
  43025. <doc>
  43026. <![CDATA[Get the number of currently running map tasks in the cluster.
  43027. @return the number of currently running map tasks in the cluster.]]>
  43028. </doc>
  43029. </method>
  43030. <method name="getReduceTasks" return="int"
  43031. abstract="false" native="false" synchronized="false"
  43032. static="false" final="false" visibility="public"
  43033. deprecated="not deprecated">
  43034. <doc>
  43035. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  43036. @return the number of currently running reduce tasks in the cluster.]]>
  43037. </doc>
  43038. </method>
  43039. <method name="getMaxMapTasks" return="int"
  43040. abstract="false" native="false" synchronized="false"
  43041. static="false" final="false" visibility="public"
  43042. deprecated="not deprecated">
  43043. <doc>
  43044. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  43045. @return the maximum capacity for running map tasks in the cluster.]]>
  43046. </doc>
  43047. </method>
  43048. <method name="getMaxReduceTasks" return="int"
  43049. abstract="false" native="false" synchronized="false"
  43050. static="false" final="false" visibility="public"
  43051. deprecated="not deprecated">
  43052. <doc>
  43053. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  43054. @return the maximum capacity for running reduce tasks in the cluster.]]>
  43055. </doc>
  43056. </method>
  43057. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  43058. abstract="false" native="false" synchronized="false"
  43059. static="false" final="false" visibility="public"
  43060. deprecated="not deprecated">
  43061. <doc>
  43062. <![CDATA[Get the current state of the <code>JobTracker</code>,
  43063. as {@link JobTracker.State}
  43064. @return the current state of the <code>JobTracker</code>.]]>
  43065. </doc>
  43066. </method>
  43067. <method name="getUsedMemory" return="long"
  43068. abstract="false" native="false" synchronized="false"
  43069. static="false" final="false" visibility="public"
  43070. deprecated="not deprecated">
  43071. <doc>
  43072. <![CDATA[Get the total heap memory used by the <code>JobTracker</code>
  43073. @return the size of heap memory used by the <code>JobTracker</code>]]>
  43074. </doc>
  43075. </method>
  43076. <method name="getMaxMemory" return="long"
  43077. abstract="false" native="false" synchronized="false"
  43078. static="false" final="false" visibility="public"
  43079. deprecated="not deprecated">
  43080. <doc>
  43081. <![CDATA[Get the maximum configured heap memory that can be used by the <code>JobTracker</code>
  43082. @return the configured size of max heap memory that can be used by the <code>JobTracker</code>]]>
  43083. </doc>
  43084. </method>
  43085. <method name="write"
  43086. abstract="false" native="false" synchronized="false"
  43087. static="false" final="false" visibility="public"
  43088. deprecated="not deprecated">
  43089. <param name="out" type="java.io.DataOutput"/>
  43090. <exception name="IOException" type="java.io.IOException"/>
  43091. </method>
  43092. <method name="readFields"
  43093. abstract="false" native="false" synchronized="false"
  43094. static="false" final="false" visibility="public"
  43095. deprecated="not deprecated">
  43096. <param name="in" type="java.io.DataInput"/>
  43097. <exception name="IOException" type="java.io.IOException"/>
  43098. </method>
  43099. <field name="UNINITIALIZED_MEMORY_VALUE" type="long"
  43100. transient="false" volatile="false"
  43101. static="true" final="true" visibility="public"
  43102. deprecated="not deprecated">
  43103. </field>
  43104. <doc>
  43105. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  43106. <p><code>ClusterStatus</code> provides clients with information such as:
  43107. <ol>
  43108. <li>
  43109. Size of the cluster.
  43110. </li>
  43111. <li>
  43112. Name of the trackers.
  43113. </li>
  43114. <li>
  43115. Task capacity of the cluster.
  43116. </li>
  43117. <li>
  43118. The number of currently running map & reduce tasks.
  43119. </li>
  43120. <li>
  43121. State of the <code>JobTracker</code>.
  43122. </li>
  43123. </ol></p>
  43124. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  43125. {@link JobClient#getClusterStatus()}.</p>
  43126. @see JobClient]]>
  43127. </doc>
  43128. </class>
  43129. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  43130. <!-- start class org.apache.hadoop.mapred.Counters -->
  43131. <class name="Counters" extends="java.lang.Object"
  43132. abstract="false"
  43133. static="false" final="false" visibility="public"
  43134. deprecated="not deprecated">
  43135. <implements name="org.apache.hadoop.io.Writable"/>
  43136. <implements name="java.lang.Iterable"/>
  43137. <constructor name="Counters"
  43138. static="false" final="false" visibility="public"
  43139. deprecated="not deprecated">
  43140. </constructor>
  43141. <method name="getGroupNames" return="java.util.Collection"
  43142. abstract="false" native="false" synchronized="true"
  43143. static="false" final="false" visibility="public"
  43144. deprecated="not deprecated">
  43145. <doc>
  43146. <![CDATA[Returns the names of all counter classes.
  43147. @return Set of counter names.]]>
  43148. </doc>
  43149. </method>
  43150. <method name="iterator" return="java.util.Iterator"
  43151. abstract="false" native="false" synchronized="true"
  43152. static="false" final="false" visibility="public"
  43153. deprecated="not deprecated">
  43154. </method>
  43155. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  43156. abstract="false" native="false" synchronized="true"
  43157. static="false" final="false" visibility="public"
  43158. deprecated="not deprecated">
  43159. <param name="groupName" type="java.lang.String"/>
  43160. <doc>
  43161. <![CDATA[Returns the named counter group, or an empty group if there is none
  43162. with the specified name.]]>
  43163. </doc>
  43164. </method>
  43165. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43166. abstract="false" native="false" synchronized="true"
  43167. static="false" final="false" visibility="public"
  43168. deprecated="not deprecated">
  43169. <param name="key" type="java.lang.Enum"/>
  43170. <doc>
  43171. <![CDATA[Find the counter for the given enum. The same enum will always return the
  43172. same counter.
  43173. @param key the counter key
  43174. @return the matching counter object]]>
  43175. </doc>
  43176. </method>
  43177. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43178. abstract="false" native="false" synchronized="true"
  43179. static="false" final="false" visibility="public"
  43180. deprecated="not deprecated">
  43181. <param name="group" type="java.lang.String"/>
  43182. <param name="name" type="java.lang.String"/>
  43183. <doc>
  43184. <![CDATA[Find a counter given the group and the name.
  43185. @param group the name of the group
  43186. @param name the internal name of the counter
  43187. @return the counter for that name]]>
  43188. </doc>
  43189. </method>
  43190. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43191. abstract="false" native="false" synchronized="true"
  43192. static="false" final="false" visibility="public"
  43193. deprecated="deprecated, no comment">
  43194. <param name="group" type="java.lang.String"/>
  43195. <param name="id" type="int"/>
  43196. <param name="name" type="java.lang.String"/>
  43197. <doc>
  43198. <![CDATA[Find a counter by using strings
  43199. @param group the name of the group
  43200. @param id the id of the counter within the group (0 to N-1)
  43201. @param name the internal name of the counter
  43202. @return the counter for that name
  43203. @deprecated]]>
  43204. </doc>
  43205. </method>
  43206. <method name="incrCounter"
  43207. abstract="false" native="false" synchronized="true"
  43208. static="false" final="false" visibility="public"
  43209. deprecated="not deprecated">
  43210. <param name="key" type="java.lang.Enum"/>
  43211. <param name="amount" type="long"/>
  43212. <doc>
  43213. <![CDATA[Increments the specified counter by the specified amount, creating it if
  43214. it didn't already exist.
  43215. @param key identifies a counter
  43216. @param amount amount by which counter is to be incremented]]>
  43217. </doc>
  43218. </method>
  43219. <method name="incrCounter"
  43220. abstract="false" native="false" synchronized="true"
  43221. static="false" final="false" visibility="public"
  43222. deprecated="not deprecated">
  43223. <param name="group" type="java.lang.String"/>
  43224. <param name="counter" type="java.lang.String"/>
  43225. <param name="amount" type="long"/>
  43226. <doc>
  43227. <![CDATA[Increments the specified counter by the specified amount, creating it if
  43228. it didn't already exist.
  43229. @param group the name of the group
  43230. @param counter the internal name of the counter
  43231. @param amount amount by which counter is to be incremented]]>
  43232. </doc>
  43233. </method>
  43234. <method name="getCounter" return="long"
  43235. abstract="false" native="false" synchronized="true"
  43236. static="false" final="false" visibility="public"
  43237. deprecated="not deprecated">
  43238. <param name="key" type="java.lang.Enum"/>
  43239. <doc>
  43240. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  43241. does not exist.]]>
  43242. </doc>
  43243. </method>
  43244. <method name="incrAllCounters"
  43245. abstract="false" native="false" synchronized="true"
  43246. static="false" final="false" visibility="public"
  43247. deprecated="not deprecated">
  43248. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  43249. <doc>
  43250. <![CDATA[Increments multiple counters by their amounts in another Counters
  43251. instance.
  43252. @param other the other Counters instance]]>
  43253. </doc>
  43254. </method>
  43255. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  43256. abstract="false" native="false" synchronized="false"
  43257. static="true" final="false" visibility="public"
  43258. deprecated="not deprecated">
  43259. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  43260. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  43261. <doc>
  43262. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  43263. </doc>
  43264. </method>
  43265. <method name="size" return="int"
  43266. abstract="false" native="false" synchronized="true"
  43267. static="false" final="false" visibility="public"
  43268. deprecated="not deprecated">
  43269. <doc>
  43270. <![CDATA[Returns the total number of counters, by summing the number of counters
  43271. in each group.]]>
  43272. </doc>
  43273. </method>
  43274. <method name="write"
  43275. abstract="false" native="false" synchronized="true"
  43276. static="false" final="false" visibility="public"
  43277. deprecated="not deprecated">
  43278. <param name="out" type="java.io.DataOutput"/>
  43279. <exception name="IOException" type="java.io.IOException"/>
  43280. <doc>
  43281. <![CDATA[Write the set of groups.
  43282. The external format is:
  43283. #groups (groupName group)*
  43284. i.e. the number of groups followed by 0 or more groups, where each
  43285. group is of the form:
  43286. groupDisplayName #counters (false | true counter)*
  43287. where each counter is of the form:
  43288. name (false | true displayName) value]]>
  43289. </doc>
  43290. </method>
  43291. <method name="readFields"
  43292. abstract="false" native="false" synchronized="true"
  43293. static="false" final="false" visibility="public"
  43294. deprecated="not deprecated">
  43295. <param name="in" type="java.io.DataInput"/>
  43296. <exception name="IOException" type="java.io.IOException"/>
  43297. <doc>
  43298. <![CDATA[Read a set of groups.]]>
  43299. </doc>
  43300. </method>
  43301. <method name="log"
  43302. abstract="false" native="false" synchronized="false"
  43303. static="false" final="false" visibility="public"
  43304. deprecated="not deprecated">
  43305. <param name="log" type="org.apache.commons.logging.Log"/>
  43306. <doc>
  43307. <![CDATA[Logs the current counter values.
  43308. @param log The log to use.]]>
  43309. </doc>
  43310. </method>
  43311. <method name="toString" return="java.lang.String"
  43312. abstract="false" native="false" synchronized="true"
  43313. static="false" final="false" visibility="public"
  43314. deprecated="not deprecated">
  43315. <doc>
  43316. <![CDATA[Return textual representation of the counter values.]]>
  43317. </doc>
  43318. </method>
  43319. <method name="makeCompactString" return="java.lang.String"
  43320. abstract="false" native="false" synchronized="true"
  43321. static="false" final="false" visibility="public"
  43322. deprecated="not deprecated">
  43323. <doc>
  43324. <![CDATA[Convert a counters object into a single line that is easy to parse.
  43325. @return the string with "name=value" for each counter and separated by ","]]>
  43326. </doc>
  43327. </method>
  43328. <method name="makeEscapedCompactString" return="java.lang.String"
  43329. abstract="false" native="false" synchronized="true"
  43330. static="false" final="false" visibility="public"
  43331. deprecated="not deprecated">
  43332. <doc>
  43333. <![CDATA[Represent the counter in a textual format that can be converted back to
  43334. its object form
  43335. @return the string in the following format
  43336. {(groupname)(group-displayname)[(countername)(displayname)(value)][][]}{}{}]]>
  43337. </doc>
  43338. </method>
  43339. <method name="fromEscapedCompactString" return="org.apache.hadoop.mapred.Counters"
  43340. abstract="false" native="false" synchronized="false"
  43341. static="true" final="false" visibility="public"
  43342. deprecated="not deprecated">
  43343. <param name="compactString" type="java.lang.String"/>
  43344. <exception name="ParseException" type="java.text.ParseException"/>
  43345. <doc>
  43346. <![CDATA[Convert a stringified counter representation into a counter object. Note
  43347. that the counter can be recovered if its stringified using
  43348. {@link #makeEscapedCompactString()}.
  43349. @return a Counter]]>
  43350. </doc>
  43351. </method>
  43352. <method name="hashCode" return="int"
  43353. abstract="false" native="false" synchronized="true"
  43354. static="false" final="false" visibility="public"
  43355. deprecated="not deprecated">
  43356. </method>
  43357. <method name="equals" return="boolean"
  43358. abstract="false" native="false" synchronized="true"
  43359. static="false" final="false" visibility="public"
  43360. deprecated="not deprecated">
  43361. <param name="obj" type="java.lang.Object"/>
  43362. </method>
  43363. <field name="MAX_COUNTER_LIMIT" type="int"
  43364. transient="false" volatile="false"
  43365. static="true" final="false" visibility="public"
  43366. deprecated="not deprecated">
  43367. <doc>
  43368. <![CDATA[limit on counters]]>
  43369. </doc>
  43370. </field>
  43371. <doc>
  43372. <![CDATA[A set of named counters.
  43373. <p><code>Counters</code> represent global counters, defined either by the
  43374. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  43375. any {@link Enum} type.</p>
  43376. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  43377. counters from a particular <code>Enum</code> class.]]>
  43378. </doc>
  43379. </class>
  43380. <!-- end class org.apache.hadoop.mapred.Counters -->
  43381. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  43382. <class name="Counters.Counter" extends="org.apache.hadoop.mapreduce.Counter"
  43383. abstract="false"
  43384. static="true" final="false" visibility="public"
  43385. deprecated="not deprecated">
  43386. <method name="setDisplayName"
  43387. abstract="false" native="false" synchronized="false"
  43388. static="false" final="false" visibility="public"
  43389. deprecated="not deprecated">
  43390. <param name="newName" type="java.lang.String"/>
  43391. </method>
  43392. <method name="makeEscapedCompactString" return="java.lang.String"
  43393. abstract="false" native="false" synchronized="true"
  43394. static="false" final="false" visibility="public"
  43395. deprecated="not deprecated">
  43396. <doc>
  43397. <![CDATA[Returns the compact stringified version of the counter in the format
  43398. [(actual-name)(display-name)(value)]]]>
  43399. </doc>
  43400. </method>
  43401. <method name="getCounter" return="long"
  43402. abstract="false" native="false" synchronized="true"
  43403. static="false" final="false" visibility="public"
  43404. deprecated="not deprecated">
  43405. <doc>
  43406. <![CDATA[What is the current value of this counter?
  43407. @return the current value]]>
  43408. </doc>
  43409. </method>
  43410. <doc>
  43411. <![CDATA[A counter record, comprising its name and value.]]>
  43412. </doc>
  43413. </class>
  43414. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  43415. <!-- start class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  43416. <class name="Counters.CountersExceededException" extends="java.lang.RuntimeException"
  43417. abstract="false"
  43418. static="true" final="false" visibility="public"
  43419. deprecated="not deprecated">
  43420. <constructor name="Counters.CountersExceededException" type="java.lang.String"
  43421. static="false" final="false" visibility="public"
  43422. deprecated="not deprecated">
  43423. </constructor>
  43424. <doc>
  43425. <![CDATA[Counter exception thrown when the number of counters exceed
  43426. the limit]]>
  43427. </doc>
  43428. </class>
  43429. <!-- end class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  43430. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  43431. <class name="Counters.Group" extends="java.lang.Object"
  43432. abstract="false"
  43433. static="false" final="false" visibility="public"
  43434. deprecated="not deprecated">
  43435. <implements name="org.apache.hadoop.io.Writable"/>
  43436. <implements name="java.lang.Iterable"/>
  43437. <method name="getName" return="java.lang.String"
  43438. abstract="false" native="false" synchronized="false"
  43439. static="false" final="false" visibility="public"
  43440. deprecated="not deprecated">
  43441. <doc>
  43442. <![CDATA[Returns raw name of the group. This is the name of the enum class
  43443. for this group of counters.]]>
  43444. </doc>
  43445. </method>
  43446. <method name="getDisplayName" return="java.lang.String"
  43447. abstract="false" native="false" synchronized="false"
  43448. static="false" final="false" visibility="public"
  43449. deprecated="not deprecated">
  43450. <doc>
  43451. <![CDATA[Returns localized name of the group. This is the same as getName() by
  43452. default, but different if an appropriate ResourceBundle is found.]]>
  43453. </doc>
  43454. </method>
  43455. <method name="setDisplayName"
  43456. abstract="false" native="false" synchronized="false"
  43457. static="false" final="false" visibility="public"
  43458. deprecated="not deprecated">
  43459. <param name="displayName" type="java.lang.String"/>
  43460. <doc>
  43461. <![CDATA[Set the display name]]>
  43462. </doc>
  43463. </method>
  43464. <method name="makeEscapedCompactString" return="java.lang.String"
  43465. abstract="false" native="false" synchronized="false"
  43466. static="false" final="false" visibility="public"
  43467. deprecated="not deprecated">
  43468. <doc>
  43469. <![CDATA[Returns the compact stringified version of the group in the format
  43470. {(actual-name)(display-name)(value)[][][]} where [] are compact strings for the
  43471. counters within.]]>
  43472. </doc>
  43473. </method>
  43474. <method name="hashCode" return="int"
  43475. abstract="false" native="false" synchronized="false"
  43476. static="false" final="false" visibility="public"
  43477. deprecated="not deprecated">
  43478. </method>
  43479. <method name="equals" return="boolean"
  43480. abstract="false" native="false" synchronized="true"
  43481. static="false" final="false" visibility="public"
  43482. deprecated="not deprecated">
  43483. <param name="obj" type="java.lang.Object"/>
  43484. <doc>
  43485. <![CDATA[Checks for (content) equality of Groups]]>
  43486. </doc>
  43487. </method>
  43488. <method name="getCounter" return="long"
  43489. abstract="false" native="false" synchronized="true"
  43490. static="false" final="false" visibility="public"
  43491. deprecated="not deprecated">
  43492. <param name="counterName" type="java.lang.String"/>
  43493. <doc>
  43494. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  43495. not exist.]]>
  43496. </doc>
  43497. </method>
  43498. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43499. abstract="false" native="false" synchronized="true"
  43500. static="false" final="false" visibility="public"
  43501. deprecated="use {@link #getCounter(String)} instead">
  43502. <param name="id" type="int"/>
  43503. <param name="name" type="java.lang.String"/>
  43504. <doc>
  43505. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  43506. @param id the numeric id of the counter within the group
  43507. @param name the internal counter name
  43508. @return the counter
  43509. @deprecated use {@link #getCounter(String)} instead]]>
  43510. </doc>
  43511. </method>
  43512. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  43513. abstract="false" native="false" synchronized="true"
  43514. static="false" final="false" visibility="public"
  43515. deprecated="not deprecated">
  43516. <param name="name" type="java.lang.String"/>
  43517. <doc>
  43518. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  43519. @param name the internal counter name
  43520. @return the counter]]>
  43521. </doc>
  43522. </method>
  43523. <method name="size" return="int"
  43524. abstract="false" native="false" synchronized="true"
  43525. static="false" final="false" visibility="public"
  43526. deprecated="not deprecated">
  43527. <doc>
  43528. <![CDATA[Returns the number of counters in this group.]]>
  43529. </doc>
  43530. </method>
  43531. <method name="write"
  43532. abstract="false" native="false" synchronized="true"
  43533. static="false" final="false" visibility="public"
  43534. deprecated="not deprecated">
  43535. <param name="out" type="java.io.DataOutput"/>
  43536. <exception name="IOException" type="java.io.IOException"/>
  43537. </method>
  43538. <method name="readFields"
  43539. abstract="false" native="false" synchronized="true"
  43540. static="false" final="false" visibility="public"
  43541. deprecated="not deprecated">
  43542. <param name="in" type="java.io.DataInput"/>
  43543. <exception name="IOException" type="java.io.IOException"/>
  43544. </method>
  43545. <method name="iterator" return="java.util.Iterator"
  43546. abstract="false" native="false" synchronized="true"
  43547. static="false" final="false" visibility="public"
  43548. deprecated="not deprecated">
  43549. </method>
  43550. <doc>
  43551. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  43552. counter {@link Enum} class.
  43553. <p><code>Group</code>handles localization of the class name and the
  43554. counter names.</p>]]>
  43555. </doc>
  43556. </class>
  43557. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  43558. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  43559. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  43560. abstract="false"
  43561. static="false" final="false" visibility="public"
  43562. deprecated="not deprecated">
  43563. <constructor name="DefaultJobHistoryParser"
  43564. static="false" final="false" visibility="public"
  43565. deprecated="not deprecated">
  43566. </constructor>
  43567. <method name="parseJobTasks"
  43568. abstract="false" native="false" synchronized="false"
  43569. static="true" final="false" visibility="public"
  43570. deprecated="not deprecated">
  43571. <param name="jobHistoryFile" type="java.lang.String"/>
  43572. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  43573. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  43574. <exception name="IOException" type="java.io.IOException"/>
  43575. <doc>
  43576. <![CDATA[Populates a JobInfo object from the job's history log file.
  43577. @param jobHistoryFile history file for this job.
  43578. @param job a precreated JobInfo object, should be non-null.
  43579. @param fs FileSystem where historyFile is present.
  43580. @throws IOException]]>
  43581. </doc>
  43582. </method>
  43583. <doc>
  43584. <![CDATA[Default parser for job history files. It creates object model from
  43585. job history file.]]>
  43586. </doc>
  43587. </class>
  43588. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  43589. <!-- start class org.apache.hadoop.mapred.DefaultTaskController -->
  43590. <class name="DefaultTaskController" extends="org.apache.hadoop.mapred.TaskController"
  43591. abstract="false"
  43592. static="false" final="false" visibility="public"
  43593. deprecated="not deprecated">
  43594. <constructor name="DefaultTaskController"
  43595. static="false" final="false" visibility="public"
  43596. deprecated="not deprecated">
  43597. </constructor>
  43598. <method name="setConf"
  43599. abstract="false" native="false" synchronized="false"
  43600. static="false" final="false" visibility="public"
  43601. deprecated="not deprecated">
  43602. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43603. </method>
  43604. <method name="createLogDir"
  43605. abstract="false" native="false" synchronized="false"
  43606. static="false" final="false" visibility="public"
  43607. deprecated="not deprecated">
  43608. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  43609. <param name="isCleanup" type="boolean"/>
  43610. <exception name="IOException" type="java.io.IOException"/>
  43611. </method>
  43612. <method name="launchTask" return="int"
  43613. abstract="false" native="false" synchronized="false"
  43614. static="false" final="false" visibility="public"
  43615. deprecated="not deprecated">
  43616. <param name="user" type="java.lang.String"/>
  43617. <param name="jobId" type="java.lang.String"/>
  43618. <param name="attemptId" type="java.lang.String"/>
  43619. <param name="setup" type="java.util.List"/>
  43620. <param name="jvmArguments" type="java.util.List"/>
  43621. <param name="currentWorkDirectory" type="java.io.File"/>
  43622. <param name="stdout" type="java.lang.String"/>
  43623. <param name="stderr" type="java.lang.String"/>
  43624. <exception name="IOException" type="java.io.IOException"/>
  43625. <doc>
  43626. <![CDATA[Create all of the directories for the task and launches the child jvm.
  43627. @param user the user name
  43628. @param attemptId the attempt id
  43629. @throws IOException]]>
  43630. </doc>
  43631. </method>
  43632. <method name="initializeJob"
  43633. abstract="false" native="false" synchronized="false"
  43634. static="false" final="false" visibility="public"
  43635. deprecated="not deprecated">
  43636. <param name="user" type="java.lang.String"/>
  43637. <param name="jobid" type="java.lang.String"/>
  43638. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  43639. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  43640. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  43641. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  43642. <exception name="IOException" type="java.io.IOException"/>
  43643. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  43644. <doc>
  43645. <![CDATA[This routine initializes the local file system for running a job.
  43646. Details:
  43647. <ul>
  43648. <li>Copies the credentials file from the TaskTracker's private space to
  43649. the job's private space </li>
  43650. <li>Creates the job work directory and set
  43651. {@link TaskTracker#JOB_LOCAL_DIR} in the configuration</li>
  43652. <li>Downloads the job.jar, unjars it, and updates the configuration to
  43653. reflect the localized path of the job.jar</li>
  43654. <li>Creates a base JobConf in the job's private space</li>
  43655. <li>Sets up the distributed cache</li>
  43656. <li>Sets up the user logs directory for the job</li>
  43657. </ul>
  43658. This method must be invoked in the access control context of the job owner
  43659. user. This is because the distributed cache is also setup here and the
  43660. access to the hdfs files requires authentication tokens in case where
  43661. security is enabled.
  43662. @param user the user in question (the job owner)
  43663. @param jobid the ID of the job in question
  43664. @param credentials the path to the credentials file that the TaskTracker
  43665. downloaded
  43666. @param jobConf the path to the job configuration file that the TaskTracker
  43667. downloaded
  43668. @param taskTracker the connection to the task tracker
  43669. @throws IOException
  43670. @throws InterruptedException]]>
  43671. </doc>
  43672. </method>
  43673. <method name="signalTask"
  43674. abstract="false" native="false" synchronized="false"
  43675. static="false" final="false" visibility="public"
  43676. deprecated="not deprecated">
  43677. <param name="user" type="java.lang.String"/>
  43678. <param name="taskPid" type="int"/>
  43679. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  43680. </method>
  43681. <method name="deleteAsUser"
  43682. abstract="false" native="false" synchronized="false"
  43683. static="false" final="false" visibility="public"
  43684. deprecated="not deprecated">
  43685. <param name="user" type="java.lang.String"/>
  43686. <param name="subDir" type="java.lang.String"/>
  43687. <exception name="IOException" type="java.io.IOException"/>
  43688. <doc>
  43689. <![CDATA[Delete the user's files under all of the task tracker root directories.
  43690. @param user the user name
  43691. @param subDir the path relative to the user's subdirectory under
  43692. the task tracker root directories.
  43693. @throws IOException]]>
  43694. </doc>
  43695. </method>
  43696. <method name="deleteLogAsUser"
  43697. abstract="false" native="false" synchronized="false"
  43698. static="false" final="false" visibility="public"
  43699. deprecated="not deprecated">
  43700. <param name="user" type="java.lang.String"/>
  43701. <param name="subDir" type="java.lang.String"/>
  43702. <exception name="IOException" type="java.io.IOException"/>
  43703. <doc>
  43704. <![CDATA[Delete the user's files under the userlogs directory.
  43705. @param user the user to work as
  43706. @param subDir the path under the userlogs directory.
  43707. @throws IOException]]>
  43708. </doc>
  43709. </method>
  43710. <method name="truncateLogsAsUser"
  43711. abstract="false" native="false" synchronized="false"
  43712. static="false" final="false" visibility="public"
  43713. deprecated="not deprecated">
  43714. <param name="user" type="java.lang.String"/>
  43715. <param name="allAttempts" type="java.util.List"/>
  43716. <exception name="IOException" type="java.io.IOException"/>
  43717. </method>
  43718. <method name="setup"
  43719. abstract="false" native="false" synchronized="false"
  43720. static="false" final="false" visibility="public"
  43721. deprecated="not deprecated">
  43722. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  43723. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  43724. </method>
  43725. <doc>
  43726. <![CDATA[The default implementation for controlling tasks.
  43727. This class provides an implementation for launching and killing
  43728. tasks that need to be run as the tasktracker itself. Hence,
  43729. many of the initializing or cleanup methods are not required here.
  43730. <br/>
  43731. NOTE: This class is internal only class and not intended for users!!]]>
  43732. </doc>
  43733. </class>
  43734. <!-- end class org.apache.hadoop.mapred.DefaultTaskController -->
  43735. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  43736. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  43737. abstract="false"
  43738. static="false" final="false" visibility="public"
  43739. deprecated="not deprecated">
  43740. <constructor name="FileAlreadyExistsException"
  43741. static="false" final="false" visibility="public"
  43742. deprecated="not deprecated">
  43743. </constructor>
  43744. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  43745. static="false" final="false" visibility="public"
  43746. deprecated="not deprecated">
  43747. </constructor>
  43748. <doc>
  43749. <![CDATA[Used when target file already exists for any operation and
  43750. is not configured to be overwritten.]]>
  43751. </doc>
  43752. </class>
  43753. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  43754. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  43755. <class name="FileInputFormat" extends="java.lang.Object"
  43756. abstract="true"
  43757. static="false" final="false" visibility="public"
  43758. deprecated="not deprecated">
  43759. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  43760. <constructor name="FileInputFormat"
  43761. static="false" final="false" visibility="public"
  43762. deprecated="not deprecated">
  43763. </constructor>
  43764. <method name="setMinSplitSize"
  43765. abstract="false" native="false" synchronized="false"
  43766. static="false" final="false" visibility="protected"
  43767. deprecated="not deprecated">
  43768. <param name="minSplitSize" type="long"/>
  43769. </method>
  43770. <method name="isSplitable" return="boolean"
  43771. abstract="false" native="false" synchronized="false"
  43772. static="false" final="false" visibility="protected"
  43773. deprecated="not deprecated">
  43774. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  43775. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  43776. <doc>
  43777. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  43778. stream compressed, it will not be.
  43779. <code>FileInputFormat</code> implementations can override this and return
  43780. <code>false</code> to ensure that individual input files are never split-up
  43781. so that {@link Mapper}s process entire files.
  43782. @param fs the file system that the file is on
  43783. @param filename the file name to check
  43784. @return is this file splitable?]]>
  43785. </doc>
  43786. </method>
  43787. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  43788. abstract="true" native="false" synchronized="false"
  43789. static="false" final="false" visibility="public"
  43790. deprecated="not deprecated">
  43791. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  43792. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43793. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  43794. <exception name="IOException" type="java.io.IOException"/>
  43795. </method>
  43796. <method name="setInputPathFilter"
  43797. abstract="false" native="false" synchronized="false"
  43798. static="true" final="false" visibility="public"
  43799. deprecated="not deprecated">
  43800. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43801. <param name="filter" type="java.lang.Class"/>
  43802. <doc>
  43803. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  43804. @param filter the PathFilter class use for filtering the input paths.]]>
  43805. </doc>
  43806. </method>
  43807. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  43808. abstract="false" native="false" synchronized="false"
  43809. static="true" final="false" visibility="public"
  43810. deprecated="not deprecated">
  43811. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43812. <doc>
  43813. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  43814. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  43815. </doc>
  43816. </method>
  43817. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  43818. abstract="false" native="false" synchronized="false"
  43819. static="false" final="false" visibility="protected"
  43820. deprecated="not deprecated">
  43821. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43822. <exception name="IOException" type="java.io.IOException"/>
  43823. <doc>
  43824. <![CDATA[List input directories.
  43825. Subclasses may override to, e.g., select only files matching a regular
  43826. expression.
  43827. @param job the job to list input paths for
  43828. @return array of FileStatus objects
  43829. @throws IOException if zero items.]]>
  43830. </doc>
  43831. </method>
  43832. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  43833. abstract="false" native="false" synchronized="false"
  43834. static="false" final="false" visibility="public"
  43835. deprecated="not deprecated">
  43836. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43837. <param name="numSplits" type="int"/>
  43838. <exception name="IOException" type="java.io.IOException"/>
  43839. <doc>
  43840. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  43841. they're too big.]]>
  43842. </doc>
  43843. </method>
  43844. <method name="computeSplitSize" return="long"
  43845. abstract="false" native="false" synchronized="false"
  43846. static="false" final="false" visibility="protected"
  43847. deprecated="not deprecated">
  43848. <param name="goalSize" type="long"/>
  43849. <param name="minSize" type="long"/>
  43850. <param name="blockSize" type="long"/>
  43851. </method>
  43852. <method name="getBlockIndex" return="int"
  43853. abstract="false" native="false" synchronized="false"
  43854. static="false" final="false" visibility="protected"
  43855. deprecated="not deprecated">
  43856. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  43857. <param name="offset" type="long"/>
  43858. </method>
  43859. <method name="setInputPaths"
  43860. abstract="false" native="false" synchronized="false"
  43861. static="true" final="false" visibility="public"
  43862. deprecated="not deprecated">
  43863. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43864. <param name="commaSeparatedPaths" type="java.lang.String"/>
  43865. <doc>
  43866. <![CDATA[Sets the given comma separated paths as the list of inputs
  43867. for the map-reduce job.
  43868. @param conf Configuration of the job
  43869. @param commaSeparatedPaths Comma separated paths to be set as
  43870. the list of inputs for the map-reduce job.]]>
  43871. </doc>
  43872. </method>
  43873. <method name="addInputPaths"
  43874. abstract="false" native="false" synchronized="false"
  43875. static="true" final="false" visibility="public"
  43876. deprecated="not deprecated">
  43877. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43878. <param name="commaSeparatedPaths" type="java.lang.String"/>
  43879. <doc>
  43880. <![CDATA[Add the given comma separated paths to the list of inputs for
  43881. the map-reduce job.
  43882. @param conf The configuration of the job
  43883. @param commaSeparatedPaths Comma separated paths to be added to
  43884. the list of inputs for the map-reduce job.]]>
  43885. </doc>
  43886. </method>
  43887. <method name="setInputPaths"
  43888. abstract="false" native="false" synchronized="false"
  43889. static="true" final="false" visibility="public"
  43890. deprecated="not deprecated">
  43891. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43892. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  43893. <doc>
  43894. <![CDATA[Set the array of {@link Path}s as the list of inputs
  43895. for the map-reduce job.
  43896. @param conf Configuration of the job.
  43897. @param inputPaths the {@link Path}s of the input directories/files
  43898. for the map-reduce job.]]>
  43899. </doc>
  43900. </method>
  43901. <method name="addInputPath"
  43902. abstract="false" native="false" synchronized="false"
  43903. static="true" final="false" visibility="public"
  43904. deprecated="not deprecated">
  43905. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43906. <param name="path" type="org.apache.hadoop.fs.Path"/>
  43907. <doc>
  43908. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  43909. @param conf The configuration of the job
  43910. @param path {@link Path} to be added to the list of inputs for
  43911. the map-reduce job.]]>
  43912. </doc>
  43913. </method>
  43914. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  43915. abstract="false" native="false" synchronized="false"
  43916. static="true" final="false" visibility="public"
  43917. deprecated="not deprecated">
  43918. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43919. <doc>
  43920. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  43921. @param conf The configuration of the job
  43922. @return the list of input {@link Path}s for the map-reduce job.]]>
  43923. </doc>
  43924. </method>
  43925. <method name="getSplitHosts" return="java.lang.String[]"
  43926. abstract="false" native="false" synchronized="false"
  43927. static="false" final="false" visibility="protected"
  43928. deprecated="not deprecated">
  43929. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  43930. <param name="offset" type="long"/>
  43931. <param name="splitSize" type="long"/>
  43932. <param name="clusterMap" type="org.apache.hadoop.net.NetworkTopology"/>
  43933. <exception name="IOException" type="java.io.IOException"/>
  43934. <doc>
  43935. <![CDATA[This function identifies and returns the hosts that contribute
  43936. most for a given split. For calculating the contribution, rack
  43937. locality is treated on par with host locality, so hosts from racks
  43938. that contribute the most are preferred over hosts on racks that
  43939. contribute less
  43940. @param blkLocations The list of block locations
  43941. @param offset
  43942. @param splitSize
  43943. @return array of hosts that contribute most to this split
  43944. @throws IOException]]>
  43945. </doc>
  43946. </method>
  43947. <field name="LOG" type="org.apache.commons.logging.Log"
  43948. transient="false" volatile="false"
  43949. static="true" final="true" visibility="public"
  43950. deprecated="not deprecated">
  43951. </field>
  43952. <doc>
  43953. <![CDATA[A base class for file-based {@link InputFormat}.
  43954. <p><code>FileInputFormat</code> is the base class for all file-based
  43955. <code>InputFormat</code>s. This provides a generic implementation of
  43956. {@link #getSplits(JobConf, int)}.
  43957. Subclasses of <code>FileInputFormat</code> can also override the
  43958. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  43959. not split-up and are processed as a whole by {@link Mapper}s.]]>
  43960. </doc>
  43961. </class>
  43962. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  43963. <!-- start class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  43964. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  43965. abstract="false"
  43966. static="true" final="true" visibility="public"
  43967. deprecated="not deprecated">
  43968. <method name="values" return="org.apache.hadoop.mapred.FileInputFormat.Counter[]"
  43969. abstract="false" native="false" synchronized="false"
  43970. static="true" final="false" visibility="public"
  43971. deprecated="not deprecated">
  43972. </method>
  43973. <method name="valueOf" return="org.apache.hadoop.mapred.FileInputFormat.Counter"
  43974. abstract="false" native="false" synchronized="false"
  43975. static="true" final="false" visibility="public"
  43976. deprecated="not deprecated">
  43977. <param name="name" type="java.lang.String"/>
  43978. </method>
  43979. <field name="BYTES_READ" type="org.apache.hadoop.mapred.FileInputFormat.Counter"
  43980. transient="false" volatile="false"
  43981. static="true" final="true" visibility="public"
  43982. deprecated="not deprecated">
  43983. </field>
  43984. </class>
  43985. <!-- end class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  43986. <!-- start class org.apache.hadoop.mapred.FileOutputCommitter -->
  43987. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapred.OutputCommitter"
  43988. abstract="false"
  43989. static="false" final="false" visibility="public"
  43990. deprecated="not deprecated">
  43991. <constructor name="FileOutputCommitter"
  43992. static="false" final="false" visibility="public"
  43993. deprecated="not deprecated">
  43994. </constructor>
  43995. <method name="setupJob"
  43996. abstract="false" native="false" synchronized="false"
  43997. static="false" final="false" visibility="public"
  43998. deprecated="not deprecated">
  43999. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44000. <exception name="IOException" type="java.io.IOException"/>
  44001. </method>
  44002. <method name="commitJob"
  44003. abstract="false" native="false" synchronized="false"
  44004. static="false" final="false" visibility="public"
  44005. deprecated="not deprecated">
  44006. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44007. <exception name="IOException" type="java.io.IOException"/>
  44008. </method>
  44009. <method name="cleanupJob"
  44010. abstract="false" native="false" synchronized="false"
  44011. static="false" final="false" visibility="public"
  44012. deprecated="not deprecated">
  44013. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44014. <exception name="IOException" type="java.io.IOException"/>
  44015. </method>
  44016. <method name="abortJob"
  44017. abstract="false" native="false" synchronized="false"
  44018. static="false" final="false" visibility="public"
  44019. deprecated="not deprecated">
  44020. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44021. <param name="runState" type="int"/>
  44022. <exception name="IOException" type="java.io.IOException"/>
  44023. <doc>
  44024. <![CDATA[Delete the temporary directory, including all of the work directories.
  44025. @param context the job's context
  44026. @param runState final run state of the job, should be
  44027. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}]]>
  44028. </doc>
  44029. </method>
  44030. <method name="setupTask"
  44031. abstract="false" native="false" synchronized="false"
  44032. static="false" final="false" visibility="public"
  44033. deprecated="not deprecated">
  44034. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44035. <exception name="IOException" type="java.io.IOException"/>
  44036. </method>
  44037. <method name="commitTask"
  44038. abstract="false" native="false" synchronized="false"
  44039. static="false" final="false" visibility="public"
  44040. deprecated="not deprecated">
  44041. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44042. <exception name="IOException" type="java.io.IOException"/>
  44043. </method>
  44044. <method name="abortTask"
  44045. abstract="false" native="false" synchronized="false"
  44046. static="false" final="false" visibility="public"
  44047. deprecated="not deprecated">
  44048. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44049. <exception name="IOException" type="java.io.IOException"/>
  44050. </method>
  44051. <method name="needsTaskCommit" return="boolean"
  44052. abstract="false" native="false" synchronized="false"
  44053. static="false" final="false" visibility="public"
  44054. deprecated="not deprecated">
  44055. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44056. <exception name="IOException" type="java.io.IOException"/>
  44057. </method>
  44058. <field name="LOG" type="org.apache.commons.logging.Log"
  44059. transient="false" volatile="false"
  44060. static="true" final="true" visibility="public"
  44061. deprecated="not deprecated">
  44062. </field>
  44063. <field name="TEMP_DIR_NAME" type="java.lang.String"
  44064. transient="false" volatile="false"
  44065. static="true" final="true" visibility="public"
  44066. deprecated="not deprecated">
  44067. <doc>
  44068. <![CDATA[Temporary directory name]]>
  44069. </doc>
  44070. </field>
  44071. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  44072. transient="false" volatile="false"
  44073. static="true" final="true" visibility="public"
  44074. deprecated="not deprecated">
  44075. </field>
  44076. <doc>
  44077. <![CDATA[An {@link OutputCommitter} that commits files specified
  44078. in job output directory i.e. ${mapred.output.dir}.]]>
  44079. </doc>
  44080. </class>
  44081. <!-- end class org.apache.hadoop.mapred.FileOutputCommitter -->
  44082. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  44083. <class name="FileOutputFormat" extends="java.lang.Object"
  44084. abstract="true"
  44085. static="false" final="false" visibility="public"
  44086. deprecated="not deprecated">
  44087. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  44088. <constructor name="FileOutputFormat"
  44089. static="false" final="false" visibility="public"
  44090. deprecated="not deprecated">
  44091. </constructor>
  44092. <method name="setCompressOutput"
  44093. abstract="false" native="false" synchronized="false"
  44094. static="true" final="false" visibility="public"
  44095. deprecated="not deprecated">
  44096. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44097. <param name="compress" type="boolean"/>
  44098. <doc>
  44099. <![CDATA[Set whether the output of the job is compressed.
  44100. @param conf the {@link JobConf} to modify
  44101. @param compress should the output of the job be compressed?]]>
  44102. </doc>
  44103. </method>
  44104. <method name="getCompressOutput" return="boolean"
  44105. abstract="false" native="false" synchronized="false"
  44106. static="true" final="false" visibility="public"
  44107. deprecated="not deprecated">
  44108. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44109. <doc>
  44110. <![CDATA[Is the job output compressed?
  44111. @param conf the {@link JobConf} to look in
  44112. @return <code>true</code> if the job output should be compressed,
  44113. <code>false</code> otherwise]]>
  44114. </doc>
  44115. </method>
  44116. <method name="setOutputCompressorClass"
  44117. abstract="false" native="false" synchronized="false"
  44118. static="true" final="false" visibility="public"
  44119. deprecated="not deprecated">
  44120. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44121. <param name="codecClass" type="java.lang.Class"/>
  44122. <doc>
  44123. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  44124. @param conf the {@link JobConf} to modify
  44125. @param codecClass the {@link CompressionCodec} to be used to
  44126. compress the job outputs]]>
  44127. </doc>
  44128. </method>
  44129. <method name="getOutputCompressorClass" return="java.lang.Class"
  44130. abstract="false" native="false" synchronized="false"
  44131. static="true" final="false" visibility="public"
  44132. deprecated="not deprecated">
  44133. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44134. <param name="defaultValue" type="java.lang.Class"/>
  44135. <doc>
  44136. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  44137. @param conf the {@link JobConf} to look in
  44138. @param defaultValue the {@link CompressionCodec} to return if not set
  44139. @return the {@link CompressionCodec} to be used to compress the
  44140. job outputs
  44141. @throws IllegalArgumentException if the class was specified, but not found]]>
  44142. </doc>
  44143. </method>
  44144. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  44145. abstract="true" native="false" synchronized="false"
  44146. static="false" final="false" visibility="public"
  44147. deprecated="not deprecated">
  44148. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  44149. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44150. <param name="name" type="java.lang.String"/>
  44151. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  44152. <exception name="IOException" type="java.io.IOException"/>
  44153. </method>
  44154. <method name="checkOutputSpecs"
  44155. abstract="false" native="false" synchronized="false"
  44156. static="false" final="false" visibility="public"
  44157. deprecated="not deprecated">
  44158. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  44159. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44160. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  44161. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  44162. <exception name="IOException" type="java.io.IOException"/>
  44163. </method>
  44164. <method name="setOutputPath"
  44165. abstract="false" native="false" synchronized="false"
  44166. static="true" final="false" visibility="public"
  44167. deprecated="not deprecated">
  44168. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44169. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  44170. <doc>
  44171. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  44172. @param conf The configuration of the job.
  44173. @param outputDir the {@link Path} of the output directory for
  44174. the map-reduce job.]]>
  44175. </doc>
  44176. </method>
  44177. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  44178. abstract="false" native="false" synchronized="false"
  44179. static="true" final="false" visibility="public"
  44180. deprecated="not deprecated">
  44181. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44182. <doc>
  44183. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  44184. @return the {@link Path} to the output directory for the map-reduce job.
  44185. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  44186. </doc>
  44187. </method>
  44188. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  44189. abstract="false" native="false" synchronized="false"
  44190. static="true" final="false" visibility="public"
  44191. deprecated="not deprecated">
  44192. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44193. <doc>
  44194. <![CDATA[Get the {@link Path} to the task's temporary output directory
  44195. for the map-reduce job
  44196. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  44197. <p><i>Note:</i> The following is valid only if the {@link OutputCommitter}
  44198. is {@link FileOutputCommitter}. If <code>OutputCommitter</code> is not
  44199. a <code>FileOutputCommitter</code>, the task's temporary output
  44200. directory is same as {@link #getOutputPath(JobConf)} i.e.
  44201. <tt>${mapred.output.dir}$</tt></p>
  44202. <p>Some applications need to create/write-to side-files, which differ from
  44203. the actual job-outputs.
  44204. <p>In such cases there could be issues with 2 instances of the same TIP
  44205. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  44206. same file (path) on HDFS. Hence the application-writer will have to pick
  44207. unique names per task-attempt (e.g. using the attemptid, say
  44208. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  44209. <p>To get around this the Map-Reduce framework helps the application-writer
  44210. out by maintaining a special
  44211. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  44212. sub-directory for each task-attempt on HDFS where the output of the
  44213. task-attempt goes. On successful completion of the task-attempt the files
  44214. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  44215. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  44216. framework discards the sub-directory of unsuccessful task-attempts. This
  44217. is completely transparent to the application.</p>
  44218. <p>The application-writer can take advantage of this by creating any
  44219. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  44220. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  44221. framework will move them out similarly - thus she doesn't have to pick
  44222. unique paths per task-attempt.</p>
  44223. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  44224. execution of a particular task-attempt is actually
  44225. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  44226. set by the map-reduce framework. So, just create any side-files in the
  44227. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  44228. task to take advantage of this feature.</p>
  44229. <p>The entire discussion holds true for maps of jobs with
  44230. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  44231. goes directly to HDFS.</p>
  44232. @return the {@link Path} to the task's temporary output directory
  44233. for the map-reduce job.]]>
  44234. </doc>
  44235. </method>
  44236. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  44237. abstract="false" native="false" synchronized="false"
  44238. static="true" final="false" visibility="public"
  44239. deprecated="not deprecated">
  44240. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44241. <param name="name" type="java.lang.String"/>
  44242. <exception name="IOException" type="java.io.IOException"/>
  44243. <doc>
  44244. <![CDATA[Helper function to create the task's temporary output directory and
  44245. return the path to the task's output file.
  44246. @param conf job-configuration
  44247. @param name temporary task-output filename
  44248. @return path to the task's temporary output file
  44249. @throws IOException]]>
  44250. </doc>
  44251. </method>
  44252. <method name="getUniqueName" return="java.lang.String"
  44253. abstract="false" native="false" synchronized="false"
  44254. static="true" final="false" visibility="public"
  44255. deprecated="not deprecated">
  44256. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44257. <param name="name" type="java.lang.String"/>
  44258. <doc>
  44259. <![CDATA[Helper function to generate a name that is unique for the task.
  44260. <p>The generated name can be used to create custom files from within the
  44261. different tasks for the job, the names for different tasks will not collide
  44262. with each other.</p>
  44263. <p>The given name is postfixed with the task type, 'm' for maps, 'r' for
  44264. reduces and the task partition number. For example, give a name 'test'
  44265. running on the first map o the job the generated name will be
  44266. 'test-m-00000'.</p>
  44267. @param conf the configuration for the job.
  44268. @param name the name to make unique.
  44269. @return a unique name accross all tasks of the job.]]>
  44270. </doc>
  44271. </method>
  44272. <method name="getPathForCustomFile" return="org.apache.hadoop.fs.Path"
  44273. abstract="false" native="false" synchronized="false"
  44274. static="true" final="false" visibility="public"
  44275. deprecated="not deprecated">
  44276. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44277. <param name="name" type="java.lang.String"/>
  44278. <doc>
  44279. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  44280. the task within the job output directory.
  44281. <p>The path can be used to create custom files from within the map and
  44282. reduce tasks. The path name will be unique for each task. The path parent
  44283. will be the job output directory.</p>ls
  44284. <p>This method uses the {@link #getUniqueName} method to make the file name
  44285. unique for the task.</p>
  44286. @param conf the configuration for the job.
  44287. @param name the name for the file.
  44288. @return a unique path accross all tasks of the job.]]>
  44289. </doc>
  44290. </method>
  44291. <doc>
  44292. <![CDATA[A base class for {@link OutputFormat}.]]>
  44293. </doc>
  44294. </class>
  44295. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  44296. <!-- start class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  44297. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  44298. abstract="false"
  44299. static="true" final="true" visibility="public"
  44300. deprecated="not deprecated">
  44301. <method name="values" return="org.apache.hadoop.mapred.FileOutputFormat.Counter[]"
  44302. abstract="false" native="false" synchronized="false"
  44303. static="true" final="false" visibility="public"
  44304. deprecated="not deprecated">
  44305. </method>
  44306. <method name="valueOf" return="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  44307. abstract="false" native="false" synchronized="false"
  44308. static="true" final="false" visibility="public"
  44309. deprecated="not deprecated">
  44310. <param name="name" type="java.lang.String"/>
  44311. </method>
  44312. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  44313. transient="false" volatile="false"
  44314. static="true" final="true" visibility="public"
  44315. deprecated="not deprecated">
  44316. </field>
  44317. </class>
  44318. <!-- end class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  44319. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  44320. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  44321. abstract="false"
  44322. static="false" final="false" visibility="public"
  44323. deprecated="not deprecated">
  44324. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  44325. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  44326. static="false" final="false" visibility="public"
  44327. deprecated="deprecated, no comment">
  44328. <doc>
  44329. <![CDATA[Constructs a split.
  44330. @deprecated
  44331. @param file the file name
  44332. @param start the position of the first byte in the file to process
  44333. @param length the number of bytes in the file to process]]>
  44334. </doc>
  44335. </constructor>
  44336. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  44337. static="false" final="false" visibility="public"
  44338. deprecated="not deprecated">
  44339. <doc>
  44340. <![CDATA[Constructs a split with host information
  44341. @param file the file name
  44342. @param start the position of the first byte in the file to process
  44343. @param length the number of bytes in the file to process
  44344. @param hosts the list of hosts containing the block, possibly null]]>
  44345. </doc>
  44346. </constructor>
  44347. <method name="getPath" return="org.apache.hadoop.fs.Path"
  44348. abstract="false" native="false" synchronized="false"
  44349. static="false" final="false" visibility="public"
  44350. deprecated="not deprecated">
  44351. <doc>
  44352. <![CDATA[The file containing this split's data.]]>
  44353. </doc>
  44354. </method>
  44355. <method name="getStart" return="long"
  44356. abstract="false" native="false" synchronized="false"
  44357. static="false" final="false" visibility="public"
  44358. deprecated="not deprecated">
  44359. <doc>
  44360. <![CDATA[The position of the first byte in the file to process.]]>
  44361. </doc>
  44362. </method>
  44363. <method name="getLength" return="long"
  44364. abstract="false" native="false" synchronized="false"
  44365. static="false" final="false" visibility="public"
  44366. deprecated="not deprecated">
  44367. <doc>
  44368. <![CDATA[The number of bytes in the file to process.]]>
  44369. </doc>
  44370. </method>
  44371. <method name="toString" return="java.lang.String"
  44372. abstract="false" native="false" synchronized="false"
  44373. static="false" final="false" visibility="public"
  44374. deprecated="not deprecated">
  44375. </method>
  44376. <method name="write"
  44377. abstract="false" native="false" synchronized="false"
  44378. static="false" final="false" visibility="public"
  44379. deprecated="not deprecated">
  44380. <param name="out" type="java.io.DataOutput"/>
  44381. <exception name="IOException" type="java.io.IOException"/>
  44382. </method>
  44383. <method name="readFields"
  44384. abstract="false" native="false" synchronized="false"
  44385. static="false" final="false" visibility="public"
  44386. deprecated="not deprecated">
  44387. <param name="in" type="java.io.DataInput"/>
  44388. <exception name="IOException" type="java.io.IOException"/>
  44389. </method>
  44390. <method name="getLocations" return="java.lang.String[]"
  44391. abstract="false" native="false" synchronized="false"
  44392. static="false" final="false" visibility="public"
  44393. deprecated="not deprecated">
  44394. <exception name="IOException" type="java.io.IOException"/>
  44395. </method>
  44396. <doc>
  44397. <![CDATA[A section of an input file. Returned by {@link
  44398. InputFormat#getSplits(JobConf, int)} and passed to
  44399. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  44400. </doc>
  44401. </class>
  44402. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  44403. <!-- start class org.apache.hadoop.mapred.ID -->
  44404. <class name="ID" extends="org.apache.hadoop.mapreduce.ID"
  44405. abstract="true"
  44406. static="false" final="false" visibility="public"
  44407. deprecated="not deprecated">
  44408. <constructor name="ID" type="int"
  44409. static="false" final="false" visibility="public"
  44410. deprecated="not deprecated">
  44411. <doc>
  44412. <![CDATA[constructs an ID object from the given int]]>
  44413. </doc>
  44414. </constructor>
  44415. <constructor name="ID"
  44416. static="false" final="false" visibility="protected"
  44417. deprecated="not deprecated">
  44418. </constructor>
  44419. <doc>
  44420. <![CDATA[A general identifier, which internally stores the id
  44421. as an integer. This is the super class of {@link JobID},
  44422. {@link TaskID} and {@link TaskAttemptID}.
  44423. @see JobID
  44424. @see TaskID
  44425. @see TaskAttemptID]]>
  44426. </doc>
  44427. </class>
  44428. <!-- end class org.apache.hadoop.mapred.ID -->
  44429. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  44430. <interface name="InputFormat" abstract="true"
  44431. static="false" final="false" visibility="public"
  44432. deprecated="not deprecated">
  44433. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  44434. abstract="false" native="false" synchronized="false"
  44435. static="false" final="false" visibility="public"
  44436. deprecated="not deprecated">
  44437. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44438. <param name="numSplits" type="int"/>
  44439. <exception name="IOException" type="java.io.IOException"/>
  44440. <doc>
  44441. <![CDATA[Logically split the set of input files for the job.
  44442. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  44443. for processing.</p>
  44444. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  44445. input files are not physically split into chunks. For e.g. a split could
  44446. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  44447. @param job job configuration.
  44448. @param numSplits the desired number of splits, a hint.
  44449. @return an array of {@link InputSplit}s for the job.]]>
  44450. </doc>
  44451. </method>
  44452. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  44453. abstract="false" native="false" synchronized="false"
  44454. static="false" final="false" visibility="public"
  44455. deprecated="not deprecated">
  44456. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  44457. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44458. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  44459. <exception name="IOException" type="java.io.IOException"/>
  44460. <doc>
  44461. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  44462. <p>It is the responsibility of the <code>RecordReader</code> to respect
  44463. record boundaries while processing the logical split to present a
  44464. record-oriented view to the individual task.</p>
  44465. @param split the {@link InputSplit}
  44466. @param job the job that this split belongs to
  44467. @return a {@link RecordReader}]]>
  44468. </doc>
  44469. </method>
  44470. <doc>
  44471. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  44472. Map-Reduce job.
  44473. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  44474. job to:<p>
  44475. <ol>
  44476. <li>
  44477. Validate the input-specification of the job.
  44478. <li>
  44479. Split-up the input file(s) into logical {@link InputSplit}s, each of
  44480. which is then assigned to an individual {@link Mapper}.
  44481. </li>
  44482. <li>
  44483. Provide the {@link RecordReader} implementation to be used to glean
  44484. input records from the logical <code>InputSplit</code> for processing by
  44485. the {@link Mapper}.
  44486. </li>
  44487. </ol>
  44488. <p>The default behavior of file-based {@link InputFormat}s, typically
  44489. sub-classes of {@link FileInputFormat}, is to split the
  44490. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  44491. bytes, of the input files. However, the {@link FileSystem} blocksize of
  44492. the input files is treated as an upper bound for input splits. A lower bound
  44493. on the split size can be set via
  44494. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  44495. mapred.min.split.size</a>.</p>
  44496. <p>Clearly, logical splits based on input-size is insufficient for many
  44497. applications since record boundaries are to respected. In such cases, the
  44498. application has to also implement a {@link RecordReader} on whom lies the
  44499. responsibilty to respect record-boundaries and present a record-oriented
  44500. view of the logical <code>InputSplit</code> to the individual task.
  44501. @see InputSplit
  44502. @see RecordReader
  44503. @see JobClient
  44504. @see FileInputFormat]]>
  44505. </doc>
  44506. </interface>
  44507. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  44508. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  44509. <interface name="InputSplit" abstract="true"
  44510. static="false" final="false" visibility="public"
  44511. deprecated="not deprecated">
  44512. <implements name="org.apache.hadoop.io.Writable"/>
  44513. <method name="getLength" return="long"
  44514. abstract="false" native="false" synchronized="false"
  44515. static="false" final="false" visibility="public"
  44516. deprecated="not deprecated">
  44517. <exception name="IOException" type="java.io.IOException"/>
  44518. <doc>
  44519. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  44520. @return the number of bytes in the input split.
  44521. @throws IOException]]>
  44522. </doc>
  44523. </method>
  44524. <method name="getLocations" return="java.lang.String[]"
  44525. abstract="false" native="false" synchronized="false"
  44526. static="false" final="false" visibility="public"
  44527. deprecated="not deprecated">
  44528. <exception name="IOException" type="java.io.IOException"/>
  44529. <doc>
  44530. <![CDATA[Get the list of hostnames where the input split is located.
  44531. @return list of hostnames where data of the <code>InputSplit</code> is
  44532. located as an array of <code>String</code>s.
  44533. @throws IOException]]>
  44534. </doc>
  44535. </method>
  44536. <doc>
  44537. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  44538. individual {@link Mapper}.
  44539. <p>Typically, it presents a byte-oriented view on the input and is the
  44540. responsibility of {@link RecordReader} of the job to process this and present
  44541. a record-oriented view.
  44542. @see InputFormat
  44543. @see RecordReader]]>
  44544. </doc>
  44545. </interface>
  44546. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  44547. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  44548. <class name="InvalidFileTypeException" extends="java.io.IOException"
  44549. abstract="false"
  44550. static="false" final="false" visibility="public"
  44551. deprecated="not deprecated">
  44552. <constructor name="InvalidFileTypeException"
  44553. static="false" final="false" visibility="public"
  44554. deprecated="not deprecated">
  44555. </constructor>
  44556. <constructor name="InvalidFileTypeException" type="java.lang.String"
  44557. static="false" final="false" visibility="public"
  44558. deprecated="not deprecated">
  44559. </constructor>
  44560. <doc>
  44561. <![CDATA[Used when file type differs from the desired file type. like
  44562. getting a file when a directory is expected. Or a wrong file type.]]>
  44563. </doc>
  44564. </class>
  44565. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  44566. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  44567. <class name="InvalidInputException" extends="java.io.IOException"
  44568. abstract="false"
  44569. static="false" final="false" visibility="public"
  44570. deprecated="not deprecated">
  44571. <constructor name="InvalidInputException" type="java.util.List"
  44572. static="false" final="false" visibility="public"
  44573. deprecated="not deprecated">
  44574. <doc>
  44575. <![CDATA[Create the exception with the given list.
  44576. @param probs the list of problems to report. this list is not copied.]]>
  44577. </doc>
  44578. </constructor>
  44579. <method name="getProblems" return="java.util.List"
  44580. abstract="false" native="false" synchronized="false"
  44581. static="false" final="false" visibility="public"
  44582. deprecated="not deprecated">
  44583. <doc>
  44584. <![CDATA[Get the complete list of the problems reported.
  44585. @return the list of problems, which must not be modified]]>
  44586. </doc>
  44587. </method>
  44588. <method name="getMessage" return="java.lang.String"
  44589. abstract="false" native="false" synchronized="false"
  44590. static="false" final="false" visibility="public"
  44591. deprecated="not deprecated">
  44592. <doc>
  44593. <![CDATA[Get a summary message of the problems found.
  44594. @return the concatenated messages from all of the problems.]]>
  44595. </doc>
  44596. </method>
  44597. <doc>
  44598. <![CDATA[This class wraps a list of problems with the input, so that the user
  44599. can get a list of problems together instead of finding and fixing them one
  44600. by one.]]>
  44601. </doc>
  44602. </class>
  44603. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  44604. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  44605. <class name="InvalidJobConfException" extends="java.io.IOException"
  44606. abstract="false"
  44607. static="false" final="false" visibility="public"
  44608. deprecated="not deprecated">
  44609. <constructor name="InvalidJobConfException"
  44610. static="false" final="false" visibility="public"
  44611. deprecated="not deprecated">
  44612. </constructor>
  44613. <constructor name="InvalidJobConfException" type="java.lang.String"
  44614. static="false" final="false" visibility="public"
  44615. deprecated="not deprecated">
  44616. </constructor>
  44617. <constructor name="InvalidJobConfException" type="java.lang.String, java.lang.Throwable"
  44618. static="false" final="false" visibility="public"
  44619. deprecated="not deprecated">
  44620. </constructor>
  44621. <constructor name="InvalidJobConfException" type="java.lang.Throwable"
  44622. static="false" final="false" visibility="public"
  44623. deprecated="not deprecated">
  44624. </constructor>
  44625. <doc>
  44626. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  44627. or value of some attributes is invalid.]]>
  44628. </doc>
  44629. </class>
  44630. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  44631. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  44632. <class name="IsolationRunner" extends="java.lang.Object"
  44633. abstract="false"
  44634. static="false" final="false" visibility="public"
  44635. deprecated="not deprecated">
  44636. <constructor name="IsolationRunner"
  44637. static="false" final="false" visibility="public"
  44638. deprecated="not deprecated">
  44639. </constructor>
  44640. <method name="main"
  44641. abstract="false" native="false" synchronized="false"
  44642. static="true" final="false" visibility="public"
  44643. deprecated="not deprecated">
  44644. <param name="args" type="java.lang.String[]"/>
  44645. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  44646. <exception name="IOException" type="java.io.IOException"/>
  44647. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  44648. <doc>
  44649. <![CDATA[Run a single task.
  44650. @param args the first argument is the task directory]]>
  44651. </doc>
  44652. </method>
  44653. <doc>
  44654. <![CDATA[IsolationRunner is intended to facilitate debugging by re-running a specific
  44655. task, given left-over task files for a (typically failed) past job.
  44656. Currently, it is limited to re-running map tasks.
  44657. Users may coerce MapReduce to keep task files around by setting
  44658. keep.failed.task.files. See mapred_tutorial.xml for more documentation.]]>
  44659. </doc>
  44660. </class>
  44661. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  44662. <!-- start class org.apache.hadoop.mapred.JobClient -->
  44663. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  44664. abstract="false"
  44665. static="false" final="false" visibility="public"
  44666. deprecated="not deprecated">
  44667. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  44668. <implements name="org.apache.hadoop.util.Tool"/>
  44669. <constructor name="JobClient"
  44670. static="false" final="false" visibility="public"
  44671. deprecated="not deprecated">
  44672. <doc>
  44673. <![CDATA[Create a job client.]]>
  44674. </doc>
  44675. </constructor>
  44676. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  44677. static="false" final="false" visibility="public"
  44678. deprecated="not deprecated">
  44679. <exception name="IOException" type="java.io.IOException"/>
  44680. <doc>
  44681. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  44682. default {@link JobTracker}.
  44683. @param conf the job configuration.
  44684. @throws IOException]]>
  44685. </doc>
  44686. </constructor>
  44687. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  44688. static="false" final="false" visibility="public"
  44689. deprecated="not deprecated">
  44690. <exception name="IOException" type="java.io.IOException"/>
  44691. <doc>
  44692. <![CDATA[Build a job client, connect to the indicated job tracker.
  44693. @param jobTrackAddr the job tracker to connect to.
  44694. @param conf configuration.]]>
  44695. </doc>
  44696. </constructor>
  44697. <method name="init"
  44698. abstract="false" native="false" synchronized="false"
  44699. static="false" final="false" visibility="public"
  44700. deprecated="not deprecated">
  44701. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44702. <exception name="IOException" type="java.io.IOException"/>
  44703. <doc>
  44704. <![CDATA[Connect to the default {@link JobTracker}.
  44705. @param conf the job configuration.
  44706. @throws IOException]]>
  44707. </doc>
  44708. </method>
  44709. <method name="close"
  44710. abstract="false" native="false" synchronized="true"
  44711. static="false" final="false" visibility="public"
  44712. deprecated="not deprecated">
  44713. <exception name="IOException" type="java.io.IOException"/>
  44714. <doc>
  44715. <![CDATA[Close the <code>JobClient</code>.]]>
  44716. </doc>
  44717. </method>
  44718. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  44719. abstract="false" native="false" synchronized="true"
  44720. static="false" final="false" visibility="public"
  44721. deprecated="not deprecated">
  44722. <exception name="IOException" type="java.io.IOException"/>
  44723. <doc>
  44724. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  44725. for submission to the MapReduce system.
  44726. @return the filesystem handle.
  44727. @throws IOException]]>
  44728. </doc>
  44729. </method>
  44730. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  44731. abstract="false" native="false" synchronized="false"
  44732. static="false" final="false" visibility="public"
  44733. deprecated="not deprecated">
  44734. <param name="jobFile" type="java.lang.String"/>
  44735. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  44736. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  44737. <exception name="IOException" type="java.io.IOException"/>
  44738. <doc>
  44739. <![CDATA[Submit a job to the MR system.
  44740. This returns a handle to the {@link RunningJob} which can be used to track
  44741. the running-job.
  44742. @param jobFile the job configuration.
  44743. @return a handle to the {@link RunningJob} which can be used to track the
  44744. running-job.
  44745. @throws FileNotFoundException
  44746. @throws InvalidJobConfException
  44747. @throws IOException]]>
  44748. </doc>
  44749. </method>
  44750. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  44751. abstract="false" native="false" synchronized="false"
  44752. static="false" final="false" visibility="public"
  44753. deprecated="not deprecated">
  44754. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44755. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  44756. <exception name="IOException" type="java.io.IOException"/>
  44757. <doc>
  44758. <![CDATA[Submit a job to the MR system.
  44759. This returns a handle to the {@link RunningJob} which can be used to track
  44760. the running-job.
  44761. @param job the job configuration.
  44762. @return a handle to the {@link RunningJob} which can be used to track the
  44763. running-job.
  44764. @throws FileNotFoundException
  44765. @throws IOException]]>
  44766. </doc>
  44767. </method>
  44768. <method name="submitJobInternal" return="org.apache.hadoop.mapred.RunningJob"
  44769. abstract="false" native="false" synchronized="false"
  44770. static="false" final="false" visibility="public"
  44771. deprecated="not deprecated">
  44772. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44773. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  44774. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  44775. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  44776. <exception name="IOException" type="java.io.IOException"/>
  44777. <doc>
  44778. <![CDATA[Internal method for submitting jobs to the system.
  44779. @param job the configuration to submit
  44780. @return a proxy object for the running job
  44781. @throws FileNotFoundException
  44782. @throws ClassNotFoundException
  44783. @throws InterruptedException
  44784. @throws IOException]]>
  44785. </doc>
  44786. </method>
  44787. <method name="isJobDirValid" return="boolean"
  44788. abstract="false" native="false" synchronized="false"
  44789. static="true" final="false" visibility="public"
  44790. deprecated="not deprecated">
  44791. <param name="jobDirPath" type="org.apache.hadoop.fs.Path"/>
  44792. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44793. <exception name="IOException" type="java.io.IOException"/>
  44794. <doc>
  44795. <![CDATA[Checks if the job directory is clean and has all the required components
  44796. for (re) starting the job]]>
  44797. </doc>
  44798. </method>
  44799. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  44800. abstract="false" native="false" synchronized="false"
  44801. static="false" final="false" visibility="public"
  44802. deprecated="not deprecated">
  44803. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  44804. <exception name="IOException" type="java.io.IOException"/>
  44805. <doc>
  44806. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  44807. null if the id does not correspond to any known job.
  44808. @param jobid the jobid of the job.
  44809. @return the {@link RunningJob} handle to track the job, null if the
  44810. <code>jobid</code> doesn't correspond to any known job.
  44811. @throws IOException]]>
  44812. </doc>
  44813. </method>
  44814. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  44815. abstract="false" native="false" synchronized="false"
  44816. static="false" final="false" visibility="public"
  44817. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  44818. <param name="jobid" type="java.lang.String"/>
  44819. <exception name="IOException" type="java.io.IOException"/>
  44820. <doc>
  44821. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  44822. </doc>
  44823. </method>
  44824. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  44825. abstract="false" native="false" synchronized="false"
  44826. static="false" final="false" visibility="public"
  44827. deprecated="not deprecated">
  44828. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  44829. <exception name="IOException" type="java.io.IOException"/>
  44830. <doc>
  44831. <![CDATA[Get the information of the current state of the map tasks of a job.
  44832. @param jobId the job to query.
  44833. @return the list of all of the map tips.
  44834. @throws IOException]]>
  44835. </doc>
  44836. </method>
  44837. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  44838. abstract="false" native="false" synchronized="false"
  44839. static="false" final="false" visibility="public"
  44840. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  44841. <param name="jobId" type="java.lang.String"/>
  44842. <exception name="IOException" type="java.io.IOException"/>
  44843. <doc>
  44844. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  44845. </doc>
  44846. </method>
  44847. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  44848. abstract="false" native="false" synchronized="false"
  44849. static="false" final="false" visibility="public"
  44850. deprecated="not deprecated">
  44851. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  44852. <exception name="IOException" type="java.io.IOException"/>
  44853. <doc>
  44854. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  44855. @param jobId the job to query.
  44856. @return the list of all of the reduce tips.
  44857. @throws IOException]]>
  44858. </doc>
  44859. </method>
  44860. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  44861. abstract="false" native="false" synchronized="false"
  44862. static="false" final="false" visibility="public"
  44863. deprecated="not deprecated">
  44864. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  44865. <exception name="IOException" type="java.io.IOException"/>
  44866. <doc>
  44867. <![CDATA[Get the information of the current state of the cleanup tasks of a job.
  44868. @param jobId the job to query.
  44869. @return the list of all of the cleanup tips.
  44870. @throws IOException]]>
  44871. </doc>
  44872. </method>
  44873. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  44874. abstract="false" native="false" synchronized="false"
  44875. static="false" final="false" visibility="public"
  44876. deprecated="not deprecated">
  44877. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  44878. <exception name="IOException" type="java.io.IOException"/>
  44879. <doc>
  44880. <![CDATA[Get the information of the current state of the setup tasks of a job.
  44881. @param jobId the job to query.
  44882. @return the list of all of the setup tips.
  44883. @throws IOException]]>
  44884. </doc>
  44885. </method>
  44886. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  44887. abstract="false" native="false" synchronized="false"
  44888. static="false" final="false" visibility="public"
  44889. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  44890. <param name="jobId" type="java.lang.String"/>
  44891. <exception name="IOException" type="java.io.IOException"/>
  44892. <doc>
  44893. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  44894. </doc>
  44895. </method>
  44896. <method name="displayTasks"
  44897. abstract="false" native="false" synchronized="false"
  44898. static="false" final="false" visibility="public"
  44899. deprecated="not deprecated">
  44900. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  44901. <param name="type" type="java.lang.String"/>
  44902. <param name="state" type="java.lang.String"/>
  44903. <exception name="IOException" type="java.io.IOException"/>
  44904. <doc>
  44905. <![CDATA[Display the information about a job's tasks, of a particular type and
  44906. in a particular state
  44907. @param jobId the ID of the job
  44908. @param type the type of the task (map/reduce/setup/cleanup)
  44909. @param state the state of the task
  44910. (pending/running/completed/failed/killed)]]>
  44911. </doc>
  44912. </method>
  44913. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  44914. abstract="false" native="false" synchronized="false"
  44915. static="false" final="false" visibility="public"
  44916. deprecated="not deprecated">
  44917. <exception name="IOException" type="java.io.IOException"/>
  44918. <doc>
  44919. <![CDATA[Get status information about the Map-Reduce cluster.
  44920. @return the status information about the Map-Reduce cluster as an object
  44921. of {@link ClusterStatus}.
  44922. @throws IOException]]>
  44923. </doc>
  44924. </method>
  44925. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  44926. abstract="false" native="false" synchronized="false"
  44927. static="false" final="false" visibility="public"
  44928. deprecated="not deprecated">
  44929. <param name="detailed" type="boolean"/>
  44930. <exception name="IOException" type="java.io.IOException"/>
  44931. <doc>
  44932. <![CDATA[Get status information about the Map-Reduce cluster.
  44933. @param detailed if true then get a detailed status including the
  44934. tracker names and memory usage of the JobTracker
  44935. @return the status information about the Map-Reduce cluster as an object
  44936. of {@link ClusterStatus}.
  44937. @throws IOException]]>
  44938. </doc>
  44939. </method>
  44940. <method name="getStagingAreaDir" return="org.apache.hadoop.fs.Path"
  44941. abstract="false" native="false" synchronized="false"
  44942. static="false" final="false" visibility="public"
  44943. deprecated="not deprecated">
  44944. <exception name="IOException" type="java.io.IOException"/>
  44945. <doc>
  44946. <![CDATA[Grab the jobtracker's view of the staging directory path where
  44947. job-specific files will be placed.
  44948. @return the staging directory where job-specific files are to be placed.]]>
  44949. </doc>
  44950. </method>
  44951. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  44952. abstract="false" native="false" synchronized="false"
  44953. static="false" final="false" visibility="public"
  44954. deprecated="not deprecated">
  44955. <exception name="IOException" type="java.io.IOException"/>
  44956. <doc>
  44957. <![CDATA[Get the jobs that are not completed and not failed.
  44958. @return array of {@link JobStatus} for the running/to-be-run jobs.
  44959. @throws IOException]]>
  44960. </doc>
  44961. </method>
  44962. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  44963. abstract="false" native="false" synchronized="false"
  44964. static="false" final="false" visibility="public"
  44965. deprecated="not deprecated">
  44966. <exception name="IOException" type="java.io.IOException"/>
  44967. <doc>
  44968. <![CDATA[Get the jobs that are submitted.
  44969. @return array of {@link JobStatus} for the submitted jobs.
  44970. @throws IOException]]>
  44971. </doc>
  44972. </method>
  44973. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  44974. abstract="false" native="false" synchronized="false"
  44975. static="true" final="false" visibility="public"
  44976. deprecated="not deprecated">
  44977. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44978. <exception name="IOException" type="java.io.IOException"/>
  44979. <doc>
  44980. <![CDATA[Utility that submits a job, then polls for progress until the job is
  44981. complete.
  44982. @param job the job configuration.
  44983. @throws IOException if the job fails]]>
  44984. </doc>
  44985. </method>
  44986. <method name="monitorAndPrintJob" return="boolean"
  44987. abstract="false" native="false" synchronized="false"
  44988. static="false" final="false" visibility="public"
  44989. deprecated="not deprecated">
  44990. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44991. <param name="job" type="org.apache.hadoop.mapred.RunningJob"/>
  44992. <exception name="IOException" type="java.io.IOException"/>
  44993. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  44994. <doc>
  44995. <![CDATA[Monitor a job and print status in real-time as progress is made and tasks
  44996. fail.
  44997. @param conf the job's configuration
  44998. @param job the job to track
  44999. @return true if the job succeeded
  45000. @throws IOException if communication to the JobTracker fails]]>
  45001. </doc>
  45002. </method>
  45003. <method name="setTaskOutputFilter"
  45004. abstract="false" native="false" synchronized="false"
  45005. static="false" final="false" visibility="public"
  45006. deprecated="not deprecated">
  45007. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  45008. <doc>
  45009. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  45010. output matches the filter.
  45011. @param newValue task filter.]]>
  45012. </doc>
  45013. </method>
  45014. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45015. abstract="false" native="false" synchronized="false"
  45016. static="true" final="false" visibility="public"
  45017. deprecated="not deprecated">
  45018. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45019. <doc>
  45020. <![CDATA[Get the task output filter out of the JobConf.
  45021. @param job the JobConf to examine.
  45022. @return the filter level.]]>
  45023. </doc>
  45024. </method>
  45025. <method name="setTaskOutputFilter"
  45026. abstract="false" native="false" synchronized="false"
  45027. static="true" final="false" visibility="public"
  45028. deprecated="not deprecated">
  45029. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45030. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  45031. <doc>
  45032. <![CDATA[Modify the JobConf to set the task output filter.
  45033. @param job the JobConf to modify.
  45034. @param newValue the value to set.]]>
  45035. </doc>
  45036. </method>
  45037. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45038. abstract="false" native="false" synchronized="false"
  45039. static="false" final="false" visibility="public"
  45040. deprecated="not deprecated">
  45041. <doc>
  45042. <![CDATA[Returns task output filter.
  45043. @return task filter.]]>
  45044. </doc>
  45045. </method>
  45046. <method name="run" return="int"
  45047. abstract="false" native="false" synchronized="false"
  45048. static="false" final="false" visibility="public"
  45049. deprecated="not deprecated">
  45050. <param name="argv" type="java.lang.String[]"/>
  45051. <exception name="Exception" type="java.lang.Exception"/>
  45052. </method>
  45053. <method name="getDefaultMaps" return="int"
  45054. abstract="false" native="false" synchronized="false"
  45055. static="false" final="false" visibility="public"
  45056. deprecated="not deprecated">
  45057. <exception name="IOException" type="java.io.IOException"/>
  45058. <doc>
  45059. <![CDATA[Get status information about the max available Maps in the cluster.
  45060. @return the max available Maps in the cluster
  45061. @throws IOException]]>
  45062. </doc>
  45063. </method>
  45064. <method name="getDefaultReduces" return="int"
  45065. abstract="false" native="false" synchronized="false"
  45066. static="false" final="false" visibility="public"
  45067. deprecated="not deprecated">
  45068. <exception name="IOException" type="java.io.IOException"/>
  45069. <doc>
  45070. <![CDATA[Get status information about the max available Reduces in the cluster.
  45071. @return the max available Reduces in the cluster
  45072. @throws IOException]]>
  45073. </doc>
  45074. </method>
  45075. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  45076. abstract="false" native="false" synchronized="false"
  45077. static="false" final="false" visibility="public"
  45078. deprecated="not deprecated">
  45079. <doc>
  45080. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  45081. @return the system directory where job-specific files are to be placed.]]>
  45082. </doc>
  45083. </method>
  45084. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  45085. abstract="false" native="false" synchronized="false"
  45086. static="false" final="false" visibility="public"
  45087. deprecated="not deprecated">
  45088. <exception name="IOException" type="java.io.IOException"/>
  45089. <doc>
  45090. <![CDATA[Return an array of queue information objects about all the Job Queues
  45091. configured.
  45092. @return Array of JobQueueInfo objects
  45093. @throws IOException]]>
  45094. </doc>
  45095. </method>
  45096. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  45097. abstract="false" native="false" synchronized="false"
  45098. static="false" final="false" visibility="public"
  45099. deprecated="not deprecated">
  45100. <param name="queueName" type="java.lang.String"/>
  45101. <exception name="IOException" type="java.io.IOException"/>
  45102. <doc>
  45103. <![CDATA[Gets all the jobs which were added to particular Job Queue
  45104. @param queueName name of the Job Queue
  45105. @return Array of jobs present in the job queue
  45106. @throws IOException]]>
  45107. </doc>
  45108. </method>
  45109. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  45110. abstract="false" native="false" synchronized="false"
  45111. static="false" final="false" visibility="public"
  45112. deprecated="not deprecated">
  45113. <param name="queueName" type="java.lang.String"/>
  45114. <exception name="IOException" type="java.io.IOException"/>
  45115. <doc>
  45116. <![CDATA[Gets the queue information associated to a particular Job Queue
  45117. @param queueName name of the job queue.
  45118. @return Queue information associated to particular queue.
  45119. @throws IOException]]>
  45120. </doc>
  45121. </method>
  45122. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  45123. abstract="false" native="false" synchronized="false"
  45124. static="false" final="false" visibility="public"
  45125. deprecated="not deprecated">
  45126. <exception name="IOException" type="java.io.IOException"/>
  45127. <doc>
  45128. <![CDATA[Gets the Queue ACLs for current user
  45129. @return array of QueueAclsInfo object for current user.
  45130. @throws IOException]]>
  45131. </doc>
  45132. </method>
  45133. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  45134. abstract="false" native="false" synchronized="false"
  45135. static="false" final="false" visibility="public"
  45136. deprecated="not deprecated">
  45137. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  45138. <exception name="IOException" type="java.io.IOException"/>
  45139. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45140. </method>
  45141. <method name="renewDelegationToken" return="long"
  45142. abstract="false" native="false" synchronized="false"
  45143. static="false" final="false" visibility="public"
  45144. deprecated="not deprecated">
  45145. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45146. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  45147. <exception name="IOException" type="java.io.IOException"/>
  45148. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45149. <doc>
  45150. <![CDATA[Renew a delegation token
  45151. @param token the token to renew
  45152. @return the new expiration time
  45153. @throws InvalidToken
  45154. @throws IOException]]>
  45155. </doc>
  45156. </method>
  45157. <method name="cancelDelegationToken"
  45158. abstract="false" native="false" synchronized="false"
  45159. static="false" final="false" visibility="public"
  45160. deprecated="not deprecated">
  45161. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45162. <exception name="IOException" type="java.io.IOException"/>
  45163. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45164. <doc>
  45165. <![CDATA[Cancel a delegation token from the JobTracker
  45166. @param token the token to cancel
  45167. @throws IOException]]>
  45168. </doc>
  45169. </method>
  45170. <method name="main"
  45171. abstract="false" native="false" synchronized="false"
  45172. static="true" final="false" visibility="public"
  45173. deprecated="not deprecated">
  45174. <param name="argv" type="java.lang.String[]"/>
  45175. <exception name="Exception" type="java.lang.Exception"/>
  45176. </method>
  45177. <doc>
  45178. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  45179. with the {@link JobTracker}.
  45180. <code>JobClient</code> provides facilities to submit jobs, track their
  45181. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  45182. status information etc.
  45183. <p>The job submission process involves:
  45184. <ol>
  45185. <li>
  45186. Checking the input and output specifications of the job.
  45187. </li>
  45188. <li>
  45189. Computing the {@link InputSplit}s for the job.
  45190. </li>
  45191. <li>
  45192. Setup the requisite accounting information for the {@link DistributedCache}
  45193. of the job, if necessary.
  45194. </li>
  45195. <li>
  45196. Copying the job's jar and configuration to the map-reduce system directory
  45197. on the distributed file-system.
  45198. </li>
  45199. <li>
  45200. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  45201. it's status.
  45202. </li>
  45203. </ol></p>
  45204. Normally the user creates the application, describes various facets of the
  45205. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  45206. the job and monitor its progress.
  45207. <p>Here is an example on how to use <code>JobClient</code>:</p>
  45208. <p><blockquote><pre>
  45209. // Create a new JobConf
  45210. JobConf job = new JobConf(new Configuration(), MyJob.class);
  45211. // Specify various job-specific parameters
  45212. job.setJobName("myjob");
  45213. job.setInputPath(new Path("in"));
  45214. job.setOutputPath(new Path("out"));
  45215. job.setMapperClass(MyJob.MyMapper.class);
  45216. job.setReducerClass(MyJob.MyReducer.class);
  45217. // Submit the job, then poll for progress until the job is complete
  45218. JobClient.runJob(job);
  45219. </pre></blockquote></p>
  45220. <h4 id="JobControl">Job Control</h4>
  45221. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  45222. which cannot be done via a single map-reduce job. This is fairly easy since
  45223. the output of the job, typically, goes to distributed file-system and that
  45224. can be used as the input for the next job.</p>
  45225. <p>However, this also means that the onus on ensuring jobs are complete
  45226. (success/failure) lies squarely on the clients. In such situations the
  45227. various job-control options are:
  45228. <ol>
  45229. <li>
  45230. {@link #runJob(JobConf)} : submits the job and returns only after
  45231. the job has completed.
  45232. </li>
  45233. <li>
  45234. {@link #submitJob(JobConf)} : only submits the job, then poll the
  45235. returned handle to the {@link RunningJob} to query status and make
  45236. scheduling decisions.
  45237. </li>
  45238. <li>
  45239. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  45240. on job-completion, thus avoiding polling.
  45241. </li>
  45242. </ol></p>
  45243. @see JobConf
  45244. @see ClusterStatus
  45245. @see Tool
  45246. @see DistributedCache]]>
  45247. </doc>
  45248. </class>
  45249. <!-- end class org.apache.hadoop.mapred.JobClient -->
  45250. <!-- start class org.apache.hadoop.mapred.JobClient.Renewer -->
  45251. <class name="JobClient.Renewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  45252. abstract="false"
  45253. static="true" final="false" visibility="public"
  45254. deprecated="not deprecated">
  45255. <constructor name="JobClient.Renewer"
  45256. static="false" final="false" visibility="public"
  45257. deprecated="not deprecated">
  45258. </constructor>
  45259. <method name="handleKind" return="boolean"
  45260. abstract="false" native="false" synchronized="false"
  45261. static="false" final="false" visibility="public"
  45262. deprecated="not deprecated">
  45263. <param name="kind" type="org.apache.hadoop.io.Text"/>
  45264. </method>
  45265. <method name="renew" return="long"
  45266. abstract="false" native="false" synchronized="false"
  45267. static="false" final="false" visibility="public"
  45268. deprecated="not deprecated">
  45269. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45270. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45271. <exception name="IOException" type="java.io.IOException"/>
  45272. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45273. </method>
  45274. <method name="cancel"
  45275. abstract="false" native="false" synchronized="false"
  45276. static="false" final="false" visibility="public"
  45277. deprecated="not deprecated">
  45278. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45279. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45280. <exception name="IOException" type="java.io.IOException"/>
  45281. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45282. </method>
  45283. <method name="isManaged" return="boolean"
  45284. abstract="false" native="false" synchronized="false"
  45285. static="false" final="false" visibility="public"
  45286. deprecated="not deprecated">
  45287. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45288. <exception name="IOException" type="java.io.IOException"/>
  45289. </method>
  45290. </class>
  45291. <!-- end class org.apache.hadoop.mapred.JobClient.Renewer -->
  45292. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  45293. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum"
  45294. abstract="false"
  45295. static="true" final="true" visibility="public"
  45296. deprecated="not deprecated">
  45297. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  45298. abstract="false" native="false" synchronized="false"
  45299. static="true" final="false" visibility="public"
  45300. deprecated="not deprecated">
  45301. </method>
  45302. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45303. abstract="false" native="false" synchronized="false"
  45304. static="true" final="false" visibility="public"
  45305. deprecated="not deprecated">
  45306. <param name="name" type="java.lang.String"/>
  45307. </method>
  45308. <field name="NONE" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45309. transient="false" volatile="false"
  45310. static="true" final="true" visibility="public"
  45311. deprecated="not deprecated">
  45312. </field>
  45313. <field name="KILLED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45314. transient="false" volatile="false"
  45315. static="true" final="true" visibility="public"
  45316. deprecated="not deprecated">
  45317. </field>
  45318. <field name="FAILED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45319. transient="false" volatile="false"
  45320. static="true" final="true" visibility="public"
  45321. deprecated="not deprecated">
  45322. </field>
  45323. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45324. transient="false" volatile="false"
  45325. static="true" final="true" visibility="public"
  45326. deprecated="not deprecated">
  45327. </field>
  45328. <field name="ALL" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45329. transient="false" volatile="false"
  45330. static="true" final="true" visibility="public"
  45331. deprecated="not deprecated">
  45332. </field>
  45333. </class>
  45334. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  45335. <!-- start class org.apache.hadoop.mapred.JobConf -->
  45336. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  45337. abstract="false"
  45338. static="false" final="false" visibility="public"
  45339. deprecated="not deprecated">
  45340. <constructor name="JobConf"
  45341. static="false" final="false" visibility="public"
  45342. deprecated="not deprecated">
  45343. <doc>
  45344. <![CDATA[Construct a map/reduce job configuration.]]>
  45345. </doc>
  45346. </constructor>
  45347. <constructor name="JobConf" type="java.lang.Class"
  45348. static="false" final="false" visibility="public"
  45349. deprecated="not deprecated">
  45350. <doc>
  45351. <![CDATA[Construct a map/reduce job configuration.
  45352. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  45353. </doc>
  45354. </constructor>
  45355. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  45356. static="false" final="false" visibility="public"
  45357. deprecated="not deprecated">
  45358. <doc>
  45359. <![CDATA[Construct a map/reduce job configuration.
  45360. @param conf a Configuration whose settings will be inherited.]]>
  45361. </doc>
  45362. </constructor>
  45363. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  45364. static="false" final="false" visibility="public"
  45365. deprecated="not deprecated">
  45366. <doc>
  45367. <![CDATA[Construct a map/reduce job configuration.
  45368. @param conf a Configuration whose settings will be inherited.
  45369. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  45370. </doc>
  45371. </constructor>
  45372. <constructor name="JobConf" type="java.lang.String"
  45373. static="false" final="false" visibility="public"
  45374. deprecated="not deprecated">
  45375. <doc>
  45376. <![CDATA[Construct a map/reduce configuration.
  45377. @param config a Configuration-format XML job description file.]]>
  45378. </doc>
  45379. </constructor>
  45380. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  45381. static="false" final="false" visibility="public"
  45382. deprecated="not deprecated">
  45383. <doc>
  45384. <![CDATA[Construct a map/reduce configuration.
  45385. @param config a Configuration-format XML job description file.]]>
  45386. </doc>
  45387. </constructor>
  45388. <constructor name="JobConf" type="boolean"
  45389. static="false" final="false" visibility="public"
  45390. deprecated="not deprecated">
  45391. <doc>
  45392. <![CDATA[A new map/reduce configuration where the behavior of reading from the
  45393. default resources can be turned off.
  45394. <p/>
  45395. If the parameter {@code loadDefaults} is false, the new instance
  45396. will not load resources from the default files.
  45397. @param loadDefaults specifies whether to load from the default files]]>
  45398. </doc>
  45399. </constructor>
  45400. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  45401. abstract="false" native="false" synchronized="false"
  45402. static="false" final="false" visibility="public"
  45403. deprecated="not deprecated">
  45404. <doc>
  45405. <![CDATA[Get credentials for the job.
  45406. @return credentials for the job]]>
  45407. </doc>
  45408. </method>
  45409. <method name="getJar" return="java.lang.String"
  45410. abstract="false" native="false" synchronized="false"
  45411. static="false" final="false" visibility="public"
  45412. deprecated="not deprecated">
  45413. <doc>
  45414. <![CDATA[Get the user jar for the map-reduce job.
  45415. @return the user jar for the map-reduce job.]]>
  45416. </doc>
  45417. </method>
  45418. <method name="setJar"
  45419. abstract="false" native="false" synchronized="false"
  45420. static="false" final="false" visibility="public"
  45421. deprecated="not deprecated">
  45422. <param name="jar" type="java.lang.String"/>
  45423. <doc>
  45424. <![CDATA[Set the user jar for the map-reduce job.
  45425. @param jar the user jar for the map-reduce job.]]>
  45426. </doc>
  45427. </method>
  45428. <method name="setJarByClass"
  45429. abstract="false" native="false" synchronized="false"
  45430. static="false" final="false" visibility="public"
  45431. deprecated="not deprecated">
  45432. <param name="cls" type="java.lang.Class"/>
  45433. <doc>
  45434. <![CDATA[Set the job's jar file by finding an example class location.
  45435. @param cls the example class.]]>
  45436. </doc>
  45437. </method>
  45438. <method name="getLocalDirs" return="java.lang.String[]"
  45439. abstract="false" native="false" synchronized="false"
  45440. static="false" final="false" visibility="public"
  45441. deprecated="not deprecated">
  45442. <exception name="IOException" type="java.io.IOException"/>
  45443. </method>
  45444. <method name="deleteLocalFiles"
  45445. abstract="false" native="false" synchronized="false"
  45446. static="false" final="false" visibility="public"
  45447. deprecated="not deprecated">
  45448. <exception name="IOException" type="java.io.IOException"/>
  45449. </method>
  45450. <method name="deleteLocalFiles"
  45451. abstract="false" native="false" synchronized="false"
  45452. static="false" final="false" visibility="public"
  45453. deprecated="not deprecated">
  45454. <param name="subdir" type="java.lang.String"/>
  45455. <exception name="IOException" type="java.io.IOException"/>
  45456. </method>
  45457. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  45458. abstract="false" native="false" synchronized="false"
  45459. static="false" final="false" visibility="public"
  45460. deprecated="not deprecated">
  45461. <param name="pathString" type="java.lang.String"/>
  45462. <exception name="IOException" type="java.io.IOException"/>
  45463. <doc>
  45464. <![CDATA[Constructs a local file name. Files are distributed among configured
  45465. local directories.]]>
  45466. </doc>
  45467. </method>
  45468. <method name="getUser" return="java.lang.String"
  45469. abstract="false" native="false" synchronized="false"
  45470. static="false" final="false" visibility="public"
  45471. deprecated="not deprecated">
  45472. <doc>
  45473. <![CDATA[Get the reported username for this job.
  45474. @return the username]]>
  45475. </doc>
  45476. </method>
  45477. <method name="setUser"
  45478. abstract="false" native="false" synchronized="false"
  45479. static="false" final="false" visibility="public"
  45480. deprecated="not deprecated">
  45481. <param name="user" type="java.lang.String"/>
  45482. <doc>
  45483. <![CDATA[Set the reported username for this job.
  45484. @param user the username for this job.]]>
  45485. </doc>
  45486. </method>
  45487. <method name="setKeepFailedTaskFiles"
  45488. abstract="false" native="false" synchronized="false"
  45489. static="false" final="false" visibility="public"
  45490. deprecated="not deprecated">
  45491. <param name="keep" type="boolean"/>
  45492. <doc>
  45493. <![CDATA[Set whether the framework should keep the intermediate files for
  45494. failed tasks.
  45495. @param keep <code>true</code> if framework should keep the intermediate files
  45496. for failed tasks, <code>false</code> otherwise.]]>
  45497. </doc>
  45498. </method>
  45499. <method name="getKeepFailedTaskFiles" return="boolean"
  45500. abstract="false" native="false" synchronized="false"
  45501. static="false" final="false" visibility="public"
  45502. deprecated="not deprecated">
  45503. <doc>
  45504. <![CDATA[Should the temporary files for failed tasks be kept?
  45505. @return should the files be kept?]]>
  45506. </doc>
  45507. </method>
  45508. <method name="setKeepTaskFilesPattern"
  45509. abstract="false" native="false" synchronized="false"
  45510. static="false" final="false" visibility="public"
  45511. deprecated="not deprecated">
  45512. <param name="pattern" type="java.lang.String"/>
  45513. <doc>
  45514. <![CDATA[Set a regular expression for task names that should be kept.
  45515. The regular expression ".*_m_000123_0" would keep the files
  45516. for the first instance of map 123 that ran.
  45517. @param pattern the java.util.regex.Pattern to match against the
  45518. task names.]]>
  45519. </doc>
  45520. </method>
  45521. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  45522. abstract="false" native="false" synchronized="false"
  45523. static="false" final="false" visibility="public"
  45524. deprecated="not deprecated">
  45525. <doc>
  45526. <![CDATA[Get the regular expression that is matched against the task names
  45527. to see if we need to keep the files.
  45528. @return the pattern as a string, if it was set, othewise null.]]>
  45529. </doc>
  45530. </method>
  45531. <method name="setWorkingDirectory"
  45532. abstract="false" native="false" synchronized="false"
  45533. static="false" final="false" visibility="public"
  45534. deprecated="not deprecated">
  45535. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  45536. <doc>
  45537. <![CDATA[Set the current working directory for the default file system.
  45538. @param dir the new current working directory.]]>
  45539. </doc>
  45540. </method>
  45541. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  45542. abstract="false" native="false" synchronized="false"
  45543. static="false" final="false" visibility="public"
  45544. deprecated="not deprecated">
  45545. <doc>
  45546. <![CDATA[Get the current working directory for the default file system.
  45547. @return the directory name.]]>
  45548. </doc>
  45549. </method>
  45550. <method name="setNumTasksToExecutePerJvm"
  45551. abstract="false" native="false" synchronized="false"
  45552. static="false" final="false" visibility="public"
  45553. deprecated="not deprecated">
  45554. <param name="numTasks" type="int"/>
  45555. <doc>
  45556. <![CDATA[Sets the number of tasks that a spawned task JVM should run
  45557. before it exits
  45558. @param numTasks the number of tasks to execute; defaults to 1;
  45559. -1 signifies no limit]]>
  45560. </doc>
  45561. </method>
  45562. <method name="getNumTasksToExecutePerJvm" return="int"
  45563. abstract="false" native="false" synchronized="false"
  45564. static="false" final="false" visibility="public"
  45565. deprecated="not deprecated">
  45566. <doc>
  45567. <![CDATA[Get the number of tasks that a spawned JVM should execute]]>
  45568. </doc>
  45569. </method>
  45570. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  45571. abstract="false" native="false" synchronized="false"
  45572. static="false" final="false" visibility="public"
  45573. deprecated="not deprecated">
  45574. <doc>
  45575. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  45576. defaults to {@link TextInputFormat} if not specified explicity.
  45577. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  45578. </doc>
  45579. </method>
  45580. <method name="setInputFormat"
  45581. abstract="false" native="false" synchronized="false"
  45582. static="false" final="false" visibility="public"
  45583. deprecated="not deprecated">
  45584. <param name="theClass" type="java.lang.Class"/>
  45585. <doc>
  45586. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  45587. @param theClass the {@link InputFormat} implementation for the map-reduce
  45588. job.]]>
  45589. </doc>
  45590. </method>
  45591. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  45592. abstract="false" native="false" synchronized="false"
  45593. static="false" final="false" visibility="public"
  45594. deprecated="not deprecated">
  45595. <doc>
  45596. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  45597. defaults to {@link TextOutputFormat} if not specified explicity.
  45598. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  45599. </doc>
  45600. </method>
  45601. <method name="getOutputCommitter" return="org.apache.hadoop.mapred.OutputCommitter"
  45602. abstract="false" native="false" synchronized="false"
  45603. static="false" final="false" visibility="public"
  45604. deprecated="not deprecated">
  45605. <doc>
  45606. <![CDATA[Get the {@link OutputCommitter} implementation for the map-reduce job,
  45607. defaults to {@link FileOutputCommitter} if not specified explicitly.
  45608. @return the {@link OutputCommitter} implementation for the map-reduce job.]]>
  45609. </doc>
  45610. </method>
  45611. <method name="setOutputCommitter"
  45612. abstract="false" native="false" synchronized="false"
  45613. static="false" final="false" visibility="public"
  45614. deprecated="not deprecated">
  45615. <param name="theClass" type="java.lang.Class"/>
  45616. <doc>
  45617. <![CDATA[Set the {@link OutputCommitter} implementation for the map-reduce job.
  45618. @param theClass the {@link OutputCommitter} implementation for the map-reduce
  45619. job.]]>
  45620. </doc>
  45621. </method>
  45622. <method name="setOutputFormat"
  45623. abstract="false" native="false" synchronized="false"
  45624. static="false" final="false" visibility="public"
  45625. deprecated="not deprecated">
  45626. <param name="theClass" type="java.lang.Class"/>
  45627. <doc>
  45628. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  45629. @param theClass the {@link OutputFormat} implementation for the map-reduce
  45630. job.]]>
  45631. </doc>
  45632. </method>
  45633. <method name="setCompressMapOutput"
  45634. abstract="false" native="false" synchronized="false"
  45635. static="false" final="false" visibility="public"
  45636. deprecated="not deprecated">
  45637. <param name="compress" type="boolean"/>
  45638. <doc>
  45639. <![CDATA[Should the map outputs be compressed before transfer?
  45640. Uses the SequenceFile compression.
  45641. @param compress should the map outputs be compressed?]]>
  45642. </doc>
  45643. </method>
  45644. <method name="getCompressMapOutput" return="boolean"
  45645. abstract="false" native="false" synchronized="false"
  45646. static="false" final="false" visibility="public"
  45647. deprecated="not deprecated">
  45648. <doc>
  45649. <![CDATA[Are the outputs of the maps be compressed?
  45650. @return <code>true</code> if the outputs of the maps are to be compressed,
  45651. <code>false</code> otherwise.]]>
  45652. </doc>
  45653. </method>
  45654. <method name="setMapOutputCompressorClass"
  45655. abstract="false" native="false" synchronized="false"
  45656. static="false" final="false" visibility="public"
  45657. deprecated="not deprecated">
  45658. <param name="codecClass" type="java.lang.Class"/>
  45659. <doc>
  45660. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  45661. @param codecClass the {@link CompressionCodec} class that will compress
  45662. the map outputs.]]>
  45663. </doc>
  45664. </method>
  45665. <method name="getMapOutputCompressorClass" return="java.lang.Class"
  45666. abstract="false" native="false" synchronized="false"
  45667. static="false" final="false" visibility="public"
  45668. deprecated="not deprecated">
  45669. <param name="defaultValue" type="java.lang.Class"/>
  45670. <doc>
  45671. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  45672. @param defaultValue the {@link CompressionCodec} to return if not set
  45673. @return the {@link CompressionCodec} class that should be used to compress the
  45674. map outputs.
  45675. @throws IllegalArgumentException if the class was specified, but not found]]>
  45676. </doc>
  45677. </method>
  45678. <method name="getMapOutputKeyClass" return="java.lang.Class"
  45679. abstract="false" native="false" synchronized="false"
  45680. static="false" final="false" visibility="public"
  45681. deprecated="not deprecated">
  45682. <doc>
  45683. <![CDATA[Get the key class for the map output data. If it is not set, use the
  45684. (final) output key class. This allows the map output key class to be
  45685. different than the final output key class.
  45686. @return the map output key class.]]>
  45687. </doc>
  45688. </method>
  45689. <method name="setMapOutputKeyClass"
  45690. abstract="false" native="false" synchronized="false"
  45691. static="false" final="false" visibility="public"
  45692. deprecated="not deprecated">
  45693. <param name="theClass" type="java.lang.Class"/>
  45694. <doc>
  45695. <![CDATA[Set the key class for the map output data. This allows the user to
  45696. specify the map output key class to be different than the final output
  45697. value class.
  45698. @param theClass the map output key class.]]>
  45699. </doc>
  45700. </method>
  45701. <method name="getMapOutputValueClass" return="java.lang.Class"
  45702. abstract="false" native="false" synchronized="false"
  45703. static="false" final="false" visibility="public"
  45704. deprecated="not deprecated">
  45705. <doc>
  45706. <![CDATA[Get the value class for the map output data. If it is not set, use the
  45707. (final) output value class This allows the map output value class to be
  45708. different than the final output value class.
  45709. @return the map output value class.]]>
  45710. </doc>
  45711. </method>
  45712. <method name="setMapOutputValueClass"
  45713. abstract="false" native="false" synchronized="false"
  45714. static="false" final="false" visibility="public"
  45715. deprecated="not deprecated">
  45716. <param name="theClass" type="java.lang.Class"/>
  45717. <doc>
  45718. <![CDATA[Set the value class for the map output data. This allows the user to
  45719. specify the map output value class to be different than the final output
  45720. value class.
  45721. @param theClass the map output value class.]]>
  45722. </doc>
  45723. </method>
  45724. <method name="getOutputKeyClass" return="java.lang.Class"
  45725. abstract="false" native="false" synchronized="false"
  45726. static="false" final="false" visibility="public"
  45727. deprecated="not deprecated">
  45728. <doc>
  45729. <![CDATA[Get the key class for the job output data.
  45730. @return the key class for the job output data.]]>
  45731. </doc>
  45732. </method>
  45733. <method name="setOutputKeyClass"
  45734. abstract="false" native="false" synchronized="false"
  45735. static="false" final="false" visibility="public"
  45736. deprecated="not deprecated">
  45737. <param name="theClass" type="java.lang.Class"/>
  45738. <doc>
  45739. <![CDATA[Set the key class for the job output data.
  45740. @param theClass the key class for the job output data.]]>
  45741. </doc>
  45742. </method>
  45743. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  45744. abstract="false" native="false" synchronized="false"
  45745. static="false" final="false" visibility="public"
  45746. deprecated="not deprecated">
  45747. <doc>
  45748. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  45749. @return the {@link RawComparator} comparator used to compare keys.]]>
  45750. </doc>
  45751. </method>
  45752. <method name="setOutputKeyComparatorClass"
  45753. abstract="false" native="false" synchronized="false"
  45754. static="false" final="false" visibility="public"
  45755. deprecated="not deprecated">
  45756. <param name="theClass" type="java.lang.Class"/>
  45757. <doc>
  45758. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  45759. @param theClass the {@link RawComparator} comparator used to
  45760. compare keys.
  45761. @see #setOutputValueGroupingComparator(Class)]]>
  45762. </doc>
  45763. </method>
  45764. <method name="setKeyFieldComparatorOptions"
  45765. abstract="false" native="false" synchronized="false"
  45766. static="false" final="false" visibility="public"
  45767. deprecated="not deprecated">
  45768. <param name="keySpec" type="java.lang.String"/>
  45769. <doc>
  45770. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  45771. @param keySpec the key specification of the form -k pos1[,pos2], where,
  45772. pos is of the form f[.c][opts], where f is the number
  45773. of the key field to use, and c is the number of the first character from
  45774. the beginning of the field. Fields and character posns are numbered
  45775. starting with 1; a character position of zero in pos2 indicates the
  45776. field's last character. If '.c' is omitted from pos1, it defaults to 1
  45777. (the beginning of the field); if omitted from pos2, it defaults to 0
  45778. (the end of the field). opts are ordering options. The supported options
  45779. are:
  45780. -n, (Sort numerically)
  45781. -r, (Reverse the result of comparison)]]>
  45782. </doc>
  45783. </method>
  45784. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  45785. abstract="false" native="false" synchronized="false"
  45786. static="false" final="false" visibility="public"
  45787. deprecated="not deprecated">
  45788. <doc>
  45789. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  45790. </doc>
  45791. </method>
  45792. <method name="setKeyFieldPartitionerOptions"
  45793. abstract="false" native="false" synchronized="false"
  45794. static="false" final="false" visibility="public"
  45795. deprecated="not deprecated">
  45796. <param name="keySpec" type="java.lang.String"/>
  45797. <doc>
  45798. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  45799. {@link Partitioner}
  45800. @param keySpec the key specification of the form -k pos1[,pos2], where,
  45801. pos is of the form f[.c][opts], where f is the number
  45802. of the key field to use, and c is the number of the first character from
  45803. the beginning of the field. Fields and character posns are numbered
  45804. starting with 1; a character position of zero in pos2 indicates the
  45805. field's last character. If '.c' is omitted from pos1, it defaults to 1
  45806. (the beginning of the field); if omitted from pos2, it defaults to 0
  45807. (the end of the field).]]>
  45808. </doc>
  45809. </method>
  45810. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  45811. abstract="false" native="false" synchronized="false"
  45812. static="false" final="false" visibility="public"
  45813. deprecated="not deprecated">
  45814. <doc>
  45815. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  45816. </doc>
  45817. </method>
  45818. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  45819. abstract="false" native="false" synchronized="false"
  45820. static="false" final="false" visibility="public"
  45821. deprecated="not deprecated">
  45822. <doc>
  45823. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  45824. grouping keys of inputs to the reduce.
  45825. @return comparator set by the user for grouping values.
  45826. @see #setOutputValueGroupingComparator(Class) for details.]]>
  45827. </doc>
  45828. </method>
  45829. <method name="setOutputValueGroupingComparator"
  45830. abstract="false" native="false" synchronized="false"
  45831. static="false" final="false" visibility="public"
  45832. deprecated="not deprecated">
  45833. <param name="theClass" type="java.lang.Class"/>
  45834. <doc>
  45835. <![CDATA[Set the user defined {@link RawComparator} comparator for
  45836. grouping keys in the input to the reduce.
  45837. <p>This comparator should be provided if the equivalence rules for keys
  45838. for sorting the intermediates are different from those for grouping keys
  45839. before each call to
  45840. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  45841. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  45842. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  45843. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  45844. how keys are sorted, this can be used in conjunction to simulate
  45845. <i>secondary sort on values</i>.</p>
  45846. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  45847. <i>stable</i> in any sense. (In any case, with the order of available
  45848. map-outputs to the reduce being non-deterministic, it wouldn't make
  45849. that much sense.)</p>
  45850. @param theClass the comparator class to be used for grouping keys.
  45851. It should implement <code>RawComparator</code>.
  45852. @see #setOutputKeyComparatorClass(Class)]]>
  45853. </doc>
  45854. </method>
  45855. <method name="getUseNewMapper" return="boolean"
  45856. abstract="false" native="false" synchronized="false"
  45857. static="false" final="false" visibility="public"
  45858. deprecated="not deprecated">
  45859. <doc>
  45860. <![CDATA[Should the framework use the new context-object code for running
  45861. the mapper?
  45862. @return true, if the new api should be used]]>
  45863. </doc>
  45864. </method>
  45865. <method name="setUseNewMapper"
  45866. abstract="false" native="false" synchronized="false"
  45867. static="false" final="false" visibility="public"
  45868. deprecated="not deprecated">
  45869. <param name="flag" type="boolean"/>
  45870. <doc>
  45871. <![CDATA[Set whether the framework should use the new api for the mapper.
  45872. This is the default for jobs submitted with the new Job api.
  45873. @param flag true, if the new api should be used]]>
  45874. </doc>
  45875. </method>
  45876. <method name="getUseNewReducer" return="boolean"
  45877. abstract="false" native="false" synchronized="false"
  45878. static="false" final="false" visibility="public"
  45879. deprecated="not deprecated">
  45880. <doc>
  45881. <![CDATA[Should the framework use the new context-object code for running
  45882. the reducer?
  45883. @return true, if the new api should be used]]>
  45884. </doc>
  45885. </method>
  45886. <method name="setUseNewReducer"
  45887. abstract="false" native="false" synchronized="false"
  45888. static="false" final="false" visibility="public"
  45889. deprecated="not deprecated">
  45890. <param name="flag" type="boolean"/>
  45891. <doc>
  45892. <![CDATA[Set whether the framework should use the new api for the reducer.
  45893. This is the default for jobs submitted with the new Job api.
  45894. @param flag true, if the new api should be used]]>
  45895. </doc>
  45896. </method>
  45897. <method name="getOutputValueClass" return="java.lang.Class"
  45898. abstract="false" native="false" synchronized="false"
  45899. static="false" final="false" visibility="public"
  45900. deprecated="not deprecated">
  45901. <doc>
  45902. <![CDATA[Get the value class for job outputs.
  45903. @return the value class for job outputs.]]>
  45904. </doc>
  45905. </method>
  45906. <method name="setOutputValueClass"
  45907. abstract="false" native="false" synchronized="false"
  45908. static="false" final="false" visibility="public"
  45909. deprecated="not deprecated">
  45910. <param name="theClass" type="java.lang.Class"/>
  45911. <doc>
  45912. <![CDATA[Set the value class for job outputs.
  45913. @param theClass the value class for job outputs.]]>
  45914. </doc>
  45915. </method>
  45916. <method name="getMapperClass" return="java.lang.Class"
  45917. abstract="false" native="false" synchronized="false"
  45918. static="false" final="false" visibility="public"
  45919. deprecated="not deprecated">
  45920. <doc>
  45921. <![CDATA[Get the {@link Mapper} class for the job.
  45922. @return the {@link Mapper} class for the job.]]>
  45923. </doc>
  45924. </method>
  45925. <method name="setMapperClass"
  45926. abstract="false" native="false" synchronized="false"
  45927. static="false" final="false" visibility="public"
  45928. deprecated="not deprecated">
  45929. <param name="theClass" type="java.lang.Class"/>
  45930. <doc>
  45931. <![CDATA[Set the {@link Mapper} class for the job.
  45932. @param theClass the {@link Mapper} class for the job.]]>
  45933. </doc>
  45934. </method>
  45935. <method name="getMapRunnerClass" return="java.lang.Class"
  45936. abstract="false" native="false" synchronized="false"
  45937. static="false" final="false" visibility="public"
  45938. deprecated="not deprecated">
  45939. <doc>
  45940. <![CDATA[Get the {@link MapRunnable} class for the job.
  45941. @return the {@link MapRunnable} class for the job.]]>
  45942. </doc>
  45943. </method>
  45944. <method name="setMapRunnerClass"
  45945. abstract="false" native="false" synchronized="false"
  45946. static="false" final="false" visibility="public"
  45947. deprecated="not deprecated">
  45948. <param name="theClass" type="java.lang.Class"/>
  45949. <doc>
  45950. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  45951. Typically used to exert greater control on {@link Mapper}s.
  45952. @param theClass the {@link MapRunnable} class for the job.]]>
  45953. </doc>
  45954. </method>
  45955. <method name="getPartitionerClass" return="java.lang.Class"
  45956. abstract="false" native="false" synchronized="false"
  45957. static="false" final="false" visibility="public"
  45958. deprecated="not deprecated">
  45959. <doc>
  45960. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  45961. to be sent to the {@link Reducer}s.
  45962. @return the {@link Partitioner} used to partition map-outputs.]]>
  45963. </doc>
  45964. </method>
  45965. <method name="setPartitionerClass"
  45966. abstract="false" native="false" synchronized="false"
  45967. static="false" final="false" visibility="public"
  45968. deprecated="not deprecated">
  45969. <param name="theClass" type="java.lang.Class"/>
  45970. <doc>
  45971. <![CDATA[Set the {@link Partitioner} class used to partition
  45972. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  45973. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  45974. </doc>
  45975. </method>
  45976. <method name="getReducerClass" return="java.lang.Class"
  45977. abstract="false" native="false" synchronized="false"
  45978. static="false" final="false" visibility="public"
  45979. deprecated="not deprecated">
  45980. <doc>
  45981. <![CDATA[Get the {@link Reducer} class for the job.
  45982. @return the {@link Reducer} class for the job.]]>
  45983. </doc>
  45984. </method>
  45985. <method name="setReducerClass"
  45986. abstract="false" native="false" synchronized="false"
  45987. static="false" final="false" visibility="public"
  45988. deprecated="not deprecated">
  45989. <param name="theClass" type="java.lang.Class"/>
  45990. <doc>
  45991. <![CDATA[Set the {@link Reducer} class for the job.
  45992. @param theClass the {@link Reducer} class for the job.]]>
  45993. </doc>
  45994. </method>
  45995. <method name="getCombinerClass" return="java.lang.Class"
  45996. abstract="false" native="false" synchronized="false"
  45997. static="false" final="false" visibility="public"
  45998. deprecated="not deprecated">
  45999. <doc>
  46000. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  46001. before being sent to the reducers. Typically the combiner is same as the
  46002. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  46003. @return the user-defined combiner class used to combine map-outputs.]]>
  46004. </doc>
  46005. </method>
  46006. <method name="setCombinerClass"
  46007. abstract="false" native="false" synchronized="false"
  46008. static="false" final="false" visibility="public"
  46009. deprecated="not deprecated">
  46010. <param name="theClass" type="java.lang.Class"/>
  46011. <doc>
  46012. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  46013. before being sent to the reducers.
  46014. <p>The combiner is an application-specified aggregation operation, which
  46015. can help cut down the amount of data transferred between the
  46016. {@link Mapper} and the {@link Reducer}, leading to better performance.</p>
  46017. <p>The framework may invoke the combiner 0, 1, or multiple times, in both
  46018. the mapper and reducer tasks. In general, the combiner is called as the
  46019. sort/merge result is written to disk. The combiner must:
  46020. <ul>
  46021. <li> be side-effect free</li>
  46022. <li> have the same input and output key types and the same input and
  46023. output value types</li>
  46024. </ul></p>
  46025. <p>Typically the combiner is same as the <code>Reducer</code> for the
  46026. job i.e. {@link #setReducerClass(Class)}.</p>
  46027. @param theClass the user-defined combiner class used to combine
  46028. map-outputs.]]>
  46029. </doc>
  46030. </method>
  46031. <method name="getSpeculativeExecution" return="boolean"
  46032. abstract="false" native="false" synchronized="false"
  46033. static="false" final="false" visibility="public"
  46034. deprecated="not deprecated">
  46035. <doc>
  46036. <![CDATA[Should speculative execution be used for this job?
  46037. Defaults to <code>true</code>.
  46038. @return <code>true</code> if speculative execution be used for this job,
  46039. <code>false</code> otherwise.]]>
  46040. </doc>
  46041. </method>
  46042. <method name="setSpeculativeExecution"
  46043. abstract="false" native="false" synchronized="false"
  46044. static="false" final="false" visibility="public"
  46045. deprecated="not deprecated">
  46046. <param name="speculativeExecution" type="boolean"/>
  46047. <doc>
  46048. <![CDATA[Turn speculative execution on or off for this job.
  46049. @param speculativeExecution <code>true</code> if speculative execution
  46050. should be turned on, else <code>false</code>.]]>
  46051. </doc>
  46052. </method>
  46053. <method name="getMapSpeculativeExecution" return="boolean"
  46054. abstract="false" native="false" synchronized="false"
  46055. static="false" final="false" visibility="public"
  46056. deprecated="not deprecated">
  46057. <doc>
  46058. <![CDATA[Should speculative execution be used for this job for map tasks?
  46059. Defaults to <code>true</code>.
  46060. @return <code>true</code> if speculative execution be
  46061. used for this job for map tasks,
  46062. <code>false</code> otherwise.]]>
  46063. </doc>
  46064. </method>
  46065. <method name="setMapSpeculativeExecution"
  46066. abstract="false" native="false" synchronized="false"
  46067. static="false" final="false" visibility="public"
  46068. deprecated="not deprecated">
  46069. <param name="speculativeExecution" type="boolean"/>
  46070. <doc>
  46071. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  46072. @param speculativeExecution <code>true</code> if speculative execution
  46073. should be turned on for map tasks,
  46074. else <code>false</code>.]]>
  46075. </doc>
  46076. </method>
  46077. <method name="getReduceSpeculativeExecution" return="boolean"
  46078. abstract="false" native="false" synchronized="false"
  46079. static="false" final="false" visibility="public"
  46080. deprecated="not deprecated">
  46081. <doc>
  46082. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  46083. Defaults to <code>true</code>.
  46084. @return <code>true</code> if speculative execution be used
  46085. for reduce tasks for this job,
  46086. <code>false</code> otherwise.]]>
  46087. </doc>
  46088. </method>
  46089. <method name="setReduceSpeculativeExecution"
  46090. abstract="false" native="false" synchronized="false"
  46091. static="false" final="false" visibility="public"
  46092. deprecated="not deprecated">
  46093. <param name="speculativeExecution" type="boolean"/>
  46094. <doc>
  46095. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  46096. @param speculativeExecution <code>true</code> if speculative execution
  46097. should be turned on for reduce tasks,
  46098. else <code>false</code>.]]>
  46099. </doc>
  46100. </method>
  46101. <method name="getNumMapTasks" return="int"
  46102. abstract="false" native="false" synchronized="false"
  46103. static="false" final="false" visibility="public"
  46104. deprecated="not deprecated">
  46105. <doc>
  46106. <![CDATA[Get configured the number of reduce tasks for this job.
  46107. Defaults to <code>1</code>.
  46108. @return the number of reduce tasks for this job.]]>
  46109. </doc>
  46110. </method>
  46111. <method name="setNumMapTasks"
  46112. abstract="false" native="false" synchronized="false"
  46113. static="false" final="false" visibility="public"
  46114. deprecated="not deprecated">
  46115. <param name="n" type="int"/>
  46116. <doc>
  46117. <![CDATA[Set the number of map tasks for this job.
  46118. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  46119. number of spawned map tasks depends on the number of {@link InputSplit}s
  46120. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  46121. A custom {@link InputFormat} is typically used to accurately control
  46122. the number of map tasks for the job.</p>
  46123. <h4 id="NoOfMaps">How many maps?</h4>
  46124. <p>The number of maps is usually driven by the total size of the inputs
  46125. i.e. total number of blocks of the input files.</p>
  46126. <p>The right level of parallelism for maps seems to be around 10-100 maps
  46127. per-node, although it has been set up to 300 or so for very cpu-light map
  46128. tasks. Task setup takes awhile, so it is best if the maps take at least a
  46129. minute to execute.</p>
  46130. <p>The default behavior of file-based {@link InputFormat}s is to split the
  46131. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  46132. bytes, of input files. However, the {@link FileSystem} blocksize of the
  46133. input files is treated as an upper bound for input splits. A lower bound
  46134. on the split size can be set via
  46135. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  46136. mapred.min.split.size</a>.</p>
  46137. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  46138. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  46139. used to set it even higher.</p>
  46140. @param n the number of map tasks for this job.
  46141. @see InputFormat#getSplits(JobConf, int)
  46142. @see FileInputFormat
  46143. @see FileSystem#getDefaultBlockSize()
  46144. @see FileStatus#getBlockSize()]]>
  46145. </doc>
  46146. </method>
  46147. <method name="getNumReduceTasks" return="int"
  46148. abstract="false" native="false" synchronized="false"
  46149. static="false" final="false" visibility="public"
  46150. deprecated="not deprecated">
  46151. <doc>
  46152. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  46153. <code>1</code>.
  46154. @return the number of reduce tasks for this job.]]>
  46155. </doc>
  46156. </method>
  46157. <method name="setNumReduceTasks"
  46158. abstract="false" native="false" synchronized="false"
  46159. static="false" final="false" visibility="public"
  46160. deprecated="not deprecated">
  46161. <param name="n" type="int"/>
  46162. <doc>
  46163. <![CDATA[Set the requisite number of reduce tasks for this job.
  46164. <h4 id="NoOfReduces">How many reduces?</h4>
  46165. <p>The right number of reduces seems to be <code>0.95</code> or
  46166. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  46167. <a href="{@docRoot}/../mapred-default.html#mapred.tasktracker.reduce.tasks.maximum">
  46168. mapred.tasktracker.reduce.tasks.maximum</a>).
  46169. </p>
  46170. <p>With <code>0.95</code> all of the reduces can launch immediately and
  46171. start transfering map outputs as the maps finish. With <code>1.75</code>
  46172. the faster nodes will finish their first round of reduces and launch a
  46173. second wave of reduces doing a much better job of load balancing.</p>
  46174. <p>Increasing the number of reduces increases the framework overhead, but
  46175. increases load balancing and lowers the cost of failures.</p>
  46176. <p>The scaling factors above are slightly less than whole numbers to
  46177. reserve a few reduce slots in the framework for speculative-tasks, failures
  46178. etc.</p>
  46179. <h4 id="ReducerNone">Reducer NONE</h4>
  46180. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  46181. <p>In this case the output of the map-tasks directly go to distributed
  46182. file-system, to the path set by
  46183. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  46184. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  46185. @param n the number of reduce tasks for this job.]]>
  46186. </doc>
  46187. </method>
  46188. <method name="getMaxMapAttempts" return="int"
  46189. abstract="false" native="false" synchronized="false"
  46190. static="false" final="false" visibility="public"
  46191. deprecated="not deprecated">
  46192. <doc>
  46193. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  46194. map task, as specified by the <code>mapred.map.max.attempts</code>
  46195. property. If this property is not already set, the default is 4 attempts.
  46196. @return the max number of attempts per map task.]]>
  46197. </doc>
  46198. </method>
  46199. <method name="setMaxMapAttempts"
  46200. abstract="false" native="false" synchronized="false"
  46201. static="false" final="false" visibility="public"
  46202. deprecated="not deprecated">
  46203. <param name="n" type="int"/>
  46204. <doc>
  46205. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  46206. map task.
  46207. @param n the number of attempts per map task.]]>
  46208. </doc>
  46209. </method>
  46210. <method name="getMaxReduceAttempts" return="int"
  46211. abstract="false" native="false" synchronized="false"
  46212. static="false" final="false" visibility="public"
  46213. deprecated="not deprecated">
  46214. <doc>
  46215. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  46216. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  46217. property. If this property is not already set, the default is 4 attempts.
  46218. @return the max number of attempts per reduce task.]]>
  46219. </doc>
  46220. </method>
  46221. <method name="setMaxReduceAttempts"
  46222. abstract="false" native="false" synchronized="false"
  46223. static="false" final="false" visibility="public"
  46224. deprecated="not deprecated">
  46225. <param name="n" type="int"/>
  46226. <doc>
  46227. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  46228. reduce task.
  46229. @param n the number of attempts per reduce task.]]>
  46230. </doc>
  46231. </method>
  46232. <method name="getJobName" return="java.lang.String"
  46233. abstract="false" native="false" synchronized="false"
  46234. static="false" final="false" visibility="public"
  46235. deprecated="not deprecated">
  46236. <doc>
  46237. <![CDATA[Get the user-specified job name. This is only used to identify the
  46238. job to the user.
  46239. @return the job's name, defaulting to "".]]>
  46240. </doc>
  46241. </method>
  46242. <method name="setJobName"
  46243. abstract="false" native="false" synchronized="false"
  46244. static="false" final="false" visibility="public"
  46245. deprecated="not deprecated">
  46246. <param name="name" type="java.lang.String"/>
  46247. <doc>
  46248. <![CDATA[Set the user-specified job name.
  46249. @param name the job's new name.]]>
  46250. </doc>
  46251. </method>
  46252. <method name="getSessionId" return="java.lang.String"
  46253. abstract="false" native="false" synchronized="false"
  46254. static="false" final="false" visibility="public"
  46255. deprecated="not deprecated">
  46256. <doc>
  46257. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  46258. The session identifier is used to tag metric data that is reported to some
  46259. performance metrics system via the org.apache.hadoop.metrics API. The
  46260. session identifier is intended, in particular, for use by Hadoop-On-Demand
  46261. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  46262. HOD will set the session identifier by modifying the mapred-site.xml file
  46263. before starting the cluster.
  46264. When not running under HOD, this identifer is expected to remain set to
  46265. the empty string.
  46266. @return the session identifier, defaulting to "".]]>
  46267. </doc>
  46268. </method>
  46269. <method name="setSessionId"
  46270. abstract="false" native="false" synchronized="false"
  46271. static="false" final="false" visibility="public"
  46272. deprecated="not deprecated">
  46273. <param name="sessionId" type="java.lang.String"/>
  46274. <doc>
  46275. <![CDATA[Set the user-specified session identifier.
  46276. @param sessionId the new session id.]]>
  46277. </doc>
  46278. </method>
  46279. <method name="setMaxTaskFailuresPerTracker"
  46280. abstract="false" native="false" synchronized="false"
  46281. static="false" final="false" visibility="public"
  46282. deprecated="not deprecated">
  46283. <param name="noFailures" type="int"/>
  46284. <doc>
  46285. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  46286. If the no. of task failures exceeds <code>noFailures</code>, the
  46287. tasktracker is <i>blacklisted</i> for this job.
  46288. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  46289. </doc>
  46290. </method>
  46291. <method name="getMaxTaskFailuresPerTracker" return="int"
  46292. abstract="false" native="false" synchronized="false"
  46293. static="false" final="false" visibility="public"
  46294. deprecated="not deprecated">
  46295. <doc>
  46296. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  46297. If the no. of task failures exceeds this, the tasktracker is
  46298. <i>blacklisted</i> for this job.
  46299. @return the maximum no. of failures of a given job per tasktracker.]]>
  46300. </doc>
  46301. </method>
  46302. <method name="getMaxMapTaskFailuresPercent" return="int"
  46303. abstract="false" native="false" synchronized="false"
  46304. static="false" final="false" visibility="public"
  46305. deprecated="not deprecated">
  46306. <doc>
  46307. <![CDATA[Get the maximum percentage of map tasks that can fail without
  46308. the job being aborted.
  46309. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  46310. attempts before being declared as <i>failed</i>.
  46311. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  46312. the job being declared as {@link JobStatus#FAILED}.
  46313. @return the maximum percentage of map tasks that can fail without
  46314. the job being aborted.]]>
  46315. </doc>
  46316. </method>
  46317. <method name="setMaxMapTaskFailuresPercent"
  46318. abstract="false" native="false" synchronized="false"
  46319. static="false" final="false" visibility="public"
  46320. deprecated="not deprecated">
  46321. <param name="percent" type="int"/>
  46322. <doc>
  46323. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  46324. job being aborted.
  46325. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  46326. before being declared as <i>failed</i>.
  46327. @param percent the maximum percentage of map tasks that can fail without
  46328. the job being aborted.]]>
  46329. </doc>
  46330. </method>
  46331. <method name="getMaxReduceTaskFailuresPercent" return="int"
  46332. abstract="false" native="false" synchronized="false"
  46333. static="false" final="false" visibility="public"
  46334. deprecated="not deprecated">
  46335. <doc>
  46336. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  46337. the job being aborted.
  46338. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  46339. attempts before being declared as <i>failed</i>.
  46340. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  46341. in the job being declared as {@link JobStatus#FAILED}.
  46342. @return the maximum percentage of reduce tasks that can fail without
  46343. the job being aborted.]]>
  46344. </doc>
  46345. </method>
  46346. <method name="setMaxReduceTaskFailuresPercent"
  46347. abstract="false" native="false" synchronized="false"
  46348. static="false" final="false" visibility="public"
  46349. deprecated="not deprecated">
  46350. <param name="percent" type="int"/>
  46351. <doc>
  46352. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  46353. being aborted.
  46354. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  46355. attempts before being declared as <i>failed</i>.
  46356. @param percent the maximum percentage of reduce tasks that can fail without
  46357. the job being aborted.]]>
  46358. </doc>
  46359. </method>
  46360. <method name="setJobPriority"
  46361. abstract="false" native="false" synchronized="false"
  46362. static="false" final="false" visibility="public"
  46363. deprecated="not deprecated">
  46364. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  46365. <doc>
  46366. <![CDATA[Set {@link JobPriority} for this job.
  46367. @param prio the {@link JobPriority} for this job.]]>
  46368. </doc>
  46369. </method>
  46370. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  46371. abstract="false" native="false" synchronized="false"
  46372. static="false" final="false" visibility="public"
  46373. deprecated="not deprecated">
  46374. <doc>
  46375. <![CDATA[Get the {@link JobPriority} for this job.
  46376. @return the {@link JobPriority} for this job.]]>
  46377. </doc>
  46378. </method>
  46379. <method name="getProfileEnabled" return="boolean"
  46380. abstract="false" native="false" synchronized="false"
  46381. static="false" final="false" visibility="public"
  46382. deprecated="not deprecated">
  46383. <doc>
  46384. <![CDATA[Get whether the task profiling is enabled.
  46385. @return true if some tasks will be profiled]]>
  46386. </doc>
  46387. </method>
  46388. <method name="setProfileEnabled"
  46389. abstract="false" native="false" synchronized="false"
  46390. static="false" final="false" visibility="public"
  46391. deprecated="not deprecated">
  46392. <param name="newValue" type="boolean"/>
  46393. <doc>
  46394. <![CDATA[Set whether the system should collect profiler information for some of
  46395. the tasks in this job? The information is stored in the user log
  46396. directory.
  46397. @param newValue true means it should be gathered]]>
  46398. </doc>
  46399. </method>
  46400. <method name="getProfileParams" return="java.lang.String"
  46401. abstract="false" native="false" synchronized="false"
  46402. static="false" final="false" visibility="public"
  46403. deprecated="not deprecated">
  46404. <doc>
  46405. <![CDATA[Get the profiler configuration arguments.
  46406. The default value for this property is
  46407. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  46408. @return the parameters to pass to the task child to configure profiling]]>
  46409. </doc>
  46410. </method>
  46411. <method name="setProfileParams"
  46412. abstract="false" native="false" synchronized="false"
  46413. static="false" final="false" visibility="public"
  46414. deprecated="not deprecated">
  46415. <param name="value" type="java.lang.String"/>
  46416. <doc>
  46417. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  46418. will be replaced with the name of the profiling output file when the task
  46419. runs.
  46420. This value is passed to the task child JVM on the command line.
  46421. @param value the configuration string]]>
  46422. </doc>
  46423. </method>
  46424. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  46425. abstract="false" native="false" synchronized="false"
  46426. static="false" final="false" visibility="public"
  46427. deprecated="not deprecated">
  46428. <param name="isMap" type="boolean"/>
  46429. <doc>
  46430. <![CDATA[Get the range of maps or reduces to profile.
  46431. @param isMap is the task a map?
  46432. @return the task ranges]]>
  46433. </doc>
  46434. </method>
  46435. <method name="setProfileTaskRange"
  46436. abstract="false" native="false" synchronized="false"
  46437. static="false" final="false" visibility="public"
  46438. deprecated="not deprecated">
  46439. <param name="isMap" type="boolean"/>
  46440. <param name="newValue" type="java.lang.String"/>
  46441. <doc>
  46442. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  46443. must also be called.
  46444. @param newValue a set of integer ranges of the map ids]]>
  46445. </doc>
  46446. </method>
  46447. <method name="setMapDebugScript"
  46448. abstract="false" native="false" synchronized="false"
  46449. static="false" final="false" visibility="public"
  46450. deprecated="not deprecated">
  46451. <param name="mDbgScript" type="java.lang.String"/>
  46452. <doc>
  46453. <![CDATA[Set the debug script to run when the map tasks fail.
  46454. <p>The debug script can aid debugging of failed map tasks. The script is
  46455. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  46456. <p>The debug command, run on the node where the map failed, is:</p>
  46457. <p><pre><blockquote>
  46458. $script $stdout $stderr $syslog $jobconf.
  46459. </blockquote></pre></p>
  46460. <p> The script file is distributed through {@link DistributedCache}
  46461. APIs. The script needs to be symlinked. </p>
  46462. <p>Here is an example on how to submit a script
  46463. <p><blockquote><pre>
  46464. job.setMapDebugScript("./myscript");
  46465. DistributedCache.createSymlink(job);
  46466. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  46467. </pre></blockquote></p>
  46468. @param mDbgScript the script name]]>
  46469. </doc>
  46470. </method>
  46471. <method name="getMapDebugScript" return="java.lang.String"
  46472. abstract="false" native="false" synchronized="false"
  46473. static="false" final="false" visibility="public"
  46474. deprecated="not deprecated">
  46475. <doc>
  46476. <![CDATA[Get the map task's debug script.
  46477. @return the debug Script for the mapred job for failed map tasks.
  46478. @see #setMapDebugScript(String)]]>
  46479. </doc>
  46480. </method>
  46481. <method name="setReduceDebugScript"
  46482. abstract="false" native="false" synchronized="false"
  46483. static="false" final="false" visibility="public"
  46484. deprecated="not deprecated">
  46485. <param name="rDbgScript" type="java.lang.String"/>
  46486. <doc>
  46487. <![CDATA[Set the debug script to run when the reduce tasks fail.
  46488. <p>The debug script can aid debugging of failed reduce tasks. The script
  46489. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  46490. <p>The debug command, run on the node where the map failed, is:</p>
  46491. <p><pre><blockquote>
  46492. $script $stdout $stderr $syslog $jobconf.
  46493. </blockquote></pre></p>
  46494. <p> The script file is distributed through {@link DistributedCache}
  46495. APIs. The script file needs to be symlinked </p>
  46496. <p>Here is an example on how to submit a script
  46497. <p><blockquote><pre>
  46498. job.setReduceDebugScript("./myscript");
  46499. DistributedCache.createSymlink(job);
  46500. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  46501. </pre></blockquote></p>
  46502. @param rDbgScript the script name]]>
  46503. </doc>
  46504. </method>
  46505. <method name="getReduceDebugScript" return="java.lang.String"
  46506. abstract="false" native="false" synchronized="false"
  46507. static="false" final="false" visibility="public"
  46508. deprecated="not deprecated">
  46509. <doc>
  46510. <![CDATA[Get the reduce task's debug Script
  46511. @return the debug script for the mapred job for failed reduce tasks.
  46512. @see #setReduceDebugScript(String)]]>
  46513. </doc>
  46514. </method>
  46515. <method name="getJobEndNotificationURI" return="java.lang.String"
  46516. abstract="false" native="false" synchronized="false"
  46517. static="false" final="false" visibility="public"
  46518. deprecated="not deprecated">
  46519. <doc>
  46520. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  46521. has completed (success/failure).
  46522. @return the job end notification uri, <code>null</code> if it hasn't
  46523. been set.
  46524. @see #setJobEndNotificationURI(String)]]>
  46525. </doc>
  46526. </method>
  46527. <method name="setJobEndNotificationURI"
  46528. abstract="false" native="false" synchronized="false"
  46529. static="false" final="false" visibility="public"
  46530. deprecated="not deprecated">
  46531. <param name="uri" type="java.lang.String"/>
  46532. <doc>
  46533. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  46534. has completed (success/failure).
  46535. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  46536. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  46537. identifier and completion-status respectively.</p>
  46538. <p>This is typically used by application-writers to implement chaining of
  46539. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  46540. @param uri the job end notification uri
  46541. @see JobStatus
  46542. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#
  46543. JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  46544. </doc>
  46545. </method>
  46546. <method name="getJobLocalDir" return="java.lang.String"
  46547. abstract="false" native="false" synchronized="false"
  46548. static="false" final="false" visibility="public"
  46549. deprecated="not deprecated">
  46550. <doc>
  46551. <![CDATA[Get job-specific shared directory for use as scratch space
  46552. <p>
  46553. When a job starts, a shared directory is created at location
  46554. <code>
  46555. ${mapred.local.dir}/taskTracker/$user/jobcache/$jobid/work/ </code>.
  46556. This directory is exposed to the users through
  46557. <code>job.local.dir </code>.
  46558. So, the tasks can use this space
  46559. as scratch space and share files among them. </p>
  46560. This value is available as System property also.
  46561. @return The localized job specific shared directory]]>
  46562. </doc>
  46563. </method>
  46564. <method name="getMemoryForMapTask" return="long"
  46565. abstract="false" native="false" synchronized="false"
  46566. static="false" final="false" visibility="public"
  46567. deprecated="not deprecated">
  46568. <doc>
  46569. <![CDATA[Get memory required to run a map task of the job, in MB.
  46570. If a value is specified in the configuration, it is returned.
  46571. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  46572. <p/>
  46573. For backward compatibility, if the job configuration sets the
  46574. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  46575. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  46576. after converting it from bytes to MB.
  46577. @return memory required to run a map task of the job, in MB,
  46578. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  46579. </doc>
  46580. </method>
  46581. <method name="setMemoryForMapTask"
  46582. abstract="false" native="false" synchronized="false"
  46583. static="false" final="false" visibility="public"
  46584. deprecated="not deprecated">
  46585. <param name="mem" type="long"/>
  46586. </method>
  46587. <method name="getMemoryForReduceTask" return="long"
  46588. abstract="false" native="false" synchronized="false"
  46589. static="false" final="false" visibility="public"
  46590. deprecated="not deprecated">
  46591. <doc>
  46592. <![CDATA[Get memory required to run a reduce task of the job, in MB.
  46593. If a value is specified in the configuration, it is returned.
  46594. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  46595. <p/>
  46596. For backward compatibility, if the job configuration sets the
  46597. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  46598. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  46599. after converting it from bytes to MB.
  46600. @return memory required to run a reduce task of the job, in MB,
  46601. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  46602. </doc>
  46603. </method>
  46604. <method name="setMemoryForReduceTask"
  46605. abstract="false" native="false" synchronized="false"
  46606. static="false" final="false" visibility="public"
  46607. deprecated="not deprecated">
  46608. <param name="mem" type="long"/>
  46609. </method>
  46610. <method name="getQueueName" return="java.lang.String"
  46611. abstract="false" native="false" synchronized="false"
  46612. static="false" final="false" visibility="public"
  46613. deprecated="not deprecated">
  46614. <doc>
  46615. <![CDATA[Return the name of the queue to which this job is submitted.
  46616. Defaults to 'default'.
  46617. @return name of the queue]]>
  46618. </doc>
  46619. </method>
  46620. <method name="setQueueName"
  46621. abstract="false" native="false" synchronized="false"
  46622. static="false" final="false" visibility="public"
  46623. deprecated="not deprecated">
  46624. <param name="queueName" type="java.lang.String"/>
  46625. <doc>
  46626. <![CDATA[Set the name of the queue to which this job should be submitted.
  46627. @param queueName Name of the queue]]>
  46628. </doc>
  46629. </method>
  46630. <method name="normalizeMemoryConfigValue" return="long"
  46631. abstract="false" native="false" synchronized="false"
  46632. static="true" final="false" visibility="public"
  46633. deprecated="not deprecated">
  46634. <param name="val" type="long"/>
  46635. <doc>
  46636. <![CDATA[Normalize the negative values in configuration
  46637. @param val
  46638. @return normalized value]]>
  46639. </doc>
  46640. </method>
  46641. <method name="getMaxVirtualMemoryForTask" return="long"
  46642. abstract="false" native="false" synchronized="false"
  46643. static="false" final="false" visibility="public"
  46644. deprecated="Use {@link #getMemoryForMapTask()} and
  46645. {@link #getMemoryForReduceTask()}">
  46646. <doc>
  46647. <![CDATA[Get the memory required to run a task of this job, in bytes. See
  46648. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  46649. <p/>
  46650. This method is deprecated. Now, different memory limits can be
  46651. set for map and reduce tasks of a job, in MB.
  46652. <p/>
  46653. For backward compatibility, if the job configuration sets the
  46654. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  46655. from {@link #DISABLED_MEMORY_LIMIT}, that value is returned.
  46656. Otherwise, this method will return the larger of the values returned by
  46657. {@link #getMemoryForMapTask()} and {@link #getMemoryForReduceTask()}
  46658. after converting them into bytes.
  46659. @return Memory required to run a task of this job, in bytes,
  46660. or {@link #DISABLED_MEMORY_LIMIT}, if unset.
  46661. @see #setMaxVirtualMemoryForTask(long)
  46662. @deprecated Use {@link #getMemoryForMapTask()} and
  46663. {@link #getMemoryForReduceTask()}]]>
  46664. </doc>
  46665. </method>
  46666. <method name="setMaxVirtualMemoryForTask"
  46667. abstract="false" native="false" synchronized="false"
  46668. static="false" final="false" visibility="public"
  46669. deprecated="Use {@link #setMemoryForMapTask(long mem)} and
  46670. Use {@link #setMemoryForReduceTask(long mem)}">
  46671. <param name="vmem" type="long"/>
  46672. <doc>
  46673. <![CDATA[Set the maximum amount of memory any task of this job can use. See
  46674. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  46675. <p/>
  46676. mapred.task.maxvmem is split into
  46677. mapred.job.map.memory.mb
  46678. and mapred.job.map.memory.mb,mapred
  46679. each of the new key are set
  46680. as mapred.task.maxvmem / 1024
  46681. as new values are in MB
  46682. @param vmem Maximum amount of virtual memory in bytes any task of this job
  46683. can use.
  46684. @see #getMaxVirtualMemoryForTask()
  46685. @deprecated
  46686. Use {@link #setMemoryForMapTask(long mem)} and
  46687. Use {@link #setMemoryForReduceTask(long mem)}]]>
  46688. </doc>
  46689. </method>
  46690. <method name="getMaxPhysicalMemoryForTask" return="long"
  46691. abstract="false" native="false" synchronized="false"
  46692. static="false" final="false" visibility="public"
  46693. deprecated="this variable is deprecated and nolonger in use.">
  46694. <doc>
  46695. <![CDATA[@deprecated this variable is deprecated and nolonger in use.]]>
  46696. </doc>
  46697. </method>
  46698. <method name="setMaxPhysicalMemoryForTask"
  46699. abstract="false" native="false" synchronized="false"
  46700. static="false" final="false" visibility="public"
  46701. deprecated="not deprecated">
  46702. <param name="mem" type="long"/>
  46703. </method>
  46704. <field name="MAPRED_TASK_MAXVMEM_PROPERTY" type="java.lang.String"
  46705. transient="false" volatile="false"
  46706. static="true" final="true" visibility="public"
  46707. deprecated="Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  46708. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}">
  46709. <doc>
  46710. <![CDATA[@deprecated Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  46711. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}]]>
  46712. </doc>
  46713. </field>
  46714. <field name="UPPER_LIMIT_ON_TASK_VMEM_PROPERTY" type="java.lang.String"
  46715. transient="false" volatile="false"
  46716. static="true" final="true" visibility="public"
  46717. deprecated="deprecated, no comment">
  46718. <doc>
  46719. <![CDATA[@deprecated]]>
  46720. </doc>
  46721. </field>
  46722. <field name="MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY" type="java.lang.String"
  46723. transient="false" volatile="false"
  46724. static="true" final="true" visibility="public"
  46725. deprecated="deprecated, no comment">
  46726. <doc>
  46727. <![CDATA[@deprecated]]>
  46728. </doc>
  46729. </field>
  46730. <field name="MAPRED_TASK_MAXPMEM_PROPERTY" type="java.lang.String"
  46731. transient="false" volatile="false"
  46732. static="true" final="true" visibility="public"
  46733. deprecated="deprecated, no comment">
  46734. <doc>
  46735. <![CDATA[@deprecated]]>
  46736. </doc>
  46737. </field>
  46738. <field name="DISABLED_MEMORY_LIMIT" type="long"
  46739. transient="false" volatile="false"
  46740. static="true" final="true" visibility="public"
  46741. deprecated="not deprecated">
  46742. <doc>
  46743. <![CDATA[A value which if set for memory related configuration options,
  46744. indicates that the options are turned off.]]>
  46745. </doc>
  46746. </field>
  46747. <field name="MAPRED_LOCAL_DIR_PROPERTY" type="java.lang.String"
  46748. transient="false" volatile="false"
  46749. static="true" final="true" visibility="public"
  46750. deprecated="not deprecated">
  46751. <doc>
  46752. <![CDATA[Property name for the configuration property mapred.local.dir]]>
  46753. </doc>
  46754. </field>
  46755. <field name="DEFAULT_QUEUE_NAME" type="java.lang.String"
  46756. transient="false" volatile="false"
  46757. static="true" final="true" visibility="public"
  46758. deprecated="not deprecated">
  46759. <doc>
  46760. <![CDATA[Name of the queue to which jobs will be submitted, if no queue
  46761. name is mentioned.]]>
  46762. </doc>
  46763. </field>
  46764. <field name="MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  46765. transient="false" volatile="false"
  46766. static="true" final="true" visibility="public"
  46767. deprecated="Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  46768. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}">
  46769. <doc>
  46770. <![CDATA[Configuration key to set the java command line options for the child
  46771. map and reduce tasks.
  46772. Java opts for the task tracker child processes.
  46773. The following symbol, if present, will be interpolated: @taskid@.
  46774. It is replaced by current TaskID. Any other occurrences of '@' will go
  46775. unchanged.
  46776. For example, to enable verbose gc logging to a file named for the taskid in
  46777. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  46778. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  46779. The configuration variable {@link #MAPRED_TASK_ULIMIT} can be used to
  46780. control the maximum virtual memory of the child processes.
  46781. The configuration variable {@link #MAPRED_TASK_ENV} can be used to pass
  46782. other environment variables to the child processes.
  46783. @deprecated Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  46784. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}]]>
  46785. </doc>
  46786. </field>
  46787. <field name="MAPRED_MAP_TASK_JAVA_OPTS" type="java.lang.String"
  46788. transient="false" volatile="false"
  46789. static="true" final="true" visibility="public"
  46790. deprecated="not deprecated">
  46791. <doc>
  46792. <![CDATA[Configuration key to set the java command line options for the map tasks.
  46793. Java opts for the task tracker child map processes.
  46794. The following symbol, if present, will be interpolated: @taskid@.
  46795. It is replaced by current TaskID. Any other occurrences of '@' will go
  46796. unchanged.
  46797. For example, to enable verbose gc logging to a file named for the taskid in
  46798. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  46799. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  46800. The configuration variable {@link #MAPRED_MAP_TASK_ULIMIT} can be used to
  46801. control the maximum virtual memory of the map processes.
  46802. The configuration variable {@link #MAPRED_MAP_TASK_ENV} can be used to pass
  46803. other environment variables to the map processes.]]>
  46804. </doc>
  46805. </field>
  46806. <field name="MAPRED_REDUCE_TASK_JAVA_OPTS" type="java.lang.String"
  46807. transient="false" volatile="false"
  46808. static="true" final="true" visibility="public"
  46809. deprecated="not deprecated">
  46810. <doc>
  46811. <![CDATA[Configuration key to set the java command line options for the reduce tasks.
  46812. Java opts for the task tracker child reduce processes.
  46813. The following symbol, if present, will be interpolated: @taskid@.
  46814. It is replaced by current TaskID. Any other occurrences of '@' will go
  46815. unchanged.
  46816. For example, to enable verbose gc logging to a file named for the taskid in
  46817. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  46818. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  46819. The configuration variable {@link #MAPRED_REDUCE_TASK_ULIMIT} can be used
  46820. to control the maximum virtual memory of the reduce processes.
  46821. The configuration variable {@link #MAPRED_REDUCE_TASK_ENV} can be used to
  46822. pass process environment variables to the reduce processes.]]>
  46823. </doc>
  46824. </field>
  46825. <field name="DEFAULT_MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  46826. transient="false" volatile="false"
  46827. static="true" final="true" visibility="public"
  46828. deprecated="not deprecated">
  46829. </field>
  46830. <field name="MAPRED_TASK_ULIMIT" type="java.lang.String"
  46831. transient="false" volatile="false"
  46832. static="true" final="true" visibility="public"
  46833. deprecated="Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  46834. {@link #MAPRED_REDUCE_TASK_ULIMIT}">
  46835. <doc>
  46836. <![CDATA[Configuration key to set the maximum virutal memory available to the child
  46837. map and reduce tasks (in kilo-bytes).
  46838. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  46839. via {@link #MAPRED_TASK_JAVA_OPTS}, else the VM might not start.
  46840. @deprecated Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  46841. {@link #MAPRED_REDUCE_TASK_ULIMIT}]]>
  46842. </doc>
  46843. </field>
  46844. <field name="MAPRED_MAP_TASK_ULIMIT" type="java.lang.String"
  46845. transient="false" volatile="false"
  46846. static="true" final="true" visibility="public"
  46847. deprecated="not deprecated">
  46848. <doc>
  46849. <![CDATA[Configuration key to set the maximum virutal memory available to the
  46850. map tasks (in kilo-bytes).
  46851. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  46852. via {@link #MAPRED_MAP_TASK_JAVA_OPTS}, else the VM might not start.]]>
  46853. </doc>
  46854. </field>
  46855. <field name="MAPRED_REDUCE_TASK_ULIMIT" type="java.lang.String"
  46856. transient="false" volatile="false"
  46857. static="true" final="true" visibility="public"
  46858. deprecated="not deprecated">
  46859. <doc>
  46860. <![CDATA[Configuration key to set the maximum virutal memory available to the
  46861. reduce tasks (in kilo-bytes).
  46862. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  46863. via {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}, else the VM might not start.]]>
  46864. </doc>
  46865. </field>
  46866. <field name="MAPRED_TASK_ENV" type="java.lang.String"
  46867. transient="false" volatile="false"
  46868. static="true" final="true" visibility="public"
  46869. deprecated="Use {@link #MAPRED_MAP_TASK_ENV} or
  46870. {@link #MAPRED_REDUCE_TASK_ENV}">
  46871. <doc>
  46872. <![CDATA[Configuration key to set the environment of the child map/reduce tasks.
  46873. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  46874. reference existing environment variables via <code>$key</code>.
  46875. Example:
  46876. <ul>
  46877. <li> A=foo - This will set the env variable A to foo. </li>
  46878. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  46879. </ul>
  46880. @deprecated Use {@link #MAPRED_MAP_TASK_ENV} or
  46881. {@link #MAPRED_REDUCE_TASK_ENV}]]>
  46882. </doc>
  46883. </field>
  46884. <field name="MAPRED_MAP_TASK_ENV" type="java.lang.String"
  46885. transient="false" volatile="false"
  46886. static="true" final="true" visibility="public"
  46887. deprecated="not deprecated">
  46888. <doc>
  46889. <![CDATA[Configuration key to set the maximum virutal memory available to the
  46890. map tasks.
  46891. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  46892. reference existing environment variables via <code>$key</code>.
  46893. Example:
  46894. <ul>
  46895. <li> A=foo - This will set the env variable A to foo. </li>
  46896. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  46897. </ul>]]>
  46898. </doc>
  46899. </field>
  46900. <field name="MAPRED_REDUCE_TASK_ENV" type="java.lang.String"
  46901. transient="false" volatile="false"
  46902. static="true" final="true" visibility="public"
  46903. deprecated="not deprecated">
  46904. <doc>
  46905. <![CDATA[Configuration key to set the maximum virutal memory available to the
  46906. reduce tasks.
  46907. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  46908. reference existing environment variables via <code>$key</code>.
  46909. Example:
  46910. <ul>
  46911. <li> A=foo - This will set the env variable A to foo. </li>
  46912. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  46913. </ul>]]>
  46914. </doc>
  46915. </field>
  46916. <doc>
  46917. <![CDATA[A map/reduce job configuration.
  46918. <p><code>JobConf</code> is the primary interface for a user to describe a
  46919. map-reduce job to the Hadoop framework for execution. The framework tries to
  46920. faithfully execute the job as-is described by <code>JobConf</code>, however:
  46921. <ol>
  46922. <li>
  46923. Some configuration parameters might have been marked as
  46924. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  46925. final</a> by administrators and hence cannot be altered.
  46926. </li>
  46927. <li>
  46928. While some job parameters are straight-forward to set
  46929. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  46930. rest of the framework and/or job-configuration and is relatively more
  46931. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  46932. </li>
  46933. </ol></p>
  46934. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  46935. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  46936. {@link OutputFormat} implementations to be used etc.
  46937. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  46938. of the job such as <code>Comparator</code>s to be used, files to be put in
  46939. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  46940. are to be compressed (and how), debugability via user-provided scripts
  46941. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  46942. for doing post-processing on task logs, task's stdout, stderr, syslog.
  46943. and etc.</p>
  46944. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  46945. <p><blockquote><pre>
  46946. // Create a new JobConf
  46947. JobConf job = new JobConf(new Configuration(), MyJob.class);
  46948. // Specify various job-specific parameters
  46949. job.setJobName("myjob");
  46950. FileInputFormat.setInputPaths(job, new Path("in"));
  46951. FileOutputFormat.setOutputPath(job, new Path("out"));
  46952. job.setMapperClass(MyJob.MyMapper.class);
  46953. job.setCombinerClass(MyJob.MyReducer.class);
  46954. job.setReducerClass(MyJob.MyReducer.class);
  46955. job.setInputFormat(SequenceFileInputFormat.class);
  46956. job.setOutputFormat(SequenceFileOutputFormat.class);
  46957. </pre></blockquote></p>
  46958. @see JobClient
  46959. @see ClusterStatus
  46960. @see Tool
  46961. @see DistributedCache]]>
  46962. </doc>
  46963. </class>
  46964. <!-- end class org.apache.hadoop.mapred.JobConf -->
  46965. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  46966. <interface name="JobConfigurable" abstract="true"
  46967. static="false" final="false" visibility="public"
  46968. deprecated="not deprecated">
  46969. <method name="configure"
  46970. abstract="false" native="false" synchronized="false"
  46971. static="false" final="false" visibility="public"
  46972. deprecated="not deprecated">
  46973. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46974. <doc>
  46975. <![CDATA[Initializes a new instance from a {@link JobConf}.
  46976. @param job the configuration]]>
  46977. </doc>
  46978. </method>
  46979. <doc>
  46980. <![CDATA[That what may be configured.]]>
  46981. </doc>
  46982. </interface>
  46983. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  46984. <!-- start class org.apache.hadoop.mapred.JobContext -->
  46985. <class name="JobContext" extends="org.apache.hadoop.mapreduce.JobContext"
  46986. abstract="false"
  46987. static="false" final="false" visibility="public"
  46988. deprecated="not deprecated">
  46989. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  46990. abstract="false" native="false" synchronized="false"
  46991. static="false" final="false" visibility="public"
  46992. deprecated="not deprecated">
  46993. <doc>
  46994. <![CDATA[Get the job Configuration
  46995. @return JobConf]]>
  46996. </doc>
  46997. </method>
  46998. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  46999. abstract="false" native="false" synchronized="false"
  47000. static="false" final="false" visibility="public"
  47001. deprecated="not deprecated">
  47002. <doc>
  47003. <![CDATA[Get the progress mechanism for reporting progress.
  47004. @return progress mechanism]]>
  47005. </doc>
  47006. </method>
  47007. </class>
  47008. <!-- end class org.apache.hadoop.mapred.JobContext -->
  47009. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  47010. <class name="JobEndNotifier" extends="java.lang.Object"
  47011. abstract="false"
  47012. static="false" final="false" visibility="public"
  47013. deprecated="not deprecated">
  47014. <constructor name="JobEndNotifier"
  47015. static="false" final="false" visibility="public"
  47016. deprecated="not deprecated">
  47017. </constructor>
  47018. <method name="startNotifier"
  47019. abstract="false" native="false" synchronized="false"
  47020. static="true" final="false" visibility="public"
  47021. deprecated="not deprecated">
  47022. </method>
  47023. <method name="stopNotifier"
  47024. abstract="false" native="false" synchronized="false"
  47025. static="true" final="false" visibility="public"
  47026. deprecated="not deprecated">
  47027. </method>
  47028. <method name="registerNotification"
  47029. abstract="false" native="false" synchronized="false"
  47030. static="true" final="false" visibility="public"
  47031. deprecated="not deprecated">
  47032. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47033. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  47034. </method>
  47035. <method name="localRunnerNotification"
  47036. abstract="false" native="false" synchronized="false"
  47037. static="true" final="false" visibility="public"
  47038. deprecated="not deprecated">
  47039. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47040. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  47041. </method>
  47042. </class>
  47043. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  47044. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  47045. <class name="JobHistory" extends="java.lang.Object"
  47046. abstract="false"
  47047. static="false" final="false" visibility="public"
  47048. deprecated="not deprecated">
  47049. <constructor name="JobHistory"
  47050. static="false" final="false" visibility="public"
  47051. deprecated="not deprecated">
  47052. </constructor>
  47053. <method name="getHistoryFilePath" return="java.lang.String"
  47054. abstract="false" native="false" synchronized="false"
  47055. static="true" final="false" visibility="public"
  47056. deprecated="not deprecated">
  47057. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47058. <doc>
  47059. <![CDATA[Given the job id, return the history file path from the cache]]>
  47060. </doc>
  47061. </method>
  47062. <method name="init"
  47063. abstract="false" native="false" synchronized="false"
  47064. static="true" final="false" visibility="public"
  47065. deprecated="not deprecated">
  47066. <param name="jobTracker" type="org.apache.hadoop.mapred.JobTracker"/>
  47067. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47068. <param name="hostname" type="java.lang.String"/>
  47069. <param name="jobTrackerStartTime" type="long"/>
  47070. <exception name="IOException" type="java.io.IOException"/>
  47071. <doc>
  47072. <![CDATA[Initialize JobHistory files.
  47073. @param conf Jobconf of the job tracker.
  47074. @param hostname jobtracker's hostname
  47075. @param jobTrackerStartTime jobtracker's start time]]>
  47076. </doc>
  47077. </method>
  47078. <method name="parseHistoryFromFS"
  47079. abstract="false" native="false" synchronized="false"
  47080. static="true" final="false" visibility="public"
  47081. deprecated="not deprecated">
  47082. <param name="path" type="java.lang.String"/>
  47083. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  47084. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  47085. <exception name="IOException" type="java.io.IOException"/>
  47086. <doc>
  47087. <![CDATA[Parses history file and invokes Listener.handle() for
  47088. each line of history. It can be used for looking through history
  47089. files for specific items without having to keep whole history in memory.
  47090. @param path path to history file
  47091. @param l Listener for history events
  47092. @param fs FileSystem where history file is present
  47093. @throws IOException]]>
  47094. </doc>
  47095. </method>
  47096. <method name="getTaskLogsUrl" return="java.lang.String"
  47097. abstract="false" native="false" synchronized="false"
  47098. static="true" final="false" visibility="public"
  47099. deprecated="not deprecated">
  47100. <param name="attempt" type="org.apache.hadoop.mapred.JobHistory.TaskAttempt"/>
  47101. <doc>
  47102. <![CDATA[Return the TaskLogsUrl of a particular TaskAttempt
  47103. @param attempt
  47104. @return the taskLogsUrl. null if http-port or tracker-name or
  47105. task-attempt-id are unavailable.]]>
  47106. </doc>
  47107. </method>
  47108. <field name="LOG" type="org.apache.commons.logging.Log"
  47109. transient="false" volatile="false"
  47110. static="true" final="true" visibility="public"
  47111. deprecated="not deprecated">
  47112. </field>
  47113. <field name="JOB_NAME_TRIM_LENGTH" type="int"
  47114. transient="false" volatile="false"
  47115. static="true" final="true" visibility="public"
  47116. deprecated="not deprecated">
  47117. </field>
  47118. <field name="JOBHISTORY_FILENAME_REGEX" type="java.util.regex.Pattern"
  47119. transient="false" volatile="false"
  47120. static="true" final="true" visibility="public"
  47121. deprecated="not deprecated">
  47122. </field>
  47123. <field name="CONF_FILENAME_REGEX" type="java.util.regex.Pattern"
  47124. transient="false" volatile="false"
  47125. static="true" final="true" visibility="public"
  47126. deprecated="not deprecated">
  47127. </field>
  47128. <doc>
  47129. <![CDATA[Provides methods for writing to and reading from job history.
  47130. Job History works in an append mode, JobHistory and its inner classes provide methods
  47131. to log job events.
  47132. JobHistory is split into multiple files, format of each file is plain text where each line
  47133. is of the format [type (key=value)*], where type identifies the type of the record.
  47134. Type maps to UID of one of the inner classes of this class.
  47135. Job history is maintained in a master index which contains star/stop times of all jobs with
  47136. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  47137. file. name of job history files follows the format jobtrackerId_jobid
  47138. For parsing the job history it supports a listener based interface where each line is parsed
  47139. and passed to listener. The listener can create an object model of history or look for specific
  47140. events and discard rest of the history.
  47141. CHANGE LOG :
  47142. Version 0 : The history has the following format :
  47143. TAG KEY1="VALUE1" KEY2="VALUE2" and so on.
  47144. TAG can be Job, Task, MapAttempt or ReduceAttempt.
  47145. Note that a '"' is the line delimiter.
  47146. Version 1 : Changes the line delimiter to '.'
  47147. Values are now escaped for unambiguous parsing.
  47148. Added the Meta tag to store version info.]]>
  47149. </doc>
  47150. </class>
  47151. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  47152. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  47153. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  47154. abstract="false"
  47155. static="true" final="false" visibility="public"
  47156. deprecated="not deprecated">
  47157. <implements name="java.lang.Runnable"/>
  47158. <constructor name="JobHistory.HistoryCleaner"
  47159. static="false" final="false" visibility="public"
  47160. deprecated="not deprecated">
  47161. </constructor>
  47162. <method name="run"
  47163. abstract="false" native="false" synchronized="false"
  47164. static="false" final="false" visibility="public"
  47165. deprecated="not deprecated">
  47166. <doc>
  47167. <![CDATA[Cleans up history data.]]>
  47168. </doc>
  47169. </method>
  47170. <doc>
  47171. <![CDATA[Delete history files older than one month. Update master index and remove all
  47172. jobs older than one month. Also if a job tracker has no jobs in last one month
  47173. remove reference to the job tracker.]]>
  47174. </doc>
  47175. </class>
  47176. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  47177. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  47178. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  47179. abstract="false"
  47180. static="true" final="false" visibility="public"
  47181. deprecated="not deprecated">
  47182. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  47183. static="false" final="false" visibility="public"
  47184. deprecated="not deprecated">
  47185. <doc>
  47186. <![CDATA[Create new JobInfo]]>
  47187. </doc>
  47188. </constructor>
  47189. <method name="getAllTasks" return="java.util.Map"
  47190. abstract="false" native="false" synchronized="false"
  47191. static="false" final="false" visibility="public"
  47192. deprecated="not deprecated">
  47193. <doc>
  47194. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  47195. </doc>
  47196. </method>
  47197. <method name="getJobACLs" return="java.util.Map"
  47198. abstract="false" native="false" synchronized="false"
  47199. static="false" final="false" visibility="public"
  47200. deprecated="not deprecated">
  47201. <doc>
  47202. <![CDATA[Get the job acls.
  47203. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  47204. </doc>
  47205. </method>
  47206. <method name="handle"
  47207. abstract="false" native="false" synchronized="true"
  47208. static="false" final="false" visibility="public"
  47209. deprecated="not deprecated">
  47210. <param name="values" type="java.util.Map"/>
  47211. </method>
  47212. <method name="getLocalJobFilePath" return="java.lang.String"
  47213. abstract="false" native="false" synchronized="false"
  47214. static="true" final="false" visibility="public"
  47215. deprecated="not deprecated">
  47216. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47217. <doc>
  47218. <![CDATA[Get the path of the locally stored job file
  47219. @param jobId id of the job
  47220. @return the path of the job file on the local file system]]>
  47221. </doc>
  47222. </method>
  47223. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  47224. abstract="false" native="false" synchronized="false"
  47225. static="true" final="false" visibility="public"
  47226. deprecated="not deprecated">
  47227. <param name="logFile" type="java.lang.String"/>
  47228. <exception name="IOException" type="java.io.IOException"/>
  47229. <doc>
  47230. <![CDATA[Helper function to encode the URL of the path of the job-history
  47231. log file.
  47232. @param logFile path of the job-history file
  47233. @return URL encoded path
  47234. @throws IOException]]>
  47235. </doc>
  47236. </method>
  47237. <method name="encodeJobHistoryFileName" return="java.lang.String"
  47238. abstract="false" native="false" synchronized="false"
  47239. static="true" final="false" visibility="public"
  47240. deprecated="not deprecated">
  47241. <param name="logFileName" type="java.lang.String"/>
  47242. <exception name="IOException" type="java.io.IOException"/>
  47243. <doc>
  47244. <![CDATA[Helper function to encode the URL of the filename of the job-history
  47245. log file.
  47246. @param logFileName file name of the job-history file
  47247. @return URL encoded filename
  47248. @throws IOException]]>
  47249. </doc>
  47250. </method>
  47251. <method name="decodeJobHistoryFileName" return="java.lang.String"
  47252. abstract="false" native="false" synchronized="false"
  47253. static="true" final="false" visibility="public"
  47254. deprecated="not deprecated">
  47255. <param name="logFileName" type="java.lang.String"/>
  47256. <exception name="IOException" type="java.io.IOException"/>
  47257. <doc>
  47258. <![CDATA[Helper function to decode the URL of the filename of the job-history
  47259. log file.
  47260. @param logFileName file name of the job-history file
  47261. @return URL decoded filename
  47262. @throws IOException]]>
  47263. </doc>
  47264. </method>
  47265. <method name="getUserName" return="java.lang.String"
  47266. abstract="false" native="false" synchronized="false"
  47267. static="true" final="false" visibility="public"
  47268. deprecated="not deprecated">
  47269. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47270. <doc>
  47271. <![CDATA[Get the user name from the job conf]]>
  47272. </doc>
  47273. </method>
  47274. <method name="getJobHistoryLogLocation" return="org.apache.hadoop.fs.Path"
  47275. abstract="false" native="false" synchronized="false"
  47276. static="true" final="false" visibility="public"
  47277. deprecated="not deprecated">
  47278. <param name="logFileName" type="java.lang.String"/>
  47279. <doc>
  47280. <![CDATA[Get the job history file path given the history filename]]>
  47281. </doc>
  47282. </method>
  47283. <method name="getJobHistoryLogLocationForUser" return="org.apache.hadoop.fs.Path"
  47284. abstract="false" native="false" synchronized="false"
  47285. static="true" final="false" visibility="public"
  47286. deprecated="not deprecated">
  47287. <param name="logFileName" type="java.lang.String"/>
  47288. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47289. <doc>
  47290. <![CDATA[Get the user job history file path]]>
  47291. </doc>
  47292. </method>
  47293. <method name="getJobHistoryFileName" return="java.lang.String"
  47294. abstract="false" native="false" synchronized="true"
  47295. static="true" final="false" visibility="public"
  47296. deprecated="not deprecated">
  47297. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47298. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  47299. <exception name="IOException" type="java.io.IOException"/>
  47300. <doc>
  47301. <![CDATA[Recover the job history filename from the history folder.
  47302. Uses the following pattern
  47303. $jt-hostname_[0-9]*_$job-id_$user_$job-name*
  47304. @param jobConf the job conf
  47305. @param id job id]]>
  47306. </doc>
  47307. </method>
  47308. <method name="recoverJobHistoryFile" return="org.apache.hadoop.fs.Path"
  47309. abstract="false" native="false" synchronized="true"
  47310. static="true" final="false" visibility="public"
  47311. deprecated="not deprecated">
  47312. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47313. <param name="logFilePath" type="org.apache.hadoop.fs.Path"/>
  47314. <exception name="IOException" type="java.io.IOException"/>
  47315. <doc>
  47316. <![CDATA[Selects one of the two files generated as a part of recovery.
  47317. The thumb rule is that always select the oldest file.
  47318. This call makes sure that only one file is left in the end.
  47319. @param conf job conf
  47320. @param logFilePath Path of the log file
  47321. @throws IOException]]>
  47322. </doc>
  47323. </method>
  47324. <method name="logSubmitted"
  47325. abstract="false" native="false" synchronized="false"
  47326. static="true" final="false" visibility="public"
  47327. deprecated="Use
  47328. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.">
  47329. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47330. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47331. <param name="jobConfPath" type="java.lang.String"/>
  47332. <param name="submitTime" type="long"/>
  47333. <exception name="IOException" type="java.io.IOException"/>
  47334. <doc>
  47335. <![CDATA[Log job submitted event to history. Creates a new file in history
  47336. for the job. if history file creation fails, it disables history
  47337. for all other events.
  47338. @param jobId job id assigned by job tracker.
  47339. @param jobConf job conf of the job
  47340. @param jobConfPath path to job conf xml file in HDFS.
  47341. @param submitTime time when job tracker received the job
  47342. @throws IOException
  47343. @deprecated Use
  47344. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.]]>
  47345. </doc>
  47346. </method>
  47347. <method name="logSubmitted"
  47348. abstract="false" native="false" synchronized="false"
  47349. static="true" final="false" visibility="public"
  47350. deprecated="not deprecated">
  47351. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47352. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47353. <param name="jobConfPath" type="java.lang.String"/>
  47354. <param name="submitTime" type="long"/>
  47355. <param name="restarted" type="boolean"/>
  47356. <exception name="IOException" type="java.io.IOException"/>
  47357. </method>
  47358. <method name="logInited"
  47359. abstract="false" native="false" synchronized="false"
  47360. static="true" final="false" visibility="public"
  47361. deprecated="not deprecated">
  47362. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47363. <param name="startTime" type="long"/>
  47364. <param name="totalMaps" type="int"/>
  47365. <param name="totalReduces" type="int"/>
  47366. <doc>
  47367. <![CDATA[Logs launch time of job.
  47368. @param jobId job id, assigned by jobtracker.
  47369. @param startTime start time of job.
  47370. @param totalMaps total maps assigned by jobtracker.
  47371. @param totalReduces total reduces.]]>
  47372. </doc>
  47373. </method>
  47374. <method name="logStarted"
  47375. abstract="false" native="false" synchronized="false"
  47376. static="true" final="false" visibility="public"
  47377. deprecated="Use {@link #logInited(JobID, long, int, int)} and
  47378. {@link #logStarted(JobID)}">
  47379. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47380. <param name="startTime" type="long"/>
  47381. <param name="totalMaps" type="int"/>
  47382. <param name="totalReduces" type="int"/>
  47383. <doc>
  47384. <![CDATA[Logs the job as RUNNING.
  47385. @param jobId job id, assigned by jobtracker.
  47386. @param startTime start time of job.
  47387. @param totalMaps total maps assigned by jobtracker.
  47388. @param totalReduces total reduces.
  47389. @deprecated Use {@link #logInited(JobID, long, int, int)} and
  47390. {@link #logStarted(JobID)}]]>
  47391. </doc>
  47392. </method>
  47393. <method name="logStarted"
  47394. abstract="false" native="false" synchronized="false"
  47395. static="true" final="false" visibility="public"
  47396. deprecated="not deprecated">
  47397. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47398. <doc>
  47399. <![CDATA[Logs job as running
  47400. @param jobId job id, assigned by jobtracker.]]>
  47401. </doc>
  47402. </method>
  47403. <method name="logFinished"
  47404. abstract="false" native="false" synchronized="false"
  47405. static="true" final="false" visibility="public"
  47406. deprecated="not deprecated">
  47407. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47408. <param name="finishTime" type="long"/>
  47409. <param name="finishedMaps" type="int"/>
  47410. <param name="finishedReduces" type="int"/>
  47411. <param name="failedMaps" type="int"/>
  47412. <param name="failedReduces" type="int"/>
  47413. <param name="mapCounters" type="org.apache.hadoop.mapred.Counters"/>
  47414. <param name="reduceCounters" type="org.apache.hadoop.mapred.Counters"/>
  47415. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  47416. <doc>
  47417. <![CDATA[Log job finished. closes the job file in history.
  47418. @param jobId job id, assigned by jobtracker.
  47419. @param finishTime finish time of job in ms.
  47420. @param finishedMaps no of maps successfully finished.
  47421. @param finishedReduces no of reduces finished sucessfully.
  47422. @param failedMaps no of failed map tasks.
  47423. @param failedReduces no of failed reduce tasks.
  47424. @param counters the counters from the job]]>
  47425. </doc>
  47426. </method>
  47427. <method name="logFailed"
  47428. abstract="false" native="false" synchronized="false"
  47429. static="true" final="false" visibility="public"
  47430. deprecated="not deprecated">
  47431. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47432. <param name="timestamp" type="long"/>
  47433. <param name="finishedMaps" type="int"/>
  47434. <param name="finishedReduces" type="int"/>
  47435. <param name="failReason" type="java.lang.String"/>
  47436. <doc>
  47437. <![CDATA[Logs job failed event. Closes the job history log file.
  47438. @param jobid job id
  47439. @param timestamp time when job failure was detected in ms.
  47440. @param finishedMaps no finished map tasks.
  47441. @param finishedReduces no of finished reduce tasks.]]>
  47442. </doc>
  47443. </method>
  47444. <method name="logKilled"
  47445. abstract="false" native="false" synchronized="false"
  47446. static="true" final="false" visibility="public"
  47447. deprecated="not deprecated">
  47448. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47449. <param name="timestamp" type="long"/>
  47450. <param name="finishedMaps" type="int"/>
  47451. <param name="finishedReduces" type="int"/>
  47452. <doc>
  47453. <![CDATA[Logs job killed event. Closes the job history log file.
  47454. @param jobid
  47455. job id
  47456. @param timestamp
  47457. time when job killed was issued in ms.
  47458. @param finishedMaps
  47459. no finished map tasks.
  47460. @param finishedReduces
  47461. no of finished reduce tasks.]]>
  47462. </doc>
  47463. </method>
  47464. <method name="logJobPriority"
  47465. abstract="false" native="false" synchronized="false"
  47466. static="true" final="false" visibility="public"
  47467. deprecated="not deprecated">
  47468. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47469. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  47470. <doc>
  47471. <![CDATA[Log job's priority.
  47472. @param jobid job id
  47473. @param priority Jobs priority]]>
  47474. </doc>
  47475. </method>
  47476. <method name="logJobInfo"
  47477. abstract="false" native="false" synchronized="false"
  47478. static="true" final="false" visibility="public"
  47479. deprecated="Use {@link #logJobInfo(JobID, long, long)} instead.">
  47480. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47481. <param name="submitTime" type="long"/>
  47482. <param name="launchTime" type="long"/>
  47483. <param name="restartCount" type="int"/>
  47484. <doc>
  47485. <![CDATA[Log job's submit-time/launch-time
  47486. @param jobid job id
  47487. @param submitTime job's submit time
  47488. @param launchTime job's launch time
  47489. @param restartCount number of times the job got restarted
  47490. @deprecated Use {@link #logJobInfo(JobID, long, long)} instead.]]>
  47491. </doc>
  47492. </method>
  47493. <method name="logJobInfo"
  47494. abstract="false" native="false" synchronized="false"
  47495. static="true" final="false" visibility="public"
  47496. deprecated="not deprecated">
  47497. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47498. <param name="submitTime" type="long"/>
  47499. <param name="launchTime" type="long"/>
  47500. </method>
  47501. <doc>
  47502. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  47503. </doc>
  47504. </class>
  47505. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  47506. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  47507. <class name="JobHistory.Keys" extends="java.lang.Enum"
  47508. abstract="false"
  47509. static="true" final="true" visibility="public"
  47510. deprecated="not deprecated">
  47511. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  47512. abstract="false" native="false" synchronized="false"
  47513. static="true" final="false" visibility="public"
  47514. deprecated="not deprecated">
  47515. </method>
  47516. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  47517. abstract="false" native="false" synchronized="false"
  47518. static="true" final="false" visibility="public"
  47519. deprecated="not deprecated">
  47520. <param name="name" type="java.lang.String"/>
  47521. </method>
  47522. <field name="JOBTRACKERID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47523. transient="false" volatile="false"
  47524. static="true" final="true" visibility="public"
  47525. deprecated="not deprecated">
  47526. </field>
  47527. <field name="START_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47528. transient="false" volatile="false"
  47529. static="true" final="true" visibility="public"
  47530. deprecated="not deprecated">
  47531. </field>
  47532. <field name="FINISH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47533. transient="false" volatile="false"
  47534. static="true" final="true" visibility="public"
  47535. deprecated="not deprecated">
  47536. </field>
  47537. <field name="JOBID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47538. transient="false" volatile="false"
  47539. static="true" final="true" visibility="public"
  47540. deprecated="not deprecated">
  47541. </field>
  47542. <field name="JOBNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47543. transient="false" volatile="false"
  47544. static="true" final="true" visibility="public"
  47545. deprecated="not deprecated">
  47546. </field>
  47547. <field name="USER" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47548. transient="false" volatile="false"
  47549. static="true" final="true" visibility="public"
  47550. deprecated="not deprecated">
  47551. </field>
  47552. <field name="JOBCONF" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47553. transient="false" volatile="false"
  47554. static="true" final="true" visibility="public"
  47555. deprecated="not deprecated">
  47556. </field>
  47557. <field name="SUBMIT_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47558. transient="false" volatile="false"
  47559. static="true" final="true" visibility="public"
  47560. deprecated="not deprecated">
  47561. </field>
  47562. <field name="LAUNCH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47563. transient="false" volatile="false"
  47564. static="true" final="true" visibility="public"
  47565. deprecated="not deprecated">
  47566. </field>
  47567. <field name="TOTAL_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47568. transient="false" volatile="false"
  47569. static="true" final="true" visibility="public"
  47570. deprecated="not deprecated">
  47571. </field>
  47572. <field name="TOTAL_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47573. transient="false" volatile="false"
  47574. static="true" final="true" visibility="public"
  47575. deprecated="not deprecated">
  47576. </field>
  47577. <field name="FAILED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47578. transient="false" volatile="false"
  47579. static="true" final="true" visibility="public"
  47580. deprecated="not deprecated">
  47581. </field>
  47582. <field name="FAILED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47583. transient="false" volatile="false"
  47584. static="true" final="true" visibility="public"
  47585. deprecated="not deprecated">
  47586. </field>
  47587. <field name="FINISHED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47588. transient="false" volatile="false"
  47589. static="true" final="true" visibility="public"
  47590. deprecated="not deprecated">
  47591. </field>
  47592. <field name="FINISHED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47593. transient="false" volatile="false"
  47594. static="true" final="true" visibility="public"
  47595. deprecated="not deprecated">
  47596. </field>
  47597. <field name="JOB_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47598. transient="false" volatile="false"
  47599. static="true" final="true" visibility="public"
  47600. deprecated="not deprecated">
  47601. </field>
  47602. <field name="TASKID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47603. transient="false" volatile="false"
  47604. static="true" final="true" visibility="public"
  47605. deprecated="not deprecated">
  47606. </field>
  47607. <field name="HOSTNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47608. transient="false" volatile="false"
  47609. static="true" final="true" visibility="public"
  47610. deprecated="not deprecated">
  47611. </field>
  47612. <field name="TASK_TYPE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47613. transient="false" volatile="false"
  47614. static="true" final="true" visibility="public"
  47615. deprecated="not deprecated">
  47616. </field>
  47617. <field name="ERROR" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47618. transient="false" volatile="false"
  47619. static="true" final="true" visibility="public"
  47620. deprecated="not deprecated">
  47621. </field>
  47622. <field name="TASK_ATTEMPT_ID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47623. transient="false" volatile="false"
  47624. static="true" final="true" visibility="public"
  47625. deprecated="not deprecated">
  47626. </field>
  47627. <field name="TASK_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47628. transient="false" volatile="false"
  47629. static="true" final="true" visibility="public"
  47630. deprecated="not deprecated">
  47631. </field>
  47632. <field name="COPY_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47633. transient="false" volatile="false"
  47634. static="true" final="true" visibility="public"
  47635. deprecated="not deprecated">
  47636. </field>
  47637. <field name="SORT_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47638. transient="false" volatile="false"
  47639. static="true" final="true" visibility="public"
  47640. deprecated="not deprecated">
  47641. </field>
  47642. <field name="REDUCE_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47643. transient="false" volatile="false"
  47644. static="true" final="true" visibility="public"
  47645. deprecated="not deprecated">
  47646. </field>
  47647. <field name="SHUFFLE_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47648. transient="false" volatile="false"
  47649. static="true" final="true" visibility="public"
  47650. deprecated="not deprecated">
  47651. </field>
  47652. <field name="SORT_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47653. transient="false" volatile="false"
  47654. static="true" final="true" visibility="public"
  47655. deprecated="not deprecated">
  47656. </field>
  47657. <field name="COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47658. transient="false" volatile="false"
  47659. static="true" final="true" visibility="public"
  47660. deprecated="not deprecated">
  47661. </field>
  47662. <field name="SPLITS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47663. transient="false" volatile="false"
  47664. static="true" final="true" visibility="public"
  47665. deprecated="not deprecated">
  47666. </field>
  47667. <field name="JOB_PRIORITY" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47668. transient="false" volatile="false"
  47669. static="true" final="true" visibility="public"
  47670. deprecated="not deprecated">
  47671. </field>
  47672. <field name="HTTP_PORT" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47673. transient="false" volatile="false"
  47674. static="true" final="true" visibility="public"
  47675. deprecated="not deprecated">
  47676. </field>
  47677. <field name="TRACKER_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47678. transient="false" volatile="false"
  47679. static="true" final="true" visibility="public"
  47680. deprecated="not deprecated">
  47681. </field>
  47682. <field name="STATE_STRING" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47683. transient="false" volatile="false"
  47684. static="true" final="true" visibility="public"
  47685. deprecated="not deprecated">
  47686. </field>
  47687. <field name="VERSION" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47688. transient="false" volatile="false"
  47689. static="true" final="true" visibility="public"
  47690. deprecated="not deprecated">
  47691. </field>
  47692. <field name="MAP_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47693. transient="false" volatile="false"
  47694. static="true" final="true" visibility="public"
  47695. deprecated="not deprecated">
  47696. </field>
  47697. <field name="REDUCE_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47698. transient="false" volatile="false"
  47699. static="true" final="true" visibility="public"
  47700. deprecated="not deprecated">
  47701. </field>
  47702. <field name="VIEW_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47703. transient="false" volatile="false"
  47704. static="true" final="true" visibility="public"
  47705. deprecated="not deprecated">
  47706. </field>
  47707. <field name="MODIFY_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47708. transient="false" volatile="false"
  47709. static="true" final="true" visibility="public"
  47710. deprecated="not deprecated">
  47711. </field>
  47712. <field name="JOB_QUEUE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47713. transient="false" volatile="false"
  47714. static="true" final="true" visibility="public"
  47715. deprecated="not deprecated">
  47716. </field>
  47717. <field name="FAIL_REASON" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47718. transient="false" volatile="false"
  47719. static="true" final="true" visibility="public"
  47720. deprecated="not deprecated">
  47721. </field>
  47722. <doc>
  47723. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  47724. It acts as a global namespace for all keys.]]>
  47725. </doc>
  47726. </class>
  47727. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  47728. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  47729. <interface name="JobHistory.Listener" abstract="true"
  47730. static="true" final="false" visibility="public"
  47731. deprecated="not deprecated">
  47732. <method name="handle"
  47733. abstract="false" native="false" synchronized="false"
  47734. static="false" final="false" visibility="public"
  47735. deprecated="not deprecated">
  47736. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  47737. <param name="values" type="java.util.Map"/>
  47738. <exception name="IOException" type="java.io.IOException"/>
  47739. <doc>
  47740. <![CDATA[Callback method for history parser.
  47741. @param recType type of record, which is the first entry in the line.
  47742. @param values a map of key-value pairs as thry appear in history.
  47743. @throws IOException]]>
  47744. </doc>
  47745. </method>
  47746. <doc>
  47747. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  47748. should be implemented and passed to JobHistory.parseHistory()]]>
  47749. </doc>
  47750. </interface>
  47751. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  47752. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  47753. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  47754. abstract="false"
  47755. static="true" final="false" visibility="public"
  47756. deprecated="not deprecated">
  47757. <constructor name="JobHistory.MapAttempt"
  47758. static="false" final="false" visibility="public"
  47759. deprecated="not deprecated">
  47760. </constructor>
  47761. <method name="logStarted"
  47762. abstract="false" native="false" synchronized="false"
  47763. static="true" final="false" visibility="public"
  47764. deprecated="Use
  47765. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  47766. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47767. <param name="startTime" type="long"/>
  47768. <param name="hostName" type="java.lang.String"/>
  47769. <doc>
  47770. <![CDATA[Log start time of this map task attempt.
  47771. @param taskAttemptId task attempt id
  47772. @param startTime start time of task attempt as reported by task tracker.
  47773. @param hostName host name of the task attempt.
  47774. @deprecated Use
  47775. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  47776. </doc>
  47777. </method>
  47778. <method name="logStarted"
  47779. abstract="false" native="false" synchronized="false"
  47780. static="true" final="false" visibility="public"
  47781. deprecated="not deprecated">
  47782. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47783. <param name="startTime" type="long"/>
  47784. <param name="trackerName" type="java.lang.String"/>
  47785. <param name="httpPort" type="int"/>
  47786. <param name="taskType" type="java.lang.String"/>
  47787. <doc>
  47788. <![CDATA[Log start time of this map task attempt.
  47789. @param taskAttemptId task attempt id
  47790. @param startTime start time of task attempt as reported by task tracker.
  47791. @param trackerName name of the tracker executing the task attempt.
  47792. @param httpPort http port of the task tracker executing the task attempt
  47793. @param taskType Whether the attempt is cleanup or setup or map]]>
  47794. </doc>
  47795. </method>
  47796. <method name="logFinished"
  47797. abstract="false" native="false" synchronized="false"
  47798. static="true" final="false" visibility="public"
  47799. deprecated="Use
  47800. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}">
  47801. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47802. <param name="finishTime" type="long"/>
  47803. <param name="hostName" type="java.lang.String"/>
  47804. <doc>
  47805. <![CDATA[Log finish time of map task attempt.
  47806. @param taskAttemptId task attempt id
  47807. @param finishTime finish time
  47808. @param hostName host name
  47809. @deprecated Use
  47810. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}]]>
  47811. </doc>
  47812. </method>
  47813. <method name="logFinished"
  47814. abstract="false" native="false" synchronized="false"
  47815. static="true" final="false" visibility="public"
  47816. deprecated="not deprecated">
  47817. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47818. <param name="finishTime" type="long"/>
  47819. <param name="hostName" type="java.lang.String"/>
  47820. <param name="taskType" type="java.lang.String"/>
  47821. <param name="stateString" type="java.lang.String"/>
  47822. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  47823. <doc>
  47824. <![CDATA[Log finish time of map task attempt.
  47825. @param taskAttemptId task attempt id
  47826. @param finishTime finish time
  47827. @param hostName host name
  47828. @param taskType Whether the attempt is cleanup or setup or map
  47829. @param stateString state string of the task attempt
  47830. @param counter counters of the task attempt]]>
  47831. </doc>
  47832. </method>
  47833. <method name="logFailed"
  47834. abstract="false" native="false" synchronized="false"
  47835. static="true" final="false" visibility="public"
  47836. deprecated="Use
  47837. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  47838. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47839. <param name="timestamp" type="long"/>
  47840. <param name="hostName" type="java.lang.String"/>
  47841. <param name="error" type="java.lang.String"/>
  47842. <doc>
  47843. <![CDATA[Log task attempt failed event.
  47844. @param taskAttemptId task attempt id
  47845. @param timestamp timestamp
  47846. @param hostName hostname of this task attempt.
  47847. @param error error message if any for this task attempt.
  47848. @deprecated Use
  47849. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  47850. </doc>
  47851. </method>
  47852. <method name="logFailed"
  47853. abstract="false" native="false" synchronized="false"
  47854. static="true" final="false" visibility="public"
  47855. deprecated="not deprecated">
  47856. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47857. <param name="timestamp" type="long"/>
  47858. <param name="hostName" type="java.lang.String"/>
  47859. <param name="error" type="java.lang.String"/>
  47860. <param name="taskType" type="java.lang.String"/>
  47861. <doc>
  47862. <![CDATA[Log task attempt failed event.
  47863. @param taskAttemptId task attempt id
  47864. @param timestamp timestamp
  47865. @param hostName hostname of this task attempt.
  47866. @param error error message if any for this task attempt.
  47867. @param taskType Whether the attempt is cleanup or setup or map]]>
  47868. </doc>
  47869. </method>
  47870. <method name="logKilled"
  47871. abstract="false" native="false" synchronized="false"
  47872. static="true" final="false" visibility="public"
  47873. deprecated="Use
  47874. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  47875. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47876. <param name="timestamp" type="long"/>
  47877. <param name="hostName" type="java.lang.String"/>
  47878. <param name="error" type="java.lang.String"/>
  47879. <doc>
  47880. <![CDATA[Log task attempt killed event.
  47881. @param taskAttemptId task attempt id
  47882. @param timestamp timestamp
  47883. @param hostName hostname of this task attempt.
  47884. @param error error message if any for this task attempt.
  47885. @deprecated Use
  47886. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  47887. </doc>
  47888. </method>
  47889. <method name="logKilled"
  47890. abstract="false" native="false" synchronized="false"
  47891. static="true" final="false" visibility="public"
  47892. deprecated="not deprecated">
  47893. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47894. <param name="timestamp" type="long"/>
  47895. <param name="hostName" type="java.lang.String"/>
  47896. <param name="error" type="java.lang.String"/>
  47897. <param name="taskType" type="java.lang.String"/>
  47898. <doc>
  47899. <![CDATA[Log task attempt killed event.
  47900. @param taskAttemptId task attempt id
  47901. @param timestamp timestamp
  47902. @param hostName hostname of this task attempt.
  47903. @param error error message if any for this task attempt.
  47904. @param taskType Whether the attempt is cleanup or setup or map]]>
  47905. </doc>
  47906. </method>
  47907. <doc>
  47908. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  47909. a Map Attempt on a node.]]>
  47910. </doc>
  47911. </class>
  47912. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  47913. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  47914. <class name="JobHistory.RecordTypes" extends="java.lang.Enum"
  47915. abstract="false"
  47916. static="true" final="true" visibility="public"
  47917. deprecated="not deprecated">
  47918. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  47919. abstract="false" native="false" synchronized="false"
  47920. static="true" final="false" visibility="public"
  47921. deprecated="not deprecated">
  47922. </method>
  47923. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  47924. abstract="false" native="false" synchronized="false"
  47925. static="true" final="false" visibility="public"
  47926. deprecated="not deprecated">
  47927. <param name="name" type="java.lang.String"/>
  47928. </method>
  47929. <field name="Jobtracker" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  47930. transient="false" volatile="false"
  47931. static="true" final="true" visibility="public"
  47932. deprecated="not deprecated">
  47933. </field>
  47934. <field name="Job" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  47935. transient="false" volatile="false"
  47936. static="true" final="true" visibility="public"
  47937. deprecated="not deprecated">
  47938. </field>
  47939. <field name="Task" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  47940. transient="false" volatile="false"
  47941. static="true" final="true" visibility="public"
  47942. deprecated="not deprecated">
  47943. </field>
  47944. <field name="MapAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  47945. transient="false" volatile="false"
  47946. static="true" final="true" visibility="public"
  47947. deprecated="not deprecated">
  47948. </field>
  47949. <field name="ReduceAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  47950. transient="false" volatile="false"
  47951. static="true" final="true" visibility="public"
  47952. deprecated="not deprecated">
  47953. </field>
  47954. <field name="Meta" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  47955. transient="false" volatile="false"
  47956. static="true" final="true" visibility="public"
  47957. deprecated="not deprecated">
  47958. </field>
  47959. <doc>
  47960. <![CDATA[Record types are identifiers for each line of log in history files.
  47961. A record type appears as the first token in a single line of log.]]>
  47962. </doc>
  47963. </class>
  47964. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  47965. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  47966. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  47967. abstract="false"
  47968. static="true" final="false" visibility="public"
  47969. deprecated="not deprecated">
  47970. <constructor name="JobHistory.ReduceAttempt"
  47971. static="false" final="false" visibility="public"
  47972. deprecated="not deprecated">
  47973. </constructor>
  47974. <method name="logStarted"
  47975. abstract="false" native="false" synchronized="false"
  47976. static="true" final="false" visibility="public"
  47977. deprecated="Use
  47978. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  47979. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47980. <param name="startTime" type="long"/>
  47981. <param name="hostName" type="java.lang.String"/>
  47982. <doc>
  47983. <![CDATA[Log start time of Reduce task attempt.
  47984. @param taskAttemptId task attempt id
  47985. @param startTime start time
  47986. @param hostName host name
  47987. @deprecated Use
  47988. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  47989. </doc>
  47990. </method>
  47991. <method name="logStarted"
  47992. abstract="false" native="false" synchronized="false"
  47993. static="true" final="false" visibility="public"
  47994. deprecated="not deprecated">
  47995. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47996. <param name="startTime" type="long"/>
  47997. <param name="trackerName" type="java.lang.String"/>
  47998. <param name="httpPort" type="int"/>
  47999. <param name="taskType" type="java.lang.String"/>
  48000. <doc>
  48001. <![CDATA[Log start time of Reduce task attempt.
  48002. @param taskAttemptId task attempt id
  48003. @param startTime start time
  48004. @param trackerName tracker name
  48005. @param httpPort the http port of the tracker executing the task attempt
  48006. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  48007. </doc>
  48008. </method>
  48009. <method name="logFinished"
  48010. abstract="false" native="false" synchronized="false"
  48011. static="true" final="false" visibility="public"
  48012. deprecated="Use
  48013. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}">
  48014. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48015. <param name="shuffleFinished" type="long"/>
  48016. <param name="sortFinished" type="long"/>
  48017. <param name="finishTime" type="long"/>
  48018. <param name="hostName" type="java.lang.String"/>
  48019. <doc>
  48020. <![CDATA[Log finished event of this task.
  48021. @param taskAttemptId task attempt id
  48022. @param shuffleFinished shuffle finish time
  48023. @param sortFinished sort finish time
  48024. @param finishTime finish time of task
  48025. @param hostName host name where task attempt executed
  48026. @deprecated Use
  48027. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}]]>
  48028. </doc>
  48029. </method>
  48030. <method name="logFinished"
  48031. abstract="false" native="false" synchronized="false"
  48032. static="true" final="false" visibility="public"
  48033. deprecated="not deprecated">
  48034. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48035. <param name="shuffleFinished" type="long"/>
  48036. <param name="sortFinished" type="long"/>
  48037. <param name="finishTime" type="long"/>
  48038. <param name="hostName" type="java.lang.String"/>
  48039. <param name="taskType" type="java.lang.String"/>
  48040. <param name="stateString" type="java.lang.String"/>
  48041. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  48042. <doc>
  48043. <![CDATA[Log finished event of this task.
  48044. @param taskAttemptId task attempt id
  48045. @param shuffleFinished shuffle finish time
  48046. @param sortFinished sort finish time
  48047. @param finishTime finish time of task
  48048. @param hostName host name where task attempt executed
  48049. @param taskType Whether the attempt is cleanup or setup or reduce
  48050. @param stateString the state string of the attempt
  48051. @param counter counters of the attempt]]>
  48052. </doc>
  48053. </method>
  48054. <method name="logFailed"
  48055. abstract="false" native="false" synchronized="false"
  48056. static="true" final="false" visibility="public"
  48057. deprecated="Use
  48058. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  48059. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48060. <param name="timestamp" type="long"/>
  48061. <param name="hostName" type="java.lang.String"/>
  48062. <param name="error" type="java.lang.String"/>
  48063. <doc>
  48064. <![CDATA[Log failed reduce task attempt.
  48065. @param taskAttemptId task attempt id
  48066. @param timestamp time stamp when task failed
  48067. @param hostName host name of the task attempt.
  48068. @param error error message of the task.
  48069. @deprecated Use
  48070. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  48071. </doc>
  48072. </method>
  48073. <method name="logFailed"
  48074. abstract="false" native="false" synchronized="false"
  48075. static="true" final="false" visibility="public"
  48076. deprecated="not deprecated">
  48077. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48078. <param name="timestamp" type="long"/>
  48079. <param name="hostName" type="java.lang.String"/>
  48080. <param name="error" type="java.lang.String"/>
  48081. <param name="taskType" type="java.lang.String"/>
  48082. <doc>
  48083. <![CDATA[Log failed reduce task attempt.
  48084. @param taskAttemptId task attempt id
  48085. @param timestamp time stamp when task failed
  48086. @param hostName host name of the task attempt.
  48087. @param error error message of the task.
  48088. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  48089. </doc>
  48090. </method>
  48091. <method name="logKilled"
  48092. abstract="false" native="false" synchronized="false"
  48093. static="true" final="false" visibility="public"
  48094. deprecated="Use
  48095. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  48096. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48097. <param name="timestamp" type="long"/>
  48098. <param name="hostName" type="java.lang.String"/>
  48099. <param name="error" type="java.lang.String"/>
  48100. <doc>
  48101. <![CDATA[Log killed reduce task attempt.
  48102. @param taskAttemptId task attempt id
  48103. @param timestamp time stamp when task failed
  48104. @param hostName host name of the task attempt.
  48105. @param error error message of the task.
  48106. @deprecated Use
  48107. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  48108. </doc>
  48109. </method>
  48110. <method name="logKilled"
  48111. abstract="false" native="false" synchronized="false"
  48112. static="true" final="false" visibility="public"
  48113. deprecated="not deprecated">
  48114. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48115. <param name="timestamp" type="long"/>
  48116. <param name="hostName" type="java.lang.String"/>
  48117. <param name="error" type="java.lang.String"/>
  48118. <param name="taskType" type="java.lang.String"/>
  48119. <doc>
  48120. <![CDATA[Log killed reduce task attempt.
  48121. @param taskAttemptId task attempt id
  48122. @param timestamp time stamp when task failed
  48123. @param hostName host name of the task attempt.
  48124. @param error error message of the task.
  48125. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  48126. </doc>
  48127. </method>
  48128. <doc>
  48129. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  48130. a Map Attempt on a node.]]>
  48131. </doc>
  48132. </class>
  48133. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  48134. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  48135. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  48136. abstract="false"
  48137. static="true" final="false" visibility="public"
  48138. deprecated="not deprecated">
  48139. <constructor name="JobHistory.Task"
  48140. static="false" final="false" visibility="public"
  48141. deprecated="not deprecated">
  48142. </constructor>
  48143. <method name="logStarted"
  48144. abstract="false" native="false" synchronized="false"
  48145. static="true" final="false" visibility="public"
  48146. deprecated="not deprecated">
  48147. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48148. <param name="taskType" type="java.lang.String"/>
  48149. <param name="startTime" type="long"/>
  48150. <param name="splitLocations" type="java.lang.String"/>
  48151. <doc>
  48152. <![CDATA[Log start time of task (TIP).
  48153. @param taskId task id
  48154. @param taskType MAP or REDUCE
  48155. @param startTime startTime of tip.]]>
  48156. </doc>
  48157. </method>
  48158. <method name="logFinished"
  48159. abstract="false" native="false" synchronized="false"
  48160. static="true" final="false" visibility="public"
  48161. deprecated="not deprecated">
  48162. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48163. <param name="taskType" type="java.lang.String"/>
  48164. <param name="finishTime" type="long"/>
  48165. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  48166. <doc>
  48167. <![CDATA[Log finish time of task.
  48168. @param taskId task id
  48169. @param taskType MAP or REDUCE
  48170. @param finishTime finish timeof task in ms]]>
  48171. </doc>
  48172. </method>
  48173. <method name="logUpdates"
  48174. abstract="false" native="false" synchronized="false"
  48175. static="true" final="false" visibility="public"
  48176. deprecated="not deprecated">
  48177. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48178. <param name="finishTime" type="long"/>
  48179. <doc>
  48180. <![CDATA[Update the finish time of task.
  48181. @param taskId task id
  48182. @param finishTime finish time of task in ms]]>
  48183. </doc>
  48184. </method>
  48185. <method name="logFailed"
  48186. abstract="false" native="false" synchronized="false"
  48187. static="true" final="false" visibility="public"
  48188. deprecated="not deprecated">
  48189. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48190. <param name="taskType" type="java.lang.String"/>
  48191. <param name="time" type="long"/>
  48192. <param name="error" type="java.lang.String"/>
  48193. <doc>
  48194. <![CDATA[Log job failed event.
  48195. @param taskId task id
  48196. @param taskType MAP or REDUCE.
  48197. @param time timestamp when job failed detected.
  48198. @param error error message for failure.]]>
  48199. </doc>
  48200. </method>
  48201. <method name="logFailed"
  48202. abstract="false" native="false" synchronized="false"
  48203. static="true" final="false" visibility="public"
  48204. deprecated="not deprecated">
  48205. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48206. <param name="taskType" type="java.lang.String"/>
  48207. <param name="time" type="long"/>
  48208. <param name="error" type="java.lang.String"/>
  48209. <param name="failedDueToAttempt" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48210. <doc>
  48211. <![CDATA[@param failedDueToAttempt The attempt that caused the failure, if any]]>
  48212. </doc>
  48213. </method>
  48214. <method name="getTaskAttempts" return="java.util.Map"
  48215. abstract="false" native="false" synchronized="false"
  48216. static="false" final="false" visibility="public"
  48217. deprecated="not deprecated">
  48218. <doc>
  48219. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  48220. </doc>
  48221. </method>
  48222. <doc>
  48223. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  48224. All events logged by this class are logged in a separate file per job in
  48225. job tracker history. These events map to TIPs in jobtracker.]]>
  48226. </doc>
  48227. </class>
  48228. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  48229. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  48230. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  48231. abstract="false"
  48232. static="true" final="false" visibility="public"
  48233. deprecated="not deprecated">
  48234. <constructor name="JobHistory.TaskAttempt"
  48235. static="false" final="false" visibility="public"
  48236. deprecated="not deprecated">
  48237. </constructor>
  48238. <doc>
  48239. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  48240. </doc>
  48241. </class>
  48242. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  48243. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  48244. <class name="JobHistory.Values" extends="java.lang.Enum"
  48245. abstract="false"
  48246. static="true" final="true" visibility="public"
  48247. deprecated="not deprecated">
  48248. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  48249. abstract="false" native="false" synchronized="false"
  48250. static="true" final="false" visibility="public"
  48251. deprecated="not deprecated">
  48252. </method>
  48253. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  48254. abstract="false" native="false" synchronized="false"
  48255. static="true" final="false" visibility="public"
  48256. deprecated="not deprecated">
  48257. <param name="name" type="java.lang.String"/>
  48258. </method>
  48259. <field name="SUCCESS" type="org.apache.hadoop.mapred.JobHistory.Values"
  48260. transient="false" volatile="false"
  48261. static="true" final="true" visibility="public"
  48262. deprecated="not deprecated">
  48263. </field>
  48264. <field name="FAILED" type="org.apache.hadoop.mapred.JobHistory.Values"
  48265. transient="false" volatile="false"
  48266. static="true" final="true" visibility="public"
  48267. deprecated="not deprecated">
  48268. </field>
  48269. <field name="KILLED" type="org.apache.hadoop.mapred.JobHistory.Values"
  48270. transient="false" volatile="false"
  48271. static="true" final="true" visibility="public"
  48272. deprecated="not deprecated">
  48273. </field>
  48274. <field name="MAP" type="org.apache.hadoop.mapred.JobHistory.Values"
  48275. transient="false" volatile="false"
  48276. static="true" final="true" visibility="public"
  48277. deprecated="not deprecated">
  48278. </field>
  48279. <field name="REDUCE" type="org.apache.hadoop.mapred.JobHistory.Values"
  48280. transient="false" volatile="false"
  48281. static="true" final="true" visibility="public"
  48282. deprecated="not deprecated">
  48283. </field>
  48284. <field name="CLEANUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  48285. transient="false" volatile="false"
  48286. static="true" final="true" visibility="public"
  48287. deprecated="not deprecated">
  48288. </field>
  48289. <field name="RUNNING" type="org.apache.hadoop.mapred.JobHistory.Values"
  48290. transient="false" volatile="false"
  48291. static="true" final="true" visibility="public"
  48292. deprecated="not deprecated">
  48293. </field>
  48294. <field name="PREP" type="org.apache.hadoop.mapred.JobHistory.Values"
  48295. transient="false" volatile="false"
  48296. static="true" final="true" visibility="public"
  48297. deprecated="not deprecated">
  48298. </field>
  48299. <field name="SETUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  48300. transient="false" volatile="false"
  48301. static="true" final="true" visibility="public"
  48302. deprecated="not deprecated">
  48303. </field>
  48304. <doc>
  48305. <![CDATA[This enum contains some of the values commonly used by history log events.
  48306. since values in history can only be strings - Values.name() is used in
  48307. most places in history file.]]>
  48308. </doc>
  48309. </class>
  48310. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  48311. <!-- start class org.apache.hadoop.mapred.JobHistoryServer -->
  48312. <class name="JobHistoryServer" extends="java.lang.Object"
  48313. abstract="false"
  48314. static="false" final="false" visibility="public"
  48315. deprecated="not deprecated">
  48316. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf"
  48317. static="false" final="false" visibility="public"
  48318. deprecated="not deprecated">
  48319. <exception name="IOException" type="java.io.IOException"/>
  48320. <doc>
  48321. <![CDATA[Starts job history server as a independent process
  48322. * Initializes ACL Manager
  48323. * Starts a webapp to service history requests
  48324. @param conf - Mr Cluster configuration
  48325. @throws IOException - any exception starting history server]]>
  48326. </doc>
  48327. </constructor>
  48328. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.ACLsManager, org.apache.hadoop.http.HttpServer"
  48329. static="false" final="false" visibility="public"
  48330. deprecated="not deprecated">
  48331. <exception name="IOException" type="java.io.IOException"/>
  48332. <doc>
  48333. <![CDATA[Starts job history server as a embedded server within job tracker
  48334. * Starts a webapp to service history requests
  48335. @param conf - MR Cluster configuration
  48336. @param aclsManager - ACLs Manager for user authentication
  48337. @param httpServer - Http Server instance
  48338. @throws IOException - any exception starting history server]]>
  48339. </doc>
  48340. </constructor>
  48341. <method name="start"
  48342. abstract="false" native="false" synchronized="false"
  48343. static="false" final="false" visibility="public"
  48344. deprecated="not deprecated">
  48345. <exception name="IOException" type="java.io.IOException"/>
  48346. </method>
  48347. <method name="join"
  48348. abstract="false" native="false" synchronized="false"
  48349. static="false" final="false" visibility="public"
  48350. deprecated="not deprecated">
  48351. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48352. </method>
  48353. <method name="shutdown"
  48354. abstract="false" native="false" synchronized="false"
  48355. static="false" final="false" visibility="public"
  48356. deprecated="not deprecated">
  48357. <exception name="Exception" type="java.lang.Exception"/>
  48358. <doc>
  48359. <![CDATA[Shutsdown the history server if already initialized
  48360. @throws Exception - Any exception during shutdown]]>
  48361. </doc>
  48362. </method>
  48363. <method name="main"
  48364. abstract="false" native="false" synchronized="false"
  48365. static="true" final="false" visibility="public"
  48366. deprecated="not deprecated">
  48367. <param name="args" type="java.lang.String[]"/>
  48368. <doc>
  48369. <![CDATA[Start job history server as an independent process
  48370. @param args - Command line arguments]]>
  48371. </doc>
  48372. </method>
  48373. <field name="MAPRED_HISTORY_SERVER_HTTP_ADDRESS" type="java.lang.String"
  48374. transient="false" volatile="false"
  48375. static="true" final="true" visibility="public"
  48376. deprecated="not deprecated">
  48377. </field>
  48378. <field name="MAPRED_HISTORY_SERVER_EMBEDDED" type="java.lang.String"
  48379. transient="false" volatile="false"
  48380. static="true" final="true" visibility="public"
  48381. deprecated="not deprecated">
  48382. </field>
  48383. <doc>
  48384. <![CDATA[{@link JobHistoryServer} is responsible for servicing all job history
  48385. related requests from client.
  48386. History Server can be initialized in one of two modes
  48387. * Emdedded within {@link JobTracker}
  48388. * External daemon, can either be run on the job tracker node or outside
  48389. Two {@link Configuration} entries in mapred-site.xml govern the functioning
  48390. of the history server
  48391. mapred.job.history.server.http.address is address to which history web
  48392. server is bound to. If operating in embedded mode, the hostname on
  48393. history address has to be same as the job tracker host name
  48394. mapred.job.history.server.embedded (default is true) will cause job tracker
  48395. to init history server, else the server need to be started as a
  48396. separate daemon process]]>
  48397. </doc>
  48398. </class>
  48399. <!-- end class org.apache.hadoop.mapred.JobHistoryServer -->
  48400. <!-- start class org.apache.hadoop.mapred.JobID -->
  48401. <class name="JobID" extends="org.apache.hadoop.mapreduce.JobID"
  48402. abstract="false"
  48403. static="false" final="false" visibility="public"
  48404. deprecated="not deprecated">
  48405. <constructor name="JobID" type="java.lang.String, int"
  48406. static="false" final="false" visibility="public"
  48407. deprecated="not deprecated">
  48408. <doc>
  48409. <![CDATA[Constructs a JobID object
  48410. @param jtIdentifier jobTracker identifier
  48411. @param id job number]]>
  48412. </doc>
  48413. </constructor>
  48414. <constructor name="JobID"
  48415. static="false" final="false" visibility="public"
  48416. deprecated="not deprecated">
  48417. </constructor>
  48418. <method name="downgrade" return="org.apache.hadoop.mapred.JobID"
  48419. abstract="false" native="false" synchronized="false"
  48420. static="true" final="false" visibility="public"
  48421. deprecated="not deprecated">
  48422. <param name="old" type="org.apache.hadoop.mapreduce.JobID"/>
  48423. <doc>
  48424. <![CDATA[Downgrade a new JobID to an old one
  48425. @param old a new or old JobID
  48426. @return either old or a new JobID build to match old]]>
  48427. </doc>
  48428. </method>
  48429. <method name="read" return="org.apache.hadoop.mapred.JobID"
  48430. abstract="false" native="false" synchronized="false"
  48431. static="true" final="false" visibility="public"
  48432. deprecated="not deprecated">
  48433. <param name="in" type="java.io.DataInput"/>
  48434. <exception name="IOException" type="java.io.IOException"/>
  48435. </method>
  48436. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  48437. abstract="false" native="false" synchronized="false"
  48438. static="true" final="false" visibility="public"
  48439. deprecated="not deprecated">
  48440. <param name="str" type="java.lang.String"/>
  48441. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  48442. <doc>
  48443. <![CDATA[Construct a JobId object from given string
  48444. @return constructed JobId object or null if the given String is null
  48445. @throws IllegalArgumentException if the given string is malformed]]>
  48446. </doc>
  48447. </method>
  48448. <method name="getJobIDsPattern" return="java.lang.String"
  48449. abstract="false" native="false" synchronized="false"
  48450. static="true" final="false" visibility="public"
  48451. deprecated="not deprecated">
  48452. <param name="jtIdentifier" type="java.lang.String"/>
  48453. <param name="jobId" type="java.lang.Integer"/>
  48454. <doc>
  48455. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  48456. be given null, in which case that part of the regex will be generic.
  48457. For example to obtain a regex matching <i>any job</i>
  48458. run on the jobtracker started at <i>200707121733</i>, we would use :
  48459. <pre>
  48460. JobID.getTaskIDsPattern("200707121733", null);
  48461. </pre>
  48462. which will return :
  48463. <pre> "job_200707121733_[0-9]*" </pre>
  48464. @param jtIdentifier jobTracker identifier, or null
  48465. @param jobId job number, or null
  48466. @return a regex pattern matching JobIDs]]>
  48467. </doc>
  48468. </method>
  48469. <doc>
  48470. <![CDATA[JobID represents the immutable and unique identifier for
  48471. the job. JobID consists of two parts. First part
  48472. represents the jobtracker identifier, so that jobID to jobtracker map
  48473. is defined. For cluster setup this string is the jobtracker
  48474. start time, for local setting, it is "local".
  48475. Second part of the JobID is the job number. <br>
  48476. An example JobID is :
  48477. <code>job_200707121733_0003</code> , which represents the third job
  48478. running at the jobtracker started at <code>200707121733</code>.
  48479. <p>
  48480. Applications should never construct or parse JobID strings, but rather
  48481. use appropriate constructors or {@link #forName(String)} method.
  48482. @see TaskID
  48483. @see TaskAttemptID]]>
  48484. </doc>
  48485. </class>
  48486. <!-- end class org.apache.hadoop.mapred.JobID -->
  48487. <!-- start class org.apache.hadoop.mapred.JobInProgress -->
  48488. <class name="JobInProgress" extends="java.lang.Object"
  48489. abstract="false"
  48490. static="false" final="false" visibility="public"
  48491. deprecated="not deprecated">
  48492. <constructor name="JobInProgress" type="org.apache.hadoop.mapred.JobID, org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.JobTracker"
  48493. static="false" final="false" visibility="protected"
  48494. deprecated="not deprecated">
  48495. <exception name="IOException" type="java.io.IOException"/>
  48496. <doc>
  48497. <![CDATA[Create an almost empty JobInProgress, which can be used only for tests]]>
  48498. </doc>
  48499. </constructor>
  48500. <method name="getQueueMetrics" return="org.apache.hadoop.mapred.QueueMetrics"
  48501. abstract="false" native="false" synchronized="false"
  48502. static="false" final="false" visibility="public"
  48503. deprecated="not deprecated">
  48504. <doc>
  48505. <![CDATA[Get the QueueMetrics object associated with this job
  48506. @return QueueMetrics]]>
  48507. </doc>
  48508. </method>
  48509. <method name="cleanUpMetrics"
  48510. abstract="false" native="false" synchronized="false"
  48511. static="false" final="false" visibility="public"
  48512. deprecated="not deprecated">
  48513. <doc>
  48514. <![CDATA[Called when the job is complete]]>
  48515. </doc>
  48516. </method>
  48517. <method name="inited" return="boolean"
  48518. abstract="false" native="false" synchronized="false"
  48519. static="false" final="false" visibility="public"
  48520. deprecated="not deprecated">
  48521. <doc>
  48522. <![CDATA[Check if the job has been initialized.
  48523. @return <code>true</code> if the job has been initialized,
  48524. <code>false</code> otherwise]]>
  48525. </doc>
  48526. </method>
  48527. <method name="getUser" return="java.lang.String"
  48528. abstract="false" native="false" synchronized="false"
  48529. static="false" final="false" visibility="public"
  48530. deprecated="not deprecated">
  48531. <doc>
  48532. <![CDATA[Get the user for the job]]>
  48533. </doc>
  48534. </method>
  48535. <method name="initTasks"
  48536. abstract="false" native="false" synchronized="true"
  48537. static="false" final="false" visibility="public"
  48538. deprecated="not deprecated">
  48539. <exception name="IOException" type="java.io.IOException"/>
  48540. <exception name="JobInProgress.KillInterruptedException" type="org.apache.hadoop.mapred.JobInProgress.KillInterruptedException"/>
  48541. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  48542. <doc>
  48543. <![CDATA[Construct the splits, etc. This is invoked from an async
  48544. thread so that split-computation doesn't block anyone.]]>
  48545. </doc>
  48546. </method>
  48547. <method name="getProfile" return="org.apache.hadoop.mapred.JobProfile"
  48548. abstract="false" native="false" synchronized="false"
  48549. static="false" final="false" visibility="public"
  48550. deprecated="not deprecated">
  48551. </method>
  48552. <method name="getStatus" return="org.apache.hadoop.mapred.JobStatus"
  48553. abstract="false" native="false" synchronized="false"
  48554. static="false" final="false" visibility="public"
  48555. deprecated="not deprecated">
  48556. </method>
  48557. <method name="getLaunchTime" return="long"
  48558. abstract="false" native="false" synchronized="true"
  48559. static="false" final="false" visibility="public"
  48560. deprecated="not deprecated">
  48561. </method>
  48562. <method name="getStartTime" return="long"
  48563. abstract="false" native="false" synchronized="false"
  48564. static="false" final="false" visibility="public"
  48565. deprecated="not deprecated">
  48566. </method>
  48567. <method name="getFinishTime" return="long"
  48568. abstract="false" native="false" synchronized="false"
  48569. static="false" final="false" visibility="public"
  48570. deprecated="not deprecated">
  48571. </method>
  48572. <method name="desiredMaps" return="int"
  48573. abstract="false" native="false" synchronized="false"
  48574. static="false" final="false" visibility="public"
  48575. deprecated="not deprecated">
  48576. </method>
  48577. <method name="finishedMaps" return="int"
  48578. abstract="false" native="false" synchronized="true"
  48579. static="false" final="false" visibility="public"
  48580. deprecated="not deprecated">
  48581. </method>
  48582. <method name="desiredReduces" return="int"
  48583. abstract="false" native="false" synchronized="false"
  48584. static="false" final="false" visibility="public"
  48585. deprecated="not deprecated">
  48586. </method>
  48587. <method name="runningMaps" return="int"
  48588. abstract="false" native="false" synchronized="true"
  48589. static="false" final="false" visibility="public"
  48590. deprecated="not deprecated">
  48591. </method>
  48592. <method name="runningReduces" return="int"
  48593. abstract="false" native="false" synchronized="true"
  48594. static="false" final="false" visibility="public"
  48595. deprecated="not deprecated">
  48596. </method>
  48597. <method name="finishedReduces" return="int"
  48598. abstract="false" native="false" synchronized="true"
  48599. static="false" final="false" visibility="public"
  48600. deprecated="not deprecated">
  48601. </method>
  48602. <method name="pendingMaps" return="int"
  48603. abstract="false" native="false" synchronized="true"
  48604. static="false" final="false" visibility="public"
  48605. deprecated="not deprecated">
  48606. </method>
  48607. <method name="pendingReduces" return="int"
  48608. abstract="false" native="false" synchronized="true"
  48609. static="false" final="false" visibility="public"
  48610. deprecated="not deprecated">
  48611. </method>
  48612. <method name="desiredTasks" return="int"
  48613. abstract="false" native="false" synchronized="false"
  48614. static="false" final="false" visibility="public"
  48615. deprecated="not deprecated">
  48616. <doc>
  48617. <![CDATA[Return total number of map and reduce tasks desired by the job.
  48618. @return total number of map and reduce tasks desired by the job]]>
  48619. </doc>
  48620. </method>
  48621. <method name="getNumSlotsPerTask" return="int"
  48622. abstract="false" native="false" synchronized="false"
  48623. static="false" final="false" visibility="public"
  48624. deprecated="not deprecated">
  48625. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  48626. </method>
  48627. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  48628. abstract="false" native="false" synchronized="false"
  48629. static="false" final="false" visibility="public"
  48630. deprecated="not deprecated">
  48631. </method>
  48632. <method name="setPriority"
  48633. abstract="false" native="false" synchronized="false"
  48634. static="false" final="false" visibility="public"
  48635. deprecated="not deprecated">
  48636. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  48637. </method>
  48638. <method name="reportTasksInProgress" return="java.util.Vector"
  48639. abstract="false" native="false" synchronized="true"
  48640. static="false" final="false" visibility="public"
  48641. deprecated="not deprecated">
  48642. <param name="shouldBeMap" type="boolean"/>
  48643. <param name="shouldBeComplete" type="boolean"/>
  48644. <doc>
  48645. <![CDATA[Return a vector of completed TaskInProgress objects]]>
  48646. </doc>
  48647. </method>
  48648. <method name="reportCleanupTIPs" return="java.util.Vector"
  48649. abstract="false" native="false" synchronized="true"
  48650. static="false" final="false" visibility="public"
  48651. deprecated="not deprecated">
  48652. <param name="shouldBeComplete" type="boolean"/>
  48653. <doc>
  48654. <![CDATA[Return a vector of cleanup TaskInProgress objects]]>
  48655. </doc>
  48656. </method>
  48657. <method name="reportSetupTIPs" return="java.util.Vector"
  48658. abstract="false" native="false" synchronized="true"
  48659. static="false" final="false" visibility="public"
  48660. deprecated="not deprecated">
  48661. <param name="shouldBeComplete" type="boolean"/>
  48662. <doc>
  48663. <![CDATA[Return a vector of setup TaskInProgress objects]]>
  48664. </doc>
  48665. </method>
  48666. <method name="updateTaskStatus"
  48667. abstract="false" native="false" synchronized="true"
  48668. static="false" final="false" visibility="public"
  48669. deprecated="not deprecated">
  48670. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  48671. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  48672. <doc>
  48673. <![CDATA[Assuming {@link JobTracker} is locked on entry.]]>
  48674. </doc>
  48675. </method>
  48676. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  48677. abstract="false" native="false" synchronized="true"
  48678. static="false" final="false" visibility="public"
  48679. deprecated="not deprecated">
  48680. <doc>
  48681. <![CDATA[Returns the job-level counters.
  48682. @return the job-level counters.]]>
  48683. </doc>
  48684. </method>
  48685. <method name="getMapCounters" return="boolean"
  48686. abstract="false" native="false" synchronized="true"
  48687. static="false" final="false" visibility="public"
  48688. deprecated="not deprecated">
  48689. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  48690. <doc>
  48691. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  48692. This method returns true if counters are within limit or false.]]>
  48693. </doc>
  48694. </method>
  48695. <method name="getReduceCounters" return="boolean"
  48696. abstract="false" native="false" synchronized="true"
  48697. static="false" final="false" visibility="public"
  48698. deprecated="not deprecated">
  48699. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  48700. <doc>
  48701. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  48702. This method returns true if counters are within limits and false otherwise.]]>
  48703. </doc>
  48704. </method>
  48705. <method name="getCounters" return="boolean"
  48706. abstract="false" native="false" synchronized="true"
  48707. static="false" final="false" visibility="public"
  48708. deprecated="not deprecated">
  48709. <param name="result" type="org.apache.hadoop.mapred.Counters"/>
  48710. <doc>
  48711. <![CDATA[Returns the total job counters, by adding together the job,
  48712. the map and the reduce counters. This method returns true if
  48713. counters are within limits and false otherwise.]]>
  48714. </doc>
  48715. </method>
  48716. <method name="obtainNewMapTask" return="org.apache.hadoop.mapred.Task"
  48717. abstract="false" native="false" synchronized="true"
  48718. static="false" final="false" visibility="public"
  48719. deprecated="not deprecated">
  48720. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48721. <param name="clusterSize" type="int"/>
  48722. <param name="numUniqueHosts" type="int"/>
  48723. <exception name="IOException" type="java.io.IOException"/>
  48724. <doc>
  48725. <![CDATA[Return a MapTask, if appropriate, to run on the given tasktracker]]>
  48726. </doc>
  48727. </method>
  48728. <method name="obtainTaskCleanupTask" return="org.apache.hadoop.mapred.Task"
  48729. abstract="false" native="false" synchronized="false"
  48730. static="false" final="false" visibility="public"
  48731. deprecated="not deprecated">
  48732. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48733. <param name="isMapSlot" type="boolean"/>
  48734. <exception name="IOException" type="java.io.IOException"/>
  48735. </method>
  48736. <method name="obtainNewNodeLocalMapTask" return="org.apache.hadoop.mapred.Task"
  48737. abstract="false" native="false" synchronized="true"
  48738. static="false" final="false" visibility="public"
  48739. deprecated="not deprecated">
  48740. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48741. <param name="clusterSize" type="int"/>
  48742. <param name="numUniqueHosts" type="int"/>
  48743. <exception name="IOException" type="java.io.IOException"/>
  48744. </method>
  48745. <method name="obtainNewNodeOrRackLocalMapTask" return="org.apache.hadoop.mapred.Task"
  48746. abstract="false" native="false" synchronized="true"
  48747. static="false" final="false" visibility="public"
  48748. deprecated="not deprecated">
  48749. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48750. <param name="clusterSize" type="int"/>
  48751. <param name="numUniqueHosts" type="int"/>
  48752. <exception name="IOException" type="java.io.IOException"/>
  48753. </method>
  48754. <method name="obtainNewNonLocalMapTask" return="org.apache.hadoop.mapred.Task"
  48755. abstract="false" native="false" synchronized="true"
  48756. static="false" final="false" visibility="public"
  48757. deprecated="not deprecated">
  48758. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48759. <param name="clusterSize" type="int"/>
  48760. <param name="numUniqueHosts" type="int"/>
  48761. <exception name="IOException" type="java.io.IOException"/>
  48762. </method>
  48763. <method name="schedulingOpportunity"
  48764. abstract="false" native="false" synchronized="false"
  48765. static="false" final="false" visibility="public"
  48766. deprecated="not deprecated">
  48767. </method>
  48768. <method name="resetSchedulingOpportunities"
  48769. abstract="false" native="false" synchronized="false"
  48770. static="false" final="false" visibility="public"
  48771. deprecated="not deprecated">
  48772. </method>
  48773. <method name="getNumSchedulingOpportunities" return="long"
  48774. abstract="false" native="false" synchronized="false"
  48775. static="false" final="false" visibility="public"
  48776. deprecated="not deprecated">
  48777. </method>
  48778. <method name="overrideSchedulingOpportunities"
  48779. abstract="false" native="false" synchronized="false"
  48780. static="false" final="false" visibility="public"
  48781. deprecated="not deprecated">
  48782. </method>
  48783. <method name="scheduleOffSwitch" return="boolean"
  48784. abstract="false" native="false" synchronized="false"
  48785. static="false" final="false" visibility="public"
  48786. deprecated="not deprecated">
  48787. <param name="numTaskTrackers" type="int"/>
  48788. <doc>
  48789. <![CDATA[Check if we can schedule an off-switch task for this job.
  48790. @param numTaskTrackers number of tasktrackers
  48791. @return <code>true</code> if we can schedule off-switch,
  48792. <code>false</code> otherwise
  48793. We check the number of missed opportunities for the job.
  48794. If it has 'waited' long enough we go ahead and schedule.]]>
  48795. </doc>
  48796. </method>
  48797. <method name="obtainJobCleanupTask" return="org.apache.hadoop.mapred.Task"
  48798. abstract="false" native="false" synchronized="false"
  48799. static="false" final="false" visibility="public"
  48800. deprecated="not deprecated">
  48801. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48802. <param name="clusterSize" type="int"/>
  48803. <param name="numUniqueHosts" type="int"/>
  48804. <param name="isMapSlot" type="boolean"/>
  48805. <exception name="IOException" type="java.io.IOException"/>
  48806. <doc>
  48807. <![CDATA[Return a CleanupTask, if appropriate, to run on the given tasktracker]]>
  48808. </doc>
  48809. </method>
  48810. <method name="obtainJobSetupTask" return="org.apache.hadoop.mapred.Task"
  48811. abstract="false" native="false" synchronized="false"
  48812. static="false" final="false" visibility="public"
  48813. deprecated="not deprecated">
  48814. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48815. <param name="clusterSize" type="int"/>
  48816. <param name="numUniqueHosts" type="int"/>
  48817. <param name="isMapSlot" type="boolean"/>
  48818. <exception name="IOException" type="java.io.IOException"/>
  48819. <doc>
  48820. <![CDATA[Return a SetupTask, if appropriate, to run on the given tasktracker]]>
  48821. </doc>
  48822. </method>
  48823. <method name="scheduleReduces" return="boolean"
  48824. abstract="false" native="false" synchronized="true"
  48825. static="false" final="false" visibility="public"
  48826. deprecated="not deprecated">
  48827. </method>
  48828. <method name="obtainNewReduceTask" return="org.apache.hadoop.mapred.Task"
  48829. abstract="false" native="false" synchronized="true"
  48830. static="false" final="false" visibility="public"
  48831. deprecated="not deprecated">
  48832. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48833. <param name="clusterSize" type="int"/>
  48834. <param name="numUniqueHosts" type="int"/>
  48835. <exception name="IOException" type="java.io.IOException"/>
  48836. <doc>
  48837. <![CDATA[Return a ReduceTask, if appropriate, to run on the given tasktracker.
  48838. We don't have cache-sensitivity for reduce tasks, as they
  48839. work on temporary MapRed files.]]>
  48840. </doc>
  48841. </method>
  48842. <method name="reserveTaskTracker"
  48843. abstract="false" native="false" synchronized="true"
  48844. static="false" final="false" visibility="public"
  48845. deprecated="not deprecated">
  48846. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  48847. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  48848. <param name="numSlots" type="int"/>
  48849. </method>
  48850. <method name="unreserveTaskTracker"
  48851. abstract="false" native="false" synchronized="true"
  48852. static="false" final="false" visibility="public"
  48853. deprecated="not deprecated">
  48854. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  48855. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  48856. </method>
  48857. <method name="getNumReservedTaskTrackersForMaps" return="int"
  48858. abstract="false" native="false" synchronized="false"
  48859. static="false" final="false" visibility="public"
  48860. deprecated="not deprecated">
  48861. </method>
  48862. <method name="getNumReservedTaskTrackersForReduces" return="int"
  48863. abstract="false" native="false" synchronized="false"
  48864. static="false" final="false" visibility="public"
  48865. deprecated="not deprecated">
  48866. </method>
  48867. <method name="scheduleMap"
  48868. abstract="false" native="false" synchronized="true"
  48869. static="false" final="false" visibility="protected"
  48870. deprecated="not deprecated">
  48871. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  48872. <doc>
  48873. <![CDATA[Adds a map tip to the list of running maps.
  48874. @param tip the tip that needs to be scheduled as running]]>
  48875. </doc>
  48876. </method>
  48877. <method name="scheduleReduce"
  48878. abstract="false" native="false" synchronized="true"
  48879. static="false" final="false" visibility="protected"
  48880. deprecated="not deprecated">
  48881. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  48882. <doc>
  48883. <![CDATA[Adds a reduce tip to the list of running reduces
  48884. @param tip the tip that needs to be scheduled as running]]>
  48885. </doc>
  48886. </method>
  48887. <method name="findSpeculativeTask" return="org.apache.hadoop.mapred.TaskInProgress"
  48888. abstract="false" native="false" synchronized="true"
  48889. static="false" final="false" visibility="protected"
  48890. deprecated="not deprecated">
  48891. <param name="list" type="java.util.Collection"/>
  48892. <param name="ttStatus" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48893. <param name="avgProgress" type="double"/>
  48894. <param name="currentTime" type="long"/>
  48895. <param name="shouldRemove" type="boolean"/>
  48896. <doc>
  48897. <![CDATA[Find a speculative task
  48898. @param list a list of tips
  48899. @param ttStatus status of the tracker that has requested a tip
  48900. @param avgProgress the average progress for speculation
  48901. @param currentTime current time in milliseconds
  48902. @param shouldRemove whether to remove the tips
  48903. @return a tip that can be speculated on the tracker]]>
  48904. </doc>
  48905. </method>
  48906. <method name="completedTask" return="boolean"
  48907. abstract="false" native="false" synchronized="true"
  48908. static="false" final="false" visibility="public"
  48909. deprecated="not deprecated">
  48910. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  48911. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  48912. <doc>
  48913. <![CDATA[A taskid assigned to this JobInProgress has reported in successfully.]]>
  48914. </doc>
  48915. </method>
  48916. <method name="kill"
  48917. abstract="false" native="false" synchronized="false"
  48918. static="false" final="false" visibility="public"
  48919. deprecated="not deprecated">
  48920. <doc>
  48921. <![CDATA[Kill the job and all its component tasks. This method should be called from
  48922. jobtracker and should return fast as it locks the jobtracker.]]>
  48923. </doc>
  48924. </method>
  48925. <method name="failedTask"
  48926. abstract="false" native="false" synchronized="false"
  48927. static="false" final="false" visibility="public"
  48928. deprecated="not deprecated">
  48929. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  48930. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48931. <param name="reason" type="java.lang.String"/>
  48932. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  48933. <param name="state" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  48934. <param name="trackerName" type="java.lang.String"/>
  48935. <doc>
  48936. <![CDATA[Fail a task with a given reason, but without a status object.
  48937. Assuming {@link JobTracker} is locked on entry.
  48938. @param tip The task's tip
  48939. @param taskid The task id
  48940. @param reason The reason that the task failed
  48941. @param trackerName The task tracker the task failed on]]>
  48942. </doc>
  48943. </method>
  48944. <method name="getTaskInProgress" return="org.apache.hadoop.mapred.TaskInProgress"
  48945. abstract="false" native="false" synchronized="true"
  48946. static="false" final="false" visibility="public"
  48947. deprecated="not deprecated">
  48948. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  48949. <doc>
  48950. <![CDATA[Return the TaskInProgress that matches the tipid.]]>
  48951. </doc>
  48952. </method>
  48953. <method name="findFinishedMap" return="org.apache.hadoop.mapred.TaskStatus"
  48954. abstract="false" native="false" synchronized="true"
  48955. static="false" final="false" visibility="public"
  48956. deprecated="not deprecated">
  48957. <param name="mapId" type="int"/>
  48958. <doc>
  48959. <![CDATA[Find the details of someplace where a map has finished
  48960. @param mapId the id of the map
  48961. @return the task status of the completed task]]>
  48962. </doc>
  48963. </method>
  48964. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  48965. abstract="false" native="false" synchronized="true"
  48966. static="false" final="false" visibility="public"
  48967. deprecated="not deprecated">
  48968. <param name="fromEventId" type="int"/>
  48969. <param name="maxEvents" type="int"/>
  48970. </method>
  48971. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  48972. abstract="false" native="false" synchronized="false"
  48973. static="false" final="false" visibility="public"
  48974. deprecated="not deprecated">
  48975. <doc>
  48976. <![CDATA[@return The JobID of this JobInProgress.]]>
  48977. </doc>
  48978. </method>
  48979. <method name="getJobSubmitHostName" return="java.lang.String"
  48980. abstract="false" native="false" synchronized="false"
  48981. static="false" final="false" visibility="public"
  48982. deprecated="not deprecated">
  48983. <doc>
  48984. <![CDATA[@return submitHostName of this JobInProgress.]]>
  48985. </doc>
  48986. </method>
  48987. <method name="getJobSubmitHostAddress" return="java.lang.String"
  48988. abstract="false" native="false" synchronized="false"
  48989. static="false" final="false" visibility="public"
  48990. deprecated="not deprecated">
  48991. <doc>
  48992. <![CDATA[@return submitHostAddress of this JobInProgress.]]>
  48993. </doc>
  48994. </method>
  48995. <method name="getSchedulingInfo" return="java.lang.Object"
  48996. abstract="false" native="false" synchronized="true"
  48997. static="false" final="false" visibility="public"
  48998. deprecated="not deprecated">
  48999. </method>
  49000. <method name="setSchedulingInfo"
  49001. abstract="false" native="false" synchronized="true"
  49002. static="false" final="false" visibility="public"
  49003. deprecated="not deprecated">
  49004. <param name="schedulingInfo" type="java.lang.Object"/>
  49005. </method>
  49006. <field name="tokenStorage" type="org.apache.hadoop.security.Credentials"
  49007. transient="false" volatile="false"
  49008. static="false" final="false" visibility="protected"
  49009. deprecated="not deprecated">
  49010. </field>
  49011. <doc>
  49012. <![CDATA[JobInProgress maintains all the info for keeping
  49013. a Job on the straight and narrow. It keeps its JobProfile
  49014. and its latest JobStatus, plus a set of tables for
  49015. doing bookkeeping of its Tasks.
  49016. ***********************************************************]]>
  49017. </doc>
  49018. </class>
  49019. <!-- end class org.apache.hadoop.mapred.JobInProgress -->
  49020. <!-- start class org.apache.hadoop.mapred.JobInProgress.Counter -->
  49021. <class name="JobInProgress.Counter" extends="java.lang.Enum"
  49022. abstract="false"
  49023. static="true" final="true" visibility="public"
  49024. deprecated="not deprecated">
  49025. <method name="values" return="org.apache.hadoop.mapred.JobInProgress.Counter[]"
  49026. abstract="false" native="false" synchronized="false"
  49027. static="true" final="false" visibility="public"
  49028. deprecated="not deprecated">
  49029. </method>
  49030. <method name="valueOf" return="org.apache.hadoop.mapred.JobInProgress.Counter"
  49031. abstract="false" native="false" synchronized="false"
  49032. static="true" final="false" visibility="public"
  49033. deprecated="not deprecated">
  49034. <param name="name" type="java.lang.String"/>
  49035. </method>
  49036. <field name="NUM_FAILED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49037. transient="false" volatile="false"
  49038. static="true" final="true" visibility="public"
  49039. deprecated="not deprecated">
  49040. </field>
  49041. <field name="NUM_FAILED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49042. transient="false" volatile="false"
  49043. static="true" final="true" visibility="public"
  49044. deprecated="not deprecated">
  49045. </field>
  49046. <field name="TOTAL_LAUNCHED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49047. transient="false" volatile="false"
  49048. static="true" final="true" visibility="public"
  49049. deprecated="not deprecated">
  49050. </field>
  49051. <field name="TOTAL_LAUNCHED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49052. transient="false" volatile="false"
  49053. static="true" final="true" visibility="public"
  49054. deprecated="not deprecated">
  49055. </field>
  49056. <field name="OTHER_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49057. transient="false" volatile="false"
  49058. static="true" final="true" visibility="public"
  49059. deprecated="not deprecated">
  49060. </field>
  49061. <field name="DATA_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49062. transient="false" volatile="false"
  49063. static="true" final="true" visibility="public"
  49064. deprecated="not deprecated">
  49065. </field>
  49066. <field name="RACK_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49067. transient="false" volatile="false"
  49068. static="true" final="true" visibility="public"
  49069. deprecated="not deprecated">
  49070. </field>
  49071. <field name="SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49072. transient="false" volatile="false"
  49073. static="true" final="true" visibility="public"
  49074. deprecated="not deprecated">
  49075. </field>
  49076. <field name="SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49077. transient="false" volatile="false"
  49078. static="true" final="true" visibility="public"
  49079. deprecated="not deprecated">
  49080. </field>
  49081. <field name="FALLOW_SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49082. transient="false" volatile="false"
  49083. static="true" final="true" visibility="public"
  49084. deprecated="not deprecated">
  49085. </field>
  49086. <field name="FALLOW_SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49087. transient="false" volatile="false"
  49088. static="true" final="true" visibility="public"
  49089. deprecated="not deprecated">
  49090. </field>
  49091. </class>
  49092. <!-- end class org.apache.hadoop.mapred.JobInProgress.Counter -->
  49093. <!-- start class org.apache.hadoop.mapred.JobLocalizer -->
  49094. <class name="JobLocalizer" extends="java.lang.Object"
  49095. abstract="false"
  49096. static="false" final="false" visibility="public"
  49097. deprecated="not deprecated">
  49098. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String"
  49099. static="false" final="false" visibility="public"
  49100. deprecated="not deprecated">
  49101. <exception name="IOException" type="java.io.IOException"/>
  49102. </constructor>
  49103. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String, java.lang.String[]"
  49104. static="false" final="false" visibility="public"
  49105. deprecated="not deprecated">
  49106. <exception name="IOException" type="java.io.IOException"/>
  49107. </constructor>
  49108. <method name="createLocalDirs"
  49109. abstract="false" native="false" synchronized="false"
  49110. static="false" final="false" visibility="public"
  49111. deprecated="not deprecated">
  49112. <exception name="IOException" type="java.io.IOException"/>
  49113. </method>
  49114. <method name="createUserDirs"
  49115. abstract="false" native="false" synchronized="false"
  49116. static="false" final="false" visibility="public"
  49117. deprecated="not deprecated">
  49118. <exception name="IOException" type="java.io.IOException"/>
  49119. <doc>
  49120. <![CDATA[Initialize the local directories for a particular user on this TT. This
  49121. involves creation and setting permissions of the following directories
  49122. <ul>
  49123. <li>$mapred.local.dir/taskTracker/$user</li>
  49124. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  49125. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  49126. </ul>]]>
  49127. </doc>
  49128. </method>
  49129. <method name="createJobDirs"
  49130. abstract="false" native="false" synchronized="false"
  49131. static="false" final="false" visibility="public"
  49132. deprecated="not deprecated">
  49133. <exception name="IOException" type="java.io.IOException"/>
  49134. <doc>
  49135. <![CDATA[Prepare the job directories for a given job. To be called by the job
  49136. localization code, only if the job is not already localized.
  49137. <br>
  49138. Here, we set 700 permissions on the job directories created on all disks.
  49139. This we do so as to avoid any misuse by other users till the time
  49140. {@link TaskController#initializeJob} is run at a
  49141. later time to set proper private permissions on the job directories. <br>]]>
  49142. </doc>
  49143. </method>
  49144. <method name="initializeJobLogDir"
  49145. abstract="false" native="false" synchronized="false"
  49146. static="false" final="false" visibility="public"
  49147. deprecated="not deprecated">
  49148. <exception name="IOException" type="java.io.IOException"/>
  49149. <doc>
  49150. <![CDATA[Create job log directory and set appropriate permissions for the directory.]]>
  49151. </doc>
  49152. </method>
  49153. <method name="downloadPrivateCache" return="long[]"
  49154. abstract="false" native="false" synchronized="false"
  49155. static="true" final="false" visibility="public"
  49156. deprecated="not deprecated">
  49157. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  49158. <exception name="IOException" type="java.io.IOException"/>
  49159. <doc>
  49160. <![CDATA[Download the parts of the distributed cache that are private.
  49161. @param conf the job's configuration
  49162. @throws IOException
  49163. @return the size of the archive objects]]>
  49164. </doc>
  49165. </method>
  49166. <method name="localizeJobFiles"
  49167. abstract="false" native="false" synchronized="false"
  49168. static="false" final="false" visibility="public"
  49169. deprecated="not deprecated">
  49170. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  49171. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  49172. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  49173. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  49174. <exception name="IOException" type="java.io.IOException"/>
  49175. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49176. </method>
  49177. <method name="localizeJobFiles"
  49178. abstract="false" native="false" synchronized="false"
  49179. static="false" final="false" visibility="public"
  49180. deprecated="not deprecated">
  49181. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  49182. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  49183. <param name="localJobFile" type="org.apache.hadoop.fs.Path"/>
  49184. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  49185. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  49186. <exception name="IOException" type="java.io.IOException"/>
  49187. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49188. </method>
  49189. <method name="createWorkDir"
  49190. abstract="false" native="false" synchronized="false"
  49191. static="false" final="false" visibility="public"
  49192. deprecated="not deprecated">
  49193. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  49194. <exception name="IOException" type="java.io.IOException"/>
  49195. </method>
  49196. <method name="findCredentials" return="org.apache.hadoop.fs.Path"
  49197. abstract="false" native="false" synchronized="false"
  49198. static="false" final="false" visibility="public"
  49199. deprecated="not deprecated">
  49200. <exception name="IOException" type="java.io.IOException"/>
  49201. </method>
  49202. <method name="runSetup" return="int"
  49203. abstract="false" native="false" synchronized="false"
  49204. static="false" final="false" visibility="public"
  49205. deprecated="not deprecated">
  49206. <param name="user" type="java.lang.String"/>
  49207. <param name="jobid" type="java.lang.String"/>
  49208. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  49209. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  49210. <exception name="IOException" type="java.io.IOException"/>
  49211. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49212. </method>
  49213. <method name="main"
  49214. abstract="false" native="false" synchronized="false"
  49215. static="true" final="false" visibility="public"
  49216. deprecated="not deprecated">
  49217. <param name="argv" type="java.lang.String[]"/>
  49218. <exception name="IOException" type="java.io.IOException"/>
  49219. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49220. </method>
  49221. <method name="writeLocalJobFile"
  49222. abstract="false" native="false" synchronized="false"
  49223. static="true" final="false" visibility="public"
  49224. deprecated="not deprecated">
  49225. <param name="jobFile" type="org.apache.hadoop.fs.Path"/>
  49226. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49227. <exception name="IOException" type="java.io.IOException"/>
  49228. <doc>
  49229. <![CDATA[Write the task specific job-configuration file.
  49230. @throws IOException]]>
  49231. </doc>
  49232. </method>
  49233. <doc>
  49234. <![CDATA[Internal class responsible for initializing the job, not intended for users.
  49235. Creates the following hierarchy:
  49236. <li>$mapred.local.dir/taskTracker/$user</li>
  49237. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  49238. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/work</li>
  49239. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars</li>
  49240. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars/job.jar</li>
  49241. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/job.xml</li>
  49242. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jobToken</li>
  49243. <li>$mapred.local.dir/taskTracker/$user/distcache</li>]]>
  49244. </doc>
  49245. </class>
  49246. <!-- end class org.apache.hadoop.mapred.JobLocalizer -->
  49247. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  49248. <class name="JobPriority" extends="java.lang.Enum"
  49249. abstract="false"
  49250. static="false" final="true" visibility="public"
  49251. deprecated="not deprecated">
  49252. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  49253. abstract="false" native="false" synchronized="false"
  49254. static="true" final="false" visibility="public"
  49255. deprecated="not deprecated">
  49256. </method>
  49257. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  49258. abstract="false" native="false" synchronized="false"
  49259. static="true" final="false" visibility="public"
  49260. deprecated="not deprecated">
  49261. <param name="name" type="java.lang.String"/>
  49262. </method>
  49263. <field name="VERY_HIGH" type="org.apache.hadoop.mapred.JobPriority"
  49264. transient="false" volatile="false"
  49265. static="true" final="true" visibility="public"
  49266. deprecated="not deprecated">
  49267. </field>
  49268. <field name="HIGH" type="org.apache.hadoop.mapred.JobPriority"
  49269. transient="false" volatile="false"
  49270. static="true" final="true" visibility="public"
  49271. deprecated="not deprecated">
  49272. </field>
  49273. <field name="NORMAL" type="org.apache.hadoop.mapred.JobPriority"
  49274. transient="false" volatile="false"
  49275. static="true" final="true" visibility="public"
  49276. deprecated="not deprecated">
  49277. </field>
  49278. <field name="LOW" type="org.apache.hadoop.mapred.JobPriority"
  49279. transient="false" volatile="false"
  49280. static="true" final="true" visibility="public"
  49281. deprecated="not deprecated">
  49282. </field>
  49283. <field name="VERY_LOW" type="org.apache.hadoop.mapred.JobPriority"
  49284. transient="false" volatile="false"
  49285. static="true" final="true" visibility="public"
  49286. deprecated="not deprecated">
  49287. </field>
  49288. <doc>
  49289. <![CDATA[Used to describe the priority of the running job.]]>
  49290. </doc>
  49291. </class>
  49292. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  49293. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  49294. <class name="JobProfile" extends="java.lang.Object"
  49295. abstract="false"
  49296. static="false" final="false" visibility="public"
  49297. deprecated="not deprecated">
  49298. <implements name="org.apache.hadoop.io.Writable"/>
  49299. <constructor name="JobProfile"
  49300. static="false" final="false" visibility="public"
  49301. deprecated="not deprecated">
  49302. <doc>
  49303. <![CDATA[Construct an empty {@link JobProfile}.]]>
  49304. </doc>
  49305. </constructor>
  49306. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String"
  49307. static="false" final="false" visibility="public"
  49308. deprecated="not deprecated">
  49309. <doc>
  49310. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  49311. job config-file, job-details url and job name.
  49312. @param user userid of the person who submitted the job.
  49313. @param jobid id of the job.
  49314. @param jobFile job configuration file.
  49315. @param url link to the web-ui for details of the job.
  49316. @param name user-specified job name.]]>
  49317. </doc>
  49318. </constructor>
  49319. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  49320. static="false" final="false" visibility="public"
  49321. deprecated="not deprecated">
  49322. <doc>
  49323. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  49324. job config-file, job-details url and job name.
  49325. @param user userid of the person who submitted the job.
  49326. @param jobid id of the job.
  49327. @param jobFile job configuration file.
  49328. @param url link to the web-ui for details of the job.
  49329. @param name user-specified job name.
  49330. @param queueName name of the queue to which the job is submitted]]>
  49331. </doc>
  49332. </constructor>
  49333. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  49334. static="false" final="false" visibility="public"
  49335. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  49336. <doc>
  49337. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  49338. </doc>
  49339. </constructor>
  49340. <method name="getUser" return="java.lang.String"
  49341. abstract="false" native="false" synchronized="false"
  49342. static="false" final="false" visibility="public"
  49343. deprecated="not deprecated">
  49344. <doc>
  49345. <![CDATA[Get the user id.]]>
  49346. </doc>
  49347. </method>
  49348. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  49349. abstract="false" native="false" synchronized="false"
  49350. static="false" final="false" visibility="public"
  49351. deprecated="not deprecated">
  49352. <doc>
  49353. <![CDATA[Get the job id.]]>
  49354. </doc>
  49355. </method>
  49356. <method name="getJobId" return="java.lang.String"
  49357. abstract="false" native="false" synchronized="false"
  49358. static="false" final="false" visibility="public"
  49359. deprecated="use getJobID() instead">
  49360. <doc>
  49361. <![CDATA[@deprecated use getJobID() instead]]>
  49362. </doc>
  49363. </method>
  49364. <method name="getJobFile" return="java.lang.String"
  49365. abstract="false" native="false" synchronized="false"
  49366. static="false" final="false" visibility="public"
  49367. deprecated="not deprecated">
  49368. <doc>
  49369. <![CDATA[Get the configuration file for the job.]]>
  49370. </doc>
  49371. </method>
  49372. <method name="getURL" return="java.net.URL"
  49373. abstract="false" native="false" synchronized="false"
  49374. static="false" final="false" visibility="public"
  49375. deprecated="not deprecated">
  49376. <doc>
  49377. <![CDATA[Get the link to the web-ui for details of the job.]]>
  49378. </doc>
  49379. </method>
  49380. <method name="getJobName" return="java.lang.String"
  49381. abstract="false" native="false" synchronized="false"
  49382. static="false" final="false" visibility="public"
  49383. deprecated="not deprecated">
  49384. <doc>
  49385. <![CDATA[Get the user-specified job name.]]>
  49386. </doc>
  49387. </method>
  49388. <method name="getQueueName" return="java.lang.String"
  49389. abstract="false" native="false" synchronized="false"
  49390. static="false" final="false" visibility="public"
  49391. deprecated="not deprecated">
  49392. <doc>
  49393. <![CDATA[Get the name of the queue to which the job is submitted.
  49394. @return name of the queue.]]>
  49395. </doc>
  49396. </method>
  49397. <method name="write"
  49398. abstract="false" native="false" synchronized="false"
  49399. static="false" final="false" visibility="public"
  49400. deprecated="not deprecated">
  49401. <param name="out" type="java.io.DataOutput"/>
  49402. <exception name="IOException" type="java.io.IOException"/>
  49403. </method>
  49404. <method name="readFields"
  49405. abstract="false" native="false" synchronized="false"
  49406. static="false" final="false" visibility="public"
  49407. deprecated="not deprecated">
  49408. <param name="in" type="java.io.DataInput"/>
  49409. <exception name="IOException" type="java.io.IOException"/>
  49410. </method>
  49411. <doc>
  49412. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  49413. whether living or dead.]]>
  49414. </doc>
  49415. </class>
  49416. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  49417. <!-- start class org.apache.hadoop.mapred.JobQueueInfo -->
  49418. <class name="JobQueueInfo" extends="java.lang.Object"
  49419. abstract="false"
  49420. static="false" final="false" visibility="public"
  49421. deprecated="not deprecated">
  49422. <implements name="org.apache.hadoop.io.Writable"/>
  49423. <constructor name="JobQueueInfo"
  49424. static="false" final="false" visibility="public"
  49425. deprecated="not deprecated">
  49426. </constructor>
  49427. <constructor name="JobQueueInfo" type="java.lang.String, java.lang.String"
  49428. static="false" final="false" visibility="public"
  49429. deprecated="not deprecated">
  49430. <doc>
  49431. <![CDATA[Construct a new JobQueueInfo object using the queue name and the
  49432. scheduling information passed.
  49433. @param queueName Name of the job queue
  49434. @param schedulingInfo Scheduling Information associated with the job
  49435. queue]]>
  49436. </doc>
  49437. </constructor>
  49438. <method name="setQueueName"
  49439. abstract="false" native="false" synchronized="false"
  49440. static="false" final="false" visibility="public"
  49441. deprecated="not deprecated">
  49442. <param name="queueName" type="java.lang.String"/>
  49443. <doc>
  49444. <![CDATA[Set the queue name of the JobQueueInfo
  49445. @param queueName Name of the job queue.]]>
  49446. </doc>
  49447. </method>
  49448. <method name="getQueueName" return="java.lang.String"
  49449. abstract="false" native="false" synchronized="false"
  49450. static="false" final="false" visibility="public"
  49451. deprecated="not deprecated">
  49452. <doc>
  49453. <![CDATA[Get the queue name from JobQueueInfo
  49454. @return queue name]]>
  49455. </doc>
  49456. </method>
  49457. <method name="setSchedulingInfo"
  49458. abstract="false" native="false" synchronized="false"
  49459. static="false" final="false" visibility="public"
  49460. deprecated="not deprecated">
  49461. <param name="schedulingInfo" type="java.lang.String"/>
  49462. <doc>
  49463. <![CDATA[Set the scheduling information associated to particular job queue
  49464. @param schedulingInfo]]>
  49465. </doc>
  49466. </method>
  49467. <method name="getSchedulingInfo" return="java.lang.String"
  49468. abstract="false" native="false" synchronized="false"
  49469. static="false" final="false" visibility="public"
  49470. deprecated="not deprecated">
  49471. <doc>
  49472. <![CDATA[Gets the scheduling information associated to particular job queue.
  49473. If nothing is set would return <b>"N/A"</b>
  49474. @return Scheduling information associated to particular Job Queue]]>
  49475. </doc>
  49476. </method>
  49477. <method name="setQueueState"
  49478. abstract="false" native="false" synchronized="false"
  49479. static="false" final="false" visibility="public"
  49480. deprecated="not deprecated">
  49481. <param name="state" type="java.lang.String"/>
  49482. <doc>
  49483. <![CDATA[Set the state of the queue
  49484. @param state state of the queue.]]>
  49485. </doc>
  49486. </method>
  49487. <method name="getQueueState" return="java.lang.String"
  49488. abstract="false" native="false" synchronized="false"
  49489. static="false" final="false" visibility="public"
  49490. deprecated="not deprecated">
  49491. <doc>
  49492. <![CDATA[Return the queue state
  49493. @return the queue state.]]>
  49494. </doc>
  49495. </method>
  49496. <method name="readFields"
  49497. abstract="false" native="false" synchronized="false"
  49498. static="false" final="false" visibility="public"
  49499. deprecated="not deprecated">
  49500. <param name="in" type="java.io.DataInput"/>
  49501. <exception name="IOException" type="java.io.IOException"/>
  49502. </method>
  49503. <method name="write"
  49504. abstract="false" native="false" synchronized="false"
  49505. static="false" final="false" visibility="public"
  49506. deprecated="not deprecated">
  49507. <param name="out" type="java.io.DataOutput"/>
  49508. <exception name="IOException" type="java.io.IOException"/>
  49509. </method>
  49510. <doc>
  49511. <![CDATA[Class that contains the information regarding the Job Queues which are
  49512. maintained by the Hadoop Map/Reduce framework.]]>
  49513. </doc>
  49514. </class>
  49515. <!-- end class org.apache.hadoop.mapred.JobQueueInfo -->
  49516. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  49517. <class name="JobStatus" extends="java.lang.Object"
  49518. abstract="false"
  49519. static="false" final="false" visibility="public"
  49520. deprecated="not deprecated">
  49521. <implements name="org.apache.hadoop.io.Writable"/>
  49522. <implements name="java.lang.Cloneable"/>
  49523. <constructor name="JobStatus"
  49524. static="false" final="false" visibility="public"
  49525. deprecated="not deprecated">
  49526. </constructor>
  49527. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int"
  49528. static="false" final="false" visibility="public"
  49529. deprecated="not deprecated">
  49530. <doc>
  49531. <![CDATA[Create a job status object for a given jobid.
  49532. @param jobid The jobid of the job
  49533. @param mapProgress The progress made on the maps
  49534. @param reduceProgress The progress made on the reduces
  49535. @param cleanupProgress The progress made on cleanup
  49536. @param runState The current state of the job]]>
  49537. </doc>
  49538. </constructor>
  49539. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  49540. static="false" final="false" visibility="public"
  49541. deprecated="not deprecated">
  49542. <doc>
  49543. <![CDATA[Create a job status object for a given jobid.
  49544. @param jobid The jobid of the job
  49545. @param mapProgress The progress made on the maps
  49546. @param reduceProgress The progress made on the reduces
  49547. @param runState The current state of the job]]>
  49548. </doc>
  49549. </constructor>
  49550. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  49551. static="false" final="false" visibility="public"
  49552. deprecated="not deprecated">
  49553. <doc>
  49554. <![CDATA[Create a job status object for a given jobid.
  49555. @param jobid The jobid of the job
  49556. @param mapProgress The progress made on the maps
  49557. @param reduceProgress The progress made on the reduces
  49558. @param runState The current state of the job
  49559. @param jp Priority of the job.]]>
  49560. </doc>
  49561. </constructor>
  49562. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  49563. static="false" final="false" visibility="public"
  49564. deprecated="not deprecated">
  49565. <doc>
  49566. <![CDATA[Create a job status object for a given jobid.
  49567. @param jobid The jobid of the job
  49568. @param setupProgress The progress made on the setup
  49569. @param mapProgress The progress made on the maps
  49570. @param reduceProgress The progress made on the reduces
  49571. @param cleanupProgress The progress made on the cleanup
  49572. @param runState The current state of the job
  49573. @param jp Priority of the job.]]>
  49574. </doc>
  49575. </constructor>
  49576. <method name="getJobRunState" return="java.lang.String"
  49577. abstract="false" native="false" synchronized="false"
  49578. static="true" final="false" visibility="public"
  49579. deprecated="not deprecated">
  49580. <param name="state" type="int"/>
  49581. <doc>
  49582. <![CDATA[Helper method to get human-readable state of the job.
  49583. @param state job state
  49584. @return human-readable state of the job]]>
  49585. </doc>
  49586. </method>
  49587. <method name="getJobId" return="java.lang.String"
  49588. abstract="false" native="false" synchronized="false"
  49589. static="false" final="false" visibility="public"
  49590. deprecated="use getJobID instead">
  49591. <doc>
  49592. <![CDATA[@deprecated use getJobID instead]]>
  49593. </doc>
  49594. </method>
  49595. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  49596. abstract="false" native="false" synchronized="false"
  49597. static="false" final="false" visibility="public"
  49598. deprecated="not deprecated">
  49599. <doc>
  49600. <![CDATA[@return The jobid of the Job]]>
  49601. </doc>
  49602. </method>
  49603. <method name="mapProgress" return="float"
  49604. abstract="false" native="false" synchronized="true"
  49605. static="false" final="false" visibility="public"
  49606. deprecated="not deprecated">
  49607. <doc>
  49608. <![CDATA[@return Percentage of progress in maps]]>
  49609. </doc>
  49610. </method>
  49611. <method name="setJobACLs"
  49612. abstract="false" native="false" synchronized="true"
  49613. static="false" final="false" visibility="protected"
  49614. deprecated="not deprecated">
  49615. <param name="acls" type="java.util.Map"/>
  49616. <doc>
  49617. <![CDATA[Set the job acls
  49618. @param acls {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  49619. </doc>
  49620. </method>
  49621. <method name="cleanupProgress" return="float"
  49622. abstract="false" native="false" synchronized="true"
  49623. static="false" final="false" visibility="public"
  49624. deprecated="not deprecated">
  49625. <doc>
  49626. <![CDATA[@return Percentage of progress in cleanup]]>
  49627. </doc>
  49628. </method>
  49629. <method name="setupProgress" return="float"
  49630. abstract="false" native="false" synchronized="true"
  49631. static="false" final="false" visibility="public"
  49632. deprecated="not deprecated">
  49633. <doc>
  49634. <![CDATA[@return Percentage of progress in setup]]>
  49635. </doc>
  49636. </method>
  49637. <method name="reduceProgress" return="float"
  49638. abstract="false" native="false" synchronized="true"
  49639. static="false" final="false" visibility="public"
  49640. deprecated="not deprecated">
  49641. <doc>
  49642. <![CDATA[@return Percentage of progress in reduce]]>
  49643. </doc>
  49644. </method>
  49645. <method name="getRunState" return="int"
  49646. abstract="false" native="false" synchronized="true"
  49647. static="false" final="false" visibility="public"
  49648. deprecated="not deprecated">
  49649. <doc>
  49650. <![CDATA[@return running state of the job]]>
  49651. </doc>
  49652. </method>
  49653. <method name="setRunState"
  49654. abstract="false" native="false" synchronized="true"
  49655. static="false" final="false" visibility="public"
  49656. deprecated="not deprecated">
  49657. <param name="state" type="int"/>
  49658. <doc>
  49659. <![CDATA[Change the current run state of the job.]]>
  49660. </doc>
  49661. </method>
  49662. <method name="getStartTime" return="long"
  49663. abstract="false" native="false" synchronized="true"
  49664. static="false" final="false" visibility="public"
  49665. deprecated="not deprecated">
  49666. <doc>
  49667. <![CDATA[@return start time of the job]]>
  49668. </doc>
  49669. </method>
  49670. <method name="clone" return="java.lang.Object"
  49671. abstract="false" native="false" synchronized="false"
  49672. static="false" final="false" visibility="public"
  49673. deprecated="not deprecated">
  49674. </method>
  49675. <method name="getUsername" return="java.lang.String"
  49676. abstract="false" native="false" synchronized="true"
  49677. static="false" final="false" visibility="public"
  49678. deprecated="not deprecated">
  49679. <doc>
  49680. <![CDATA[@return the username of the job]]>
  49681. </doc>
  49682. </method>
  49683. <method name="getSchedulingInfo" return="java.lang.String"
  49684. abstract="false" native="false" synchronized="true"
  49685. static="false" final="false" visibility="public"
  49686. deprecated="not deprecated">
  49687. <doc>
  49688. <![CDATA[Gets the Scheduling information associated to a particular Job.
  49689. @return the scheduling information of the job]]>
  49690. </doc>
  49691. </method>
  49692. <method name="getFailureInfo" return="java.lang.String"
  49693. abstract="false" native="false" synchronized="true"
  49694. static="false" final="false" visibility="public"
  49695. deprecated="not deprecated">
  49696. <doc>
  49697. <![CDATA[gets any available info on the reason of failure of the job.
  49698. @return diagnostic information on why a job might have failed.]]>
  49699. </doc>
  49700. </method>
  49701. <method name="setFailureInfo"
  49702. abstract="false" native="false" synchronized="true"
  49703. static="false" final="false" visibility="public"
  49704. deprecated="not deprecated">
  49705. <param name="failureInfo" type="java.lang.String"/>
  49706. <doc>
  49707. <![CDATA[set the reason for failuire of this job
  49708. @param failureInfo the reason for failure of this job.]]>
  49709. </doc>
  49710. </method>
  49711. <method name="setSchedulingInfo"
  49712. abstract="false" native="false" synchronized="true"
  49713. static="false" final="false" visibility="public"
  49714. deprecated="not deprecated">
  49715. <param name="schedulingInfo" type="java.lang.String"/>
  49716. <doc>
  49717. <![CDATA[Used to set the scheduling information associated to a particular Job.
  49718. @param schedulingInfo Scheduling information of the job]]>
  49719. </doc>
  49720. </method>
  49721. <method name="getJobACLs" return="java.util.Map"
  49722. abstract="false" native="false" synchronized="true"
  49723. static="false" final="false" visibility="public"
  49724. deprecated="not deprecated">
  49725. <doc>
  49726. <![CDATA[Get the acls for Job.
  49727. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  49728. </doc>
  49729. </method>
  49730. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  49731. abstract="false" native="false" synchronized="true"
  49732. static="false" final="false" visibility="public"
  49733. deprecated="not deprecated">
  49734. <doc>
  49735. <![CDATA[Return the priority of the job
  49736. @return job priority]]>
  49737. </doc>
  49738. </method>
  49739. <method name="setJobPriority"
  49740. abstract="false" native="false" synchronized="true"
  49741. static="false" final="false" visibility="public"
  49742. deprecated="not deprecated">
  49743. <param name="jp" type="org.apache.hadoop.mapred.JobPriority"/>
  49744. <doc>
  49745. <![CDATA[Set the priority of the job, defaulting to NORMAL.
  49746. @param jp new job priority]]>
  49747. </doc>
  49748. </method>
  49749. <method name="isJobComplete" return="boolean"
  49750. abstract="false" native="false" synchronized="true"
  49751. static="false" final="false" visibility="public"
  49752. deprecated="not deprecated">
  49753. <doc>
  49754. <![CDATA[Returns true if the status is for a completed job.]]>
  49755. </doc>
  49756. </method>
  49757. <method name="write"
  49758. abstract="false" native="false" synchronized="true"
  49759. static="false" final="false" visibility="public"
  49760. deprecated="not deprecated">
  49761. <param name="out" type="java.io.DataOutput"/>
  49762. <exception name="IOException" type="java.io.IOException"/>
  49763. </method>
  49764. <method name="readFields"
  49765. abstract="false" native="false" synchronized="true"
  49766. static="false" final="false" visibility="public"
  49767. deprecated="not deprecated">
  49768. <param name="in" type="java.io.DataInput"/>
  49769. <exception name="IOException" type="java.io.IOException"/>
  49770. </method>
  49771. <field name="RUNNING" type="int"
  49772. transient="false" volatile="false"
  49773. static="true" final="true" visibility="public"
  49774. deprecated="not deprecated">
  49775. </field>
  49776. <field name="SUCCEEDED" type="int"
  49777. transient="false" volatile="false"
  49778. static="true" final="true" visibility="public"
  49779. deprecated="not deprecated">
  49780. </field>
  49781. <field name="FAILED" type="int"
  49782. transient="false" volatile="false"
  49783. static="true" final="true" visibility="public"
  49784. deprecated="not deprecated">
  49785. </field>
  49786. <field name="PREP" type="int"
  49787. transient="false" volatile="false"
  49788. static="true" final="true" visibility="public"
  49789. deprecated="not deprecated">
  49790. </field>
  49791. <field name="KILLED" type="int"
  49792. transient="false" volatile="false"
  49793. static="true" final="true" visibility="public"
  49794. deprecated="not deprecated">
  49795. </field>
  49796. <doc>
  49797. <![CDATA[Describes the current status of a job.
  49798. @see JobProfile for some more information.]]>
  49799. </doc>
  49800. </class>
  49801. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  49802. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  49803. <class name="JobTracker" extends="java.lang.Object"
  49804. abstract="false"
  49805. static="false" final="false" visibility="public"
  49806. deprecated="not deprecated">
  49807. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  49808. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  49809. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  49810. <implements name="org.apache.hadoop.mapred.TaskTrackerManager"/>
  49811. <implements name="org.apache.hadoop.security.RefreshUserMappingsProtocol"/>
  49812. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  49813. <implements name="org.apache.hadoop.mapred.AdminOperationsProtocol"/>
  49814. <implements name="org.apache.hadoop.mapred.JobTrackerMXBean"/>
  49815. <method name="getClock" return="org.apache.hadoop.mapred.Clock"
  49816. abstract="false" native="false" synchronized="false"
  49817. static="false" final="false" visibility="public"
  49818. deprecated="not deprecated">
  49819. </method>
  49820. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  49821. abstract="false" native="false" synchronized="false"
  49822. static="true" final="false" visibility="public"
  49823. deprecated="not deprecated">
  49824. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49825. <exception name="IOException" type="java.io.IOException"/>
  49826. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49827. <doc>
  49828. <![CDATA[Start the JobTracker with given configuration.
  49829. The conf will be modified to reflect the actual ports on which
  49830. the JobTracker is up and running if the user passes the port as
  49831. <code>zero</code>.
  49832. @param conf configuration for the JobTracker.
  49833. @throws IOException]]>
  49834. </doc>
  49835. </method>
  49836. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  49837. abstract="false" native="false" synchronized="false"
  49838. static="true" final="false" visibility="public"
  49839. deprecated="not deprecated">
  49840. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49841. <param name="identifier" type="java.lang.String"/>
  49842. <exception name="IOException" type="java.io.IOException"/>
  49843. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49844. </method>
  49845. <method name="stopTracker"
  49846. abstract="false" native="false" synchronized="false"
  49847. static="false" final="false" visibility="public"
  49848. deprecated="not deprecated">
  49849. <exception name="IOException" type="java.io.IOException"/>
  49850. </method>
  49851. <method name="getProtocolVersion" return="long"
  49852. abstract="false" native="false" synchronized="false"
  49853. static="false" final="false" visibility="public"
  49854. deprecated="not deprecated">
  49855. <param name="protocol" type="java.lang.String"/>
  49856. <param name="clientVersion" type="long"/>
  49857. <exception name="IOException" type="java.io.IOException"/>
  49858. </method>
  49859. <method name="getDelegationTokenSecretManager" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager"
  49860. abstract="false" native="false" synchronized="false"
  49861. static="false" final="false" visibility="public"
  49862. deprecated="not deprecated">
  49863. </method>
  49864. <method name="hasRestarted" return="boolean"
  49865. abstract="false" native="false" synchronized="false"
  49866. static="false" final="false" visibility="public"
  49867. deprecated="not deprecated">
  49868. <doc>
  49869. <![CDATA[Whether the JT has restarted]]>
  49870. </doc>
  49871. </method>
  49872. <method name="hasRecovered" return="boolean"
  49873. abstract="false" native="false" synchronized="false"
  49874. static="false" final="false" visibility="public"
  49875. deprecated="not deprecated">
  49876. <doc>
  49877. <![CDATA[Whether the JT has recovered upon restart]]>
  49878. </doc>
  49879. </method>
  49880. <method name="getRecoveryDuration" return="long"
  49881. abstract="false" native="false" synchronized="false"
  49882. static="false" final="false" visibility="public"
  49883. deprecated="not deprecated">
  49884. <doc>
  49885. <![CDATA[How long the jobtracker took to recover from restart.]]>
  49886. </doc>
  49887. </method>
  49888. <method name="getAddress" return="java.net.InetSocketAddress"
  49889. abstract="false" native="false" synchronized="false"
  49890. static="true" final="false" visibility="public"
  49891. deprecated="not deprecated">
  49892. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  49893. </method>
  49894. <method name="offerService"
  49895. abstract="false" native="false" synchronized="false"
  49896. static="false" final="false" visibility="public"
  49897. deprecated="not deprecated">
  49898. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49899. <exception name="IOException" type="java.io.IOException"/>
  49900. <doc>
  49901. <![CDATA[Run forever]]>
  49902. </doc>
  49903. </method>
  49904. <method name="getTotalSubmissions" return="int"
  49905. abstract="false" native="false" synchronized="false"
  49906. static="false" final="false" visibility="public"
  49907. deprecated="not deprecated">
  49908. </method>
  49909. <method name="getJobTrackerMachine" return="java.lang.String"
  49910. abstract="false" native="false" synchronized="false"
  49911. static="false" final="false" visibility="public"
  49912. deprecated="not deprecated">
  49913. </method>
  49914. <method name="getTrackerIdentifier" return="java.lang.String"
  49915. abstract="false" native="false" synchronized="false"
  49916. static="false" final="false" visibility="public"
  49917. deprecated="not deprecated">
  49918. <doc>
  49919. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  49920. @return a string with a unique identifier]]>
  49921. </doc>
  49922. </method>
  49923. <method name="getTrackerPort" return="int"
  49924. abstract="false" native="false" synchronized="false"
  49925. static="false" final="false" visibility="public"
  49926. deprecated="not deprecated">
  49927. </method>
  49928. <method name="getInfoPort" return="int"
  49929. abstract="false" native="false" synchronized="false"
  49930. static="false" final="false" visibility="public"
  49931. deprecated="not deprecated">
  49932. </method>
  49933. <method name="getStartTime" return="long"
  49934. abstract="false" native="false" synchronized="false"
  49935. static="false" final="false" visibility="public"
  49936. deprecated="not deprecated">
  49937. </method>
  49938. <method name="runningJobs" return="java.util.Vector"
  49939. abstract="false" native="false" synchronized="false"
  49940. static="false" final="false" visibility="public"
  49941. deprecated="not deprecated">
  49942. </method>
  49943. <method name="getRunningJobs" return="java.util.List"
  49944. abstract="false" native="false" synchronized="true"
  49945. static="false" final="false" visibility="public"
  49946. deprecated="not deprecated">
  49947. <doc>
  49948. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  49949. careful to synchronize.]]>
  49950. </doc>
  49951. </method>
  49952. <method name="failedJobs" return="java.util.Vector"
  49953. abstract="false" native="false" synchronized="false"
  49954. static="false" final="false" visibility="public"
  49955. deprecated="not deprecated">
  49956. </method>
  49957. <method name="completedJobs" return="java.util.Vector"
  49958. abstract="false" native="false" synchronized="false"
  49959. static="false" final="false" visibility="public"
  49960. deprecated="not deprecated">
  49961. </method>
  49962. <method name="taskTrackers" return="java.util.Collection"
  49963. abstract="false" native="false" synchronized="true"
  49964. static="false" final="false" visibility="public"
  49965. deprecated="not deprecated">
  49966. <doc>
  49967. <![CDATA[Get all the task trackers in the cluster
  49968. @return {@link Collection} of {@link TaskTrackerStatus}]]>
  49969. </doc>
  49970. </method>
  49971. <method name="activeTaskTrackers" return="java.util.Collection"
  49972. abstract="false" native="false" synchronized="true"
  49973. static="false" final="false" visibility="public"
  49974. deprecated="not deprecated">
  49975. <doc>
  49976. <![CDATA[Get the active task tracker statuses in the cluster
  49977. @return {@link Collection} of active {@link TaskTrackerStatus}]]>
  49978. </doc>
  49979. </method>
  49980. <method name="taskTrackerNames" return="java.util.List"
  49981. abstract="false" native="false" synchronized="true"
  49982. static="false" final="false" visibility="public"
  49983. deprecated="not deprecated">
  49984. <doc>
  49985. <![CDATA[Get the active, blacklisted, and graylisted task tracker names in the
  49986. cluster. The first element in the returned list contains the list of
  49987. active tracker names; the second element in the returned list contains
  49988. the list of blacklisted tracker names; and the third contains the list
  49989. of graylisted tracker names. Note that the blacklist is disjoint
  49990. from the active list, but the graylist is not: initially, graylisted
  49991. trackers are still active and therefore will appear in both lists.
  49992. (Graylisted trackers can later be blacklisted, in which case they'll
  49993. be removed from the active list and added to the blacklist, but they
  49994. remain on the graylist in this case. Blacklisting comes about via the
  49995. health-check script, while graylisting is heuristically based on the
  49996. number of per-job blacklistings in a specified time interval.)]]>
  49997. </doc>
  49998. </method>
  49999. <method name="blacklistedTaskTrackers" return="java.util.Collection"
  50000. abstract="false" native="false" synchronized="false"
  50001. static="false" final="false" visibility="public"
  50002. deprecated="not deprecated">
  50003. <doc>
  50004. <![CDATA[Get the statuses of the blacklisted task trackers in the cluster.
  50005. @return {@link Collection} of blacklisted {@link TaskTrackerStatus}]]>
  50006. </doc>
  50007. </method>
  50008. <method name="graylistedTaskTrackers" return="java.util.Collection"
  50009. abstract="false" native="false" synchronized="false"
  50010. static="false" final="false" visibility="public"
  50011. deprecated="not deprecated">
  50012. <doc>
  50013. <![CDATA[Get the statuses of the graylisted task trackers in the cluster.
  50014. @return {@link Collection} of graylisted {@link TaskTrackerStatus}]]>
  50015. </doc>
  50016. </method>
  50017. <method name="isBlacklisted" return="boolean"
  50018. abstract="false" native="false" synchronized="true"
  50019. static="false" final="false" visibility="public"
  50020. deprecated="not deprecated">
  50021. <param name="trackerID" type="java.lang.String"/>
  50022. <doc>
  50023. <![CDATA[Whether the tracker is blacklisted or not
  50024. @param trackerID
  50025. @return true if blacklisted, false otherwise]]>
  50026. </doc>
  50027. </method>
  50028. <method name="isGraylisted" return="boolean"
  50029. abstract="false" native="false" synchronized="true"
  50030. static="false" final="false" visibility="public"
  50031. deprecated="not deprecated">
  50032. <param name="trackerID" type="java.lang.String"/>
  50033. <doc>
  50034. <![CDATA[Whether the tracker is graylisted or not
  50035. @param trackerID
  50036. @return true if graylisted, false otherwise]]>
  50037. </doc>
  50038. </method>
  50039. <method name="getTaskTrackerStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  50040. abstract="false" native="false" synchronized="true"
  50041. static="false" final="false" visibility="public"
  50042. deprecated="not deprecated">
  50043. <param name="trackerID" type="java.lang.String"/>
  50044. </method>
  50045. <method name="getTaskTracker" return="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"
  50046. abstract="false" native="false" synchronized="true"
  50047. static="false" final="false" visibility="public"
  50048. deprecated="not deprecated">
  50049. <param name="trackerID" type="java.lang.String"/>
  50050. </method>
  50051. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  50052. abstract="false" native="false" synchronized="false"
  50053. static="false" final="false" visibility="public"
  50054. deprecated="not deprecated">
  50055. <param name="name" type="java.lang.String"/>
  50056. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  50057. </method>
  50058. <method name="getNodesAtMaxLevel" return="java.util.Collection"
  50059. abstract="false" native="false" synchronized="false"
  50060. static="false" final="false" visibility="public"
  50061. deprecated="not deprecated">
  50062. <doc>
  50063. <![CDATA[Returns a collection of nodes at the max level]]>
  50064. </doc>
  50065. </method>
  50066. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  50067. abstract="false" native="false" synchronized="false"
  50068. static="true" final="false" visibility="public"
  50069. deprecated="not deprecated">
  50070. <param name="node" type="org.apache.hadoop.net.Node"/>
  50071. <param name="level" type="int"/>
  50072. </method>
  50073. <method name="getNode" return="org.apache.hadoop.net.Node"
  50074. abstract="false" native="false" synchronized="false"
  50075. static="false" final="false" visibility="public"
  50076. deprecated="not deprecated">
  50077. <param name="name" type="java.lang.String"/>
  50078. <doc>
  50079. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  50080. </doc>
  50081. </method>
  50082. <method name="getNumTaskCacheLevels" return="int"
  50083. abstract="false" native="false" synchronized="false"
  50084. static="false" final="false" visibility="public"
  50085. deprecated="not deprecated">
  50086. </method>
  50087. <method name="getNumResolvedTaskTrackers" return="int"
  50088. abstract="false" native="false" synchronized="false"
  50089. static="false" final="false" visibility="public"
  50090. deprecated="not deprecated">
  50091. </method>
  50092. <method name="getNumberOfUniqueHosts" return="int"
  50093. abstract="false" native="false" synchronized="false"
  50094. static="false" final="false" visibility="public"
  50095. deprecated="not deprecated">
  50096. </method>
  50097. <method name="addJobInProgressListener"
  50098. abstract="false" native="false" synchronized="false"
  50099. static="false" final="false" visibility="public"
  50100. deprecated="not deprecated">
  50101. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  50102. </method>
  50103. <method name="removeJobInProgressListener"
  50104. abstract="false" native="false" synchronized="false"
  50105. static="false" final="false" visibility="public"
  50106. deprecated="not deprecated">
  50107. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  50108. </method>
  50109. <method name="getQueueManager" return="org.apache.hadoop.mapred.QueueManager"
  50110. abstract="false" native="false" synchronized="false"
  50111. static="false" final="false" visibility="public"
  50112. deprecated="not deprecated">
  50113. <doc>
  50114. <![CDATA[Return the {@link QueueManager} associated with the JobTracker.]]>
  50115. </doc>
  50116. </method>
  50117. <method name="getBuildVersion" return="java.lang.String"
  50118. abstract="false" native="false" synchronized="false"
  50119. static="false" final="false" visibility="public"
  50120. deprecated="not deprecated">
  50121. <exception name="IOException" type="java.io.IOException"/>
  50122. </method>
  50123. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  50124. abstract="false" native="false" synchronized="true"
  50125. static="false" final="false" visibility="public"
  50126. deprecated="not deprecated">
  50127. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50128. <param name="restarted" type="boolean"/>
  50129. <param name="initialContact" type="boolean"/>
  50130. <param name="acceptNewTasks" type="boolean"/>
  50131. <param name="responseId" type="short"/>
  50132. <exception name="IOException" type="java.io.IOException"/>
  50133. <doc>
  50134. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  50135. the {@link JobTracker}.
  50136. The {@link JobTracker} processes the status information sent by the
  50137. {@link TaskTracker} and responds with instructions to start/stop
  50138. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  50139. </doc>
  50140. </method>
  50141. <method name="getNextHeartbeatInterval" return="int"
  50142. abstract="false" native="false" synchronized="false"
  50143. static="false" final="false" visibility="public"
  50144. deprecated="not deprecated">
  50145. <doc>
  50146. <![CDATA[Calculates next heartbeat interval using cluster size.
  50147. Heartbeat interval is incremented by 1 second for every 100 nodes by default.
  50148. @return next heartbeat interval.]]>
  50149. </doc>
  50150. </method>
  50151. <method name="getFilesystemName" return="java.lang.String"
  50152. abstract="false" native="false" synchronized="true"
  50153. static="false" final="false" visibility="public"
  50154. deprecated="not deprecated">
  50155. <exception name="IOException" type="java.io.IOException"/>
  50156. <doc>
  50157. <![CDATA[Grab the local fs name]]>
  50158. </doc>
  50159. </method>
  50160. <method name="getConf" return="org.apache.hadoop.mapred.JobConf"
  50161. abstract="false" native="false" synchronized="false"
  50162. static="false" final="false" visibility="public"
  50163. deprecated="not deprecated">
  50164. <doc>
  50165. <![CDATA[Returns a handle to the JobTracker's Configuration]]>
  50166. </doc>
  50167. </method>
  50168. <method name="reportTaskTrackerError"
  50169. abstract="false" native="false" synchronized="false"
  50170. static="false" final="false" visibility="public"
  50171. deprecated="not deprecated">
  50172. <param name="taskTracker" type="java.lang.String"/>
  50173. <param name="errorClass" type="java.lang.String"/>
  50174. <param name="errorMessage" type="java.lang.String"/>
  50175. <exception name="IOException" type="java.io.IOException"/>
  50176. </method>
  50177. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  50178. abstract="false" native="false" synchronized="true"
  50179. static="false" final="false" visibility="public"
  50180. deprecated="not deprecated">
  50181. <exception name="IOException" type="java.io.IOException"/>
  50182. <doc>
  50183. <![CDATA[Allocates a new JobId string.]]>
  50184. </doc>
  50185. </method>
  50186. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  50187. abstract="false" native="false" synchronized="false"
  50188. static="false" final="false" visibility="public"
  50189. deprecated="not deprecated">
  50190. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50191. <param name="jobSubmitDir" type="java.lang.String"/>
  50192. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  50193. <exception name="IOException" type="java.io.IOException"/>
  50194. <doc>
  50195. <![CDATA[JobTracker.submitJob() kicks off a new job.
  50196. Create a 'JobInProgress' object, which contains both JobProfile
  50197. and JobStatus. Those two sub-objects are sometimes shipped outside
  50198. of the JobTracker. But JobInProgress adds info that's useful for
  50199. the JobTracker alone.]]>
  50200. </doc>
  50201. </method>
  50202. <method name="getStagingAreaDir" return="java.lang.String"
  50203. abstract="false" native="false" synchronized="false"
  50204. static="false" final="false" visibility="public"
  50205. deprecated="not deprecated">
  50206. <exception name="IOException" type="java.io.IOException"/>
  50207. <doc>
  50208. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getStagingAreaDir()]]>
  50209. </doc>
  50210. </method>
  50211. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  50212. abstract="false" native="false" synchronized="true"
  50213. static="false" final="false" visibility="public"
  50214. deprecated="use {@link #getClusterStatus(boolean)}">
  50215. <doc>
  50216. <![CDATA[@deprecated use {@link #getClusterStatus(boolean)}]]>
  50217. </doc>
  50218. </method>
  50219. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  50220. abstract="false" native="false" synchronized="true"
  50221. static="false" final="false" visibility="public"
  50222. deprecated="not deprecated">
  50223. <param name="detailed" type="boolean"/>
  50224. </method>
  50225. <method name="getClusterMetrics" return="org.apache.hadoop.mapreduce.ClusterMetrics"
  50226. abstract="false" native="false" synchronized="true"
  50227. static="false" final="false" visibility="public"
  50228. deprecated="not deprecated">
  50229. </method>
  50230. <method name="killJob"
  50231. abstract="false" native="false" synchronized="true"
  50232. static="false" final="false" visibility="public"
  50233. deprecated="not deprecated">
  50234. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50235. <exception name="IOException" type="java.io.IOException"/>
  50236. <doc>
  50237. <![CDATA[@see JobSubmissionProtocol#killJob]]>
  50238. </doc>
  50239. </method>
  50240. <method name="cancelDelegationToken"
  50241. abstract="false" native="false" synchronized="false"
  50242. static="false" final="false" visibility="public"
  50243. deprecated="not deprecated">
  50244. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  50245. <exception name="IOException" type="java.io.IOException"/>
  50246. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50247. <doc>
  50248. <![CDATA[Discard a current delegation token.]]>
  50249. </doc>
  50250. </method>
  50251. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  50252. abstract="false" native="false" synchronized="false"
  50253. static="false" final="false" visibility="public"
  50254. deprecated="not deprecated">
  50255. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  50256. <exception name="IOException" type="java.io.IOException"/>
  50257. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50258. <doc>
  50259. <![CDATA[Get a new delegation token.]]>
  50260. </doc>
  50261. </method>
  50262. <method name="renewDelegationToken" return="long"
  50263. abstract="false" native="false" synchronized="false"
  50264. static="false" final="false" visibility="public"
  50265. deprecated="not deprecated">
  50266. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  50267. <exception name="IOException" type="java.io.IOException"/>
  50268. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50269. <doc>
  50270. <![CDATA[Renew a delegation token to extend its lifetime.]]>
  50271. </doc>
  50272. </method>
  50273. <method name="initJob"
  50274. abstract="false" native="false" synchronized="false"
  50275. static="false" final="false" visibility="public"
  50276. deprecated="not deprecated">
  50277. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  50278. </method>
  50279. <method name="failJob"
  50280. abstract="false" native="false" synchronized="true"
  50281. static="false" final="false" visibility="public"
  50282. deprecated="not deprecated">
  50283. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  50284. <doc>
  50285. <![CDATA[Fail a job and inform the listeners. Other components in the framework
  50286. should use this to fail a job.]]>
  50287. </doc>
  50288. </method>
  50289. <method name="setJobPriority"
  50290. abstract="false" native="false" synchronized="true"
  50291. static="false" final="false" visibility="public"
  50292. deprecated="not deprecated">
  50293. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50294. <param name="priority" type="java.lang.String"/>
  50295. <exception name="IOException" type="java.io.IOException"/>
  50296. </method>
  50297. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  50298. abstract="false" native="false" synchronized="false"
  50299. static="false" final="false" visibility="public"
  50300. deprecated="not deprecated">
  50301. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50302. </method>
  50303. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  50304. abstract="false" native="false" synchronized="false"
  50305. static="false" final="false" visibility="public"
  50306. deprecated="not deprecated">
  50307. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50308. </method>
  50309. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  50310. abstract="false" native="false" synchronized="false"
  50311. static="false" final="false" visibility="public"
  50312. deprecated="not deprecated">
  50313. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50314. <exception name="IOException" type="java.io.IOException"/>
  50315. </method>
  50316. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  50317. abstract="false" native="false" synchronized="true"
  50318. static="false" final="false" visibility="public"
  50319. deprecated="not deprecated">
  50320. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50321. <exception name="IOException" type="java.io.IOException"/>
  50322. </method>
  50323. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  50324. abstract="false" native="false" synchronized="true"
  50325. static="false" final="false" visibility="public"
  50326. deprecated="not deprecated">
  50327. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50328. <exception name="IOException" type="java.io.IOException"/>
  50329. </method>
  50330. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  50331. abstract="false" native="false" synchronized="true"
  50332. static="false" final="false" visibility="public"
  50333. deprecated="not deprecated">
  50334. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50335. <exception name="IOException" type="java.io.IOException"/>
  50336. </method>
  50337. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  50338. abstract="false" native="false" synchronized="true"
  50339. static="false" final="false" visibility="public"
  50340. deprecated="not deprecated">
  50341. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50342. <exception name="IOException" type="java.io.IOException"/>
  50343. </method>
  50344. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  50345. abstract="false" native="false" synchronized="false"
  50346. static="false" final="false" visibility="public"
  50347. deprecated="not deprecated">
  50348. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50349. <param name="fromEventId" type="int"/>
  50350. <param name="maxEvents" type="int"/>
  50351. <exception name="IOException" type="java.io.IOException"/>
  50352. </method>
  50353. <method name="getTaskDiagnostics" return="java.lang.String[]"
  50354. abstract="false" native="false" synchronized="true"
  50355. static="false" final="false" visibility="public"
  50356. deprecated="not deprecated">
  50357. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50358. <exception name="IOException" type="java.io.IOException"/>
  50359. <doc>
  50360. <![CDATA[Get the diagnostics for a given task
  50361. @param taskId the id of the task
  50362. @return an array of the diagnostic messages]]>
  50363. </doc>
  50364. </method>
  50365. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  50366. abstract="false" native="false" synchronized="false"
  50367. static="false" final="false" visibility="public"
  50368. deprecated="not deprecated">
  50369. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  50370. <doc>
  50371. <![CDATA[Returns specified TaskInProgress, or null.]]>
  50372. </doc>
  50373. </method>
  50374. <method name="killTask" return="boolean"
  50375. abstract="false" native="false" synchronized="true"
  50376. static="false" final="false" visibility="public"
  50377. deprecated="not deprecated">
  50378. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50379. <param name="shouldFail" type="boolean"/>
  50380. <exception name="IOException" type="java.io.IOException"/>
  50381. <doc>
  50382. <![CDATA[@see JobSubmissionProtocol#killTask(TaskAttemptID, boolean)]]>
  50383. </doc>
  50384. </method>
  50385. <method name="getAssignedTracker" return="java.lang.String"
  50386. abstract="false" native="false" synchronized="true"
  50387. static="false" final="false" visibility="public"
  50388. deprecated="not deprecated">
  50389. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50390. <doc>
  50391. <![CDATA[Get tracker name for a given task id.
  50392. @param taskId the name of the task
  50393. @return The name of the task tracker]]>
  50394. </doc>
  50395. </method>
  50396. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  50397. abstract="false" native="false" synchronized="false"
  50398. static="false" final="false" visibility="public"
  50399. deprecated="not deprecated">
  50400. </method>
  50401. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  50402. abstract="false" native="false" synchronized="false"
  50403. static="false" final="false" visibility="public"
  50404. deprecated="not deprecated">
  50405. <doc>
  50406. <![CDATA[@see JobSubmissionProtocol#getAllJobs()]]>
  50407. </doc>
  50408. </method>
  50409. <method name="getSystemDir" return="java.lang.String"
  50410. abstract="false" native="false" synchronized="false"
  50411. static="false" final="false" visibility="public"
  50412. deprecated="not deprecated">
  50413. <doc>
  50414. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  50415. </doc>
  50416. </method>
  50417. <method name="getQueueAdmins" return="org.apache.hadoop.security.authorize.AccessControlList"
  50418. abstract="false" native="false" synchronized="false"
  50419. static="false" final="false" visibility="public"
  50420. deprecated="not deprecated">
  50421. <param name="queueName" type="java.lang.String"/>
  50422. <exception name="IOException" type="java.io.IOException"/>
  50423. <doc>
  50424. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getQueueAdmins(String)]]>
  50425. </doc>
  50426. </method>
  50427. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  50428. abstract="false" native="false" synchronized="false"
  50429. static="false" final="false" visibility="public"
  50430. deprecated="not deprecated">
  50431. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50432. </method>
  50433. <method name="refreshNodes"
  50434. abstract="false" native="false" synchronized="true"
  50435. static="false" final="false" visibility="public"
  50436. deprecated="not deprecated">
  50437. <exception name="IOException" type="java.io.IOException"/>
  50438. <doc>
  50439. <![CDATA[Rereads the config to get hosts and exclude list file names.
  50440. Rereads the files to update the hosts and exclude lists.]]>
  50441. </doc>
  50442. </method>
  50443. <method name="getLocalJobFilePath" return="java.lang.String"
  50444. abstract="false" native="false" synchronized="false"
  50445. static="true" final="false" visibility="public"
  50446. deprecated="not deprecated">
  50447. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50448. <doc>
  50449. <![CDATA[Get the localized job file path on the job trackers local file system
  50450. @param jobId id of the job
  50451. @return the path of the job conf file on the local file system]]>
  50452. </doc>
  50453. </method>
  50454. <method name="main"
  50455. abstract="false" native="false" synchronized="false"
  50456. static="true" final="false" visibility="public"
  50457. deprecated="not deprecated">
  50458. <param name="argv" type="java.lang.String[]"/>
  50459. <exception name="IOException" type="java.io.IOException"/>
  50460. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50461. <doc>
  50462. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  50463. JobTracker should be run as part of the DFS Namenode process.]]>
  50464. </doc>
  50465. </method>
  50466. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  50467. abstract="false" native="false" synchronized="false"
  50468. static="false" final="false" visibility="public"
  50469. deprecated="not deprecated">
  50470. <exception name="IOException" type="java.io.IOException"/>
  50471. </method>
  50472. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  50473. abstract="false" native="false" synchronized="false"
  50474. static="false" final="false" visibility="public"
  50475. deprecated="not deprecated">
  50476. <param name="queue" type="java.lang.String"/>
  50477. <exception name="IOException" type="java.io.IOException"/>
  50478. </method>
  50479. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  50480. abstract="false" native="false" synchronized="false"
  50481. static="false" final="false" visibility="public"
  50482. deprecated="not deprecated">
  50483. <param name="queue" type="java.lang.String"/>
  50484. <exception name="IOException" type="java.io.IOException"/>
  50485. </method>
  50486. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  50487. abstract="false" native="false" synchronized="false"
  50488. static="false" final="false" visibility="public"
  50489. deprecated="not deprecated">
  50490. <exception name="IOException" type="java.io.IOException"/>
  50491. </method>
  50492. <method name="refreshServiceAcl"
  50493. abstract="false" native="false" synchronized="false"
  50494. static="false" final="false" visibility="public"
  50495. deprecated="not deprecated">
  50496. <exception name="IOException" type="java.io.IOException"/>
  50497. </method>
  50498. <method name="refreshSuperUserGroupsConfiguration"
  50499. abstract="false" native="false" synchronized="false"
  50500. static="false" final="false" visibility="public"
  50501. deprecated="not deprecated">
  50502. </method>
  50503. <method name="refreshUserToGroupsMappings"
  50504. abstract="false" native="false" synchronized="false"
  50505. static="false" final="false" visibility="public"
  50506. deprecated="not deprecated">
  50507. <exception name="IOException" type="java.io.IOException"/>
  50508. </method>
  50509. <method name="refreshQueues"
  50510. abstract="false" native="false" synchronized="false"
  50511. static="false" final="false" visibility="public"
  50512. deprecated="not deprecated">
  50513. <exception name="IOException" type="java.io.IOException"/>
  50514. </method>
  50515. <method name="getReasonsForBlacklisting" return="java.lang.String"
  50516. abstract="false" native="false" synchronized="false"
  50517. static="false" final="false" visibility="public"
  50518. deprecated="not deprecated">
  50519. <param name="host" type="java.lang.String"/>
  50520. </method>
  50521. <method name="getReasonsForGraylisting" return="java.lang.String"
  50522. abstract="false" native="false" synchronized="false"
  50523. static="false" final="false" visibility="public"
  50524. deprecated="not deprecated">
  50525. <param name="host" type="java.lang.String"/>
  50526. </method>
  50527. <method name="getHostname" return="java.lang.String"
  50528. abstract="false" native="false" synchronized="false"
  50529. static="false" final="false" visibility="public"
  50530. deprecated="not deprecated">
  50531. </method>
  50532. <method name="getVersion" return="java.lang.String"
  50533. abstract="false" native="false" synchronized="false"
  50534. static="false" final="false" visibility="public"
  50535. deprecated="not deprecated">
  50536. </method>
  50537. <method name="getConfigVersion" return="java.lang.String"
  50538. abstract="false" native="false" synchronized="false"
  50539. static="false" final="false" visibility="public"
  50540. deprecated="not deprecated">
  50541. </method>
  50542. <method name="getThreadCount" return="int"
  50543. abstract="false" native="false" synchronized="false"
  50544. static="false" final="false" visibility="public"
  50545. deprecated="not deprecated">
  50546. </method>
  50547. <method name="getSummaryJson" return="java.lang.String"
  50548. abstract="false" native="false" synchronized="false"
  50549. static="false" final="false" visibility="public"
  50550. deprecated="not deprecated">
  50551. </method>
  50552. <method name="getAliveNodesInfoJson" return="java.lang.String"
  50553. abstract="false" native="false" synchronized="false"
  50554. static="false" final="false" visibility="public"
  50555. deprecated="not deprecated">
  50556. </method>
  50557. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  50558. abstract="false" native="false" synchronized="false"
  50559. static="false" final="false" visibility="public"
  50560. deprecated="not deprecated">
  50561. </method>
  50562. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  50563. abstract="false" native="false" synchronized="false"
  50564. static="false" final="false" visibility="public"
  50565. deprecated="not deprecated">
  50566. </method>
  50567. <method name="getQueueInfoJson" return="java.lang.String"
  50568. abstract="false" native="false" synchronized="false"
  50569. static="false" final="false" visibility="public"
  50570. deprecated="not deprecated">
  50571. </method>
  50572. <field name="MAX_USER_JOBCONF_SIZE_KEY" type="java.lang.String"
  50573. transient="false" volatile="false"
  50574. static="true" final="true" visibility="public"
  50575. deprecated="not deprecated">
  50576. <doc>
  50577. <![CDATA[the config key for max user jobconf size]]>
  50578. </doc>
  50579. </field>
  50580. <field name="DELEGATION_KEY_UPDATE_INTERVAL_KEY" type="java.lang.String"
  50581. transient="false" volatile="false"
  50582. static="true" final="true" visibility="public"
  50583. deprecated="not deprecated">
  50584. </field>
  50585. <field name="DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT" type="long"
  50586. transient="false" volatile="false"
  50587. static="true" final="true" visibility="public"
  50588. deprecated="not deprecated">
  50589. </field>
  50590. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_KEY" type="java.lang.String"
  50591. transient="false" volatile="false"
  50592. static="true" final="true" visibility="public"
  50593. deprecated="not deprecated">
  50594. </field>
  50595. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT" type="long"
  50596. transient="false" volatile="false"
  50597. static="true" final="true" visibility="public"
  50598. deprecated="not deprecated">
  50599. </field>
  50600. <field name="DELEGATION_TOKEN_MAX_LIFETIME_KEY" type="java.lang.String"
  50601. transient="false" volatile="false"
  50602. static="true" final="true" visibility="public"
  50603. deprecated="not deprecated">
  50604. </field>
  50605. <field name="DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT" type="long"
  50606. transient="false" volatile="false"
  50607. static="true" final="true" visibility="public"
  50608. deprecated="not deprecated">
  50609. </field>
  50610. <field name="LOG" type="org.apache.commons.logging.Log"
  50611. transient="false" volatile="false"
  50612. static="true" final="true" visibility="public"
  50613. deprecated="not deprecated">
  50614. </field>
  50615. <field name="JT_USER_NAME" type="java.lang.String"
  50616. transient="false" volatile="false"
  50617. static="true" final="true" visibility="public"
  50618. deprecated="not deprecated">
  50619. </field>
  50620. <field name="JT_KEYTAB_FILE" type="java.lang.String"
  50621. transient="false" volatile="false"
  50622. static="true" final="true" visibility="public"
  50623. deprecated="not deprecated">
  50624. </field>
  50625. <field name="MAPRED_CLUSTER_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  50626. transient="false" volatile="false"
  50627. static="true" final="true" visibility="public"
  50628. deprecated="not deprecated">
  50629. </field>
  50630. <field name="MAPRED_CLUSTER_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  50631. transient="false" volatile="false"
  50632. static="true" final="true" visibility="public"
  50633. deprecated="not deprecated">
  50634. </field>
  50635. <doc>
  50636. <![CDATA[JobTracker is the central location for submitting and
  50637. tracking MR jobs in a network environment.]]>
  50638. </doc>
  50639. </class>
  50640. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  50641. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  50642. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  50643. abstract="false"
  50644. static="true" final="false" visibility="public"
  50645. deprecated="not deprecated">
  50646. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  50647. static="false" final="false" visibility="public"
  50648. deprecated="not deprecated">
  50649. </constructor>
  50650. <doc>
  50651. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  50652. </doc>
  50653. </class>
  50654. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  50655. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  50656. <class name="JobTracker.State" extends="java.lang.Enum"
  50657. abstract="false"
  50658. static="true" final="true" visibility="public"
  50659. deprecated="not deprecated">
  50660. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  50661. abstract="false" native="false" synchronized="false"
  50662. static="true" final="false" visibility="public"
  50663. deprecated="not deprecated">
  50664. </method>
  50665. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  50666. abstract="false" native="false" synchronized="false"
  50667. static="true" final="false" visibility="public"
  50668. deprecated="not deprecated">
  50669. <param name="name" type="java.lang.String"/>
  50670. </method>
  50671. <field name="INITIALIZING" type="org.apache.hadoop.mapred.JobTracker.State"
  50672. transient="false" volatile="false"
  50673. static="true" final="true" visibility="public"
  50674. deprecated="not deprecated">
  50675. </field>
  50676. <field name="RUNNING" type="org.apache.hadoop.mapred.JobTracker.State"
  50677. transient="false" volatile="false"
  50678. static="true" final="true" visibility="public"
  50679. deprecated="not deprecated">
  50680. </field>
  50681. </class>
  50682. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  50683. <!-- start interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  50684. <interface name="JobTrackerMXBean" abstract="true"
  50685. static="false" final="false" visibility="public"
  50686. deprecated="not deprecated">
  50687. <method name="getHostname" return="java.lang.String"
  50688. abstract="false" native="false" synchronized="false"
  50689. static="false" final="false" visibility="public"
  50690. deprecated="not deprecated">
  50691. <doc>
  50692. <![CDATA[@return hostname of the jobtracker]]>
  50693. </doc>
  50694. </method>
  50695. <method name="getVersion" return="java.lang.String"
  50696. abstract="false" native="false" synchronized="false"
  50697. static="false" final="false" visibility="public"
  50698. deprecated="not deprecated">
  50699. <doc>
  50700. <![CDATA[@return version of the code base]]>
  50701. </doc>
  50702. </method>
  50703. <method name="getConfigVersion" return="java.lang.String"
  50704. abstract="false" native="false" synchronized="false"
  50705. static="false" final="false" visibility="public"
  50706. deprecated="not deprecated">
  50707. <doc>
  50708. <![CDATA[@return the config version (from a config property)]]>
  50709. </doc>
  50710. </method>
  50711. <method name="getThreadCount" return="int"
  50712. abstract="false" native="false" synchronized="false"
  50713. static="false" final="false" visibility="public"
  50714. deprecated="not deprecated">
  50715. <doc>
  50716. <![CDATA[@return number of threads of the jobtracker jvm]]>
  50717. </doc>
  50718. </method>
  50719. <method name="getSummaryJson" return="java.lang.String"
  50720. abstract="false" native="false" synchronized="false"
  50721. static="false" final="false" visibility="public"
  50722. deprecated="not deprecated">
  50723. <doc>
  50724. <![CDATA[@return the summary info in json]]>
  50725. </doc>
  50726. </method>
  50727. <method name="getAliveNodesInfoJson" return="java.lang.String"
  50728. abstract="false" native="false" synchronized="false"
  50729. static="false" final="false" visibility="public"
  50730. deprecated="not deprecated">
  50731. <doc>
  50732. <![CDATA[@return the alive nodes info in json]]>
  50733. </doc>
  50734. </method>
  50735. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  50736. abstract="false" native="false" synchronized="false"
  50737. static="false" final="false" visibility="public"
  50738. deprecated="not deprecated">
  50739. <doc>
  50740. <![CDATA[@return the blacklisted nodes info in json]]>
  50741. </doc>
  50742. </method>
  50743. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  50744. abstract="false" native="false" synchronized="false"
  50745. static="false" final="false" visibility="public"
  50746. deprecated="not deprecated">
  50747. <doc>
  50748. <![CDATA[@return the graylisted nodes info in json]]>
  50749. </doc>
  50750. </method>
  50751. <method name="getQueueInfoJson" return="java.lang.String"
  50752. abstract="false" native="false" synchronized="false"
  50753. static="false" final="false" visibility="public"
  50754. deprecated="not deprecated">
  50755. <doc>
  50756. <![CDATA[@return the queue info json]]>
  50757. </doc>
  50758. </method>
  50759. <doc>
  50760. <![CDATA[The MXBean interface for JobTrackerInfo]]>
  50761. </doc>
  50762. </interface>
  50763. <!-- end interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  50764. <!-- start class org.apache.hadoop.mapred.JvmTask -->
  50765. <class name="JvmTask" extends="java.lang.Object"
  50766. abstract="false"
  50767. static="false" final="false" visibility="public"
  50768. deprecated="not deprecated">
  50769. <implements name="org.apache.hadoop.io.Writable"/>
  50770. <constructor name="JvmTask" type="org.apache.hadoop.mapred.Task, boolean"
  50771. static="false" final="false" visibility="public"
  50772. deprecated="not deprecated">
  50773. </constructor>
  50774. <constructor name="JvmTask"
  50775. static="false" final="false" visibility="public"
  50776. deprecated="not deprecated">
  50777. </constructor>
  50778. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  50779. abstract="false" native="false" synchronized="false"
  50780. static="false" final="false" visibility="public"
  50781. deprecated="not deprecated">
  50782. </method>
  50783. <method name="shouldDie" return="boolean"
  50784. abstract="false" native="false" synchronized="false"
  50785. static="false" final="false" visibility="public"
  50786. deprecated="not deprecated">
  50787. </method>
  50788. <method name="write"
  50789. abstract="false" native="false" synchronized="false"
  50790. static="false" final="false" visibility="public"
  50791. deprecated="not deprecated">
  50792. <param name="out" type="java.io.DataOutput"/>
  50793. <exception name="IOException" type="java.io.IOException"/>
  50794. </method>
  50795. <method name="readFields"
  50796. abstract="false" native="false" synchronized="false"
  50797. static="false" final="false" visibility="public"
  50798. deprecated="not deprecated">
  50799. <param name="in" type="java.io.DataInput"/>
  50800. <exception name="IOException" type="java.io.IOException"/>
  50801. </method>
  50802. </class>
  50803. <!-- end class org.apache.hadoop.mapred.JvmTask -->
  50804. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  50805. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  50806. abstract="false"
  50807. static="false" final="false" visibility="public"
  50808. deprecated="not deprecated">
  50809. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  50810. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  50811. static="false" final="false" visibility="public"
  50812. deprecated="not deprecated">
  50813. <exception name="IOException" type="java.io.IOException"/>
  50814. </constructor>
  50815. <method name="getKeyClass" return="java.lang.Class"
  50816. abstract="false" native="false" synchronized="false"
  50817. static="false" final="false" visibility="public"
  50818. deprecated="not deprecated">
  50819. </method>
  50820. <method name="createKey" return="org.apache.hadoop.io.Text"
  50821. abstract="false" native="false" synchronized="false"
  50822. static="false" final="false" visibility="public"
  50823. deprecated="not deprecated">
  50824. </method>
  50825. <method name="createValue" return="org.apache.hadoop.io.Text"
  50826. abstract="false" native="false" synchronized="false"
  50827. static="false" final="false" visibility="public"
  50828. deprecated="not deprecated">
  50829. </method>
  50830. <method name="findSeparator" return="int"
  50831. abstract="false" native="false" synchronized="false"
  50832. static="true" final="false" visibility="public"
  50833. deprecated="not deprecated">
  50834. <param name="utf" type="byte[]"/>
  50835. <param name="start" type="int"/>
  50836. <param name="length" type="int"/>
  50837. <param name="sep" type="byte"/>
  50838. </method>
  50839. <method name="next" return="boolean"
  50840. abstract="false" native="false" synchronized="true"
  50841. static="false" final="false" visibility="public"
  50842. deprecated="not deprecated">
  50843. <param name="key" type="org.apache.hadoop.io.Text"/>
  50844. <param name="value" type="org.apache.hadoop.io.Text"/>
  50845. <exception name="IOException" type="java.io.IOException"/>
  50846. <doc>
  50847. <![CDATA[Read key/value pair in a line.]]>
  50848. </doc>
  50849. </method>
  50850. <method name="getProgress" return="float"
  50851. abstract="false" native="false" synchronized="false"
  50852. static="false" final="false" visibility="public"
  50853. deprecated="not deprecated">
  50854. </method>
  50855. <method name="getPos" return="long"
  50856. abstract="false" native="false" synchronized="true"
  50857. static="false" final="false" visibility="public"
  50858. deprecated="not deprecated">
  50859. <exception name="IOException" type="java.io.IOException"/>
  50860. </method>
  50861. <method name="close"
  50862. abstract="false" native="false" synchronized="true"
  50863. static="false" final="false" visibility="public"
  50864. deprecated="not deprecated">
  50865. <exception name="IOException" type="java.io.IOException"/>
  50866. </method>
  50867. <doc>
  50868. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  50869. separator character. The separator can be specified in config file
  50870. under the attribute name key.value.separator.in.input.line. The default
  50871. separator is the tab character ('\t').]]>
  50872. </doc>
  50873. </class>
  50874. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  50875. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  50876. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  50877. abstract="false"
  50878. static="false" final="false" visibility="public"
  50879. deprecated="not deprecated">
  50880. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  50881. <constructor name="KeyValueTextInputFormat"
  50882. static="false" final="false" visibility="public"
  50883. deprecated="not deprecated">
  50884. </constructor>
  50885. <method name="configure"
  50886. abstract="false" native="false" synchronized="false"
  50887. static="false" final="false" visibility="public"
  50888. deprecated="not deprecated">
  50889. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  50890. </method>
  50891. <method name="isSplitable" return="boolean"
  50892. abstract="false" native="false" synchronized="false"
  50893. static="false" final="false" visibility="protected"
  50894. deprecated="not deprecated">
  50895. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  50896. <param name="file" type="org.apache.hadoop.fs.Path"/>
  50897. </method>
  50898. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  50899. abstract="false" native="false" synchronized="false"
  50900. static="false" final="false" visibility="public"
  50901. deprecated="not deprecated">
  50902. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  50903. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  50904. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  50905. <exception name="IOException" type="java.io.IOException"/>
  50906. </method>
  50907. <doc>
  50908. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  50909. Either linefeed or carriage-return are used to signal end of line. Each line
  50910. is divided into key and value parts by a separator byte. If no such a byte
  50911. exists, the key will be the entire line and value will be empty.]]>
  50912. </doc>
  50913. </class>
  50914. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  50915. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  50916. <class name="LineRecordReader" extends="java.lang.Object"
  50917. abstract="false"
  50918. static="false" final="false" visibility="public"
  50919. deprecated="not deprecated">
  50920. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  50921. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  50922. static="false" final="false" visibility="public"
  50923. deprecated="not deprecated">
  50924. <exception name="IOException" type="java.io.IOException"/>
  50925. </constructor>
  50926. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  50927. static="false" final="false" visibility="public"
  50928. deprecated="not deprecated">
  50929. </constructor>
  50930. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  50931. static="false" final="false" visibility="public"
  50932. deprecated="not deprecated">
  50933. <exception name="IOException" type="java.io.IOException"/>
  50934. </constructor>
  50935. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  50936. abstract="false" native="false" synchronized="false"
  50937. static="false" final="false" visibility="public"
  50938. deprecated="not deprecated">
  50939. </method>
  50940. <method name="createValue" return="org.apache.hadoop.io.Text"
  50941. abstract="false" native="false" synchronized="false"
  50942. static="false" final="false" visibility="public"
  50943. deprecated="not deprecated">
  50944. </method>
  50945. <method name="next" return="boolean"
  50946. abstract="false" native="false" synchronized="true"
  50947. static="false" final="false" visibility="public"
  50948. deprecated="not deprecated">
  50949. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  50950. <param name="value" type="org.apache.hadoop.io.Text"/>
  50951. <exception name="IOException" type="java.io.IOException"/>
  50952. <doc>
  50953. <![CDATA[Read a line.]]>
  50954. </doc>
  50955. </method>
  50956. <method name="getProgress" return="float"
  50957. abstract="false" native="false" synchronized="false"
  50958. static="false" final="false" visibility="public"
  50959. deprecated="not deprecated">
  50960. <doc>
  50961. <![CDATA[Get the progress within the split]]>
  50962. </doc>
  50963. </method>
  50964. <method name="getPos" return="long"
  50965. abstract="false" native="false" synchronized="true"
  50966. static="false" final="false" visibility="public"
  50967. deprecated="not deprecated">
  50968. <exception name="IOException" type="java.io.IOException"/>
  50969. </method>
  50970. <method name="close"
  50971. abstract="false" native="false" synchronized="true"
  50972. static="false" final="false" visibility="public"
  50973. deprecated="not deprecated">
  50974. <exception name="IOException" type="java.io.IOException"/>
  50975. </method>
  50976. <doc>
  50977. <![CDATA[Treats keys as offset in file and value as line.]]>
  50978. </doc>
  50979. </class>
  50980. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  50981. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  50982. <class name="LineRecordReader.LineReader" extends="org.apache.hadoop.util.LineReader"
  50983. abstract="false"
  50984. static="true" final="false" visibility="public"
  50985. deprecated="Use {@link org.apache.hadoop.util.LineReader} instead.">
  50986. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  50987. static="false" final="false" visibility="public"
  50988. deprecated="not deprecated">
  50989. <exception name="IOException" type="java.io.IOException"/>
  50990. </constructor>
  50991. <doc>
  50992. <![CDATA[A class that provides a line reader from an input stream.
  50993. @deprecated Use {@link org.apache.hadoop.util.LineReader} instead.]]>
  50994. </doc>
  50995. </class>
  50996. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  50997. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  50998. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  50999. abstract="false"
  51000. static="false" final="false" visibility="public"
  51001. deprecated="not deprecated">
  51002. <constructor name="MapFileOutputFormat"
  51003. static="false" final="false" visibility="public"
  51004. deprecated="not deprecated">
  51005. </constructor>
  51006. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  51007. abstract="false" native="false" synchronized="false"
  51008. static="false" final="false" visibility="public"
  51009. deprecated="not deprecated">
  51010. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51011. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51012. <param name="name" type="java.lang.String"/>
  51013. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  51014. <exception name="IOException" type="java.io.IOException"/>
  51015. </method>
  51016. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  51017. abstract="false" native="false" synchronized="false"
  51018. static="true" final="false" visibility="public"
  51019. deprecated="not deprecated">
  51020. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51021. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  51022. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  51023. <exception name="IOException" type="java.io.IOException"/>
  51024. <doc>
  51025. <![CDATA[Open the output generated by this format.]]>
  51026. </doc>
  51027. </method>
  51028. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  51029. abstract="false" native="false" synchronized="false"
  51030. static="true" final="false" visibility="public"
  51031. deprecated="not deprecated">
  51032. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  51033. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner"/>
  51034. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  51035. <param name="value" type="org.apache.hadoop.io.Writable"/>
  51036. <exception name="IOException" type="java.io.IOException"/>
  51037. <doc>
  51038. <![CDATA[Get an entry from output generated by this class.]]>
  51039. </doc>
  51040. </method>
  51041. <doc>
  51042. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  51043. </doc>
  51044. </class>
  51045. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  51046. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  51047. <interface name="Mapper" abstract="true"
  51048. static="false" final="false" visibility="public"
  51049. deprecated="not deprecated">
  51050. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51051. <implements name="org.apache.hadoop.io.Closeable"/>
  51052. <method name="map"
  51053. abstract="false" native="false" synchronized="false"
  51054. static="false" final="false" visibility="public"
  51055. deprecated="not deprecated">
  51056. <param name="key" type="java.lang.Object"/>
  51057. <param name="value" type="java.lang.Object"/>
  51058. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  51059. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51060. <exception name="IOException" type="java.io.IOException"/>
  51061. <doc>
  51062. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  51063. <p>Output pairs need not be of the same types as input pairs. A given
  51064. input pair may map to zero or many output pairs. Output pairs are
  51065. collected with calls to
  51066. {@link OutputCollector#collect(Object,Object)}.</p>
  51067. <p>Applications can use the {@link Reporter} provided to report progress
  51068. or just indicate that they are alive. In scenarios where the application
  51069. takes an insignificant amount of time to process individual key/value
  51070. pairs, this is crucial since the framework might assume that the task has
  51071. timed-out and kill that task. The other way of avoiding this is to set
  51072. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  51073. mapred.task.timeout</a> to a high-enough value (or even zero for no
  51074. time-outs).</p>
  51075. @param key the input key.
  51076. @param value the input value.
  51077. @param output collects mapped keys and values.
  51078. @param reporter facility to report progress.]]>
  51079. </doc>
  51080. </method>
  51081. <doc>
  51082. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  51083. <p>Maps are the individual tasks which transform input records into a
  51084. intermediate records. The transformed intermediate records need not be of
  51085. the same type as the input records. A given input pair may map to zero or
  51086. many output pairs.</p>
  51087. <p>The Hadoop Map-Reduce framework spawns one map task for each
  51088. {@link InputSplit} generated by the {@link InputFormat} for the job.
  51089. <code>Mapper</code> implementations can access the {@link JobConf} for the
  51090. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  51091. themselves. Similarly they can use the {@link Closeable#close()} method for
  51092. de-initialization.</p>
  51093. <p>The framework then calls
  51094. {@link #map(Object, Object, OutputCollector, Reporter)}
  51095. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  51096. <p>All intermediate values associated with a given output key are
  51097. subsequently grouped by the framework, and passed to a {@link Reducer} to
  51098. determine the final output. Users can control the grouping by specifying
  51099. a <code>Comparator</code> via
  51100. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  51101. <p>The grouped <code>Mapper</code> outputs are partitioned per
  51102. <code>Reducer</code>. Users can control which keys (and hence records) go to
  51103. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  51104. <p>Users can optionally specify a <code>combiner</code>, via
  51105. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  51106. intermediate outputs, which helps to cut down the amount of data transferred
  51107. from the <code>Mapper</code> to the <code>Reducer</code>.
  51108. <p>The intermediate, grouped outputs are always stored in
  51109. {@link SequenceFile}s. Applications can specify if and how the intermediate
  51110. outputs are to be compressed and which {@link CompressionCodec}s are to be
  51111. used via the <code>JobConf</code>.</p>
  51112. <p>If the job has
  51113. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  51114. reduces</a> then the output of the <code>Mapper</code> is directly written
  51115. to the {@link FileSystem} without grouping by keys.</p>
  51116. <p>Example:</p>
  51117. <p><blockquote><pre>
  51118. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  51119. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  51120. static enum MyCounters { NUM_RECORDS }
  51121. private String mapTaskId;
  51122. private String inputFile;
  51123. private int noRecords = 0;
  51124. public void configure(JobConf job) {
  51125. mapTaskId = job.get("mapred.task.id");
  51126. inputFile = job.get("map.input.file");
  51127. }
  51128. public void map(K key, V val,
  51129. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  51130. throws IOException {
  51131. // Process the &lt;key, value&gt; pair (assume this takes a while)
  51132. // ...
  51133. // ...
  51134. // Let the framework know that we are alive, and kicking!
  51135. // reporter.progress();
  51136. // Process some more
  51137. // ...
  51138. // ...
  51139. // Increment the no. of &lt;key, value&gt; pairs processed
  51140. ++noRecords;
  51141. // Increment counters
  51142. reporter.incrCounter(NUM_RECORDS, 1);
  51143. // Every 100 records update application-level status
  51144. if ((noRecords%100) == 0) {
  51145. reporter.setStatus(mapTaskId + " processed " + noRecords +
  51146. " from input-file: " + inputFile);
  51147. }
  51148. // Output the result
  51149. output.collect(key, val);
  51150. }
  51151. }
  51152. </pre></blockquote></p>
  51153. <p>Applications may write a custom {@link MapRunnable} to exert greater
  51154. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  51155. @see JobConf
  51156. @see InputFormat
  51157. @see Partitioner
  51158. @see Reducer
  51159. @see MapReduceBase
  51160. @see MapRunnable
  51161. @see SequenceFile]]>
  51162. </doc>
  51163. </interface>
  51164. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  51165. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  51166. <class name="MapReduceBase" extends="java.lang.Object"
  51167. abstract="false"
  51168. static="false" final="false" visibility="public"
  51169. deprecated="not deprecated">
  51170. <implements name="org.apache.hadoop.io.Closeable"/>
  51171. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51172. <constructor name="MapReduceBase"
  51173. static="false" final="false" visibility="public"
  51174. deprecated="not deprecated">
  51175. </constructor>
  51176. <method name="close"
  51177. abstract="false" native="false" synchronized="false"
  51178. static="false" final="false" visibility="public"
  51179. deprecated="not deprecated">
  51180. <exception name="IOException" type="java.io.IOException"/>
  51181. <doc>
  51182. <![CDATA[Default implementation that does nothing.]]>
  51183. </doc>
  51184. </method>
  51185. <method name="configure"
  51186. abstract="false" native="false" synchronized="false"
  51187. static="false" final="false" visibility="public"
  51188. deprecated="not deprecated">
  51189. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51190. <doc>
  51191. <![CDATA[Default implementation that does nothing.]]>
  51192. </doc>
  51193. </method>
  51194. <doc>
  51195. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  51196. <p>Provides default no-op implementations for a few methods, most non-trivial
  51197. applications need to override some of them.</p>]]>
  51198. </doc>
  51199. </class>
  51200. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  51201. <!-- start class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  51202. <class name="MapReducePolicyProvider" extends="org.apache.hadoop.security.authorize.PolicyProvider"
  51203. abstract="false"
  51204. static="false" final="false" visibility="public"
  51205. deprecated="not deprecated">
  51206. <constructor name="MapReducePolicyProvider"
  51207. static="false" final="false" visibility="public"
  51208. deprecated="not deprecated">
  51209. </constructor>
  51210. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  51211. abstract="false" native="false" synchronized="false"
  51212. static="false" final="false" visibility="public"
  51213. deprecated="not deprecated">
  51214. </method>
  51215. <doc>
  51216. <![CDATA[{@link PolicyProvider} for Map-Reduce protocols.]]>
  51217. </doc>
  51218. </class>
  51219. <!-- end class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  51220. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  51221. <interface name="MapRunnable" abstract="true"
  51222. static="false" final="false" visibility="public"
  51223. deprecated="not deprecated">
  51224. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51225. <method name="run"
  51226. abstract="false" native="false" synchronized="false"
  51227. static="false" final="false" visibility="public"
  51228. deprecated="not deprecated">
  51229. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  51230. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  51231. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51232. <exception name="IOException" type="java.io.IOException"/>
  51233. <doc>
  51234. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  51235. <p>Mapping of input records to output records is complete when this method
  51236. returns.</p>
  51237. @param input the {@link RecordReader} to read the input records.
  51238. @param output the {@link OutputCollector} to collect the outputrecords.
  51239. @param reporter {@link Reporter} to report progress, status-updates etc.
  51240. @throws IOException]]>
  51241. </doc>
  51242. </method>
  51243. <doc>
  51244. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  51245. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  51246. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  51247. @see Mapper]]>
  51248. </doc>
  51249. </interface>
  51250. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  51251. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  51252. <class name="MapRunner" extends="java.lang.Object"
  51253. abstract="false"
  51254. static="false" final="false" visibility="public"
  51255. deprecated="not deprecated">
  51256. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  51257. <constructor name="MapRunner"
  51258. static="false" final="false" visibility="public"
  51259. deprecated="not deprecated">
  51260. </constructor>
  51261. <method name="configure"
  51262. abstract="false" native="false" synchronized="false"
  51263. static="false" final="false" visibility="public"
  51264. deprecated="not deprecated">
  51265. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51266. </method>
  51267. <method name="run"
  51268. abstract="false" native="false" synchronized="false"
  51269. static="false" final="false" visibility="public"
  51270. deprecated="not deprecated">
  51271. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  51272. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  51273. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51274. <exception name="IOException" type="java.io.IOException"/>
  51275. </method>
  51276. <method name="getMapper" return="org.apache.hadoop.mapred.Mapper"
  51277. abstract="false" native="false" synchronized="false"
  51278. static="false" final="false" visibility="protected"
  51279. deprecated="not deprecated">
  51280. </method>
  51281. <doc>
  51282. <![CDATA[Default {@link MapRunnable} implementation.]]>
  51283. </doc>
  51284. </class>
  51285. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  51286. <!-- start class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  51287. <class name="MapTaskCompletionEventsUpdate" extends="java.lang.Object"
  51288. abstract="false"
  51289. static="false" final="false" visibility="public"
  51290. deprecated="not deprecated">
  51291. <implements name="org.apache.hadoop.io.Writable"/>
  51292. <constructor name="MapTaskCompletionEventsUpdate"
  51293. static="false" final="false" visibility="public"
  51294. deprecated="not deprecated">
  51295. </constructor>
  51296. <constructor name="MapTaskCompletionEventsUpdate" type="org.apache.hadoop.mapred.TaskCompletionEvent[], boolean"
  51297. static="false" final="false" visibility="public"
  51298. deprecated="not deprecated">
  51299. </constructor>
  51300. <method name="shouldReset" return="boolean"
  51301. abstract="false" native="false" synchronized="false"
  51302. static="false" final="false" visibility="public"
  51303. deprecated="not deprecated">
  51304. </method>
  51305. <method name="getMapTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  51306. abstract="false" native="false" synchronized="false"
  51307. static="false" final="false" visibility="public"
  51308. deprecated="not deprecated">
  51309. </method>
  51310. <method name="write"
  51311. abstract="false" native="false" synchronized="false"
  51312. static="false" final="false" visibility="public"
  51313. deprecated="not deprecated">
  51314. <param name="out" type="java.io.DataOutput"/>
  51315. <exception name="IOException" type="java.io.IOException"/>
  51316. </method>
  51317. <method name="readFields"
  51318. abstract="false" native="false" synchronized="false"
  51319. static="false" final="false" visibility="public"
  51320. deprecated="not deprecated">
  51321. <param name="in" type="java.io.DataInput"/>
  51322. <exception name="IOException" type="java.io.IOException"/>
  51323. </method>
  51324. <doc>
  51325. <![CDATA[A class that represents the communication between the tasktracker and child
  51326. tasks w.r.t the map task completion events. It also indicates whether the
  51327. child task should reset its events index.]]>
  51328. </doc>
  51329. </class>
  51330. <!-- end class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  51331. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  51332. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  51333. abstract="true"
  51334. static="false" final="false" visibility="public"
  51335. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead">
  51336. <constructor name="MultiFileInputFormat"
  51337. static="false" final="false" visibility="public"
  51338. deprecated="not deprecated">
  51339. </constructor>
  51340. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  51341. abstract="false" native="false" synchronized="false"
  51342. static="false" final="false" visibility="public"
  51343. deprecated="not deprecated">
  51344. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51345. <param name="numSplits" type="int"/>
  51346. <exception name="IOException" type="java.io.IOException"/>
  51347. </method>
  51348. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  51349. abstract="true" native="false" synchronized="false"
  51350. static="false" final="false" visibility="public"
  51351. deprecated="not deprecated">
  51352. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  51353. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51354. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51355. <exception name="IOException" type="java.io.IOException"/>
  51356. </method>
  51357. <doc>
  51358. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  51359. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  51360. the files under the input paths. Each split returned contains <i>nearly</i>
  51361. equal content length. <br>
  51362. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  51363. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  51364. @see MultiFileSplit
  51365. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead]]>
  51366. </doc>
  51367. </class>
  51368. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  51369. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  51370. <class name="MultiFileSplit" extends="org.apache.hadoop.mapred.lib.CombineFileSplit"
  51371. abstract="false"
  51372. static="false" final="false" visibility="public"
  51373. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead">
  51374. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  51375. static="false" final="false" visibility="public"
  51376. deprecated="not deprecated">
  51377. </constructor>
  51378. <method name="getLocations" return="java.lang.String[]"
  51379. abstract="false" native="false" synchronized="false"
  51380. static="false" final="false" visibility="public"
  51381. deprecated="not deprecated">
  51382. <exception name="IOException" type="java.io.IOException"/>
  51383. </method>
  51384. <method name="toString" return="java.lang.String"
  51385. abstract="false" native="false" synchronized="false"
  51386. static="false" final="false" visibility="public"
  51387. deprecated="not deprecated">
  51388. </method>
  51389. <doc>
  51390. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  51391. class does not represent a split of a file, but a split of input files
  51392. into smaller sets. The atomic unit of split is a file. <br>
  51393. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  51394. reading one record per file.
  51395. @see FileSplit
  51396. @see MultiFileInputFormat
  51397. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead]]>
  51398. </doc>
  51399. </class>
  51400. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  51401. <!-- start class org.apache.hadoop.mapred.Operation -->
  51402. <class name="Operation" extends="java.lang.Enum"
  51403. abstract="false"
  51404. static="false" final="true" visibility="public"
  51405. deprecated="not deprecated">
  51406. <method name="values" return="org.apache.hadoop.mapred.Operation[]"
  51407. abstract="false" native="false" synchronized="false"
  51408. static="true" final="false" visibility="public"
  51409. deprecated="not deprecated">
  51410. </method>
  51411. <method name="valueOf" return="org.apache.hadoop.mapred.Operation"
  51412. abstract="false" native="false" synchronized="false"
  51413. static="true" final="false" visibility="public"
  51414. deprecated="not deprecated">
  51415. <param name="name" type="java.lang.String"/>
  51416. </method>
  51417. <field name="VIEW_JOB_COUNTERS" type="org.apache.hadoop.mapred.Operation"
  51418. transient="false" volatile="false"
  51419. static="true" final="true" visibility="public"
  51420. deprecated="not deprecated">
  51421. </field>
  51422. <field name="VIEW_JOB_DETAILS" type="org.apache.hadoop.mapred.Operation"
  51423. transient="false" volatile="false"
  51424. static="true" final="true" visibility="public"
  51425. deprecated="not deprecated">
  51426. </field>
  51427. <field name="VIEW_TASK_LOGS" type="org.apache.hadoop.mapred.Operation"
  51428. transient="false" volatile="false"
  51429. static="true" final="true" visibility="public"
  51430. deprecated="not deprecated">
  51431. </field>
  51432. <field name="KILL_JOB" type="org.apache.hadoop.mapred.Operation"
  51433. transient="false" volatile="false"
  51434. static="true" final="true" visibility="public"
  51435. deprecated="not deprecated">
  51436. </field>
  51437. <field name="FAIL_TASK" type="org.apache.hadoop.mapred.Operation"
  51438. transient="false" volatile="false"
  51439. static="true" final="true" visibility="public"
  51440. deprecated="not deprecated">
  51441. </field>
  51442. <field name="KILL_TASK" type="org.apache.hadoop.mapred.Operation"
  51443. transient="false" volatile="false"
  51444. static="true" final="true" visibility="public"
  51445. deprecated="not deprecated">
  51446. </field>
  51447. <field name="SET_JOB_PRIORITY" type="org.apache.hadoop.mapred.Operation"
  51448. transient="false" volatile="false"
  51449. static="true" final="true" visibility="public"
  51450. deprecated="not deprecated">
  51451. </field>
  51452. <field name="SUBMIT_JOB" type="org.apache.hadoop.mapred.Operation"
  51453. transient="false" volatile="false"
  51454. static="true" final="true" visibility="public"
  51455. deprecated="not deprecated">
  51456. </field>
  51457. <field name="qACLNeeded" type="org.apache.hadoop.mapred.QueueManager.QueueACL"
  51458. transient="false" volatile="false"
  51459. static="false" final="false" visibility="public"
  51460. deprecated="not deprecated">
  51461. </field>
  51462. <field name="jobACLNeeded" type="org.apache.hadoop.mapreduce.JobACL"
  51463. transient="false" volatile="false"
  51464. static="false" final="false" visibility="public"
  51465. deprecated="not deprecated">
  51466. </field>
  51467. <doc>
  51468. <![CDATA[Generic operation that maps to the dependent set of ACLs that drive the
  51469. authorization of the operation.]]>
  51470. </doc>
  51471. </class>
  51472. <!-- end class org.apache.hadoop.mapred.Operation -->
  51473. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  51474. <interface name="OutputCollector" abstract="true"
  51475. static="false" final="false" visibility="public"
  51476. deprecated="not deprecated">
  51477. <method name="collect"
  51478. abstract="false" native="false" synchronized="false"
  51479. static="false" final="false" visibility="public"
  51480. deprecated="not deprecated">
  51481. <param name="key" type="java.lang.Object"/>
  51482. <param name="value" type="java.lang.Object"/>
  51483. <exception name="IOException" type="java.io.IOException"/>
  51484. <doc>
  51485. <![CDATA[Adds a key/value pair to the output.
  51486. @param key the key to collect.
  51487. @param value to value to collect.
  51488. @throws IOException]]>
  51489. </doc>
  51490. </method>
  51491. <doc>
  51492. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  51493. and {@link Reducer}s.
  51494. <p><code>OutputCollector</code> is the generalization of the facility
  51495. provided by the Map-Reduce framework to collect data output by either the
  51496. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  51497. or the output of the job.</p>]]>
  51498. </doc>
  51499. </interface>
  51500. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  51501. <!-- start class org.apache.hadoop.mapred.OutputCommitter -->
  51502. <class name="OutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  51503. abstract="true"
  51504. static="false" final="false" visibility="public"
  51505. deprecated="not deprecated">
  51506. <constructor name="OutputCommitter"
  51507. static="false" final="false" visibility="public"
  51508. deprecated="not deprecated">
  51509. </constructor>
  51510. <method name="setupJob"
  51511. abstract="true" native="false" synchronized="false"
  51512. static="false" final="false" visibility="public"
  51513. deprecated="not deprecated">
  51514. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  51515. <exception name="IOException" type="java.io.IOException"/>
  51516. <doc>
  51517. <![CDATA[For the framework to setup the job output during initialization
  51518. @param jobContext Context of the job whose output is being written.
  51519. @throws IOException if temporary output could not be created]]>
  51520. </doc>
  51521. </method>
  51522. <method name="cleanupJob"
  51523. abstract="false" native="false" synchronized="false"
  51524. static="false" final="false" visibility="public"
  51525. deprecated="use {@link #commitJob(JobContext)} or
  51526. {@link #abortJob(JobContext, int)} instead">
  51527. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  51528. <exception name="IOException" type="java.io.IOException"/>
  51529. <doc>
  51530. <![CDATA[For cleaning up the job's output after job completion
  51531. @deprecated use {@link #commitJob(JobContext)} or
  51532. {@link #abortJob(JobContext, int)} instead]]>
  51533. </doc>
  51534. </method>
  51535. <method name="commitJob"
  51536. abstract="false" native="false" synchronized="false"
  51537. static="false" final="false" visibility="public"
  51538. deprecated="not deprecated">
  51539. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  51540. <exception name="IOException" type="java.io.IOException"/>
  51541. <doc>
  51542. <![CDATA[For committing job's output after successful job completion. Note that this
  51543. is invoked for jobs with final run state as {@link JobStatus#SUCCEEDED}.
  51544. @param jobContext Context of the job whose output is being written.
  51545. @throws IOException]]>
  51546. </doc>
  51547. </method>
  51548. <method name="abortJob"
  51549. abstract="false" native="false" synchronized="false"
  51550. static="false" final="false" visibility="public"
  51551. deprecated="not deprecated">
  51552. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  51553. <param name="status" type="int"/>
  51554. <exception name="IOException" type="java.io.IOException"/>
  51555. <doc>
  51556. <![CDATA[For cleaning up the job's output after job failure.
  51557. @param jobContext Context of the job whose output is being written.
  51558. @param status Final run state of the job, should be
  51559. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}
  51560. @throws IOException]]>
  51561. </doc>
  51562. </method>
  51563. <method name="setupTask"
  51564. abstract="true" native="false" synchronized="false"
  51565. static="false" final="false" visibility="public"
  51566. deprecated="not deprecated">
  51567. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  51568. <exception name="IOException" type="java.io.IOException"/>
  51569. <doc>
  51570. <![CDATA[Sets up output for the task.
  51571. @param taskContext Context of the task whose output is being written.
  51572. @throws IOException]]>
  51573. </doc>
  51574. </method>
  51575. <method name="needsTaskCommit" return="boolean"
  51576. abstract="true" native="false" synchronized="false"
  51577. static="false" final="false" visibility="public"
  51578. deprecated="not deprecated">
  51579. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  51580. <exception name="IOException" type="java.io.IOException"/>
  51581. <doc>
  51582. <![CDATA[Check whether task needs a commit
  51583. @param taskContext
  51584. @return true/false
  51585. @throws IOException]]>
  51586. </doc>
  51587. </method>
  51588. <method name="commitTask"
  51589. abstract="true" native="false" synchronized="false"
  51590. static="false" final="false" visibility="public"
  51591. deprecated="not deprecated">
  51592. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  51593. <exception name="IOException" type="java.io.IOException"/>
  51594. <doc>
  51595. <![CDATA[To promote the task's temporary output to final output location
  51596. The task's output is moved to the job's output directory.
  51597. @param taskContext Context of the task whose output is being written.
  51598. @throws IOException if commit is not]]>
  51599. </doc>
  51600. </method>
  51601. <method name="abortTask"
  51602. abstract="true" native="false" synchronized="false"
  51603. static="false" final="false" visibility="public"
  51604. deprecated="not deprecated">
  51605. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  51606. <exception name="IOException" type="java.io.IOException"/>
  51607. <doc>
  51608. <![CDATA[Discard the task output
  51609. @param taskContext
  51610. @throws IOException]]>
  51611. </doc>
  51612. </method>
  51613. <method name="setupJob"
  51614. abstract="false" native="false" synchronized="false"
  51615. static="false" final="true" visibility="public"
  51616. deprecated="not deprecated">
  51617. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  51618. <exception name="IOException" type="java.io.IOException"/>
  51619. <doc>
  51620. <![CDATA[This method implements the new interface by calling the old method. Note
  51621. that the input types are different between the new and old apis and this
  51622. is a bridge between the two.]]>
  51623. </doc>
  51624. </method>
  51625. <method name="cleanupJob"
  51626. abstract="false" native="false" synchronized="false"
  51627. static="false" final="true" visibility="public"
  51628. deprecated="not deprecated">
  51629. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  51630. <exception name="IOException" type="java.io.IOException"/>
  51631. <doc>
  51632. <![CDATA[This method implements the new interface by calling the old method. Note
  51633. that the input types are different between the new and old apis and this
  51634. is a bridge between the two.]]>
  51635. </doc>
  51636. </method>
  51637. <method name="commitJob"
  51638. abstract="false" native="false" synchronized="false"
  51639. static="false" final="true" visibility="public"
  51640. deprecated="not deprecated">
  51641. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  51642. <exception name="IOException" type="java.io.IOException"/>
  51643. <doc>
  51644. <![CDATA[This method implements the new interface by calling the old method. Note
  51645. that the input types are different between the new and old apis and this
  51646. is a bridge between the two.]]>
  51647. </doc>
  51648. </method>
  51649. <method name="abortJob"
  51650. abstract="false" native="false" synchronized="false"
  51651. static="false" final="true" visibility="public"
  51652. deprecated="not deprecated">
  51653. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  51654. <param name="runState" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  51655. <exception name="IOException" type="java.io.IOException"/>
  51656. <doc>
  51657. <![CDATA[This method implements the new interface by calling the old method. Note
  51658. that the input types are different between the new and old apis and this
  51659. is a bridge between the two.]]>
  51660. </doc>
  51661. </method>
  51662. <method name="setupTask"
  51663. abstract="false" native="false" synchronized="false"
  51664. static="false" final="true" visibility="public"
  51665. deprecated="not deprecated">
  51666. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  51667. <exception name="IOException" type="java.io.IOException"/>
  51668. <doc>
  51669. <![CDATA[This method implements the new interface by calling the old method. Note
  51670. that the input types are different between the new and old apis and this
  51671. is a bridge between the two.]]>
  51672. </doc>
  51673. </method>
  51674. <method name="needsTaskCommit" return="boolean"
  51675. abstract="false" native="false" synchronized="false"
  51676. static="false" final="true" visibility="public"
  51677. deprecated="not deprecated">
  51678. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  51679. <exception name="IOException" type="java.io.IOException"/>
  51680. <doc>
  51681. <![CDATA[This method implements the new interface by calling the old method. Note
  51682. that the input types are different between the new and old apis and this
  51683. is a bridge between the two.]]>
  51684. </doc>
  51685. </method>
  51686. <method name="commitTask"
  51687. abstract="false" native="false" synchronized="false"
  51688. static="false" final="true" visibility="public"
  51689. deprecated="not deprecated">
  51690. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  51691. <exception name="IOException" type="java.io.IOException"/>
  51692. <doc>
  51693. <![CDATA[This method implements the new interface by calling the old method. Note
  51694. that the input types are different between the new and old apis and this
  51695. is a bridge between the two.]]>
  51696. </doc>
  51697. </method>
  51698. <method name="abortTask"
  51699. abstract="false" native="false" synchronized="false"
  51700. static="false" final="true" visibility="public"
  51701. deprecated="not deprecated">
  51702. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  51703. <exception name="IOException" type="java.io.IOException"/>
  51704. <doc>
  51705. <![CDATA[This method implements the new interface by calling the old method. Note
  51706. that the input types are different between the new and old apis and this
  51707. is a bridge between the two.]]>
  51708. </doc>
  51709. </method>
  51710. <doc>
  51711. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  51712. Map-Reduce job.
  51713. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  51714. the job to:<p>
  51715. <ol>
  51716. <li>
  51717. Setup the job during initialization. For example, create the temporary
  51718. output directory for the job during the initialization of the job.
  51719. </li>
  51720. <li>
  51721. Cleanup the job after the job completion. For example, remove the
  51722. temporary output directory after the job completion.
  51723. </li>
  51724. <li>
  51725. Setup the task temporary output.
  51726. </li>
  51727. <li>
  51728. Check whether a task needs a commit. This is to avoid the commit
  51729. procedure if a task does not need commit.
  51730. </li>
  51731. <li>
  51732. Commit of the task output.
  51733. </li>
  51734. <li>
  51735. Discard the task commit.
  51736. </li>
  51737. </ol>
  51738. @see FileOutputCommitter
  51739. @see JobContext
  51740. @see TaskAttemptContext]]>
  51741. </doc>
  51742. </class>
  51743. <!-- end class org.apache.hadoop.mapred.OutputCommitter -->
  51744. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  51745. <interface name="OutputFormat" abstract="true"
  51746. static="false" final="false" visibility="public"
  51747. deprecated="not deprecated">
  51748. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  51749. abstract="false" native="false" synchronized="false"
  51750. static="false" final="false" visibility="public"
  51751. deprecated="not deprecated">
  51752. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51753. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51754. <param name="name" type="java.lang.String"/>
  51755. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  51756. <exception name="IOException" type="java.io.IOException"/>
  51757. <doc>
  51758. <![CDATA[Get the {@link RecordWriter} for the given job.
  51759. @param ignored
  51760. @param job configuration for the job whose output is being written.
  51761. @param name the unique name for this part of the output.
  51762. @param progress mechanism for reporting progress while writing to file.
  51763. @return a {@link RecordWriter} to write the output for the job.
  51764. @throws IOException]]>
  51765. </doc>
  51766. </method>
  51767. <method name="checkOutputSpecs"
  51768. abstract="false" native="false" synchronized="false"
  51769. static="false" final="false" visibility="public"
  51770. deprecated="not deprecated">
  51771. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51772. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51773. <exception name="IOException" type="java.io.IOException"/>
  51774. <doc>
  51775. <![CDATA[Check for validity of the output-specification for the job.
  51776. <p>This is to validate the output specification for the job when it is
  51777. a job is submitted. Typically checks that it does not already exist,
  51778. throwing an exception when it already exists, so that output is not
  51779. overwritten.</p>
  51780. @param ignored
  51781. @param job job configuration.
  51782. @throws IOException when output should not be attempted]]>
  51783. </doc>
  51784. </method>
  51785. <doc>
  51786. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  51787. Map-Reduce job.
  51788. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  51789. job to:<p>
  51790. <ol>
  51791. <li>
  51792. Validate the output-specification of the job. For e.g. check that the
  51793. output directory doesn't already exist.
  51794. <li>
  51795. Provide the {@link RecordWriter} implementation to be used to write out
  51796. the output files of the job. Output files are stored in a
  51797. {@link FileSystem}.
  51798. </li>
  51799. </ol>
  51800. @see RecordWriter
  51801. @see JobConf]]>
  51802. </doc>
  51803. </interface>
  51804. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  51805. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  51806. <class name="OutputLogFilter" extends="java.lang.Object"
  51807. abstract="false"
  51808. static="false" final="false" visibility="public"
  51809. deprecated="Use
  51810. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  51811. instead.">
  51812. <implements name="org.apache.hadoop.fs.PathFilter"/>
  51813. <constructor name="OutputLogFilter"
  51814. static="false" final="false" visibility="public"
  51815. deprecated="not deprecated">
  51816. </constructor>
  51817. <method name="accept" return="boolean"
  51818. abstract="false" native="false" synchronized="false"
  51819. static="false" final="false" visibility="public"
  51820. deprecated="not deprecated">
  51821. <param name="path" type="org.apache.hadoop.fs.Path"/>
  51822. </method>
  51823. <doc>
  51824. <![CDATA[This class filters log files from directory given
  51825. It doesnt accept paths having _logs.
  51826. This can be used to list paths of output directory as follows:
  51827. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  51828. new OutputLogFilter()));
  51829. @deprecated Use
  51830. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  51831. instead.]]>
  51832. </doc>
  51833. </class>
  51834. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  51835. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  51836. <interface name="Partitioner" abstract="true"
  51837. static="false" final="false" visibility="public"
  51838. deprecated="not deprecated">
  51839. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51840. <method name="getPartition" return="int"
  51841. abstract="false" native="false" synchronized="false"
  51842. static="false" final="false" visibility="public"
  51843. deprecated="not deprecated">
  51844. <param name="key" type="java.lang.Object"/>
  51845. <param name="value" type="java.lang.Object"/>
  51846. <param name="numPartitions" type="int"/>
  51847. <doc>
  51848. <![CDATA[Get the paritition number for a given key (hence record) given the total
  51849. number of partitions i.e. number of reduce-tasks for the job.
  51850. <p>Typically a hash function on a all or a subset of the key.</p>
  51851. @param key the key to be paritioned.
  51852. @param value the entry value.
  51853. @param numPartitions the total number of partitions.
  51854. @return the partition number for the <code>key</code>.]]>
  51855. </doc>
  51856. </method>
  51857. <doc>
  51858. <![CDATA[Partitions the key space.
  51859. <p><code>Partitioner</code> controls the partitioning of the keys of the
  51860. intermediate map-outputs. The key (or a subset of the key) is used to derive
  51861. the partition, typically by a hash function. The total number of partitions
  51862. is the same as the number of reduce tasks for the job. Hence this controls
  51863. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  51864. record) is sent for reduction.</p>
  51865. @see Reducer]]>
  51866. </doc>
  51867. </interface>
  51868. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  51869. <!-- start class org.apache.hadoop.mapred.QueueAclsInfo -->
  51870. <class name="QueueAclsInfo" extends="java.lang.Object"
  51871. abstract="false"
  51872. static="false" final="false" visibility="public"
  51873. deprecated="not deprecated">
  51874. <implements name="org.apache.hadoop.io.Writable"/>
  51875. <constructor name="QueueAclsInfo"
  51876. static="false" final="false" visibility="public"
  51877. deprecated="not deprecated">
  51878. <doc>
  51879. <![CDATA[Default constructor for QueueAclsInfo.]]>
  51880. </doc>
  51881. </constructor>
  51882. <constructor name="QueueAclsInfo" type="java.lang.String, java.lang.String[]"
  51883. static="false" final="false" visibility="public"
  51884. deprecated="not deprecated">
  51885. <doc>
  51886. <![CDATA[Construct a new QueueAclsInfo object using the queue name and the
  51887. queue operations array
  51888. @param queueName Name of the job queue
  51889. @param queue operations]]>
  51890. </doc>
  51891. </constructor>
  51892. <method name="getQueueName" return="java.lang.String"
  51893. abstract="false" native="false" synchronized="false"
  51894. static="false" final="false" visibility="public"
  51895. deprecated="not deprecated">
  51896. </method>
  51897. <method name="setQueueName"
  51898. abstract="false" native="false" synchronized="false"
  51899. static="false" final="false" visibility="protected"
  51900. deprecated="not deprecated">
  51901. <param name="queueName" type="java.lang.String"/>
  51902. </method>
  51903. <method name="getOperations" return="java.lang.String[]"
  51904. abstract="false" native="false" synchronized="false"
  51905. static="false" final="false" visibility="public"
  51906. deprecated="not deprecated">
  51907. </method>
  51908. <method name="readFields"
  51909. abstract="false" native="false" synchronized="false"
  51910. static="false" final="false" visibility="public"
  51911. deprecated="not deprecated">
  51912. <param name="in" type="java.io.DataInput"/>
  51913. <exception name="IOException" type="java.io.IOException"/>
  51914. </method>
  51915. <method name="write"
  51916. abstract="false" native="false" synchronized="false"
  51917. static="false" final="false" visibility="public"
  51918. deprecated="not deprecated">
  51919. <param name="out" type="java.io.DataOutput"/>
  51920. <exception name="IOException" type="java.io.IOException"/>
  51921. </method>
  51922. <doc>
  51923. <![CDATA[Class to encapsulate Queue ACLs for a particular
  51924. user.]]>
  51925. </doc>
  51926. </class>
  51927. <!-- end class org.apache.hadoop.mapred.QueueAclsInfo -->
  51928. <!-- start class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  51929. <class name="RawHistoryFileServlet" extends="javax.servlet.http.HttpServlet"
  51930. abstract="false"
  51931. static="false" final="false" visibility="public"
  51932. deprecated="not deprecated">
  51933. <constructor name="RawHistoryFileServlet"
  51934. static="false" final="false" visibility="public"
  51935. deprecated="not deprecated">
  51936. </constructor>
  51937. <method name="init"
  51938. abstract="false" native="false" synchronized="false"
  51939. static="false" final="false" visibility="public"
  51940. deprecated="not deprecated">
  51941. <param name="servletConfig" type="javax.servlet.ServletConfig"/>
  51942. <exception name="ServletException" type="javax.servlet.ServletException"/>
  51943. </method>
  51944. <method name="doGet"
  51945. abstract="false" native="false" synchronized="false"
  51946. static="false" final="false" visibility="protected"
  51947. deprecated="not deprecated">
  51948. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  51949. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  51950. <exception name="ServletException" type="javax.servlet.ServletException"/>
  51951. <exception name="IOException" type="java.io.IOException"/>
  51952. </method>
  51953. </class>
  51954. <!-- end class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  51955. <!-- start interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  51956. <interface name="RawKeyValueIterator" abstract="true"
  51957. static="false" final="false" visibility="public"
  51958. deprecated="not deprecated">
  51959. <method name="getKey" return="org.apache.hadoop.io.DataInputBuffer"
  51960. abstract="false" native="false" synchronized="false"
  51961. static="false" final="false" visibility="public"
  51962. deprecated="not deprecated">
  51963. <exception name="IOException" type="java.io.IOException"/>
  51964. <doc>
  51965. <![CDATA[Gets the current raw key.
  51966. @return Gets the current raw key as a DataInputBuffer
  51967. @throws IOException]]>
  51968. </doc>
  51969. </method>
  51970. <method name="getValue" return="org.apache.hadoop.io.DataInputBuffer"
  51971. abstract="false" native="false" synchronized="false"
  51972. static="false" final="false" visibility="public"
  51973. deprecated="not deprecated">
  51974. <exception name="IOException" type="java.io.IOException"/>
  51975. <doc>
  51976. <![CDATA[Gets the current raw value.
  51977. @return Gets the current raw value as a DataInputBuffer
  51978. @throws IOException]]>
  51979. </doc>
  51980. </method>
  51981. <method name="next" return="boolean"
  51982. abstract="false" native="false" synchronized="false"
  51983. static="false" final="false" visibility="public"
  51984. deprecated="not deprecated">
  51985. <exception name="IOException" type="java.io.IOException"/>
  51986. <doc>
  51987. <![CDATA[Sets up the current key and value (for getKey and getValue).
  51988. @return <code>true</code> if there exists a key/value,
  51989. <code>false</code> otherwise.
  51990. @throws IOException]]>
  51991. </doc>
  51992. </method>
  51993. <method name="close"
  51994. abstract="false" native="false" synchronized="false"
  51995. static="false" final="false" visibility="public"
  51996. deprecated="not deprecated">
  51997. <exception name="IOException" type="java.io.IOException"/>
  51998. <doc>
  51999. <![CDATA[Closes the iterator so that the underlying streams can be closed.
  52000. @throws IOException]]>
  52001. </doc>
  52002. </method>
  52003. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  52004. abstract="false" native="false" synchronized="false"
  52005. static="false" final="false" visibility="public"
  52006. deprecated="not deprecated">
  52007. <doc>
  52008. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  52009. indicating the bytes processed by the iterator so far]]>
  52010. </doc>
  52011. </method>
  52012. <doc>
  52013. <![CDATA[<code>RawKeyValueIterator</code> is an iterator used to iterate over
  52014. the raw keys and values during sort/merge of intermediate data.]]>
  52015. </doc>
  52016. </interface>
  52017. <!-- end interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  52018. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  52019. <interface name="RecordReader" abstract="true"
  52020. static="false" final="false" visibility="public"
  52021. deprecated="not deprecated">
  52022. <method name="next" return="boolean"
  52023. abstract="false" native="false" synchronized="false"
  52024. static="false" final="false" visibility="public"
  52025. deprecated="not deprecated">
  52026. <param name="key" type="java.lang.Object"/>
  52027. <param name="value" type="java.lang.Object"/>
  52028. <exception name="IOException" type="java.io.IOException"/>
  52029. <doc>
  52030. <![CDATA[Reads the next key/value pair from the input for processing.
  52031. @param key the key to read data into
  52032. @param value the value to read data into
  52033. @return true iff a key/value was read, false if at EOF]]>
  52034. </doc>
  52035. </method>
  52036. <method name="createKey" return="java.lang.Object"
  52037. abstract="false" native="false" synchronized="false"
  52038. static="false" final="false" visibility="public"
  52039. deprecated="not deprecated">
  52040. <doc>
  52041. <![CDATA[Create an object of the appropriate type to be used as a key.
  52042. @return a new key object.]]>
  52043. </doc>
  52044. </method>
  52045. <method name="createValue" return="java.lang.Object"
  52046. abstract="false" native="false" synchronized="false"
  52047. static="false" final="false" visibility="public"
  52048. deprecated="not deprecated">
  52049. <doc>
  52050. <![CDATA[Create an object of the appropriate type to be used as a value.
  52051. @return a new value object.]]>
  52052. </doc>
  52053. </method>
  52054. <method name="getPos" return="long"
  52055. abstract="false" native="false" synchronized="false"
  52056. static="false" final="false" visibility="public"
  52057. deprecated="not deprecated">
  52058. <exception name="IOException" type="java.io.IOException"/>
  52059. <doc>
  52060. <![CDATA[Returns the current position in the input.
  52061. @return the current position in the input.
  52062. @throws IOException]]>
  52063. </doc>
  52064. </method>
  52065. <method name="close"
  52066. abstract="false" native="false" synchronized="false"
  52067. static="false" final="false" visibility="public"
  52068. deprecated="not deprecated">
  52069. <exception name="IOException" type="java.io.IOException"/>
  52070. <doc>
  52071. <![CDATA[Close this {@link InputSplit} to future operations.
  52072. @throws IOException]]>
  52073. </doc>
  52074. </method>
  52075. <method name="getProgress" return="float"
  52076. abstract="false" native="false" synchronized="false"
  52077. static="false" final="false" visibility="public"
  52078. deprecated="not deprecated">
  52079. <exception name="IOException" type="java.io.IOException"/>
  52080. <doc>
  52081. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  52082. has been processed by?
  52083. @return progress from <code>0.0</code> to <code>1.0</code>.
  52084. @throws IOException]]>
  52085. </doc>
  52086. </method>
  52087. <doc>
  52088. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  52089. {@link InputSplit}.
  52090. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  52091. the input, provided by the <code>InputSplit</code>, and presents a
  52092. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  52093. processing. It thus assumes the responsibility of processing record
  52094. boundaries and presenting the tasks with keys and values.</p>
  52095. @see InputSplit
  52096. @see InputFormat]]>
  52097. </doc>
  52098. </interface>
  52099. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  52100. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  52101. <interface name="RecordWriter" abstract="true"
  52102. static="false" final="false" visibility="public"
  52103. deprecated="not deprecated">
  52104. <method name="write"
  52105. abstract="false" native="false" synchronized="false"
  52106. static="false" final="false" visibility="public"
  52107. deprecated="not deprecated">
  52108. <param name="key" type="java.lang.Object"/>
  52109. <param name="value" type="java.lang.Object"/>
  52110. <exception name="IOException" type="java.io.IOException"/>
  52111. <doc>
  52112. <![CDATA[Writes a key/value pair.
  52113. @param key the key to write.
  52114. @param value the value to write.
  52115. @throws IOException]]>
  52116. </doc>
  52117. </method>
  52118. <method name="close"
  52119. abstract="false" native="false" synchronized="false"
  52120. static="false" final="false" visibility="public"
  52121. deprecated="not deprecated">
  52122. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52123. <exception name="IOException" type="java.io.IOException"/>
  52124. <doc>
  52125. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  52126. @param reporter facility to report progress.
  52127. @throws IOException]]>
  52128. </doc>
  52129. </method>
  52130. <doc>
  52131. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  52132. to an output file.
  52133. <p><code>RecordWriter</code> implementations write the job outputs to the
  52134. {@link FileSystem}.
  52135. @see OutputFormat]]>
  52136. </doc>
  52137. </interface>
  52138. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  52139. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  52140. <interface name="Reducer" abstract="true"
  52141. static="false" final="false" visibility="public"
  52142. deprecated="not deprecated">
  52143. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  52144. <implements name="org.apache.hadoop.io.Closeable"/>
  52145. <method name="reduce"
  52146. abstract="false" native="false" synchronized="false"
  52147. static="false" final="false" visibility="public"
  52148. deprecated="not deprecated">
  52149. <param name="key" type="java.lang.Object"/>
  52150. <param name="values" type="java.util.Iterator"/>
  52151. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  52152. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52153. <exception name="IOException" type="java.io.IOException"/>
  52154. <doc>
  52155. <![CDATA[<i>Reduces</i> values for a given key.
  52156. <p>The framework calls this method for each
  52157. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  52158. Output values must be of the same type as input values. Input keys must
  52159. not be altered. The framework will <b>reuse</b> the key and value objects
  52160. that are passed into the reduce, therefore the application should clone
  52161. the objects they want to keep a copy of. In many cases, all values are
  52162. combined into zero or one value.
  52163. </p>
  52164. <p>Output pairs are collected with calls to
  52165. {@link OutputCollector#collect(Object,Object)}.</p>
  52166. <p>Applications can use the {@link Reporter} provided to report progress
  52167. or just indicate that they are alive. In scenarios where the application
  52168. takes an insignificant amount of time to process individual key/value
  52169. pairs, this is crucial since the framework might assume that the task has
  52170. timed-out and kill that task. The other way of avoiding this is to set
  52171. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  52172. mapred.task.timeout</a> to a high-enough value (or even zero for no
  52173. time-outs).</p>
  52174. @param key the key.
  52175. @param values the list of values to reduce.
  52176. @param output to collect keys and combined values.
  52177. @param reporter facility to report progress.]]>
  52178. </doc>
  52179. </method>
  52180. <doc>
  52181. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  52182. values.
  52183. <p>The number of <code>Reducer</code>s for the job is set by the user via
  52184. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  52185. can access the {@link JobConf} for the job via the
  52186. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  52187. Similarly they can use the {@link Closeable#close()} method for
  52188. de-initialization.</p>
  52189. <p><code>Reducer</code> has 3 primary phases:</p>
  52190. <ol>
  52191. <li>
  52192. <h4 id="Shuffle">Shuffle</h4>
  52193. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  52194. In the phase the framework, for each <code>Reducer</code>, fetches the
  52195. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  52196. </p>
  52197. </li>
  52198. <li>
  52199. <h4 id="Sort">Sort</h4>
  52200. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  52201. (since different <code>Mapper</code>s may have output the same key) in this
  52202. stage.</p>
  52203. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  52204. being fetched they are merged.</p>
  52205. <h5 id="SecondarySort">SecondarySort</h5>
  52206. <p>If equivalence rules for keys while grouping the intermediates are
  52207. different from those for grouping keys before reduction, then one may
  52208. specify a <code>Comparator</code> via
  52209. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  52210. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  52211. control how intermediate keys are grouped, these can be used in conjunction
  52212. to simulate <i>secondary sort on values</i>.</p>
  52213. For example, say that you want to find duplicate web pages and tag them
  52214. all with the url of the "best" known example. You would set up the job
  52215. like:
  52216. <ul>
  52217. <li>Map Input Key: url</li>
  52218. <li>Map Input Value: document</li>
  52219. <li>Map Output Key: document checksum, url pagerank</li>
  52220. <li>Map Output Value: url</li>
  52221. <li>Partitioner: by checksum</li>
  52222. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  52223. <li>OutputValueGroupingComparator: by checksum</li>
  52224. </ul>
  52225. </li>
  52226. <li>
  52227. <h4 id="Reduce">Reduce</h4>
  52228. <p>In this phase the
  52229. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  52230. method is called for each <code>&lt;key, (list of values)></code> pair in
  52231. the grouped inputs.</p>
  52232. <p>The output of the reduce task is typically written to the
  52233. {@link FileSystem} via
  52234. {@link OutputCollector#collect(Object, Object)}.</p>
  52235. </li>
  52236. </ol>
  52237. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  52238. <p>Example:</p>
  52239. <p><blockquote><pre>
  52240. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  52241. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  52242. static enum MyCounters { NUM_RECORDS }
  52243. private String reduceTaskId;
  52244. private int noKeys = 0;
  52245. public void configure(JobConf job) {
  52246. reduceTaskId = job.get("mapred.task.id");
  52247. }
  52248. public void reduce(K key, Iterator&lt;V&gt; values,
  52249. OutputCollector&lt;K, V&gt; output,
  52250. Reporter reporter)
  52251. throws IOException {
  52252. // Process
  52253. int noValues = 0;
  52254. while (values.hasNext()) {
  52255. V value = values.next();
  52256. // Increment the no. of values for this key
  52257. ++noValues;
  52258. // Process the &lt;key, value&gt; pair (assume this takes a while)
  52259. // ...
  52260. // ...
  52261. // Let the framework know that we are alive, and kicking!
  52262. if ((noValues%10) == 0) {
  52263. reporter.progress();
  52264. }
  52265. // Process some more
  52266. // ...
  52267. // ...
  52268. // Output the &lt;key, value&gt;
  52269. output.collect(key, value);
  52270. }
  52271. // Increment the no. of &lt;key, list of values&gt; pairs processed
  52272. ++noKeys;
  52273. // Increment counters
  52274. reporter.incrCounter(NUM_RECORDS, 1);
  52275. // Every 100 keys update application-level status
  52276. if ((noKeys%100) == 0) {
  52277. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  52278. }
  52279. }
  52280. }
  52281. </pre></blockquote></p>
  52282. @see Mapper
  52283. @see Partitioner
  52284. @see Reporter
  52285. @see MapReduceBase]]>
  52286. </doc>
  52287. </interface>
  52288. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  52289. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  52290. <interface name="Reporter" abstract="true"
  52291. static="false" final="false" visibility="public"
  52292. deprecated="not deprecated">
  52293. <implements name="org.apache.hadoop.util.Progressable"/>
  52294. <method name="setStatus"
  52295. abstract="false" native="false" synchronized="false"
  52296. static="false" final="false" visibility="public"
  52297. deprecated="not deprecated">
  52298. <param name="status" type="java.lang.String"/>
  52299. <doc>
  52300. <![CDATA[Set the status description for the task.
  52301. @param status brief description of the current status.]]>
  52302. </doc>
  52303. </method>
  52304. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  52305. abstract="false" native="false" synchronized="false"
  52306. static="false" final="false" visibility="public"
  52307. deprecated="not deprecated">
  52308. <param name="name" type="java.lang.Enum"/>
  52309. <doc>
  52310. <![CDATA[Get the {@link Counter} of the given group with the given name.
  52311. @param name counter name
  52312. @return the <code>Counter</code> of the given group/name.]]>
  52313. </doc>
  52314. </method>
  52315. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  52316. abstract="false" native="false" synchronized="false"
  52317. static="false" final="false" visibility="public"
  52318. deprecated="not deprecated">
  52319. <param name="group" type="java.lang.String"/>
  52320. <param name="name" type="java.lang.String"/>
  52321. <doc>
  52322. <![CDATA[Get the {@link Counter} of the given group with the given name.
  52323. @param group counter group
  52324. @param name counter name
  52325. @return the <code>Counter</code> of the given group/name.]]>
  52326. </doc>
  52327. </method>
  52328. <method name="incrCounter"
  52329. abstract="false" native="false" synchronized="false"
  52330. static="false" final="false" visibility="public"
  52331. deprecated="not deprecated">
  52332. <param name="key" type="java.lang.Enum"/>
  52333. <param name="amount" type="long"/>
  52334. <doc>
  52335. <![CDATA[Increments the counter identified by the key, which can be of
  52336. any {@link Enum} type, by the specified amount.
  52337. @param key key to identify the counter to be incremented. The key can be
  52338. be any <code>Enum</code>.
  52339. @param amount A non-negative amount by which the counter is to
  52340. be incremented.]]>
  52341. </doc>
  52342. </method>
  52343. <method name="incrCounter"
  52344. abstract="false" native="false" synchronized="false"
  52345. static="false" final="false" visibility="public"
  52346. deprecated="not deprecated">
  52347. <param name="group" type="java.lang.String"/>
  52348. <param name="counter" type="java.lang.String"/>
  52349. <param name="amount" type="long"/>
  52350. <doc>
  52351. <![CDATA[Increments the counter identified by the group and counter name
  52352. by the specified amount.
  52353. @param group name to identify the group of the counter to be incremented.
  52354. @param counter name to identify the counter within the group.
  52355. @param amount A non-negative amount by which the counter is to
  52356. be incremented.]]>
  52357. </doc>
  52358. </method>
  52359. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  52360. abstract="false" native="false" synchronized="false"
  52361. static="false" final="false" visibility="public"
  52362. deprecated="not deprecated">
  52363. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  52364. <doc>
  52365. <![CDATA[Get the {@link InputSplit} object for a map.
  52366. @return the <code>InputSplit</code> that the map is reading from.
  52367. @throws UnsupportedOperationException if called outside a mapper]]>
  52368. </doc>
  52369. </method>
  52370. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  52371. transient="false" volatile="false"
  52372. static="true" final="true" visibility="public"
  52373. deprecated="not deprecated">
  52374. <doc>
  52375. <![CDATA[A constant of Reporter type that does nothing.]]>
  52376. </doc>
  52377. </field>
  52378. <doc>
  52379. <![CDATA[A facility for Map-Reduce applications to report progress and update
  52380. counters, status information etc.
  52381. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  52382. provided to report progress or just indicate that they are alive. In
  52383. scenarios where the application takes an insignificant amount of time to
  52384. process individual key/value pairs, this is crucial since the framework
  52385. might assume that the task has timed-out and kill that task.
  52386. <p>Applications can also update {@link Counters} via the provided
  52387. <code>Reporter</code> .</p>
  52388. @see Progressable
  52389. @see Counters]]>
  52390. </doc>
  52391. </interface>
  52392. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  52393. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  52394. <interface name="RunningJob" abstract="true"
  52395. static="false" final="false" visibility="public"
  52396. deprecated="not deprecated">
  52397. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  52398. abstract="false" native="false" synchronized="false"
  52399. static="false" final="false" visibility="public"
  52400. deprecated="not deprecated">
  52401. <doc>
  52402. <![CDATA[Get the job identifier.
  52403. @return the job identifier.]]>
  52404. </doc>
  52405. </method>
  52406. <method name="getJobID" return="java.lang.String"
  52407. abstract="false" native="false" synchronized="false"
  52408. static="false" final="false" visibility="public"
  52409. deprecated="This method is deprecated and will be removed. Applications should
  52410. rather use {@link #getID()}.">
  52411. <doc>
  52412. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  52413. rather use {@link #getID()}.]]>
  52414. </doc>
  52415. </method>
  52416. <method name="getJobName" return="java.lang.String"
  52417. abstract="false" native="false" synchronized="false"
  52418. static="false" final="false" visibility="public"
  52419. deprecated="not deprecated">
  52420. <doc>
  52421. <![CDATA[Get the name of the job.
  52422. @return the name of the job.]]>
  52423. </doc>
  52424. </method>
  52425. <method name="getJobFile" return="java.lang.String"
  52426. abstract="false" native="false" synchronized="false"
  52427. static="false" final="false" visibility="public"
  52428. deprecated="not deprecated">
  52429. <doc>
  52430. <![CDATA[Get the path of the submitted job configuration.
  52431. @return the path of the submitted job configuration.]]>
  52432. </doc>
  52433. </method>
  52434. <method name="getTrackingURL" return="java.lang.String"
  52435. abstract="false" native="false" synchronized="false"
  52436. static="false" final="false" visibility="public"
  52437. deprecated="not deprecated">
  52438. <doc>
  52439. <![CDATA[Get the URL where some job progress information will be displayed.
  52440. @return the URL where some job progress information will be displayed.]]>
  52441. </doc>
  52442. </method>
  52443. <method name="mapProgress" return="float"
  52444. abstract="false" native="false" synchronized="false"
  52445. static="false" final="false" visibility="public"
  52446. deprecated="not deprecated">
  52447. <exception name="IOException" type="java.io.IOException"/>
  52448. <doc>
  52449. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  52450. and 1.0. When all map tasks have completed, the function returns 1.0.
  52451. @return the progress of the job's map-tasks.
  52452. @throws IOException]]>
  52453. </doc>
  52454. </method>
  52455. <method name="reduceProgress" return="float"
  52456. abstract="false" native="false" synchronized="false"
  52457. static="false" final="false" visibility="public"
  52458. deprecated="not deprecated">
  52459. <exception name="IOException" type="java.io.IOException"/>
  52460. <doc>
  52461. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  52462. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  52463. @return the progress of the job's reduce-tasks.
  52464. @throws IOException]]>
  52465. </doc>
  52466. </method>
  52467. <method name="cleanupProgress" return="float"
  52468. abstract="false" native="false" synchronized="false"
  52469. static="false" final="false" visibility="public"
  52470. deprecated="not deprecated">
  52471. <exception name="IOException" type="java.io.IOException"/>
  52472. <doc>
  52473. <![CDATA[Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
  52474. and 1.0. When all cleanup tasks have completed, the function returns 1.0.
  52475. @return the progress of the job's cleanup-tasks.
  52476. @throws IOException]]>
  52477. </doc>
  52478. </method>
  52479. <method name="setupProgress" return="float"
  52480. abstract="false" native="false" synchronized="false"
  52481. static="false" final="false" visibility="public"
  52482. deprecated="not deprecated">
  52483. <exception name="IOException" type="java.io.IOException"/>
  52484. <doc>
  52485. <![CDATA[Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
  52486. and 1.0. When all setup tasks have completed, the function returns 1.0.
  52487. @return the progress of the job's setup-tasks.
  52488. @throws IOException]]>
  52489. </doc>
  52490. </method>
  52491. <method name="isComplete" return="boolean"
  52492. abstract="false" native="false" synchronized="false"
  52493. static="false" final="false" visibility="public"
  52494. deprecated="not deprecated">
  52495. <exception name="IOException" type="java.io.IOException"/>
  52496. <doc>
  52497. <![CDATA[Check if the job is finished or not.
  52498. This is a non-blocking call.
  52499. @return <code>true</code> if the job is complete, else <code>false</code>.
  52500. @throws IOException]]>
  52501. </doc>
  52502. </method>
  52503. <method name="isSuccessful" return="boolean"
  52504. abstract="false" native="false" synchronized="false"
  52505. static="false" final="false" visibility="public"
  52506. deprecated="not deprecated">
  52507. <exception name="IOException" type="java.io.IOException"/>
  52508. <doc>
  52509. <![CDATA[Check if the job completed successfully.
  52510. @return <code>true</code> if the job succeeded, else <code>false</code>.
  52511. @throws IOException]]>
  52512. </doc>
  52513. </method>
  52514. <method name="waitForCompletion"
  52515. abstract="false" native="false" synchronized="false"
  52516. static="false" final="false" visibility="public"
  52517. deprecated="not deprecated">
  52518. <exception name="IOException" type="java.io.IOException"/>
  52519. <doc>
  52520. <![CDATA[Blocks until the job is complete.
  52521. @throws IOException]]>
  52522. </doc>
  52523. </method>
  52524. <method name="getJobState" return="int"
  52525. abstract="false" native="false" synchronized="false"
  52526. static="false" final="false" visibility="public"
  52527. deprecated="not deprecated">
  52528. <exception name="IOException" type="java.io.IOException"/>
  52529. <doc>
  52530. <![CDATA[Returns the current state of the Job.
  52531. {@link JobStatus}
  52532. @throws IOException]]>
  52533. </doc>
  52534. </method>
  52535. <method name="killJob"
  52536. abstract="false" native="false" synchronized="false"
  52537. static="false" final="false" visibility="public"
  52538. deprecated="not deprecated">
  52539. <exception name="IOException" type="java.io.IOException"/>
  52540. <doc>
  52541. <![CDATA[Kill the running job. Blocks until all job tasks have been
  52542. killed as well. If the job is no longer running, it simply returns.
  52543. @throws IOException]]>
  52544. </doc>
  52545. </method>
  52546. <method name="setJobPriority"
  52547. abstract="false" native="false" synchronized="false"
  52548. static="false" final="false" visibility="public"
  52549. deprecated="not deprecated">
  52550. <param name="priority" type="java.lang.String"/>
  52551. <exception name="IOException" type="java.io.IOException"/>
  52552. <doc>
  52553. <![CDATA[Set the priority of a running job.
  52554. @param priority the new priority for the job.
  52555. @throws IOException]]>
  52556. </doc>
  52557. </method>
  52558. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  52559. abstract="false" native="false" synchronized="false"
  52560. static="false" final="false" visibility="public"
  52561. deprecated="not deprecated">
  52562. <param name="startFrom" type="int"/>
  52563. <exception name="IOException" type="java.io.IOException"/>
  52564. <doc>
  52565. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  52566. @param startFrom index to start fetching events from
  52567. @return an array of {@link TaskCompletionEvent}s
  52568. @throws IOException]]>
  52569. </doc>
  52570. </method>
  52571. <method name="killTask"
  52572. abstract="false" native="false" synchronized="false"
  52573. static="false" final="false" visibility="public"
  52574. deprecated="not deprecated">
  52575. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52576. <param name="shouldFail" type="boolean"/>
  52577. <exception name="IOException" type="java.io.IOException"/>
  52578. <doc>
  52579. <![CDATA[Kill indicated task attempt.
  52580. @param taskId the id of the task to be terminated.
  52581. @param shouldFail if true the task is failed and added to failed tasks
  52582. list, otherwise it is just killed, w/o affecting
  52583. job failure status.
  52584. @throws IOException]]>
  52585. </doc>
  52586. </method>
  52587. <method name="killTask"
  52588. abstract="false" native="false" synchronized="false"
  52589. static="false" final="false" visibility="public"
  52590. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  52591. <param name="taskId" type="java.lang.String"/>
  52592. <param name="shouldFail" type="boolean"/>
  52593. <exception name="IOException" type="java.io.IOException"/>
  52594. <doc>
  52595. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  52596. </doc>
  52597. </method>
  52598. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  52599. abstract="false" native="false" synchronized="false"
  52600. static="false" final="false" visibility="public"
  52601. deprecated="not deprecated">
  52602. <exception name="IOException" type="java.io.IOException"/>
  52603. <doc>
  52604. <![CDATA[Gets the counters for this job.
  52605. @return the counters for this job.
  52606. @throws IOException]]>
  52607. </doc>
  52608. </method>
  52609. <method name="getFailureInfo" return="java.lang.String"
  52610. abstract="false" native="false" synchronized="false"
  52611. static="false" final="false" visibility="public"
  52612. deprecated="not deprecated">
  52613. <exception name="IOException" type="java.io.IOException"/>
  52614. <doc>
  52615. <![CDATA[Get failure info for the job.
  52616. @return the failure info for the job.
  52617. @throws IOException]]>
  52618. </doc>
  52619. </method>
  52620. <method name="getTaskDiagnostics" return="java.lang.String[]"
  52621. abstract="false" native="false" synchronized="false"
  52622. static="false" final="false" visibility="public"
  52623. deprecated="not deprecated">
  52624. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52625. <exception name="IOException" type="java.io.IOException"/>
  52626. <doc>
  52627. <![CDATA[Gets the diagnostic messages for a given task attempt.
  52628. @param taskid
  52629. @return the list of diagnostic messages for the task
  52630. @throws IOException]]>
  52631. </doc>
  52632. </method>
  52633. <doc>
  52634. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  52635. running Map-Reduce job.
  52636. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  52637. and then query the running-job for details such as name, configuration,
  52638. progress etc.</p>
  52639. @see JobClient]]>
  52640. </doc>
  52641. </interface>
  52642. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  52643. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  52644. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  52645. abstract="false"
  52646. static="false" final="false" visibility="public"
  52647. deprecated="not deprecated">
  52648. <constructor name="SequenceFileAsBinaryInputFormat"
  52649. static="false" final="false" visibility="public"
  52650. deprecated="not deprecated">
  52651. </constructor>
  52652. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  52653. abstract="false" native="false" synchronized="false"
  52654. static="false" final="false" visibility="public"
  52655. deprecated="not deprecated">
  52656. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  52657. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52658. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52659. <exception name="IOException" type="java.io.IOException"/>
  52660. </method>
  52661. <doc>
  52662. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  52663. format.]]>
  52664. </doc>
  52665. </class>
  52666. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  52667. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  52668. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  52669. abstract="false"
  52670. static="true" final="false" visibility="public"
  52671. deprecated="not deprecated">
  52672. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  52673. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  52674. static="false" final="false" visibility="public"
  52675. deprecated="not deprecated">
  52676. <exception name="IOException" type="java.io.IOException"/>
  52677. </constructor>
  52678. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  52679. abstract="false" native="false" synchronized="false"
  52680. static="false" final="false" visibility="public"
  52681. deprecated="not deprecated">
  52682. </method>
  52683. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  52684. abstract="false" native="false" synchronized="false"
  52685. static="false" final="false" visibility="public"
  52686. deprecated="not deprecated">
  52687. </method>
  52688. <method name="getKeyClassName" return="java.lang.String"
  52689. abstract="false" native="false" synchronized="false"
  52690. static="false" final="false" visibility="public"
  52691. deprecated="not deprecated">
  52692. <doc>
  52693. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  52694. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  52695. </doc>
  52696. </method>
  52697. <method name="getValueClassName" return="java.lang.String"
  52698. abstract="false" native="false" synchronized="false"
  52699. static="false" final="false" visibility="public"
  52700. deprecated="not deprecated">
  52701. <doc>
  52702. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  52703. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  52704. </doc>
  52705. </method>
  52706. <method name="next" return="boolean"
  52707. abstract="false" native="false" synchronized="true"
  52708. static="false" final="false" visibility="public"
  52709. deprecated="not deprecated">
  52710. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  52711. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  52712. <exception name="IOException" type="java.io.IOException"/>
  52713. <doc>
  52714. <![CDATA[Read raw bytes from a SequenceFile.]]>
  52715. </doc>
  52716. </method>
  52717. <method name="getPos" return="long"
  52718. abstract="false" native="false" synchronized="false"
  52719. static="false" final="false" visibility="public"
  52720. deprecated="not deprecated">
  52721. <exception name="IOException" type="java.io.IOException"/>
  52722. </method>
  52723. <method name="close"
  52724. abstract="false" native="false" synchronized="false"
  52725. static="false" final="false" visibility="public"
  52726. deprecated="not deprecated">
  52727. <exception name="IOException" type="java.io.IOException"/>
  52728. </method>
  52729. <method name="getProgress" return="float"
  52730. abstract="false" native="false" synchronized="false"
  52731. static="false" final="false" visibility="public"
  52732. deprecated="not deprecated">
  52733. <exception name="IOException" type="java.io.IOException"/>
  52734. <doc>
  52735. <![CDATA[Return the progress within the input split
  52736. @return 0.0 to 1.0 of the input byte range]]>
  52737. </doc>
  52738. </method>
  52739. <doc>
  52740. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  52741. </doc>
  52742. </class>
  52743. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  52744. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  52745. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat"
  52746. abstract="false"
  52747. static="false" final="false" visibility="public"
  52748. deprecated="not deprecated">
  52749. <constructor name="SequenceFileAsBinaryOutputFormat"
  52750. static="false" final="false" visibility="public"
  52751. deprecated="not deprecated">
  52752. </constructor>
  52753. <method name="setSequenceFileOutputKeyClass"
  52754. abstract="false" native="false" synchronized="false"
  52755. static="true" final="false" visibility="public"
  52756. deprecated="not deprecated">
  52757. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52758. <param name="theClass" type="java.lang.Class"/>
  52759. <doc>
  52760. <![CDATA[Set the key class for the {@link SequenceFile}
  52761. <p>This allows the user to specify the key class to be different
  52762. from the actual class ({@link BytesWritable}) used for writing </p>
  52763. @param conf the {@link JobConf} to modify
  52764. @param theClass the SequenceFile output key class.]]>
  52765. </doc>
  52766. </method>
  52767. <method name="setSequenceFileOutputValueClass"
  52768. abstract="false" native="false" synchronized="false"
  52769. static="true" final="false" visibility="public"
  52770. deprecated="not deprecated">
  52771. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52772. <param name="theClass" type="java.lang.Class"/>
  52773. <doc>
  52774. <![CDATA[Set the value class for the {@link SequenceFile}
  52775. <p>This allows the user to specify the value class to be different
  52776. from the actual class ({@link BytesWritable}) used for writing </p>
  52777. @param conf the {@link JobConf} to modify
  52778. @param theClass the SequenceFile output key class.]]>
  52779. </doc>
  52780. </method>
  52781. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  52782. abstract="false" native="false" synchronized="false"
  52783. static="true" final="false" visibility="public"
  52784. deprecated="not deprecated">
  52785. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52786. <doc>
  52787. <![CDATA[Get the key class for the {@link SequenceFile}
  52788. @return the key class of the {@link SequenceFile}]]>
  52789. </doc>
  52790. </method>
  52791. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  52792. abstract="false" native="false" synchronized="false"
  52793. static="true" final="false" visibility="public"
  52794. deprecated="not deprecated">
  52795. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52796. <doc>
  52797. <![CDATA[Get the value class for the {@link SequenceFile}
  52798. @return the value class of the {@link SequenceFile}]]>
  52799. </doc>
  52800. </method>
  52801. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  52802. abstract="false" native="false" synchronized="false"
  52803. static="false" final="false" visibility="public"
  52804. deprecated="not deprecated">
  52805. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  52806. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52807. <param name="name" type="java.lang.String"/>
  52808. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  52809. <exception name="IOException" type="java.io.IOException"/>
  52810. </method>
  52811. <method name="checkOutputSpecs"
  52812. abstract="false" native="false" synchronized="false"
  52813. static="false" final="false" visibility="public"
  52814. deprecated="not deprecated">
  52815. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  52816. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52817. <exception name="IOException" type="java.io.IOException"/>
  52818. </method>
  52819. <doc>
  52820. <![CDATA[An {@link OutputFormat} that writes keys, values to
  52821. {@link SequenceFile}s in binary(raw) format]]>
  52822. </doc>
  52823. </class>
  52824. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  52825. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  52826. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  52827. abstract="false"
  52828. static="true" final="false" visibility="protected"
  52829. deprecated="not deprecated">
  52830. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  52831. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  52832. static="false" final="false" visibility="public"
  52833. deprecated="not deprecated">
  52834. </constructor>
  52835. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  52836. static="false" final="false" visibility="public"
  52837. deprecated="not deprecated">
  52838. </constructor>
  52839. <method name="reset"
  52840. abstract="false" native="false" synchronized="false"
  52841. static="false" final="false" visibility="public"
  52842. deprecated="not deprecated">
  52843. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  52844. </method>
  52845. <method name="writeUncompressedBytes"
  52846. abstract="false" native="false" synchronized="false"
  52847. static="false" final="false" visibility="public"
  52848. deprecated="not deprecated">
  52849. <param name="outStream" type="java.io.DataOutputStream"/>
  52850. <exception name="IOException" type="java.io.IOException"/>
  52851. </method>
  52852. <method name="writeCompressedBytes"
  52853. abstract="false" native="false" synchronized="false"
  52854. static="false" final="false" visibility="public"
  52855. deprecated="not deprecated">
  52856. <param name="outStream" type="java.io.DataOutputStream"/>
  52857. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  52858. <exception name="IOException" type="java.io.IOException"/>
  52859. </method>
  52860. <method name="getSize" return="int"
  52861. abstract="false" native="false" synchronized="false"
  52862. static="false" final="false" visibility="public"
  52863. deprecated="not deprecated">
  52864. </method>
  52865. <doc>
  52866. <![CDATA[Inner class used for appendRaw]]>
  52867. </doc>
  52868. </class>
  52869. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  52870. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  52871. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  52872. abstract="false"
  52873. static="false" final="false" visibility="public"
  52874. deprecated="not deprecated">
  52875. <constructor name="SequenceFileAsTextInputFormat"
  52876. static="false" final="false" visibility="public"
  52877. deprecated="not deprecated">
  52878. </constructor>
  52879. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  52880. abstract="false" native="false" synchronized="false"
  52881. static="false" final="false" visibility="public"
  52882. deprecated="not deprecated">
  52883. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  52884. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52885. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52886. <exception name="IOException" type="java.io.IOException"/>
  52887. </method>
  52888. <doc>
  52889. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  52890. which converts the input keys and values to their String forms by calling toString() method.]]>
  52891. </doc>
  52892. </class>
  52893. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  52894. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  52895. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  52896. abstract="false"
  52897. static="false" final="false" visibility="public"
  52898. deprecated="not deprecated">
  52899. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  52900. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  52901. static="false" final="false" visibility="public"
  52902. deprecated="not deprecated">
  52903. <exception name="IOException" type="java.io.IOException"/>
  52904. </constructor>
  52905. <method name="createKey" return="org.apache.hadoop.io.Text"
  52906. abstract="false" native="false" synchronized="false"
  52907. static="false" final="false" visibility="public"
  52908. deprecated="not deprecated">
  52909. </method>
  52910. <method name="createValue" return="org.apache.hadoop.io.Text"
  52911. abstract="false" native="false" synchronized="false"
  52912. static="false" final="false" visibility="public"
  52913. deprecated="not deprecated">
  52914. </method>
  52915. <method name="next" return="boolean"
  52916. abstract="false" native="false" synchronized="true"
  52917. static="false" final="false" visibility="public"
  52918. deprecated="not deprecated">
  52919. <param name="key" type="org.apache.hadoop.io.Text"/>
  52920. <param name="value" type="org.apache.hadoop.io.Text"/>
  52921. <exception name="IOException" type="java.io.IOException"/>
  52922. <doc>
  52923. <![CDATA[Read key/value pair in a line.]]>
  52924. </doc>
  52925. </method>
  52926. <method name="getProgress" return="float"
  52927. abstract="false" native="false" synchronized="false"
  52928. static="false" final="false" visibility="public"
  52929. deprecated="not deprecated">
  52930. <exception name="IOException" type="java.io.IOException"/>
  52931. </method>
  52932. <method name="getPos" return="long"
  52933. abstract="false" native="false" synchronized="true"
  52934. static="false" final="false" visibility="public"
  52935. deprecated="not deprecated">
  52936. <exception name="IOException" type="java.io.IOException"/>
  52937. </method>
  52938. <method name="close"
  52939. abstract="false" native="false" synchronized="true"
  52940. static="false" final="false" visibility="public"
  52941. deprecated="not deprecated">
  52942. <exception name="IOException" type="java.io.IOException"/>
  52943. </method>
  52944. <doc>
  52945. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  52946. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  52947. class to TextInputFormat class.]]>
  52948. </doc>
  52949. </class>
  52950. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  52951. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  52952. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  52953. abstract="false"
  52954. static="false" final="false" visibility="public"
  52955. deprecated="not deprecated">
  52956. <constructor name="SequenceFileInputFilter"
  52957. static="false" final="false" visibility="public"
  52958. deprecated="not deprecated">
  52959. </constructor>
  52960. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  52961. abstract="false" native="false" synchronized="false"
  52962. static="false" final="false" visibility="public"
  52963. deprecated="not deprecated">
  52964. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  52965. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52966. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52967. <exception name="IOException" type="java.io.IOException"/>
  52968. <doc>
  52969. <![CDATA[Create a record reader for the given split
  52970. @param split file split
  52971. @param job job configuration
  52972. @param reporter reporter who sends report to task tracker
  52973. @return RecordReader]]>
  52974. </doc>
  52975. </method>
  52976. <method name="setFilterClass"
  52977. abstract="false" native="false" synchronized="false"
  52978. static="true" final="false" visibility="public"
  52979. deprecated="not deprecated">
  52980. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  52981. <param name="filterClass" type="java.lang.Class"/>
  52982. <doc>
  52983. <![CDATA[set the filter class
  52984. @param conf application configuration
  52985. @param filterClass filter class]]>
  52986. </doc>
  52987. </method>
  52988. <doc>
  52989. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  52990. The sample is decided by the filter class set by the job.]]>
  52991. </doc>
  52992. </class>
  52993. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  52994. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  52995. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  52996. static="true" final="false" visibility="public"
  52997. deprecated="not deprecated">
  52998. <implements name="org.apache.hadoop.conf.Configurable"/>
  52999. <method name="accept" return="boolean"
  53000. abstract="false" native="false" synchronized="false"
  53001. static="false" final="false" visibility="public"
  53002. deprecated="not deprecated">
  53003. <param name="key" type="java.lang.Object"/>
  53004. <doc>
  53005. <![CDATA[filter function
  53006. Decide if a record should be filtered or not
  53007. @param key record key
  53008. @return true if a record is accepted; return false otherwise]]>
  53009. </doc>
  53010. </method>
  53011. <doc>
  53012. <![CDATA[filter interface]]>
  53013. </doc>
  53014. </interface>
  53015. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  53016. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  53017. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  53018. abstract="true"
  53019. static="true" final="false" visibility="public"
  53020. deprecated="not deprecated">
  53021. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  53022. <constructor name="SequenceFileInputFilter.FilterBase"
  53023. static="false" final="false" visibility="public"
  53024. deprecated="not deprecated">
  53025. </constructor>
  53026. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  53027. abstract="false" native="false" synchronized="false"
  53028. static="false" final="false" visibility="public"
  53029. deprecated="not deprecated">
  53030. </method>
  53031. <doc>
  53032. <![CDATA[base class for Filters]]>
  53033. </doc>
  53034. </class>
  53035. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  53036. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  53037. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  53038. abstract="false"
  53039. static="true" final="false" visibility="public"
  53040. deprecated="not deprecated">
  53041. <constructor name="SequenceFileInputFilter.MD5Filter"
  53042. static="false" final="false" visibility="public"
  53043. deprecated="not deprecated">
  53044. </constructor>
  53045. <method name="setFrequency"
  53046. abstract="false" native="false" synchronized="false"
  53047. static="true" final="false" visibility="public"
  53048. deprecated="not deprecated">
  53049. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53050. <param name="frequency" type="int"/>
  53051. <doc>
  53052. <![CDATA[set the filtering frequency in configuration
  53053. @param conf configuration
  53054. @param frequency filtering frequency]]>
  53055. </doc>
  53056. </method>
  53057. <method name="setConf"
  53058. abstract="false" native="false" synchronized="false"
  53059. static="false" final="false" visibility="public"
  53060. deprecated="not deprecated">
  53061. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53062. <doc>
  53063. <![CDATA[configure the filter according to configuration
  53064. @param conf configuration]]>
  53065. </doc>
  53066. </method>
  53067. <method name="accept" return="boolean"
  53068. abstract="false" native="false" synchronized="false"
  53069. static="false" final="false" visibility="public"
  53070. deprecated="not deprecated">
  53071. <param name="key" type="java.lang.Object"/>
  53072. <doc>
  53073. <![CDATA[Filtering method
  53074. If MD5(key) % frequency==0, return true; otherwise return false
  53075. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  53076. </doc>
  53077. </method>
  53078. <field name="MD5_LEN" type="int"
  53079. transient="false" volatile="false"
  53080. static="true" final="true" visibility="public"
  53081. deprecated="not deprecated">
  53082. </field>
  53083. <doc>
  53084. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  53085. key against a filtering frequency <i>f</i>. The filtering criteria is
  53086. MD5(key) % f == 0.]]>
  53087. </doc>
  53088. </class>
  53089. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  53090. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  53091. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  53092. abstract="false"
  53093. static="true" final="false" visibility="public"
  53094. deprecated="not deprecated">
  53095. <constructor name="SequenceFileInputFilter.PercentFilter"
  53096. static="false" final="false" visibility="public"
  53097. deprecated="not deprecated">
  53098. </constructor>
  53099. <method name="setFrequency"
  53100. abstract="false" native="false" synchronized="false"
  53101. static="true" final="false" visibility="public"
  53102. deprecated="not deprecated">
  53103. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53104. <param name="frequency" type="int"/>
  53105. <doc>
  53106. <![CDATA[set the frequency and stores it in conf
  53107. @param conf configuration
  53108. @param frequency filtering frequencey]]>
  53109. </doc>
  53110. </method>
  53111. <method name="setConf"
  53112. abstract="false" native="false" synchronized="false"
  53113. static="false" final="false" visibility="public"
  53114. deprecated="not deprecated">
  53115. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53116. <doc>
  53117. <![CDATA[configure the filter by checking the configuration
  53118. @param conf configuration]]>
  53119. </doc>
  53120. </method>
  53121. <method name="accept" return="boolean"
  53122. abstract="false" native="false" synchronized="false"
  53123. static="false" final="false" visibility="public"
  53124. deprecated="not deprecated">
  53125. <param name="key" type="java.lang.Object"/>
  53126. <doc>
  53127. <![CDATA[Filtering method
  53128. If record# % frequency==0, return true; otherwise return false
  53129. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  53130. </doc>
  53131. </method>
  53132. <doc>
  53133. <![CDATA[This class returns a percentage of records
  53134. The percentage is determined by a filtering frequency <i>f</i> using
  53135. the criteria record# % f == 0.
  53136. For example, if the frequency is 10, one out of 10 records is returned.]]>
  53137. </doc>
  53138. </class>
  53139. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  53140. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  53141. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  53142. abstract="false"
  53143. static="true" final="false" visibility="public"
  53144. deprecated="not deprecated">
  53145. <constructor name="SequenceFileInputFilter.RegexFilter"
  53146. static="false" final="false" visibility="public"
  53147. deprecated="not deprecated">
  53148. </constructor>
  53149. <method name="setPattern"
  53150. abstract="false" native="false" synchronized="false"
  53151. static="true" final="false" visibility="public"
  53152. deprecated="not deprecated">
  53153. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53154. <param name="regex" type="java.lang.String"/>
  53155. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  53156. <doc>
  53157. <![CDATA[Define the filtering regex and stores it in conf
  53158. @param conf where the regex is set
  53159. @param regex regex used as a filter]]>
  53160. </doc>
  53161. </method>
  53162. <method name="setConf"
  53163. abstract="false" native="false" synchronized="false"
  53164. static="false" final="false" visibility="public"
  53165. deprecated="not deprecated">
  53166. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53167. <doc>
  53168. <![CDATA[configure the Filter by checking the configuration]]>
  53169. </doc>
  53170. </method>
  53171. <method name="accept" return="boolean"
  53172. abstract="false" native="false" synchronized="false"
  53173. static="false" final="false" visibility="public"
  53174. deprecated="not deprecated">
  53175. <param name="key" type="java.lang.Object"/>
  53176. <doc>
  53177. <![CDATA[Filtering method
  53178. If key matches the regex, return true; otherwise return false
  53179. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  53180. </doc>
  53181. </method>
  53182. <doc>
  53183. <![CDATA[Records filter by matching key to regex]]>
  53184. </doc>
  53185. </class>
  53186. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  53187. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  53188. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  53189. abstract="false"
  53190. static="false" final="false" visibility="public"
  53191. deprecated="not deprecated">
  53192. <constructor name="SequenceFileInputFormat"
  53193. static="false" final="false" visibility="public"
  53194. deprecated="not deprecated">
  53195. </constructor>
  53196. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  53197. abstract="false" native="false" synchronized="false"
  53198. static="false" final="false" visibility="protected"
  53199. deprecated="not deprecated">
  53200. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53201. <exception name="IOException" type="java.io.IOException"/>
  53202. </method>
  53203. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53204. abstract="false" native="false" synchronized="false"
  53205. static="false" final="false" visibility="public"
  53206. deprecated="not deprecated">
  53207. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53208. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53209. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53210. <exception name="IOException" type="java.io.IOException"/>
  53211. </method>
  53212. <doc>
  53213. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  53214. </doc>
  53215. </class>
  53216. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  53217. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  53218. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  53219. abstract="false"
  53220. static="false" final="false" visibility="public"
  53221. deprecated="not deprecated">
  53222. <constructor name="SequenceFileOutputFormat"
  53223. static="false" final="false" visibility="public"
  53224. deprecated="not deprecated">
  53225. </constructor>
  53226. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  53227. abstract="false" native="false" synchronized="false"
  53228. static="false" final="false" visibility="public"
  53229. deprecated="not deprecated">
  53230. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53231. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53232. <param name="name" type="java.lang.String"/>
  53233. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  53234. <exception name="IOException" type="java.io.IOException"/>
  53235. </method>
  53236. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  53237. abstract="false" native="false" synchronized="false"
  53238. static="true" final="false" visibility="public"
  53239. deprecated="not deprecated">
  53240. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53241. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  53242. <exception name="IOException" type="java.io.IOException"/>
  53243. <doc>
  53244. <![CDATA[Open the output generated by this format.]]>
  53245. </doc>
  53246. </method>
  53247. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  53248. abstract="false" native="false" synchronized="false"
  53249. static="true" final="false" visibility="public"
  53250. deprecated="not deprecated">
  53251. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53252. <doc>
  53253. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  53254. @param conf the {@link JobConf}
  53255. @return the {@link CompressionType} for the output {@link SequenceFile},
  53256. defaulting to {@link CompressionType#RECORD}]]>
  53257. </doc>
  53258. </method>
  53259. <method name="setOutputCompressionType"
  53260. abstract="false" native="false" synchronized="false"
  53261. static="true" final="false" visibility="public"
  53262. deprecated="not deprecated">
  53263. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53264. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  53265. <doc>
  53266. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  53267. @param conf the {@link JobConf} to modify
  53268. @param style the {@link CompressionType} for the output
  53269. {@link SequenceFile}]]>
  53270. </doc>
  53271. </method>
  53272. <doc>
  53273. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  53274. </doc>
  53275. </class>
  53276. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  53277. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  53278. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  53279. abstract="false"
  53280. static="false" final="false" visibility="public"
  53281. deprecated="not deprecated">
  53282. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  53283. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  53284. static="false" final="false" visibility="public"
  53285. deprecated="not deprecated">
  53286. <exception name="IOException" type="java.io.IOException"/>
  53287. </constructor>
  53288. <method name="getKeyClass" return="java.lang.Class"
  53289. abstract="false" native="false" synchronized="false"
  53290. static="false" final="false" visibility="public"
  53291. deprecated="not deprecated">
  53292. <doc>
  53293. <![CDATA[The class of key that must be passed to {@link
  53294. #next(Object, Object)}..]]>
  53295. </doc>
  53296. </method>
  53297. <method name="getValueClass" return="java.lang.Class"
  53298. abstract="false" native="false" synchronized="false"
  53299. static="false" final="false" visibility="public"
  53300. deprecated="not deprecated">
  53301. <doc>
  53302. <![CDATA[The class of value that must be passed to {@link
  53303. #next(Object, Object)}..]]>
  53304. </doc>
  53305. </method>
  53306. <method name="createKey" return="java.lang.Object"
  53307. abstract="false" native="false" synchronized="false"
  53308. static="false" final="false" visibility="public"
  53309. deprecated="not deprecated">
  53310. </method>
  53311. <method name="createValue" return="java.lang.Object"
  53312. abstract="false" native="false" synchronized="false"
  53313. static="false" final="false" visibility="public"
  53314. deprecated="not deprecated">
  53315. </method>
  53316. <method name="next" return="boolean"
  53317. abstract="false" native="false" synchronized="true"
  53318. static="false" final="false" visibility="public"
  53319. deprecated="not deprecated">
  53320. <param name="key" type="java.lang.Object"/>
  53321. <param name="value" type="java.lang.Object"/>
  53322. <exception name="IOException" type="java.io.IOException"/>
  53323. </method>
  53324. <method name="next" return="boolean"
  53325. abstract="false" native="false" synchronized="true"
  53326. static="false" final="false" visibility="protected"
  53327. deprecated="not deprecated">
  53328. <param name="key" type="java.lang.Object"/>
  53329. <exception name="IOException" type="java.io.IOException"/>
  53330. </method>
  53331. <method name="getCurrentValue"
  53332. abstract="false" native="false" synchronized="true"
  53333. static="false" final="false" visibility="protected"
  53334. deprecated="not deprecated">
  53335. <param name="value" type="java.lang.Object"/>
  53336. <exception name="IOException" type="java.io.IOException"/>
  53337. </method>
  53338. <method name="getProgress" return="float"
  53339. abstract="false" native="false" synchronized="false"
  53340. static="false" final="false" visibility="public"
  53341. deprecated="not deprecated">
  53342. <exception name="IOException" type="java.io.IOException"/>
  53343. <doc>
  53344. <![CDATA[Return the progress within the input split
  53345. @return 0.0 to 1.0 of the input byte range]]>
  53346. </doc>
  53347. </method>
  53348. <method name="getPos" return="long"
  53349. abstract="false" native="false" synchronized="true"
  53350. static="false" final="false" visibility="public"
  53351. deprecated="not deprecated">
  53352. <exception name="IOException" type="java.io.IOException"/>
  53353. </method>
  53354. <method name="seek"
  53355. abstract="false" native="false" synchronized="true"
  53356. static="false" final="false" visibility="protected"
  53357. deprecated="not deprecated">
  53358. <param name="pos" type="long"/>
  53359. <exception name="IOException" type="java.io.IOException"/>
  53360. </method>
  53361. <method name="close"
  53362. abstract="false" native="false" synchronized="true"
  53363. static="false" final="false" visibility="public"
  53364. deprecated="not deprecated">
  53365. <exception name="IOException" type="java.io.IOException"/>
  53366. </method>
  53367. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  53368. transient="false" volatile="false"
  53369. static="false" final="false" visibility="protected"
  53370. deprecated="not deprecated">
  53371. </field>
  53372. <doc>
  53373. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  53374. </doc>
  53375. </class>
  53376. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  53377. <!-- start class org.apache.hadoop.mapred.SkipBadRecords -->
  53378. <class name="SkipBadRecords" extends="java.lang.Object"
  53379. abstract="false"
  53380. static="false" final="false" visibility="public"
  53381. deprecated="not deprecated">
  53382. <constructor name="SkipBadRecords"
  53383. static="false" final="false" visibility="public"
  53384. deprecated="not deprecated">
  53385. </constructor>
  53386. <method name="getAttemptsToStartSkipping" return="int"
  53387. abstract="false" native="false" synchronized="false"
  53388. static="true" final="false" visibility="public"
  53389. deprecated="not deprecated">
  53390. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53391. <doc>
  53392. <![CDATA[Get the number of Task attempts AFTER which skip mode
  53393. will be kicked off. When skip mode is kicked off, the
  53394. tasks reports the range of records which it will process
  53395. next to the TaskTracker. So that on failures, TT knows which
  53396. ones are possibly the bad records. On further executions,
  53397. those are skipped.
  53398. Default value is 2.
  53399. @param conf the configuration
  53400. @return attemptsToStartSkipping no of task attempts]]>
  53401. </doc>
  53402. </method>
  53403. <method name="setAttemptsToStartSkipping"
  53404. abstract="false" native="false" synchronized="false"
  53405. static="true" final="false" visibility="public"
  53406. deprecated="not deprecated">
  53407. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53408. <param name="attemptsToStartSkipping" type="int"/>
  53409. <doc>
  53410. <![CDATA[Set the number of Task attempts AFTER which skip mode
  53411. will be kicked off. When skip mode is kicked off, the
  53412. tasks reports the range of records which it will process
  53413. next to the TaskTracker. So that on failures, TT knows which
  53414. ones are possibly the bad records. On further executions,
  53415. those are skipped.
  53416. Default value is 2.
  53417. @param conf the configuration
  53418. @param attemptsToStartSkipping no of task attempts]]>
  53419. </doc>
  53420. </method>
  53421. <method name="getAutoIncrMapperProcCount" return="boolean"
  53422. abstract="false" native="false" synchronized="false"
  53423. static="true" final="false" visibility="public"
  53424. deprecated="not deprecated">
  53425. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53426. <doc>
  53427. <![CDATA[Get the flag which if set to true,
  53428. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  53429. by MapRunner after invoking the map function. This value must be set to
  53430. false for applications which process the records asynchronously
  53431. or buffer the input records. For example streaming.
  53432. In such cases applications should increment this counter on their own.
  53433. Default value is true.
  53434. @param conf the configuration
  53435. @return <code>true</code> if auto increment
  53436. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.
  53437. <code>false</code> otherwise.]]>
  53438. </doc>
  53439. </method>
  53440. <method name="setAutoIncrMapperProcCount"
  53441. abstract="false" native="false" synchronized="false"
  53442. static="true" final="false" visibility="public"
  53443. deprecated="not deprecated">
  53444. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53445. <param name="autoIncr" type="boolean"/>
  53446. <doc>
  53447. <![CDATA[Set the flag which if set to true,
  53448. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  53449. by MapRunner after invoking the map function. This value must be set to
  53450. false for applications which process the records asynchronously
  53451. or buffer the input records. For example streaming.
  53452. In such cases applications should increment this counter on their own.
  53453. Default value is true.
  53454. @param conf the configuration
  53455. @param autoIncr whether to auto increment
  53456. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.]]>
  53457. </doc>
  53458. </method>
  53459. <method name="getAutoIncrReducerProcCount" return="boolean"
  53460. abstract="false" native="false" synchronized="false"
  53461. static="true" final="false" visibility="public"
  53462. deprecated="not deprecated">
  53463. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53464. <doc>
  53465. <![CDATA[Get the flag which if set to true,
  53466. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  53467. by framework after invoking the reduce function. This value must be set to
  53468. false for applications which process the records asynchronously
  53469. or buffer the input records. For example streaming.
  53470. In such cases applications should increment this counter on their own.
  53471. Default value is true.
  53472. @param conf the configuration
  53473. @return <code>true</code> if auto increment
  53474. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.
  53475. <code>false</code> otherwise.]]>
  53476. </doc>
  53477. </method>
  53478. <method name="setAutoIncrReducerProcCount"
  53479. abstract="false" native="false" synchronized="false"
  53480. static="true" final="false" visibility="public"
  53481. deprecated="not deprecated">
  53482. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53483. <param name="autoIncr" type="boolean"/>
  53484. <doc>
  53485. <![CDATA[Set the flag which if set to true,
  53486. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  53487. by framework after invoking the reduce function. This value must be set to
  53488. false for applications which process the records asynchronously
  53489. or buffer the input records. For example streaming.
  53490. In such cases applications should increment this counter on their own.
  53491. Default value is true.
  53492. @param conf the configuration
  53493. @param autoIncr whether to auto increment
  53494. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.]]>
  53495. </doc>
  53496. </method>
  53497. <method name="getSkipOutputPath" return="org.apache.hadoop.fs.Path"
  53498. abstract="false" native="false" synchronized="false"
  53499. static="true" final="false" visibility="public"
  53500. deprecated="not deprecated">
  53501. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53502. <doc>
  53503. <![CDATA[Get the directory to which skipped records are written. By default it is
  53504. the sub directory of the output _logs directory.
  53505. User can stop writing skipped records by setting the value null.
  53506. @param conf the configuration.
  53507. @return path skip output directory. Null is returned if this is not set
  53508. and output directory is also not set.]]>
  53509. </doc>
  53510. </method>
  53511. <method name="setSkipOutputPath"
  53512. abstract="false" native="false" synchronized="false"
  53513. static="true" final="false" visibility="public"
  53514. deprecated="not deprecated">
  53515. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53516. <param name="path" type="org.apache.hadoop.fs.Path"/>
  53517. <doc>
  53518. <![CDATA[Set the directory to which skipped records are written. By default it is
  53519. the sub directory of the output _logs directory.
  53520. User can stop writing skipped records by setting the value null.
  53521. @param conf the configuration.
  53522. @param path skip output directory path]]>
  53523. </doc>
  53524. </method>
  53525. <method name="getMapperMaxSkipRecords" return="long"
  53526. abstract="false" native="false" synchronized="false"
  53527. static="true" final="false" visibility="public"
  53528. deprecated="not deprecated">
  53529. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53530. <doc>
  53531. <![CDATA[Get the number of acceptable skip records surrounding the bad record PER
  53532. bad record in mapper. The number includes the bad record as well.
  53533. To turn the feature of detection/skipping of bad records off, set the
  53534. value to 0.
  53535. The framework tries to narrow down the skipped range by retrying
  53536. until this threshold is met OR all attempts get exhausted for this task.
  53537. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  53538. narrow down. Whatever records(depends on application) get skipped are
  53539. acceptable.
  53540. Default value is 0.
  53541. @param conf the configuration
  53542. @return maxSkipRecs acceptable skip records.]]>
  53543. </doc>
  53544. </method>
  53545. <method name="setMapperMaxSkipRecords"
  53546. abstract="false" native="false" synchronized="false"
  53547. static="true" final="false" visibility="public"
  53548. deprecated="not deprecated">
  53549. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53550. <param name="maxSkipRecs" type="long"/>
  53551. <doc>
  53552. <![CDATA[Set the number of acceptable skip records surrounding the bad record PER
  53553. bad record in mapper. The number includes the bad record as well.
  53554. To turn the feature of detection/skipping of bad records off, set the
  53555. value to 0.
  53556. The framework tries to narrow down the skipped range by retrying
  53557. until this threshold is met OR all attempts get exhausted for this task.
  53558. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  53559. narrow down. Whatever records(depends on application) get skipped are
  53560. acceptable.
  53561. Default value is 0.
  53562. @param conf the configuration
  53563. @param maxSkipRecs acceptable skip records.]]>
  53564. </doc>
  53565. </method>
  53566. <method name="getReducerMaxSkipGroups" return="long"
  53567. abstract="false" native="false" synchronized="false"
  53568. static="true" final="false" visibility="public"
  53569. deprecated="not deprecated">
  53570. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53571. <doc>
  53572. <![CDATA[Get the number of acceptable skip groups surrounding the bad group PER
  53573. bad group in reducer. The number includes the bad group as well.
  53574. To turn the feature of detection/skipping of bad groups off, set the
  53575. value to 0.
  53576. The framework tries to narrow down the skipped range by retrying
  53577. until this threshold is met OR all attempts get exhausted for this task.
  53578. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  53579. narrow down. Whatever groups(depends on application) get skipped are
  53580. acceptable.
  53581. Default value is 0.
  53582. @param conf the configuration
  53583. @return maxSkipGrps acceptable skip groups.]]>
  53584. </doc>
  53585. </method>
  53586. <method name="setReducerMaxSkipGroups"
  53587. abstract="false" native="false" synchronized="false"
  53588. static="true" final="false" visibility="public"
  53589. deprecated="not deprecated">
  53590. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53591. <param name="maxSkipGrps" type="long"/>
  53592. <doc>
  53593. <![CDATA[Set the number of acceptable skip groups surrounding the bad group PER
  53594. bad group in reducer. The number includes the bad group as well.
  53595. To turn the feature of detection/skipping of bad groups off, set the
  53596. value to 0.
  53597. The framework tries to narrow down the skipped range by retrying
  53598. until this threshold is met OR all attempts get exhausted for this task.
  53599. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  53600. narrow down. Whatever groups(depends on application) get skipped are
  53601. acceptable.
  53602. Default value is 0.
  53603. @param conf the configuration
  53604. @param maxSkipGrps acceptable skip groups.]]>
  53605. </doc>
  53606. </method>
  53607. <field name="COUNTER_GROUP" type="java.lang.String"
  53608. transient="false" volatile="false"
  53609. static="true" final="true" visibility="public"
  53610. deprecated="not deprecated">
  53611. <doc>
  53612. <![CDATA[Special counters which are written by the application and are
  53613. used by the framework for detecting bad records. For detecting bad records
  53614. these counters must be incremented by the application.]]>
  53615. </doc>
  53616. </field>
  53617. <field name="COUNTER_MAP_PROCESSED_RECORDS" type="java.lang.String"
  53618. transient="false" volatile="false"
  53619. static="true" final="true" visibility="public"
  53620. deprecated="not deprecated">
  53621. <doc>
  53622. <![CDATA[Number of processed map records.
  53623. @see SkipBadRecords#getAutoIncrMapperProcCount(Configuration)]]>
  53624. </doc>
  53625. </field>
  53626. <field name="COUNTER_REDUCE_PROCESSED_GROUPS" type="java.lang.String"
  53627. transient="false" volatile="false"
  53628. static="true" final="true" visibility="public"
  53629. deprecated="not deprecated">
  53630. <doc>
  53631. <![CDATA[Number of processed reduce groups.
  53632. @see SkipBadRecords#getAutoIncrReducerProcCount(Configuration)]]>
  53633. </doc>
  53634. </field>
  53635. <doc>
  53636. <![CDATA[Utility class for skip bad records functionality. It contains various
  53637. settings related to skipping of bad records.
  53638. <p>Hadoop provides an optional mode of execution in which the bad records
  53639. are detected and skipped in further attempts.
  53640. <p>This feature can be used when map/reduce tasks crashes deterministically on
  53641. certain input. This happens due to bugs in the map/reduce function. The usual
  53642. course would be to fix these bugs. But sometimes this is not possible;
  53643. perhaps the bug is in third party libraries for which the source code is
  53644. not available. Due to this, the task never reaches to completion even with
  53645. multiple attempts and complete data for that task is lost.</p>
  53646. <p>With this feature, only a small portion of data is lost surrounding
  53647. the bad record, which may be acceptable for some user applications.
  53648. see {@link SkipBadRecords#setMapperMaxSkipRecords(Configuration, long)}</p>
  53649. <p>The skipping mode gets kicked off after certain no of failures
  53650. see {@link SkipBadRecords#setAttemptsToStartSkipping(Configuration, int)}</p>
  53651. <p>In the skipping mode, the map/reduce task maintains the record range which
  53652. is getting processed at all times. Before giving the input to the
  53653. map/reduce function, it sends this record range to the Task tracker.
  53654. If task crashes, the Task tracker knows which one was the last reported
  53655. range. On further attempts that range get skipped.</p>]]>
  53656. </doc>
  53657. </class>
  53658. <!-- end class org.apache.hadoop.mapred.SkipBadRecords -->
  53659. <!-- start class org.apache.hadoop.mapred.Task -->
  53660. <class name="Task" extends="java.lang.Object"
  53661. abstract="true"
  53662. static="false" final="false" visibility="public"
  53663. deprecated="not deprecated">
  53664. <implements name="org.apache.hadoop.io.Writable"/>
  53665. <implements name="org.apache.hadoop.conf.Configurable"/>
  53666. <constructor name="Task"
  53667. static="false" final="false" visibility="public"
  53668. deprecated="not deprecated">
  53669. </constructor>
  53670. <constructor name="Task" type="java.lang.String, org.apache.hadoop.mapred.TaskAttemptID, int, int"
  53671. static="false" final="false" visibility="public"
  53672. deprecated="not deprecated">
  53673. </constructor>
  53674. <method name="getFileSystemCounterNames" return="java.lang.String[]"
  53675. abstract="false" native="false" synchronized="false"
  53676. static="true" final="false" visibility="protected"
  53677. deprecated="not deprecated">
  53678. <param name="uriScheme" type="java.lang.String"/>
  53679. <doc>
  53680. <![CDATA[Counters to measure the usage of the different file systems.
  53681. Always return the String array with two elements. First one is the name of
  53682. BYTES_READ counter and second one is of the BYTES_WRITTEN counter.]]>
  53683. </doc>
  53684. </method>
  53685. <method name="setJobFile"
  53686. abstract="false" native="false" synchronized="false"
  53687. static="false" final="false" visibility="public"
  53688. deprecated="not deprecated">
  53689. <param name="jobFile" type="java.lang.String"/>
  53690. </method>
  53691. <method name="getJobFile" return="java.lang.String"
  53692. abstract="false" native="false" synchronized="false"
  53693. static="false" final="false" visibility="public"
  53694. deprecated="not deprecated">
  53695. </method>
  53696. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  53697. abstract="false" native="false" synchronized="false"
  53698. static="false" final="false" visibility="public"
  53699. deprecated="not deprecated">
  53700. </method>
  53701. <method name="getNumSlotsRequired" return="int"
  53702. abstract="false" native="false" synchronized="false"
  53703. static="false" final="false" visibility="public"
  53704. deprecated="not deprecated">
  53705. </method>
  53706. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  53707. abstract="false" native="false" synchronized="false"
  53708. static="false" final="false" visibility="public"
  53709. deprecated="not deprecated">
  53710. <doc>
  53711. <![CDATA[Get the job name for this task.
  53712. @return the job name]]>
  53713. </doc>
  53714. </method>
  53715. <method name="setJobTokenSecret"
  53716. abstract="false" native="false" synchronized="false"
  53717. static="false" final="false" visibility="public"
  53718. deprecated="not deprecated">
  53719. <param name="tokenSecret" type="javax.crypto.SecretKey"/>
  53720. <doc>
  53721. <![CDATA[Set the job token secret
  53722. @param tokenSecret the secret]]>
  53723. </doc>
  53724. </method>
  53725. <method name="getJobTokenSecret" return="javax.crypto.SecretKey"
  53726. abstract="false" native="false" synchronized="false"
  53727. static="false" final="false" visibility="public"
  53728. deprecated="not deprecated">
  53729. <doc>
  53730. <![CDATA[Get the job token secret
  53731. @return the token secret]]>
  53732. </doc>
  53733. </method>
  53734. <method name="setJvmContext"
  53735. abstract="false" native="false" synchronized="false"
  53736. static="false" final="false" visibility="public"
  53737. deprecated="not deprecated">
  53738. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  53739. <doc>
  53740. <![CDATA[Set the task JvmContext
  53741. @param jvmContext]]>
  53742. </doc>
  53743. </method>
  53744. <method name="getJvmContext" return="org.apache.hadoop.mapred.JvmContext"
  53745. abstract="false" native="false" synchronized="false"
  53746. static="false" final="false" visibility="public"
  53747. deprecated="not deprecated">
  53748. <doc>
  53749. <![CDATA[Gets the task JvmContext
  53750. @return the jvm context]]>
  53751. </doc>
  53752. </method>
  53753. <method name="getPartition" return="int"
  53754. abstract="false" native="false" synchronized="false"
  53755. static="false" final="false" visibility="public"
  53756. deprecated="not deprecated">
  53757. <doc>
  53758. <![CDATA[Get the index of this task within the job.
  53759. @return the integer part of the task id]]>
  53760. </doc>
  53761. </method>
  53762. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  53763. abstract="false" native="false" synchronized="true"
  53764. static="false" final="false" visibility="public"
  53765. deprecated="not deprecated">
  53766. <doc>
  53767. <![CDATA[Return current phase of the task.
  53768. needs to be synchronized as communication thread sends the phase every second
  53769. @return the curent phase of the task]]>
  53770. </doc>
  53771. </method>
  53772. <method name="setPhase"
  53773. abstract="false" native="false" synchronized="true"
  53774. static="false" final="false" visibility="protected"
  53775. deprecated="not deprecated">
  53776. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  53777. <doc>
  53778. <![CDATA[Set current phase of the task.
  53779. @param phase task phase]]>
  53780. </doc>
  53781. </method>
  53782. <method name="toWriteSkipRecs" return="boolean"
  53783. abstract="false" native="false" synchronized="false"
  53784. static="false" final="false" visibility="protected"
  53785. deprecated="not deprecated">
  53786. <doc>
  53787. <![CDATA[Get whether to write skip records.]]>
  53788. </doc>
  53789. </method>
  53790. <method name="setWriteSkipRecs"
  53791. abstract="false" native="false" synchronized="false"
  53792. static="false" final="false" visibility="protected"
  53793. deprecated="not deprecated">
  53794. <param name="writeSkipRecs" type="boolean"/>
  53795. <doc>
  53796. <![CDATA[Set whether to write skip records.]]>
  53797. </doc>
  53798. </method>
  53799. <method name="reportFatalError"
  53800. abstract="false" native="false" synchronized="false"
  53801. static="false" final="false" visibility="protected"
  53802. deprecated="not deprecated">
  53803. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  53804. <param name="throwable" type="java.lang.Throwable"/>
  53805. <param name="logMsg" type="java.lang.String"/>
  53806. <doc>
  53807. <![CDATA[Report a fatal error to the parent (task) tracker.]]>
  53808. </doc>
  53809. </method>
  53810. <method name="getSkipRanges" return="org.apache.hadoop.mapred.SortedRanges"
  53811. abstract="false" native="false" synchronized="false"
  53812. static="false" final="false" visibility="public"
  53813. deprecated="not deprecated">
  53814. <doc>
  53815. <![CDATA[Get skipRanges.]]>
  53816. </doc>
  53817. </method>
  53818. <method name="setSkipRanges"
  53819. abstract="false" native="false" synchronized="false"
  53820. static="false" final="false" visibility="public"
  53821. deprecated="not deprecated">
  53822. <param name="skipRanges" type="org.apache.hadoop.mapred.SortedRanges"/>
  53823. <doc>
  53824. <![CDATA[Set skipRanges.]]>
  53825. </doc>
  53826. </method>
  53827. <method name="isSkipping" return="boolean"
  53828. abstract="false" native="false" synchronized="false"
  53829. static="false" final="false" visibility="public"
  53830. deprecated="not deprecated">
  53831. <doc>
  53832. <![CDATA[Is Task in skipping mode.]]>
  53833. </doc>
  53834. </method>
  53835. <method name="setSkipping"
  53836. abstract="false" native="false" synchronized="false"
  53837. static="false" final="false" visibility="public"
  53838. deprecated="not deprecated">
  53839. <param name="skipping" type="boolean"/>
  53840. <doc>
  53841. <![CDATA[Sets whether to run Task in skipping mode.
  53842. @param skipping]]>
  53843. </doc>
  53844. </method>
  53845. <method name="getUser" return="java.lang.String"
  53846. abstract="false" native="false" synchronized="false"
  53847. static="false" final="false" visibility="public"
  53848. deprecated="not deprecated">
  53849. <doc>
  53850. <![CDATA[Get the name of the user running the job/task. TaskTracker needs task's
  53851. user name even before it's JobConf is localized. So we explicitly serialize
  53852. the user name.
  53853. @return user]]>
  53854. </doc>
  53855. </method>
  53856. <method name="write"
  53857. abstract="false" native="false" synchronized="false"
  53858. static="false" final="false" visibility="public"
  53859. deprecated="not deprecated">
  53860. <param name="out" type="java.io.DataOutput"/>
  53861. <exception name="IOException" type="java.io.IOException"/>
  53862. </method>
  53863. <method name="readFields"
  53864. abstract="false" native="false" synchronized="false"
  53865. static="false" final="false" visibility="public"
  53866. deprecated="not deprecated">
  53867. <param name="in" type="java.io.DataInput"/>
  53868. <exception name="IOException" type="java.io.IOException"/>
  53869. </method>
  53870. <method name="toString" return="java.lang.String"
  53871. abstract="false" native="false" synchronized="false"
  53872. static="false" final="false" visibility="public"
  53873. deprecated="not deprecated">
  53874. </method>
  53875. <method name="localizeConfiguration"
  53876. abstract="false" native="false" synchronized="false"
  53877. static="false" final="false" visibility="public"
  53878. deprecated="not deprecated">
  53879. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53880. <exception name="IOException" type="java.io.IOException"/>
  53881. <doc>
  53882. <![CDATA[Localize the given JobConf to be specific for this task.]]>
  53883. </doc>
  53884. </method>
  53885. <method name="run"
  53886. abstract="true" native="false" synchronized="false"
  53887. static="false" final="false" visibility="public"
  53888. deprecated="not deprecated">
  53889. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53890. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  53891. <exception name="IOException" type="java.io.IOException"/>
  53892. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  53893. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53894. <doc>
  53895. <![CDATA[Run this task as a part of the named job. This method is executed in the
  53896. child process and is what invokes user-supplied map, reduce, etc. methods.
  53897. @param umbilical for progress reports]]>
  53898. </doc>
  53899. </method>
  53900. <method name="createRunner" return="org.apache.hadoop.mapred.TaskRunner"
  53901. abstract="true" native="false" synchronized="false"
  53902. static="false" final="false" visibility="public"
  53903. deprecated="not deprecated">
  53904. <param name="tracker" type="org.apache.hadoop.mapred.TaskTracker"/>
  53905. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  53906. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  53907. <exception name="IOException" type="java.io.IOException"/>
  53908. <doc>
  53909. <![CDATA[Return an approprate thread runner for this task.
  53910. @param tip TODO]]>
  53911. </doc>
  53912. </method>
  53913. <method name="isMapTask" return="boolean"
  53914. abstract="true" native="false" synchronized="false"
  53915. static="false" final="false" visibility="public"
  53916. deprecated="not deprecated">
  53917. </method>
  53918. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  53919. abstract="false" native="false" synchronized="false"
  53920. static="false" final="false" visibility="public"
  53921. deprecated="not deprecated">
  53922. </method>
  53923. <method name="initialize"
  53924. abstract="false" native="false" synchronized="false"
  53925. static="false" final="false" visibility="public"
  53926. deprecated="not deprecated">
  53927. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53928. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  53929. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53930. <param name="useNewApi" type="boolean"/>
  53931. <exception name="IOException" type="java.io.IOException"/>
  53932. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  53933. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53934. </method>
  53935. <method name="reportNextRecordRange"
  53936. abstract="false" native="false" synchronized="false"
  53937. static="false" final="false" visibility="protected"
  53938. deprecated="not deprecated">
  53939. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  53940. <param name="nextRecIndex" type="long"/>
  53941. <exception name="IOException" type="java.io.IOException"/>
  53942. <doc>
  53943. <![CDATA[Reports the next executing record range to TaskTracker.
  53944. @param umbilical
  53945. @param nextRecIndex the record index which would be fed next.
  53946. @throws IOException]]>
  53947. </doc>
  53948. </method>
  53949. <method name="done"
  53950. abstract="false" native="false" synchronized="false"
  53951. static="false" final="false" visibility="public"
  53952. deprecated="not deprecated">
  53953. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  53954. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  53955. <exception name="IOException" type="java.io.IOException"/>
  53956. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53957. </method>
  53958. <method name="statusUpdate"
  53959. abstract="false" native="false" synchronized="false"
  53960. static="false" final="false" visibility="protected"
  53961. deprecated="not deprecated">
  53962. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  53963. <exception name="IOException" type="java.io.IOException"/>
  53964. </method>
  53965. <method name="runTaskCleanupTask"
  53966. abstract="false" native="false" synchronized="false"
  53967. static="false" final="false" visibility="protected"
  53968. deprecated="not deprecated">
  53969. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  53970. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  53971. <exception name="IOException" type="java.io.IOException"/>
  53972. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53973. </method>
  53974. <method name="runJobCleanupTask"
  53975. abstract="false" native="false" synchronized="false"
  53976. static="false" final="false" visibility="protected"
  53977. deprecated="not deprecated">
  53978. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  53979. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  53980. <exception name="IOException" type="java.io.IOException"/>
  53981. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53982. </method>
  53983. <method name="supportIsolationRunner" return="boolean"
  53984. abstract="false" native="false" synchronized="false"
  53985. static="false" final="false" visibility="protected"
  53986. deprecated="not deprecated">
  53987. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53988. </method>
  53989. <method name="runJobSetupTask"
  53990. abstract="false" native="false" synchronized="false"
  53991. static="false" final="false" visibility="protected"
  53992. deprecated="not deprecated">
  53993. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  53994. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  53995. <exception name="IOException" type="java.io.IOException"/>
  53996. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53997. </method>
  53998. <method name="getFsStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  53999. abstract="false" native="false" synchronized="false"
  54000. static="true" final="false" visibility="protected"
  54001. deprecated="not deprecated">
  54002. <param name="path" type="org.apache.hadoop.fs.Path"/>
  54003. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54004. <exception name="IOException" type="java.io.IOException"/>
  54005. <doc>
  54006. <![CDATA[Gets a handle to the Statistics instance based on the scheme associated
  54007. with path.
  54008. @param path
  54009. the path.
  54010. @return a Statistics instance, or null if none is found for the scheme.]]>
  54011. </doc>
  54012. </method>
  54013. <method name="setConf"
  54014. abstract="false" native="false" synchronized="false"
  54015. static="false" final="false" visibility="public"
  54016. deprecated="not deprecated">
  54017. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54018. </method>
  54019. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  54020. abstract="false" native="false" synchronized="false"
  54021. static="false" final="false" visibility="public"
  54022. deprecated="not deprecated">
  54023. </method>
  54024. <method name="createReduceContext" return="org.apache.hadoop.mapreduce.Reducer.Context"
  54025. abstract="false" native="false" synchronized="false"
  54026. static="true" final="false" visibility="protected"
  54027. deprecated="not deprecated">
  54028. <param name="reducer" type="org.apache.hadoop.mapreduce.Reducer"/>
  54029. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  54030. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  54031. <param name="rIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  54032. <param name="inputKeyCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  54033. <param name="inputValueCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  54034. <param name="output" type="org.apache.hadoop.mapreduce.RecordWriter"/>
  54035. <param name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"/>
  54036. <param name="reporter" type="org.apache.hadoop.mapreduce.StatusReporter"/>
  54037. <param name="comparator" type="org.apache.hadoop.io.RawComparator"/>
  54038. <param name="keyClass" type="java.lang.Class"/>
  54039. <param name="valueClass" type="java.lang.Class"/>
  54040. <exception name="IOException" type="java.io.IOException"/>
  54041. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  54042. </method>
  54043. <field name="MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="java.lang.String"
  54044. transient="false" volatile="false"
  54045. static="true" final="true" visibility="public"
  54046. deprecated="not deprecated">
  54047. </field>
  54048. <field name="DEFAULT_MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="long"
  54049. transient="false" volatile="false"
  54050. static="true" final="true" visibility="public"
  54051. deprecated="not deprecated">
  54052. </field>
  54053. <field name="FILESYSTEM_COUNTER_GROUP" type="java.lang.String"
  54054. transient="false" volatile="false"
  54055. static="true" final="true" visibility="protected"
  54056. deprecated="not deprecated">
  54057. <doc>
  54058. <![CDATA[Name of the FileSystem counters' group]]>
  54059. </doc>
  54060. </field>
  54061. <field name="jobRunStateForCleanup" type="org.apache.hadoop.mapreduce.JobStatus.State"
  54062. transient="false" volatile="false"
  54063. static="false" final="false" visibility="protected"
  54064. deprecated="not deprecated">
  54065. </field>
  54066. <field name="jobCleanup" type="boolean"
  54067. transient="false" volatile="false"
  54068. static="false" final="false" visibility="protected"
  54069. deprecated="not deprecated">
  54070. </field>
  54071. <field name="jobSetup" type="boolean"
  54072. transient="false" volatile="false"
  54073. static="false" final="false" visibility="protected"
  54074. deprecated="not deprecated">
  54075. </field>
  54076. <field name="taskCleanup" type="boolean"
  54077. transient="false" volatile="false"
  54078. static="false" final="false" visibility="protected"
  54079. deprecated="not deprecated">
  54080. </field>
  54081. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  54082. transient="false" volatile="false"
  54083. static="false" final="false" visibility="protected"
  54084. deprecated="not deprecated">
  54085. </field>
  54086. <field name="mapOutputFile" type="org.apache.hadoop.mapred.MapOutputFile"
  54087. transient="false" volatile="false"
  54088. static="false" final="false" visibility="protected"
  54089. deprecated="not deprecated">
  54090. </field>
  54091. <field name="lDirAlloc" type="org.apache.hadoop.fs.LocalDirAllocator"
  54092. transient="false" volatile="false"
  54093. static="false" final="false" visibility="protected"
  54094. deprecated="not deprecated">
  54095. </field>
  54096. <field name="jobContext" type="org.apache.hadoop.mapred.JobContext"
  54097. transient="false" volatile="false"
  54098. static="false" final="false" visibility="protected"
  54099. deprecated="not deprecated">
  54100. </field>
  54101. <field name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"
  54102. transient="false" volatile="false"
  54103. static="false" final="false" visibility="protected"
  54104. deprecated="not deprecated">
  54105. </field>
  54106. <field name="outputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  54107. transient="false" volatile="false"
  54108. static="false" final="false" visibility="protected"
  54109. deprecated="not deprecated">
  54110. </field>
  54111. <field name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"
  54112. transient="false" volatile="false"
  54113. static="false" final="false" visibility="protected"
  54114. deprecated="not deprecated">
  54115. </field>
  54116. <field name="spilledRecordsCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  54117. transient="false" volatile="false"
  54118. static="false" final="true" visibility="protected"
  54119. deprecated="not deprecated">
  54120. </field>
  54121. <field name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"
  54122. transient="false" volatile="false"
  54123. static="false" final="false" visibility="protected"
  54124. deprecated="not deprecated">
  54125. </field>
  54126. <field name="tokenSecret" type="javax.crypto.SecretKey"
  54127. transient="false" volatile="false"
  54128. static="false" final="false" visibility="protected"
  54129. deprecated="not deprecated">
  54130. </field>
  54131. <field name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"
  54132. transient="false" volatile="false"
  54133. static="false" final="false" visibility="protected"
  54134. deprecated="not deprecated">
  54135. </field>
  54136. <field name="PROGRESS_INTERVAL" type="int"
  54137. transient="false" volatile="false"
  54138. static="true" final="true" visibility="public"
  54139. deprecated="not deprecated">
  54140. <doc>
  54141. <![CDATA[The number of milliseconds between progress reports.]]>
  54142. </doc>
  54143. </field>
  54144. <doc>
  54145. <![CDATA[Base class for tasks.
  54146. This is NOT a public interface.]]>
  54147. </doc>
  54148. </class>
  54149. <!-- end class org.apache.hadoop.mapred.Task -->
  54150. <!-- start class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  54151. <class name="Task.CombineOutputCollector" extends="java.lang.Object"
  54152. abstract="false"
  54153. static="true" final="false" visibility="protected"
  54154. deprecated="not deprecated">
  54155. <implements name="org.apache.hadoop.mapred.OutputCollector"/>
  54156. <constructor name="Task.CombineOutputCollector" type="org.apache.hadoop.mapred.Counters.Counter, org.apache.hadoop.util.Progressable, org.apache.hadoop.conf.Configuration"
  54157. static="false" final="false" visibility="public"
  54158. deprecated="not deprecated">
  54159. </constructor>
  54160. <method name="setWriter"
  54161. abstract="false" native="false" synchronized="true"
  54162. static="false" final="false" visibility="public"
  54163. deprecated="not deprecated">
  54164. <param name="writer" type="org.apache.hadoop.mapred.IFile.Writer"/>
  54165. </method>
  54166. <method name="collect"
  54167. abstract="false" native="false" synchronized="true"
  54168. static="false" final="false" visibility="public"
  54169. deprecated="not deprecated">
  54170. <param name="key" type="java.lang.Object"/>
  54171. <param name="value" type="java.lang.Object"/>
  54172. <exception name="IOException" type="java.io.IOException"/>
  54173. </method>
  54174. <doc>
  54175. <![CDATA[OutputCollector for the combiner.]]>
  54176. </doc>
  54177. </class>
  54178. <!-- end class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  54179. <!-- start class org.apache.hadoop.mapred.Task.CombinerRunner -->
  54180. <class name="Task.CombinerRunner" extends="java.lang.Object"
  54181. abstract="true"
  54182. static="true" final="false" visibility="protected"
  54183. deprecated="not deprecated">
  54184. <field name="inputCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  54185. transient="false" volatile="false"
  54186. static="false" final="true" visibility="protected"
  54187. deprecated="not deprecated">
  54188. </field>
  54189. <field name="job" type="org.apache.hadoop.mapred.JobConf"
  54190. transient="false" volatile="false"
  54191. static="false" final="true" visibility="protected"
  54192. deprecated="not deprecated">
  54193. </field>
  54194. <field name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"
  54195. transient="false" volatile="false"
  54196. static="false" final="true" visibility="protected"
  54197. deprecated="not deprecated">
  54198. </field>
  54199. </class>
  54200. <!-- end class org.apache.hadoop.mapred.Task.CombinerRunner -->
  54201. <!-- start class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  54202. <class name="Task.CombineValuesIterator" extends="org.apache.hadoop.mapred.Task.ValuesIterator"
  54203. abstract="false"
  54204. static="true" final="false" visibility="protected"
  54205. deprecated="not deprecated">
  54206. <constructor name="Task.CombineValuesIterator" type="org.apache.hadoop.mapred.RawKeyValueIterator, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.Reporter, org.apache.hadoop.mapred.Counters.Counter"
  54207. static="false" final="false" visibility="public"
  54208. deprecated="not deprecated">
  54209. <exception name="IOException" type="java.io.IOException"/>
  54210. </constructor>
  54211. <method name="next" return="java.lang.Object"
  54212. abstract="false" native="false" synchronized="false"
  54213. static="false" final="false" visibility="public"
  54214. deprecated="not deprecated">
  54215. </method>
  54216. </class>
  54217. <!-- end class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  54218. <!-- start class org.apache.hadoop.mapred.Task.Counter -->
  54219. <class name="Task.Counter" extends="java.lang.Enum"
  54220. abstract="false"
  54221. static="true" final="true" visibility="public"
  54222. deprecated="not deprecated">
  54223. <method name="values" return="org.apache.hadoop.mapred.Task.Counter[]"
  54224. abstract="false" native="false" synchronized="false"
  54225. static="true" final="false" visibility="public"
  54226. deprecated="not deprecated">
  54227. </method>
  54228. <method name="valueOf" return="org.apache.hadoop.mapred.Task.Counter"
  54229. abstract="false" native="false" synchronized="false"
  54230. static="true" final="false" visibility="public"
  54231. deprecated="not deprecated">
  54232. <param name="name" type="java.lang.String"/>
  54233. </method>
  54234. <field name="MAP_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54235. transient="false" volatile="false"
  54236. static="true" final="true" visibility="public"
  54237. deprecated="not deprecated">
  54238. </field>
  54239. <field name="MAP_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54240. transient="false" volatile="false"
  54241. static="true" final="true" visibility="public"
  54242. deprecated="not deprecated">
  54243. </field>
  54244. <field name="MAP_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54245. transient="false" volatile="false"
  54246. static="true" final="true" visibility="public"
  54247. deprecated="not deprecated">
  54248. </field>
  54249. <field name="MAP_INPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54250. transient="false" volatile="false"
  54251. static="true" final="true" visibility="public"
  54252. deprecated="not deprecated">
  54253. </field>
  54254. <field name="MAP_OUTPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54255. transient="false" volatile="false"
  54256. static="true" final="true" visibility="public"
  54257. deprecated="not deprecated">
  54258. </field>
  54259. <field name="MAP_OUTPUT_MATERIALIZED_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54260. transient="false" volatile="false"
  54261. static="true" final="true" visibility="public"
  54262. deprecated="not deprecated">
  54263. </field>
  54264. <field name="COMBINE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54265. transient="false" volatile="false"
  54266. static="true" final="true" visibility="public"
  54267. deprecated="not deprecated">
  54268. </field>
  54269. <field name="COMBINE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54270. transient="false" volatile="false"
  54271. static="true" final="true" visibility="public"
  54272. deprecated="not deprecated">
  54273. </field>
  54274. <field name="REDUCE_INPUT_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  54275. transient="false" volatile="false"
  54276. static="true" final="true" visibility="public"
  54277. deprecated="not deprecated">
  54278. </field>
  54279. <field name="REDUCE_SHUFFLE_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54280. transient="false" volatile="false"
  54281. static="true" final="true" visibility="public"
  54282. deprecated="not deprecated">
  54283. </field>
  54284. <field name="REDUCE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54285. transient="false" volatile="false"
  54286. static="true" final="true" visibility="public"
  54287. deprecated="not deprecated">
  54288. </field>
  54289. <field name="REDUCE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54290. transient="false" volatile="false"
  54291. static="true" final="true" visibility="public"
  54292. deprecated="not deprecated">
  54293. </field>
  54294. <field name="REDUCE_SKIPPED_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  54295. transient="false" volatile="false"
  54296. static="true" final="true" visibility="public"
  54297. deprecated="not deprecated">
  54298. </field>
  54299. <field name="REDUCE_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54300. transient="false" volatile="false"
  54301. static="true" final="true" visibility="public"
  54302. deprecated="not deprecated">
  54303. </field>
  54304. <field name="SPILLED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54305. transient="false" volatile="false"
  54306. static="true" final="true" visibility="public"
  54307. deprecated="not deprecated">
  54308. </field>
  54309. <field name="SPLIT_RAW_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54310. transient="false" volatile="false"
  54311. static="true" final="true" visibility="public"
  54312. deprecated="not deprecated">
  54313. </field>
  54314. <field name="CPU_MILLISECONDS" type="org.apache.hadoop.mapred.Task.Counter"
  54315. transient="false" volatile="false"
  54316. static="true" final="true" visibility="public"
  54317. deprecated="not deprecated">
  54318. </field>
  54319. <field name="PHYSICAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54320. transient="false" volatile="false"
  54321. static="true" final="true" visibility="public"
  54322. deprecated="not deprecated">
  54323. </field>
  54324. <field name="VIRTUAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54325. transient="false" volatile="false"
  54326. static="true" final="true" visibility="public"
  54327. deprecated="not deprecated">
  54328. </field>
  54329. <field name="COMMITTED_HEAP_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54330. transient="false" volatile="false"
  54331. static="true" final="true" visibility="public"
  54332. deprecated="not deprecated">
  54333. </field>
  54334. </class>
  54335. <!-- end class org.apache.hadoop.mapred.Task.Counter -->
  54336. <!-- start class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  54337. <class name="Task.NewCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  54338. abstract="false"
  54339. static="true" final="false" visibility="protected"
  54340. deprecated="not deprecated">
  54341. </class>
  54342. <!-- end class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  54343. <!-- start class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  54344. <class name="Task.OldCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  54345. abstract="false"
  54346. static="true" final="false" visibility="protected"
  54347. deprecated="not deprecated">
  54348. <constructor name="Task.OldCombinerRunner" type="java.lang.Class, org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.Counters.Counter, org.apache.hadoop.mapred.Task.TaskReporter"
  54349. static="false" final="false" visibility="protected"
  54350. deprecated="not deprecated">
  54351. </constructor>
  54352. <method name="combine"
  54353. abstract="false" native="false" synchronized="false"
  54354. static="false" final="false" visibility="protected"
  54355. deprecated="not deprecated">
  54356. <param name="kvIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  54357. <param name="combineCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  54358. <exception name="IOException" type="java.io.IOException"/>
  54359. </method>
  54360. </class>
  54361. <!-- end class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  54362. <!-- start class org.apache.hadoop.mapred.Task.TaskReporter -->
  54363. <class name="Task.TaskReporter" extends="org.apache.hadoop.mapreduce.StatusReporter"
  54364. abstract="false"
  54365. static="false" final="false" visibility="protected"
  54366. deprecated="not deprecated">
  54367. <implements name="java.lang.Runnable"/>
  54368. <implements name="org.apache.hadoop.mapred.Reporter"/>
  54369. <method name="setStatus"
  54370. abstract="false" native="false" synchronized="false"
  54371. static="false" final="false" visibility="public"
  54372. deprecated="not deprecated">
  54373. <param name="status" type="java.lang.String"/>
  54374. </method>
  54375. <method name="setProgress"
  54376. abstract="false" native="false" synchronized="false"
  54377. static="false" final="false" visibility="public"
  54378. deprecated="not deprecated">
  54379. <param name="progress" type="float"/>
  54380. </method>
  54381. <method name="progress"
  54382. abstract="false" native="false" synchronized="false"
  54383. static="false" final="false" visibility="public"
  54384. deprecated="not deprecated">
  54385. </method>
  54386. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  54387. abstract="false" native="false" synchronized="false"
  54388. static="false" final="false" visibility="public"
  54389. deprecated="not deprecated">
  54390. <param name="group" type="java.lang.String"/>
  54391. <param name="name" type="java.lang.String"/>
  54392. </method>
  54393. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  54394. abstract="false" native="false" synchronized="false"
  54395. static="false" final="false" visibility="public"
  54396. deprecated="not deprecated">
  54397. <param name="name" type="java.lang.Enum"/>
  54398. </method>
  54399. <method name="incrCounter"
  54400. abstract="false" native="false" synchronized="false"
  54401. static="false" final="false" visibility="public"
  54402. deprecated="not deprecated">
  54403. <param name="key" type="java.lang.Enum"/>
  54404. <param name="amount" type="long"/>
  54405. </method>
  54406. <method name="incrCounter"
  54407. abstract="false" native="false" synchronized="false"
  54408. static="false" final="false" visibility="public"
  54409. deprecated="not deprecated">
  54410. <param name="group" type="java.lang.String"/>
  54411. <param name="counter" type="java.lang.String"/>
  54412. <param name="amount" type="long"/>
  54413. </method>
  54414. <method name="setInputSplit"
  54415. abstract="false" native="false" synchronized="false"
  54416. static="false" final="false" visibility="public"
  54417. deprecated="not deprecated">
  54418. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54419. </method>
  54420. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  54421. abstract="false" native="false" synchronized="false"
  54422. static="false" final="false" visibility="public"
  54423. deprecated="not deprecated">
  54424. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  54425. </method>
  54426. <method name="run"
  54427. abstract="false" native="false" synchronized="false"
  54428. static="false" final="false" visibility="public"
  54429. deprecated="not deprecated">
  54430. <doc>
  54431. <![CDATA[The communication thread handles communication with the parent (Task Tracker).
  54432. It sends progress updates if progress has been made or if the task needs to
  54433. let the parent know that it's alive. It also pings the parent to see if it's alive.]]>
  54434. </doc>
  54435. </method>
  54436. <method name="startCommunicationThread"
  54437. abstract="false" native="false" synchronized="false"
  54438. static="false" final="false" visibility="public"
  54439. deprecated="not deprecated">
  54440. </method>
  54441. <method name="stopCommunicationThread"
  54442. abstract="false" native="false" synchronized="false"
  54443. static="false" final="false" visibility="public"
  54444. deprecated="not deprecated">
  54445. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54446. </method>
  54447. </class>
  54448. <!-- end class org.apache.hadoop.mapred.Task.TaskReporter -->
  54449. <!-- start class org.apache.hadoop.mapred.TaskAttemptContext -->
  54450. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  54451. abstract="false"
  54452. static="false" final="false" visibility="public"
  54453. deprecated="not deprecated">
  54454. <method name="getTaskAttemptID" return="org.apache.hadoop.mapred.TaskAttemptID"
  54455. abstract="false" native="false" synchronized="false"
  54456. static="false" final="false" visibility="public"
  54457. deprecated="not deprecated">
  54458. <doc>
  54459. <![CDATA[Get the taskAttemptID.
  54460. @return TaskAttemptID]]>
  54461. </doc>
  54462. </method>
  54463. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  54464. abstract="false" native="false" synchronized="false"
  54465. static="false" final="false" visibility="public"
  54466. deprecated="not deprecated">
  54467. </method>
  54468. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  54469. abstract="false" native="false" synchronized="false"
  54470. static="false" final="false" visibility="public"
  54471. deprecated="not deprecated">
  54472. </method>
  54473. <method name="progress"
  54474. abstract="false" native="false" synchronized="false"
  54475. static="false" final="false" visibility="public"
  54476. deprecated="not deprecated">
  54477. </method>
  54478. </class>
  54479. <!-- end class org.apache.hadoop.mapred.TaskAttemptContext -->
  54480. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  54481. <class name="TaskAttemptID" extends="org.apache.hadoop.mapreduce.TaskAttemptID"
  54482. abstract="false"
  54483. static="false" final="false" visibility="public"
  54484. deprecated="not deprecated">
  54485. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  54486. static="false" final="false" visibility="public"
  54487. deprecated="not deprecated">
  54488. <doc>
  54489. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  54490. @param taskId TaskID that this task belongs to
  54491. @param id the task attempt number]]>
  54492. </doc>
  54493. </constructor>
  54494. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  54495. static="false" final="false" visibility="public"
  54496. deprecated="not deprecated">
  54497. <doc>
  54498. <![CDATA[Constructs a TaskId object from given parts.
  54499. @param jtIdentifier jobTracker identifier
  54500. @param jobId job number
  54501. @param isMap whether the tip is a map
  54502. @param taskId taskId number
  54503. @param id the task attempt number]]>
  54504. </doc>
  54505. </constructor>
  54506. <constructor name="TaskAttemptID"
  54507. static="false" final="false" visibility="public"
  54508. deprecated="not deprecated">
  54509. </constructor>
  54510. <method name="downgrade" return="org.apache.hadoop.mapred.TaskAttemptID"
  54511. abstract="false" native="false" synchronized="false"
  54512. static="true" final="false" visibility="public"
  54513. deprecated="not deprecated">
  54514. <param name="old" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  54515. <doc>
  54516. <![CDATA[Downgrade a new TaskAttemptID to an old one
  54517. @param old the new id
  54518. @return either old or a new TaskAttemptID constructed to match old]]>
  54519. </doc>
  54520. </method>
  54521. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  54522. abstract="false" native="false" synchronized="false"
  54523. static="false" final="false" visibility="public"
  54524. deprecated="not deprecated">
  54525. </method>
  54526. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  54527. abstract="false" native="false" synchronized="false"
  54528. static="false" final="false" visibility="public"
  54529. deprecated="not deprecated">
  54530. </method>
  54531. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  54532. abstract="false" native="false" synchronized="false"
  54533. static="true" final="false" visibility="public"
  54534. deprecated="not deprecated">
  54535. <param name="in" type="java.io.DataInput"/>
  54536. <exception name="IOException" type="java.io.IOException"/>
  54537. </method>
  54538. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  54539. abstract="false" native="false" synchronized="false"
  54540. static="true" final="false" visibility="public"
  54541. deprecated="not deprecated">
  54542. <param name="str" type="java.lang.String"/>
  54543. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  54544. <doc>
  54545. <![CDATA[Construct a TaskAttemptID object from given string
  54546. @return constructed TaskAttemptID object or null if the given String is null
  54547. @throws IllegalArgumentException if the given string is malformed]]>
  54548. </doc>
  54549. </method>
  54550. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  54551. abstract="false" native="false" synchronized="false"
  54552. static="true" final="false" visibility="public"
  54553. deprecated="not deprecated">
  54554. <param name="jtIdentifier" type="java.lang.String"/>
  54555. <param name="jobId" type="java.lang.Integer"/>
  54556. <param name="isMap" type="java.lang.Boolean"/>
  54557. <param name="taskId" type="java.lang.Integer"/>
  54558. <param name="attemptId" type="java.lang.Integer"/>
  54559. <doc>
  54560. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  54561. be given null, in which case that part of the regex will be generic.
  54562. For example to obtain a regex matching <i>all task attempt IDs</i>
  54563. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  54564. map task</i>, we would use :
  54565. <pre>
  54566. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  54567. </pre>
  54568. which will return :
  54569. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  54570. @param jtIdentifier jobTracker identifier, or null
  54571. @param jobId job number, or null
  54572. @param isMap whether the tip is a map, or null
  54573. @param taskId taskId number, or null
  54574. @param attemptId the task attempt number, or null
  54575. @return a regex pattern matching TaskAttemptIDs]]>
  54576. </doc>
  54577. </method>
  54578. <doc>
  54579. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  54580. a task attempt. Each task attempt is one particular instance of a Map or
  54581. Reduce Task identified by its TaskID.
  54582. TaskAttemptID consists of 2 parts. First part is the
  54583. {@link TaskID}, that this TaskAttemptID belongs to.
  54584. Second part is the task attempt number. <br>
  54585. An example TaskAttemptID is :
  54586. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  54587. zeroth task attempt for the fifth map task in the third job
  54588. running at the jobtracker started at <code>200707121733</code>.
  54589. <p>
  54590. Applications should never construct or parse TaskAttemptID strings
  54591. , but rather use appropriate constructors or {@link #forName(String)}
  54592. method.
  54593. @see JobID
  54594. @see TaskID]]>
  54595. </doc>
  54596. </class>
  54597. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  54598. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  54599. <class name="TaskCompletionEvent" extends="java.lang.Object"
  54600. abstract="false"
  54601. static="false" final="false" visibility="public"
  54602. deprecated="not deprecated">
  54603. <implements name="org.apache.hadoop.io.Writable"/>
  54604. <constructor name="TaskCompletionEvent"
  54605. static="false" final="false" visibility="public"
  54606. deprecated="not deprecated">
  54607. <doc>
  54608. <![CDATA[Default constructor for Writable.]]>
  54609. </doc>
  54610. </constructor>
  54611. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  54612. static="false" final="false" visibility="public"
  54613. deprecated="not deprecated">
  54614. <doc>
  54615. <![CDATA[Constructor. eventId should be created externally and incremented
  54616. per event for each job.
  54617. @param eventId event id, event id should be unique and assigned in
  54618. incrementally, starting from 0.
  54619. @param taskId task id
  54620. @param status task's status
  54621. @param taskTrackerHttp task tracker's host:port for http.]]>
  54622. </doc>
  54623. </constructor>
  54624. <method name="getEventId" return="int"
  54625. abstract="false" native="false" synchronized="false"
  54626. static="false" final="false" visibility="public"
  54627. deprecated="not deprecated">
  54628. <doc>
  54629. <![CDATA[Returns event Id.
  54630. @return event id]]>
  54631. </doc>
  54632. </method>
  54633. <method name="getTaskId" return="java.lang.String"
  54634. abstract="false" native="false" synchronized="false"
  54635. static="false" final="false" visibility="public"
  54636. deprecated="use {@link #getTaskAttemptId()} instead.">
  54637. <doc>
  54638. <![CDATA[Returns task id.
  54639. @return task id
  54640. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  54641. </doc>
  54642. </method>
  54643. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  54644. abstract="false" native="false" synchronized="false"
  54645. static="false" final="false" visibility="public"
  54646. deprecated="not deprecated">
  54647. <doc>
  54648. <![CDATA[Returns task id.
  54649. @return task id]]>
  54650. </doc>
  54651. </method>
  54652. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54653. abstract="false" native="false" synchronized="false"
  54654. static="false" final="false" visibility="public"
  54655. deprecated="not deprecated">
  54656. <doc>
  54657. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  54658. @return task tracker status]]>
  54659. </doc>
  54660. </method>
  54661. <method name="getTaskTrackerHttp" return="java.lang.String"
  54662. abstract="false" native="false" synchronized="false"
  54663. static="false" final="false" visibility="public"
  54664. deprecated="not deprecated">
  54665. <doc>
  54666. <![CDATA[http location of the tasktracker where this task ran.
  54667. @return http location of tasktracker user logs]]>
  54668. </doc>
  54669. </method>
  54670. <method name="getTaskRunTime" return="int"
  54671. abstract="false" native="false" synchronized="false"
  54672. static="false" final="false" visibility="public"
  54673. deprecated="not deprecated">
  54674. <doc>
  54675. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  54676. </doc>
  54677. </method>
  54678. <method name="setTaskRunTime"
  54679. abstract="false" native="false" synchronized="false"
  54680. static="false" final="false" visibility="public"
  54681. deprecated="not deprecated">
  54682. <param name="taskCompletionTime" type="int"/>
  54683. <doc>
  54684. <![CDATA[Set the task completion time
  54685. @param taskCompletionTime time (in millisec) the task took to complete]]>
  54686. </doc>
  54687. </method>
  54688. <method name="setEventId"
  54689. abstract="false" native="false" synchronized="false"
  54690. static="false" final="false" visibility="public"
  54691. deprecated="not deprecated">
  54692. <param name="eventId" type="int"/>
  54693. <doc>
  54694. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  54695. @param eventId]]>
  54696. </doc>
  54697. </method>
  54698. <method name="setTaskId"
  54699. abstract="false" native="false" synchronized="false"
  54700. static="false" final="false" visibility="public"
  54701. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  54702. <param name="taskId" type="java.lang.String"/>
  54703. <doc>
  54704. <![CDATA[Sets task id.
  54705. @param taskId
  54706. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  54707. </doc>
  54708. </method>
  54709. <method name="setTaskID"
  54710. abstract="false" native="false" synchronized="false"
  54711. static="false" final="false" visibility="public"
  54712. deprecated="not deprecated">
  54713. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54714. <doc>
  54715. <![CDATA[Sets task id.
  54716. @param taskId]]>
  54717. </doc>
  54718. </method>
  54719. <method name="setTaskStatus"
  54720. abstract="false" native="false" synchronized="false"
  54721. static="false" final="false" visibility="public"
  54722. deprecated="not deprecated">
  54723. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  54724. <doc>
  54725. <![CDATA[Set task status.
  54726. @param status]]>
  54727. </doc>
  54728. </method>
  54729. <method name="setTaskTrackerHttp"
  54730. abstract="false" native="false" synchronized="false"
  54731. static="false" final="false" visibility="public"
  54732. deprecated="not deprecated">
  54733. <param name="taskTrackerHttp" type="java.lang.String"/>
  54734. <doc>
  54735. <![CDATA[Set task tracker http location.
  54736. @param taskTrackerHttp]]>
  54737. </doc>
  54738. </method>
  54739. <method name="toString" return="java.lang.String"
  54740. abstract="false" native="false" synchronized="false"
  54741. static="false" final="false" visibility="public"
  54742. deprecated="not deprecated">
  54743. </method>
  54744. <method name="equals" return="boolean"
  54745. abstract="false" native="false" synchronized="false"
  54746. static="false" final="false" visibility="public"
  54747. deprecated="not deprecated">
  54748. <param name="o" type="java.lang.Object"/>
  54749. </method>
  54750. <method name="hashCode" return="int"
  54751. abstract="false" native="false" synchronized="false"
  54752. static="false" final="false" visibility="public"
  54753. deprecated="not deprecated">
  54754. </method>
  54755. <method name="isMapTask" return="boolean"
  54756. abstract="false" native="false" synchronized="false"
  54757. static="false" final="false" visibility="public"
  54758. deprecated="not deprecated">
  54759. </method>
  54760. <method name="idWithinJob" return="int"
  54761. abstract="false" native="false" synchronized="false"
  54762. static="false" final="false" visibility="public"
  54763. deprecated="not deprecated">
  54764. </method>
  54765. <method name="write"
  54766. abstract="false" native="false" synchronized="false"
  54767. static="false" final="false" visibility="public"
  54768. deprecated="not deprecated">
  54769. <param name="out" type="java.io.DataOutput"/>
  54770. <exception name="IOException" type="java.io.IOException"/>
  54771. </method>
  54772. <method name="readFields"
  54773. abstract="false" native="false" synchronized="false"
  54774. static="false" final="false" visibility="public"
  54775. deprecated="not deprecated">
  54776. <param name="in" type="java.io.DataInput"/>
  54777. <exception name="IOException" type="java.io.IOException"/>
  54778. </method>
  54779. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  54780. transient="false" volatile="false"
  54781. static="true" final="true" visibility="public"
  54782. deprecated="not deprecated">
  54783. </field>
  54784. <doc>
  54785. <![CDATA[This is used to track task completion events on
  54786. job tracker.]]>
  54787. </doc>
  54788. </class>
  54789. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  54790. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  54791. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum"
  54792. abstract="false"
  54793. static="true" final="true" visibility="public"
  54794. deprecated="not deprecated">
  54795. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  54796. abstract="false" native="false" synchronized="false"
  54797. static="true" final="false" visibility="public"
  54798. deprecated="not deprecated">
  54799. </method>
  54800. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54801. abstract="false" native="false" synchronized="false"
  54802. static="true" final="false" visibility="public"
  54803. deprecated="not deprecated">
  54804. <param name="name" type="java.lang.String"/>
  54805. </method>
  54806. <field name="FAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54807. transient="false" volatile="false"
  54808. static="true" final="true" visibility="public"
  54809. deprecated="not deprecated">
  54810. </field>
  54811. <field name="KILLED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54812. transient="false" volatile="false"
  54813. static="true" final="true" visibility="public"
  54814. deprecated="not deprecated">
  54815. </field>
  54816. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54817. transient="false" volatile="false"
  54818. static="true" final="true" visibility="public"
  54819. deprecated="not deprecated">
  54820. </field>
  54821. <field name="OBSOLETE" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54822. transient="false" volatile="false"
  54823. static="true" final="true" visibility="public"
  54824. deprecated="not deprecated">
  54825. </field>
  54826. <field name="TIPFAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54827. transient="false" volatile="false"
  54828. static="true" final="true" visibility="public"
  54829. deprecated="not deprecated">
  54830. </field>
  54831. </class>
  54832. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  54833. <!-- start class org.apache.hadoop.mapred.TaskController -->
  54834. <class name="TaskController" extends="java.lang.Object"
  54835. abstract="true"
  54836. static="false" final="false" visibility="public"
  54837. deprecated="not deprecated">
  54838. <implements name="org.apache.hadoop.conf.Configurable"/>
  54839. <constructor name="TaskController"
  54840. static="false" final="false" visibility="public"
  54841. deprecated="not deprecated">
  54842. </constructor>
  54843. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  54844. abstract="false" native="false" synchronized="false"
  54845. static="false" final="false" visibility="public"
  54846. deprecated="not deprecated">
  54847. </method>
  54848. <method name="getLocalDirs" return="java.lang.String[]"
  54849. abstract="false" native="false" synchronized="false"
  54850. static="false" final="false" visibility="public"
  54851. deprecated="not deprecated">
  54852. </method>
  54853. <method name="setConf"
  54854. abstract="false" native="false" synchronized="false"
  54855. static="false" final="false" visibility="public"
  54856. deprecated="not deprecated">
  54857. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54858. </method>
  54859. <method name="setup"
  54860. abstract="true" native="false" synchronized="false"
  54861. static="false" final="false" visibility="public"
  54862. deprecated="not deprecated">
  54863. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  54864. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  54865. <exception name="IOException" type="java.io.IOException"/>
  54866. <doc>
  54867. <![CDATA[Does initialization and setup.
  54868. @param allocator the local dir allocator to use
  54869. @param localStorage local storage to obtain dirs from]]>
  54870. </doc>
  54871. </method>
  54872. <method name="initializeJob"
  54873. abstract="true" native="false" synchronized="false"
  54874. static="false" final="false" visibility="public"
  54875. deprecated="not deprecated">
  54876. <param name="user" type="java.lang.String"/>
  54877. <param name="jobid" type="java.lang.String"/>
  54878. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  54879. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  54880. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54881. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  54882. <exception name="IOException" type="java.io.IOException"/>
  54883. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54884. <doc>
  54885. <![CDATA[Create all of the directories necessary for the job to start and download
  54886. all of the job and private distributed cache files.
  54887. Creates both the user directories and the job log directory.
  54888. @param user the user name
  54889. @param jobid the job
  54890. @param credentials a filename containing the job secrets
  54891. @param jobConf the path to the localized configuration file
  54892. @param taskTracker the connection the task tracker
  54893. @param ttAddr the tasktracker's RPC address
  54894. @throws IOException
  54895. @throws InterruptedException]]>
  54896. </doc>
  54897. </method>
  54898. <method name="launchTask" return="int"
  54899. abstract="true" native="false" synchronized="false"
  54900. static="false" final="false" visibility="public"
  54901. deprecated="not deprecated">
  54902. <param name="user" type="java.lang.String"/>
  54903. <param name="jobId" type="java.lang.String"/>
  54904. <param name="attemptId" type="java.lang.String"/>
  54905. <param name="setup" type="java.util.List"/>
  54906. <param name="jvmArguments" type="java.util.List"/>
  54907. <param name="currentWorkDirectory" type="java.io.File"/>
  54908. <param name="stdout" type="java.lang.String"/>
  54909. <param name="stderr" type="java.lang.String"/>
  54910. <exception name="IOException" type="java.io.IOException"/>
  54911. <doc>
  54912. <![CDATA[Create all of the directories for the task and launches the child jvm.
  54913. @param user the user name
  54914. @param jobId the jobId in question
  54915. @param attemptId the attempt id (cleanup attempts have .cleanup suffix)
  54916. @param setup list of shell commands to execute before the jvm
  54917. @param jvmArguments list of jvm arguments
  54918. @param currentWorkDirectory the full path of the cwd for the task
  54919. @param stdout the file to redirect stdout to
  54920. @param stderr the file to redirect stderr to
  54921. @return the exit code for the task
  54922. @throws IOException]]>
  54923. </doc>
  54924. </method>
  54925. <method name="signalTask"
  54926. abstract="true" native="false" synchronized="false"
  54927. static="false" final="false" visibility="public"
  54928. deprecated="not deprecated">
  54929. <param name="user" type="java.lang.String"/>
  54930. <param name="taskPid" type="int"/>
  54931. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  54932. <exception name="IOException" type="java.io.IOException"/>
  54933. <doc>
  54934. <![CDATA[Send a signal to a task pid as the user.
  54935. @param user the user name
  54936. @param taskPid the pid of the task
  54937. @param signal the id of the signal to send]]>
  54938. </doc>
  54939. </method>
  54940. <method name="deleteAsUser"
  54941. abstract="true" native="false" synchronized="false"
  54942. static="false" final="false" visibility="public"
  54943. deprecated="not deprecated">
  54944. <param name="user" type="java.lang.String"/>
  54945. <param name="subDir" type="java.lang.String"/>
  54946. <exception name="IOException" type="java.io.IOException"/>
  54947. <doc>
  54948. <![CDATA[Delete the user's files under all of the task tracker root directories.
  54949. @param user the user name
  54950. @param subDir the path relative to the user's subdirectory under
  54951. the task tracker root directories.
  54952. @throws IOException]]>
  54953. </doc>
  54954. </method>
  54955. <method name="createLogDir"
  54956. abstract="false" native="false" synchronized="false"
  54957. static="false" final="false" visibility="public"
  54958. deprecated="not deprecated">
  54959. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54960. <param name="isCleanup" type="boolean"/>
  54961. <exception name="IOException" type="java.io.IOException"/>
  54962. <doc>
  54963. <![CDATA[Creates task log dir
  54964. @param taskID ID of the task
  54965. @param isCleanup If the task is cleanup task or not
  54966. @throws IOException]]>
  54967. </doc>
  54968. </method>
  54969. <method name="deleteLogAsUser"
  54970. abstract="true" native="false" synchronized="false"
  54971. static="false" final="false" visibility="public"
  54972. deprecated="not deprecated">
  54973. <param name="user" type="java.lang.String"/>
  54974. <param name="subDir" type="java.lang.String"/>
  54975. <exception name="IOException" type="java.io.IOException"/>
  54976. <doc>
  54977. <![CDATA[Delete the user's files under the userlogs directory.
  54978. @param user the user to work as
  54979. @param subDir the path under the userlogs directory.
  54980. @throws IOException]]>
  54981. </doc>
  54982. </method>
  54983. <method name="truncateLogsAsUser"
  54984. abstract="true" native="false" synchronized="false"
  54985. static="false" final="false" visibility="public"
  54986. deprecated="not deprecated">
  54987. <param name="user" type="java.lang.String"/>
  54988. <param name="allAttempts" type="java.util.List"/>
  54989. <exception name="IOException" type="java.io.IOException"/>
  54990. <doc>
  54991. <![CDATA[Run the passed command as the user
  54992. @param user
  54993. @param allAttempts the list of attempts that the JVM ran
  54994. @throws IOException]]>
  54995. </doc>
  54996. </method>
  54997. <method name="getRunAsUser" return="java.lang.String"
  54998. abstract="false" native="false" synchronized="false"
  54999. static="false" final="false" visibility="public"
  55000. deprecated="not deprecated">
  55001. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55002. <doc>
  55003. <![CDATA[Returns the local unix user that a given job will run as.]]>
  55004. </doc>
  55005. </method>
  55006. <method name="writeCommand" return="java.lang.String"
  55007. abstract="false" native="false" synchronized="false"
  55008. static="true" final="false" visibility="protected"
  55009. deprecated="not deprecated">
  55010. <param name="cmdLine" type="java.lang.String"/>
  55011. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  55012. <param name="commandFile" type="org.apache.hadoop.fs.Path"/>
  55013. <exception name="IOException" type="java.io.IOException"/>
  55014. </method>
  55015. <method name="logOutput"
  55016. abstract="false" native="false" synchronized="false"
  55017. static="false" final="false" visibility="protected"
  55018. deprecated="not deprecated">
  55019. <param name="output" type="java.lang.String"/>
  55020. </method>
  55021. <field name="LOG" type="org.apache.commons.logging.Log"
  55022. transient="false" volatile="false"
  55023. static="true" final="true" visibility="public"
  55024. deprecated="not deprecated">
  55025. </field>
  55026. <field name="COMMAND_FILE" type="java.lang.String"
  55027. transient="false" volatile="false"
  55028. static="true" final="true" visibility="protected"
  55029. deprecated="not deprecated">
  55030. </field>
  55031. <field name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"
  55032. transient="false" volatile="false"
  55033. static="false" final="false" visibility="protected"
  55034. deprecated="not deprecated">
  55035. </field>
  55036. <field name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"
  55037. transient="false" volatile="false"
  55038. static="false" final="false" visibility="protected"
  55039. deprecated="not deprecated">
  55040. </field>
  55041. <field name="TASK_LAUNCH_SCRIPT_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  55042. transient="false" volatile="false"
  55043. static="true" final="true" visibility="public"
  55044. deprecated="not deprecated">
  55045. </field>
  55046. <doc>
  55047. <![CDATA[Controls initialization, finalization and clean up of tasks, and
  55048. also the launching and killing of task JVMs.
  55049. This class defines the API for initializing, finalizing and cleaning
  55050. up of tasks, as also the launching and killing task JVMs.
  55051. Subclasses of this class will implement the logic required for
  55052. performing the actual actions.
  55053. <br/>
  55054. NOTE: This class is internal only class and not intended for users!!]]>
  55055. </doc>
  55056. </class>
  55057. <!-- end class org.apache.hadoop.mapred.TaskController -->
  55058. <!-- start class org.apache.hadoop.mapred.TaskGraphServlet -->
  55059. <class name="TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  55060. abstract="false"
  55061. static="false" final="false" visibility="public"
  55062. deprecated="not deprecated">
  55063. <constructor name="TaskGraphServlet"
  55064. static="false" final="false" visibility="public"
  55065. deprecated="not deprecated">
  55066. </constructor>
  55067. <method name="doGet"
  55068. abstract="false" native="false" synchronized="false"
  55069. static="false" final="false" visibility="public"
  55070. deprecated="not deprecated">
  55071. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  55072. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  55073. <exception name="ServletException" type="javax.servlet.ServletException"/>
  55074. <exception name="IOException" type="java.io.IOException"/>
  55075. </method>
  55076. <field name="width" type="int"
  55077. transient="false" volatile="false"
  55078. static="true" final="true" visibility="public"
  55079. deprecated="not deprecated">
  55080. <doc>
  55081. <![CDATA[height of the graph w/o margins]]>
  55082. </doc>
  55083. </field>
  55084. <field name="height" type="int"
  55085. transient="false" volatile="false"
  55086. static="true" final="true" visibility="public"
  55087. deprecated="not deprecated">
  55088. <doc>
  55089. <![CDATA[height of the graph w/o margins]]>
  55090. </doc>
  55091. </field>
  55092. <field name="ymargin" type="int"
  55093. transient="false" volatile="false"
  55094. static="true" final="true" visibility="public"
  55095. deprecated="not deprecated">
  55096. <doc>
  55097. <![CDATA[margin space on y axis]]>
  55098. </doc>
  55099. </field>
  55100. <field name="xmargin" type="int"
  55101. transient="false" volatile="false"
  55102. static="true" final="true" visibility="public"
  55103. deprecated="not deprecated">
  55104. <doc>
  55105. <![CDATA[margin space on x axis]]>
  55106. </doc>
  55107. </field>
  55108. <doc>
  55109. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  55110. statuses]]>
  55111. </doc>
  55112. </class>
  55113. <!-- end class org.apache.hadoop.mapred.TaskGraphServlet -->
  55114. <!-- start class org.apache.hadoop.mapred.TaskID -->
  55115. <class name="TaskID" extends="org.apache.hadoop.mapreduce.TaskID"
  55116. abstract="false"
  55117. static="false" final="false" visibility="public"
  55118. deprecated="not deprecated">
  55119. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  55120. static="false" final="false" visibility="public"
  55121. deprecated="not deprecated">
  55122. <doc>
  55123. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  55124. @param jobId JobID that this tip belongs to
  55125. @param isMap whether the tip is a map
  55126. @param id the tip number]]>
  55127. </doc>
  55128. </constructor>
  55129. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  55130. static="false" final="false" visibility="public"
  55131. deprecated="not deprecated">
  55132. <doc>
  55133. <![CDATA[Constructs a TaskInProgressId object from given parts.
  55134. @param jtIdentifier jobTracker identifier
  55135. @param jobId job number
  55136. @param isMap whether the tip is a map
  55137. @param id the tip number]]>
  55138. </doc>
  55139. </constructor>
  55140. <constructor name="TaskID"
  55141. static="false" final="false" visibility="public"
  55142. deprecated="not deprecated">
  55143. </constructor>
  55144. <method name="downgrade" return="org.apache.hadoop.mapred.TaskID"
  55145. abstract="false" native="false" synchronized="false"
  55146. static="true" final="false" visibility="public"
  55147. deprecated="not deprecated">
  55148. <param name="old" type="org.apache.hadoop.mapreduce.TaskID"/>
  55149. <doc>
  55150. <![CDATA[Downgrade a new TaskID to an old one
  55151. @param old a new or old TaskID
  55152. @return either old or a new TaskID build to match old]]>
  55153. </doc>
  55154. </method>
  55155. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  55156. abstract="false" native="false" synchronized="false"
  55157. static="true" final="false" visibility="public"
  55158. deprecated="not deprecated">
  55159. <param name="in" type="java.io.DataInput"/>
  55160. <exception name="IOException" type="java.io.IOException"/>
  55161. </method>
  55162. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  55163. abstract="false" native="false" synchronized="false"
  55164. static="false" final="false" visibility="public"
  55165. deprecated="not deprecated">
  55166. </method>
  55167. <method name="getTaskIDsPattern" return="java.lang.String"
  55168. abstract="false" native="false" synchronized="false"
  55169. static="true" final="false" visibility="public"
  55170. deprecated="not deprecated">
  55171. <param name="jtIdentifier" type="java.lang.String"/>
  55172. <param name="jobId" type="java.lang.Integer"/>
  55173. <param name="isMap" type="java.lang.Boolean"/>
  55174. <param name="taskId" type="java.lang.Integer"/>
  55175. <doc>
  55176. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  55177. be given null, in which case that part of the regex will be generic.
  55178. For example to obtain a regex matching <i>the first map task</i>
  55179. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  55180. <pre>
  55181. TaskID.getTaskIDsPattern(null, null, true, 1);
  55182. </pre>
  55183. which will return :
  55184. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  55185. @param jtIdentifier jobTracker identifier, or null
  55186. @param jobId job number, or null
  55187. @param isMap whether the tip is a map, or null
  55188. @param taskId taskId number, or null
  55189. @return a regex pattern matching TaskIDs]]>
  55190. </doc>
  55191. </method>
  55192. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  55193. abstract="false" native="false" synchronized="false"
  55194. static="true" final="false" visibility="public"
  55195. deprecated="not deprecated">
  55196. <param name="str" type="java.lang.String"/>
  55197. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  55198. </method>
  55199. <doc>
  55200. <![CDATA[TaskID represents the immutable and unique identifier for
  55201. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  55202. execute the Map or Reduce Task, each of which are uniquely indentified by
  55203. their TaskAttemptID.
  55204. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  55205. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  55206. representing whether the task is a map task or a reduce task.
  55207. And the third part is the task number. <br>
  55208. An example TaskID is :
  55209. <code>task_200707121733_0003_m_000005</code> , which represents the
  55210. fifth map task in the third job running at the jobtracker
  55211. started at <code>200707121733</code>.
  55212. <p>
  55213. Applications should never construct or parse TaskID strings
  55214. , but rather use appropriate constructors or {@link #forName(String)}
  55215. method.
  55216. @see JobID
  55217. @see TaskAttemptID]]>
  55218. </doc>
  55219. </class>
  55220. <!-- end class org.apache.hadoop.mapred.TaskID -->
  55221. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  55222. <class name="TaskLog" extends="java.lang.Object"
  55223. abstract="false"
  55224. static="false" final="false" visibility="public"
  55225. deprecated="not deprecated">
  55226. <constructor name="TaskLog"
  55227. static="false" final="false" visibility="public"
  55228. deprecated="not deprecated">
  55229. </constructor>
  55230. <method name="createTaskAttemptLogDir"
  55231. abstract="false" native="false" synchronized="false"
  55232. static="true" final="false" visibility="public"
  55233. deprecated="not deprecated">
  55234. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55235. <param name="isCleanup" type="boolean"/>
  55236. <param name="localDirs" type="java.lang.String[]"/>
  55237. <exception name="IOException" type="java.io.IOException"/>
  55238. <doc>
  55239. <![CDATA[Create log directory for the given attempt. This involves creating the
  55240. following and setting proper permissions for the new directories
  55241. <br>{hadoop.log.dir}/userlogs/<jobid>
  55242. <br>{hadoop.log.dir}/userlogs/<jobid>/<attempt-id-as-symlink>
  55243. <br>{one of the mapred-local-dirs}/userlogs/<jobid>
  55244. <br>{one of the mapred-local-dirs}/userlogs/<jobid>/<attempt-id>
  55245. @param taskID attempt-id for which log dir is to be created
  55246. @param isCleanup Is this attempt a cleanup attempt ?
  55247. @param localDirs mapred local directories
  55248. @throws IOException]]>
  55249. </doc>
  55250. </method>
  55251. <method name="getTaskAttemptLogDir" return="java.lang.String"
  55252. abstract="false" native="false" synchronized="false"
  55253. static="true" final="false" visibility="public"
  55254. deprecated="not deprecated">
  55255. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55256. <param name="cleanupSuffix" type="java.lang.String"/>
  55257. <param name="localDirs" type="java.lang.String[]"/>
  55258. <exception name="IOException" type="java.io.IOException"/>
  55259. <doc>
  55260. <![CDATA[Get attempt log directory path for the given attempt-id under randomly
  55261. selected mapred local directory.
  55262. @param taskID attempt-id for which log dir path is needed
  55263. @param cleanupSuffix ".cleanup" if this attempt is a cleanup attempt
  55264. @param localDirs mapred local directories
  55265. @return target task attempt log directory
  55266. @throws IOException]]>
  55267. </doc>
  55268. </method>
  55269. <method name="getTaskLogFile" return="java.io.File"
  55270. abstract="false" native="false" synchronized="false"
  55271. static="true" final="false" visibility="public"
  55272. deprecated="not deprecated">
  55273. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55274. <param name="isCleanup" type="boolean"/>
  55275. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  55276. </method>
  55277. <method name="getBaseLogDir" return="java.lang.String"
  55278. abstract="false" native="false" synchronized="false"
  55279. static="true" final="false" visibility="public"
  55280. deprecated="not deprecated">
  55281. </method>
  55282. <method name="syncLogs"
  55283. abstract="false" native="false" synchronized="true"
  55284. static="true" final="false" visibility="public"
  55285. deprecated="not deprecated">
  55286. <param name="logLocation" type="java.lang.String"/>
  55287. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55288. <param name="isCleanup" type="boolean"/>
  55289. <param name="segmented" type="boolean"/>
  55290. <exception name="IOException" type="java.io.IOException"/>
  55291. </method>
  55292. <method name="getTaskLogLength" return="long"
  55293. abstract="false" native="false" synchronized="false"
  55294. static="true" final="false" visibility="public"
  55295. deprecated="not deprecated">
  55296. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55297. <doc>
  55298. <![CDATA[Get the desired maximum length of task's logs.
  55299. @param conf the job to look in
  55300. @return the number of bytes to cap the log files at]]>
  55301. </doc>
  55302. </method>
  55303. <method name="captureOutAndError" return="java.util.List"
  55304. abstract="false" native="false" synchronized="false"
  55305. static="true" final="false" visibility="public"
  55306. deprecated="not deprecated">
  55307. <param name="cmd" type="java.util.List"/>
  55308. <param name="stdoutFilename" type="java.io.File"/>
  55309. <param name="stderrFilename" type="java.io.File"/>
  55310. <param name="tailLength" type="long"/>
  55311. <exception name="IOException" type="java.io.IOException"/>
  55312. <doc>
  55313. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55314. If the tailLength is 0, the entire output will be saved.
  55315. @param cmd The command and the arguments that should be run
  55316. @param stdoutFilename The filename that stdout should be saved to
  55317. @param stderrFilename The filename that stderr should be saved to
  55318. @param tailLength The length of the tail to be saved.
  55319. @return the modified command that should be run]]>
  55320. </doc>
  55321. </method>
  55322. <method name="captureOutAndError" return="java.util.List"
  55323. abstract="false" native="false" synchronized="false"
  55324. static="true" final="false" visibility="public"
  55325. deprecated="not deprecated">
  55326. <param name="setup" type="java.util.List"/>
  55327. <param name="cmd" type="java.util.List"/>
  55328. <param name="stdoutFilename" type="java.io.File"/>
  55329. <param name="stderrFilename" type="java.io.File"/>
  55330. <param name="tailLength" type="long"/>
  55331. <exception name="IOException" type="java.io.IOException"/>
  55332. <doc>
  55333. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55334. Setup commands such as setting memory limit can be passed which
  55335. will be executed before exec.
  55336. If the tailLength is 0, the entire output will be saved.
  55337. @param setup The setup commands for the execed process.
  55338. @param cmd The command and the arguments that should be run
  55339. @param stdoutFilename The filename that stdout should be saved to
  55340. @param stderrFilename The filename that stderr should be saved to
  55341. @param tailLength The length of the tail to be saved.
  55342. @return the modified command that should be run]]>
  55343. </doc>
  55344. </method>
  55345. <method name="captureOutAndError" return="java.util.List"
  55346. abstract="false" native="false" synchronized="false"
  55347. static="true" final="false" visibility="public"
  55348. deprecated="pidFiles are no more used. Instead pid is exported to
  55349. env variable JVM_PID.">
  55350. <param name="setup" type="java.util.List"/>
  55351. <param name="cmd" type="java.util.List"/>
  55352. <param name="stdoutFilename" type="java.io.File"/>
  55353. <param name="stderrFilename" type="java.io.File"/>
  55354. <param name="tailLength" type="long"/>
  55355. <param name="pidFileName" type="java.lang.String"/>
  55356. <exception name="IOException" type="java.io.IOException"/>
  55357. <doc>
  55358. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55359. Setup commands such as setting memory limit can be passed which
  55360. will be executed before exec.
  55361. If the tailLength is 0, the entire output will be saved.
  55362. @param setup The setup commands for the execed process.
  55363. @param cmd The command and the arguments that should be run
  55364. @param stdoutFilename The filename that stdout should be saved to
  55365. @param stderrFilename The filename that stderr should be saved to
  55366. @param tailLength The length of the tail to be saved.
  55367. @deprecated pidFiles are no more used. Instead pid is exported to
  55368. env variable JVM_PID.
  55369. @return the modified command that should be run]]>
  55370. </doc>
  55371. </method>
  55372. <method name="captureOutAndError" return="java.util.List"
  55373. abstract="false" native="false" synchronized="false"
  55374. static="true" final="false" visibility="public"
  55375. deprecated="pidFiles are no more used. Instead pid is exported to
  55376. env variable JVM_PID.">
  55377. <param name="setup" type="java.util.List"/>
  55378. <param name="cmd" type="java.util.List"/>
  55379. <param name="stdoutFilename" type="java.io.File"/>
  55380. <param name="stderrFilename" type="java.io.File"/>
  55381. <param name="tailLength" type="long"/>
  55382. <param name="useSetsid" type="boolean"/>
  55383. <param name="pidFileName" type="java.lang.String"/>
  55384. <exception name="IOException" type="java.io.IOException"/>
  55385. <doc>
  55386. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55387. Setup commands such as setting memory limit can be passed which
  55388. will be executed before exec.
  55389. If the tailLength is 0, the entire output will be saved.
  55390. @param setup The setup commands for the execed process.
  55391. @param cmd The command and the arguments that should be run
  55392. @param stdoutFilename The filename that stdout should be saved to
  55393. @param stderrFilename The filename that stderr should be saved to
  55394. @param tailLength The length of the tail to be saved.
  55395. @param useSetsid Should setsid be used in the command or not.
  55396. @deprecated pidFiles are no more used. Instead pid is exported to
  55397. env variable JVM_PID.
  55398. @return the modified command that should be run]]>
  55399. </doc>
  55400. </method>
  55401. <method name="captureOutAndError" return="java.util.List"
  55402. abstract="false" native="false" synchronized="false"
  55403. static="true" final="false" visibility="public"
  55404. deprecated="not deprecated">
  55405. <param name="setup" type="java.util.List"/>
  55406. <param name="cmd" type="java.util.List"/>
  55407. <param name="stdoutFilename" type="java.io.File"/>
  55408. <param name="stderrFilename" type="java.io.File"/>
  55409. <param name="tailLength" type="long"/>
  55410. <param name="useSetsid" type="boolean"/>
  55411. <exception name="IOException" type="java.io.IOException"/>
  55412. <doc>
  55413. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55414. Setup commands such as setting memory limit can be passed which
  55415. will be executed before exec.
  55416. If the tailLength is 0, the entire output will be saved.
  55417. @param setup The setup commands for the execed process.
  55418. @param cmd The command and the arguments that should be run
  55419. @param stdoutFilename The filename that stdout should be saved to
  55420. @param stderrFilename The filename that stderr should be saved to
  55421. @param tailLength The length of the tail to be saved.
  55422. @param useSetsid Should setsid be used in the command or not.
  55423. @return the modified command that should be run]]>
  55424. </doc>
  55425. </method>
  55426. <method name="addCommand" return="java.lang.String"
  55427. abstract="false" native="false" synchronized="false"
  55428. static="true" final="false" visibility="public"
  55429. deprecated="not deprecated">
  55430. <param name="cmd" type="java.util.List"/>
  55431. <param name="isExecutable" type="boolean"/>
  55432. <exception name="IOException" type="java.io.IOException"/>
  55433. <doc>
  55434. <![CDATA[Add quotes to each of the command strings and
  55435. return as a single string
  55436. @param cmd The command to be quoted
  55437. @param isExecutable makes shell path if the first
  55438. argument is executable
  55439. @return returns The quoted string.
  55440. @throws IOException]]>
  55441. </doc>
  55442. </method>
  55443. <method name="captureDebugOut" return="java.util.List"
  55444. abstract="false" native="false" synchronized="false"
  55445. static="true" final="false" visibility="public"
  55446. deprecated="not deprecated">
  55447. <param name="cmd" type="java.util.List"/>
  55448. <param name="debugoutFilename" type="java.io.File"/>
  55449. <exception name="IOException" type="java.io.IOException"/>
  55450. <doc>
  55451. <![CDATA[Wrap a command in a shell to capture debug script's
  55452. stdout and stderr to debugout.
  55453. @param cmd The command and the arguments that should be run
  55454. @param debugoutFilename The filename that stdout and stderr
  55455. should be saved to.
  55456. @return the modified command that should be run
  55457. @throws IOException]]>
  55458. </doc>
  55459. </method>
  55460. <method name="getUserLogDir" return="java.io.File"
  55461. abstract="false" native="false" synchronized="false"
  55462. static="true" final="false" visibility="public"
  55463. deprecated="not deprecated">
  55464. </method>
  55465. <method name="getJobDir" return="java.io.File"
  55466. abstract="false" native="false" synchronized="false"
  55467. static="true" final="false" visibility="public"
  55468. deprecated="not deprecated">
  55469. <param name="jobid" type="java.lang.String"/>
  55470. <doc>
  55471. <![CDATA[Get the user log directory for the job jobid.
  55472. @param jobid string representation of the jobid
  55473. @return user log directory for the job]]>
  55474. </doc>
  55475. </method>
  55476. <method name="getJobDir" return="java.io.File"
  55477. abstract="false" native="false" synchronized="false"
  55478. static="true" final="false" visibility="public"
  55479. deprecated="not deprecated">
  55480. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  55481. <doc>
  55482. <![CDATA[Get the user log directory for the job jobid.
  55483. @param jobid the jobid object
  55484. @return user log directory for the job]]>
  55485. </doc>
  55486. </method>
  55487. <doc>
  55488. <![CDATA[A simple logger to handle the task-specific user logs.
  55489. This class uses the system property <code>hadoop.log.dir</code>.
  55490. This class is for Map/Reduce internal use only.]]>
  55491. </doc>
  55492. </class>
  55493. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  55494. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  55495. <class name="TaskLog.LogName" extends="java.lang.Enum"
  55496. abstract="false"
  55497. static="true" final="true" visibility="public"
  55498. deprecated="not deprecated">
  55499. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  55500. abstract="false" native="false" synchronized="false"
  55501. static="true" final="false" visibility="public"
  55502. deprecated="not deprecated">
  55503. </method>
  55504. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  55505. abstract="false" native="false" synchronized="false"
  55506. static="true" final="false" visibility="public"
  55507. deprecated="not deprecated">
  55508. <param name="name" type="java.lang.String"/>
  55509. </method>
  55510. <method name="toString" return="java.lang.String"
  55511. abstract="false" native="false" synchronized="false"
  55512. static="false" final="false" visibility="public"
  55513. deprecated="not deprecated">
  55514. </method>
  55515. <field name="STDOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55516. transient="false" volatile="false"
  55517. static="true" final="true" visibility="public"
  55518. deprecated="not deprecated">
  55519. <doc>
  55520. <![CDATA[Log on the stdout of the task.]]>
  55521. </doc>
  55522. </field>
  55523. <field name="STDERR" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55524. transient="false" volatile="false"
  55525. static="true" final="true" visibility="public"
  55526. deprecated="not deprecated">
  55527. <doc>
  55528. <![CDATA[Log on the stderr of the task.]]>
  55529. </doc>
  55530. </field>
  55531. <field name="SYSLOG" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55532. transient="false" volatile="false"
  55533. static="true" final="true" visibility="public"
  55534. deprecated="not deprecated">
  55535. <doc>
  55536. <![CDATA[Log on the map-reduce system logs of the task.]]>
  55537. </doc>
  55538. </field>
  55539. <field name="PROFILE" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55540. transient="false" volatile="false"
  55541. static="true" final="true" visibility="public"
  55542. deprecated="not deprecated">
  55543. <doc>
  55544. <![CDATA[The java profiler information.]]>
  55545. </doc>
  55546. </field>
  55547. <field name="DEBUGOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55548. transient="false" volatile="false"
  55549. static="true" final="true" visibility="public"
  55550. deprecated="not deprecated">
  55551. <doc>
  55552. <![CDATA[Log the debug script's stdout]]>
  55553. </doc>
  55554. </field>
  55555. <doc>
  55556. <![CDATA[The filter for userlogs.]]>
  55557. </doc>
  55558. </class>
  55559. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  55560. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  55561. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  55562. abstract="false"
  55563. static="false" final="false" visibility="public"
  55564. deprecated="not deprecated">
  55565. <constructor name="TaskLogAppender"
  55566. static="false" final="false" visibility="public"
  55567. deprecated="not deprecated">
  55568. </constructor>
  55569. <method name="activateOptions"
  55570. abstract="false" native="false" synchronized="false"
  55571. static="false" final="false" visibility="public"
  55572. deprecated="not deprecated">
  55573. </method>
  55574. <method name="append"
  55575. abstract="false" native="false" synchronized="false"
  55576. static="false" final="false" visibility="public"
  55577. deprecated="not deprecated">
  55578. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  55579. </method>
  55580. <method name="flush"
  55581. abstract="false" native="false" synchronized="false"
  55582. static="false" final="false" visibility="public"
  55583. deprecated="not deprecated">
  55584. </method>
  55585. <method name="close"
  55586. abstract="false" native="false" synchronized="true"
  55587. static="false" final="false" visibility="public"
  55588. deprecated="not deprecated">
  55589. </method>
  55590. <method name="getTaskId" return="java.lang.String"
  55591. abstract="false" native="false" synchronized="false"
  55592. static="false" final="false" visibility="public"
  55593. deprecated="not deprecated">
  55594. <doc>
  55595. <![CDATA[Getter/Setter methods for log4j.]]>
  55596. </doc>
  55597. </method>
  55598. <method name="setTaskId"
  55599. abstract="false" native="false" synchronized="false"
  55600. static="false" final="false" visibility="public"
  55601. deprecated="not deprecated">
  55602. <param name="taskId" type="java.lang.String"/>
  55603. </method>
  55604. <method name="getTotalLogFileSize" return="long"
  55605. abstract="false" native="false" synchronized="false"
  55606. static="false" final="false" visibility="public"
  55607. deprecated="not deprecated">
  55608. </method>
  55609. <method name="setTotalLogFileSize"
  55610. abstract="false" native="false" synchronized="false"
  55611. static="false" final="false" visibility="public"
  55612. deprecated="not deprecated">
  55613. <param name="logSize" type="long"/>
  55614. </method>
  55615. <method name="setIsCleanup"
  55616. abstract="false" native="false" synchronized="false"
  55617. static="false" final="false" visibility="public"
  55618. deprecated="not deprecated">
  55619. <param name="isCleanup" type="boolean"/>
  55620. <doc>
  55621. <![CDATA[Set whether the task is a cleanup attempt or not.
  55622. @param isCleanup
  55623. true if the task is cleanup attempt, false otherwise.]]>
  55624. </doc>
  55625. </method>
  55626. <method name="getIsCleanup" return="boolean"
  55627. abstract="false" native="false" synchronized="false"
  55628. static="false" final="false" visibility="public"
  55629. deprecated="not deprecated">
  55630. <doc>
  55631. <![CDATA[Get whether task is cleanup attempt or not.
  55632. @return true if the task is cleanup attempt, false otherwise.]]>
  55633. </doc>
  55634. </method>
  55635. <doc>
  55636. <![CDATA[A simple log4j-appender for the task child's
  55637. map-reduce system logs.]]>
  55638. </doc>
  55639. </class>
  55640. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  55641. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  55642. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  55643. abstract="false"
  55644. static="false" final="false" visibility="public"
  55645. deprecated="not deprecated">
  55646. <constructor name="TaskLogServlet"
  55647. static="false" final="false" visibility="public"
  55648. deprecated="not deprecated">
  55649. </constructor>
  55650. <method name="getTaskLogUrl" return="java.lang.String"
  55651. abstract="false" native="false" synchronized="false"
  55652. static="true" final="false" visibility="public"
  55653. deprecated="not deprecated">
  55654. <param name="taskTrackerHostName" type="java.lang.String"/>
  55655. <param name="httpPort" type="java.lang.String"/>
  55656. <param name="taskAttemptID" type="java.lang.String"/>
  55657. <doc>
  55658. <![CDATA[Construct the taskLogUrl
  55659. @param taskTrackerHostName
  55660. @param httpPort
  55661. @param taskAttemptID
  55662. @return the taskLogUrl]]>
  55663. </doc>
  55664. </method>
  55665. <method name="doGet"
  55666. abstract="false" native="false" synchronized="false"
  55667. static="false" final="false" visibility="public"
  55668. deprecated="not deprecated">
  55669. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  55670. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  55671. <exception name="ServletException" type="javax.servlet.ServletException"/>
  55672. <exception name="IOException" type="java.io.IOException"/>
  55673. <doc>
  55674. <![CDATA[Get the logs via http.]]>
  55675. </doc>
  55676. </method>
  55677. <doc>
  55678. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  55679. </doc>
  55680. </class>
  55681. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  55682. <!-- start class org.apache.hadoop.mapred.TaskLogsTruncater -->
  55683. <class name="TaskLogsTruncater" extends="java.lang.Object"
  55684. abstract="false"
  55685. static="false" final="false" visibility="public"
  55686. deprecated="not deprecated">
  55687. <constructor name="TaskLogsTruncater" type="org.apache.hadoop.conf.Configuration"
  55688. static="false" final="false" visibility="public"
  55689. deprecated="not deprecated">
  55690. </constructor>
  55691. <method name="shouldTruncateLogs" return="boolean"
  55692. abstract="false" native="false" synchronized="false"
  55693. static="false" final="false" visibility="public"
  55694. deprecated="not deprecated">
  55695. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  55696. <exception name="IOException" type="java.io.IOException"/>
  55697. <doc>
  55698. <![CDATA[Check the log file sizes generated by the attempts that ran in a
  55699. particular JVM
  55700. @param lInfo
  55701. @return is truncation required?
  55702. @throws IOException]]>
  55703. </doc>
  55704. </method>
  55705. <method name="truncateLogs"
  55706. abstract="false" native="false" synchronized="false"
  55707. static="false" final="false" visibility="public"
  55708. deprecated="not deprecated">
  55709. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  55710. <doc>
  55711. <![CDATA[Process the removed task's logs. This involves truncating them to
  55712. retainSize.]]>
  55713. </doc>
  55714. </method>
  55715. <method name="main"
  55716. abstract="false" native="false" synchronized="false"
  55717. static="true" final="false" visibility="public"
  55718. deprecated="not deprecated">
  55719. <param name="args" type="java.lang.String[]"/>
  55720. <exception name="IOException" type="java.io.IOException"/>
  55721. </method>
  55722. <doc>
  55723. <![CDATA[The class for truncating the user logs.
  55724. Should be used only by {@link UserLogManager}.]]>
  55725. </doc>
  55726. </class>
  55727. <!-- end class org.apache.hadoop.mapred.TaskLogsTruncater -->
  55728. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  55729. <class name="TaskReport" extends="java.lang.Object"
  55730. abstract="false"
  55731. static="false" final="false" visibility="public"
  55732. deprecated="not deprecated">
  55733. <implements name="org.apache.hadoop.io.Writable"/>
  55734. <constructor name="TaskReport"
  55735. static="false" final="false" visibility="public"
  55736. deprecated="not deprecated">
  55737. </constructor>
  55738. <method name="getTaskId" return="java.lang.String"
  55739. abstract="false" native="false" synchronized="false"
  55740. static="false" final="false" visibility="public"
  55741. deprecated="use {@link #getTaskID()} instead">
  55742. <doc>
  55743. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  55744. </doc>
  55745. </method>
  55746. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  55747. abstract="false" native="false" synchronized="false"
  55748. static="false" final="false" visibility="public"
  55749. deprecated="not deprecated">
  55750. <doc>
  55751. <![CDATA[The id of the task.]]>
  55752. </doc>
  55753. </method>
  55754. <method name="getProgress" return="float"
  55755. abstract="false" native="false" synchronized="false"
  55756. static="false" final="false" visibility="public"
  55757. deprecated="not deprecated">
  55758. <doc>
  55759. <![CDATA[The amount completed, between zero and one.]]>
  55760. </doc>
  55761. </method>
  55762. <method name="getState" return="java.lang.String"
  55763. abstract="false" native="false" synchronized="false"
  55764. static="false" final="false" visibility="public"
  55765. deprecated="not deprecated">
  55766. <doc>
  55767. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  55768. </doc>
  55769. </method>
  55770. <method name="getDiagnostics" return="java.lang.String[]"
  55771. abstract="false" native="false" synchronized="false"
  55772. static="false" final="false" visibility="public"
  55773. deprecated="not deprecated">
  55774. <doc>
  55775. <![CDATA[A list of error messages.]]>
  55776. </doc>
  55777. </method>
  55778. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  55779. abstract="false" native="false" synchronized="false"
  55780. static="false" final="false" visibility="public"
  55781. deprecated="not deprecated">
  55782. <doc>
  55783. <![CDATA[A table of counters.]]>
  55784. </doc>
  55785. </method>
  55786. <method name="getCurrentStatus" return="org.apache.hadoop.mapred.TIPStatus"
  55787. abstract="false" native="false" synchronized="false"
  55788. static="false" final="false" visibility="public"
  55789. deprecated="not deprecated">
  55790. <doc>
  55791. <![CDATA[The current status]]>
  55792. </doc>
  55793. </method>
  55794. <method name="getFinishTime" return="long"
  55795. abstract="false" native="false" synchronized="false"
  55796. static="false" final="false" visibility="public"
  55797. deprecated="not deprecated">
  55798. <doc>
  55799. <![CDATA[Get finish time of task.
  55800. @return 0, if finish time was not set else returns finish time.]]>
  55801. </doc>
  55802. </method>
  55803. <method name="getStartTime" return="long"
  55804. abstract="false" native="false" synchronized="false"
  55805. static="false" final="false" visibility="public"
  55806. deprecated="not deprecated">
  55807. <doc>
  55808. <![CDATA[Get start time of task.
  55809. @return 0 if start time was not set, else start time.]]>
  55810. </doc>
  55811. </method>
  55812. <method name="setSuccessfulAttempt"
  55813. abstract="false" native="false" synchronized="false"
  55814. static="false" final="false" visibility="public"
  55815. deprecated="not deprecated">
  55816. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55817. <doc>
  55818. <![CDATA[set successful attempt ID of the task.]]>
  55819. </doc>
  55820. </method>
  55821. <method name="getSuccessfulTaskAttempt" return="org.apache.hadoop.mapred.TaskAttemptID"
  55822. abstract="false" native="false" synchronized="false"
  55823. static="false" final="false" visibility="public"
  55824. deprecated="not deprecated">
  55825. <doc>
  55826. <![CDATA[Get the attempt ID that took this task to completion]]>
  55827. </doc>
  55828. </method>
  55829. <method name="setRunningTaskAttempts"
  55830. abstract="false" native="false" synchronized="false"
  55831. static="false" final="false" visibility="public"
  55832. deprecated="not deprecated">
  55833. <param name="runningAttempts" type="java.util.Collection"/>
  55834. <doc>
  55835. <![CDATA[set running attempt(s) of the task.]]>
  55836. </doc>
  55837. </method>
  55838. <method name="getRunningTaskAttempts" return="java.util.Collection"
  55839. abstract="false" native="false" synchronized="false"
  55840. static="false" final="false" visibility="public"
  55841. deprecated="not deprecated">
  55842. <doc>
  55843. <![CDATA[Get the running task attempt IDs for this task]]>
  55844. </doc>
  55845. </method>
  55846. <method name="equals" return="boolean"
  55847. abstract="false" native="false" synchronized="false"
  55848. static="false" final="false" visibility="public"
  55849. deprecated="not deprecated">
  55850. <param name="o" type="java.lang.Object"/>
  55851. </method>
  55852. <method name="hashCode" return="int"
  55853. abstract="false" native="false" synchronized="false"
  55854. static="false" final="false" visibility="public"
  55855. deprecated="not deprecated">
  55856. </method>
  55857. <method name="write"
  55858. abstract="false" native="false" synchronized="false"
  55859. static="false" final="false" visibility="public"
  55860. deprecated="not deprecated">
  55861. <param name="out" type="java.io.DataOutput"/>
  55862. <exception name="IOException" type="java.io.IOException"/>
  55863. </method>
  55864. <method name="readFields"
  55865. abstract="false" native="false" synchronized="false"
  55866. static="false" final="false" visibility="public"
  55867. deprecated="not deprecated">
  55868. <param name="in" type="java.io.DataInput"/>
  55869. <exception name="IOException" type="java.io.IOException"/>
  55870. </method>
  55871. <doc>
  55872. <![CDATA[A report on the state of a task.]]>
  55873. </doc>
  55874. </class>
  55875. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  55876. <!-- start class org.apache.hadoop.mapred.TaskStatus -->
  55877. <class name="TaskStatus" extends="java.lang.Object"
  55878. abstract="true"
  55879. static="false" final="false" visibility="public"
  55880. deprecated="not deprecated">
  55881. <implements name="org.apache.hadoop.io.Writable"/>
  55882. <implements name="java.lang.Cloneable"/>
  55883. <constructor name="TaskStatus"
  55884. static="false" final="false" visibility="public"
  55885. deprecated="not deprecated">
  55886. </constructor>
  55887. <constructor name="TaskStatus" type="org.apache.hadoop.mapred.TaskAttemptID, float, int, org.apache.hadoop.mapred.TaskStatus.State, java.lang.String, java.lang.String, java.lang.String, org.apache.hadoop.mapred.TaskStatus.Phase, org.apache.hadoop.mapred.Counters"
  55888. static="false" final="false" visibility="public"
  55889. deprecated="not deprecated">
  55890. </constructor>
  55891. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  55892. abstract="false" native="false" synchronized="false"
  55893. static="false" final="false" visibility="public"
  55894. deprecated="not deprecated">
  55895. </method>
  55896. <method name="getIsMap" return="boolean"
  55897. abstract="true" native="false" synchronized="false"
  55898. static="false" final="false" visibility="public"
  55899. deprecated="not deprecated">
  55900. </method>
  55901. <method name="getNumSlots" return="int"
  55902. abstract="false" native="false" synchronized="false"
  55903. static="false" final="false" visibility="public"
  55904. deprecated="not deprecated">
  55905. </method>
  55906. <method name="getProgress" return="float"
  55907. abstract="false" native="false" synchronized="false"
  55908. static="false" final="false" visibility="public"
  55909. deprecated="not deprecated">
  55910. </method>
  55911. <method name="setProgress"
  55912. abstract="false" native="false" synchronized="false"
  55913. static="false" final="false" visibility="public"
  55914. deprecated="not deprecated">
  55915. <param name="progress" type="float"/>
  55916. </method>
  55917. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  55918. abstract="false" native="false" synchronized="false"
  55919. static="false" final="false" visibility="public"
  55920. deprecated="not deprecated">
  55921. </method>
  55922. <method name="getTaskTracker" return="java.lang.String"
  55923. abstract="false" native="false" synchronized="false"
  55924. static="false" final="false" visibility="public"
  55925. deprecated="not deprecated">
  55926. </method>
  55927. <method name="setTaskTracker"
  55928. abstract="false" native="false" synchronized="false"
  55929. static="false" final="false" visibility="public"
  55930. deprecated="not deprecated">
  55931. <param name="tracker" type="java.lang.String"/>
  55932. </method>
  55933. <method name="setRunState"
  55934. abstract="false" native="false" synchronized="false"
  55935. static="false" final="false" visibility="public"
  55936. deprecated="not deprecated">
  55937. <param name="runState" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  55938. </method>
  55939. <method name="getDiagnosticInfo" return="java.lang.String"
  55940. abstract="false" native="false" synchronized="false"
  55941. static="false" final="false" visibility="public"
  55942. deprecated="not deprecated">
  55943. </method>
  55944. <method name="setDiagnosticInfo"
  55945. abstract="false" native="false" synchronized="false"
  55946. static="false" final="false" visibility="public"
  55947. deprecated="not deprecated">
  55948. <param name="info" type="java.lang.String"/>
  55949. </method>
  55950. <method name="getStateString" return="java.lang.String"
  55951. abstract="false" native="false" synchronized="false"
  55952. static="false" final="false" visibility="public"
  55953. deprecated="not deprecated">
  55954. </method>
  55955. <method name="setStateString"
  55956. abstract="false" native="false" synchronized="false"
  55957. static="false" final="false" visibility="public"
  55958. deprecated="not deprecated">
  55959. <param name="stateString" type="java.lang.String"/>
  55960. </method>
  55961. <method name="getNextRecordRange" return="org.apache.hadoop.mapred.SortedRanges.Range"
  55962. abstract="false" native="false" synchronized="false"
  55963. static="false" final="false" visibility="public"
  55964. deprecated="not deprecated">
  55965. <doc>
  55966. <![CDATA[Get the next record range which is going to be processed by Task.
  55967. @return nextRecordRange]]>
  55968. </doc>
  55969. </method>
  55970. <method name="setNextRecordRange"
  55971. abstract="false" native="false" synchronized="false"
  55972. static="false" final="false" visibility="public"
  55973. deprecated="not deprecated">
  55974. <param name="nextRecordRange" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  55975. <doc>
  55976. <![CDATA[Set the next record range which is going to be processed by Task.
  55977. @param nextRecordRange]]>
  55978. </doc>
  55979. </method>
  55980. <method name="getFinishTime" return="long"
  55981. abstract="false" native="false" synchronized="false"
  55982. static="false" final="false" visibility="public"
  55983. deprecated="not deprecated">
  55984. <doc>
  55985. <![CDATA[Get task finish time. if shuffleFinishTime and sortFinishTime
  55986. are not set before, these are set to finishTime. It takes care of
  55987. the case when shuffle, sort and finish are completed with in the
  55988. heartbeat interval and are not reported separately. if task state is
  55989. TaskStatus.FAILED then finish time represents when the task failed.
  55990. @return finish time of the task.]]>
  55991. </doc>
  55992. </method>
  55993. <method name="getShuffleFinishTime" return="long"
  55994. abstract="false" native="false" synchronized="false"
  55995. static="false" final="false" visibility="public"
  55996. deprecated="not deprecated">
  55997. <doc>
  55998. <![CDATA[Get shuffle finish time for the task. If shuffle finish time was
  55999. not set due to shuffle/sort/finish phases ending within same
  56000. heartbeat interval, it is set to finish time of next phase i.e. sort
  56001. or task finish when these are set.
  56002. @return 0 if shuffleFinishTime, sortFinishTime and finish time are not set. else
  56003. it returns approximate shuffle finish time.]]>
  56004. </doc>
  56005. </method>
  56006. <method name="getSortFinishTime" return="long"
  56007. abstract="false" native="false" synchronized="false"
  56008. static="false" final="false" visibility="public"
  56009. deprecated="not deprecated">
  56010. <doc>
  56011. <![CDATA[Get sort finish time for the task,. If sort finish time was not set
  56012. due to sort and reduce phase finishing in same heartebat interval, it is
  56013. set to finish time, when finish time is set.
  56014. @return 0 if sort finish time and finish time are not set, else returns sort
  56015. finish time if that is set, else it returns finish time.]]>
  56016. </doc>
  56017. </method>
  56018. <method name="getStartTime" return="long"
  56019. abstract="false" native="false" synchronized="false"
  56020. static="false" final="false" visibility="public"
  56021. deprecated="not deprecated">
  56022. <doc>
  56023. <![CDATA[Get start time of the task.
  56024. @return 0 is start time is not set, else returns start time.]]>
  56025. </doc>
  56026. </method>
  56027. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  56028. abstract="false" native="false" synchronized="false"
  56029. static="false" final="false" visibility="public"
  56030. deprecated="not deprecated">
  56031. <doc>
  56032. <![CDATA[Get current phase of this task. Phase.Map in case of map tasks,
  56033. for reduce one of Phase.SHUFFLE, Phase.SORT or Phase.REDUCE.
  56034. @return .]]>
  56035. </doc>
  56036. </method>
  56037. <method name="getIncludeCounters" return="boolean"
  56038. abstract="false" native="false" synchronized="false"
  56039. static="false" final="false" visibility="public"
  56040. deprecated="not deprecated">
  56041. </method>
  56042. <method name="setIncludeCounters"
  56043. abstract="false" native="false" synchronized="false"
  56044. static="false" final="false" visibility="public"
  56045. deprecated="not deprecated">
  56046. <param name="send" type="boolean"/>
  56047. </method>
  56048. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  56049. abstract="false" native="false" synchronized="false"
  56050. static="false" final="false" visibility="public"
  56051. deprecated="not deprecated">
  56052. <doc>
  56053. <![CDATA[Get task's counters.]]>
  56054. </doc>
  56055. </method>
  56056. <method name="setCounters"
  56057. abstract="false" native="false" synchronized="false"
  56058. static="false" final="false" visibility="public"
  56059. deprecated="not deprecated">
  56060. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  56061. <doc>
  56062. <![CDATA[Set the task's counters.
  56063. @param counters]]>
  56064. </doc>
  56065. </method>
  56066. <method name="getOutputSize" return="long"
  56067. abstract="false" native="false" synchronized="false"
  56068. static="false" final="false" visibility="public"
  56069. deprecated="not deprecated">
  56070. <doc>
  56071. <![CDATA[Returns the number of bytes of output from this map.]]>
  56072. </doc>
  56073. </method>
  56074. <method name="getFetchFailedMaps" return="java.util.List"
  56075. abstract="false" native="false" synchronized="false"
  56076. static="false" final="false" visibility="public"
  56077. deprecated="not deprecated">
  56078. <doc>
  56079. <![CDATA[Get the list of maps from which output-fetches failed.
  56080. @return the list of maps from which output-fetches failed.]]>
  56081. </doc>
  56082. </method>
  56083. <method name="clone" return="java.lang.Object"
  56084. abstract="false" native="false" synchronized="false"
  56085. static="false" final="false" visibility="public"
  56086. deprecated="not deprecated">
  56087. </method>
  56088. <method name="write"
  56089. abstract="false" native="false" synchronized="false"
  56090. static="false" final="false" visibility="public"
  56091. deprecated="not deprecated">
  56092. <param name="out" type="java.io.DataOutput"/>
  56093. <exception name="IOException" type="java.io.IOException"/>
  56094. </method>
  56095. <method name="readFields"
  56096. abstract="false" native="false" synchronized="false"
  56097. static="false" final="false" visibility="public"
  56098. deprecated="not deprecated">
  56099. <param name="in" type="java.io.DataInput"/>
  56100. <exception name="IOException" type="java.io.IOException"/>
  56101. </method>
  56102. <doc>
  56103. <![CDATA[Describes the current status of a task. This is
  56104. not intended to be a comprehensive piece of data.]]>
  56105. </doc>
  56106. </class>
  56107. <!-- end class org.apache.hadoop.mapred.TaskStatus -->
  56108. <!-- start class org.apache.hadoop.mapred.TaskStatus.Phase -->
  56109. <class name="TaskStatus.Phase" extends="java.lang.Enum"
  56110. abstract="false"
  56111. static="true" final="true" visibility="public"
  56112. deprecated="not deprecated">
  56113. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.Phase[]"
  56114. abstract="false" native="false" synchronized="false"
  56115. static="true" final="false" visibility="public"
  56116. deprecated="not deprecated">
  56117. </method>
  56118. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  56119. abstract="false" native="false" synchronized="false"
  56120. static="true" final="false" visibility="public"
  56121. deprecated="not deprecated">
  56122. <param name="name" type="java.lang.String"/>
  56123. </method>
  56124. <field name="STARTING" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56125. transient="false" volatile="false"
  56126. static="true" final="true" visibility="public"
  56127. deprecated="not deprecated">
  56128. </field>
  56129. <field name="MAP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56130. transient="false" volatile="false"
  56131. static="true" final="true" visibility="public"
  56132. deprecated="not deprecated">
  56133. </field>
  56134. <field name="SHUFFLE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56135. transient="false" volatile="false"
  56136. static="true" final="true" visibility="public"
  56137. deprecated="not deprecated">
  56138. </field>
  56139. <field name="SORT" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56140. transient="false" volatile="false"
  56141. static="true" final="true" visibility="public"
  56142. deprecated="not deprecated">
  56143. </field>
  56144. <field name="REDUCE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56145. transient="false" volatile="false"
  56146. static="true" final="true" visibility="public"
  56147. deprecated="not deprecated">
  56148. </field>
  56149. <field name="CLEANUP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56150. transient="false" volatile="false"
  56151. static="true" final="true" visibility="public"
  56152. deprecated="not deprecated">
  56153. </field>
  56154. </class>
  56155. <!-- end class org.apache.hadoop.mapred.TaskStatus.Phase -->
  56156. <!-- start class org.apache.hadoop.mapred.TaskStatus.State -->
  56157. <class name="TaskStatus.State" extends="java.lang.Enum"
  56158. abstract="false"
  56159. static="true" final="true" visibility="public"
  56160. deprecated="not deprecated">
  56161. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.State[]"
  56162. abstract="false" native="false" synchronized="false"
  56163. static="true" final="false" visibility="public"
  56164. deprecated="not deprecated">
  56165. </method>
  56166. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.State"
  56167. abstract="false" native="false" synchronized="false"
  56168. static="true" final="false" visibility="public"
  56169. deprecated="not deprecated">
  56170. <param name="name" type="java.lang.String"/>
  56171. </method>
  56172. <field name="RUNNING" type="org.apache.hadoop.mapred.TaskStatus.State"
  56173. transient="false" volatile="false"
  56174. static="true" final="true" visibility="public"
  56175. deprecated="not deprecated">
  56176. </field>
  56177. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56178. transient="false" volatile="false"
  56179. static="true" final="true" visibility="public"
  56180. deprecated="not deprecated">
  56181. </field>
  56182. <field name="FAILED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56183. transient="false" volatile="false"
  56184. static="true" final="true" visibility="public"
  56185. deprecated="not deprecated">
  56186. </field>
  56187. <field name="UNASSIGNED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56188. transient="false" volatile="false"
  56189. static="true" final="true" visibility="public"
  56190. deprecated="not deprecated">
  56191. </field>
  56192. <field name="KILLED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56193. transient="false" volatile="false"
  56194. static="true" final="true" visibility="public"
  56195. deprecated="not deprecated">
  56196. </field>
  56197. <field name="COMMIT_PENDING" type="org.apache.hadoop.mapred.TaskStatus.State"
  56198. transient="false" volatile="false"
  56199. static="true" final="true" visibility="public"
  56200. deprecated="not deprecated">
  56201. </field>
  56202. <field name="FAILED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  56203. transient="false" volatile="false"
  56204. static="true" final="true" visibility="public"
  56205. deprecated="not deprecated">
  56206. </field>
  56207. <field name="KILLED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  56208. transient="false" volatile="false"
  56209. static="true" final="true" visibility="public"
  56210. deprecated="not deprecated">
  56211. </field>
  56212. </class>
  56213. <!-- end class org.apache.hadoop.mapred.TaskStatus.State -->
  56214. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  56215. <class name="TaskTracker" extends="java.lang.Object"
  56216. abstract="false"
  56217. static="false" final="false" visibility="public"
  56218. deprecated="not deprecated">
  56219. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  56220. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56221. <implements name="java.lang.Runnable"/>
  56222. <implements name="org.apache.hadoop.mapred.TaskTrackerMXBean"/>
  56223. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  56224. static="false" final="false" visibility="public"
  56225. deprecated="not deprecated">
  56226. <exception name="IOException" type="java.io.IOException"/>
  56227. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56228. <doc>
  56229. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  56230. </doc>
  56231. </constructor>
  56232. <method name="getTaskTrackerInstrumentation" return="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  56233. abstract="false" native="false" synchronized="false"
  56234. static="false" final="false" visibility="public"
  56235. deprecated="not deprecated">
  56236. </method>
  56237. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  56238. abstract="false" native="false" synchronized="false"
  56239. static="false" final="false" visibility="public"
  56240. deprecated="not deprecated">
  56241. </method>
  56242. <method name="getUserDir" return="java.lang.String"
  56243. abstract="false" native="false" synchronized="false"
  56244. static="true" final="false" visibility="public"
  56245. deprecated="not deprecated">
  56246. <param name="user" type="java.lang.String"/>
  56247. </method>
  56248. <method name="getPrivateDistributedCacheDir" return="java.lang.String"
  56249. abstract="false" native="false" synchronized="false"
  56250. static="true" final="false" visibility="public"
  56251. deprecated="not deprecated">
  56252. <param name="user" type="java.lang.String"/>
  56253. </method>
  56254. <method name="getPublicDistributedCacheDir" return="java.lang.String"
  56255. abstract="false" native="false" synchronized="false"
  56256. static="true" final="false" visibility="public"
  56257. deprecated="not deprecated">
  56258. </method>
  56259. <method name="getJobCacheSubdir" return="java.lang.String"
  56260. abstract="false" native="false" synchronized="false"
  56261. static="true" final="false" visibility="public"
  56262. deprecated="not deprecated">
  56263. <param name="user" type="java.lang.String"/>
  56264. </method>
  56265. <method name="getLocalJobDir" return="java.lang.String"
  56266. abstract="false" native="false" synchronized="false"
  56267. static="true" final="false" visibility="public"
  56268. deprecated="not deprecated">
  56269. <param name="user" type="java.lang.String"/>
  56270. <param name="jobid" type="java.lang.String"/>
  56271. </method>
  56272. <method name="getJobJarFile" return="java.lang.String"
  56273. abstract="false" native="false" synchronized="false"
  56274. static="true" final="false" visibility="public"
  56275. deprecated="not deprecated">
  56276. <param name="user" type="java.lang.String"/>
  56277. <param name="jobid" type="java.lang.String"/>
  56278. </method>
  56279. <method name="getLocalTaskDir" return="java.lang.String"
  56280. abstract="false" native="false" synchronized="false"
  56281. static="true" final="false" visibility="public"
  56282. deprecated="not deprecated">
  56283. <param name="user" type="java.lang.String"/>
  56284. <param name="jobid" type="java.lang.String"/>
  56285. <param name="taskid" type="java.lang.String"/>
  56286. </method>
  56287. <method name="getLocalTaskDir" return="java.lang.String"
  56288. abstract="false" native="false" synchronized="false"
  56289. static="true" final="false" visibility="public"
  56290. deprecated="not deprecated">
  56291. <param name="user" type="java.lang.String"/>
  56292. <param name="jobid" type="java.lang.String"/>
  56293. <param name="taskid" type="java.lang.String"/>
  56294. <param name="isCleanupAttempt" type="boolean"/>
  56295. </method>
  56296. <method name="getProtocolVersion" return="long"
  56297. abstract="false" native="false" synchronized="false"
  56298. static="false" final="false" visibility="public"
  56299. deprecated="not deprecated">
  56300. <param name="protocol" type="java.lang.String"/>
  56301. <param name="clientVersion" type="long"/>
  56302. <exception name="IOException" type="java.io.IOException"/>
  56303. </method>
  56304. <method name="cleanupStorage"
  56305. abstract="false" native="false" synchronized="false"
  56306. static="false" final="false" visibility="public"
  56307. deprecated="not deprecated">
  56308. <exception name="IOException" type="java.io.IOException"/>
  56309. <doc>
  56310. <![CDATA[Removes all contents of temporary storage. Called upon
  56311. startup, to remove any leftovers from previous run.]]>
  56312. </doc>
  56313. </method>
  56314. <method name="launchTaskForJob"
  56315. abstract="false" native="false" synchronized="false"
  56316. static="false" final="false" visibility="protected"
  56317. deprecated="not deprecated">
  56318. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  56319. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  56320. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  56321. <exception name="IOException" type="java.io.IOException"/>
  56322. </method>
  56323. <method name="shutdown"
  56324. abstract="false" native="false" synchronized="true"
  56325. static="false" final="false" visibility="public"
  56326. deprecated="not deprecated">
  56327. <exception name="IOException" type="java.io.IOException"/>
  56328. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56329. </method>
  56330. <method name="close"
  56331. abstract="false" native="false" synchronized="true"
  56332. static="false" final="false" visibility="public"
  56333. deprecated="not deprecated">
  56334. <exception name="IOException" type="java.io.IOException"/>
  56335. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56336. <doc>
  56337. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  56338. any running tasks or threads, and cleanup disk space. A new TaskTracker
  56339. within the same process space might be restarted, so everything must be
  56340. clean.
  56341. @throws InterruptedException]]>
  56342. </doc>
  56343. </method>
  56344. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  56345. abstract="false" native="false" synchronized="false"
  56346. static="false" final="false" visibility="public"
  56347. deprecated="not deprecated">
  56348. <doc>
  56349. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  56350. for locating remote files.]]>
  56351. </doc>
  56352. </method>
  56353. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  56354. abstract="false" native="false" synchronized="true"
  56355. static="false" final="false" visibility="public"
  56356. deprecated="not deprecated">
  56357. <doc>
  56358. <![CDATA[Return the port at which the tasktracker bound to]]>
  56359. </doc>
  56360. </method>
  56361. <method name="getJvmManagerInstance" return="org.apache.hadoop.mapred.JvmManager"
  56362. abstract="false" native="false" synchronized="false"
  56363. static="false" final="false" visibility="public"
  56364. deprecated="not deprecated">
  56365. </method>
  56366. <method name="run"
  56367. abstract="false" native="false" synchronized="false"
  56368. static="false" final="false" visibility="public"
  56369. deprecated="not deprecated">
  56370. <doc>
  56371. <![CDATA[The server retry loop.
  56372. This while-loop attempts to connect to the JobTracker. It only
  56373. loops when the old TaskTracker has gone bad (its state is
  56374. stale somehow) and we need to reinitialize everything.]]>
  56375. </doc>
  56376. </method>
  56377. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  56378. abstract="false" native="false" synchronized="true"
  56379. static="false" final="false" visibility="public"
  56380. deprecated="not deprecated">
  56381. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  56382. <exception name="IOException" type="java.io.IOException"/>
  56383. <doc>
  56384. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  56385. </doc>
  56386. </method>
  56387. <method name="statusUpdate" return="boolean"
  56388. abstract="false" native="false" synchronized="true"
  56389. static="false" final="false" visibility="public"
  56390. deprecated="not deprecated">
  56391. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56392. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  56393. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56394. <exception name="IOException" type="java.io.IOException"/>
  56395. <doc>
  56396. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  56397. </doc>
  56398. </method>
  56399. <method name="reportDiagnosticInfo"
  56400. abstract="false" native="false" synchronized="true"
  56401. static="false" final="false" visibility="public"
  56402. deprecated="not deprecated">
  56403. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56404. <param name="info" type="java.lang.String"/>
  56405. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56406. <exception name="IOException" type="java.io.IOException"/>
  56407. <doc>
  56408. <![CDATA[Called when the task dies before completion, and we want to report back
  56409. diagnostic info]]>
  56410. </doc>
  56411. </method>
  56412. <method name="reportNextRecordRange"
  56413. abstract="false" native="false" synchronized="true"
  56414. static="false" final="false" visibility="public"
  56415. deprecated="not deprecated">
  56416. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56417. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  56418. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56419. <exception name="IOException" type="java.io.IOException"/>
  56420. </method>
  56421. <method name="ping" return="boolean"
  56422. abstract="false" native="false" synchronized="true"
  56423. static="false" final="false" visibility="public"
  56424. deprecated="not deprecated">
  56425. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56426. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56427. <exception name="IOException" type="java.io.IOException"/>
  56428. <doc>
  56429. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  56430. </doc>
  56431. </method>
  56432. <method name="commitPending"
  56433. abstract="false" native="false" synchronized="true"
  56434. static="false" final="false" visibility="public"
  56435. deprecated="not deprecated">
  56436. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56437. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  56438. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56439. <exception name="IOException" type="java.io.IOException"/>
  56440. <doc>
  56441. <![CDATA[Task is reporting that it is in commit_pending
  56442. and it is waiting for the commit Response]]>
  56443. </doc>
  56444. </method>
  56445. <method name="canCommit" return="boolean"
  56446. abstract="false" native="false" synchronized="true"
  56447. static="false" final="false" visibility="public"
  56448. deprecated="not deprecated">
  56449. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56450. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56451. <exception name="IOException" type="java.io.IOException"/>
  56452. <doc>
  56453. <![CDATA[Child checking whether it can commit]]>
  56454. </doc>
  56455. </method>
  56456. <method name="done"
  56457. abstract="false" native="false" synchronized="true"
  56458. static="false" final="false" visibility="public"
  56459. deprecated="not deprecated">
  56460. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56461. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56462. <exception name="IOException" type="java.io.IOException"/>
  56463. <doc>
  56464. <![CDATA[The task is done.]]>
  56465. </doc>
  56466. </method>
  56467. <method name="shuffleError"
  56468. abstract="false" native="false" synchronized="true"
  56469. static="false" final="false" visibility="public"
  56470. deprecated="not deprecated">
  56471. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56472. <param name="message" type="java.lang.String"/>
  56473. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56474. <exception name="IOException" type="java.io.IOException"/>
  56475. <doc>
  56476. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  56477. </doc>
  56478. </method>
  56479. <method name="fsError"
  56480. abstract="false" native="false" synchronized="true"
  56481. static="false" final="false" visibility="public"
  56482. deprecated="not deprecated">
  56483. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56484. <param name="message" type="java.lang.String"/>
  56485. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56486. <exception name="IOException" type="java.io.IOException"/>
  56487. <doc>
  56488. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  56489. </doc>
  56490. </method>
  56491. <method name="fatalError"
  56492. abstract="false" native="false" synchronized="true"
  56493. static="false" final="false" visibility="public"
  56494. deprecated="not deprecated">
  56495. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56496. <param name="msg" type="java.lang.String"/>
  56497. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56498. <exception name="IOException" type="java.io.IOException"/>
  56499. <doc>
  56500. <![CDATA[A child task had a fatal error. Kill the task.]]>
  56501. </doc>
  56502. </method>
  56503. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  56504. abstract="false" native="false" synchronized="true"
  56505. static="false" final="false" visibility="public"
  56506. deprecated="not deprecated">
  56507. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  56508. <param name="fromEventId" type="int"/>
  56509. <param name="maxLocs" type="int"/>
  56510. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56511. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56512. <exception name="IOException" type="java.io.IOException"/>
  56513. </method>
  56514. <method name="mapOutputLost"
  56515. abstract="false" native="false" synchronized="true"
  56516. static="false" final="false" visibility="public"
  56517. deprecated="not deprecated">
  56518. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56519. <param name="errorMsg" type="java.lang.String"/>
  56520. <exception name="IOException" type="java.io.IOException"/>
  56521. <doc>
  56522. <![CDATA[A completed map task's output has been lost.]]>
  56523. </doc>
  56524. </method>
  56525. <method name="isIdle" return="boolean"
  56526. abstract="false" native="false" synchronized="true"
  56527. static="false" final="false" visibility="public"
  56528. deprecated="not deprecated">
  56529. <doc>
  56530. <![CDATA[Is this task tracker idle?
  56531. @return has this task tracker finished and cleaned up all of its tasks?]]>
  56532. </doc>
  56533. </method>
  56534. <method name="main"
  56535. abstract="false" native="false" synchronized="false"
  56536. static="true" final="false" visibility="public"
  56537. deprecated="not deprecated">
  56538. <param name="argv" type="java.lang.String[]"/>
  56539. <exception name="Exception" type="java.lang.Exception"/>
  56540. <doc>
  56541. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  56542. </doc>
  56543. </method>
  56544. <method name="isTaskMemoryManagerEnabled" return="boolean"
  56545. abstract="false" native="false" synchronized="false"
  56546. static="false" final="false" visibility="public"
  56547. deprecated="not deprecated">
  56548. <doc>
  56549. <![CDATA[Is the TaskMemoryManager Enabled on this system?
  56550. @return true if enabled, false otherwise.]]>
  56551. </doc>
  56552. </method>
  56553. <method name="getTaskMemoryManager" return="org.apache.hadoop.mapred.TaskMemoryManagerThread"
  56554. abstract="false" native="false" synchronized="false"
  56555. static="false" final="false" visibility="public"
  56556. deprecated="not deprecated">
  56557. </method>
  56558. <method name="getHostname" return="java.lang.String"
  56559. abstract="false" native="false" synchronized="false"
  56560. static="false" final="false" visibility="public"
  56561. deprecated="not deprecated">
  56562. </method>
  56563. <method name="getVersion" return="java.lang.String"
  56564. abstract="false" native="false" synchronized="false"
  56565. static="false" final="false" visibility="public"
  56566. deprecated="not deprecated">
  56567. </method>
  56568. <method name="getConfigVersion" return="java.lang.String"
  56569. abstract="false" native="false" synchronized="false"
  56570. static="false" final="false" visibility="public"
  56571. deprecated="not deprecated">
  56572. </method>
  56573. <method name="getJobTrackerUrl" return="java.lang.String"
  56574. abstract="false" native="false" synchronized="false"
  56575. static="false" final="false" visibility="public"
  56576. deprecated="not deprecated">
  56577. </method>
  56578. <method name="getRpcPort" return="int"
  56579. abstract="false" native="false" synchronized="false"
  56580. static="false" final="false" visibility="public"
  56581. deprecated="not deprecated">
  56582. </method>
  56583. <method name="getHttpPort" return="int"
  56584. abstract="false" native="false" synchronized="false"
  56585. static="false" final="false" visibility="public"
  56586. deprecated="not deprecated">
  56587. </method>
  56588. <method name="isHealthy" return="boolean"
  56589. abstract="false" native="false" synchronized="false"
  56590. static="false" final="false" visibility="public"
  56591. deprecated="not deprecated">
  56592. </method>
  56593. <method name="getTasksInfoJson" return="java.lang.String"
  56594. abstract="false" native="false" synchronized="false"
  56595. static="false" final="false" visibility="public"
  56596. deprecated="not deprecated">
  56597. </method>
  56598. <method name="updatePrivateDistributedCacheSizes"
  56599. abstract="false" native="false" synchronized="false"
  56600. static="false" final="false" visibility="public"
  56601. deprecated="not deprecated">
  56602. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  56603. <param name="sizes" type="long[]"/>
  56604. <exception name="IOException" type="java.io.IOException"/>
  56605. </method>
  56606. <field name="LOG" type="org.apache.commons.logging.Log"
  56607. transient="false" volatile="false"
  56608. static="true" final="true" visibility="public"
  56609. deprecated="not deprecated">
  56610. </field>
  56611. <field name="MR_CLIENTTRACE_FORMAT" type="java.lang.String"
  56612. transient="false" volatile="false"
  56613. static="true" final="true" visibility="public"
  56614. deprecated="not deprecated">
  56615. </field>
  56616. <field name="ClientTraceLog" type="org.apache.commons.logging.Log"
  56617. transient="false" volatile="false"
  56618. static="true" final="true" visibility="public"
  56619. deprecated="not deprecated">
  56620. </field>
  56621. <field name="SUBDIR" type="java.lang.String"
  56622. transient="false" volatile="false"
  56623. static="true" final="true" visibility="public"
  56624. deprecated="not deprecated">
  56625. </field>
  56626. <field name="TT_LOG_TMP_DIR" type="java.lang.String"
  56627. transient="false" volatile="false"
  56628. static="true" final="true" visibility="public"
  56629. deprecated="not deprecated">
  56630. </field>
  56631. <field name="TT_RESOURCE_CALCULATOR_PLUGIN" type="java.lang.String"
  56632. transient="false" volatile="false"
  56633. static="true" final="true" visibility="public"
  56634. deprecated="not deprecated">
  56635. </field>
  56636. <field name="TT_USER_NAME" type="java.lang.String"
  56637. transient="false" volatile="false"
  56638. static="true" final="true" visibility="public"
  56639. deprecated="not deprecated">
  56640. </field>
  56641. <field name="TT_KEYTAB_FILE" type="java.lang.String"
  56642. transient="false" volatile="false"
  56643. static="true" final="true" visibility="public"
  56644. deprecated="not deprecated">
  56645. </field>
  56646. <doc>
  56647. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  56648. in a networked environment. It contacts the JobTracker
  56649. for Task assignments and reporting results.]]>
  56650. </doc>
  56651. </class>
  56652. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  56653. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  56654. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  56655. abstract="false"
  56656. static="true" final="false" visibility="public"
  56657. deprecated="not deprecated">
  56658. <constructor name="TaskTracker.MapOutputServlet"
  56659. static="false" final="false" visibility="public"
  56660. deprecated="not deprecated">
  56661. </constructor>
  56662. <method name="doGet"
  56663. abstract="false" native="false" synchronized="false"
  56664. static="false" final="false" visibility="public"
  56665. deprecated="not deprecated">
  56666. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  56667. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  56668. <exception name="ServletException" type="javax.servlet.ServletException"/>
  56669. <exception name="IOException" type="java.io.IOException"/>
  56670. </method>
  56671. <method name="checkException"
  56672. abstract="false" native="false" synchronized="false"
  56673. static="false" final="false" visibility="protected"
  56674. deprecated="not deprecated">
  56675. <param name="ie" type="java.io.IOException"/>
  56676. <param name="exceptionMsgRegex" type="java.lang.String"/>
  56677. <param name="exceptionStackRegex" type="java.lang.String"/>
  56678. <param name="shuffleMetrics" type="org.apache.hadoop.mapred.ShuffleServerInstrumentation"/>
  56679. </method>
  56680. <doc>
  56681. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  56682. to other nodes.]]>
  56683. </doc>
  56684. </class>
  56685. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  56686. <!-- start class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  56687. <class name="TaskTrackerMetricsSource" extends="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  56688. abstract="false"
  56689. static="false" final="false" visibility="public"
  56690. deprecated="not deprecated">
  56691. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  56692. <constructor name="TaskTrackerMetricsSource" type="org.apache.hadoop.mapred.TaskTracker"
  56693. static="false" final="false" visibility="public"
  56694. deprecated="not deprecated">
  56695. </constructor>
  56696. <method name="getMetrics"
  56697. abstract="false" native="false" synchronized="false"
  56698. static="false" final="false" visibility="public"
  56699. deprecated="not deprecated">
  56700. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  56701. <param name="all" type="boolean"/>
  56702. </method>
  56703. <method name="completeTask"
  56704. abstract="false" native="false" synchronized="false"
  56705. static="false" final="false" visibility="public"
  56706. deprecated="not deprecated">
  56707. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56708. </method>
  56709. <method name="timedoutTask"
  56710. abstract="false" native="false" synchronized="false"
  56711. static="false" final="false" visibility="public"
  56712. deprecated="not deprecated">
  56713. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56714. </method>
  56715. <method name="taskFailedPing"
  56716. abstract="false" native="false" synchronized="false"
  56717. static="false" final="false" visibility="public"
  56718. deprecated="not deprecated">
  56719. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56720. </method>
  56721. <doc>
  56722. <![CDATA[Instrumentation for metrics v2]]>
  56723. </doc>
  56724. </class>
  56725. <!-- end class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  56726. <!-- start interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  56727. <interface name="TaskTrackerMXBean" abstract="true"
  56728. static="false" final="false" visibility="public"
  56729. deprecated="not deprecated">
  56730. <method name="getHostname" return="java.lang.String"
  56731. abstract="false" native="false" synchronized="false"
  56732. static="false" final="false" visibility="public"
  56733. deprecated="not deprecated">
  56734. <doc>
  56735. <![CDATA[@return the hostname of the tasktracker]]>
  56736. </doc>
  56737. </method>
  56738. <method name="getVersion" return="java.lang.String"
  56739. abstract="false" native="false" synchronized="false"
  56740. static="false" final="false" visibility="public"
  56741. deprecated="not deprecated">
  56742. <doc>
  56743. <![CDATA[@return the version of the code base]]>
  56744. </doc>
  56745. </method>
  56746. <method name="getConfigVersion" return="java.lang.String"
  56747. abstract="false" native="false" synchronized="false"
  56748. static="false" final="false" visibility="public"
  56749. deprecated="not deprecated">
  56750. <doc>
  56751. <![CDATA[@return the config version (from a config properties)]]>
  56752. </doc>
  56753. </method>
  56754. <method name="getJobTrackerUrl" return="java.lang.String"
  56755. abstract="false" native="false" synchronized="false"
  56756. static="false" final="false" visibility="public"
  56757. deprecated="not deprecated">
  56758. <doc>
  56759. <![CDATA[@return the URL of the jobtracker]]>
  56760. </doc>
  56761. </method>
  56762. <method name="getRpcPort" return="int"
  56763. abstract="false" native="false" synchronized="false"
  56764. static="false" final="false" visibility="public"
  56765. deprecated="not deprecated">
  56766. <doc>
  56767. <![CDATA[@return the RPC port of the tasktracker]]>
  56768. </doc>
  56769. </method>
  56770. <method name="getHttpPort" return="int"
  56771. abstract="false" native="false" synchronized="false"
  56772. static="false" final="false" visibility="public"
  56773. deprecated="not deprecated">
  56774. <doc>
  56775. <![CDATA[@return the HTTP port of the tasktracker]]>
  56776. </doc>
  56777. </method>
  56778. <method name="isHealthy" return="boolean"
  56779. abstract="false" native="false" synchronized="false"
  56780. static="false" final="false" visibility="public"
  56781. deprecated="not deprecated">
  56782. <doc>
  56783. <![CDATA[@return the health status of the tasktracker]]>
  56784. </doc>
  56785. </method>
  56786. <method name="getTasksInfoJson" return="java.lang.String"
  56787. abstract="false" native="false" synchronized="false"
  56788. static="false" final="false" visibility="public"
  56789. deprecated="not deprecated">
  56790. <doc>
  56791. <![CDATA[@return a json formatted info about tasks of the tasktracker]]>
  56792. </doc>
  56793. </method>
  56794. <doc>
  56795. <![CDATA[MXBean interface for TaskTracker]]>
  56796. </doc>
  56797. </interface>
  56798. <!-- end interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  56799. <!-- start class org.apache.hadoop.mapred.TaskTrackerStatus -->
  56800. <class name="TaskTrackerStatus" extends="java.lang.Object"
  56801. abstract="false"
  56802. static="false" final="false" visibility="public"
  56803. deprecated="not deprecated">
  56804. <implements name="org.apache.hadoop.io.Writable"/>
  56805. <constructor name="TaskTrackerStatus"
  56806. static="false" final="false" visibility="public"
  56807. deprecated="not deprecated">
  56808. </constructor>
  56809. <constructor name="TaskTrackerStatus" type="java.lang.String, java.lang.String, int, java.util.List, int, int, int"
  56810. static="false" final="false" visibility="public"
  56811. deprecated="not deprecated">
  56812. </constructor>
  56813. <method name="getTrackerName" return="java.lang.String"
  56814. abstract="false" native="false" synchronized="false"
  56815. static="false" final="false" visibility="public"
  56816. deprecated="not deprecated">
  56817. </method>
  56818. <method name="getHost" return="java.lang.String"
  56819. abstract="false" native="false" synchronized="false"
  56820. static="false" final="false" visibility="public"
  56821. deprecated="not deprecated">
  56822. </method>
  56823. <method name="getHttpPort" return="int"
  56824. abstract="false" native="false" synchronized="false"
  56825. static="false" final="false" visibility="public"
  56826. deprecated="not deprecated">
  56827. <doc>
  56828. <![CDATA[Get the port that this task tracker is serving http requests on.
  56829. @return the http port]]>
  56830. </doc>
  56831. </method>
  56832. <method name="getFailures" return="int"
  56833. abstract="false" native="false" synchronized="false"
  56834. static="false" final="false" visibility="public"
  56835. deprecated="not deprecated">
  56836. <doc>
  56837. <![CDATA[Get the number of tasks that have failed on this tracker.
  56838. @return The number of failed tasks]]>
  56839. </doc>
  56840. </method>
  56841. <method name="getTaskReports" return="java.util.List"
  56842. abstract="false" native="false" synchronized="false"
  56843. static="false" final="false" visibility="public"
  56844. deprecated="not deprecated">
  56845. <doc>
  56846. <![CDATA[Get the current tasks at the TaskTracker.
  56847. Tasks are tracked by a {@link TaskStatus} object.
  56848. @return a list of {@link TaskStatus} representing
  56849. the current tasks at the TaskTracker.]]>
  56850. </doc>
  56851. </method>
  56852. <method name="countMapTasks" return="int"
  56853. abstract="false" native="false" synchronized="false"
  56854. static="false" final="false" visibility="public"
  56855. deprecated="not deprecated">
  56856. <doc>
  56857. <![CDATA[Get the number of running map tasks.
  56858. @return the number of running map tasks]]>
  56859. </doc>
  56860. </method>
  56861. <method name="countOccupiedMapSlots" return="int"
  56862. abstract="false" native="false" synchronized="false"
  56863. static="false" final="false" visibility="public"
  56864. deprecated="not deprecated">
  56865. <doc>
  56866. <![CDATA[Get the number of occupied map slots.
  56867. @return the number of occupied map slots]]>
  56868. </doc>
  56869. </method>
  56870. <method name="getAvailableMapSlots" return="int"
  56871. abstract="false" native="false" synchronized="false"
  56872. static="false" final="false" visibility="public"
  56873. deprecated="not deprecated">
  56874. <doc>
  56875. <![CDATA[Get available map slots.
  56876. @return available map slots]]>
  56877. </doc>
  56878. </method>
  56879. <method name="countReduceTasks" return="int"
  56880. abstract="false" native="false" synchronized="false"
  56881. static="false" final="false" visibility="public"
  56882. deprecated="not deprecated">
  56883. <doc>
  56884. <![CDATA[Get the number of running reduce tasks.
  56885. @return the number of running reduce tasks]]>
  56886. </doc>
  56887. </method>
  56888. <method name="countOccupiedReduceSlots" return="int"
  56889. abstract="false" native="false" synchronized="false"
  56890. static="false" final="false" visibility="public"
  56891. deprecated="not deprecated">
  56892. <doc>
  56893. <![CDATA[Get the number of occupied reduce slots.
  56894. @return the number of occupied reduce slots]]>
  56895. </doc>
  56896. </method>
  56897. <method name="getAvailableReduceSlots" return="int"
  56898. abstract="false" native="false" synchronized="false"
  56899. static="false" final="false" visibility="public"
  56900. deprecated="not deprecated">
  56901. <doc>
  56902. <![CDATA[Get available reduce slots.
  56903. @return available reduce slots]]>
  56904. </doc>
  56905. </method>
  56906. <method name="getLastSeen" return="long"
  56907. abstract="false" native="false" synchronized="false"
  56908. static="false" final="false" visibility="public"
  56909. deprecated="not deprecated">
  56910. </method>
  56911. <method name="setLastSeen"
  56912. abstract="false" native="false" synchronized="false"
  56913. static="false" final="false" visibility="public"
  56914. deprecated="not deprecated">
  56915. <param name="lastSeen" type="long"/>
  56916. </method>
  56917. <method name="getMaxMapSlots" return="int"
  56918. abstract="false" native="false" synchronized="false"
  56919. static="false" final="false" visibility="public"
  56920. deprecated="not deprecated">
  56921. <doc>
  56922. <![CDATA[Get the maximum map slots for this node.
  56923. @return the maximum map slots for this node]]>
  56924. </doc>
  56925. </method>
  56926. <method name="getMaxReduceSlots" return="int"
  56927. abstract="false" native="false" synchronized="false"
  56928. static="false" final="false" visibility="public"
  56929. deprecated="not deprecated">
  56930. <doc>
  56931. <![CDATA[Get the maximum reduce slots for this node.
  56932. @return the maximum reduce slots for this node]]>
  56933. </doc>
  56934. </method>
  56935. <method name="getHealthStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus.TaskTrackerHealthStatus"
  56936. abstract="false" native="false" synchronized="false"
  56937. static="false" final="false" visibility="public"
  56938. deprecated="not deprecated">
  56939. <doc>
  56940. <![CDATA[Returns health status of the task tracker.
  56941. @return health status of Task Tracker]]>
  56942. </doc>
  56943. </method>
  56944. <method name="write"
  56945. abstract="false" native="false" synchronized="false"
  56946. static="false" final="false" visibility="public"
  56947. deprecated="not deprecated">
  56948. <param name="out" type="java.io.DataOutput"/>
  56949. <exception name="IOException" type="java.io.IOException"/>
  56950. </method>
  56951. <method name="readFields"
  56952. abstract="false" native="false" synchronized="false"
  56953. static="false" final="false" visibility="public"
  56954. deprecated="not deprecated">
  56955. <param name="in" type="java.io.DataInput"/>
  56956. <exception name="IOException" type="java.io.IOException"/>
  56957. </method>
  56958. <field name="LOG" type="org.apache.commons.logging.Log"
  56959. transient="false" volatile="false"
  56960. static="true" final="true" visibility="public"
  56961. deprecated="not deprecated">
  56962. </field>
  56963. <field name="UNAVAILABLE" type="int"
  56964. transient="false" volatile="false"
  56965. static="true" final="true" visibility="public"
  56966. deprecated="not deprecated">
  56967. </field>
  56968. <doc>
  56969. <![CDATA[A TaskTrackerStatus is a MapReduce primitive. Keeps
  56970. info on a TaskTracker. The JobTracker maintains a set
  56971. of the most recent TaskTrackerStatus objects for each
  56972. unique TaskTracker it knows about.
  56973. This is NOT a public interface!]]>
  56974. </doc>
  56975. </class>
  56976. <!-- end class org.apache.hadoop.mapred.TaskTrackerStatus -->
  56977. <!-- start interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  56978. <interface name="TaskUmbilicalProtocol" abstract="true"
  56979. static="false" final="false" visibility="public"
  56980. deprecated="not deprecated">
  56981. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  56982. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  56983. abstract="false" native="false" synchronized="false"
  56984. static="false" final="false" visibility="public"
  56985. deprecated="not deprecated">
  56986. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  56987. <exception name="IOException" type="java.io.IOException"/>
  56988. <doc>
  56989. <![CDATA[Called when a child task process starts, to get its task.
  56990. @param context the JvmContext of the JVM w.r.t the TaskTracker that
  56991. launched it
  56992. @return Task object
  56993. @throws IOException]]>
  56994. </doc>
  56995. </method>
  56996. <method name="statusUpdate" return="boolean"
  56997. abstract="false" native="false" synchronized="false"
  56998. static="false" final="false" visibility="public"
  56999. deprecated="not deprecated">
  57000. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57001. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  57002. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57003. <exception name="IOException" type="java.io.IOException"/>
  57004. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57005. <doc>
  57006. <![CDATA[Report child's progress to parent.
  57007. @param taskId task-id of the child
  57008. @param taskStatus status of the child
  57009. @param jvmContext context the jvmContext running the task.
  57010. @throws IOException
  57011. @throws InterruptedException
  57012. @return True if the task is known]]>
  57013. </doc>
  57014. </method>
  57015. <method name="reportDiagnosticInfo"
  57016. abstract="false" native="false" synchronized="false"
  57017. static="false" final="false" visibility="public"
  57018. deprecated="not deprecated">
  57019. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57020. <param name="trace" type="java.lang.String"/>
  57021. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57022. <exception name="IOException" type="java.io.IOException"/>
  57023. <doc>
  57024. <![CDATA[Report error messages back to parent. Calls should be sparing, since all
  57025. such messages are held in the job tracker.
  57026. @param taskid the id of the task involved
  57027. @param trace the text to report
  57028. @param jvmContext context the jvmContext running the task.]]>
  57029. </doc>
  57030. </method>
  57031. <method name="reportNextRecordRange"
  57032. abstract="false" native="false" synchronized="false"
  57033. static="false" final="false" visibility="public"
  57034. deprecated="not deprecated">
  57035. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57036. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  57037. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57038. <exception name="IOException" type="java.io.IOException"/>
  57039. <doc>
  57040. <![CDATA[Report the record range which is going to process next by the Task.
  57041. @param taskid the id of the task involved
  57042. @param range the range of record sequence nos
  57043. @param jvmContext context the jvmContext running the task.
  57044. @throws IOException]]>
  57045. </doc>
  57046. </method>
  57047. <method name="ping" return="boolean"
  57048. abstract="false" native="false" synchronized="false"
  57049. static="false" final="false" visibility="public"
  57050. deprecated="not deprecated">
  57051. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57052. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57053. <exception name="IOException" type="java.io.IOException"/>
  57054. <doc>
  57055. <![CDATA[Periodically called by child to check if parent is still alive.
  57056. @param taskid the id of the task involved
  57057. @param jvmContext context the jvmContext running the task.
  57058. @return True if the task is known]]>
  57059. </doc>
  57060. </method>
  57061. <method name="done"
  57062. abstract="false" native="false" synchronized="false"
  57063. static="false" final="false" visibility="public"
  57064. deprecated="not deprecated">
  57065. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57066. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57067. <exception name="IOException" type="java.io.IOException"/>
  57068. <doc>
  57069. <![CDATA[Report that the task is successfully completed. Failure is assumed if
  57070. the task process exits without calling this.
  57071. @param taskid task's id
  57072. @param jvmContext context the jvmContext running the task.]]>
  57073. </doc>
  57074. </method>
  57075. <method name="commitPending"
  57076. abstract="false" native="false" synchronized="false"
  57077. static="false" final="false" visibility="public"
  57078. deprecated="not deprecated">
  57079. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57080. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  57081. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57082. <exception name="IOException" type="java.io.IOException"/>
  57083. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57084. <doc>
  57085. <![CDATA[Report that the task is complete, but its commit is pending.
  57086. @param taskId task's id
  57087. @param taskStatus status of the child
  57088. @param jvmContext context the jvmContext running the task.
  57089. @throws IOException]]>
  57090. </doc>
  57091. </method>
  57092. <method name="canCommit" return="boolean"
  57093. abstract="false" native="false" synchronized="false"
  57094. static="false" final="false" visibility="public"
  57095. deprecated="not deprecated">
  57096. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57097. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57098. <exception name="IOException" type="java.io.IOException"/>
  57099. <doc>
  57100. <![CDATA[Polling to know whether the task can go-ahead with commit
  57101. @param taskid
  57102. @param jvmContext context the jvmContext running the task.
  57103. @return true/false
  57104. @throws IOException]]>
  57105. </doc>
  57106. </method>
  57107. <method name="shuffleError"
  57108. abstract="false" native="false" synchronized="false"
  57109. static="false" final="false" visibility="public"
  57110. deprecated="not deprecated">
  57111. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57112. <param name="message" type="java.lang.String"/>
  57113. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57114. <exception name="IOException" type="java.io.IOException"/>
  57115. <doc>
  57116. <![CDATA[Report that a reduce-task couldn't shuffle map-outputs.]]>
  57117. </doc>
  57118. </method>
  57119. <method name="fsError"
  57120. abstract="false" native="false" synchronized="false"
  57121. static="false" final="false" visibility="public"
  57122. deprecated="not deprecated">
  57123. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57124. <param name="message" type="java.lang.String"/>
  57125. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57126. <exception name="IOException" type="java.io.IOException"/>
  57127. <doc>
  57128. <![CDATA[Report that the task encounted a local filesystem error.]]>
  57129. </doc>
  57130. </method>
  57131. <method name="fatalError"
  57132. abstract="false" native="false" synchronized="false"
  57133. static="false" final="false" visibility="public"
  57134. deprecated="not deprecated">
  57135. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57136. <param name="message" type="java.lang.String"/>
  57137. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57138. <exception name="IOException" type="java.io.IOException"/>
  57139. <doc>
  57140. <![CDATA[Report that the task encounted a fatal error.]]>
  57141. </doc>
  57142. </method>
  57143. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  57144. abstract="false" native="false" synchronized="false"
  57145. static="false" final="false" visibility="public"
  57146. deprecated="not deprecated">
  57147. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  57148. <param name="fromIndex" type="int"/>
  57149. <param name="maxLocs" type="int"/>
  57150. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57151. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57152. <exception name="IOException" type="java.io.IOException"/>
  57153. <doc>
  57154. <![CDATA[Called by a reduce task to get the map output locations for finished maps.
  57155. Returns an update centered around the map-task-completion-events.
  57156. The update also piggybacks the information whether the events copy at the
  57157. task-tracker has changed or not. This will trigger some action at the
  57158. child-process.
  57159. @param jobId the reducer job id
  57160. @param fromIndex the index starting from which the locations should be
  57161. fetched
  57162. @param maxLocs the max number of locations to fetch
  57163. @param id The attempt id of the task that is trying to communicate
  57164. @return A {@link MapTaskCompletionEventsUpdate}]]>
  57165. </doc>
  57166. </method>
  57167. <method name="updatePrivateDistributedCacheSizes"
  57168. abstract="false" native="false" synchronized="false"
  57169. static="false" final="false" visibility="public"
  57170. deprecated="not deprecated">
  57171. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  57172. <param name="sizes" type="long[]"/>
  57173. <exception name="IOException" type="java.io.IOException"/>
  57174. <doc>
  57175. <![CDATA[The job initializer needs to report the sizes of the archive
  57176. objects in the private distributed cache.
  57177. @param jobId the job to update
  57178. @param sizes the array of sizes that were computed
  57179. @throws IOException]]>
  57180. </doc>
  57181. </method>
  57182. <field name="versionID" type="long"
  57183. transient="false" volatile="false"
  57184. static="true" final="true" visibility="public"
  57185. deprecated="not deprecated">
  57186. <doc>
  57187. <![CDATA[Changed the version to 2, since we have a new method getMapOutputs
  57188. Changed version to 3 to have progress() return a boolean
  57189. Changed the version to 4, since we have replaced
  57190. TaskUmbilicalProtocol.progress(String, float, String,
  57191. org.apache.hadoop.mapred.TaskStatus.Phase, Counters)
  57192. with statusUpdate(String, TaskStatus)
  57193. Version 5 changed counters representation for HADOOP-2248
  57194. Version 6 changes the TaskStatus representation for HADOOP-2208
  57195. Version 7 changes the done api (via HADOOP-3140). It now expects whether
  57196. or not the task's output needs to be promoted.
  57197. Version 8 changes {job|tip|task}id's to use their corresponding
  57198. objects rather than strings.
  57199. Version 9 changes the counter representation for HADOOP-1915
  57200. Version 10 changed the TaskStatus format and added reportNextRecordRange
  57201. for HADOOP-153
  57202. Version 11 Adds RPCs for task commit as part of HADOOP-3150
  57203. Version 12 getMapCompletionEvents() now also indicates if the events are
  57204. stale or not. Hence the return type is a class that
  57205. encapsulates the events and whether to reset events index.
  57206. Version 13 changed the getTask method signature for HADOOP-249
  57207. Version 14 changed the getTask method signature for HADOOP-4232
  57208. Version 15 Adds FAILED_UNCLEAN and KILLED_UNCLEAN states for HADOOP-4759
  57209. Version 16 Added numRequiredSlots to TaskStatus for MAPREDUCE-516
  57210. Version 17 Change in signature of getTask() for HADOOP-5488
  57211. Version 18 Added fatalError for child to communicate fatal errors to TT
  57212. Version 19 Added jvmContext to most method signatures for MAPREDUCE-2429]]>
  57213. </doc>
  57214. </field>
  57215. <doc>
  57216. <![CDATA[Protocol that task child process uses to contact its parent process. The
  57217. parent is a daemon which which polls the central master for a new map or
  57218. reduce task and runs it as a child process. All communication between child
  57219. and parent is via this protocol.]]>
  57220. </doc>
  57221. </interface>
  57222. <!-- end interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  57223. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  57224. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  57225. abstract="false"
  57226. static="false" final="false" visibility="public"
  57227. deprecated="not deprecated">
  57228. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  57229. <constructor name="TextInputFormat"
  57230. static="false" final="false" visibility="public"
  57231. deprecated="not deprecated">
  57232. </constructor>
  57233. <method name="configure"
  57234. abstract="false" native="false" synchronized="false"
  57235. static="false" final="false" visibility="public"
  57236. deprecated="not deprecated">
  57237. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57238. </method>
  57239. <method name="isSplitable" return="boolean"
  57240. abstract="false" native="false" synchronized="false"
  57241. static="false" final="false" visibility="protected"
  57242. deprecated="not deprecated">
  57243. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  57244. <param name="file" type="org.apache.hadoop.fs.Path"/>
  57245. </method>
  57246. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  57247. abstract="false" native="false" synchronized="false"
  57248. static="false" final="false" visibility="public"
  57249. deprecated="not deprecated">
  57250. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  57251. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  57252. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  57253. <exception name="IOException" type="java.io.IOException"/>
  57254. </method>
  57255. <doc>
  57256. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  57257. Either linefeed or carriage-return are used to signal end of line. Keys are
  57258. the position in the file, and values are the line of text..]]>
  57259. </doc>
  57260. </class>
  57261. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  57262. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  57263. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  57264. abstract="false"
  57265. static="false" final="false" visibility="public"
  57266. deprecated="not deprecated">
  57267. <constructor name="TextOutputFormat"
  57268. static="false" final="false" visibility="public"
  57269. deprecated="not deprecated">
  57270. </constructor>
  57271. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  57272. abstract="false" native="false" synchronized="false"
  57273. static="false" final="false" visibility="public"
  57274. deprecated="not deprecated">
  57275. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  57276. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  57277. <param name="name" type="java.lang.String"/>
  57278. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  57279. <exception name="IOException" type="java.io.IOException"/>
  57280. </method>
  57281. <doc>
  57282. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  57283. </doc>
  57284. </class>
  57285. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  57286. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  57287. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  57288. abstract="false"
  57289. static="true" final="false" visibility="protected"
  57290. deprecated="not deprecated">
  57291. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  57292. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  57293. static="false" final="false" visibility="public"
  57294. deprecated="not deprecated">
  57295. </constructor>
  57296. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  57297. static="false" final="false" visibility="public"
  57298. deprecated="not deprecated">
  57299. </constructor>
  57300. <method name="write"
  57301. abstract="false" native="false" synchronized="true"
  57302. static="false" final="false" visibility="public"
  57303. deprecated="not deprecated">
  57304. <param name="key" type="java.lang.Object"/>
  57305. <param name="value" type="java.lang.Object"/>
  57306. <exception name="IOException" type="java.io.IOException"/>
  57307. </method>
  57308. <method name="close"
  57309. abstract="false" native="false" synchronized="true"
  57310. static="false" final="false" visibility="public"
  57311. deprecated="not deprecated">
  57312. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  57313. <exception name="IOException" type="java.io.IOException"/>
  57314. </method>
  57315. <field name="out" type="java.io.DataOutputStream"
  57316. transient="false" volatile="false"
  57317. static="false" final="false" visibility="protected"
  57318. deprecated="not deprecated">
  57319. </field>
  57320. </class>
  57321. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  57322. <!-- start class org.apache.hadoop.mapred.TIPStatus -->
  57323. <class name="TIPStatus" extends="java.lang.Enum"
  57324. abstract="false"
  57325. static="false" final="true" visibility="public"
  57326. deprecated="not deprecated">
  57327. <method name="values" return="org.apache.hadoop.mapred.TIPStatus[]"
  57328. abstract="false" native="false" synchronized="false"
  57329. static="true" final="false" visibility="public"
  57330. deprecated="not deprecated">
  57331. </method>
  57332. <method name="valueOf" return="org.apache.hadoop.mapred.TIPStatus"
  57333. abstract="false" native="false" synchronized="false"
  57334. static="true" final="false" visibility="public"
  57335. deprecated="not deprecated">
  57336. <param name="name" type="java.lang.String"/>
  57337. </method>
  57338. <field name="PENDING" type="org.apache.hadoop.mapred.TIPStatus"
  57339. transient="false" volatile="false"
  57340. static="true" final="true" visibility="public"
  57341. deprecated="not deprecated">
  57342. </field>
  57343. <field name="RUNNING" type="org.apache.hadoop.mapred.TIPStatus"
  57344. transient="false" volatile="false"
  57345. static="true" final="true" visibility="public"
  57346. deprecated="not deprecated">
  57347. </field>
  57348. <field name="COMPLETE" type="org.apache.hadoop.mapred.TIPStatus"
  57349. transient="false" volatile="false"
  57350. static="true" final="true" visibility="public"
  57351. deprecated="not deprecated">
  57352. </field>
  57353. <field name="KILLED" type="org.apache.hadoop.mapred.TIPStatus"
  57354. transient="false" volatile="false"
  57355. static="true" final="true" visibility="public"
  57356. deprecated="not deprecated">
  57357. </field>
  57358. <field name="FAILED" type="org.apache.hadoop.mapred.TIPStatus"
  57359. transient="false" volatile="false"
  57360. static="true" final="true" visibility="public"
  57361. deprecated="not deprecated">
  57362. </field>
  57363. <doc>
  57364. <![CDATA[The states of a {@link TaskInProgress} as seen by the JobTracker.]]>
  57365. </doc>
  57366. </class>
  57367. <!-- end class org.apache.hadoop.mapred.TIPStatus -->
  57368. <!-- start class org.apache.hadoop.mapred.UserLogCleaner -->
  57369. <class name="UserLogCleaner" extends="java.lang.Thread"
  57370. abstract="false"
  57371. static="false" final="false" visibility="public"
  57372. deprecated="not deprecated">
  57373. <constructor name="UserLogCleaner" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager, org.apache.hadoop.conf.Configuration"
  57374. static="false" final="false" visibility="public"
  57375. deprecated="not deprecated">
  57376. <exception name="IOException" type="java.io.IOException"/>
  57377. </constructor>
  57378. <method name="run"
  57379. abstract="false" native="false" synchronized="false"
  57380. static="false" final="false" visibility="public"
  57381. deprecated="not deprecated">
  57382. </method>
  57383. <method name="deleteJobLogs"
  57384. abstract="false" native="false" synchronized="false"
  57385. static="false" final="false" visibility="public"
  57386. deprecated="not deprecated">
  57387. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  57388. <exception name="IOException" type="java.io.IOException"/>
  57389. </method>
  57390. <method name="addOldUserLogsForDeletion"
  57391. abstract="false" native="false" synchronized="false"
  57392. static="false" final="false" visibility="public"
  57393. deprecated="not deprecated">
  57394. <param name="loc" type="java.io.File"/>
  57395. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  57396. <exception name="IOException" type="java.io.IOException"/>
  57397. <doc>
  57398. <![CDATA[Adds the job log directories for deletion with default retain hours.
  57399. Deletes all other directories, if any.
  57400. @param loc location of log directory
  57401. @param conf
  57402. @throws IOException]]>
  57403. </doc>
  57404. </method>
  57405. <method name="clearOldUserLogs"
  57406. abstract="false" native="false" synchronized="false"
  57407. static="false" final="false" visibility="public"
  57408. deprecated="not deprecated">
  57409. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  57410. <exception name="IOException" type="java.io.IOException"/>
  57411. <doc>
  57412. <![CDATA[Clears all the logs in userlogs directory. This is usually called on
  57413. reinit/restart of the TaskTracker.
  57414. @param conf
  57415. @throws IOException]]>
  57416. </doc>
  57417. </method>
  57418. <method name="markJobLogsForDeletion"
  57419. abstract="false" native="false" synchronized="false"
  57420. static="false" final="false" visibility="public"
  57421. deprecated="not deprecated">
  57422. <param name="jobCompletionTime" type="long"/>
  57423. <param name="retainHours" type="int"/>
  57424. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  57425. <doc>
  57426. <![CDATA[Adds job user-log directory to cleanup thread to delete logs after user-log
  57427. retain hours.
  57428. @param jobCompletionTime
  57429. job completion time in millis
  57430. @param retainHours
  57431. the user-log retain hours for the job
  57432. @param jobid
  57433. JobID for which user logs should be deleted]]>
  57434. </doc>
  57435. </method>
  57436. <method name="unmarkJobFromLogDeletion"
  57437. abstract="false" native="false" synchronized="false"
  57438. static="false" final="false" visibility="public"
  57439. deprecated="not deprecated">
  57440. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  57441. <doc>
  57442. <![CDATA[Remove job from user log deletion.
  57443. @param jobid]]>
  57444. </doc>
  57445. </method>
  57446. <doc>
  57447. <![CDATA[This is used only in UserLogManager, to manage cleanup of user logs.]]>
  57448. </doc>
  57449. </class>
  57450. <!-- end class org.apache.hadoop.mapred.UserLogCleaner -->
  57451. <!-- start class org.apache.hadoop.mapred.Utils -->
  57452. <class name="Utils" extends="java.lang.Object"
  57453. abstract="false"
  57454. static="false" final="false" visibility="public"
  57455. deprecated="not deprecated">
  57456. <constructor name="Utils"
  57457. static="false" final="false" visibility="public"
  57458. deprecated="not deprecated">
  57459. </constructor>
  57460. <doc>
  57461. <![CDATA[A utility class. It provides
  57462. - file-util
  57463. - A path filter utility to filter out output/part files in the output dir]]>
  57464. </doc>
  57465. </class>
  57466. <!-- end class org.apache.hadoop.mapred.Utils -->
  57467. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  57468. <class name="Utils.OutputFileUtils" extends="java.lang.Object"
  57469. abstract="false"
  57470. static="true" final="false" visibility="public"
  57471. deprecated="not deprecated">
  57472. <constructor name="Utils.OutputFileUtils"
  57473. static="false" final="false" visibility="public"
  57474. deprecated="not deprecated">
  57475. </constructor>
  57476. </class>
  57477. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  57478. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  57479. <class name="Utils.OutputFileUtils.OutputFilesFilter" extends="org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter"
  57480. abstract="false"
  57481. static="true" final="false" visibility="public"
  57482. deprecated="not deprecated">
  57483. <constructor name="Utils.OutputFileUtils.OutputFilesFilter"
  57484. static="false" final="false" visibility="public"
  57485. deprecated="not deprecated">
  57486. </constructor>
  57487. <method name="accept" return="boolean"
  57488. abstract="false" native="false" synchronized="false"
  57489. static="false" final="false" visibility="public"
  57490. deprecated="not deprecated">
  57491. <param name="path" type="org.apache.hadoop.fs.Path"/>
  57492. </method>
  57493. <doc>
  57494. <![CDATA[This class filters output(part) files from the given directory
  57495. It does not accept files with filenames _logs and _SUCCESS.
  57496. This can be used to list paths of output directory as follows:
  57497. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  57498. new OutputFilesFilter()));]]>
  57499. </doc>
  57500. </class>
  57501. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  57502. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  57503. <class name="Utils.OutputFileUtils.OutputLogFilter" extends="java.lang.Object"
  57504. abstract="false"
  57505. static="true" final="false" visibility="public"
  57506. deprecated="not deprecated">
  57507. <implements name="org.apache.hadoop.fs.PathFilter"/>
  57508. <constructor name="Utils.OutputFileUtils.OutputLogFilter"
  57509. static="false" final="false" visibility="public"
  57510. deprecated="not deprecated">
  57511. </constructor>
  57512. <method name="accept" return="boolean"
  57513. abstract="false" native="false" synchronized="false"
  57514. static="false" final="false" visibility="public"
  57515. deprecated="not deprecated">
  57516. <param name="path" type="org.apache.hadoop.fs.Path"/>
  57517. </method>
  57518. <doc>
  57519. <![CDATA[This class filters log files from directory given
  57520. It doesnt accept paths having _logs.
  57521. This can be used to list paths of output directory as follows:
  57522. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  57523. new OutputLogFilter()));]]>
  57524. </doc>
  57525. </class>
  57526. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  57527. </package>
  57528. <package name="org.apache.hadoop.mapred.jobcontrol">
  57529. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  57530. <class name="Job" extends="java.lang.Object"
  57531. abstract="false"
  57532. static="false" final="false" visibility="public"
  57533. deprecated="not deprecated">
  57534. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList"
  57535. static="false" final="false" visibility="public"
  57536. deprecated="not deprecated">
  57537. <exception name="IOException" type="java.io.IOException"/>
  57538. <doc>
  57539. <![CDATA[Construct a job.
  57540. @param jobConf a mapred job configuration representing a job to be executed.
  57541. @param dependingJobs an array of jobs the current job depends on]]>
  57542. </doc>
  57543. </constructor>
  57544. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  57545. static="false" final="false" visibility="public"
  57546. deprecated="not deprecated">
  57547. <exception name="IOException" type="java.io.IOException"/>
  57548. <doc>
  57549. <![CDATA[Construct a job.
  57550. @param jobConf mapred job configuration representing a job to be executed.
  57551. @throws IOException]]>
  57552. </doc>
  57553. </constructor>
  57554. <method name="toString" return="java.lang.String"
  57555. abstract="false" native="false" synchronized="false"
  57556. static="false" final="false" visibility="public"
  57557. deprecated="not deprecated">
  57558. </method>
  57559. <method name="getJobName" return="java.lang.String"
  57560. abstract="false" native="false" synchronized="false"
  57561. static="false" final="false" visibility="public"
  57562. deprecated="not deprecated">
  57563. <doc>
  57564. <![CDATA[@return the job name of this job]]>
  57565. </doc>
  57566. </method>
  57567. <method name="setJobName"
  57568. abstract="false" native="false" synchronized="false"
  57569. static="false" final="false" visibility="public"
  57570. deprecated="not deprecated">
  57571. <param name="jobName" type="java.lang.String"/>
  57572. <doc>
  57573. <![CDATA[Set the job name for this job.
  57574. @param jobName the job name]]>
  57575. </doc>
  57576. </method>
  57577. <method name="getJobID" return="java.lang.String"
  57578. abstract="false" native="false" synchronized="false"
  57579. static="false" final="false" visibility="public"
  57580. deprecated="not deprecated">
  57581. <doc>
  57582. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  57583. </doc>
  57584. </method>
  57585. <method name="setJobID"
  57586. abstract="false" native="false" synchronized="false"
  57587. static="false" final="false" visibility="public"
  57588. deprecated="not deprecated">
  57589. <param name="id" type="java.lang.String"/>
  57590. <doc>
  57591. <![CDATA[Set the job ID for this job.
  57592. @param id the job ID]]>
  57593. </doc>
  57594. </method>
  57595. <method name="getMapredJobID" return="java.lang.String"
  57596. abstract="false" native="false" synchronized="false"
  57597. static="false" final="false" visibility="public"
  57598. deprecated="use {@link #getAssignedJobID()} instead">
  57599. <doc>
  57600. <![CDATA[@return the mapred ID of this job
  57601. @deprecated use {@link #getAssignedJobID()} instead]]>
  57602. </doc>
  57603. </method>
  57604. <method name="setMapredJobID"
  57605. abstract="false" native="false" synchronized="false"
  57606. static="false" final="false" visibility="public"
  57607. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  57608. <param name="mapredJobID" type="java.lang.String"/>
  57609. <doc>
  57610. <![CDATA[Set the mapred ID for this job.
  57611. @param mapredJobID the mapred job ID for this job.
  57612. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  57613. </doc>
  57614. </method>
  57615. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  57616. abstract="false" native="false" synchronized="false"
  57617. static="false" final="false" visibility="public"
  57618. deprecated="not deprecated">
  57619. <doc>
  57620. <![CDATA[@return the mapred ID of this job as assigned by the
  57621. mapred framework.]]>
  57622. </doc>
  57623. </method>
  57624. <method name="setAssignedJobID"
  57625. abstract="false" native="false" synchronized="false"
  57626. static="false" final="false" visibility="public"
  57627. deprecated="not deprecated">
  57628. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  57629. <doc>
  57630. <![CDATA[Set the mapred ID for this job as assigned by the
  57631. mapred framework.
  57632. @param mapredJobID the mapred job ID for this job.]]>
  57633. </doc>
  57634. </method>
  57635. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  57636. abstract="false" native="false" synchronized="false"
  57637. static="false" final="false" visibility="public"
  57638. deprecated="not deprecated">
  57639. <doc>
  57640. <![CDATA[@return the mapred job conf of this job]]>
  57641. </doc>
  57642. </method>
  57643. <method name="setJobConf"
  57644. abstract="false" native="false" synchronized="false"
  57645. static="false" final="false" visibility="public"
  57646. deprecated="not deprecated">
  57647. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  57648. <doc>
  57649. <![CDATA[Set the mapred job conf for this job.
  57650. @param jobConf the mapred job conf for this job.]]>
  57651. </doc>
  57652. </method>
  57653. <method name="getState" return="int"
  57654. abstract="false" native="false" synchronized="true"
  57655. static="false" final="false" visibility="public"
  57656. deprecated="not deprecated">
  57657. <doc>
  57658. <![CDATA[@return the state of this job]]>
  57659. </doc>
  57660. </method>
  57661. <method name="setState"
  57662. abstract="false" native="false" synchronized="true"
  57663. static="false" final="false" visibility="protected"
  57664. deprecated="not deprecated">
  57665. <param name="state" type="int"/>
  57666. <doc>
  57667. <![CDATA[Set the state for this job.
  57668. @param state the new state for this job.]]>
  57669. </doc>
  57670. </method>
  57671. <method name="getMessage" return="java.lang.String"
  57672. abstract="false" native="false" synchronized="false"
  57673. static="false" final="false" visibility="public"
  57674. deprecated="not deprecated">
  57675. <doc>
  57676. <![CDATA[@return the message of this job]]>
  57677. </doc>
  57678. </method>
  57679. <method name="setMessage"
  57680. abstract="false" native="false" synchronized="false"
  57681. static="false" final="false" visibility="public"
  57682. deprecated="not deprecated">
  57683. <param name="message" type="java.lang.String"/>
  57684. <doc>
  57685. <![CDATA[Set the message for this job.
  57686. @param message the message for this job.]]>
  57687. </doc>
  57688. </method>
  57689. <method name="getJobClient" return="org.apache.hadoop.mapred.JobClient"
  57690. abstract="false" native="false" synchronized="false"
  57691. static="false" final="false" visibility="public"
  57692. deprecated="not deprecated">
  57693. <doc>
  57694. <![CDATA[@return the job client of this job]]>
  57695. </doc>
  57696. </method>
  57697. <method name="getDependingJobs" return="java.util.ArrayList"
  57698. abstract="false" native="false" synchronized="false"
  57699. static="false" final="false" visibility="public"
  57700. deprecated="not deprecated">
  57701. <doc>
  57702. <![CDATA[@return the depending jobs of this job]]>
  57703. </doc>
  57704. </method>
  57705. <method name="addDependingJob" return="boolean"
  57706. abstract="false" native="false" synchronized="true"
  57707. static="false" final="false" visibility="public"
  57708. deprecated="not deprecated">
  57709. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  57710. <doc>
  57711. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  57712. is waiting to run, not during or afterwards.
  57713. @param dependingJob Job that this Job depends on.
  57714. @return <tt>true</tt> if the Job was added.]]>
  57715. </doc>
  57716. </method>
  57717. <method name="isCompleted" return="boolean"
  57718. abstract="false" native="false" synchronized="false"
  57719. static="false" final="false" visibility="public"
  57720. deprecated="not deprecated">
  57721. <doc>
  57722. <![CDATA[@return true if this job is in a complete state]]>
  57723. </doc>
  57724. </method>
  57725. <method name="isReady" return="boolean"
  57726. abstract="false" native="false" synchronized="false"
  57727. static="false" final="false" visibility="public"
  57728. deprecated="not deprecated">
  57729. <doc>
  57730. <![CDATA[@return true if this job is in READY state]]>
  57731. </doc>
  57732. </method>
  57733. <method name="submit"
  57734. abstract="false" native="false" synchronized="true"
  57735. static="false" final="false" visibility="protected"
  57736. deprecated="not deprecated">
  57737. <doc>
  57738. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  57739. is successful, FAILED otherwise.]]>
  57740. </doc>
  57741. </method>
  57742. <field name="SUCCESS" type="int"
  57743. transient="false" volatile="false"
  57744. static="true" final="true" visibility="public"
  57745. deprecated="not deprecated">
  57746. </field>
  57747. <field name="WAITING" type="int"
  57748. transient="false" volatile="false"
  57749. static="true" final="true" visibility="public"
  57750. deprecated="not deprecated">
  57751. </field>
  57752. <field name="RUNNING" type="int"
  57753. transient="false" volatile="false"
  57754. static="true" final="true" visibility="public"
  57755. deprecated="not deprecated">
  57756. </field>
  57757. <field name="READY" type="int"
  57758. transient="false" volatile="false"
  57759. static="true" final="true" visibility="public"
  57760. deprecated="not deprecated">
  57761. </field>
  57762. <field name="FAILED" type="int"
  57763. transient="false" volatile="false"
  57764. static="true" final="true" visibility="public"
  57765. deprecated="not deprecated">
  57766. </field>
  57767. <field name="DEPENDENT_FAILED" type="int"
  57768. transient="false" volatile="false"
  57769. static="true" final="true" visibility="public"
  57770. deprecated="not deprecated">
  57771. </field>
  57772. <doc>
  57773. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  57774. the states of the depending jobs and updates the state of this job.
  57775. A job starts in the WAITING state. If it does not have any depending jobs, or
  57776. all of the depending jobs are in SUCCESS state, then the job state will become
  57777. READY. If any depending jobs fail, the job will fail too.
  57778. When in READY state, the job can be submitted to Hadoop for execution, with
  57779. the state changing into RUNNING state. From RUNNING state, the job can get into
  57780. SUCCESS or FAILED state, depending the status of the job execution.]]>
  57781. </doc>
  57782. </class>
  57783. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  57784. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  57785. <class name="JobControl" extends="java.lang.Object"
  57786. abstract="false"
  57787. static="false" final="false" visibility="public"
  57788. deprecated="not deprecated">
  57789. <implements name="java.lang.Runnable"/>
  57790. <constructor name="JobControl" type="java.lang.String"
  57791. static="false" final="false" visibility="public"
  57792. deprecated="not deprecated">
  57793. <doc>
  57794. <![CDATA[Construct a job control for a group of jobs.
  57795. @param groupName a name identifying this group]]>
  57796. </doc>
  57797. </constructor>
  57798. <method name="getWaitingJobs" return="java.util.ArrayList"
  57799. abstract="false" native="false" synchronized="false"
  57800. static="false" final="false" visibility="public"
  57801. deprecated="not deprecated">
  57802. <doc>
  57803. <![CDATA[@return the jobs in the waiting state]]>
  57804. </doc>
  57805. </method>
  57806. <method name="getRunningJobs" return="java.util.ArrayList"
  57807. abstract="false" native="false" synchronized="false"
  57808. static="false" final="false" visibility="public"
  57809. deprecated="not deprecated">
  57810. <doc>
  57811. <![CDATA[@return the jobs in the running state]]>
  57812. </doc>
  57813. </method>
  57814. <method name="getReadyJobs" return="java.util.ArrayList"
  57815. abstract="false" native="false" synchronized="false"
  57816. static="false" final="false" visibility="public"
  57817. deprecated="not deprecated">
  57818. <doc>
  57819. <![CDATA[@return the jobs in the ready state]]>
  57820. </doc>
  57821. </method>
  57822. <method name="getSuccessfulJobs" return="java.util.ArrayList"
  57823. abstract="false" native="false" synchronized="false"
  57824. static="false" final="false" visibility="public"
  57825. deprecated="not deprecated">
  57826. <doc>
  57827. <![CDATA[@return the jobs in the success state]]>
  57828. </doc>
  57829. </method>
  57830. <method name="getFailedJobs" return="java.util.ArrayList"
  57831. abstract="false" native="false" synchronized="false"
  57832. static="false" final="false" visibility="public"
  57833. deprecated="not deprecated">
  57834. </method>
  57835. <method name="addJob" return="java.lang.String"
  57836. abstract="false" native="false" synchronized="true"
  57837. static="false" final="false" visibility="public"
  57838. deprecated="not deprecated">
  57839. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  57840. <doc>
  57841. <![CDATA[Add a new job.
  57842. @param aJob the new job]]>
  57843. </doc>
  57844. </method>
  57845. <method name="addJobs"
  57846. abstract="false" native="false" synchronized="false"
  57847. static="false" final="false" visibility="public"
  57848. deprecated="not deprecated">
  57849. <param name="jobs" type="java.util.Collection"/>
  57850. <doc>
  57851. <![CDATA[Add a collection of jobs
  57852. @param jobs]]>
  57853. </doc>
  57854. </method>
  57855. <method name="getState" return="int"
  57856. abstract="false" native="false" synchronized="false"
  57857. static="false" final="false" visibility="public"
  57858. deprecated="not deprecated">
  57859. <doc>
  57860. <![CDATA[@return the thread state]]>
  57861. </doc>
  57862. </method>
  57863. <method name="stop"
  57864. abstract="false" native="false" synchronized="false"
  57865. static="false" final="false" visibility="public"
  57866. deprecated="not deprecated">
  57867. <doc>
  57868. <![CDATA[set the thread state to STOPPING so that the
  57869. thread will stop when it wakes up.]]>
  57870. </doc>
  57871. </method>
  57872. <method name="suspend"
  57873. abstract="false" native="false" synchronized="false"
  57874. static="false" final="false" visibility="public"
  57875. deprecated="not deprecated">
  57876. <doc>
  57877. <![CDATA[suspend the running thread]]>
  57878. </doc>
  57879. </method>
  57880. <method name="resume"
  57881. abstract="false" native="false" synchronized="false"
  57882. static="false" final="false" visibility="public"
  57883. deprecated="not deprecated">
  57884. <doc>
  57885. <![CDATA[resume the suspended thread]]>
  57886. </doc>
  57887. </method>
  57888. <method name="allFinished" return="boolean"
  57889. abstract="false" native="false" synchronized="true"
  57890. static="false" final="false" visibility="public"
  57891. deprecated="not deprecated">
  57892. </method>
  57893. <method name="run"
  57894. abstract="false" native="false" synchronized="false"
  57895. static="false" final="false" visibility="public"
  57896. deprecated="not deprecated">
  57897. <doc>
  57898. <![CDATA[The main loop for the thread.
  57899. The loop does the following:
  57900. Check the states of the running jobs
  57901. Update the states of waiting jobs
  57902. Submit the jobs in ready state]]>
  57903. </doc>
  57904. </method>
  57905. <doc>
  57906. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  57907. the states of the jobs by placing them into different tables according to their
  57908. states.
  57909. This class provides APIs for the client app to add a job to the group and to get
  57910. the jobs in the group in different states. When a
  57911. job is added, an ID unique to the group is assigned to the job.
  57912. This class has a thread that submits jobs when they become ready, monitors the
  57913. states of the running jobs, and updates the states of jobs based on the state changes
  57914. of their depending jobs states. The class provides APIs for suspending/resuming
  57915. the thread,and for stopping the thread.]]>
  57916. </doc>
  57917. </class>
  57918. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  57919. </package>
  57920. <package name="org.apache.hadoop.mapred.join">
  57921. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  57922. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  57923. abstract="false"
  57924. static="false" final="false" visibility="public"
  57925. deprecated="not deprecated">
  57926. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  57927. <constructor name="ArrayListBackedIterator"
  57928. static="false" final="false" visibility="public"
  57929. deprecated="not deprecated">
  57930. </constructor>
  57931. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList"
  57932. static="false" final="false" visibility="public"
  57933. deprecated="not deprecated">
  57934. </constructor>
  57935. <method name="hasNext" return="boolean"
  57936. abstract="false" native="false" synchronized="false"
  57937. static="false" final="false" visibility="public"
  57938. deprecated="not deprecated">
  57939. </method>
  57940. <method name="next" return="boolean"
  57941. abstract="false" native="false" synchronized="false"
  57942. static="false" final="false" visibility="public"
  57943. deprecated="not deprecated">
  57944. <param name="val" type="org.apache.hadoop.io.Writable"/>
  57945. <exception name="IOException" type="java.io.IOException"/>
  57946. </method>
  57947. <method name="replay" return="boolean"
  57948. abstract="false" native="false" synchronized="false"
  57949. static="false" final="false" visibility="public"
  57950. deprecated="not deprecated">
  57951. <param name="val" type="org.apache.hadoop.io.Writable"/>
  57952. <exception name="IOException" type="java.io.IOException"/>
  57953. </method>
  57954. <method name="reset"
  57955. abstract="false" native="false" synchronized="false"
  57956. static="false" final="false" visibility="public"
  57957. deprecated="not deprecated">
  57958. </method>
  57959. <method name="add"
  57960. abstract="false" native="false" synchronized="false"
  57961. static="false" final="false" visibility="public"
  57962. deprecated="not deprecated">
  57963. <param name="item" type="org.apache.hadoop.io.Writable"/>
  57964. <exception name="IOException" type="java.io.IOException"/>
  57965. </method>
  57966. <method name="close"
  57967. abstract="false" native="false" synchronized="false"
  57968. static="false" final="false" visibility="public"
  57969. deprecated="not deprecated">
  57970. <exception name="IOException" type="java.io.IOException"/>
  57971. </method>
  57972. <method name="clear"
  57973. abstract="false" native="false" synchronized="false"
  57974. static="false" final="false" visibility="public"
  57975. deprecated="not deprecated">
  57976. </method>
  57977. <doc>
  57978. <![CDATA[This class provides an implementation of ResetableIterator. The
  57979. implementation uses an {@link java.util.ArrayList} to store elements
  57980. added to it, replaying them as requested.
  57981. Prefer {@link StreamBackedIterator}.]]>
  57982. </doc>
  57983. </class>
  57984. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  57985. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  57986. <interface name="ComposableInputFormat" abstract="true"
  57987. static="false" final="false" visibility="public"
  57988. deprecated="not deprecated">
  57989. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  57990. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  57991. abstract="false" native="false" synchronized="false"
  57992. static="false" final="false" visibility="public"
  57993. deprecated="not deprecated">
  57994. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  57995. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  57996. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  57997. <exception name="IOException" type="java.io.IOException"/>
  57998. </method>
  57999. <doc>
  58000. <![CDATA[Refinement of InputFormat requiring implementors to provide
  58001. ComposableRecordReader instead of RecordReader.]]>
  58002. </doc>
  58003. </interface>
  58004. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  58005. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  58006. <interface name="ComposableRecordReader" abstract="true"
  58007. static="false" final="false" visibility="public"
  58008. deprecated="not deprecated">
  58009. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  58010. <implements name="java.lang.Comparable"/>
  58011. <method name="id" return="int"
  58012. abstract="false" native="false" synchronized="false"
  58013. static="false" final="false" visibility="public"
  58014. deprecated="not deprecated">
  58015. <doc>
  58016. <![CDATA[Return the position in the collector this class occupies.]]>
  58017. </doc>
  58018. </method>
  58019. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  58020. abstract="false" native="false" synchronized="false"
  58021. static="false" final="false" visibility="public"
  58022. deprecated="not deprecated">
  58023. <doc>
  58024. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  58025. </doc>
  58026. </method>
  58027. <method name="key"
  58028. abstract="false" native="false" synchronized="false"
  58029. static="false" final="false" visibility="public"
  58030. deprecated="not deprecated">
  58031. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58032. <exception name="IOException" type="java.io.IOException"/>
  58033. <doc>
  58034. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  58035. </doc>
  58036. </method>
  58037. <method name="hasNext" return="boolean"
  58038. abstract="false" native="false" synchronized="false"
  58039. static="false" final="false" visibility="public"
  58040. deprecated="not deprecated">
  58041. <doc>
  58042. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  58043. a call to next(K,V) will succeed.]]>
  58044. </doc>
  58045. </method>
  58046. <method name="skip"
  58047. abstract="false" native="false" synchronized="false"
  58048. static="false" final="false" visibility="public"
  58049. deprecated="not deprecated">
  58050. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58051. <exception name="IOException" type="java.io.IOException"/>
  58052. <doc>
  58053. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  58054. </doc>
  58055. </method>
  58056. <method name="accept"
  58057. abstract="false" native="false" synchronized="false"
  58058. static="false" final="false" visibility="public"
  58059. deprecated="not deprecated">
  58060. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  58061. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58062. <exception name="IOException" type="java.io.IOException"/>
  58063. <doc>
  58064. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  58065. them with the JoinCollector provided.]]>
  58066. </doc>
  58067. </method>
  58068. <doc>
  58069. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  58070. </doc>
  58071. </interface>
  58072. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  58073. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  58074. <class name="CompositeInputFormat" extends="java.lang.Object"
  58075. abstract="false"
  58076. static="false" final="false" visibility="public"
  58077. deprecated="not deprecated">
  58078. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  58079. <constructor name="CompositeInputFormat"
  58080. static="false" final="false" visibility="public"
  58081. deprecated="not deprecated">
  58082. </constructor>
  58083. <method name="setFormat"
  58084. abstract="false" native="false" synchronized="false"
  58085. static="false" final="false" visibility="public"
  58086. deprecated="not deprecated">
  58087. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58088. <exception name="IOException" type="java.io.IOException"/>
  58089. <doc>
  58090. <![CDATA[Interpret a given string as a composite expression.
  58091. {@code
  58092. func ::= <ident>([<func>,]*<func>)
  58093. func ::= tbl(<class>,"<path>")
  58094. class ::= @see java.lang.Class#forName(java.lang.String)
  58095. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  58096. }
  58097. Reads expression from the <tt>mapred.join.expr</tt> property and
  58098. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  58099. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  58100. InputFormat class listed.
  58101. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  58102. </doc>
  58103. </method>
  58104. <method name="addDefaults"
  58105. abstract="false" native="false" synchronized="false"
  58106. static="false" final="false" visibility="protected"
  58107. deprecated="not deprecated">
  58108. <doc>
  58109. <![CDATA[Adds the default set of identifiers to the parser.]]>
  58110. </doc>
  58111. </method>
  58112. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  58113. abstract="false" native="false" synchronized="false"
  58114. static="false" final="false" visibility="public"
  58115. deprecated="not deprecated">
  58116. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58117. <param name="numSplits" type="int"/>
  58118. <exception name="IOException" type="java.io.IOException"/>
  58119. <doc>
  58120. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  58121. ith split from each child to the ith composite split.]]>
  58122. </doc>
  58123. </method>
  58124. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  58125. abstract="false" native="false" synchronized="false"
  58126. static="false" final="false" visibility="public"
  58127. deprecated="not deprecated">
  58128. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  58129. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58130. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  58131. <exception name="IOException" type="java.io.IOException"/>
  58132. <doc>
  58133. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  58134. as defined in the init expression.
  58135. The outermost join need only be composable, not necessarily a composite.
  58136. Mandating TupleWritable isn't strictly correct.]]>
  58137. </doc>
  58138. </method>
  58139. <method name="compose" return="java.lang.String"
  58140. abstract="false" native="false" synchronized="false"
  58141. static="true" final="false" visibility="public"
  58142. deprecated="not deprecated">
  58143. <param name="inf" type="java.lang.Class"/>
  58144. <param name="path" type="java.lang.String"/>
  58145. <doc>
  58146. <![CDATA[Convenience method for constructing composite formats.
  58147. Given InputFormat class (inf), path (p) return:
  58148. {@code tbl(<inf>, <p>) }]]>
  58149. </doc>
  58150. </method>
  58151. <method name="compose" return="java.lang.String"
  58152. abstract="false" native="false" synchronized="false"
  58153. static="true" final="false" visibility="public"
  58154. deprecated="not deprecated">
  58155. <param name="op" type="java.lang.String"/>
  58156. <param name="inf" type="java.lang.Class"/>
  58157. <param name="path" type="java.lang.String[]"/>
  58158. <doc>
  58159. <![CDATA[Convenience method for constructing composite formats.
  58160. Given operation (op), Object class (inf), set of paths (p) return:
  58161. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  58162. </doc>
  58163. </method>
  58164. <method name="compose" return="java.lang.String"
  58165. abstract="false" native="false" synchronized="false"
  58166. static="true" final="false" visibility="public"
  58167. deprecated="not deprecated">
  58168. <param name="op" type="java.lang.String"/>
  58169. <param name="inf" type="java.lang.Class"/>
  58170. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  58171. <doc>
  58172. <![CDATA[Convenience method for constructing composite formats.
  58173. Given operation (op), Object class (inf), set of paths (p) return:
  58174. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  58175. </doc>
  58176. </method>
  58177. <doc>
  58178. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  58179. and partitioned the same way.
  58180. @see #setFormat
  58181. A user may define new join types by setting the property
  58182. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  58183. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  58184. ComposableRecordReader.
  58185. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  58186. in the join.
  58187. @see JoinRecordReader
  58188. @see MultiFilterRecordReader]]>
  58189. </doc>
  58190. </class>
  58191. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  58192. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  58193. <class name="CompositeInputSplit" extends="java.lang.Object"
  58194. abstract="false"
  58195. static="false" final="false" visibility="public"
  58196. deprecated="not deprecated">
  58197. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  58198. <constructor name="CompositeInputSplit"
  58199. static="false" final="false" visibility="public"
  58200. deprecated="not deprecated">
  58201. </constructor>
  58202. <constructor name="CompositeInputSplit" type="int"
  58203. static="false" final="false" visibility="public"
  58204. deprecated="not deprecated">
  58205. </constructor>
  58206. <method name="add"
  58207. abstract="false" native="false" synchronized="false"
  58208. static="false" final="false" visibility="public"
  58209. deprecated="not deprecated">
  58210. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  58211. <exception name="IOException" type="java.io.IOException"/>
  58212. <doc>
  58213. <![CDATA[Add an InputSplit to this collection.
  58214. @throws IOException If capacity was not specified during construction
  58215. or if capacity has been reached.]]>
  58216. </doc>
  58217. </method>
  58218. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  58219. abstract="false" native="false" synchronized="false"
  58220. static="false" final="false" visibility="public"
  58221. deprecated="not deprecated">
  58222. <param name="i" type="int"/>
  58223. <doc>
  58224. <![CDATA[Get ith child InputSplit.]]>
  58225. </doc>
  58226. </method>
  58227. <method name="getLength" return="long"
  58228. abstract="false" native="false" synchronized="false"
  58229. static="false" final="false" visibility="public"
  58230. deprecated="not deprecated">
  58231. <exception name="IOException" type="java.io.IOException"/>
  58232. <doc>
  58233. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  58234. </doc>
  58235. </method>
  58236. <method name="getLength" return="long"
  58237. abstract="false" native="false" synchronized="false"
  58238. static="false" final="false" visibility="public"
  58239. deprecated="not deprecated">
  58240. <param name="i" type="int"/>
  58241. <exception name="IOException" type="java.io.IOException"/>
  58242. <doc>
  58243. <![CDATA[Get the length of ith child InputSplit.]]>
  58244. </doc>
  58245. </method>
  58246. <method name="getLocations" return="java.lang.String[]"
  58247. abstract="false" native="false" synchronized="false"
  58248. static="false" final="false" visibility="public"
  58249. deprecated="not deprecated">
  58250. <exception name="IOException" type="java.io.IOException"/>
  58251. <doc>
  58252. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  58253. </doc>
  58254. </method>
  58255. <method name="getLocation" return="java.lang.String[]"
  58256. abstract="false" native="false" synchronized="false"
  58257. static="false" final="false" visibility="public"
  58258. deprecated="not deprecated">
  58259. <param name="i" type="int"/>
  58260. <exception name="IOException" type="java.io.IOException"/>
  58261. <doc>
  58262. <![CDATA[getLocations from ith InputSplit.]]>
  58263. </doc>
  58264. </method>
  58265. <method name="write"
  58266. abstract="false" native="false" synchronized="false"
  58267. static="false" final="false" visibility="public"
  58268. deprecated="not deprecated">
  58269. <param name="out" type="java.io.DataOutput"/>
  58270. <exception name="IOException" type="java.io.IOException"/>
  58271. <doc>
  58272. <![CDATA[Write splits in the following format.
  58273. {@code
  58274. <count><class1><class2>...<classn><split1><split2>...<splitn>
  58275. }]]>
  58276. </doc>
  58277. </method>
  58278. <method name="readFields"
  58279. abstract="false" native="false" synchronized="false"
  58280. static="false" final="false" visibility="public"
  58281. deprecated="not deprecated">
  58282. <param name="in" type="java.io.DataInput"/>
  58283. <exception name="IOException" type="java.io.IOException"/>
  58284. <doc>
  58285. <![CDATA[{@inheritDoc}
  58286. @throws IOException If the child InputSplit cannot be read, typically
  58287. for faliing access checks.]]>
  58288. </doc>
  58289. </method>
  58290. <doc>
  58291. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  58292. into this collection must have a public default constructor.]]>
  58293. </doc>
  58294. </class>
  58295. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  58296. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  58297. <class name="CompositeRecordReader" extends="java.lang.Object"
  58298. abstract="true"
  58299. static="false" final="false" visibility="public"
  58300. deprecated="not deprecated">
  58301. <implements name="org.apache.hadoop.conf.Configurable"/>
  58302. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class"
  58303. static="false" final="false" visibility="public"
  58304. deprecated="not deprecated">
  58305. <exception name="IOException" type="java.io.IOException"/>
  58306. <doc>
  58307. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  58308. <tt>id</tt> in the parent reader.
  58309. The id of a root CompositeRecordReader is -1 by convention, but relying
  58310. on this is not recommended.]]>
  58311. </doc>
  58312. </constructor>
  58313. <method name="combine" return="boolean"
  58314. abstract="true" native="false" synchronized="false"
  58315. static="false" final="false" visibility="protected"
  58316. deprecated="not deprecated">
  58317. <param name="srcs" type="java.lang.Object[]"/>
  58318. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58319. </method>
  58320. <method name="id" return="int"
  58321. abstract="false" native="false" synchronized="false"
  58322. static="false" final="false" visibility="public"
  58323. deprecated="not deprecated">
  58324. <doc>
  58325. <![CDATA[Return the position in the collector this class occupies.]]>
  58326. </doc>
  58327. </method>
  58328. <method name="setConf"
  58329. abstract="false" native="false" synchronized="false"
  58330. static="false" final="false" visibility="public"
  58331. deprecated="not deprecated">
  58332. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  58333. <doc>
  58334. <![CDATA[{@inheritDoc}]]>
  58335. </doc>
  58336. </method>
  58337. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  58338. abstract="false" native="false" synchronized="false"
  58339. static="false" final="false" visibility="public"
  58340. deprecated="not deprecated">
  58341. <doc>
  58342. <![CDATA[{@inheritDoc}]]>
  58343. </doc>
  58344. </method>
  58345. <method name="getRecordReaderQueue" return="java.util.PriorityQueue"
  58346. abstract="false" native="false" synchronized="false"
  58347. static="false" final="false" visibility="protected"
  58348. deprecated="not deprecated">
  58349. <doc>
  58350. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  58351. </doc>
  58352. </method>
  58353. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  58354. abstract="false" native="false" synchronized="false"
  58355. static="false" final="false" visibility="protected"
  58356. deprecated="not deprecated">
  58357. <doc>
  58358. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  58359. composite.]]>
  58360. </doc>
  58361. </method>
  58362. <method name="add"
  58363. abstract="false" native="false" synchronized="false"
  58364. static="false" final="false" visibility="public"
  58365. deprecated="not deprecated">
  58366. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  58367. <exception name="IOException" type="java.io.IOException"/>
  58368. <doc>
  58369. <![CDATA[Add a RecordReader to this collection.
  58370. The id() of a RecordReader determines where in the Tuple its
  58371. entry will appear. Adding RecordReaders with the same id has
  58372. undefined behavior.]]>
  58373. </doc>
  58374. </method>
  58375. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  58376. abstract="false" native="false" synchronized="false"
  58377. static="false" final="false" visibility="public"
  58378. deprecated="not deprecated">
  58379. <doc>
  58380. <![CDATA[Return the key for the current join or the value at the top of the
  58381. RecordReader heap.]]>
  58382. </doc>
  58383. </method>
  58384. <method name="key"
  58385. abstract="false" native="false" synchronized="false"
  58386. static="false" final="false" visibility="public"
  58387. deprecated="not deprecated">
  58388. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58389. <exception name="IOException" type="java.io.IOException"/>
  58390. <doc>
  58391. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  58392. </doc>
  58393. </method>
  58394. <method name="hasNext" return="boolean"
  58395. abstract="false" native="false" synchronized="false"
  58396. static="false" final="false" visibility="public"
  58397. deprecated="not deprecated">
  58398. <doc>
  58399. <![CDATA[Return true if it is possible that this could emit more values.]]>
  58400. </doc>
  58401. </method>
  58402. <method name="skip"
  58403. abstract="false" native="false" synchronized="false"
  58404. static="false" final="false" visibility="public"
  58405. deprecated="not deprecated">
  58406. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58407. <exception name="IOException" type="java.io.IOException"/>
  58408. <doc>
  58409. <![CDATA[Pass skip key to child RRs.]]>
  58410. </doc>
  58411. </method>
  58412. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  58413. abstract="true" native="false" synchronized="false"
  58414. static="false" final="false" visibility="protected"
  58415. deprecated="not deprecated">
  58416. <doc>
  58417. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  58418. ultimately emitted from this join.]]>
  58419. </doc>
  58420. </method>
  58421. <method name="accept"
  58422. abstract="false" native="false" synchronized="false"
  58423. static="false" final="false" visibility="public"
  58424. deprecated="not deprecated">
  58425. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  58426. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58427. <exception name="IOException" type="java.io.IOException"/>
  58428. <doc>
  58429. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  58430. iterator over values it may emit.]]>
  58431. </doc>
  58432. </method>
  58433. <method name="fillJoinCollector"
  58434. abstract="false" native="false" synchronized="false"
  58435. static="false" final="false" visibility="protected"
  58436. deprecated="not deprecated">
  58437. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  58438. <exception name="IOException" type="java.io.IOException"/>
  58439. <doc>
  58440. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  58441. at that position in the JoinCollector.]]>
  58442. </doc>
  58443. </method>
  58444. <method name="compareTo" return="int"
  58445. abstract="false" native="false" synchronized="false"
  58446. static="false" final="false" visibility="public"
  58447. deprecated="not deprecated">
  58448. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  58449. <doc>
  58450. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  58451. with that of another).]]>
  58452. </doc>
  58453. </method>
  58454. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  58455. abstract="false" native="false" synchronized="false"
  58456. static="false" final="false" visibility="public"
  58457. deprecated="not deprecated">
  58458. <doc>
  58459. <![CDATA[Create a new key value common to all child RRs.
  58460. @throws ClassCastException if key classes differ.]]>
  58461. </doc>
  58462. </method>
  58463. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  58464. abstract="false" native="false" synchronized="false"
  58465. static="false" final="false" visibility="protected"
  58466. deprecated="not deprecated">
  58467. <doc>
  58468. <![CDATA[Create a value to be used internally for joins.]]>
  58469. </doc>
  58470. </method>
  58471. <method name="getPos" return="long"
  58472. abstract="false" native="false" synchronized="false"
  58473. static="false" final="false" visibility="public"
  58474. deprecated="not deprecated">
  58475. <exception name="IOException" type="java.io.IOException"/>
  58476. <doc>
  58477. <![CDATA[Unsupported (returns zero in all cases).]]>
  58478. </doc>
  58479. </method>
  58480. <method name="close"
  58481. abstract="false" native="false" synchronized="false"
  58482. static="false" final="false" visibility="public"
  58483. deprecated="not deprecated">
  58484. <exception name="IOException" type="java.io.IOException"/>
  58485. <doc>
  58486. <![CDATA[Close all child RRs.]]>
  58487. </doc>
  58488. </method>
  58489. <method name="getProgress" return="float"
  58490. abstract="false" native="false" synchronized="false"
  58491. static="false" final="false" visibility="public"
  58492. deprecated="not deprecated">
  58493. <exception name="IOException" type="java.io.IOException"/>
  58494. <doc>
  58495. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  58496. </doc>
  58497. </method>
  58498. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"
  58499. transient="false" volatile="false"
  58500. static="false" final="true" visibility="protected"
  58501. deprecated="not deprecated">
  58502. </field>
  58503. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  58504. transient="false" volatile="false"
  58505. static="false" final="true" visibility="protected"
  58506. deprecated="not deprecated">
  58507. </field>
  58508. <doc>
  58509. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  58510. type and partitioning.]]>
  58511. </doc>
  58512. </class>
  58513. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  58514. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  58515. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  58516. abstract="false"
  58517. static="false" final="false" visibility="public"
  58518. deprecated="not deprecated">
  58519. <method name="combine" return="boolean"
  58520. abstract="false" native="false" synchronized="false"
  58521. static="false" final="false" visibility="protected"
  58522. deprecated="not deprecated">
  58523. <param name="srcs" type="java.lang.Object[]"/>
  58524. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58525. <doc>
  58526. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  58527. </doc>
  58528. </method>
  58529. <doc>
  58530. <![CDATA[Full inner join.]]>
  58531. </doc>
  58532. </class>
  58533. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  58534. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  58535. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  58536. abstract="true"
  58537. static="false" final="false" visibility="public"
  58538. deprecated="not deprecated">
  58539. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  58540. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  58541. static="false" final="false" visibility="public"
  58542. deprecated="not deprecated">
  58543. <exception name="IOException" type="java.io.IOException"/>
  58544. </constructor>
  58545. <method name="next" return="boolean"
  58546. abstract="false" native="false" synchronized="false"
  58547. static="false" final="false" visibility="public"
  58548. deprecated="not deprecated">
  58549. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58550. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58551. <exception name="IOException" type="java.io.IOException"/>
  58552. <doc>
  58553. <![CDATA[Emit the next set of key, value pairs as defined by the child
  58554. RecordReaders and operation associated with this composite RR.]]>
  58555. </doc>
  58556. </method>
  58557. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  58558. abstract="false" native="false" synchronized="false"
  58559. static="false" final="false" visibility="public"
  58560. deprecated="not deprecated">
  58561. <doc>
  58562. <![CDATA[{@inheritDoc}]]>
  58563. </doc>
  58564. </method>
  58565. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  58566. abstract="false" native="false" synchronized="false"
  58567. static="false" final="false" visibility="protected"
  58568. deprecated="not deprecated">
  58569. <doc>
  58570. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  58571. </doc>
  58572. </method>
  58573. <doc>
  58574. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  58575. </doc>
  58576. </class>
  58577. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  58578. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  58579. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  58580. abstract="false"
  58581. static="false" final="false" visibility="protected"
  58582. deprecated="not deprecated">
  58583. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  58584. <constructor name="JoinRecordReader.JoinDelegationIterator"
  58585. static="false" final="false" visibility="protected"
  58586. deprecated="not deprecated">
  58587. </constructor>
  58588. <method name="hasNext" return="boolean"
  58589. abstract="false" native="false" synchronized="false"
  58590. static="false" final="false" visibility="public"
  58591. deprecated="not deprecated">
  58592. </method>
  58593. <method name="next" return="boolean"
  58594. abstract="false" native="false" synchronized="false"
  58595. static="false" final="false" visibility="public"
  58596. deprecated="not deprecated">
  58597. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58598. <exception name="IOException" type="java.io.IOException"/>
  58599. </method>
  58600. <method name="replay" return="boolean"
  58601. abstract="false" native="false" synchronized="false"
  58602. static="false" final="false" visibility="public"
  58603. deprecated="not deprecated">
  58604. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58605. <exception name="IOException" type="java.io.IOException"/>
  58606. </method>
  58607. <method name="reset"
  58608. abstract="false" native="false" synchronized="false"
  58609. static="false" final="false" visibility="public"
  58610. deprecated="not deprecated">
  58611. </method>
  58612. <method name="add"
  58613. abstract="false" native="false" synchronized="false"
  58614. static="false" final="false" visibility="public"
  58615. deprecated="not deprecated">
  58616. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58617. <exception name="IOException" type="java.io.IOException"/>
  58618. </method>
  58619. <method name="close"
  58620. abstract="false" native="false" synchronized="false"
  58621. static="false" final="false" visibility="public"
  58622. deprecated="not deprecated">
  58623. <exception name="IOException" type="java.io.IOException"/>
  58624. </method>
  58625. <method name="clear"
  58626. abstract="false" native="false" synchronized="false"
  58627. static="false" final="false" visibility="public"
  58628. deprecated="not deprecated">
  58629. </method>
  58630. <doc>
  58631. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  58632. provide an iterator proxy wrapping its operation.]]>
  58633. </doc>
  58634. </class>
  58635. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  58636. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  58637. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  58638. abstract="true"
  58639. static="false" final="false" visibility="public"
  58640. deprecated="not deprecated">
  58641. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  58642. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  58643. static="false" final="false" visibility="public"
  58644. deprecated="not deprecated">
  58645. <exception name="IOException" type="java.io.IOException"/>
  58646. </constructor>
  58647. <method name="emit" return="org.apache.hadoop.io.Writable"
  58648. abstract="true" native="false" synchronized="false"
  58649. static="false" final="false" visibility="protected"
  58650. deprecated="not deprecated">
  58651. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58652. <exception name="IOException" type="java.io.IOException"/>
  58653. <doc>
  58654. <![CDATA[For each tuple emitted, return a value (typically one of the values
  58655. in the tuple).
  58656. Modifying the Writables in the tuple is permitted and unlikely to affect
  58657. join behavior in most cases, but it is not recommended. It's safer to
  58658. clone first.]]>
  58659. </doc>
  58660. </method>
  58661. <method name="combine" return="boolean"
  58662. abstract="false" native="false" synchronized="false"
  58663. static="false" final="false" visibility="protected"
  58664. deprecated="not deprecated">
  58665. <param name="srcs" type="java.lang.Object[]"/>
  58666. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58667. <doc>
  58668. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  58669. collector (the outer join of child RRs).]]>
  58670. </doc>
  58671. </method>
  58672. <method name="next" return="boolean"
  58673. abstract="false" native="false" synchronized="false"
  58674. static="false" final="false" visibility="public"
  58675. deprecated="not deprecated">
  58676. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58677. <param name="value" type="org.apache.hadoop.io.Writable"/>
  58678. <exception name="IOException" type="java.io.IOException"/>
  58679. <doc>
  58680. <![CDATA[{@inheritDoc}]]>
  58681. </doc>
  58682. </method>
  58683. <method name="createValue" return="org.apache.hadoop.io.Writable"
  58684. abstract="false" native="false" synchronized="false"
  58685. static="false" final="false" visibility="public"
  58686. deprecated="not deprecated">
  58687. <doc>
  58688. <![CDATA[{@inheritDoc}]]>
  58689. </doc>
  58690. </method>
  58691. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  58692. abstract="false" native="false" synchronized="false"
  58693. static="false" final="false" visibility="protected"
  58694. deprecated="not deprecated">
  58695. <doc>
  58696. <![CDATA[Return an iterator returning a single value from the tuple.
  58697. @see MultiFilterDelegationIterator]]>
  58698. </doc>
  58699. </method>
  58700. <doc>
  58701. <![CDATA[Base class for Composite join returning values derived from multiple
  58702. sources, but generally not tuples.]]>
  58703. </doc>
  58704. </class>
  58705. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  58706. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  58707. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  58708. abstract="false"
  58709. static="false" final="false" visibility="protected"
  58710. deprecated="not deprecated">
  58711. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  58712. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  58713. static="false" final="false" visibility="protected"
  58714. deprecated="not deprecated">
  58715. </constructor>
  58716. <method name="hasNext" return="boolean"
  58717. abstract="false" native="false" synchronized="false"
  58718. static="false" final="false" visibility="public"
  58719. deprecated="not deprecated">
  58720. </method>
  58721. <method name="next" return="boolean"
  58722. abstract="false" native="false" synchronized="false"
  58723. static="false" final="false" visibility="public"
  58724. deprecated="not deprecated">
  58725. <param name="val" type="org.apache.hadoop.io.Writable"/>
  58726. <exception name="IOException" type="java.io.IOException"/>
  58727. </method>
  58728. <method name="replay" return="boolean"
  58729. abstract="false" native="false" synchronized="false"
  58730. static="false" final="false" visibility="public"
  58731. deprecated="not deprecated">
  58732. <param name="val" type="org.apache.hadoop.io.Writable"/>
  58733. <exception name="IOException" type="java.io.IOException"/>
  58734. </method>
  58735. <method name="reset"
  58736. abstract="false" native="false" synchronized="false"
  58737. static="false" final="false" visibility="public"
  58738. deprecated="not deprecated">
  58739. </method>
  58740. <method name="add"
  58741. abstract="false" native="false" synchronized="false"
  58742. static="false" final="false" visibility="public"
  58743. deprecated="not deprecated">
  58744. <param name="item" type="org.apache.hadoop.io.Writable"/>
  58745. <exception name="IOException" type="java.io.IOException"/>
  58746. </method>
  58747. <method name="close"
  58748. abstract="false" native="false" synchronized="false"
  58749. static="false" final="false" visibility="public"
  58750. deprecated="not deprecated">
  58751. <exception name="IOException" type="java.io.IOException"/>
  58752. </method>
  58753. <method name="clear"
  58754. abstract="false" native="false" synchronized="false"
  58755. static="false" final="false" visibility="public"
  58756. deprecated="not deprecated">
  58757. </method>
  58758. <doc>
  58759. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  58760. </doc>
  58761. </class>
  58762. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  58763. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  58764. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  58765. abstract="false"
  58766. static="false" final="false" visibility="public"
  58767. deprecated="not deprecated">
  58768. <method name="combine" return="boolean"
  58769. abstract="false" native="false" synchronized="false"
  58770. static="false" final="false" visibility="protected"
  58771. deprecated="not deprecated">
  58772. <param name="srcs" type="java.lang.Object[]"/>
  58773. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58774. <doc>
  58775. <![CDATA[Emit everything from the collector.]]>
  58776. </doc>
  58777. </method>
  58778. <doc>
  58779. <![CDATA[Full outer join.]]>
  58780. </doc>
  58781. </class>
  58782. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  58783. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  58784. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader"
  58785. abstract="false"
  58786. static="false" final="false" visibility="public"
  58787. deprecated="not deprecated">
  58788. <method name="emit" return="org.apache.hadoop.io.Writable"
  58789. abstract="false" native="false" synchronized="false"
  58790. static="false" final="false" visibility="protected"
  58791. deprecated="not deprecated">
  58792. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58793. <doc>
  58794. <![CDATA[Emit the value with the highest position in the tuple.]]>
  58795. </doc>
  58796. </method>
  58797. <method name="fillJoinCollector"
  58798. abstract="false" native="false" synchronized="false"
  58799. static="false" final="false" visibility="protected"
  58800. deprecated="not deprecated">
  58801. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  58802. <exception name="IOException" type="java.io.IOException"/>
  58803. <doc>
  58804. <![CDATA[Instead of filling the JoinCollector with iterators from all
  58805. data sources, fill only the rightmost for this key.
  58806. This not only saves space by discarding the other sources, but
  58807. it also emits the number of key-value pairs in the preferred
  58808. RecordReader instead of repeating that stream n times, where
  58809. n is the cardinality of the cross product of the discarded
  58810. streams for the given key.]]>
  58811. </doc>
  58812. </method>
  58813. <doc>
  58814. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  58815. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  58816. from S3 over S2, and values from S2 over S1 for all keys
  58817. emitted from all sources.]]>
  58818. </doc>
  58819. </class>
  58820. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  58821. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  58822. <class name="Parser" extends="java.lang.Object"
  58823. abstract="false"
  58824. static="false" final="false" visibility="public"
  58825. deprecated="not deprecated">
  58826. <constructor name="Parser"
  58827. static="false" final="false" visibility="public"
  58828. deprecated="not deprecated">
  58829. </constructor>
  58830. <doc>
  58831. <![CDATA[Very simple shift-reduce parser for join expressions.
  58832. This should be sufficient for the user extension permitted now, but ought to
  58833. be replaced with a parser generator if more complex grammars are supported.
  58834. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  58835. of formals requires a different internal node type, which is responsible for
  58836. interpreting the list of tokens it receives. This is sufficient for the
  58837. current grammar, but it has several annoying properties that might inhibit
  58838. extension. In particular, parenthesis are always function calls; an
  58839. algebraic or filter grammar would not only require a node type, but must
  58840. also work around the internals of this parser.
  58841. For most other cases, adding classes to the hierarchy- particularly by
  58842. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  58843. straightforward. One need only override the relevant method(s) (usually only
  58844. {@link CompositeRecordReader#combine}) and include a property to map its
  58845. value to an identifier in the parser.]]>
  58846. </doc>
  58847. </class>
  58848. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  58849. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  58850. <class name="Parser.Node" extends="java.lang.Object"
  58851. abstract="true"
  58852. static="true" final="false" visibility="public"
  58853. deprecated="not deprecated">
  58854. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  58855. <constructor name="Parser.Node" type="java.lang.String"
  58856. static="false" final="false" visibility="protected"
  58857. deprecated="not deprecated">
  58858. </constructor>
  58859. <method name="addIdentifier"
  58860. abstract="false" native="false" synchronized="false"
  58861. static="true" final="false" visibility="protected"
  58862. deprecated="not deprecated">
  58863. <param name="ident" type="java.lang.String"/>
  58864. <param name="mcstrSig" type="java.lang.Class[]"/>
  58865. <param name="nodetype" type="java.lang.Class"/>
  58866. <param name="cl" type="java.lang.Class"/>
  58867. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  58868. <doc>
  58869. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  58870. tree and to the ComposableRecordReader to be created, including the
  58871. formals required to invoke the constructor.
  58872. The nodetype and constructor signature should be filled in from the
  58873. child node.]]>
  58874. </doc>
  58875. </method>
  58876. <method name="setID"
  58877. abstract="false" native="false" synchronized="false"
  58878. static="false" final="false" visibility="protected"
  58879. deprecated="not deprecated">
  58880. <param name="id" type="int"/>
  58881. </method>
  58882. <method name="setKeyComparator"
  58883. abstract="false" native="false" synchronized="false"
  58884. static="false" final="false" visibility="protected"
  58885. deprecated="not deprecated">
  58886. <param name="cmpcl" type="java.lang.Class"/>
  58887. </method>
  58888. <field name="rrCstrMap" type="java.util.Map"
  58889. transient="false" volatile="false"
  58890. static="true" final="true" visibility="protected"
  58891. deprecated="not deprecated">
  58892. </field>
  58893. <field name="id" type="int"
  58894. transient="false" volatile="false"
  58895. static="false" final="false" visibility="protected"
  58896. deprecated="not deprecated">
  58897. </field>
  58898. <field name="ident" type="java.lang.String"
  58899. transient="false" volatile="false"
  58900. static="false" final="false" visibility="protected"
  58901. deprecated="not deprecated">
  58902. </field>
  58903. <field name="cmpcl" type="java.lang.Class"
  58904. transient="false" volatile="false"
  58905. static="false" final="false" visibility="protected"
  58906. deprecated="not deprecated">
  58907. </field>
  58908. </class>
  58909. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  58910. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  58911. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  58912. abstract="false"
  58913. static="true" final="false" visibility="public"
  58914. deprecated="not deprecated">
  58915. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  58916. abstract="false" native="false" synchronized="false"
  58917. static="false" final="false" visibility="public"
  58918. deprecated="not deprecated">
  58919. </method>
  58920. </class>
  58921. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  58922. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  58923. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  58924. abstract="false"
  58925. static="true" final="false" visibility="public"
  58926. deprecated="not deprecated">
  58927. <constructor name="Parser.NumToken" type="double"
  58928. static="false" final="false" visibility="public"
  58929. deprecated="not deprecated">
  58930. </constructor>
  58931. <method name="getNum" return="double"
  58932. abstract="false" native="false" synchronized="false"
  58933. static="false" final="false" visibility="public"
  58934. deprecated="not deprecated">
  58935. </method>
  58936. </class>
  58937. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  58938. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  58939. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  58940. abstract="false"
  58941. static="true" final="false" visibility="public"
  58942. deprecated="not deprecated">
  58943. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  58944. static="false" final="false" visibility="public"
  58945. deprecated="not deprecated">
  58946. </constructor>
  58947. <method name="getStr" return="java.lang.String"
  58948. abstract="false" native="false" synchronized="false"
  58949. static="false" final="false" visibility="public"
  58950. deprecated="not deprecated">
  58951. </method>
  58952. </class>
  58953. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  58954. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  58955. <class name="Parser.Token" extends="java.lang.Object"
  58956. abstract="false"
  58957. static="true" final="false" visibility="public"
  58958. deprecated="not deprecated">
  58959. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  58960. abstract="false" native="false" synchronized="false"
  58961. static="false" final="false" visibility="public"
  58962. deprecated="not deprecated">
  58963. </method>
  58964. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  58965. abstract="false" native="false" synchronized="false"
  58966. static="false" final="false" visibility="public"
  58967. deprecated="not deprecated">
  58968. <exception name="IOException" type="java.io.IOException"/>
  58969. </method>
  58970. <method name="getNum" return="double"
  58971. abstract="false" native="false" synchronized="false"
  58972. static="false" final="false" visibility="public"
  58973. deprecated="not deprecated">
  58974. <exception name="IOException" type="java.io.IOException"/>
  58975. </method>
  58976. <method name="getStr" return="java.lang.String"
  58977. abstract="false" native="false" synchronized="false"
  58978. static="false" final="false" visibility="public"
  58979. deprecated="not deprecated">
  58980. <exception name="IOException" type="java.io.IOException"/>
  58981. </method>
  58982. <doc>
  58983. <![CDATA[Tagged-union type for tokens from the join expression.
  58984. @see Parser.TType]]>
  58985. </doc>
  58986. </class>
  58987. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  58988. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  58989. <class name="Parser.TType" extends="java.lang.Enum"
  58990. abstract="false"
  58991. static="true" final="true" visibility="public"
  58992. deprecated="not deprecated">
  58993. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  58994. abstract="false" native="false" synchronized="false"
  58995. static="true" final="false" visibility="public"
  58996. deprecated="not deprecated">
  58997. </method>
  58998. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  58999. abstract="false" native="false" synchronized="false"
  59000. static="true" final="false" visibility="public"
  59001. deprecated="not deprecated">
  59002. <param name="name" type="java.lang.String"/>
  59003. </method>
  59004. <field name="CIF" type="org.apache.hadoop.mapred.join.Parser.TType"
  59005. transient="false" volatile="false"
  59006. static="true" final="true" visibility="public"
  59007. deprecated="not deprecated">
  59008. </field>
  59009. <field name="IDENT" type="org.apache.hadoop.mapred.join.Parser.TType"
  59010. transient="false" volatile="false"
  59011. static="true" final="true" visibility="public"
  59012. deprecated="not deprecated">
  59013. </field>
  59014. <field name="COMMA" type="org.apache.hadoop.mapred.join.Parser.TType"
  59015. transient="false" volatile="false"
  59016. static="true" final="true" visibility="public"
  59017. deprecated="not deprecated">
  59018. </field>
  59019. <field name="LPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  59020. transient="false" volatile="false"
  59021. static="true" final="true" visibility="public"
  59022. deprecated="not deprecated">
  59023. </field>
  59024. <field name="RPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  59025. transient="false" volatile="false"
  59026. static="true" final="true" visibility="public"
  59027. deprecated="not deprecated">
  59028. </field>
  59029. <field name="QUOT" type="org.apache.hadoop.mapred.join.Parser.TType"
  59030. transient="false" volatile="false"
  59031. static="true" final="true" visibility="public"
  59032. deprecated="not deprecated">
  59033. </field>
  59034. <field name="NUM" type="org.apache.hadoop.mapred.join.Parser.TType"
  59035. transient="false" volatile="false"
  59036. static="true" final="true" visibility="public"
  59037. deprecated="not deprecated">
  59038. </field>
  59039. </class>
  59040. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  59041. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  59042. <interface name="ResetableIterator" abstract="true"
  59043. static="false" final="false" visibility="public"
  59044. deprecated="not deprecated">
  59045. <method name="hasNext" return="boolean"
  59046. abstract="false" native="false" synchronized="false"
  59047. static="false" final="false" visibility="public"
  59048. deprecated="not deprecated">
  59049. <doc>
  59050. <![CDATA[True if a call to next may return a value. This is permitted false
  59051. positives, but not false negatives.]]>
  59052. </doc>
  59053. </method>
  59054. <method name="next" return="boolean"
  59055. abstract="false" native="false" synchronized="false"
  59056. static="false" final="false" visibility="public"
  59057. deprecated="not deprecated">
  59058. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59059. <exception name="IOException" type="java.io.IOException"/>
  59060. <doc>
  59061. <![CDATA[Assign next value to actual.
  59062. It is required that elements added to a ResetableIterator be returned in
  59063. the same order after a call to {@link #reset} (FIFO).
  59064. Note that a call to this may fail for nested joins (i.e. more elements
  59065. available, but none satisfying the constraints of the join)]]>
  59066. </doc>
  59067. </method>
  59068. <method name="replay" return="boolean"
  59069. abstract="false" native="false" synchronized="false"
  59070. static="false" final="false" visibility="public"
  59071. deprecated="not deprecated">
  59072. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59073. <exception name="IOException" type="java.io.IOException"/>
  59074. <doc>
  59075. <![CDATA[Assign last value returned to actual.]]>
  59076. </doc>
  59077. </method>
  59078. <method name="reset"
  59079. abstract="false" native="false" synchronized="false"
  59080. static="false" final="false" visibility="public"
  59081. deprecated="not deprecated">
  59082. <doc>
  59083. <![CDATA[Set iterator to return to the start of its range. Must be called after
  59084. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  59085. </doc>
  59086. </method>
  59087. <method name="add"
  59088. abstract="false" native="false" synchronized="false"
  59089. static="false" final="false" visibility="public"
  59090. deprecated="not deprecated">
  59091. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59092. <exception name="IOException" type="java.io.IOException"/>
  59093. <doc>
  59094. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  59095. </doc>
  59096. </method>
  59097. <method name="close"
  59098. abstract="false" native="false" synchronized="false"
  59099. static="false" final="false" visibility="public"
  59100. deprecated="not deprecated">
  59101. <exception name="IOException" type="java.io.IOException"/>
  59102. <doc>
  59103. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  59104. after calling close has undefined behavior.]]>
  59105. </doc>
  59106. </method>
  59107. <method name="clear"
  59108. abstract="false" native="false" synchronized="false"
  59109. static="false" final="false" visibility="public"
  59110. deprecated="not deprecated">
  59111. <doc>
  59112. <![CDATA[Close datasources, but do not release internal resources. Calling this
  59113. method should permit the object to be reused with a different datasource.]]>
  59114. </doc>
  59115. </method>
  59116. <doc>
  59117. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  59118. added to it directly.
  59119. Note that this does not extend {@link java.util.Iterator}.]]>
  59120. </doc>
  59121. </interface>
  59122. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  59123. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  59124. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  59125. abstract="false"
  59126. static="true" final="false" visibility="public"
  59127. deprecated="not deprecated">
  59128. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  59129. <constructor name="ResetableIterator.EMPTY"
  59130. static="false" final="false" visibility="public"
  59131. deprecated="not deprecated">
  59132. </constructor>
  59133. <method name="hasNext" return="boolean"
  59134. abstract="false" native="false" synchronized="false"
  59135. static="false" final="false" visibility="public"
  59136. deprecated="not deprecated">
  59137. </method>
  59138. <method name="reset"
  59139. abstract="false" native="false" synchronized="false"
  59140. static="false" final="false" visibility="public"
  59141. deprecated="not deprecated">
  59142. </method>
  59143. <method name="close"
  59144. abstract="false" native="false" synchronized="false"
  59145. static="false" final="false" visibility="public"
  59146. deprecated="not deprecated">
  59147. <exception name="IOException" type="java.io.IOException"/>
  59148. </method>
  59149. <method name="clear"
  59150. abstract="false" native="false" synchronized="false"
  59151. static="false" final="false" visibility="public"
  59152. deprecated="not deprecated">
  59153. </method>
  59154. <method name="next" return="boolean"
  59155. abstract="false" native="false" synchronized="false"
  59156. static="false" final="false" visibility="public"
  59157. deprecated="not deprecated">
  59158. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59159. <exception name="IOException" type="java.io.IOException"/>
  59160. </method>
  59161. <method name="replay" return="boolean"
  59162. abstract="false" native="false" synchronized="false"
  59163. static="false" final="false" visibility="public"
  59164. deprecated="not deprecated">
  59165. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59166. <exception name="IOException" type="java.io.IOException"/>
  59167. </method>
  59168. <method name="add"
  59169. abstract="false" native="false" synchronized="false"
  59170. static="false" final="false" visibility="public"
  59171. deprecated="not deprecated">
  59172. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59173. <exception name="IOException" type="java.io.IOException"/>
  59174. </method>
  59175. </class>
  59176. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  59177. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  59178. <class name="StreamBackedIterator" extends="java.lang.Object"
  59179. abstract="false"
  59180. static="false" final="false" visibility="public"
  59181. deprecated="not deprecated">
  59182. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  59183. <constructor name="StreamBackedIterator"
  59184. static="false" final="false" visibility="public"
  59185. deprecated="not deprecated">
  59186. </constructor>
  59187. <method name="hasNext" return="boolean"
  59188. abstract="false" native="false" synchronized="false"
  59189. static="false" final="false" visibility="public"
  59190. deprecated="not deprecated">
  59191. </method>
  59192. <method name="next" return="boolean"
  59193. abstract="false" native="false" synchronized="false"
  59194. static="false" final="false" visibility="public"
  59195. deprecated="not deprecated">
  59196. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59197. <exception name="IOException" type="java.io.IOException"/>
  59198. </method>
  59199. <method name="replay" return="boolean"
  59200. abstract="false" native="false" synchronized="false"
  59201. static="false" final="false" visibility="public"
  59202. deprecated="not deprecated">
  59203. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59204. <exception name="IOException" type="java.io.IOException"/>
  59205. </method>
  59206. <method name="reset"
  59207. abstract="false" native="false" synchronized="false"
  59208. static="false" final="false" visibility="public"
  59209. deprecated="not deprecated">
  59210. </method>
  59211. <method name="add"
  59212. abstract="false" native="false" synchronized="false"
  59213. static="false" final="false" visibility="public"
  59214. deprecated="not deprecated">
  59215. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59216. <exception name="IOException" type="java.io.IOException"/>
  59217. </method>
  59218. <method name="close"
  59219. abstract="false" native="false" synchronized="false"
  59220. static="false" final="false" visibility="public"
  59221. deprecated="not deprecated">
  59222. <exception name="IOException" type="java.io.IOException"/>
  59223. </method>
  59224. <method name="clear"
  59225. abstract="false" native="false" synchronized="false"
  59226. static="false" final="false" visibility="public"
  59227. deprecated="not deprecated">
  59228. </method>
  59229. <doc>
  59230. <![CDATA[This class provides an implementation of ResetableIterator. This
  59231. implementation uses a byte array to store elements added to it.]]>
  59232. </doc>
  59233. </class>
  59234. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  59235. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  59236. <class name="TupleWritable" extends="java.lang.Object"
  59237. abstract="false"
  59238. static="false" final="false" visibility="public"
  59239. deprecated="not deprecated">
  59240. <implements name="org.apache.hadoop.io.Writable"/>
  59241. <implements name="java.lang.Iterable"/>
  59242. <constructor name="TupleWritable"
  59243. static="false" final="false" visibility="public"
  59244. deprecated="not deprecated">
  59245. <doc>
  59246. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  59247. </doc>
  59248. </constructor>
  59249. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  59250. static="false" final="false" visibility="public"
  59251. deprecated="not deprecated">
  59252. <doc>
  59253. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  59254. &quot;written&quot; values.]]>
  59255. </doc>
  59256. </constructor>
  59257. <method name="has" return="boolean"
  59258. abstract="false" native="false" synchronized="false"
  59259. static="false" final="false" visibility="public"
  59260. deprecated="not deprecated">
  59261. <param name="i" type="int"/>
  59262. <doc>
  59263. <![CDATA[Return true if tuple has an element at the position provided.]]>
  59264. </doc>
  59265. </method>
  59266. <method name="get" return="org.apache.hadoop.io.Writable"
  59267. abstract="false" native="false" synchronized="false"
  59268. static="false" final="false" visibility="public"
  59269. deprecated="not deprecated">
  59270. <param name="i" type="int"/>
  59271. <doc>
  59272. <![CDATA[Get ith Writable from Tuple.]]>
  59273. </doc>
  59274. </method>
  59275. <method name="size" return="int"
  59276. abstract="false" native="false" synchronized="false"
  59277. static="false" final="false" visibility="public"
  59278. deprecated="not deprecated">
  59279. <doc>
  59280. <![CDATA[The number of children in this Tuple.]]>
  59281. </doc>
  59282. </method>
  59283. <method name="equals" return="boolean"
  59284. abstract="false" native="false" synchronized="false"
  59285. static="false" final="false" visibility="public"
  59286. deprecated="not deprecated">
  59287. <param name="other" type="java.lang.Object"/>
  59288. <doc>
  59289. <![CDATA[{@inheritDoc}]]>
  59290. </doc>
  59291. </method>
  59292. <method name="hashCode" return="int"
  59293. abstract="false" native="false" synchronized="false"
  59294. static="false" final="false" visibility="public"
  59295. deprecated="not deprecated">
  59296. </method>
  59297. <method name="iterator" return="java.util.Iterator"
  59298. abstract="false" native="false" synchronized="false"
  59299. static="false" final="false" visibility="public"
  59300. deprecated="not deprecated">
  59301. <doc>
  59302. <![CDATA[Return an iterator over the elements in this tuple.
  59303. Note that this doesn't flatten the tuple; one may receive tuples
  59304. from this iterator.]]>
  59305. </doc>
  59306. </method>
  59307. <method name="toString" return="java.lang.String"
  59308. abstract="false" native="false" synchronized="false"
  59309. static="false" final="false" visibility="public"
  59310. deprecated="not deprecated">
  59311. <doc>
  59312. <![CDATA[Convert Tuple to String as in the following.
  59313. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  59314. </doc>
  59315. </method>
  59316. <method name="write"
  59317. abstract="false" native="false" synchronized="false"
  59318. static="false" final="false" visibility="public"
  59319. deprecated="not deprecated">
  59320. <param name="out" type="java.io.DataOutput"/>
  59321. <exception name="IOException" type="java.io.IOException"/>
  59322. <doc>
  59323. <![CDATA[Writes each Writable to <code>out</code>.
  59324. TupleWritable format:
  59325. {@code
  59326. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  59327. }]]>
  59328. </doc>
  59329. </method>
  59330. <method name="readFields"
  59331. abstract="false" native="false" synchronized="false"
  59332. static="false" final="false" visibility="public"
  59333. deprecated="not deprecated">
  59334. <param name="in" type="java.io.DataInput"/>
  59335. <exception name="IOException" type="java.io.IOException"/>
  59336. <doc>
  59337. <![CDATA[{@inheritDoc}]]>
  59338. </doc>
  59339. </method>
  59340. <doc>
  59341. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.
  59342. This is *not* a general-purpose tuple type. In almost all cases, users are
  59343. encouraged to implement their own serializable types, which can perform
  59344. better validation and provide more efficient encodings than this class is
  59345. capable. TupleWritable relies on the join framework for type safety and
  59346. assumes its instances will rarely be persisted, assumptions not only
  59347. incompatible with, but contrary to the general case.
  59348. @see org.apache.hadoop.io.Writable]]>
  59349. </doc>
  59350. </class>
  59351. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  59352. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  59353. <class name="WrappedRecordReader" extends="java.lang.Object"
  59354. abstract="false"
  59355. static="false" final="false" visibility="public"
  59356. deprecated="not deprecated">
  59357. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  59358. <method name="id" return="int"
  59359. abstract="false" native="false" synchronized="false"
  59360. static="false" final="false" visibility="public"
  59361. deprecated="not deprecated">
  59362. <doc>
  59363. <![CDATA[{@inheritDoc}]]>
  59364. </doc>
  59365. </method>
  59366. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  59367. abstract="false" native="false" synchronized="false"
  59368. static="false" final="false" visibility="public"
  59369. deprecated="not deprecated">
  59370. <doc>
  59371. <![CDATA[Return the key at the head of this RR.]]>
  59372. </doc>
  59373. </method>
  59374. <method name="key"
  59375. abstract="false" native="false" synchronized="false"
  59376. static="false" final="false" visibility="public"
  59377. deprecated="not deprecated">
  59378. <param name="qkey" type="org.apache.hadoop.io.WritableComparable"/>
  59379. <exception name="IOException" type="java.io.IOException"/>
  59380. <doc>
  59381. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  59382. </doc>
  59383. </method>
  59384. <method name="hasNext" return="boolean"
  59385. abstract="false" native="false" synchronized="false"
  59386. static="false" final="false" visibility="public"
  59387. deprecated="not deprecated">
  59388. <doc>
  59389. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  59390. is exhausted.]]>
  59391. </doc>
  59392. </method>
  59393. <method name="skip"
  59394. abstract="false" native="false" synchronized="false"
  59395. static="false" final="false" visibility="public"
  59396. deprecated="not deprecated">
  59397. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59398. <exception name="IOException" type="java.io.IOException"/>
  59399. <doc>
  59400. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  59401. </doc>
  59402. </method>
  59403. <method name="next" return="boolean"
  59404. abstract="false" native="false" synchronized="false"
  59405. static="false" final="false" visibility="protected"
  59406. deprecated="not deprecated">
  59407. <exception name="IOException" type="java.io.IOException"/>
  59408. <doc>
  59409. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  59410. the RR and this are exhausted.]]>
  59411. </doc>
  59412. </method>
  59413. <method name="accept"
  59414. abstract="false" native="false" synchronized="false"
  59415. static="false" final="false" visibility="public"
  59416. deprecated="not deprecated">
  59417. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  59418. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59419. <exception name="IOException" type="java.io.IOException"/>
  59420. <doc>
  59421. <![CDATA[Add an iterator to the collector at the position occupied by this
  59422. RecordReader over the values in this stream paired with the key
  59423. provided (ie register a stream of values from this source matching K
  59424. with a collector).]]>
  59425. </doc>
  59426. </method>
  59427. <method name="next" return="boolean"
  59428. abstract="false" native="false" synchronized="false"
  59429. static="false" final="false" visibility="public"
  59430. deprecated="not deprecated">
  59431. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59432. <param name="value" type="org.apache.hadoop.io.Writable"/>
  59433. <exception name="IOException" type="java.io.IOException"/>
  59434. <doc>
  59435. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  59436. get next key-value pair from proxied RR.]]>
  59437. </doc>
  59438. </method>
  59439. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  59440. abstract="false" native="false" synchronized="false"
  59441. static="false" final="false" visibility="public"
  59442. deprecated="not deprecated">
  59443. <doc>
  59444. <![CDATA[Request new key from proxied RR.]]>
  59445. </doc>
  59446. </method>
  59447. <method name="createValue" return="org.apache.hadoop.io.Writable"
  59448. abstract="false" native="false" synchronized="false"
  59449. static="false" final="false" visibility="public"
  59450. deprecated="not deprecated">
  59451. <doc>
  59452. <![CDATA[Request new value from proxied RR.]]>
  59453. </doc>
  59454. </method>
  59455. <method name="getProgress" return="float"
  59456. abstract="false" native="false" synchronized="false"
  59457. static="false" final="false" visibility="public"
  59458. deprecated="not deprecated">
  59459. <exception name="IOException" type="java.io.IOException"/>
  59460. <doc>
  59461. <![CDATA[Request progress from proxied RR.]]>
  59462. </doc>
  59463. </method>
  59464. <method name="getPos" return="long"
  59465. abstract="false" native="false" synchronized="false"
  59466. static="false" final="false" visibility="public"
  59467. deprecated="not deprecated">
  59468. <exception name="IOException" type="java.io.IOException"/>
  59469. <doc>
  59470. <![CDATA[Request position from proxied RR.]]>
  59471. </doc>
  59472. </method>
  59473. <method name="close"
  59474. abstract="false" native="false" synchronized="false"
  59475. static="false" final="false" visibility="public"
  59476. deprecated="not deprecated">
  59477. <exception name="IOException" type="java.io.IOException"/>
  59478. <doc>
  59479. <![CDATA[Forward close request to proxied RR.]]>
  59480. </doc>
  59481. </method>
  59482. <method name="compareTo" return="int"
  59483. abstract="false" native="false" synchronized="false"
  59484. static="false" final="false" visibility="public"
  59485. deprecated="not deprecated">
  59486. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  59487. <doc>
  59488. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  59489. with that of another).]]>
  59490. </doc>
  59491. </method>
  59492. <method name="equals" return="boolean"
  59493. abstract="false" native="false" synchronized="false"
  59494. static="false" final="false" visibility="public"
  59495. deprecated="not deprecated">
  59496. <param name="other" type="java.lang.Object"/>
  59497. <doc>
  59498. <![CDATA[Return true iff compareTo(other) retn true.]]>
  59499. </doc>
  59500. </method>
  59501. <method name="hashCode" return="int"
  59502. abstract="false" native="false" synchronized="false"
  59503. static="false" final="false" visibility="public"
  59504. deprecated="not deprecated">
  59505. </method>
  59506. <doc>
  59507. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  59508. This class keeps track of the &quot;head&quot; key-value pair for the
  59509. provided RecordReader and keeps a store of values matching a key when
  59510. this source is participating in a join.]]>
  59511. </doc>
  59512. </class>
  59513. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  59514. </package>
  59515. <package name="org.apache.hadoop.mapred.lib">
  59516. <!-- start class org.apache.hadoop.mapred.lib.ChainMapper -->
  59517. <class name="ChainMapper" extends="java.lang.Object"
  59518. abstract="false"
  59519. static="false" final="false" visibility="public"
  59520. deprecated="not deprecated">
  59521. <implements name="org.apache.hadoop.mapred.Mapper"/>
  59522. <constructor name="ChainMapper"
  59523. static="false" final="false" visibility="public"
  59524. deprecated="not deprecated">
  59525. <doc>
  59526. <![CDATA[Constructor.]]>
  59527. </doc>
  59528. </constructor>
  59529. <method name="addMapper"
  59530. abstract="false" native="false" synchronized="false"
  59531. static="true" final="false" visibility="public"
  59532. deprecated="not deprecated">
  59533. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59534. <param name="klass" type="java.lang.Class"/>
  59535. <param name="inputKeyClass" type="java.lang.Class"/>
  59536. <param name="inputValueClass" type="java.lang.Class"/>
  59537. <param name="outputKeyClass" type="java.lang.Class"/>
  59538. <param name="outputValueClass" type="java.lang.Class"/>
  59539. <param name="byValue" type="boolean"/>
  59540. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  59541. <doc>
  59542. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  59543. <p/>
  59544. It has to be specified how key and values are passed from one element of
  59545. the chain to the next, by value or by reference. If a Mapper leverages the
  59546. assumed semantics that the key and values are not modified by the collector
  59547. 'by value' must be used. If the Mapper does not expect this semantics, as
  59548. an optimization to avoid serialization and deserialization 'by reference'
  59549. can be used.
  59550. <p/>
  59551. For the added Mapper the configuration given for it,
  59552. <code>mapperConf</code>, have precedence over the job's JobConf. This
  59553. precedence is in effect when the task is running.
  59554. <p/>
  59555. IMPORTANT: There is no need to specify the output key/value classes for the
  59556. ChainMapper, this is done by the addMapper for the last mapper in the chain
  59557. <p/>
  59558. @param job job's JobConf to add the Mapper class.
  59559. @param klass the Mapper class to add.
  59560. @param inputKeyClass mapper input key class.
  59561. @param inputValueClass mapper input value class.
  59562. @param outputKeyClass mapper output key class.
  59563. @param outputValueClass mapper output value class.
  59564. @param byValue indicates if key/values should be passed by value
  59565. to the next Mapper in the chain, if any.
  59566. @param mapperConf a JobConf with the configuration for the Mapper
  59567. class. It is recommended to use a JobConf without default values using the
  59568. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  59569. </doc>
  59570. </method>
  59571. <method name="configure"
  59572. abstract="false" native="false" synchronized="false"
  59573. static="false" final="false" visibility="public"
  59574. deprecated="not deprecated">
  59575. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59576. <doc>
  59577. <![CDATA[Configures the ChainMapper and all the Mappers in the chain.
  59578. <p/>
  59579. If this method is overriden <code>super.configure(...)</code> should be
  59580. invoked at the beginning of the overwriter method.]]>
  59581. </doc>
  59582. </method>
  59583. <method name="map"
  59584. abstract="false" native="false" synchronized="false"
  59585. static="false" final="false" visibility="public"
  59586. deprecated="not deprecated">
  59587. <param name="key" type="java.lang.Object"/>
  59588. <param name="value" type="java.lang.Object"/>
  59589. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  59590. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59591. <exception name="IOException" type="java.io.IOException"/>
  59592. <doc>
  59593. <![CDATA[Chains the <code>map(...)</code> methods of the Mappers in the chain.]]>
  59594. </doc>
  59595. </method>
  59596. <method name="close"
  59597. abstract="false" native="false" synchronized="false"
  59598. static="false" final="false" visibility="public"
  59599. deprecated="not deprecated">
  59600. <exception name="IOException" type="java.io.IOException"/>
  59601. <doc>
  59602. <![CDATA[Closes the ChainMapper and all the Mappers in the chain.
  59603. <p/>
  59604. If this method is overriden <code>super.close()</code> should be
  59605. invoked at the end of the overwriter method.]]>
  59606. </doc>
  59607. </method>
  59608. <doc>
  59609. <![CDATA[The ChainMapper class allows to use multiple Mapper classes within a single
  59610. Map task.
  59611. <p/>
  59612. The Mapper classes are invoked in a chained (or piped) fashion, the output of
  59613. the first becomes the input of the second, and so on until the last Mapper,
  59614. the output of the last Mapper will be written to the task's output.
  59615. <p/>
  59616. The key functionality of this feature is that the Mappers in the chain do not
  59617. need to be aware that they are executed in a chain. This enables having
  59618. reusable specialized Mappers that can be combined to perform composite
  59619. operations within a single task.
  59620. <p/>
  59621. Special care has to be taken when creating chains that the key/values output
  59622. by a Mapper are valid for the following Mapper in the chain. It is assumed
  59623. all Mappers and the Reduce in the chain use maching output and input key and
  59624. value classes as no conversion is done by the chaining code.
  59625. <p/>
  59626. Using the ChainMapper and the ChainReducer classes is possible to compose
  59627. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  59628. immediate benefit of this pattern is a dramatic reduction in disk IO.
  59629. <p/>
  59630. IMPORTANT: There is no need to specify the output key/value classes for the
  59631. ChainMapper, this is done by the addMapper for the last mapper in the chain.
  59632. <p/>
  59633. ChainMapper usage pattern:
  59634. <p/>
  59635. <pre>
  59636. ...
  59637. conf.setJobName("chain");
  59638. conf.setInputFormat(TextInputFormat.class);
  59639. conf.setOutputFormat(TextOutputFormat.class);
  59640. <p/>
  59641. JobConf mapAConf = new JobConf(false);
  59642. ...
  59643. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  59644. Text.class, Text.class, true, mapAConf);
  59645. <p/>
  59646. JobConf mapBConf = new JobConf(false);
  59647. ...
  59648. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  59649. LongWritable.class, Text.class, false, mapBConf);
  59650. <p/>
  59651. JobConf reduceConf = new JobConf(false);
  59652. ...
  59653. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  59654. Text.class, Text.class, true, reduceConf);
  59655. <p/>
  59656. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  59657. LongWritable.class, Text.class, false, null);
  59658. <p/>
  59659. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  59660. LongWritable.class, LongWritable.class, true, null);
  59661. <p/>
  59662. FileInputFormat.setInputPaths(conf, inDir);
  59663. FileOutputFormat.setOutputPath(conf, outDir);
  59664. ...
  59665. <p/>
  59666. JobClient jc = new JobClient(conf);
  59667. RunningJob job = jc.submitJob(conf);
  59668. ...
  59669. </pre>]]>
  59670. </doc>
  59671. </class>
  59672. <!-- end class org.apache.hadoop.mapred.lib.ChainMapper -->
  59673. <!-- start class org.apache.hadoop.mapred.lib.ChainReducer -->
  59674. <class name="ChainReducer" extends="java.lang.Object"
  59675. abstract="false"
  59676. static="false" final="false" visibility="public"
  59677. deprecated="not deprecated">
  59678. <implements name="org.apache.hadoop.mapred.Reducer"/>
  59679. <constructor name="ChainReducer"
  59680. static="false" final="false" visibility="public"
  59681. deprecated="not deprecated">
  59682. <doc>
  59683. <![CDATA[Constructor.]]>
  59684. </doc>
  59685. </constructor>
  59686. <method name="setReducer"
  59687. abstract="false" native="false" synchronized="false"
  59688. static="true" final="false" visibility="public"
  59689. deprecated="not deprecated">
  59690. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59691. <param name="klass" type="java.lang.Class"/>
  59692. <param name="inputKeyClass" type="java.lang.Class"/>
  59693. <param name="inputValueClass" type="java.lang.Class"/>
  59694. <param name="outputKeyClass" type="java.lang.Class"/>
  59695. <param name="outputValueClass" type="java.lang.Class"/>
  59696. <param name="byValue" type="boolean"/>
  59697. <param name="reducerConf" type="org.apache.hadoop.mapred.JobConf"/>
  59698. <doc>
  59699. <![CDATA[Sets the Reducer class to the chain job's JobConf.
  59700. <p/>
  59701. It has to be specified how key and values are passed from one element of
  59702. the chain to the next, by value or by reference. If a Reducer leverages the
  59703. assumed semantics that the key and values are not modified by the collector
  59704. 'by value' must be used. If the Reducer does not expect this semantics, as
  59705. an optimization to avoid serialization and deserialization 'by reference'
  59706. can be used.
  59707. <p/>
  59708. For the added Reducer the configuration given for it,
  59709. <code>reducerConf</code>, have precedence over the job's JobConf. This
  59710. precedence is in effect when the task is running.
  59711. <p/>
  59712. IMPORTANT: There is no need to specify the output key/value classes for the
  59713. ChainReducer, this is done by the setReducer or the addMapper for the last
  59714. element in the chain.
  59715. @param job job's JobConf to add the Reducer class.
  59716. @param klass the Reducer class to add.
  59717. @param inputKeyClass reducer input key class.
  59718. @param inputValueClass reducer input value class.
  59719. @param outputKeyClass reducer output key class.
  59720. @param outputValueClass reducer output value class.
  59721. @param byValue indicates if key/values should be passed by value
  59722. to the next Mapper in the chain, if any.
  59723. @param reducerConf a JobConf with the configuration for the Reducer
  59724. class. It is recommended to use a JobConf without default values using the
  59725. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  59726. </doc>
  59727. </method>
  59728. <method name="addMapper"
  59729. abstract="false" native="false" synchronized="false"
  59730. static="true" final="false" visibility="public"
  59731. deprecated="not deprecated">
  59732. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59733. <param name="klass" type="java.lang.Class"/>
  59734. <param name="inputKeyClass" type="java.lang.Class"/>
  59735. <param name="inputValueClass" type="java.lang.Class"/>
  59736. <param name="outputKeyClass" type="java.lang.Class"/>
  59737. <param name="outputValueClass" type="java.lang.Class"/>
  59738. <param name="byValue" type="boolean"/>
  59739. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  59740. <doc>
  59741. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  59742. <p/>
  59743. It has to be specified how key and values are passed from one element of
  59744. the chain to the next, by value or by reference. If a Mapper leverages the
  59745. assumed semantics that the key and values are not modified by the collector
  59746. 'by value' must be used. If the Mapper does not expect this semantics, as
  59747. an optimization to avoid serialization and deserialization 'by reference'
  59748. can be used.
  59749. <p/>
  59750. For the added Mapper the configuration given for it,
  59751. <code>mapperConf</code>, have precedence over the job's JobConf. This
  59752. precedence is in effect when the task is running.
  59753. <p/>
  59754. IMPORTANT: There is no need to specify the output key/value classes for the
  59755. ChainMapper, this is done by the addMapper for the last mapper in the chain
  59756. .
  59757. @param job chain job's JobConf to add the Mapper class.
  59758. @param klass the Mapper class to add.
  59759. @param inputKeyClass mapper input key class.
  59760. @param inputValueClass mapper input value class.
  59761. @param outputKeyClass mapper output key class.
  59762. @param outputValueClass mapper output value class.
  59763. @param byValue indicates if key/values should be passed by value
  59764. to the next Mapper in the chain, if any.
  59765. @param mapperConf a JobConf with the configuration for the Mapper
  59766. class. It is recommended to use a JobConf without default values using the
  59767. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  59768. </doc>
  59769. </method>
  59770. <method name="configure"
  59771. abstract="false" native="false" synchronized="false"
  59772. static="false" final="false" visibility="public"
  59773. deprecated="not deprecated">
  59774. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59775. <doc>
  59776. <![CDATA[Configures the ChainReducer, the Reducer and all the Mappers in the chain.
  59777. <p/>
  59778. If this method is overriden <code>super.configure(...)</code> should be
  59779. invoked at the beginning of the overwriter method.]]>
  59780. </doc>
  59781. </method>
  59782. <method name="reduce"
  59783. abstract="false" native="false" synchronized="false"
  59784. static="false" final="false" visibility="public"
  59785. deprecated="not deprecated">
  59786. <param name="key" type="java.lang.Object"/>
  59787. <param name="values" type="java.util.Iterator"/>
  59788. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  59789. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59790. <exception name="IOException" type="java.io.IOException"/>
  59791. <doc>
  59792. <![CDATA[Chains the <code>reduce(...)</code> method of the Reducer with the
  59793. <code>map(...) </code> methods of the Mappers in the chain.]]>
  59794. </doc>
  59795. </method>
  59796. <method name="close"
  59797. abstract="false" native="false" synchronized="false"
  59798. static="false" final="false" visibility="public"
  59799. deprecated="not deprecated">
  59800. <exception name="IOException" type="java.io.IOException"/>
  59801. <doc>
  59802. <![CDATA[Closes the ChainReducer, the Reducer and all the Mappers in the chain.
  59803. <p/>
  59804. If this method is overriden <code>super.close()</code> should be
  59805. invoked at the end of the overwriter method.]]>
  59806. </doc>
  59807. </method>
  59808. <doc>
  59809. <![CDATA[The ChainReducer class allows to chain multiple Mapper classes after a
  59810. Reducer within the Reducer task.
  59811. <p/>
  59812. For each record output by the Reducer, the Mapper classes are invoked in a
  59813. chained (or piped) fashion, the output of the first becomes the input of the
  59814. second, and so on until the last Mapper, the output of the last Mapper will
  59815. be written to the task's output.
  59816. <p/>
  59817. The key functionality of this feature is that the Mappers in the chain do not
  59818. need to be aware that they are executed after the Reducer or in a chain.
  59819. This enables having reusable specialized Mappers that can be combined to
  59820. perform composite operations within a single task.
  59821. <p/>
  59822. Special care has to be taken when creating chains that the key/values output
  59823. by a Mapper are valid for the following Mapper in the chain. It is assumed
  59824. all Mappers and the Reduce in the chain use maching output and input key and
  59825. value classes as no conversion is done by the chaining code.
  59826. <p/>
  59827. Using the ChainMapper and the ChainReducer classes is possible to compose
  59828. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  59829. immediate benefit of this pattern is a dramatic reduction in disk IO.
  59830. <p/>
  59831. IMPORTANT: There is no need to specify the output key/value classes for the
  59832. ChainReducer, this is done by the setReducer or the addMapper for the last
  59833. element in the chain.
  59834. <p/>
  59835. ChainReducer usage pattern:
  59836. <p/>
  59837. <pre>
  59838. ...
  59839. conf.setJobName("chain");
  59840. conf.setInputFormat(TextInputFormat.class);
  59841. conf.setOutputFormat(TextOutputFormat.class);
  59842. <p/>
  59843. JobConf mapAConf = new JobConf(false);
  59844. ...
  59845. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  59846. Text.class, Text.class, true, mapAConf);
  59847. <p/>
  59848. JobConf mapBConf = new JobConf(false);
  59849. ...
  59850. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  59851. LongWritable.class, Text.class, false, mapBConf);
  59852. <p/>
  59853. JobConf reduceConf = new JobConf(false);
  59854. ...
  59855. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  59856. Text.class, Text.class, true, reduceConf);
  59857. <p/>
  59858. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  59859. LongWritable.class, Text.class, false, null);
  59860. <p/>
  59861. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  59862. LongWritable.class, LongWritable.class, true, null);
  59863. <p/>
  59864. FileInputFormat.setInputPaths(conf, inDir);
  59865. FileOutputFormat.setOutputPath(conf, outDir);
  59866. ...
  59867. <p/>
  59868. JobClient jc = new JobClient(conf);
  59869. RunningJob job = jc.submitJob(conf);
  59870. ...
  59871. </pre>]]>
  59872. </doc>
  59873. </class>
  59874. <!-- end class org.apache.hadoop.mapred.lib.ChainReducer -->
  59875. <!-- start class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  59876. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  59877. abstract="true"
  59878. static="false" final="false" visibility="public"
  59879. deprecated="not deprecated">
  59880. <constructor name="CombineFileInputFormat"
  59881. static="false" final="false" visibility="public"
  59882. deprecated="not deprecated">
  59883. <doc>
  59884. <![CDATA[default constructor]]>
  59885. </doc>
  59886. </constructor>
  59887. <method name="setMaxSplitSize"
  59888. abstract="false" native="false" synchronized="false"
  59889. static="false" final="false" visibility="protected"
  59890. deprecated="not deprecated">
  59891. <param name="maxSplitSize" type="long"/>
  59892. <doc>
  59893. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  59894. approximately equal to the specified size.]]>
  59895. </doc>
  59896. </method>
  59897. <method name="setMinSplitSizeNode"
  59898. abstract="false" native="false" synchronized="false"
  59899. static="false" final="false" visibility="protected"
  59900. deprecated="not deprecated">
  59901. <param name="minSplitSizeNode" type="long"/>
  59902. <doc>
  59903. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  59904. This applies to data that is left over after combining data on a single
  59905. node into splits that are of maximum size specified by maxSplitSize.
  59906. This leftover data will be combined into its own split if its size
  59907. exceeds minSplitSizeNode.]]>
  59908. </doc>
  59909. </method>
  59910. <method name="setMinSplitSizeRack"
  59911. abstract="false" native="false" synchronized="false"
  59912. static="false" final="false" visibility="protected"
  59913. deprecated="not deprecated">
  59914. <param name="minSplitSizeRack" type="long"/>
  59915. <doc>
  59916. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  59917. This applies to data that is left over after combining data on a single
  59918. rack into splits that are of maximum size specified by maxSplitSize.
  59919. This leftover data will be combined into its own split if its size
  59920. exceeds minSplitSizeRack.]]>
  59921. </doc>
  59922. </method>
  59923. <method name="createPool"
  59924. abstract="false" native="false" synchronized="false"
  59925. static="false" final="false" visibility="protected"
  59926. deprecated="not deprecated">
  59927. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  59928. <param name="filters" type="java.util.List"/>
  59929. <doc>
  59930. <![CDATA[Create a new pool and add the filters to it.
  59931. A split cannot have files from different pools.]]>
  59932. </doc>
  59933. </method>
  59934. <method name="createPool"
  59935. abstract="false" native="false" synchronized="false"
  59936. static="false" final="false" visibility="protected"
  59937. deprecated="not deprecated">
  59938. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  59939. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  59940. <doc>
  59941. <![CDATA[Create a new pool and add the filters to it.
  59942. A pathname can satisfy any one of the specified filters.
  59943. A split cannot have files from different pools.]]>
  59944. </doc>
  59945. </method>
  59946. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  59947. abstract="false" native="false" synchronized="false"
  59948. static="false" final="false" visibility="public"
  59949. deprecated="not deprecated">
  59950. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59951. <param name="numSplits" type="int"/>
  59952. <exception name="IOException" type="java.io.IOException"/>
  59953. </method>
  59954. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  59955. abstract="true" native="false" synchronized="false"
  59956. static="false" final="false" visibility="public"
  59957. deprecated="not deprecated">
  59958. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  59959. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59960. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59961. <exception name="IOException" type="java.io.IOException"/>
  59962. <doc>
  59963. <![CDATA[This is not implemented yet.]]>
  59964. </doc>
  59965. </method>
  59966. <doc>
  59967. <![CDATA[An abstract {@link org.apache.hadoop.mapred.InputFormat} that returns {@link CombineFileSplit}'s
  59968. in {@link org.apache.hadoop.mapred.InputFormat#getSplits(JobConf, int)} method.
  59969. Splits are constructed from the files under the input paths.
  59970. A split cannot have files from different pools.
  59971. Each split returned may contain blocks from different files.
  59972. If a maxSplitSize is specified, then blocks on the same node are
  59973. combined to form a single split. Blocks that are left over are
  59974. then combined with other blocks in the same rack.
  59975. If maxSplitSize is not specified, then blocks from the same rack
  59976. are combined in a single split; no attempt is made to create
  59977. node-local splits.
  59978. If the maxSplitSize is equal to the block size, then this class
  59979. is similar to the default spliting behaviour in Hadoop: each
  59980. block is a locally processed split.
  59981. Subclasses implement {@link org.apache.hadoop.mapred.InputFormat#getRecordReader(InputSplit, JobConf, Reporter)}
  59982. to construct <code>RecordReader</code>'s for <code>CombineFileSplit</code>'s.
  59983. @see CombineFileSplit]]>
  59984. </doc>
  59985. </class>
  59986. <!-- end class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  59987. <!-- start class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  59988. <class name="CombineFileRecordReader" extends="java.lang.Object"
  59989. abstract="false"
  59990. static="false" final="false" visibility="public"
  59991. deprecated="not deprecated">
  59992. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  59993. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.CombineFileSplit, org.apache.hadoop.mapred.Reporter, java.lang.Class"
  59994. static="false" final="false" visibility="public"
  59995. deprecated="not deprecated">
  59996. <exception name="IOException" type="java.io.IOException"/>
  59997. <doc>
  59998. <![CDATA[A generic RecordReader that can hand out different recordReaders
  59999. for each chunk in the CombineFileSplit.]]>
  60000. </doc>
  60001. </constructor>
  60002. <method name="next" return="boolean"
  60003. abstract="false" native="false" synchronized="false"
  60004. static="false" final="false" visibility="public"
  60005. deprecated="not deprecated">
  60006. <param name="key" type="java.lang.Object"/>
  60007. <param name="value" type="java.lang.Object"/>
  60008. <exception name="IOException" type="java.io.IOException"/>
  60009. </method>
  60010. <method name="createKey" return="java.lang.Object"
  60011. abstract="false" native="false" synchronized="false"
  60012. static="false" final="false" visibility="public"
  60013. deprecated="not deprecated">
  60014. </method>
  60015. <method name="createValue" return="java.lang.Object"
  60016. abstract="false" native="false" synchronized="false"
  60017. static="false" final="false" visibility="public"
  60018. deprecated="not deprecated">
  60019. </method>
  60020. <method name="getPos" return="long"
  60021. abstract="false" native="false" synchronized="false"
  60022. static="false" final="false" visibility="public"
  60023. deprecated="not deprecated">
  60024. <exception name="IOException" type="java.io.IOException"/>
  60025. <doc>
  60026. <![CDATA[return the amount of data processed]]>
  60027. </doc>
  60028. </method>
  60029. <method name="close"
  60030. abstract="false" native="false" synchronized="false"
  60031. static="false" final="false" visibility="public"
  60032. deprecated="not deprecated">
  60033. <exception name="IOException" type="java.io.IOException"/>
  60034. </method>
  60035. <method name="getProgress" return="float"
  60036. abstract="false" native="false" synchronized="false"
  60037. static="false" final="false" visibility="public"
  60038. deprecated="not deprecated">
  60039. <exception name="IOException" type="java.io.IOException"/>
  60040. <doc>
  60041. <![CDATA[return progress based on the amount of data processed so far.]]>
  60042. </doc>
  60043. </method>
  60044. <method name="initNextRecordReader" return="boolean"
  60045. abstract="false" native="false" synchronized="false"
  60046. static="false" final="false" visibility="protected"
  60047. deprecated="not deprecated">
  60048. <exception name="IOException" type="java.io.IOException"/>
  60049. <doc>
  60050. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  60051. </doc>
  60052. </method>
  60053. <field name="split" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  60054. transient="false" volatile="false"
  60055. static="false" final="false" visibility="protected"
  60056. deprecated="not deprecated">
  60057. </field>
  60058. <field name="jc" type="org.apache.hadoop.mapred.JobConf"
  60059. transient="false" volatile="false"
  60060. static="false" final="false" visibility="protected"
  60061. deprecated="not deprecated">
  60062. </field>
  60063. <field name="reporter" type="org.apache.hadoop.mapred.Reporter"
  60064. transient="false" volatile="false"
  60065. static="false" final="false" visibility="protected"
  60066. deprecated="not deprecated">
  60067. </field>
  60068. <field name="rrClass" type="java.lang.Class"
  60069. transient="false" volatile="false"
  60070. static="false" final="false" visibility="protected"
  60071. deprecated="not deprecated">
  60072. </field>
  60073. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  60074. transient="false" volatile="false"
  60075. static="false" final="false" visibility="protected"
  60076. deprecated="not deprecated">
  60077. </field>
  60078. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  60079. transient="false" volatile="false"
  60080. static="false" final="false" visibility="protected"
  60081. deprecated="not deprecated">
  60082. </field>
  60083. <field name="idx" type="int"
  60084. transient="false" volatile="false"
  60085. static="false" final="false" visibility="protected"
  60086. deprecated="not deprecated">
  60087. </field>
  60088. <field name="progress" type="long"
  60089. transient="false" volatile="false"
  60090. static="false" final="false" visibility="protected"
  60091. deprecated="not deprecated">
  60092. </field>
  60093. <field name="curReader" type="org.apache.hadoop.mapred.RecordReader"
  60094. transient="false" volatile="false"
  60095. static="false" final="false" visibility="protected"
  60096. deprecated="not deprecated">
  60097. </field>
  60098. <doc>
  60099. <![CDATA[A generic RecordReader that can hand out different recordReaders
  60100. for each chunk in a {@link CombineFileSplit}.
  60101. A CombineFileSplit can combine data chunks from multiple files.
  60102. This class allows using different RecordReaders for processing
  60103. these data chunks from different files.
  60104. @see CombineFileSplit]]>
  60105. </doc>
  60106. </class>
  60107. <!-- end class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  60108. <!-- start class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  60109. <class name="CombineFileSplit" extends="java.lang.Object"
  60110. abstract="false"
  60111. static="false" final="false" visibility="public"
  60112. deprecated="not deprecated">
  60113. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  60114. <constructor name="CombineFileSplit"
  60115. static="false" final="false" visibility="public"
  60116. deprecated="not deprecated">
  60117. <doc>
  60118. <![CDATA[default constructor]]>
  60119. </doc>
  60120. </constructor>
  60121. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  60122. static="false" final="false" visibility="public"
  60123. deprecated="not deprecated">
  60124. </constructor>
  60125. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  60126. static="false" final="false" visibility="public"
  60127. deprecated="not deprecated">
  60128. </constructor>
  60129. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  60130. static="false" final="false" visibility="public"
  60131. deprecated="not deprecated">
  60132. <exception name="IOException" type="java.io.IOException"/>
  60133. <doc>
  60134. <![CDATA[Copy constructor]]>
  60135. </doc>
  60136. </constructor>
  60137. <method name="getJob" return="org.apache.hadoop.mapred.JobConf"
  60138. abstract="false" native="false" synchronized="false"
  60139. static="false" final="false" visibility="public"
  60140. deprecated="not deprecated">
  60141. </method>
  60142. <method name="getLength" return="long"
  60143. abstract="false" native="false" synchronized="false"
  60144. static="false" final="false" visibility="public"
  60145. deprecated="not deprecated">
  60146. </method>
  60147. <method name="getStartOffsets" return="long[]"
  60148. abstract="false" native="false" synchronized="false"
  60149. static="false" final="false" visibility="public"
  60150. deprecated="not deprecated">
  60151. <doc>
  60152. <![CDATA[Returns an array containing the startoffsets of the files in the split]]>
  60153. </doc>
  60154. </method>
  60155. <method name="getLengths" return="long[]"
  60156. abstract="false" native="false" synchronized="false"
  60157. static="false" final="false" visibility="public"
  60158. deprecated="not deprecated">
  60159. <doc>
  60160. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  60161. </doc>
  60162. </method>
  60163. <method name="getOffset" return="long"
  60164. abstract="false" native="false" synchronized="false"
  60165. static="false" final="false" visibility="public"
  60166. deprecated="not deprecated">
  60167. <param name="i" type="int"/>
  60168. <doc>
  60169. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  60170. </doc>
  60171. </method>
  60172. <method name="getLength" return="long"
  60173. abstract="false" native="false" synchronized="false"
  60174. static="false" final="false" visibility="public"
  60175. deprecated="not deprecated">
  60176. <param name="i" type="int"/>
  60177. <doc>
  60178. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  60179. </doc>
  60180. </method>
  60181. <method name="getNumPaths" return="int"
  60182. abstract="false" native="false" synchronized="false"
  60183. static="false" final="false" visibility="public"
  60184. deprecated="not deprecated">
  60185. <doc>
  60186. <![CDATA[Returns the number of Paths in the split]]>
  60187. </doc>
  60188. </method>
  60189. <method name="getPath" return="org.apache.hadoop.fs.Path"
  60190. abstract="false" native="false" synchronized="false"
  60191. static="false" final="false" visibility="public"
  60192. deprecated="not deprecated">
  60193. <param name="i" type="int"/>
  60194. <doc>
  60195. <![CDATA[Returns the i<sup>th</sup> Path]]>
  60196. </doc>
  60197. </method>
  60198. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  60199. abstract="false" native="false" synchronized="false"
  60200. static="false" final="false" visibility="public"
  60201. deprecated="not deprecated">
  60202. <doc>
  60203. <![CDATA[Returns all the Paths in the split]]>
  60204. </doc>
  60205. </method>
  60206. <method name="getLocations" return="java.lang.String[]"
  60207. abstract="false" native="false" synchronized="false"
  60208. static="false" final="false" visibility="public"
  60209. deprecated="not deprecated">
  60210. <exception name="IOException" type="java.io.IOException"/>
  60211. <doc>
  60212. <![CDATA[Returns all the Paths where this input-split resides]]>
  60213. </doc>
  60214. </method>
  60215. <method name="readFields"
  60216. abstract="false" native="false" synchronized="false"
  60217. static="false" final="false" visibility="public"
  60218. deprecated="not deprecated">
  60219. <param name="in" type="java.io.DataInput"/>
  60220. <exception name="IOException" type="java.io.IOException"/>
  60221. </method>
  60222. <method name="write"
  60223. abstract="false" native="false" synchronized="false"
  60224. static="false" final="false" visibility="public"
  60225. deprecated="not deprecated">
  60226. <param name="out" type="java.io.DataOutput"/>
  60227. <exception name="IOException" type="java.io.IOException"/>
  60228. </method>
  60229. <method name="toString" return="java.lang.String"
  60230. abstract="false" native="false" synchronized="false"
  60231. static="false" final="false" visibility="public"
  60232. deprecated="not deprecated">
  60233. </method>
  60234. <doc>
  60235. <![CDATA[A sub-collection of input files. Unlike {@link org.apache.hadoop.mapred.FileSplit},
  60236. CombineFileSplit * class does not represent a split of a file, but a split of input files
  60237. into smaller sets. A split may contain blocks from different file but all
  60238. the blocks in the same split are probably local to some rack <br>
  60239. CombineFileSplit can be used to implement {@link org.apache.hadoop.mapred.RecordReader}'s,
  60240. with reading one record per file.
  60241. @see org.apache.hadoop.mapred.FileSplit
  60242. @see CombineFileInputFormat]]>
  60243. </doc>
  60244. </class>
  60245. <!-- end class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  60246. <!-- start class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  60247. <class name="DelegatingInputFormat" extends="java.lang.Object"
  60248. abstract="false"
  60249. static="false" final="false" visibility="public"
  60250. deprecated="not deprecated">
  60251. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  60252. <constructor name="DelegatingInputFormat"
  60253. static="false" final="false" visibility="public"
  60254. deprecated="not deprecated">
  60255. </constructor>
  60256. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  60257. abstract="false" native="false" synchronized="false"
  60258. static="false" final="false" visibility="public"
  60259. deprecated="not deprecated">
  60260. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60261. <param name="numSplits" type="int"/>
  60262. <exception name="IOException" type="java.io.IOException"/>
  60263. </method>
  60264. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  60265. abstract="false" native="false" synchronized="false"
  60266. static="false" final="false" visibility="public"
  60267. deprecated="not deprecated">
  60268. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  60269. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60270. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60271. <exception name="IOException" type="java.io.IOException"/>
  60272. </method>
  60273. <doc>
  60274. <![CDATA[An {@link InputFormat} that delegates behaviour of paths to multiple other
  60275. InputFormats.
  60276. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  60277. </doc>
  60278. </class>
  60279. <!-- end class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  60280. <!-- start class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  60281. <class name="DelegatingMapper" extends="java.lang.Object"
  60282. abstract="false"
  60283. static="false" final="false" visibility="public"
  60284. deprecated="not deprecated">
  60285. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60286. <constructor name="DelegatingMapper"
  60287. static="false" final="false" visibility="public"
  60288. deprecated="not deprecated">
  60289. </constructor>
  60290. <method name="map"
  60291. abstract="false" native="false" synchronized="false"
  60292. static="false" final="false" visibility="public"
  60293. deprecated="not deprecated">
  60294. <param name="key" type="java.lang.Object"/>
  60295. <param name="value" type="java.lang.Object"/>
  60296. <param name="outputCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  60297. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60298. <exception name="IOException" type="java.io.IOException"/>
  60299. </method>
  60300. <method name="configure"
  60301. abstract="false" native="false" synchronized="false"
  60302. static="false" final="false" visibility="public"
  60303. deprecated="not deprecated">
  60304. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60305. </method>
  60306. <method name="close"
  60307. abstract="false" native="false" synchronized="false"
  60308. static="false" final="false" visibility="public"
  60309. deprecated="not deprecated">
  60310. <exception name="IOException" type="java.io.IOException"/>
  60311. </method>
  60312. <doc>
  60313. <![CDATA[An {@link Mapper} that delegates behaviour of paths to multiple other
  60314. mappers.
  60315. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  60316. </doc>
  60317. </class>
  60318. <!-- end class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  60319. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  60320. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  60321. abstract="false"
  60322. static="false" final="false" visibility="public"
  60323. deprecated="not deprecated">
  60324. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60325. <implements name="org.apache.hadoop.mapred.Reducer"/>
  60326. <constructor name="FieldSelectionMapReduce"
  60327. static="false" final="false" visibility="public"
  60328. deprecated="not deprecated">
  60329. </constructor>
  60330. <method name="map"
  60331. abstract="false" native="false" synchronized="false"
  60332. static="false" final="false" visibility="public"
  60333. deprecated="not deprecated">
  60334. <param name="key" type="java.lang.Object"/>
  60335. <param name="val" type="java.lang.Object"/>
  60336. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60337. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60338. <exception name="IOException" type="java.io.IOException"/>
  60339. <doc>
  60340. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  60341. </doc>
  60342. </method>
  60343. <method name="configure"
  60344. abstract="false" native="false" synchronized="false"
  60345. static="false" final="false" visibility="public"
  60346. deprecated="not deprecated">
  60347. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60348. </method>
  60349. <method name="close"
  60350. abstract="false" native="false" synchronized="false"
  60351. static="false" final="false" visibility="public"
  60352. deprecated="not deprecated">
  60353. <exception name="IOException" type="java.io.IOException"/>
  60354. </method>
  60355. <method name="reduce"
  60356. abstract="false" native="false" synchronized="false"
  60357. static="false" final="false" visibility="public"
  60358. deprecated="not deprecated">
  60359. <param name="key" type="org.apache.hadoop.io.Text"/>
  60360. <param name="values" type="java.util.Iterator"/>
  60361. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60362. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60363. <exception name="IOException" type="java.io.IOException"/>
  60364. </method>
  60365. <field name="LOG" type="org.apache.commons.logging.Log"
  60366. transient="false" volatile="false"
  60367. static="true" final="true" visibility="public"
  60368. deprecated="not deprecated">
  60369. </field>
  60370. <doc>
  60371. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  60372. field selections in a manner similar to unix cut. The input data is treated
  60373. as fields separated by a user specified separator (the default value is
  60374. "\t"). The user can specify a list of fields that form the map output keys,
  60375. and a list of fields that form the map output values. If the inputformat is
  60376. TextInputFormat, the mapper will ignore the key to the map function. and the
  60377. fields are from the value only. Otherwise, the fields are the union of those
  60378. from the key and those from the value.
  60379. The field separator is under attribute "mapred.data.field.separator"
  60380. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  60381. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  60382. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  60383. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  60384. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  60385. the fields starting from field 3. The open range field spec applies value fields only.
  60386. They have no effect on the key fields.
  60387. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields 4,3,0 and 1 for keys,
  60388. and use fields 6,5,1,2,3,7 and above for values.
  60389. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  60390. The reducer extracts output key/value pairs in a similar manner, except that
  60391. the key is never ignored.]]>
  60392. </doc>
  60393. </class>
  60394. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  60395. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  60396. <class name="HashPartitioner" extends="java.lang.Object"
  60397. abstract="false"
  60398. static="false" final="false" visibility="public"
  60399. deprecated="not deprecated">
  60400. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  60401. <constructor name="HashPartitioner"
  60402. static="false" final="false" visibility="public"
  60403. deprecated="not deprecated">
  60404. </constructor>
  60405. <method name="configure"
  60406. abstract="false" native="false" synchronized="false"
  60407. static="false" final="false" visibility="public"
  60408. deprecated="not deprecated">
  60409. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60410. </method>
  60411. <method name="getPartition" return="int"
  60412. abstract="false" native="false" synchronized="false"
  60413. static="false" final="false" visibility="public"
  60414. deprecated="not deprecated">
  60415. <param name="key" type="java.lang.Object"/>
  60416. <param name="value" type="java.lang.Object"/>
  60417. <param name="numReduceTasks" type="int"/>
  60418. <doc>
  60419. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  60420. </doc>
  60421. </method>
  60422. <doc>
  60423. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  60424. </doc>
  60425. </class>
  60426. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  60427. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  60428. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  60429. abstract="false"
  60430. static="false" final="false" visibility="public"
  60431. deprecated="not deprecated">
  60432. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60433. <constructor name="IdentityMapper"
  60434. static="false" final="false" visibility="public"
  60435. deprecated="not deprecated">
  60436. </constructor>
  60437. <method name="map"
  60438. abstract="false" native="false" synchronized="false"
  60439. static="false" final="false" visibility="public"
  60440. deprecated="not deprecated">
  60441. <param name="key" type="java.lang.Object"/>
  60442. <param name="val" type="java.lang.Object"/>
  60443. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60444. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60445. <exception name="IOException" type="java.io.IOException"/>
  60446. <doc>
  60447. <![CDATA[The identify function. Input key/value pair is written directly to
  60448. output.]]>
  60449. </doc>
  60450. </method>
  60451. <doc>
  60452. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  60453. </doc>
  60454. </class>
  60455. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  60456. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  60457. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  60458. abstract="false"
  60459. static="false" final="false" visibility="public"
  60460. deprecated="not deprecated">
  60461. <implements name="org.apache.hadoop.mapred.Reducer"/>
  60462. <constructor name="IdentityReducer"
  60463. static="false" final="false" visibility="public"
  60464. deprecated="not deprecated">
  60465. </constructor>
  60466. <method name="reduce"
  60467. abstract="false" native="false" synchronized="false"
  60468. static="false" final="false" visibility="public"
  60469. deprecated="not deprecated">
  60470. <param name="key" type="java.lang.Object"/>
  60471. <param name="values" type="java.util.Iterator"/>
  60472. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60473. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60474. <exception name="IOException" type="java.io.IOException"/>
  60475. <doc>
  60476. <![CDATA[Writes all keys and values directly to output.]]>
  60477. </doc>
  60478. </method>
  60479. <doc>
  60480. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  60481. </doc>
  60482. </class>
  60483. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  60484. <!-- start class org.apache.hadoop.mapred.lib.InputSampler -->
  60485. <class name="InputSampler" extends="java.lang.Object"
  60486. abstract="false"
  60487. static="false" final="false" visibility="public"
  60488. deprecated="not deprecated">
  60489. <implements name="org.apache.hadoop.util.Tool"/>
  60490. <constructor name="InputSampler" type="org.apache.hadoop.mapred.JobConf"
  60491. static="false" final="false" visibility="public"
  60492. deprecated="not deprecated">
  60493. </constructor>
  60494. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  60495. abstract="false" native="false" synchronized="false"
  60496. static="false" final="false" visibility="public"
  60497. deprecated="not deprecated">
  60498. </method>
  60499. <method name="setConf"
  60500. abstract="false" native="false" synchronized="false"
  60501. static="false" final="false" visibility="public"
  60502. deprecated="not deprecated">
  60503. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  60504. </method>
  60505. <method name="writePartitionFile"
  60506. abstract="false" native="false" synchronized="false"
  60507. static="true" final="false" visibility="public"
  60508. deprecated="not deprecated">
  60509. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60510. <param name="sampler" type="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  60511. <exception name="IOException" type="java.io.IOException"/>
  60512. <doc>
  60513. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  60514. Queries the sampler for a sample keyset, sorts by the output key
  60515. comparator, selects the keys for each rank, and writes to the destination
  60516. returned from {@link
  60517. org.apache.hadoop.mapred.lib.TotalOrderPartitioner#getPartitionFile}.]]>
  60518. </doc>
  60519. </method>
  60520. <method name="run" return="int"
  60521. abstract="false" native="false" synchronized="false"
  60522. static="false" final="false" visibility="public"
  60523. deprecated="not deprecated">
  60524. <param name="args" type="java.lang.String[]"/>
  60525. <exception name="Exception" type="java.lang.Exception"/>
  60526. <doc>
  60527. <![CDATA[Driver for InputSampler from the command line.
  60528. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  60529. </doc>
  60530. </method>
  60531. <method name="main"
  60532. abstract="false" native="false" synchronized="false"
  60533. static="true" final="false" visibility="public"
  60534. deprecated="not deprecated">
  60535. <param name="args" type="java.lang.String[]"/>
  60536. <exception name="Exception" type="java.lang.Exception"/>
  60537. </method>
  60538. <doc>
  60539. <![CDATA[Utility for collecting samples and writing a partition file for
  60540. {@link org.apache.hadoop.mapred.lib.TotalOrderPartitioner}.]]>
  60541. </doc>
  60542. </class>
  60543. <!-- end class org.apache.hadoop.mapred.lib.InputSampler -->
  60544. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  60545. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  60546. abstract="false"
  60547. static="true" final="false" visibility="public"
  60548. deprecated="not deprecated">
  60549. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  60550. <constructor name="InputSampler.IntervalSampler" type="double"
  60551. static="false" final="false" visibility="public"
  60552. deprecated="not deprecated">
  60553. <doc>
  60554. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  60555. @param freq The frequency with which records will be emitted.]]>
  60556. </doc>
  60557. </constructor>
  60558. <constructor name="InputSampler.IntervalSampler" type="double, int"
  60559. static="false" final="false" visibility="public"
  60560. deprecated="not deprecated">
  60561. <doc>
  60562. <![CDATA[Create a new IntervalSampler.
  60563. @param freq The frequency with which records will be emitted.
  60564. @param maxSplitsSampled The maximum number of splits to examine.
  60565. @see #getSample]]>
  60566. </doc>
  60567. </constructor>
  60568. <method name="getSample" return="java.lang.Object[]"
  60569. abstract="false" native="false" synchronized="false"
  60570. static="false" final="false" visibility="public"
  60571. deprecated="not deprecated">
  60572. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  60573. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60574. <exception name="IOException" type="java.io.IOException"/>
  60575. <doc>
  60576. <![CDATA[For each split sampled, emit when the ratio of the number of records
  60577. retained to the total record count is less than the specified
  60578. frequency.]]>
  60579. </doc>
  60580. </method>
  60581. <doc>
  60582. <![CDATA[Sample from s splits at regular intervals.
  60583. Useful for sorted data.]]>
  60584. </doc>
  60585. </class>
  60586. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  60587. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  60588. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  60589. abstract="false"
  60590. static="true" final="false" visibility="public"
  60591. deprecated="not deprecated">
  60592. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  60593. <constructor name="InputSampler.RandomSampler" type="double, int"
  60594. static="false" final="false" visibility="public"
  60595. deprecated="not deprecated">
  60596. <doc>
  60597. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  60598. This will read every split at the client, which is very expensive.
  60599. @param freq Probability with which a key will be chosen.
  60600. @param numSamples Total number of samples to obtain from all selected
  60601. splits.]]>
  60602. </doc>
  60603. </constructor>
  60604. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  60605. static="false" final="false" visibility="public"
  60606. deprecated="not deprecated">
  60607. <doc>
  60608. <![CDATA[Create a new RandomSampler.
  60609. @param freq Probability with which a key will be chosen.
  60610. @param numSamples Total number of samples to obtain from all selected
  60611. splits.
  60612. @param maxSplitsSampled The maximum number of splits to examine.]]>
  60613. </doc>
  60614. </constructor>
  60615. <method name="getSample" return="java.lang.Object[]"
  60616. abstract="false" native="false" synchronized="false"
  60617. static="false" final="false" visibility="public"
  60618. deprecated="not deprecated">
  60619. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  60620. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60621. <exception name="IOException" type="java.io.IOException"/>
  60622. <doc>
  60623. <![CDATA[Randomize the split order, then take the specified number of keys from
  60624. each split sampled, where each key is selected with the specified
  60625. probability and possibly replaced by a subsequently selected key when
  60626. the quota of keys from that split is satisfied.]]>
  60627. </doc>
  60628. </method>
  60629. <doc>
  60630. <![CDATA[Sample from random points in the input.
  60631. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  60632. each split.]]>
  60633. </doc>
  60634. </class>
  60635. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  60636. <!-- start interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  60637. <interface name="InputSampler.Sampler" abstract="true"
  60638. static="true" final="false" visibility="public"
  60639. deprecated="not deprecated">
  60640. <method name="getSample" return="java.lang.Object[]"
  60641. abstract="false" native="false" synchronized="false"
  60642. static="false" final="false" visibility="public"
  60643. deprecated="not deprecated">
  60644. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  60645. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60646. <exception name="IOException" type="java.io.IOException"/>
  60647. <doc>
  60648. <![CDATA[For a given job, collect and return a subset of the keys from the
  60649. input data.]]>
  60650. </doc>
  60651. </method>
  60652. <doc>
  60653. <![CDATA[Interface to sample using an {@link org.apache.hadoop.mapred.InputFormat}.]]>
  60654. </doc>
  60655. </interface>
  60656. <!-- end interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  60657. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  60658. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  60659. abstract="false"
  60660. static="true" final="false" visibility="public"
  60661. deprecated="not deprecated">
  60662. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  60663. <constructor name="InputSampler.SplitSampler" type="int"
  60664. static="false" final="false" visibility="public"
  60665. deprecated="not deprecated">
  60666. <doc>
  60667. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  60668. Takes the first numSamples / numSplits records from each split.
  60669. @param numSamples Total number of samples to obtain from all selected
  60670. splits.]]>
  60671. </doc>
  60672. </constructor>
  60673. <constructor name="InputSampler.SplitSampler" type="int, int"
  60674. static="false" final="false" visibility="public"
  60675. deprecated="not deprecated">
  60676. <doc>
  60677. <![CDATA[Create a new SplitSampler.
  60678. @param numSamples Total number of samples to obtain from all selected
  60679. splits.
  60680. @param maxSplitsSampled The maximum number of splits to examine.]]>
  60681. </doc>
  60682. </constructor>
  60683. <method name="getSample" return="java.lang.Object[]"
  60684. abstract="false" native="false" synchronized="false"
  60685. static="false" final="false" visibility="public"
  60686. deprecated="not deprecated">
  60687. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  60688. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60689. <exception name="IOException" type="java.io.IOException"/>
  60690. <doc>
  60691. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  60692. </doc>
  60693. </method>
  60694. <doc>
  60695. <![CDATA[Samples the first n records from s splits.
  60696. Inexpensive way to sample random data.]]>
  60697. </doc>
  60698. </class>
  60699. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  60700. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  60701. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  60702. abstract="false"
  60703. static="false" final="false" visibility="public"
  60704. deprecated="not deprecated">
  60705. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60706. <constructor name="InverseMapper"
  60707. static="false" final="false" visibility="public"
  60708. deprecated="not deprecated">
  60709. </constructor>
  60710. <method name="map"
  60711. abstract="false" native="false" synchronized="false"
  60712. static="false" final="false" visibility="public"
  60713. deprecated="not deprecated">
  60714. <param name="key" type="java.lang.Object"/>
  60715. <param name="value" type="java.lang.Object"/>
  60716. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60717. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60718. <exception name="IOException" type="java.io.IOException"/>
  60719. <doc>
  60720. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  60721. </doc>
  60722. </method>
  60723. <doc>
  60724. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  60725. </doc>
  60726. </class>
  60727. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  60728. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  60729. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  60730. abstract="false"
  60731. static="false" final="false" visibility="public"
  60732. deprecated="not deprecated">
  60733. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  60734. <constructor name="KeyFieldBasedComparator"
  60735. static="false" final="false" visibility="public"
  60736. deprecated="not deprecated">
  60737. </constructor>
  60738. <method name="configure"
  60739. abstract="false" native="false" synchronized="false"
  60740. static="false" final="false" visibility="public"
  60741. deprecated="not deprecated">
  60742. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60743. </method>
  60744. <method name="compare" return="int"
  60745. abstract="false" native="false" synchronized="false"
  60746. static="false" final="false" visibility="public"
  60747. deprecated="not deprecated">
  60748. <param name="b1" type="byte[]"/>
  60749. <param name="s1" type="int"/>
  60750. <param name="l1" type="int"/>
  60751. <param name="b2" type="byte[]"/>
  60752. <param name="s2" type="int"/>
  60753. <param name="l2" type="int"/>
  60754. </method>
  60755. <doc>
  60756. <![CDATA[This comparator implementation provides a subset of the features provided
  60757. by the Unix/GNU Sort. In particular, the supported features are:
  60758. -n, (Sort numerically)
  60759. -r, (Reverse the result of comparison)
  60760. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  60761. of the field to use, and c is the number of the first character from the
  60762. beginning of the field. Fields and character posns are numbered starting
  60763. with 1; a character position of zero in pos2 indicates the field's last
  60764. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  60765. of the field); if omitted from pos2, it defaults to 0 (the end of the
  60766. field). opts are ordering options (any of 'nr' as described above).
  60767. We assume that the fields in the key are separated by
  60768. map.output.key.field.separator.]]>
  60769. </doc>
  60770. </class>
  60771. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  60772. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  60773. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  60774. abstract="false"
  60775. static="false" final="false" visibility="public"
  60776. deprecated="not deprecated">
  60777. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  60778. <constructor name="KeyFieldBasedPartitioner"
  60779. static="false" final="false" visibility="public"
  60780. deprecated="not deprecated">
  60781. </constructor>
  60782. <method name="configure"
  60783. abstract="false" native="false" synchronized="false"
  60784. static="false" final="false" visibility="public"
  60785. deprecated="not deprecated">
  60786. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60787. </method>
  60788. <method name="getPartition" return="int"
  60789. abstract="false" native="false" synchronized="false"
  60790. static="false" final="false" visibility="public"
  60791. deprecated="not deprecated">
  60792. <param name="key" type="java.lang.Object"/>
  60793. <param name="value" type="java.lang.Object"/>
  60794. <param name="numReduceTasks" type="int"/>
  60795. </method>
  60796. <method name="hashCode" return="int"
  60797. abstract="false" native="false" synchronized="false"
  60798. static="false" final="false" visibility="protected"
  60799. deprecated="not deprecated">
  60800. <param name="b" type="byte[]"/>
  60801. <param name="start" type="int"/>
  60802. <param name="end" type="int"/>
  60803. <param name="currentHash" type="int"/>
  60804. </method>
  60805. <method name="getPartition" return="int"
  60806. abstract="false" native="false" synchronized="false"
  60807. static="false" final="false" visibility="protected"
  60808. deprecated="not deprecated">
  60809. <param name="hash" type="int"/>
  60810. <param name="numReduceTasks" type="int"/>
  60811. </method>
  60812. <doc>
  60813. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  60814. {@link KeyFieldBasedComparator}.
  60815. The key specification supported is of the form -k pos1[,pos2], where,
  60816. pos is of the form f[.c][opts], where f is the number
  60817. of the key field to use, and c is the number of the first character from
  60818. the beginning of the field. Fields and character posns are numbered
  60819. starting with 1; a character position of zero in pos2 indicates the
  60820. field's last character. If '.c' is omitted from pos1, it defaults to 1
  60821. (the beginning of the field); if omitted from pos2, it defaults to 0
  60822. (the end of the field).]]>
  60823. </doc>
  60824. </class>
  60825. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  60826. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  60827. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  60828. abstract="false"
  60829. static="false" final="false" visibility="public"
  60830. deprecated="not deprecated">
  60831. <implements name="org.apache.hadoop.mapred.Reducer"/>
  60832. <constructor name="LongSumReducer"
  60833. static="false" final="false" visibility="public"
  60834. deprecated="not deprecated">
  60835. </constructor>
  60836. <method name="reduce"
  60837. abstract="false" native="false" synchronized="false"
  60838. static="false" final="false" visibility="public"
  60839. deprecated="not deprecated">
  60840. <param name="key" type="java.lang.Object"/>
  60841. <param name="values" type="java.util.Iterator"/>
  60842. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60843. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60844. <exception name="IOException" type="java.io.IOException"/>
  60845. </method>
  60846. <doc>
  60847. <![CDATA[A {@link Reducer} that sums long values.]]>
  60848. </doc>
  60849. </class>
  60850. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  60851. <!-- start class org.apache.hadoop.mapred.lib.MultipleInputs -->
  60852. <class name="MultipleInputs" extends="java.lang.Object"
  60853. abstract="false"
  60854. static="false" final="false" visibility="public"
  60855. deprecated="not deprecated">
  60856. <constructor name="MultipleInputs"
  60857. static="false" final="false" visibility="public"
  60858. deprecated="not deprecated">
  60859. </constructor>
  60860. <method name="addInputPath"
  60861. abstract="false" native="false" synchronized="false"
  60862. static="true" final="false" visibility="public"
  60863. deprecated="not deprecated">
  60864. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60865. <param name="path" type="org.apache.hadoop.fs.Path"/>
  60866. <param name="inputFormatClass" type="java.lang.Class"/>
  60867. <doc>
  60868. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  60869. inputs for the map-reduce job.
  60870. @param conf The configuration of the job
  60871. @param path {@link Path} to be added to the list of inputs for the job
  60872. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  60873. </doc>
  60874. </method>
  60875. <method name="addInputPath"
  60876. abstract="false" native="false" synchronized="false"
  60877. static="true" final="false" visibility="public"
  60878. deprecated="not deprecated">
  60879. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60880. <param name="path" type="org.apache.hadoop.fs.Path"/>
  60881. <param name="inputFormatClass" type="java.lang.Class"/>
  60882. <param name="mapperClass" type="java.lang.Class"/>
  60883. <doc>
  60884. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  60885. {@link Mapper} to the list of inputs for the map-reduce job.
  60886. @param conf The configuration of the job
  60887. @param path {@link Path} to be added to the list of inputs for the job
  60888. @param inputFormatClass {@link InputFormat} class to use for this path
  60889. @param mapperClass {@link Mapper} class to use for this path]]>
  60890. </doc>
  60891. </method>
  60892. <doc>
  60893. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  60894. a different {@link InputFormat} and {@link Mapper} for each path]]>
  60895. </doc>
  60896. </class>
  60897. <!-- end class org.apache.hadoop.mapred.lib.MultipleInputs -->
  60898. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  60899. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  60900. abstract="true"
  60901. static="false" final="false" visibility="public"
  60902. deprecated="not deprecated">
  60903. <constructor name="MultipleOutputFormat"
  60904. static="false" final="false" visibility="public"
  60905. deprecated="not deprecated">
  60906. </constructor>
  60907. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  60908. abstract="false" native="false" synchronized="false"
  60909. static="false" final="false" visibility="public"
  60910. deprecated="not deprecated">
  60911. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  60912. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60913. <param name="name" type="java.lang.String"/>
  60914. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  60915. <exception name="IOException" type="java.io.IOException"/>
  60916. <doc>
  60917. <![CDATA[Create a composite record writer that can write key/value data to different
  60918. output files
  60919. @param fs
  60920. the file system to use
  60921. @param job
  60922. the job conf for the job
  60923. @param name
  60924. the leaf file name for the output file (such as part-00000")
  60925. @param arg3
  60926. a progressable for reporting progress.
  60927. @return a composite record writer
  60928. @throws IOException]]>
  60929. </doc>
  60930. </method>
  60931. <method name="generateLeafFileName" return="java.lang.String"
  60932. abstract="false" native="false" synchronized="false"
  60933. static="false" final="false" visibility="protected"
  60934. deprecated="not deprecated">
  60935. <param name="name" type="java.lang.String"/>
  60936. <doc>
  60937. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  60938. not change the leaf file name (such as part-00000)
  60939. @param name
  60940. the leaf file name for the output file
  60941. @return the given leaf file name]]>
  60942. </doc>
  60943. </method>
  60944. <method name="generateFileNameForKeyValue" return="java.lang.String"
  60945. abstract="false" native="false" synchronized="false"
  60946. static="false" final="false" visibility="protected"
  60947. deprecated="not deprecated">
  60948. <param name="key" type="java.lang.Object"/>
  60949. <param name="value" type="java.lang.Object"/>
  60950. <param name="name" type="java.lang.String"/>
  60951. <doc>
  60952. <![CDATA[Generate the file output file name based on the given key and the leaf file
  60953. name. The default behavior is that the file name does not depend on the
  60954. key.
  60955. @param key
  60956. the key of the output data
  60957. @param name
  60958. the leaf file name
  60959. @return generated file name]]>
  60960. </doc>
  60961. </method>
  60962. <method name="generateActualKey" return="java.lang.Object"
  60963. abstract="false" native="false" synchronized="false"
  60964. static="false" final="false" visibility="protected"
  60965. deprecated="not deprecated">
  60966. <param name="key" type="java.lang.Object"/>
  60967. <param name="value" type="java.lang.Object"/>
  60968. <doc>
  60969. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  60970. the actual key is equal to the given key
  60971. @param key
  60972. the key of the output data
  60973. @param value
  60974. the value of the output data
  60975. @return the actual key derived from the given key/value]]>
  60976. </doc>
  60977. </method>
  60978. <method name="generateActualValue" return="java.lang.Object"
  60979. abstract="false" native="false" synchronized="false"
  60980. static="false" final="false" visibility="protected"
  60981. deprecated="not deprecated">
  60982. <param name="key" type="java.lang.Object"/>
  60983. <param name="value" type="java.lang.Object"/>
  60984. <doc>
  60985. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  60986. the actual value is equal to the given value
  60987. @param key
  60988. the key of the output data
  60989. @param value
  60990. the value of the output data
  60991. @return the actual value derived from the given key/value]]>
  60992. </doc>
  60993. </method>
  60994. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  60995. abstract="false" native="false" synchronized="false"
  60996. static="false" final="false" visibility="protected"
  60997. deprecated="not deprecated">
  60998. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60999. <param name="name" type="java.lang.String"/>
  61000. <doc>
  61001. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  61002. the map input file does not exists (i.e. this is not for a map only job),
  61003. the given name is returned unchanged. If the config value for
  61004. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  61005. name is returned unchanged. Otherwise, return a file name consisting of the
  61006. N trailing legs of the input file name where N is the config value for
  61007. "num.of.trailing.legs.to.use".
  61008. @param job
  61009. the job config
  61010. @param name
  61011. the output file name
  61012. @return the outfile name based on a given anme and the input file name.]]>
  61013. </doc>
  61014. </method>
  61015. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61016. abstract="true" native="false" synchronized="false"
  61017. static="false" final="false" visibility="protected"
  61018. deprecated="not deprecated">
  61019. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61020. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61021. <param name="name" type="java.lang.String"/>
  61022. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61023. <exception name="IOException" type="java.io.IOException"/>
  61024. <doc>
  61025. <![CDATA[@param fs
  61026. the file system to use
  61027. @param job
  61028. a job conf object
  61029. @param name
  61030. the name of the file over which a record writer object will be
  61031. constructed
  61032. @param arg3
  61033. a progressable object
  61034. @return A RecordWriter object over the given file
  61035. @throws IOException]]>
  61036. </doc>
  61037. </method>
  61038. <doc>
  61039. <![CDATA[This abstract class extends the FileOutputFormat, allowing to write the
  61040. output data to different output files. There are three basic use cases for
  61041. this class.
  61042. Case one: This class is used for a map reduce job with at least one reducer.
  61043. The reducer wants to write data to different files depending on the actual
  61044. keys. It is assumed that a key (or value) encodes the actual key (value)
  61045. and the desired location for the actual key (value).
  61046. Case two: This class is used for a map only job. The job wants to use an
  61047. output file name that is either a part of the input file name of the input
  61048. data, or some derivation of it.
  61049. Case three: This class is used for a map only job. The job wants to use an
  61050. output file name that depends on both the keys and the input file name,]]>
  61051. </doc>
  61052. </class>
  61053. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  61054. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  61055. <class name="MultipleOutputs" extends="java.lang.Object"
  61056. abstract="false"
  61057. static="false" final="false" visibility="public"
  61058. deprecated="not deprecated">
  61059. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapred.JobConf"
  61060. static="false" final="false" visibility="public"
  61061. deprecated="not deprecated">
  61062. <doc>
  61063. <![CDATA[Creates and initializes multiple named outputs support, it should be
  61064. instantiated in the Mapper/Reducer configure method.
  61065. @param job the job configuration object]]>
  61066. </doc>
  61067. </constructor>
  61068. <method name="getNamedOutputsList" return="java.util.List"
  61069. abstract="false" native="false" synchronized="false"
  61070. static="true" final="false" visibility="public"
  61071. deprecated="not deprecated">
  61072. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61073. <doc>
  61074. <![CDATA[Returns list of channel names.
  61075. @param conf job conf
  61076. @return List of channel Names]]>
  61077. </doc>
  61078. </method>
  61079. <method name="isMultiNamedOutput" return="boolean"
  61080. abstract="false" native="false" synchronized="false"
  61081. static="true" final="false" visibility="public"
  61082. deprecated="not deprecated">
  61083. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61084. <param name="namedOutput" type="java.lang.String"/>
  61085. <doc>
  61086. <![CDATA[Returns if a named output is multiple.
  61087. @param conf job conf
  61088. @param namedOutput named output
  61089. @return <code>true</code> if the name output is multi, <code>false</code>
  61090. if it is single. If the name output is not defined it returns
  61091. <code>false</code>]]>
  61092. </doc>
  61093. </method>
  61094. <method name="getNamedOutputFormatClass" return="java.lang.Class"
  61095. abstract="false" native="false" synchronized="false"
  61096. static="true" final="false" visibility="public"
  61097. deprecated="not deprecated">
  61098. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61099. <param name="namedOutput" type="java.lang.String"/>
  61100. <doc>
  61101. <![CDATA[Returns the named output OutputFormat.
  61102. @param conf job conf
  61103. @param namedOutput named output
  61104. @return namedOutput OutputFormat]]>
  61105. </doc>
  61106. </method>
  61107. <method name="getNamedOutputKeyClass" return="java.lang.Class"
  61108. abstract="false" native="false" synchronized="false"
  61109. static="true" final="false" visibility="public"
  61110. deprecated="not deprecated">
  61111. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61112. <param name="namedOutput" type="java.lang.String"/>
  61113. <doc>
  61114. <![CDATA[Returns the key class for a named output.
  61115. @param conf job conf
  61116. @param namedOutput named output
  61117. @return class for the named output key]]>
  61118. </doc>
  61119. </method>
  61120. <method name="getNamedOutputValueClass" return="java.lang.Class"
  61121. abstract="false" native="false" synchronized="false"
  61122. static="true" final="false" visibility="public"
  61123. deprecated="not deprecated">
  61124. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61125. <param name="namedOutput" type="java.lang.String"/>
  61126. <doc>
  61127. <![CDATA[Returns the value class for a named output.
  61128. @param conf job conf
  61129. @param namedOutput named output
  61130. @return class of named output value]]>
  61131. </doc>
  61132. </method>
  61133. <method name="addNamedOutput"
  61134. abstract="false" native="false" synchronized="false"
  61135. static="true" final="false" visibility="public"
  61136. deprecated="not deprecated">
  61137. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61138. <param name="namedOutput" type="java.lang.String"/>
  61139. <param name="outputFormatClass" type="java.lang.Class"/>
  61140. <param name="keyClass" type="java.lang.Class"/>
  61141. <param name="valueClass" type="java.lang.Class"/>
  61142. <doc>
  61143. <![CDATA[Adds a named output for the job.
  61144. <p/>
  61145. @param conf job conf to add the named output
  61146. @param namedOutput named output name, it has to be a word, letters
  61147. and numbers only, cannot be the word 'part' as
  61148. that is reserved for the
  61149. default output.
  61150. @param outputFormatClass OutputFormat class.
  61151. @param keyClass key class
  61152. @param valueClass value class]]>
  61153. </doc>
  61154. </method>
  61155. <method name="addMultiNamedOutput"
  61156. abstract="false" native="false" synchronized="false"
  61157. static="true" final="false" visibility="public"
  61158. deprecated="not deprecated">
  61159. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61160. <param name="namedOutput" type="java.lang.String"/>
  61161. <param name="outputFormatClass" type="java.lang.Class"/>
  61162. <param name="keyClass" type="java.lang.Class"/>
  61163. <param name="valueClass" type="java.lang.Class"/>
  61164. <doc>
  61165. <![CDATA[Adds a multi named output for the job.
  61166. <p/>
  61167. @param conf job conf to add the named output
  61168. @param namedOutput named output name, it has to be a word, letters
  61169. and numbers only, cannot be the word 'part' as
  61170. that is reserved for the
  61171. default output.
  61172. @param outputFormatClass OutputFormat class.
  61173. @param keyClass key class
  61174. @param valueClass value class]]>
  61175. </doc>
  61176. </method>
  61177. <method name="setCountersEnabled"
  61178. abstract="false" native="false" synchronized="false"
  61179. static="true" final="false" visibility="public"
  61180. deprecated="not deprecated">
  61181. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61182. <param name="enabled" type="boolean"/>
  61183. <doc>
  61184. <![CDATA[Enables or disables counters for the named outputs.
  61185. <p/>
  61186. By default these counters are disabled.
  61187. <p/>
  61188. MultipleOutputs supports counters, by default the are disabled.
  61189. The counters group is the {@link MultipleOutputs} class name.
  61190. </p>
  61191. The names of the counters are the same as the named outputs. For multi
  61192. named outputs the name of the counter is the concatenation of the named
  61193. output, and underscore '_' and the multiname.
  61194. @param conf job conf to enableadd the named output.
  61195. @param enabled indicates if the counters will be enabled or not.]]>
  61196. </doc>
  61197. </method>
  61198. <method name="getCountersEnabled" return="boolean"
  61199. abstract="false" native="false" synchronized="false"
  61200. static="true" final="false" visibility="public"
  61201. deprecated="not deprecated">
  61202. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61203. <doc>
  61204. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  61205. <p/>
  61206. By default these counters are disabled.
  61207. <p/>
  61208. MultipleOutputs supports counters, by default the are disabled.
  61209. The counters group is the {@link MultipleOutputs} class name.
  61210. </p>
  61211. The names of the counters are the same as the named outputs. For multi
  61212. named outputs the name of the counter is the concatenation of the named
  61213. output, and underscore '_' and the multiname.
  61214. @param conf job conf to enableadd the named output.
  61215. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  61216. </doc>
  61217. </method>
  61218. <method name="getNamedOutputs" return="java.util.Iterator"
  61219. abstract="false" native="false" synchronized="false"
  61220. static="false" final="false" visibility="public"
  61221. deprecated="not deprecated">
  61222. <doc>
  61223. <![CDATA[Returns iterator with the defined name outputs.
  61224. @return iterator with the defined named outputs]]>
  61225. </doc>
  61226. </method>
  61227. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  61228. abstract="false" native="false" synchronized="false"
  61229. static="false" final="false" visibility="public"
  61230. deprecated="not deprecated">
  61231. <param name="namedOutput" type="java.lang.String"/>
  61232. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61233. <exception name="IOException" type="java.io.IOException"/>
  61234. <doc>
  61235. <![CDATA[Gets the output collector for a named output.
  61236. <p/>
  61237. @param namedOutput the named output name
  61238. @param reporter the reporter
  61239. @return the output collector for the given named output
  61240. @throws IOException thrown if output collector could not be created]]>
  61241. </doc>
  61242. </method>
  61243. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  61244. abstract="false" native="false" synchronized="false"
  61245. static="false" final="false" visibility="public"
  61246. deprecated="not deprecated">
  61247. <param name="namedOutput" type="java.lang.String"/>
  61248. <param name="multiName" type="java.lang.String"/>
  61249. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61250. <exception name="IOException" type="java.io.IOException"/>
  61251. <doc>
  61252. <![CDATA[Gets the output collector for a multi named output.
  61253. <p/>
  61254. @param namedOutput the named output name
  61255. @param multiName the multi name part
  61256. @param reporter the reporter
  61257. @return the output collector for the given named output
  61258. @throws IOException thrown if output collector could not be created]]>
  61259. </doc>
  61260. </method>
  61261. <method name="close"
  61262. abstract="false" native="false" synchronized="false"
  61263. static="false" final="false" visibility="public"
  61264. deprecated="not deprecated">
  61265. <exception name="IOException" type="java.io.IOException"/>
  61266. <doc>
  61267. <![CDATA[Closes all the opened named outputs.
  61268. <p/>
  61269. If overriden subclasses must invoke <code>super.close()</code> at the
  61270. end of their <code>close()</code>
  61271. @throws java.io.IOException thrown if any of the MultipleOutput files
  61272. could not be closed properly.]]>
  61273. </doc>
  61274. </method>
  61275. <doc>
  61276. <![CDATA[The MultipleOutputs class simplifies writting to additional outputs other
  61277. than the job default output via the <code>OutputCollector</code> passed to
  61278. the <code>map()</code> and <code>reduce()</code> methods of the
  61279. <code>Mapper</code> and <code>Reducer</code> implementations.
  61280. <p/>
  61281. Each additional output, or named output, may be configured with its own
  61282. <code>OutputFormat</code>, with its own key class and with its own value
  61283. class.
  61284. <p/>
  61285. A named output can be a single file or a multi file. The later is refered as
  61286. a multi named output.
  61287. <p/>
  61288. A multi named output is an unbound set of files all sharing the same
  61289. <code>OutputFormat</code>, key class and value class configuration.
  61290. <p/>
  61291. When named outputs are used within a <code>Mapper</code> implementation,
  61292. key/values written to a name output are not part of the reduce phase, only
  61293. key/values written to the job <code>OutputCollector</code> are part of the
  61294. reduce phase.
  61295. <p/>
  61296. MultipleOutputs supports counters, by default the are disabled. The counters
  61297. group is the {@link MultipleOutputs} class name.
  61298. </p>
  61299. The names of the counters are the same as the named outputs. For multi
  61300. named outputs the name of the counter is the concatenation of the named
  61301. output, and underscore '_' and the multiname.
  61302. <p/>
  61303. Job configuration usage pattern is:
  61304. <pre>
  61305. JobConf conf = new JobConf();
  61306. conf.setInputPath(inDir);
  61307. FileOutputFormat.setOutputPath(conf, outDir);
  61308. conf.setMapperClass(MOMap.class);
  61309. conf.setReducerClass(MOReduce.class);
  61310. ...
  61311. // Defines additional single text based output 'text' for the job
  61312. MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
  61313. LongWritable.class, Text.class);
  61314. // Defines additional multi sequencefile based output 'sequence' for the
  61315. // job
  61316. MultipleOutputs.addMultiNamedOutput(conf, "seq",
  61317. SequenceFileOutputFormat.class,
  61318. LongWritable.class, Text.class);
  61319. ...
  61320. JobClient jc = new JobClient();
  61321. RunningJob job = jc.submitJob(conf);
  61322. ...
  61323. </pre>
  61324. <p/>
  61325. Job configuration usage pattern is:
  61326. <pre>
  61327. public class MOReduce implements
  61328. Reducer&lt;WritableComparable, Writable&gt; {
  61329. private MultipleOutputs mos;
  61330. public void configure(JobConf conf) {
  61331. ...
  61332. mos = new MultipleOutputs(conf);
  61333. }
  61334. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  61335. OutputCollector output, Reporter reporter)
  61336. throws IOException {
  61337. ...
  61338. mos.getCollector("text", reporter).collect(key, new Text("Hello"));
  61339. mos.getCollector("seq", "A", reporter).collect(key, new Text("Bye"));
  61340. mos.getCollector("seq", "B", reporter).collect(key, new Text("Chau"));
  61341. ...
  61342. }
  61343. public void close() throws IOException {
  61344. mos.close();
  61345. ...
  61346. }
  61347. }
  61348. </pre>]]>
  61349. </doc>
  61350. </class>
  61351. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  61352. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  61353. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  61354. abstract="false"
  61355. static="false" final="false" visibility="public"
  61356. deprecated="not deprecated">
  61357. <constructor name="MultipleSequenceFileOutputFormat"
  61358. static="false" final="false" visibility="public"
  61359. deprecated="not deprecated">
  61360. </constructor>
  61361. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61362. abstract="false" native="false" synchronized="false"
  61363. static="false" final="false" visibility="protected"
  61364. deprecated="not deprecated">
  61365. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61366. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61367. <param name="name" type="java.lang.String"/>
  61368. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61369. <exception name="IOException" type="java.io.IOException"/>
  61370. </method>
  61371. <doc>
  61372. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  61373. to different output files in sequence file output format.]]>
  61374. </doc>
  61375. </class>
  61376. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  61377. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  61378. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  61379. abstract="false"
  61380. static="false" final="false" visibility="public"
  61381. deprecated="not deprecated">
  61382. <constructor name="MultipleTextOutputFormat"
  61383. static="false" final="false" visibility="public"
  61384. deprecated="not deprecated">
  61385. </constructor>
  61386. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61387. abstract="false" native="false" synchronized="false"
  61388. static="false" final="false" visibility="protected"
  61389. deprecated="not deprecated">
  61390. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61391. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61392. <param name="name" type="java.lang.String"/>
  61393. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61394. <exception name="IOException" type="java.io.IOException"/>
  61395. </method>
  61396. <doc>
  61397. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  61398. data to different output files in Text output format.]]>
  61399. </doc>
  61400. </class>
  61401. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  61402. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  61403. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  61404. abstract="false"
  61405. static="false" final="false" visibility="public"
  61406. deprecated="not deprecated">
  61407. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  61408. <constructor name="MultithreadedMapRunner"
  61409. static="false" final="false" visibility="public"
  61410. deprecated="not deprecated">
  61411. </constructor>
  61412. <method name="configure"
  61413. abstract="false" native="false" synchronized="false"
  61414. static="false" final="false" visibility="public"
  61415. deprecated="not deprecated">
  61416. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  61417. </method>
  61418. <method name="run"
  61419. abstract="false" native="false" synchronized="false"
  61420. static="false" final="false" visibility="public"
  61421. deprecated="not deprecated">
  61422. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  61423. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61424. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61425. <exception name="IOException" type="java.io.IOException"/>
  61426. </method>
  61427. <doc>
  61428. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  61429. <p>
  61430. It can be used instead of the default implementation,
  61431. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  61432. bound in order to improve throughput.
  61433. <p>
  61434. Map implementations using this MapRunnable must be thread-safe.
  61435. <p>
  61436. The Map-Reduce job has to be configured to use this MapRunnable class (using
  61437. the JobConf.setMapRunnerClass method) and
  61438. the number of thread the thread-pool can use with the
  61439. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  61440. value is 10 threads.
  61441. <p>]]>
  61442. </doc>
  61443. </class>
  61444. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  61445. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  61446. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  61447. abstract="false"
  61448. static="false" final="false" visibility="public"
  61449. deprecated="not deprecated">
  61450. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  61451. <constructor name="NLineInputFormat"
  61452. static="false" final="false" visibility="public"
  61453. deprecated="not deprecated">
  61454. </constructor>
  61455. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  61456. abstract="false" native="false" synchronized="false"
  61457. static="false" final="false" visibility="public"
  61458. deprecated="not deprecated">
  61459. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  61460. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61461. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61462. <exception name="IOException" type="java.io.IOException"/>
  61463. </method>
  61464. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  61465. abstract="false" native="false" synchronized="false"
  61466. static="false" final="false" visibility="public"
  61467. deprecated="not deprecated">
  61468. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61469. <param name="numSplits" type="int"/>
  61470. <exception name="IOException" type="java.io.IOException"/>
  61471. <doc>
  61472. <![CDATA[Logically splits the set of input files for the job, splits N lines
  61473. of the input as one split.
  61474. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  61475. </doc>
  61476. </method>
  61477. <method name="configure"
  61478. abstract="false" native="false" synchronized="false"
  61479. static="false" final="false" visibility="public"
  61480. deprecated="not deprecated">
  61481. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61482. </method>
  61483. <doc>
  61484. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  61485. In many "pleasantly" parallel applications, each process/mapper
  61486. processes the same input file (s), but with computations are
  61487. controlled by different parameters.(Referred to as "parameter sweeps").
  61488. One way to achieve this, is to specify a set of parameters
  61489. (one set per line) as input in a control file
  61490. (which is the input path to the map-reduce application,
  61491. where as the input dataset is specified
  61492. via a config variable in JobConf.).
  61493. The NLineInputFormat can be used in such applications, that splits
  61494. the input file such that by default, one line is fed as
  61495. a value to one map task, and key is the offset.
  61496. i.e. (k,v) is (LongWritable, Text).
  61497. The location hints will span the whole mapred cluster.]]>
  61498. </doc>
  61499. </class>
  61500. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  61501. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  61502. <class name="NullOutputFormat" extends="java.lang.Object"
  61503. abstract="false"
  61504. static="false" final="false" visibility="public"
  61505. deprecated="not deprecated">
  61506. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  61507. <constructor name="NullOutputFormat"
  61508. static="false" final="false" visibility="public"
  61509. deprecated="not deprecated">
  61510. </constructor>
  61511. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61512. abstract="false" native="false" synchronized="false"
  61513. static="false" final="false" visibility="public"
  61514. deprecated="not deprecated">
  61515. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  61516. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61517. <param name="name" type="java.lang.String"/>
  61518. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  61519. </method>
  61520. <method name="checkOutputSpecs"
  61521. abstract="false" native="false" synchronized="false"
  61522. static="false" final="false" visibility="public"
  61523. deprecated="not deprecated">
  61524. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  61525. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61526. </method>
  61527. <doc>
  61528. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  61529. </doc>
  61530. </class>
  61531. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  61532. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  61533. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  61534. abstract="false"
  61535. static="false" final="false" visibility="public"
  61536. deprecated="not deprecated">
  61537. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61538. <constructor name="RegexMapper"
  61539. static="false" final="false" visibility="public"
  61540. deprecated="not deprecated">
  61541. </constructor>
  61542. <method name="configure"
  61543. abstract="false" native="false" synchronized="false"
  61544. static="false" final="false" visibility="public"
  61545. deprecated="not deprecated">
  61546. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61547. </method>
  61548. <method name="map"
  61549. abstract="false" native="false" synchronized="false"
  61550. static="false" final="false" visibility="public"
  61551. deprecated="not deprecated">
  61552. <param name="key" type="java.lang.Object"/>
  61553. <param name="value" type="org.apache.hadoop.io.Text"/>
  61554. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61555. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61556. <exception name="IOException" type="java.io.IOException"/>
  61557. </method>
  61558. <doc>
  61559. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  61560. </doc>
  61561. </class>
  61562. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  61563. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  61564. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  61565. abstract="false"
  61566. static="false" final="false" visibility="public"
  61567. deprecated="not deprecated">
  61568. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61569. <constructor name="TokenCountMapper"
  61570. static="false" final="false" visibility="public"
  61571. deprecated="not deprecated">
  61572. </constructor>
  61573. <method name="map"
  61574. abstract="false" native="false" synchronized="false"
  61575. static="false" final="false" visibility="public"
  61576. deprecated="not deprecated">
  61577. <param name="key" type="java.lang.Object"/>
  61578. <param name="value" type="org.apache.hadoop.io.Text"/>
  61579. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61580. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61581. <exception name="IOException" type="java.io.IOException"/>
  61582. </method>
  61583. <doc>
  61584. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  61585. {@link StringTokenizer} to break text into tokens.]]>
  61586. </doc>
  61587. </class>
  61588. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  61589. <!-- start class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  61590. <class name="TotalOrderPartitioner" extends="java.lang.Object"
  61591. abstract="false"
  61592. static="false" final="false" visibility="public"
  61593. deprecated="not deprecated">
  61594. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  61595. <constructor name="TotalOrderPartitioner"
  61596. static="false" final="false" visibility="public"
  61597. deprecated="not deprecated">
  61598. </constructor>
  61599. <method name="configure"
  61600. abstract="false" native="false" synchronized="false"
  61601. static="false" final="false" visibility="public"
  61602. deprecated="not deprecated">
  61603. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61604. <doc>
  61605. <![CDATA[Read in the partition file and build indexing data structures.
  61606. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  61607. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  61608. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  61609. will be built. Otherwise, keys will be located using a binary search of
  61610. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  61611. defined for this job. The input file must be sorted with the same
  61612. comparator and contain {@link
  61613. org.apache.hadoop.mapred.JobConf#getNumReduceTasks} - 1 keys.]]>
  61614. </doc>
  61615. </method>
  61616. <method name="getPartition" return="int"
  61617. abstract="false" native="false" synchronized="false"
  61618. static="false" final="false" visibility="public"
  61619. deprecated="not deprecated">
  61620. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61621. <param name="value" type="java.lang.Object"/>
  61622. <param name="numPartitions" type="int"/>
  61623. </method>
  61624. <method name="setPartitionFile"
  61625. abstract="false" native="false" synchronized="false"
  61626. static="true" final="false" visibility="public"
  61627. deprecated="not deprecated">
  61628. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61629. <param name="p" type="org.apache.hadoop.fs.Path"/>
  61630. <doc>
  61631. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  61632. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  61633. keys in the SequenceFile.]]>
  61634. </doc>
  61635. </method>
  61636. <method name="getPartitionFile" return="java.lang.String"
  61637. abstract="false" native="false" synchronized="false"
  61638. static="true" final="false" visibility="public"
  61639. deprecated="not deprecated">
  61640. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61641. <doc>
  61642. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  61643. @see #setPartitionFile(JobConf,Path)]]>
  61644. </doc>
  61645. </method>
  61646. <field name="DEFAULT_PATH" type="java.lang.String"
  61647. transient="false" volatile="false"
  61648. static="true" final="true" visibility="public"
  61649. deprecated="not deprecated">
  61650. </field>
  61651. <doc>
  61652. <![CDATA[Partitioner effecting a total order by reading split points from
  61653. an externally generated source.]]>
  61654. </doc>
  61655. </class>
  61656. <!-- end class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  61657. </package>
  61658. <package name="org.apache.hadoop.mapred.lib.aggregate">
  61659. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  61660. <class name="DoubleValueSum" extends="java.lang.Object"
  61661. abstract="false"
  61662. static="false" final="false" visibility="public"
  61663. deprecated="not deprecated">
  61664. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  61665. <constructor name="DoubleValueSum"
  61666. static="false" final="false" visibility="public"
  61667. deprecated="not deprecated">
  61668. <doc>
  61669. <![CDATA[The default constructor]]>
  61670. </doc>
  61671. </constructor>
  61672. <method name="addNextValue"
  61673. abstract="false" native="false" synchronized="false"
  61674. static="false" final="false" visibility="public"
  61675. deprecated="not deprecated">
  61676. <param name="val" type="java.lang.Object"/>
  61677. <doc>
  61678. <![CDATA[add a value to the aggregator
  61679. @param val
  61680. an object whose string representation represents a double value.]]>
  61681. </doc>
  61682. </method>
  61683. <method name="addNextValue"
  61684. abstract="false" native="false" synchronized="false"
  61685. static="false" final="false" visibility="public"
  61686. deprecated="not deprecated">
  61687. <param name="val" type="double"/>
  61688. <doc>
  61689. <![CDATA[add a value to the aggregator
  61690. @param val
  61691. a double value.]]>
  61692. </doc>
  61693. </method>
  61694. <method name="getReport" return="java.lang.String"
  61695. abstract="false" native="false" synchronized="false"
  61696. static="false" final="false" visibility="public"
  61697. deprecated="not deprecated">
  61698. <doc>
  61699. <![CDATA[@return the string representation of the aggregated value]]>
  61700. </doc>
  61701. </method>
  61702. <method name="getSum" return="double"
  61703. abstract="false" native="false" synchronized="false"
  61704. static="false" final="false" visibility="public"
  61705. deprecated="not deprecated">
  61706. <doc>
  61707. <![CDATA[@return the aggregated value]]>
  61708. </doc>
  61709. </method>
  61710. <method name="reset"
  61711. abstract="false" native="false" synchronized="false"
  61712. static="false" final="false" visibility="public"
  61713. deprecated="not deprecated">
  61714. <doc>
  61715. <![CDATA[reset the aggregator]]>
  61716. </doc>
  61717. </method>
  61718. <method name="getCombinerOutput" return="java.util.ArrayList"
  61719. abstract="false" native="false" synchronized="false"
  61720. static="false" final="false" visibility="public"
  61721. deprecated="not deprecated">
  61722. <doc>
  61723. <![CDATA[@return return an array of one element. The element is a string
  61724. representation of the aggregated value. The return value is
  61725. expected to be used by the a combiner.]]>
  61726. </doc>
  61727. </method>
  61728. <doc>
  61729. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  61730. values.]]>
  61731. </doc>
  61732. </class>
  61733. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  61734. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  61735. <class name="LongValueMax" extends="java.lang.Object"
  61736. abstract="false"
  61737. static="false" final="false" visibility="public"
  61738. deprecated="not deprecated">
  61739. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  61740. <constructor name="LongValueMax"
  61741. static="false" final="false" visibility="public"
  61742. deprecated="not deprecated">
  61743. <doc>
  61744. <![CDATA[the default constructor]]>
  61745. </doc>
  61746. </constructor>
  61747. <method name="addNextValue"
  61748. abstract="false" native="false" synchronized="false"
  61749. static="false" final="false" visibility="public"
  61750. deprecated="not deprecated">
  61751. <param name="val" type="java.lang.Object"/>
  61752. <doc>
  61753. <![CDATA[add a value to the aggregator
  61754. @param val
  61755. an object whose string representation represents a long value.]]>
  61756. </doc>
  61757. </method>
  61758. <method name="addNextValue"
  61759. abstract="false" native="false" synchronized="false"
  61760. static="false" final="false" visibility="public"
  61761. deprecated="not deprecated">
  61762. <param name="newVal" type="long"/>
  61763. <doc>
  61764. <![CDATA[add a value to the aggregator
  61765. @param newVal
  61766. a long value.]]>
  61767. </doc>
  61768. </method>
  61769. <method name="getVal" return="long"
  61770. abstract="false" native="false" synchronized="false"
  61771. static="false" final="false" visibility="public"
  61772. deprecated="not deprecated">
  61773. <doc>
  61774. <![CDATA[@return the aggregated value]]>
  61775. </doc>
  61776. </method>
  61777. <method name="getReport" return="java.lang.String"
  61778. abstract="false" native="false" synchronized="false"
  61779. static="false" final="false" visibility="public"
  61780. deprecated="not deprecated">
  61781. <doc>
  61782. <![CDATA[@return the string representation of the aggregated value]]>
  61783. </doc>
  61784. </method>
  61785. <method name="reset"
  61786. abstract="false" native="false" synchronized="false"
  61787. static="false" final="false" visibility="public"
  61788. deprecated="not deprecated">
  61789. <doc>
  61790. <![CDATA[reset the aggregator]]>
  61791. </doc>
  61792. </method>
  61793. <method name="getCombinerOutput" return="java.util.ArrayList"
  61794. abstract="false" native="false" synchronized="false"
  61795. static="false" final="false" visibility="public"
  61796. deprecated="not deprecated">
  61797. <doc>
  61798. <![CDATA[@return return an array of one element. The element is a string
  61799. representation of the aggregated value. The return value is
  61800. expected to be used by the a combiner.]]>
  61801. </doc>
  61802. </method>
  61803. <doc>
  61804. <![CDATA[This class implements a value aggregator that maintain the maximum of
  61805. a sequence of long values.]]>
  61806. </doc>
  61807. </class>
  61808. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  61809. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  61810. <class name="LongValueMin" extends="java.lang.Object"
  61811. abstract="false"
  61812. static="false" final="false" visibility="public"
  61813. deprecated="not deprecated">
  61814. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  61815. <constructor name="LongValueMin"
  61816. static="false" final="false" visibility="public"
  61817. deprecated="not deprecated">
  61818. <doc>
  61819. <![CDATA[the default constructor]]>
  61820. </doc>
  61821. </constructor>
  61822. <method name="addNextValue"
  61823. abstract="false" native="false" synchronized="false"
  61824. static="false" final="false" visibility="public"
  61825. deprecated="not deprecated">
  61826. <param name="val" type="java.lang.Object"/>
  61827. <doc>
  61828. <![CDATA[add a value to the aggregator
  61829. @param val
  61830. an object whose string representation represents a long value.]]>
  61831. </doc>
  61832. </method>
  61833. <method name="addNextValue"
  61834. abstract="false" native="false" synchronized="false"
  61835. static="false" final="false" visibility="public"
  61836. deprecated="not deprecated">
  61837. <param name="newVal" type="long"/>
  61838. <doc>
  61839. <![CDATA[add a value to the aggregator
  61840. @param newVal
  61841. a long value.]]>
  61842. </doc>
  61843. </method>
  61844. <method name="getVal" return="long"
  61845. abstract="false" native="false" synchronized="false"
  61846. static="false" final="false" visibility="public"
  61847. deprecated="not deprecated">
  61848. <doc>
  61849. <![CDATA[@return the aggregated value]]>
  61850. </doc>
  61851. </method>
  61852. <method name="getReport" return="java.lang.String"
  61853. abstract="false" native="false" synchronized="false"
  61854. static="false" final="false" visibility="public"
  61855. deprecated="not deprecated">
  61856. <doc>
  61857. <![CDATA[@return the string representation of the aggregated value]]>
  61858. </doc>
  61859. </method>
  61860. <method name="reset"
  61861. abstract="false" native="false" synchronized="false"
  61862. static="false" final="false" visibility="public"
  61863. deprecated="not deprecated">
  61864. <doc>
  61865. <![CDATA[reset the aggregator]]>
  61866. </doc>
  61867. </method>
  61868. <method name="getCombinerOutput" return="java.util.ArrayList"
  61869. abstract="false" native="false" synchronized="false"
  61870. static="false" final="false" visibility="public"
  61871. deprecated="not deprecated">
  61872. <doc>
  61873. <![CDATA[@return return an array of one element. The element is a string
  61874. representation of the aggregated value. The return value is
  61875. expected to be used by the a combiner.]]>
  61876. </doc>
  61877. </method>
  61878. <doc>
  61879. <![CDATA[This class implements a value aggregator that maintain the minimum of
  61880. a sequence of long values.]]>
  61881. </doc>
  61882. </class>
  61883. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  61884. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  61885. <class name="LongValueSum" extends="java.lang.Object"
  61886. abstract="false"
  61887. static="false" final="false" visibility="public"
  61888. deprecated="not deprecated">
  61889. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  61890. <constructor name="LongValueSum"
  61891. static="false" final="false" visibility="public"
  61892. deprecated="not deprecated">
  61893. <doc>
  61894. <![CDATA[the default constructor]]>
  61895. </doc>
  61896. </constructor>
  61897. <method name="addNextValue"
  61898. abstract="false" native="false" synchronized="false"
  61899. static="false" final="false" visibility="public"
  61900. deprecated="not deprecated">
  61901. <param name="val" type="java.lang.Object"/>
  61902. <doc>
  61903. <![CDATA[add a value to the aggregator
  61904. @param val
  61905. an object whose string representation represents a long value.]]>
  61906. </doc>
  61907. </method>
  61908. <method name="addNextValue"
  61909. abstract="false" native="false" synchronized="false"
  61910. static="false" final="false" visibility="public"
  61911. deprecated="not deprecated">
  61912. <param name="val" type="long"/>
  61913. <doc>
  61914. <![CDATA[add a value to the aggregator
  61915. @param val
  61916. a long value.]]>
  61917. </doc>
  61918. </method>
  61919. <method name="getSum" return="long"
  61920. abstract="false" native="false" synchronized="false"
  61921. static="false" final="false" visibility="public"
  61922. deprecated="not deprecated">
  61923. <doc>
  61924. <![CDATA[@return the aggregated value]]>
  61925. </doc>
  61926. </method>
  61927. <method name="getReport" return="java.lang.String"
  61928. abstract="false" native="false" synchronized="false"
  61929. static="false" final="false" visibility="public"
  61930. deprecated="not deprecated">
  61931. <doc>
  61932. <![CDATA[@return the string representation of the aggregated value]]>
  61933. </doc>
  61934. </method>
  61935. <method name="reset"
  61936. abstract="false" native="false" synchronized="false"
  61937. static="false" final="false" visibility="public"
  61938. deprecated="not deprecated">
  61939. <doc>
  61940. <![CDATA[reset the aggregator]]>
  61941. </doc>
  61942. </method>
  61943. <method name="getCombinerOutput" return="java.util.ArrayList"
  61944. abstract="false" native="false" synchronized="false"
  61945. static="false" final="false" visibility="public"
  61946. deprecated="not deprecated">
  61947. <doc>
  61948. <![CDATA[@return return an array of one element. The element is a string
  61949. representation of the aggregated value. The return value is
  61950. expected to be used by the a combiner.]]>
  61951. </doc>
  61952. </method>
  61953. <doc>
  61954. <![CDATA[This class implements a value aggregator that sums up
  61955. a sequence of long values.]]>
  61956. </doc>
  61957. </class>
  61958. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  61959. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  61960. <class name="StringValueMax" extends="java.lang.Object"
  61961. abstract="false"
  61962. static="false" final="false" visibility="public"
  61963. deprecated="not deprecated">
  61964. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  61965. <constructor name="StringValueMax"
  61966. static="false" final="false" visibility="public"
  61967. deprecated="not deprecated">
  61968. <doc>
  61969. <![CDATA[the default constructor]]>
  61970. </doc>
  61971. </constructor>
  61972. <method name="addNextValue"
  61973. abstract="false" native="false" synchronized="false"
  61974. static="false" final="false" visibility="public"
  61975. deprecated="not deprecated">
  61976. <param name="val" type="java.lang.Object"/>
  61977. <doc>
  61978. <![CDATA[add a value to the aggregator
  61979. @param val
  61980. a string.]]>
  61981. </doc>
  61982. </method>
  61983. <method name="getVal" return="java.lang.String"
  61984. abstract="false" native="false" synchronized="false"
  61985. static="false" final="false" visibility="public"
  61986. deprecated="not deprecated">
  61987. <doc>
  61988. <![CDATA[@return the aggregated value]]>
  61989. </doc>
  61990. </method>
  61991. <method name="getReport" return="java.lang.String"
  61992. abstract="false" native="false" synchronized="false"
  61993. static="false" final="false" visibility="public"
  61994. deprecated="not deprecated">
  61995. <doc>
  61996. <![CDATA[@return the string representation of the aggregated value]]>
  61997. </doc>
  61998. </method>
  61999. <method name="reset"
  62000. abstract="false" native="false" synchronized="false"
  62001. static="false" final="false" visibility="public"
  62002. deprecated="not deprecated">
  62003. <doc>
  62004. <![CDATA[reset the aggregator]]>
  62005. </doc>
  62006. </method>
  62007. <method name="getCombinerOutput" return="java.util.ArrayList"
  62008. abstract="false" native="false" synchronized="false"
  62009. static="false" final="false" visibility="public"
  62010. deprecated="not deprecated">
  62011. <doc>
  62012. <![CDATA[@return return an array of one element. The element is a string
  62013. representation of the aggregated value. The return value is
  62014. expected to be used by the a combiner.]]>
  62015. </doc>
  62016. </method>
  62017. <doc>
  62018. <![CDATA[This class implements a value aggregator that maintain the biggest of
  62019. a sequence of strings.]]>
  62020. </doc>
  62021. </class>
  62022. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  62023. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  62024. <class name="StringValueMin" extends="java.lang.Object"
  62025. abstract="false"
  62026. static="false" final="false" visibility="public"
  62027. deprecated="not deprecated">
  62028. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62029. <constructor name="StringValueMin"
  62030. static="false" final="false" visibility="public"
  62031. deprecated="not deprecated">
  62032. <doc>
  62033. <![CDATA[the default constructor]]>
  62034. </doc>
  62035. </constructor>
  62036. <method name="addNextValue"
  62037. abstract="false" native="false" synchronized="false"
  62038. static="false" final="false" visibility="public"
  62039. deprecated="not deprecated">
  62040. <param name="val" type="java.lang.Object"/>
  62041. <doc>
  62042. <![CDATA[add a value to the aggregator
  62043. @param val
  62044. a string.]]>
  62045. </doc>
  62046. </method>
  62047. <method name="getVal" return="java.lang.String"
  62048. abstract="false" native="false" synchronized="false"
  62049. static="false" final="false" visibility="public"
  62050. deprecated="not deprecated">
  62051. <doc>
  62052. <![CDATA[@return the aggregated value]]>
  62053. </doc>
  62054. </method>
  62055. <method name="getReport" return="java.lang.String"
  62056. abstract="false" native="false" synchronized="false"
  62057. static="false" final="false" visibility="public"
  62058. deprecated="not deprecated">
  62059. <doc>
  62060. <![CDATA[@return the string representation of the aggregated value]]>
  62061. </doc>
  62062. </method>
  62063. <method name="reset"
  62064. abstract="false" native="false" synchronized="false"
  62065. static="false" final="false" visibility="public"
  62066. deprecated="not deprecated">
  62067. <doc>
  62068. <![CDATA[reset the aggregator]]>
  62069. </doc>
  62070. </method>
  62071. <method name="getCombinerOutput" return="java.util.ArrayList"
  62072. abstract="false" native="false" synchronized="false"
  62073. static="false" final="false" visibility="public"
  62074. deprecated="not deprecated">
  62075. <doc>
  62076. <![CDATA[@return return an array of one element. The element is a string
  62077. representation of the aggregated value. The return value is
  62078. expected to be used by the a combiner.]]>
  62079. </doc>
  62080. </method>
  62081. <doc>
  62082. <![CDATA[This class implements a value aggregator that maintain the smallest of
  62083. a sequence of strings.]]>
  62084. </doc>
  62085. </class>
  62086. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  62087. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  62088. <class name="UniqValueCount" extends="java.lang.Object"
  62089. abstract="false"
  62090. static="false" final="false" visibility="public"
  62091. deprecated="not deprecated">
  62092. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62093. <constructor name="UniqValueCount"
  62094. static="false" final="false" visibility="public"
  62095. deprecated="not deprecated">
  62096. <doc>
  62097. <![CDATA[the default constructor]]>
  62098. </doc>
  62099. </constructor>
  62100. <constructor name="UniqValueCount" type="long"
  62101. static="false" final="false" visibility="public"
  62102. deprecated="not deprecated">
  62103. <doc>
  62104. <![CDATA[constructor
  62105. @param maxNum the limit in the number of unique values to keep.]]>
  62106. </doc>
  62107. </constructor>
  62108. <method name="setMaxItems" return="long"
  62109. abstract="false" native="false" synchronized="false"
  62110. static="false" final="false" visibility="public"
  62111. deprecated="not deprecated">
  62112. <param name="n" type="long"/>
  62113. <doc>
  62114. <![CDATA[Set the limit on the number of unique values
  62115. @param n the desired limit on the number of unique values
  62116. @return the new limit on the number of unique values]]>
  62117. </doc>
  62118. </method>
  62119. <method name="addNextValue"
  62120. abstract="false" native="false" synchronized="false"
  62121. static="false" final="false" visibility="public"
  62122. deprecated="not deprecated">
  62123. <param name="val" type="java.lang.Object"/>
  62124. <doc>
  62125. <![CDATA[add a value to the aggregator
  62126. @param val
  62127. an object.]]>
  62128. </doc>
  62129. </method>
  62130. <method name="getReport" return="java.lang.String"
  62131. abstract="false" native="false" synchronized="false"
  62132. static="false" final="false" visibility="public"
  62133. deprecated="not deprecated">
  62134. <doc>
  62135. <![CDATA[@return return the number of unique objects aggregated]]>
  62136. </doc>
  62137. </method>
  62138. <method name="getUniqueItems" return="java.util.Set"
  62139. abstract="false" native="false" synchronized="false"
  62140. static="false" final="false" visibility="public"
  62141. deprecated="not deprecated">
  62142. <doc>
  62143. <![CDATA[@return the set of the unique objects]]>
  62144. </doc>
  62145. </method>
  62146. <method name="reset"
  62147. abstract="false" native="false" synchronized="false"
  62148. static="false" final="false" visibility="public"
  62149. deprecated="not deprecated">
  62150. <doc>
  62151. <![CDATA[reset the aggregator]]>
  62152. </doc>
  62153. </method>
  62154. <method name="getCombinerOutput" return="java.util.ArrayList"
  62155. abstract="false" native="false" synchronized="false"
  62156. static="false" final="false" visibility="public"
  62157. deprecated="not deprecated">
  62158. <doc>
  62159. <![CDATA[@return return an array of the unique objects. The return value is
  62160. expected to be used by the a combiner.]]>
  62161. </doc>
  62162. </method>
  62163. <doc>
  62164. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  62165. </doc>
  62166. </class>
  62167. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  62168. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  62169. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  62170. abstract="false"
  62171. static="false" final="false" visibility="public"
  62172. deprecated="not deprecated">
  62173. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  62174. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  62175. static="false" final="false" visibility="public"
  62176. deprecated="not deprecated">
  62177. <doc>
  62178. <![CDATA[@param className the class name of the user defined descriptor class
  62179. @param job a configure object used for decriptor configuration]]>
  62180. </doc>
  62181. </constructor>
  62182. <method name="createInstance" return="java.lang.Object"
  62183. abstract="false" native="false" synchronized="false"
  62184. static="true" final="false" visibility="public"
  62185. deprecated="not deprecated">
  62186. <param name="className" type="java.lang.String"/>
  62187. <doc>
  62188. <![CDATA[Create an instance of the given class
  62189. @param className the name of the class
  62190. @return a dynamically created instance of the given class]]>
  62191. </doc>
  62192. </method>
  62193. <method name="generateKeyValPairs" return="java.util.ArrayList"
  62194. abstract="false" native="false" synchronized="false"
  62195. static="false" final="false" visibility="public"
  62196. deprecated="not deprecated">
  62197. <param name="key" type="java.lang.Object"/>
  62198. <param name="val" type="java.lang.Object"/>
  62199. <doc>
  62200. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  62201. by delegating the invocation to the real object.
  62202. @param key
  62203. input key
  62204. @param val
  62205. input value
  62206. @return a list of aggregation id/value pairs. An aggregation id encodes an
  62207. aggregation type which is used to guide the way to aggregate the
  62208. value in the reduce/combiner phrase of an Aggregate based job.]]>
  62209. </doc>
  62210. </method>
  62211. <method name="toString" return="java.lang.String"
  62212. abstract="false" native="false" synchronized="false"
  62213. static="false" final="false" visibility="public"
  62214. deprecated="not deprecated">
  62215. <doc>
  62216. <![CDATA[@return the string representation of this object.]]>
  62217. </doc>
  62218. </method>
  62219. <method name="configure"
  62220. abstract="false" native="false" synchronized="false"
  62221. static="false" final="false" visibility="public"
  62222. deprecated="not deprecated">
  62223. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62224. <doc>
  62225. <![CDATA[Do nothing.]]>
  62226. </doc>
  62227. </method>
  62228. <doc>
  62229. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  62230. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  62231. name of a user defined class that may be dynamically loaded. The other is to
  62232. deligate inviokations of generateKeyValPairs function to the created object.]]>
  62233. </doc>
  62234. </class>
  62235. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  62236. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  62237. <interface name="ValueAggregator" abstract="true"
  62238. static="false" final="false" visibility="public"
  62239. deprecated="not deprecated">
  62240. <method name="addNextValue"
  62241. abstract="false" native="false" synchronized="false"
  62242. static="false" final="false" visibility="public"
  62243. deprecated="not deprecated">
  62244. <param name="val" type="java.lang.Object"/>
  62245. <doc>
  62246. <![CDATA[add a value to the aggregator
  62247. @param val the value to be added]]>
  62248. </doc>
  62249. </method>
  62250. <method name="reset"
  62251. abstract="false" native="false" synchronized="false"
  62252. static="false" final="false" visibility="public"
  62253. deprecated="not deprecated">
  62254. <doc>
  62255. <![CDATA[reset the aggregator]]>
  62256. </doc>
  62257. </method>
  62258. <method name="getReport" return="java.lang.String"
  62259. abstract="false" native="false" synchronized="false"
  62260. static="false" final="false" visibility="public"
  62261. deprecated="not deprecated">
  62262. <doc>
  62263. <![CDATA[@return the string representation of the agregator]]>
  62264. </doc>
  62265. </method>
  62266. <method name="getCombinerOutput" return="java.util.ArrayList"
  62267. abstract="false" native="false" synchronized="false"
  62268. static="false" final="false" visibility="public"
  62269. deprecated="not deprecated">
  62270. <doc>
  62271. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  62272. </doc>
  62273. </method>
  62274. <doc>
  62275. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  62276. </doc>
  62277. </interface>
  62278. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  62279. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  62280. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  62281. abstract="false"
  62282. static="false" final="false" visibility="public"
  62283. deprecated="not deprecated">
  62284. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  62285. <constructor name="ValueAggregatorBaseDescriptor"
  62286. static="false" final="false" visibility="public"
  62287. deprecated="not deprecated">
  62288. </constructor>
  62289. <method name="generateEntry" return="java.util.Map.Entry"
  62290. abstract="false" native="false" synchronized="false"
  62291. static="true" final="false" visibility="public"
  62292. deprecated="not deprecated">
  62293. <param name="type" type="java.lang.String"/>
  62294. <param name="id" type="java.lang.String"/>
  62295. <param name="val" type="org.apache.hadoop.io.Text"/>
  62296. <doc>
  62297. <![CDATA[@param type the aggregation type
  62298. @param id the aggregation id
  62299. @param val the val associated with the id to be aggregated
  62300. @return an Entry whose key is the aggregation id prefixed with
  62301. the aggregation type.]]>
  62302. </doc>
  62303. </method>
  62304. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  62305. abstract="false" native="false" synchronized="false"
  62306. static="true" final="false" visibility="public"
  62307. deprecated="not deprecated">
  62308. <param name="type" type="java.lang.String"/>
  62309. <doc>
  62310. <![CDATA[@param type the aggregation type
  62311. @return a value aggregator of the given type.]]>
  62312. </doc>
  62313. </method>
  62314. <method name="generateKeyValPairs" return="java.util.ArrayList"
  62315. abstract="false" native="false" synchronized="false"
  62316. static="false" final="false" visibility="public"
  62317. deprecated="not deprecated">
  62318. <param name="key" type="java.lang.Object"/>
  62319. <param name="val" type="java.lang.Object"/>
  62320. <doc>
  62321. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  62322. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  62323. its aggregation id. If the input is a file split,
  62324. the second id of the same type will be generated too, with the file name
  62325. as its aggregation id. This achieves the behavior of counting the total number
  62326. of records in the input data, and the number of records in each input file.
  62327. @param key
  62328. input key
  62329. @param val
  62330. input value
  62331. @return a list of aggregation id/value pairs. An aggregation id encodes an
  62332. aggregation type which is used to guide the way to aggregate the
  62333. value in the reduce/combiner phrase of an Aggregate based job.]]>
  62334. </doc>
  62335. </method>
  62336. <method name="configure"
  62337. abstract="false" native="false" synchronized="false"
  62338. static="false" final="false" visibility="public"
  62339. deprecated="not deprecated">
  62340. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62341. <doc>
  62342. <![CDATA[get the input file name.
  62343. @param job a job configuration object]]>
  62344. </doc>
  62345. </method>
  62346. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  62347. transient="false" volatile="false"
  62348. static="true" final="true" visibility="public"
  62349. deprecated="not deprecated">
  62350. </field>
  62351. <field name="LONG_VALUE_SUM" type="java.lang.String"
  62352. transient="false" volatile="false"
  62353. static="true" final="true" visibility="public"
  62354. deprecated="not deprecated">
  62355. </field>
  62356. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  62357. transient="false" volatile="false"
  62358. static="true" final="true" visibility="public"
  62359. deprecated="not deprecated">
  62360. </field>
  62361. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  62362. transient="false" volatile="false"
  62363. static="true" final="true" visibility="public"
  62364. deprecated="not deprecated">
  62365. </field>
  62366. <field name="LONG_VALUE_MAX" type="java.lang.String"
  62367. transient="false" volatile="false"
  62368. static="true" final="true" visibility="public"
  62369. deprecated="not deprecated">
  62370. </field>
  62371. <field name="LONG_VALUE_MIN" type="java.lang.String"
  62372. transient="false" volatile="false"
  62373. static="true" final="true" visibility="public"
  62374. deprecated="not deprecated">
  62375. </field>
  62376. <field name="STRING_VALUE_MAX" type="java.lang.String"
  62377. transient="false" volatile="false"
  62378. static="true" final="true" visibility="public"
  62379. deprecated="not deprecated">
  62380. </field>
  62381. <field name="STRING_VALUE_MIN" type="java.lang.String"
  62382. transient="false" volatile="false"
  62383. static="true" final="true" visibility="public"
  62384. deprecated="not deprecated">
  62385. </field>
  62386. <field name="inputFile" type="java.lang.String"
  62387. transient="false" volatile="false"
  62388. static="false" final="false" visibility="public"
  62389. deprecated="not deprecated">
  62390. </field>
  62391. <doc>
  62392. <![CDATA[This class implements the common functionalities of
  62393. the subclasses of ValueAggregatorDescriptor class.]]>
  62394. </doc>
  62395. </class>
  62396. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  62397. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  62398. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  62399. abstract="false"
  62400. static="false" final="false" visibility="public"
  62401. deprecated="not deprecated">
  62402. <constructor name="ValueAggregatorCombiner"
  62403. static="false" final="false" visibility="public"
  62404. deprecated="not deprecated">
  62405. </constructor>
  62406. <method name="configure"
  62407. abstract="false" native="false" synchronized="false"
  62408. static="false" final="false" visibility="public"
  62409. deprecated="not deprecated">
  62410. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62411. <doc>
  62412. <![CDATA[Combiner does not need to configure.]]>
  62413. </doc>
  62414. </method>
  62415. <method name="reduce"
  62416. abstract="false" native="false" synchronized="false"
  62417. static="false" final="false" visibility="public"
  62418. deprecated="not deprecated">
  62419. <param name="key" type="org.apache.hadoop.io.Text"/>
  62420. <param name="values" type="java.util.Iterator"/>
  62421. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62422. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62423. <exception name="IOException" type="java.io.IOException"/>
  62424. <doc>
  62425. <![CDATA[Combines values for a given key.
  62426. @param key the key is expected to be a Text object, whose prefix indicates
  62427. the type of aggregation to aggregate the values.
  62428. @param values the values to combine
  62429. @param output to collect combined values]]>
  62430. </doc>
  62431. </method>
  62432. <method name="close"
  62433. abstract="false" native="false" synchronized="false"
  62434. static="false" final="false" visibility="public"
  62435. deprecated="not deprecated">
  62436. <exception name="IOException" type="java.io.IOException"/>
  62437. <doc>
  62438. <![CDATA[Do nothing.]]>
  62439. </doc>
  62440. </method>
  62441. <method name="map"
  62442. abstract="false" native="false" synchronized="false"
  62443. static="false" final="false" visibility="public"
  62444. deprecated="not deprecated">
  62445. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  62446. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  62447. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  62448. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  62449. <exception name="IOException" type="java.io.IOException"/>
  62450. <doc>
  62451. <![CDATA[Do nothing. Should not be called.]]>
  62452. </doc>
  62453. </method>
  62454. <doc>
  62455. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  62456. </doc>
  62457. </class>
  62458. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  62459. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  62460. <interface name="ValueAggregatorDescriptor" abstract="true"
  62461. static="false" final="false" visibility="public"
  62462. deprecated="not deprecated">
  62463. <method name="generateKeyValPairs" return="java.util.ArrayList"
  62464. abstract="false" native="false" synchronized="false"
  62465. static="false" final="false" visibility="public"
  62466. deprecated="not deprecated">
  62467. <param name="key" type="java.lang.Object"/>
  62468. <param name="val" type="java.lang.Object"/>
  62469. <doc>
  62470. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  62471. This function is usually called by the mapper of an Aggregate based job.
  62472. @param key
  62473. input key
  62474. @param val
  62475. input value
  62476. @return a list of aggregation id/value pairs. An aggregation id encodes an
  62477. aggregation type which is used to guide the way to aggregate the
  62478. value in the reduce/combiner phrase of an Aggregate based job.]]>
  62479. </doc>
  62480. </method>
  62481. <method name="configure"
  62482. abstract="false" native="false" synchronized="false"
  62483. static="false" final="false" visibility="public"
  62484. deprecated="not deprecated">
  62485. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62486. <doc>
  62487. <![CDATA[Configure the object
  62488. @param job
  62489. a JobConf object that may contain the information that can be used
  62490. to configure the object.]]>
  62491. </doc>
  62492. </method>
  62493. <field name="TYPE_SEPARATOR" type="java.lang.String"
  62494. transient="false" volatile="false"
  62495. static="true" final="true" visibility="public"
  62496. deprecated="not deprecated">
  62497. </field>
  62498. <field name="ONE" type="org.apache.hadoop.io.Text"
  62499. transient="false" volatile="false"
  62500. static="true" final="true" visibility="public"
  62501. deprecated="not deprecated">
  62502. </field>
  62503. <doc>
  62504. <![CDATA[This interface defines the contract a value aggregator descriptor must
  62505. support. Such a descriptor can be configured with a JobConf object. Its main
  62506. function is to generate a list of aggregation-id/value pairs. An aggregation
  62507. id encodes an aggregation type which is used to guide the way to aggregate
  62508. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  62509. an Aggregate based map/reduce job may create one or more of
  62510. ValueAggregatorDescriptor objects at configuration time. For each input
  62511. key/value pair, the mapper will use those objects to create aggregation
  62512. id/value pairs.]]>
  62513. </doc>
  62514. </interface>
  62515. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  62516. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  62517. <class name="ValueAggregatorJob" extends="java.lang.Object"
  62518. abstract="false"
  62519. static="false" final="false" visibility="public"
  62520. deprecated="not deprecated">
  62521. <constructor name="ValueAggregatorJob"
  62522. static="false" final="false" visibility="public"
  62523. deprecated="not deprecated">
  62524. </constructor>
  62525. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  62526. abstract="false" native="false" synchronized="false"
  62527. static="true" final="false" visibility="public"
  62528. deprecated="not deprecated">
  62529. <param name="args" type="java.lang.String[]"/>
  62530. <param name="descriptors" type="java.lang.Class[]"/>
  62531. <exception name="IOException" type="java.io.IOException"/>
  62532. </method>
  62533. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  62534. abstract="false" native="false" synchronized="false"
  62535. static="true" final="false" visibility="public"
  62536. deprecated="not deprecated">
  62537. <param name="args" type="java.lang.String[]"/>
  62538. <exception name="IOException" type="java.io.IOException"/>
  62539. </method>
  62540. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  62541. abstract="false" native="false" synchronized="false"
  62542. static="true" final="false" visibility="public"
  62543. deprecated="not deprecated">
  62544. <param name="args" type="java.lang.String[]"/>
  62545. <exception name="IOException" type="java.io.IOException"/>
  62546. <doc>
  62547. <![CDATA[Create an Aggregate based map/reduce job.
  62548. @param args the arguments used for job creation. Generic hadoop
  62549. arguments are accepted.
  62550. @return a JobConf object ready for submission.
  62551. @throws IOException
  62552. @see GenericOptionsParser]]>
  62553. </doc>
  62554. </method>
  62555. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  62556. abstract="false" native="false" synchronized="false"
  62557. static="true" final="false" visibility="public"
  62558. deprecated="not deprecated">
  62559. <param name="args" type="java.lang.String[]"/>
  62560. <param name="descriptors" type="java.lang.Class[]"/>
  62561. <exception name="IOException" type="java.io.IOException"/>
  62562. </method>
  62563. <method name="setAggregatorDescriptors"
  62564. abstract="false" native="false" synchronized="false"
  62565. static="true" final="false" visibility="public"
  62566. deprecated="not deprecated">
  62567. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62568. <param name="descriptors" type="java.lang.Class[]"/>
  62569. </method>
  62570. <method name="main"
  62571. abstract="false" native="false" synchronized="false"
  62572. static="true" final="false" visibility="public"
  62573. deprecated="not deprecated">
  62574. <param name="args" type="java.lang.String[]"/>
  62575. <exception name="IOException" type="java.io.IOException"/>
  62576. <doc>
  62577. <![CDATA[create and run an Aggregate based map/reduce job.
  62578. @param args the arguments used for job creation
  62579. @throws IOException]]>
  62580. </doc>
  62581. </method>
  62582. <doc>
  62583. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  62584. framework. The Aggregate is a specialization of map/reduce framework,
  62585. specilizing for performing various simple aggregations.
  62586. Generally speaking, in order to implement an application using Map/Reduce
  62587. model, the developer is to implement Map and Reduce functions (and possibly
  62588. combine function). However, a lot of applications related to counting and
  62589. statistics computing have very similar characteristics. Aggregate abstracts
  62590. out the general patterns of these functions and implementing those patterns.
  62591. In particular, the package provides generic mapper/redducer/combiner classes,
  62592. and a set of built-in value aggregators, and a generic utility class that
  62593. helps user create map/reduce jobs using the generic class. The built-in
  62594. aggregators include:
  62595. sum over numeric values count the number of distinct values compute the
  62596. histogram of values compute the minimum, maximum, media,average, standard
  62597. deviation of numeric values
  62598. The developer using Aggregate will need only to provide a plugin class
  62599. conforming to the following interface:
  62600. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  62601. generateKeyValPairs(Object key, Object value); public void
  62602. configure(JobConfjob); }
  62603. The package also provides a base class, ValueAggregatorBaseDescriptor,
  62604. implementing the above interface. The user can extend the base class and
  62605. implement generateKeyValPairs accordingly.
  62606. The primary work of generateKeyValPairs is to emit one or more key/value
  62607. pairs based on the input key/value pair. The key in an output key/value pair
  62608. encode two pieces of information: aggregation type and aggregation id. The
  62609. value will be aggregated onto the aggregation id according the aggregation
  62610. type.
  62611. This class offers a function to generate a map/reduce job using Aggregate
  62612. framework. The function takes the following parameters: input directory spec
  62613. input format (text or sequence file) output directory a file specifying the
  62614. user plugin class]]>
  62615. </doc>
  62616. </class>
  62617. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  62618. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  62619. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  62620. abstract="true"
  62621. static="false" final="false" visibility="public"
  62622. deprecated="not deprecated">
  62623. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62624. <implements name="org.apache.hadoop.mapred.Reducer"/>
  62625. <constructor name="ValueAggregatorJobBase"
  62626. static="false" final="false" visibility="public"
  62627. deprecated="not deprecated">
  62628. </constructor>
  62629. <method name="configure"
  62630. abstract="false" native="false" synchronized="false"
  62631. static="false" final="false" visibility="public"
  62632. deprecated="not deprecated">
  62633. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62634. </method>
  62635. <method name="logSpec"
  62636. abstract="false" native="false" synchronized="false"
  62637. static="false" final="false" visibility="protected"
  62638. deprecated="not deprecated">
  62639. </method>
  62640. <method name="close"
  62641. abstract="false" native="false" synchronized="false"
  62642. static="false" final="false" visibility="public"
  62643. deprecated="not deprecated">
  62644. <exception name="IOException" type="java.io.IOException"/>
  62645. </method>
  62646. <field name="aggregatorDescriptorList" type="java.util.ArrayList"
  62647. transient="false" volatile="false"
  62648. static="false" final="false" visibility="protected"
  62649. deprecated="not deprecated">
  62650. </field>
  62651. <doc>
  62652. <![CDATA[This abstract class implements some common functionalities of the
  62653. the generic mapper, reducer and combiner classes of Aggregate.]]>
  62654. </doc>
  62655. </class>
  62656. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  62657. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  62658. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  62659. abstract="false"
  62660. static="false" final="false" visibility="public"
  62661. deprecated="not deprecated">
  62662. <constructor name="ValueAggregatorMapper"
  62663. static="false" final="false" visibility="public"
  62664. deprecated="not deprecated">
  62665. </constructor>
  62666. <method name="map"
  62667. abstract="false" native="false" synchronized="false"
  62668. static="false" final="false" visibility="public"
  62669. deprecated="not deprecated">
  62670. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  62671. <param name="value" type="org.apache.hadoop.io.Writable"/>
  62672. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62673. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62674. <exception name="IOException" type="java.io.IOException"/>
  62675. <doc>
  62676. <![CDATA[the map function. It iterates through the value aggregator descriptor
  62677. list to generate aggregation id/value pairs and emit them.]]>
  62678. </doc>
  62679. </method>
  62680. <method name="reduce"
  62681. abstract="false" native="false" synchronized="false"
  62682. static="false" final="false" visibility="public"
  62683. deprecated="not deprecated">
  62684. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  62685. <param name="arg1" type="java.util.Iterator"/>
  62686. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  62687. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  62688. <exception name="IOException" type="java.io.IOException"/>
  62689. <doc>
  62690. <![CDATA[Do nothing. Should not be called.]]>
  62691. </doc>
  62692. </method>
  62693. <doc>
  62694. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  62695. </doc>
  62696. </class>
  62697. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  62698. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  62699. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  62700. abstract="false"
  62701. static="false" final="false" visibility="public"
  62702. deprecated="not deprecated">
  62703. <constructor name="ValueAggregatorReducer"
  62704. static="false" final="false" visibility="public"
  62705. deprecated="not deprecated">
  62706. </constructor>
  62707. <method name="reduce"
  62708. abstract="false" native="false" synchronized="false"
  62709. static="false" final="false" visibility="public"
  62710. deprecated="not deprecated">
  62711. <param name="key" type="org.apache.hadoop.io.Text"/>
  62712. <param name="values" type="java.util.Iterator"/>
  62713. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62714. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62715. <exception name="IOException" type="java.io.IOException"/>
  62716. <doc>
  62717. <![CDATA[@param key
  62718. the key is expected to be a Text object, whose prefix indicates
  62719. the type of aggregation to aggregate the values. In effect, data
  62720. driven computing is achieved. It is assumed that each aggregator's
  62721. getReport method emits appropriate output for the aggregator. This
  62722. may be further customiized.
  62723. @value the values to be aggregated]]>
  62724. </doc>
  62725. </method>
  62726. <method name="map"
  62727. abstract="false" native="false" synchronized="false"
  62728. static="false" final="false" visibility="public"
  62729. deprecated="not deprecated">
  62730. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  62731. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  62732. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  62733. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  62734. <exception name="IOException" type="java.io.IOException"/>
  62735. <doc>
  62736. <![CDATA[Do nothing. Should not be called]]>
  62737. </doc>
  62738. </method>
  62739. <doc>
  62740. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  62741. </doc>
  62742. </class>
  62743. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  62744. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  62745. <class name="ValueHistogram" extends="java.lang.Object"
  62746. abstract="false"
  62747. static="false" final="false" visibility="public"
  62748. deprecated="not deprecated">
  62749. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62750. <constructor name="ValueHistogram"
  62751. static="false" final="false" visibility="public"
  62752. deprecated="not deprecated">
  62753. </constructor>
  62754. <method name="addNextValue"
  62755. abstract="false" native="false" synchronized="false"
  62756. static="false" final="false" visibility="public"
  62757. deprecated="not deprecated">
  62758. <param name="val" type="java.lang.Object"/>
  62759. <doc>
  62760. <![CDATA[add the given val to the aggregator.
  62761. @param val the value to be added. It is expected to be a string
  62762. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  62763. </doc>
  62764. </method>
  62765. <method name="getReport" return="java.lang.String"
  62766. abstract="false" native="false" synchronized="false"
  62767. static="false" final="false" visibility="public"
  62768. deprecated="not deprecated">
  62769. <doc>
  62770. <![CDATA[@return the string representation of this aggregator.
  62771. It includes the following basic statistics of the histogram:
  62772. the number of unique values
  62773. the minimum value
  62774. the media value
  62775. the maximum value
  62776. the average value
  62777. the standard deviation]]>
  62778. </doc>
  62779. </method>
  62780. <method name="getReportDetails" return="java.lang.String"
  62781. abstract="false" native="false" synchronized="false"
  62782. static="false" final="false" visibility="public"
  62783. deprecated="not deprecated">
  62784. <doc>
  62785. <![CDATA[@return a string representation of the list of value/frequence pairs of
  62786. the histogram]]>
  62787. </doc>
  62788. </method>
  62789. <method name="getCombinerOutput" return="java.util.ArrayList"
  62790. abstract="false" native="false" synchronized="false"
  62791. static="false" final="false" visibility="public"
  62792. deprecated="not deprecated">
  62793. <doc>
  62794. <![CDATA[@return a list value/frequence pairs.
  62795. The return value is expected to be used by the reducer.]]>
  62796. </doc>
  62797. </method>
  62798. <method name="getReportItems" return="java.util.TreeMap"
  62799. abstract="false" native="false" synchronized="false"
  62800. static="false" final="false" visibility="public"
  62801. deprecated="not deprecated">
  62802. <doc>
  62803. <![CDATA[@return a TreeMap representation of the histogram]]>
  62804. </doc>
  62805. </method>
  62806. <method name="reset"
  62807. abstract="false" native="false" synchronized="false"
  62808. static="false" final="false" visibility="public"
  62809. deprecated="not deprecated">
  62810. <doc>
  62811. <![CDATA[reset the aggregator]]>
  62812. </doc>
  62813. </method>
  62814. <doc>
  62815. <![CDATA[This class implements a value aggregator that computes the
  62816. histogram of a sequence of strings.]]>
  62817. </doc>
  62818. </class>
  62819. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  62820. </package>
  62821. <package name="org.apache.hadoop.mapred.lib.db">
  62822. <!-- start class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  62823. <class name="DBConfiguration" extends="java.lang.Object"
  62824. abstract="false"
  62825. static="false" final="false" visibility="public"
  62826. deprecated="not deprecated">
  62827. <method name="configureDB"
  62828. abstract="false" native="false" synchronized="false"
  62829. static="true" final="false" visibility="public"
  62830. deprecated="not deprecated">
  62831. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62832. <param name="driverClass" type="java.lang.String"/>
  62833. <param name="dbUrl" type="java.lang.String"/>
  62834. <param name="userName" type="java.lang.String"/>
  62835. <param name="passwd" type="java.lang.String"/>
  62836. <doc>
  62837. <![CDATA[Sets the DB access related fields in the JobConf.
  62838. @param job the job
  62839. @param driverClass JDBC Driver class name
  62840. @param dbUrl JDBC DB access URL.
  62841. @param userName DB access username
  62842. @param passwd DB access passwd]]>
  62843. </doc>
  62844. </method>
  62845. <method name="configureDB"
  62846. abstract="false" native="false" synchronized="false"
  62847. static="true" final="false" visibility="public"
  62848. deprecated="not deprecated">
  62849. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62850. <param name="driverClass" type="java.lang.String"/>
  62851. <param name="dbUrl" type="java.lang.String"/>
  62852. <doc>
  62853. <![CDATA[Sets the DB access related fields in the JobConf.
  62854. @param job the job
  62855. @param driverClass JDBC Driver class name
  62856. @param dbUrl JDBC DB access URL.]]>
  62857. </doc>
  62858. </method>
  62859. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  62860. transient="false" volatile="false"
  62861. static="true" final="true" visibility="public"
  62862. deprecated="not deprecated">
  62863. <doc>
  62864. <![CDATA[The JDBC Driver class name]]>
  62865. </doc>
  62866. </field>
  62867. <field name="URL_PROPERTY" type="java.lang.String"
  62868. transient="false" volatile="false"
  62869. static="true" final="true" visibility="public"
  62870. deprecated="not deprecated">
  62871. <doc>
  62872. <![CDATA[JDBC Database access URL]]>
  62873. </doc>
  62874. </field>
  62875. <field name="USERNAME_PROPERTY" type="java.lang.String"
  62876. transient="false" volatile="false"
  62877. static="true" final="true" visibility="public"
  62878. deprecated="not deprecated">
  62879. <doc>
  62880. <![CDATA[User name to access the database]]>
  62881. </doc>
  62882. </field>
  62883. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  62884. transient="false" volatile="false"
  62885. static="true" final="true" visibility="public"
  62886. deprecated="not deprecated">
  62887. <doc>
  62888. <![CDATA[Password to access the database]]>
  62889. </doc>
  62890. </field>
  62891. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  62892. transient="false" volatile="false"
  62893. static="true" final="true" visibility="public"
  62894. deprecated="not deprecated">
  62895. <doc>
  62896. <![CDATA[Input table name]]>
  62897. </doc>
  62898. </field>
  62899. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  62900. transient="false" volatile="false"
  62901. static="true" final="true" visibility="public"
  62902. deprecated="not deprecated">
  62903. <doc>
  62904. <![CDATA[Field names in the Input table]]>
  62905. </doc>
  62906. </field>
  62907. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  62908. transient="false" volatile="false"
  62909. static="true" final="true" visibility="public"
  62910. deprecated="not deprecated">
  62911. <doc>
  62912. <![CDATA[WHERE clause in the input SELECT statement]]>
  62913. </doc>
  62914. </field>
  62915. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  62916. transient="false" volatile="false"
  62917. static="true" final="true" visibility="public"
  62918. deprecated="not deprecated">
  62919. <doc>
  62920. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  62921. </doc>
  62922. </field>
  62923. <field name="INPUT_QUERY" type="java.lang.String"
  62924. transient="false" volatile="false"
  62925. static="true" final="true" visibility="public"
  62926. deprecated="not deprecated">
  62927. <doc>
  62928. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  62929. </doc>
  62930. </field>
  62931. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  62932. transient="false" volatile="false"
  62933. static="true" final="true" visibility="public"
  62934. deprecated="not deprecated">
  62935. <doc>
  62936. <![CDATA[Input query to get the count of records]]>
  62937. </doc>
  62938. </field>
  62939. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  62940. transient="false" volatile="false"
  62941. static="true" final="true" visibility="public"
  62942. deprecated="not deprecated">
  62943. <doc>
  62944. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  62945. </doc>
  62946. </field>
  62947. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  62948. transient="false" volatile="false"
  62949. static="true" final="true" visibility="public"
  62950. deprecated="not deprecated">
  62951. <doc>
  62952. <![CDATA[Output table name]]>
  62953. </doc>
  62954. </field>
  62955. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  62956. transient="false" volatile="false"
  62957. static="true" final="true" visibility="public"
  62958. deprecated="not deprecated">
  62959. <doc>
  62960. <![CDATA[Field names in the Output table]]>
  62961. </doc>
  62962. </field>
  62963. <doc>
  62964. <![CDATA[A container for configuration property names for jobs with DB input/output.
  62965. <br>
  62966. The job can be configured using the static methods in this class,
  62967. {@link DBInputFormat}, and {@link DBOutputFormat}.
  62968. <p>
  62969. Alternatively, the properties can be set in the configuration with proper
  62970. values.
  62971. @see DBConfiguration#configureDB(JobConf, String, String, String, String)
  62972. @see DBInputFormat#setInput(JobConf, Class, String, String)
  62973. @see DBInputFormat#setInput(JobConf, Class, String, String, String, String...)
  62974. @see DBOutputFormat#setOutput(JobConf, String, String...)]]>
  62975. </doc>
  62976. </class>
  62977. <!-- end class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  62978. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  62979. <class name="DBInputFormat" extends="java.lang.Object"
  62980. abstract="false"
  62981. static="false" final="false" visibility="public"
  62982. deprecated="not deprecated">
  62983. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  62984. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  62985. <constructor name="DBInputFormat"
  62986. static="false" final="false" visibility="public"
  62987. deprecated="not deprecated">
  62988. </constructor>
  62989. <method name="configure"
  62990. abstract="false" native="false" synchronized="false"
  62991. static="false" final="false" visibility="public"
  62992. deprecated="not deprecated">
  62993. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62994. <doc>
  62995. <![CDATA[{@inheritDoc}]]>
  62996. </doc>
  62997. </method>
  62998. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  62999. abstract="false" native="false" synchronized="false"
  63000. static="false" final="false" visibility="public"
  63001. deprecated="not deprecated">
  63002. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  63003. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63004. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63005. <exception name="IOException" type="java.io.IOException"/>
  63006. <doc>
  63007. <![CDATA[{@inheritDoc}]]>
  63008. </doc>
  63009. </method>
  63010. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  63011. abstract="false" native="false" synchronized="false"
  63012. static="false" final="false" visibility="public"
  63013. deprecated="not deprecated">
  63014. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63015. <param name="chunks" type="int"/>
  63016. <exception name="IOException" type="java.io.IOException"/>
  63017. <doc>
  63018. <![CDATA[{@inheritDoc}]]>
  63019. </doc>
  63020. </method>
  63021. <method name="getCountQuery" return="java.lang.String"
  63022. abstract="false" native="false" synchronized="false"
  63023. static="false" final="false" visibility="protected"
  63024. deprecated="not deprecated">
  63025. <doc>
  63026. <![CDATA[Returns the query for getting the total number of rows,
  63027. subclasses can override this for custom behaviour.]]>
  63028. </doc>
  63029. </method>
  63030. <method name="setInput"
  63031. abstract="false" native="false" synchronized="false"
  63032. static="true" final="false" visibility="public"
  63033. deprecated="not deprecated">
  63034. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63035. <param name="inputClass" type="java.lang.Class"/>
  63036. <param name="tableName" type="java.lang.String"/>
  63037. <param name="conditions" type="java.lang.String"/>
  63038. <param name="orderBy" type="java.lang.String"/>
  63039. <param name="fieldNames" type="java.lang.String[]"/>
  63040. <doc>
  63041. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  63042. @param job The job
  63043. @param inputClass the class object implementing DBWritable, which is the
  63044. Java object holding tuple fields.
  63045. @param tableName The table to read data from
  63046. @param conditions The condition which to select data with, eg. '(updated >
  63047. 20070101 AND length > 0)'
  63048. @param orderBy the fieldNames in the orderBy clause.
  63049. @param fieldNames The field names in the table
  63050. @see #setInput(JobConf, Class, String, String)]]>
  63051. </doc>
  63052. </method>
  63053. <method name="setInput"
  63054. abstract="false" native="false" synchronized="false"
  63055. static="true" final="false" visibility="public"
  63056. deprecated="not deprecated">
  63057. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63058. <param name="inputClass" type="java.lang.Class"/>
  63059. <param name="inputQuery" type="java.lang.String"/>
  63060. <param name="inputCountQuery" type="java.lang.String"/>
  63061. <doc>
  63062. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  63063. @param job The job
  63064. @param inputClass the class object implementing DBWritable, which is the
  63065. Java object holding tuple fields.
  63066. @param inputQuery the input query to select fields. Example :
  63067. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  63068. @param inputCountQuery the input query that returns the number of records in
  63069. the table.
  63070. Example : "SELECT COUNT(f1) FROM Mytable"
  63071. @see #setInput(JobConf, Class, String, String, String, String...)]]>
  63072. </doc>
  63073. </method>
  63074. <doc>
  63075. <![CDATA[A InputFormat that reads input data from an SQL table.
  63076. <p>
  63077. DBInputFormat emits LongWritables containing the record number as
  63078. key and DBWritables as value.
  63079. The SQL query, and input class can be using one of the two
  63080. setInput methods.]]>
  63081. </doc>
  63082. </class>
  63083. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  63084. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  63085. <class name="DBInputFormat.DBInputSplit" extends="java.lang.Object"
  63086. abstract="false"
  63087. static="true" final="false" visibility="protected"
  63088. deprecated="not deprecated">
  63089. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  63090. <constructor name="DBInputFormat.DBInputSplit"
  63091. static="false" final="false" visibility="public"
  63092. deprecated="not deprecated">
  63093. <doc>
  63094. <![CDATA[Default Constructor]]>
  63095. </doc>
  63096. </constructor>
  63097. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  63098. static="false" final="false" visibility="public"
  63099. deprecated="not deprecated">
  63100. <doc>
  63101. <![CDATA[Convenience Constructor
  63102. @param start the index of the first row to select
  63103. @param end the index of the last row to select]]>
  63104. </doc>
  63105. </constructor>
  63106. <method name="getLocations" return="java.lang.String[]"
  63107. abstract="false" native="false" synchronized="false"
  63108. static="false" final="false" visibility="public"
  63109. deprecated="not deprecated">
  63110. <exception name="IOException" type="java.io.IOException"/>
  63111. <doc>
  63112. <![CDATA[{@inheritDoc}]]>
  63113. </doc>
  63114. </method>
  63115. <method name="getStart" return="long"
  63116. abstract="false" native="false" synchronized="false"
  63117. static="false" final="false" visibility="public"
  63118. deprecated="not deprecated">
  63119. <doc>
  63120. <![CDATA[@return The index of the first row to select]]>
  63121. </doc>
  63122. </method>
  63123. <method name="getEnd" return="long"
  63124. abstract="false" native="false" synchronized="false"
  63125. static="false" final="false" visibility="public"
  63126. deprecated="not deprecated">
  63127. <doc>
  63128. <![CDATA[@return The index of the last row to select]]>
  63129. </doc>
  63130. </method>
  63131. <method name="getLength" return="long"
  63132. abstract="false" native="false" synchronized="false"
  63133. static="false" final="false" visibility="public"
  63134. deprecated="not deprecated">
  63135. <exception name="IOException" type="java.io.IOException"/>
  63136. <doc>
  63137. <![CDATA[@return The total row count in this split]]>
  63138. </doc>
  63139. </method>
  63140. <method name="readFields"
  63141. abstract="false" native="false" synchronized="false"
  63142. static="false" final="false" visibility="public"
  63143. deprecated="not deprecated">
  63144. <param name="input" type="java.io.DataInput"/>
  63145. <exception name="IOException" type="java.io.IOException"/>
  63146. <doc>
  63147. <![CDATA[{@inheritDoc}]]>
  63148. </doc>
  63149. </method>
  63150. <method name="write"
  63151. abstract="false" native="false" synchronized="false"
  63152. static="false" final="false" visibility="public"
  63153. deprecated="not deprecated">
  63154. <param name="output" type="java.io.DataOutput"/>
  63155. <exception name="IOException" type="java.io.IOException"/>
  63156. <doc>
  63157. <![CDATA[{@inheritDoc}]]>
  63158. </doc>
  63159. </method>
  63160. <doc>
  63161. <![CDATA[A InputSplit that spans a set of rows]]>
  63162. </doc>
  63163. </class>
  63164. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  63165. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  63166. <class name="DBInputFormat.DBRecordReader" extends="java.lang.Object"
  63167. abstract="false"
  63168. static="false" final="false" visibility="protected"
  63169. deprecated="not deprecated">
  63170. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  63171. <constructor name="DBInputFormat.DBRecordReader" type="org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.mapred.JobConf"
  63172. static="false" final="false" visibility="protected"
  63173. deprecated="not deprecated">
  63174. <exception name="SQLException" type="java.sql.SQLException"/>
  63175. <doc>
  63176. <![CDATA[@param split The InputSplit to read data for
  63177. @throws SQLException]]>
  63178. </doc>
  63179. </constructor>
  63180. <method name="getSelectQuery" return="java.lang.String"
  63181. abstract="false" native="false" synchronized="false"
  63182. static="false" final="false" visibility="protected"
  63183. deprecated="not deprecated">
  63184. <doc>
  63185. <![CDATA[Returns the query for selecting the records,
  63186. subclasses can override this for custom behaviour.]]>
  63187. </doc>
  63188. </method>
  63189. <method name="close"
  63190. abstract="false" native="false" synchronized="false"
  63191. static="false" final="false" visibility="public"
  63192. deprecated="not deprecated">
  63193. <exception name="IOException" type="java.io.IOException"/>
  63194. <doc>
  63195. <![CDATA[{@inheritDoc}]]>
  63196. </doc>
  63197. </method>
  63198. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  63199. abstract="false" native="false" synchronized="false"
  63200. static="false" final="false" visibility="public"
  63201. deprecated="not deprecated">
  63202. <doc>
  63203. <![CDATA[{@inheritDoc}]]>
  63204. </doc>
  63205. </method>
  63206. <method name="createValue" return="org.apache.hadoop.mapred.lib.db.DBWritable"
  63207. abstract="false" native="false" synchronized="false"
  63208. static="false" final="false" visibility="public"
  63209. deprecated="not deprecated">
  63210. <doc>
  63211. <![CDATA[{@inheritDoc}]]>
  63212. </doc>
  63213. </method>
  63214. <method name="getPos" return="long"
  63215. abstract="false" native="false" synchronized="false"
  63216. static="false" final="false" visibility="public"
  63217. deprecated="not deprecated">
  63218. <exception name="IOException" type="java.io.IOException"/>
  63219. <doc>
  63220. <![CDATA[{@inheritDoc}]]>
  63221. </doc>
  63222. </method>
  63223. <method name="getProgress" return="float"
  63224. abstract="false" native="false" synchronized="false"
  63225. static="false" final="false" visibility="public"
  63226. deprecated="not deprecated">
  63227. <exception name="IOException" type="java.io.IOException"/>
  63228. <doc>
  63229. <![CDATA[{@inheritDoc}]]>
  63230. </doc>
  63231. </method>
  63232. <method name="next" return="boolean"
  63233. abstract="false" native="false" synchronized="false"
  63234. static="false" final="false" visibility="public"
  63235. deprecated="not deprecated">
  63236. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  63237. <param name="value" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  63238. <exception name="IOException" type="java.io.IOException"/>
  63239. <doc>
  63240. <![CDATA[{@inheritDoc}]]>
  63241. </doc>
  63242. </method>
  63243. <doc>
  63244. <![CDATA[A RecordReader that reads records from a SQL table.
  63245. Emits LongWritables containing the record number as
  63246. key and DBWritables as value.]]>
  63247. </doc>
  63248. </class>
  63249. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  63250. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  63251. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  63252. abstract="false"
  63253. static="true" final="false" visibility="public"
  63254. deprecated="not deprecated">
  63255. <implements name="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  63256. <implements name="org.apache.hadoop.io.Writable"/>
  63257. <constructor name="DBInputFormat.NullDBWritable"
  63258. static="false" final="false" visibility="public"
  63259. deprecated="not deprecated">
  63260. </constructor>
  63261. <method name="readFields"
  63262. abstract="false" native="false" synchronized="false"
  63263. static="false" final="false" visibility="public"
  63264. deprecated="not deprecated">
  63265. <param name="in" type="java.io.DataInput"/>
  63266. <exception name="IOException" type="java.io.IOException"/>
  63267. </method>
  63268. <method name="readFields"
  63269. abstract="false" native="false" synchronized="false"
  63270. static="false" final="false" visibility="public"
  63271. deprecated="not deprecated">
  63272. <param name="arg0" type="java.sql.ResultSet"/>
  63273. <exception name="SQLException" type="java.sql.SQLException"/>
  63274. </method>
  63275. <method name="write"
  63276. abstract="false" native="false" synchronized="false"
  63277. static="false" final="false" visibility="public"
  63278. deprecated="not deprecated">
  63279. <param name="out" type="java.io.DataOutput"/>
  63280. <exception name="IOException" type="java.io.IOException"/>
  63281. </method>
  63282. <method name="write"
  63283. abstract="false" native="false" synchronized="false"
  63284. static="false" final="false" visibility="public"
  63285. deprecated="not deprecated">
  63286. <param name="arg0" type="java.sql.PreparedStatement"/>
  63287. <exception name="SQLException" type="java.sql.SQLException"/>
  63288. </method>
  63289. <doc>
  63290. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  63291. </doc>
  63292. </class>
  63293. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  63294. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  63295. <class name="DBOutputFormat" extends="java.lang.Object"
  63296. abstract="false"
  63297. static="false" final="false" visibility="public"
  63298. deprecated="not deprecated">
  63299. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  63300. <constructor name="DBOutputFormat"
  63301. static="false" final="false" visibility="public"
  63302. deprecated="not deprecated">
  63303. </constructor>
  63304. <method name="constructQuery" return="java.lang.String"
  63305. abstract="false" native="false" synchronized="false"
  63306. static="false" final="false" visibility="protected"
  63307. deprecated="not deprecated">
  63308. <param name="table" type="java.lang.String"/>
  63309. <param name="fieldNames" type="java.lang.String[]"/>
  63310. <doc>
  63311. <![CDATA[Constructs the query used as the prepared statement to insert data.
  63312. @param table
  63313. the table to insert into
  63314. @param fieldNames
  63315. the fields to insert into. If field names are unknown, supply an
  63316. array of nulls.]]>
  63317. </doc>
  63318. </method>
  63319. <method name="checkOutputSpecs"
  63320. abstract="false" native="false" synchronized="false"
  63321. static="false" final="false" visibility="public"
  63322. deprecated="not deprecated">
  63323. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  63324. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63325. <exception name="IOException" type="java.io.IOException"/>
  63326. <doc>
  63327. <![CDATA[{@inheritDoc}]]>
  63328. </doc>
  63329. </method>
  63330. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63331. abstract="false" native="false" synchronized="false"
  63332. static="false" final="false" visibility="public"
  63333. deprecated="not deprecated">
  63334. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  63335. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63336. <param name="name" type="java.lang.String"/>
  63337. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  63338. <exception name="IOException" type="java.io.IOException"/>
  63339. <doc>
  63340. <![CDATA[{@inheritDoc}]]>
  63341. </doc>
  63342. </method>
  63343. <method name="setOutput"
  63344. abstract="false" native="false" synchronized="false"
  63345. static="true" final="false" visibility="public"
  63346. deprecated="not deprecated">
  63347. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63348. <param name="tableName" type="java.lang.String"/>
  63349. <param name="fieldNames" type="java.lang.String[]"/>
  63350. <doc>
  63351. <![CDATA[Initializes the reduce-part of the job with the appropriate output settings
  63352. @param job
  63353. The job
  63354. @param tableName
  63355. The table to insert data into
  63356. @param fieldNames
  63357. The field names in the table. If unknown, supply the appropriate
  63358. number of nulls.]]>
  63359. </doc>
  63360. </method>
  63361. <doc>
  63362. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  63363. <p>
  63364. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  63365. key has a type extending DBWritable. Returned {@link RecordWriter}
  63366. writes <b>only the key</b> to the database with a batch SQL query.]]>
  63367. </doc>
  63368. </class>
  63369. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  63370. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  63371. <class name="DBOutputFormat.DBRecordWriter" extends="java.lang.Object"
  63372. abstract="false"
  63373. static="false" final="false" visibility="protected"
  63374. deprecated="not deprecated">
  63375. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  63376. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  63377. static="false" final="false" visibility="protected"
  63378. deprecated="not deprecated">
  63379. <exception name="SQLException" type="java.sql.SQLException"/>
  63380. </constructor>
  63381. <method name="close"
  63382. abstract="false" native="false" synchronized="false"
  63383. static="false" final="false" visibility="public"
  63384. deprecated="not deprecated">
  63385. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63386. <exception name="IOException" type="java.io.IOException"/>
  63387. <doc>
  63388. <![CDATA[{@inheritDoc}]]>
  63389. </doc>
  63390. </method>
  63391. <method name="write"
  63392. abstract="false" native="false" synchronized="false"
  63393. static="false" final="false" visibility="public"
  63394. deprecated="not deprecated">
  63395. <param name="key" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  63396. <param name="value" type="java.lang.Object"/>
  63397. <exception name="IOException" type="java.io.IOException"/>
  63398. <doc>
  63399. <![CDATA[{@inheritDoc}]]>
  63400. </doc>
  63401. </method>
  63402. <doc>
  63403. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  63404. </doc>
  63405. </class>
  63406. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  63407. <!-- start interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  63408. <interface name="DBWritable" abstract="true"
  63409. static="false" final="false" visibility="public"
  63410. deprecated="not deprecated">
  63411. <method name="write"
  63412. abstract="false" native="false" synchronized="false"
  63413. static="false" final="false" visibility="public"
  63414. deprecated="not deprecated">
  63415. <param name="statement" type="java.sql.PreparedStatement"/>
  63416. <exception name="SQLException" type="java.sql.SQLException"/>
  63417. <doc>
  63418. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  63419. @param statement the statement that the fields are put into.
  63420. @throws SQLException]]>
  63421. </doc>
  63422. </method>
  63423. <method name="readFields"
  63424. abstract="false" native="false" synchronized="false"
  63425. static="false" final="false" visibility="public"
  63426. deprecated="not deprecated">
  63427. <param name="resultSet" type="java.sql.ResultSet"/>
  63428. <exception name="SQLException" type="java.sql.SQLException"/>
  63429. <doc>
  63430. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  63431. @param resultSet the {@link ResultSet} to get the fields from.
  63432. @throws SQLException]]>
  63433. </doc>
  63434. </method>
  63435. <doc>
  63436. <![CDATA[Objects that are read from/written to a database should implement
  63437. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  63438. except that the {@link #write(PreparedStatement)} method takes a
  63439. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  63440. takes a {@link ResultSet}.
  63441. <p>
  63442. Implementations are responsible for writing the fields of the object
  63443. to PreparedStatement, and reading the fields of the object from the
  63444. ResultSet.
  63445. <p>Example:</p>
  63446. If we have the following table in the database :
  63447. <pre>
  63448. CREATE TABLE MyTable (
  63449. counter INTEGER NOT NULL,
  63450. timestamp BIGINT NOT NULL,
  63451. );
  63452. </pre>
  63453. then we can read/write the tuples from/to the table with :
  63454. <p><pre>
  63455. public class MyWritable implements Writable, DBWritable {
  63456. // Some data
  63457. private int counter;
  63458. private long timestamp;
  63459. //Writable#write() implementation
  63460. public void write(DataOutput out) throws IOException {
  63461. out.writeInt(counter);
  63462. out.writeLong(timestamp);
  63463. }
  63464. //Writable#readFields() implementation
  63465. public void readFields(DataInput in) throws IOException {
  63466. counter = in.readInt();
  63467. timestamp = in.readLong();
  63468. }
  63469. public void write(PreparedStatement statement) throws SQLException {
  63470. statement.setInt(1, counter);
  63471. statement.setLong(2, timestamp);
  63472. }
  63473. public void readFields(ResultSet resultSet) throws SQLException {
  63474. counter = resultSet.getInt(1);
  63475. timestamp = resultSet.getLong(2);
  63476. }
  63477. }
  63478. </pre></p>]]>
  63479. </doc>
  63480. </interface>
  63481. <!-- end interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  63482. </package>
  63483. <package name="org.apache.hadoop.mapred.pipes">
  63484. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  63485. <class name="Submitter" extends="org.apache.hadoop.conf.Configured"
  63486. abstract="false"
  63487. static="false" final="false" visibility="public"
  63488. deprecated="not deprecated">
  63489. <implements name="org.apache.hadoop.util.Tool"/>
  63490. <constructor name="Submitter"
  63491. static="false" final="false" visibility="public"
  63492. deprecated="not deprecated">
  63493. </constructor>
  63494. <constructor name="Submitter" type="org.apache.hadoop.conf.Configuration"
  63495. static="false" final="false" visibility="public"
  63496. deprecated="not deprecated">
  63497. </constructor>
  63498. <method name="getExecutable" return="java.lang.String"
  63499. abstract="false" native="false" synchronized="false"
  63500. static="true" final="false" visibility="public"
  63501. deprecated="not deprecated">
  63502. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63503. <doc>
  63504. <![CDATA[Get the URI of the application's executable.
  63505. @param conf
  63506. @return the URI where the application's executable is located]]>
  63507. </doc>
  63508. </method>
  63509. <method name="setExecutable"
  63510. abstract="false" native="false" synchronized="false"
  63511. static="true" final="false" visibility="public"
  63512. deprecated="not deprecated">
  63513. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63514. <param name="executable" type="java.lang.String"/>
  63515. <doc>
  63516. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  63517. location.
  63518. @param conf
  63519. @param executable The URI of the application's executable.]]>
  63520. </doc>
  63521. </method>
  63522. <method name="setIsJavaRecordReader"
  63523. abstract="false" native="false" synchronized="false"
  63524. static="true" final="false" visibility="public"
  63525. deprecated="not deprecated">
  63526. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63527. <param name="value" type="boolean"/>
  63528. <doc>
  63529. <![CDATA[Set whether the job is using a Java RecordReader.
  63530. @param conf the configuration to modify
  63531. @param value the new value]]>
  63532. </doc>
  63533. </method>
  63534. <method name="getIsJavaRecordReader" return="boolean"
  63535. abstract="false" native="false" synchronized="false"
  63536. static="true" final="false" visibility="public"
  63537. deprecated="not deprecated">
  63538. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63539. <doc>
  63540. <![CDATA[Check whether the job is using a Java RecordReader
  63541. @param conf the configuration to check
  63542. @return is it a Java RecordReader?]]>
  63543. </doc>
  63544. </method>
  63545. <method name="setIsJavaMapper"
  63546. abstract="false" native="false" synchronized="false"
  63547. static="true" final="false" visibility="public"
  63548. deprecated="not deprecated">
  63549. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63550. <param name="value" type="boolean"/>
  63551. <doc>
  63552. <![CDATA[Set whether the Mapper is written in Java.
  63553. @param conf the configuration to modify
  63554. @param value the new value]]>
  63555. </doc>
  63556. </method>
  63557. <method name="getIsJavaMapper" return="boolean"
  63558. abstract="false" native="false" synchronized="false"
  63559. static="true" final="false" visibility="public"
  63560. deprecated="not deprecated">
  63561. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63562. <doc>
  63563. <![CDATA[Check whether the job is using a Java Mapper.
  63564. @param conf the configuration to check
  63565. @return is it a Java Mapper?]]>
  63566. </doc>
  63567. </method>
  63568. <method name="setIsJavaReducer"
  63569. abstract="false" native="false" synchronized="false"
  63570. static="true" final="false" visibility="public"
  63571. deprecated="not deprecated">
  63572. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63573. <param name="value" type="boolean"/>
  63574. <doc>
  63575. <![CDATA[Set whether the Reducer is written in Java.
  63576. @param conf the configuration to modify
  63577. @param value the new value]]>
  63578. </doc>
  63579. </method>
  63580. <method name="getIsJavaReducer" return="boolean"
  63581. abstract="false" native="false" synchronized="false"
  63582. static="true" final="false" visibility="public"
  63583. deprecated="not deprecated">
  63584. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63585. <doc>
  63586. <![CDATA[Check whether the job is using a Java Reducer.
  63587. @param conf the configuration to check
  63588. @return is it a Java Reducer?]]>
  63589. </doc>
  63590. </method>
  63591. <method name="setIsJavaRecordWriter"
  63592. abstract="false" native="false" synchronized="false"
  63593. static="true" final="false" visibility="public"
  63594. deprecated="not deprecated">
  63595. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63596. <param name="value" type="boolean"/>
  63597. <doc>
  63598. <![CDATA[Set whether the job will use a Java RecordWriter.
  63599. @param conf the configuration to modify
  63600. @param value the new value to set]]>
  63601. </doc>
  63602. </method>
  63603. <method name="getIsJavaRecordWriter" return="boolean"
  63604. abstract="false" native="false" synchronized="false"
  63605. static="true" final="false" visibility="public"
  63606. deprecated="not deprecated">
  63607. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63608. <doc>
  63609. <![CDATA[Will the reduce use a Java RecordWriter?
  63610. @param conf the configuration to check
  63611. @return true, if the output of the job will be written by Java]]>
  63612. </doc>
  63613. </method>
  63614. <method name="getKeepCommandFile" return="boolean"
  63615. abstract="false" native="false" synchronized="false"
  63616. static="true" final="false" visibility="public"
  63617. deprecated="not deprecated">
  63618. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63619. <doc>
  63620. <![CDATA[Does the user want to keep the command file for debugging? If this is
  63621. true, pipes will write a copy of the command data to a file in the
  63622. task directory named "downlink.data", which may be used to run the C++
  63623. program under the debugger. You probably also want to set
  63624. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  63625. being deleted.
  63626. To run using the data file, set the environment variable
  63627. "hadoop.pipes.command.file" to point to the file.
  63628. @param conf the configuration to check
  63629. @return will the framework save the command file?]]>
  63630. </doc>
  63631. </method>
  63632. <method name="setKeepCommandFile"
  63633. abstract="false" native="false" synchronized="false"
  63634. static="true" final="false" visibility="public"
  63635. deprecated="not deprecated">
  63636. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63637. <param name="keep" type="boolean"/>
  63638. <doc>
  63639. <![CDATA[Set whether to keep the command file for debugging
  63640. @param conf the configuration to modify
  63641. @param keep the new value]]>
  63642. </doc>
  63643. </method>
  63644. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  63645. abstract="false" native="false" synchronized="false"
  63646. static="true" final="false" visibility="public"
  63647. deprecated="Use {@link Submitter#runJob(JobConf)}">
  63648. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63649. <exception name="IOException" type="java.io.IOException"/>
  63650. <doc>
  63651. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  63652. to the job to run under pipes are made to the configuration.
  63653. @param conf the job to submit to the cluster (MODIFIED)
  63654. @throws IOException
  63655. @deprecated Use {@link Submitter#runJob(JobConf)}]]>
  63656. </doc>
  63657. </method>
  63658. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  63659. abstract="false" native="false" synchronized="false"
  63660. static="true" final="false" visibility="public"
  63661. deprecated="not deprecated">
  63662. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63663. <exception name="IOException" type="java.io.IOException"/>
  63664. <doc>
  63665. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  63666. to the job to run under pipes are made to the configuration.
  63667. @param conf the job to submit to the cluster (MODIFIED)
  63668. @throws IOException]]>
  63669. </doc>
  63670. </method>
  63671. <method name="jobSubmit" return="org.apache.hadoop.mapred.RunningJob"
  63672. abstract="false" native="false" synchronized="false"
  63673. static="true" final="false" visibility="public"
  63674. deprecated="not deprecated">
  63675. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63676. <exception name="IOException" type="java.io.IOException"/>
  63677. <doc>
  63678. <![CDATA[Submit a job to the Map-Reduce framework.
  63679. This returns a handle to the {@link RunningJob} which can be used to track
  63680. the running-job.
  63681. @param conf the job configuration.
  63682. @return a handle to the {@link RunningJob} which can be used to track the
  63683. running-job.
  63684. @throws IOException]]>
  63685. </doc>
  63686. </method>
  63687. <method name="run" return="int"
  63688. abstract="false" native="false" synchronized="false"
  63689. static="false" final="false" visibility="public"
  63690. deprecated="not deprecated">
  63691. <param name="args" type="java.lang.String[]"/>
  63692. <exception name="Exception" type="java.lang.Exception"/>
  63693. </method>
  63694. <method name="main"
  63695. abstract="false" native="false" synchronized="false"
  63696. static="true" final="false" visibility="public"
  63697. deprecated="not deprecated">
  63698. <param name="args" type="java.lang.String[]"/>
  63699. <exception name="Exception" type="java.lang.Exception"/>
  63700. <doc>
  63701. <![CDATA[Submit a pipes job based on the command line arguments.
  63702. @param args]]>
  63703. </doc>
  63704. </method>
  63705. <field name="LOG" type="org.apache.commons.logging.Log"
  63706. transient="false" volatile="false"
  63707. static="true" final="true" visibility="protected"
  63708. deprecated="not deprecated">
  63709. </field>
  63710. <doc>
  63711. <![CDATA[The main entry point and job submitter. It may either be used as a command
  63712. line-based or API-based method to launch Pipes jobs.]]>
  63713. </doc>
  63714. </class>
  63715. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  63716. </package>
  63717. <package name="org.apache.hadoop.mapred.tools">
  63718. <!-- start class org.apache.hadoop.mapred.tools.MRAdmin -->
  63719. <class name="MRAdmin" extends="org.apache.hadoop.conf.Configured"
  63720. abstract="false"
  63721. static="false" final="false" visibility="public"
  63722. deprecated="not deprecated">
  63723. <implements name="org.apache.hadoop.util.Tool"/>
  63724. <constructor name="MRAdmin"
  63725. static="false" final="false" visibility="public"
  63726. deprecated="not deprecated">
  63727. </constructor>
  63728. <constructor name="MRAdmin" type="org.apache.hadoop.conf.Configuration"
  63729. static="false" final="false" visibility="public"
  63730. deprecated="not deprecated">
  63731. </constructor>
  63732. <method name="refreshSuperUserGroupsConfiguration" return="int"
  63733. abstract="false" native="false" synchronized="false"
  63734. static="false" final="false" visibility="public"
  63735. deprecated="not deprecated">
  63736. <exception name="IOException" type="java.io.IOException"/>
  63737. <doc>
  63738. <![CDATA[refreshSuperUserGroupsConfiguration {@link JobTracker}.
  63739. @return exitcode 0 on success, non-zero on failure
  63740. @throws IOException]]>
  63741. </doc>
  63742. </method>
  63743. <method name="run" return="int"
  63744. abstract="false" native="false" synchronized="false"
  63745. static="false" final="false" visibility="public"
  63746. deprecated="not deprecated">
  63747. <param name="args" type="java.lang.String[]"/>
  63748. <exception name="Exception" type="java.lang.Exception"/>
  63749. </method>
  63750. <method name="main"
  63751. abstract="false" native="false" synchronized="false"
  63752. static="true" final="false" visibility="public"
  63753. deprecated="not deprecated">
  63754. <param name="args" type="java.lang.String[]"/>
  63755. <exception name="Exception" type="java.lang.Exception"/>
  63756. </method>
  63757. <doc>
  63758. <![CDATA[Administrative access to Hadoop Map-Reduce.
  63759. Currently it only provides the ability to connect to the {@link JobTracker}
  63760. and 1) refresh the service-level authorization policy, 2) refresh queue acl
  63761. properties.]]>
  63762. </doc>
  63763. </class>
  63764. <!-- end class org.apache.hadoop.mapred.tools.MRAdmin -->
  63765. </package>
  63766. <package name="org.apache.hadoop.mapreduce">
  63767. <!-- start class org.apache.hadoop.mapreduce.ClusterMetrics -->
  63768. <class name="ClusterMetrics" extends="java.lang.Object"
  63769. abstract="false"
  63770. static="false" final="false" visibility="public"
  63771. deprecated="not deprecated">
  63772. <implements name="org.apache.hadoop.io.Writable"/>
  63773. <constructor name="ClusterMetrics"
  63774. static="false" final="false" visibility="public"
  63775. deprecated="not deprecated">
  63776. </constructor>
  63777. <constructor name="ClusterMetrics" type="int, int, int, int, int, int, int, int, int, int, int, int, int"
  63778. static="false" final="false" visibility="public"
  63779. deprecated="not deprecated">
  63780. </constructor>
  63781. <method name="getRunningMaps" return="int"
  63782. abstract="false" native="false" synchronized="false"
  63783. static="false" final="false" visibility="public"
  63784. deprecated="not deprecated">
  63785. <doc>
  63786. <![CDATA[Get the number of running map tasks in the cluster.
  63787. @return running maps]]>
  63788. </doc>
  63789. </method>
  63790. <method name="getRunningReduces" return="int"
  63791. abstract="false" native="false" synchronized="false"
  63792. static="false" final="false" visibility="public"
  63793. deprecated="not deprecated">
  63794. <doc>
  63795. <![CDATA[Get the number of running reduce tasks in the cluster.
  63796. @return running reduces]]>
  63797. </doc>
  63798. </method>
  63799. <method name="getOccupiedMapSlots" return="int"
  63800. abstract="false" native="false" synchronized="false"
  63801. static="false" final="false" visibility="public"
  63802. deprecated="not deprecated">
  63803. <doc>
  63804. <![CDATA[Get number of occupied map slots in the cluster.
  63805. @return occupied map slot count]]>
  63806. </doc>
  63807. </method>
  63808. <method name="getOccupiedReduceSlots" return="int"
  63809. abstract="false" native="false" synchronized="false"
  63810. static="false" final="false" visibility="public"
  63811. deprecated="not deprecated">
  63812. <doc>
  63813. <![CDATA[Get the number of occupied reduce slots in the cluster.
  63814. @return occupied reduce slot count]]>
  63815. </doc>
  63816. </method>
  63817. <method name="getReservedMapSlots" return="int"
  63818. abstract="false" native="false" synchronized="false"
  63819. static="false" final="false" visibility="public"
  63820. deprecated="not deprecated">
  63821. <doc>
  63822. <![CDATA[Get number of reserved map slots in the cluster.
  63823. @return reserved map slot count]]>
  63824. </doc>
  63825. </method>
  63826. <method name="getReservedReduceSlots" return="int"
  63827. abstract="false" native="false" synchronized="false"
  63828. static="false" final="false" visibility="public"
  63829. deprecated="not deprecated">
  63830. <doc>
  63831. <![CDATA[Get the number of reserved reduce slots in the cluster.
  63832. @return reserved reduce slot count]]>
  63833. </doc>
  63834. </method>
  63835. <method name="getMapSlotCapacity" return="int"
  63836. abstract="false" native="false" synchronized="false"
  63837. static="false" final="false" visibility="public"
  63838. deprecated="not deprecated">
  63839. <doc>
  63840. <![CDATA[Get the total number of map slots in the cluster.
  63841. @return map slot capacity]]>
  63842. </doc>
  63843. </method>
  63844. <method name="getReduceSlotCapacity" return="int"
  63845. abstract="false" native="false" synchronized="false"
  63846. static="false" final="false" visibility="public"
  63847. deprecated="not deprecated">
  63848. <doc>
  63849. <![CDATA[Get the total number of reduce slots in the cluster.
  63850. @return reduce slot capacity]]>
  63851. </doc>
  63852. </method>
  63853. <method name="getTotalJobSubmissions" return="int"
  63854. abstract="false" native="false" synchronized="false"
  63855. static="false" final="false" visibility="public"
  63856. deprecated="not deprecated">
  63857. <doc>
  63858. <![CDATA[Get the total number of job submissions in the cluster.
  63859. @return total number of job submissions]]>
  63860. </doc>
  63861. </method>
  63862. <method name="getTaskTrackerCount" return="int"
  63863. abstract="false" native="false" synchronized="false"
  63864. static="false" final="false" visibility="public"
  63865. deprecated="not deprecated">
  63866. <doc>
  63867. <![CDATA[Get the number of active trackers in the cluster.
  63868. @return active tracker count.]]>
  63869. </doc>
  63870. </method>
  63871. <method name="getBlackListedTaskTrackerCount" return="int"
  63872. abstract="false" native="false" synchronized="false"
  63873. static="false" final="false" visibility="public"
  63874. deprecated="not deprecated">
  63875. <doc>
  63876. <![CDATA[Get the number of blacklisted trackers in the cluster.
  63877. @return blacklisted tracker count]]>
  63878. </doc>
  63879. </method>
  63880. <method name="getGrayListedTaskTrackerCount" return="int"
  63881. abstract="false" native="false" synchronized="false"
  63882. static="false" final="false" visibility="public"
  63883. deprecated="not deprecated">
  63884. <doc>
  63885. <![CDATA[Get the number of graylisted trackers in the cluster.
  63886. @return graylisted tracker count]]>
  63887. </doc>
  63888. </method>
  63889. <method name="getDecommissionedTaskTrackerCount" return="int"
  63890. abstract="false" native="false" synchronized="false"
  63891. static="false" final="false" visibility="public"
  63892. deprecated="not deprecated">
  63893. <doc>
  63894. <![CDATA[Get the number of decommissioned trackers in the cluster.
  63895. @return decommissioned tracker count]]>
  63896. </doc>
  63897. </method>
  63898. <method name="readFields"
  63899. abstract="false" native="false" synchronized="false"
  63900. static="false" final="false" visibility="public"
  63901. deprecated="not deprecated">
  63902. <param name="in" type="java.io.DataInput"/>
  63903. <exception name="IOException" type="java.io.IOException"/>
  63904. </method>
  63905. <method name="write"
  63906. abstract="false" native="false" synchronized="false"
  63907. static="false" final="false" visibility="public"
  63908. deprecated="not deprecated">
  63909. <param name="out" type="java.io.DataOutput"/>
  63910. <exception name="IOException" type="java.io.IOException"/>
  63911. </method>
  63912. <doc>
  63913. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  63914. <p><code>ClusterMetrics</code> provides clients with information such as:
  63915. <ol>
  63916. <li>
  63917. Size of the cluster.
  63918. </li>
  63919. <li>
  63920. Number of blacklisted and decommissioned trackers.
  63921. </li>
  63922. <li>
  63923. Slot capacity of the cluster.
  63924. </li>
  63925. <li>
  63926. The number of currently occupied/reserved map & reduce slots.
  63927. </li>
  63928. <li>
  63929. The number of currently running map & reduce tasks.
  63930. </li>
  63931. <li>
  63932. The number of job submissions.
  63933. </li>
  63934. </ol></p>]]>
  63935. </doc>
  63936. </class>
  63937. <!-- end class org.apache.hadoop.mapreduce.ClusterMetrics -->
  63938. <!-- start class org.apache.hadoop.mapreduce.Counter -->
  63939. <class name="Counter" extends="java.lang.Object"
  63940. abstract="false"
  63941. static="false" final="false" visibility="public"
  63942. deprecated="not deprecated">
  63943. <implements name="org.apache.hadoop.io.Writable"/>
  63944. <constructor name="Counter"
  63945. static="false" final="false" visibility="protected"
  63946. deprecated="not deprecated">
  63947. </constructor>
  63948. <constructor name="Counter" type="java.lang.String, java.lang.String"
  63949. static="false" final="false" visibility="protected"
  63950. deprecated="not deprecated">
  63951. </constructor>
  63952. <method name="setDisplayName"
  63953. abstract="false" native="false" synchronized="true"
  63954. static="false" final="false" visibility="protected"
  63955. deprecated="not deprecated">
  63956. <param name="displayName" type="java.lang.String"/>
  63957. </method>
  63958. <method name="readFields"
  63959. abstract="false" native="false" synchronized="true"
  63960. static="false" final="false" visibility="public"
  63961. deprecated="not deprecated">
  63962. <param name="in" type="java.io.DataInput"/>
  63963. <exception name="IOException" type="java.io.IOException"/>
  63964. <doc>
  63965. <![CDATA[Read the binary representation of the counter]]>
  63966. </doc>
  63967. </method>
  63968. <method name="write"
  63969. abstract="false" native="false" synchronized="true"
  63970. static="false" final="false" visibility="public"
  63971. deprecated="not deprecated">
  63972. <param name="out" type="java.io.DataOutput"/>
  63973. <exception name="IOException" type="java.io.IOException"/>
  63974. <doc>
  63975. <![CDATA[Write the binary representation of the counter]]>
  63976. </doc>
  63977. </method>
  63978. <method name="getName" return="java.lang.String"
  63979. abstract="false" native="false" synchronized="true"
  63980. static="false" final="false" visibility="public"
  63981. deprecated="not deprecated">
  63982. </method>
  63983. <method name="getDisplayName" return="java.lang.String"
  63984. abstract="false" native="false" synchronized="true"
  63985. static="false" final="false" visibility="public"
  63986. deprecated="not deprecated">
  63987. <doc>
  63988. <![CDATA[Get the name of the counter.
  63989. @return the user facing name of the counter]]>
  63990. </doc>
  63991. </method>
  63992. <method name="getValue" return="long"
  63993. abstract="false" native="false" synchronized="true"
  63994. static="false" final="false" visibility="public"
  63995. deprecated="not deprecated">
  63996. <doc>
  63997. <![CDATA[What is the current value of this counter?
  63998. @return the current value]]>
  63999. </doc>
  64000. </method>
  64001. <method name="setValue"
  64002. abstract="false" native="false" synchronized="true"
  64003. static="false" final="false" visibility="public"
  64004. deprecated="not deprecated">
  64005. <param name="value" type="long"/>
  64006. <doc>
  64007. <![CDATA[Set this counter by the given value
  64008. @param value the value to set]]>
  64009. </doc>
  64010. </method>
  64011. <method name="increment"
  64012. abstract="false" native="false" synchronized="true"
  64013. static="false" final="false" visibility="public"
  64014. deprecated="not deprecated">
  64015. <param name="incr" type="long"/>
  64016. <doc>
  64017. <![CDATA[Increment this counter by the given value
  64018. @param incr the value to increase this counter by]]>
  64019. </doc>
  64020. </method>
  64021. <method name="equals" return="boolean"
  64022. abstract="false" native="false" synchronized="true"
  64023. static="false" final="false" visibility="public"
  64024. deprecated="not deprecated">
  64025. <param name="genericRight" type="java.lang.Object"/>
  64026. </method>
  64027. <method name="hashCode" return="int"
  64028. abstract="false" native="false" synchronized="true"
  64029. static="false" final="false" visibility="public"
  64030. deprecated="not deprecated">
  64031. </method>
  64032. <doc>
  64033. <![CDATA[A named counter that tracks the progress of a map/reduce job.
  64034. <p><code>Counters</code> represent global counters, defined either by the
  64035. Map-Reduce framework or applications. Each <code>Counter</code> is named by
  64036. an {@link Enum} and has a long for the value.</p>
  64037. <p><code>Counters</code> are bunched into Groups, each comprising of
  64038. counters from a particular <code>Enum</code> class.]]>
  64039. </doc>
  64040. </class>
  64041. <!-- end class org.apache.hadoop.mapreduce.Counter -->
  64042. <!-- start class org.apache.hadoop.mapreduce.CounterGroup -->
  64043. <class name="CounterGroup" extends="java.lang.Object"
  64044. abstract="false"
  64045. static="false" final="false" visibility="public"
  64046. deprecated="not deprecated">
  64047. <implements name="org.apache.hadoop.io.Writable"/>
  64048. <implements name="java.lang.Iterable"/>
  64049. <constructor name="CounterGroup" type="java.lang.String"
  64050. static="false" final="false" visibility="protected"
  64051. deprecated="not deprecated">
  64052. </constructor>
  64053. <constructor name="CounterGroup" type="java.lang.String, java.lang.String"
  64054. static="false" final="false" visibility="protected"
  64055. deprecated="not deprecated">
  64056. </constructor>
  64057. <method name="getName" return="java.lang.String"
  64058. abstract="false" native="false" synchronized="true"
  64059. static="false" final="false" visibility="public"
  64060. deprecated="not deprecated">
  64061. <doc>
  64062. <![CDATA[Get the internal name of the group
  64063. @return the internal name]]>
  64064. </doc>
  64065. </method>
  64066. <method name="getDisplayName" return="java.lang.String"
  64067. abstract="false" native="false" synchronized="true"
  64068. static="false" final="false" visibility="public"
  64069. deprecated="not deprecated">
  64070. <doc>
  64071. <![CDATA[Get the display name of the group.
  64072. @return the human readable name]]>
  64073. </doc>
  64074. </method>
  64075. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64076. abstract="false" native="false" synchronized="false"
  64077. static="false" final="false" visibility="protected"
  64078. deprecated="not deprecated">
  64079. <param name="counterName" type="java.lang.String"/>
  64080. <param name="displayName" type="java.lang.String"/>
  64081. <doc>
  64082. <![CDATA[Internal to find a counter in a group.
  64083. @param counterName the name of the counter
  64084. @param displayName the display name of the counter
  64085. @return the counter that was found or added]]>
  64086. </doc>
  64087. </method>
  64088. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64089. abstract="false" native="false" synchronized="true"
  64090. static="false" final="false" visibility="public"
  64091. deprecated="not deprecated">
  64092. <param name="counterName" type="java.lang.String"/>
  64093. </method>
  64094. <method name="iterator" return="java.util.Iterator"
  64095. abstract="false" native="false" synchronized="true"
  64096. static="false" final="false" visibility="public"
  64097. deprecated="not deprecated">
  64098. </method>
  64099. <method name="write"
  64100. abstract="false" native="false" synchronized="true"
  64101. static="false" final="false" visibility="public"
  64102. deprecated="not deprecated">
  64103. <param name="out" type="java.io.DataOutput"/>
  64104. <exception name="IOException" type="java.io.IOException"/>
  64105. </method>
  64106. <method name="readFields"
  64107. abstract="false" native="false" synchronized="true"
  64108. static="false" final="false" visibility="public"
  64109. deprecated="not deprecated">
  64110. <param name="in" type="java.io.DataInput"/>
  64111. <exception name="IOException" type="java.io.IOException"/>
  64112. </method>
  64113. <method name="size" return="int"
  64114. abstract="false" native="false" synchronized="true"
  64115. static="false" final="false" visibility="public"
  64116. deprecated="not deprecated">
  64117. <doc>
  64118. <![CDATA[Returns the number of counters in this group.]]>
  64119. </doc>
  64120. </method>
  64121. <method name="equals" return="boolean"
  64122. abstract="false" native="false" synchronized="true"
  64123. static="false" final="false" visibility="public"
  64124. deprecated="not deprecated">
  64125. <param name="genericRight" type="java.lang.Object"/>
  64126. </method>
  64127. <method name="hashCode" return="int"
  64128. abstract="false" native="false" synchronized="true"
  64129. static="false" final="false" visibility="public"
  64130. deprecated="not deprecated">
  64131. </method>
  64132. <method name="incrAllCounters"
  64133. abstract="false" native="false" synchronized="true"
  64134. static="false" final="false" visibility="public"
  64135. deprecated="not deprecated">
  64136. <param name="rightGroup" type="org.apache.hadoop.mapreduce.CounterGroup"/>
  64137. </method>
  64138. <doc>
  64139. <![CDATA[A group of {@link Counter}s that logically belong together. Typically,
  64140. it is an {@link Enum} subclass and the counters are the values.]]>
  64141. </doc>
  64142. </class>
  64143. <!-- end class org.apache.hadoop.mapreduce.CounterGroup -->
  64144. <!-- start class org.apache.hadoop.mapreduce.Counters -->
  64145. <class name="Counters" extends="java.lang.Object"
  64146. abstract="false"
  64147. static="false" final="false" visibility="public"
  64148. deprecated="not deprecated">
  64149. <implements name="org.apache.hadoop.io.Writable"/>
  64150. <implements name="java.lang.Iterable"/>
  64151. <constructor name="Counters"
  64152. static="false" final="false" visibility="public"
  64153. deprecated="not deprecated">
  64154. </constructor>
  64155. <constructor name="Counters" type="org.apache.hadoop.mapred.Counters"
  64156. static="false" final="false" visibility="public"
  64157. deprecated="not deprecated">
  64158. </constructor>
  64159. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64160. abstract="false" native="false" synchronized="false"
  64161. static="false" final="false" visibility="public"
  64162. deprecated="not deprecated">
  64163. <param name="groupName" type="java.lang.String"/>
  64164. <param name="counterName" type="java.lang.String"/>
  64165. </method>
  64166. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64167. abstract="false" native="false" synchronized="true"
  64168. static="false" final="false" visibility="public"
  64169. deprecated="not deprecated">
  64170. <param name="key" type="java.lang.Enum"/>
  64171. <doc>
  64172. <![CDATA[Find the counter for the given enum. The same enum will always return the
  64173. same counter.
  64174. @param key the counter key
  64175. @return the matching counter object]]>
  64176. </doc>
  64177. </method>
  64178. <method name="getGroupNames" return="java.util.Collection"
  64179. abstract="false" native="false" synchronized="true"
  64180. static="false" final="false" visibility="public"
  64181. deprecated="not deprecated">
  64182. <doc>
  64183. <![CDATA[Returns the names of all counter classes.
  64184. @return Set of counter names.]]>
  64185. </doc>
  64186. </method>
  64187. <method name="iterator" return="java.util.Iterator"
  64188. abstract="false" native="false" synchronized="false"
  64189. static="false" final="false" visibility="public"
  64190. deprecated="not deprecated">
  64191. </method>
  64192. <method name="getGroup" return="org.apache.hadoop.mapreduce.CounterGroup"
  64193. abstract="false" native="false" synchronized="true"
  64194. static="false" final="false" visibility="public"
  64195. deprecated="not deprecated">
  64196. <param name="groupName" type="java.lang.String"/>
  64197. <doc>
  64198. <![CDATA[Returns the named counter group, or an empty group if there is none
  64199. with the specified name.]]>
  64200. </doc>
  64201. </method>
  64202. <method name="countCounters" return="int"
  64203. abstract="false" native="false" synchronized="true"
  64204. static="false" final="false" visibility="public"
  64205. deprecated="not deprecated">
  64206. <doc>
  64207. <![CDATA[Returns the total number of counters, by summing the number of counters
  64208. in each group.]]>
  64209. </doc>
  64210. </method>
  64211. <method name="write"
  64212. abstract="false" native="false" synchronized="true"
  64213. static="false" final="false" visibility="public"
  64214. deprecated="not deprecated">
  64215. <param name="out" type="java.io.DataOutput"/>
  64216. <exception name="IOException" type="java.io.IOException"/>
  64217. <doc>
  64218. <![CDATA[Write the set of groups.
  64219. The external format is:
  64220. #groups (groupName group)*
  64221. i.e. the number of groups followed by 0 or more groups, where each
  64222. group is of the form:
  64223. groupDisplayName #counters (false | true counter)*
  64224. where each counter is of the form:
  64225. name (false | true displayName) value]]>
  64226. </doc>
  64227. </method>
  64228. <method name="readFields"
  64229. abstract="false" native="false" synchronized="true"
  64230. static="false" final="false" visibility="public"
  64231. deprecated="not deprecated">
  64232. <param name="in" type="java.io.DataInput"/>
  64233. <exception name="IOException" type="java.io.IOException"/>
  64234. <doc>
  64235. <![CDATA[Read a set of groups.]]>
  64236. </doc>
  64237. </method>
  64238. <method name="toString" return="java.lang.String"
  64239. abstract="false" native="false" synchronized="true"
  64240. static="false" final="false" visibility="public"
  64241. deprecated="not deprecated">
  64242. <doc>
  64243. <![CDATA[Return textual representation of the counter values.]]>
  64244. </doc>
  64245. </method>
  64246. <method name="incrAllCounters"
  64247. abstract="false" native="false" synchronized="true"
  64248. static="false" final="false" visibility="public"
  64249. deprecated="not deprecated">
  64250. <param name="other" type="org.apache.hadoop.mapreduce.Counters"/>
  64251. <doc>
  64252. <![CDATA[Increments multiple counters by their amounts in another Counters
  64253. instance.
  64254. @param other the other Counters instance]]>
  64255. </doc>
  64256. </method>
  64257. <method name="equals" return="boolean"
  64258. abstract="false" native="false" synchronized="false"
  64259. static="false" final="false" visibility="public"
  64260. deprecated="not deprecated">
  64261. <param name="genericRight" type="java.lang.Object"/>
  64262. </method>
  64263. <method name="hashCode" return="int"
  64264. abstract="false" native="false" synchronized="false"
  64265. static="false" final="false" visibility="public"
  64266. deprecated="not deprecated">
  64267. </method>
  64268. </class>
  64269. <!-- end class org.apache.hadoop.mapreduce.Counters -->
  64270. <!-- start class org.apache.hadoop.mapreduce.ID -->
  64271. <class name="ID" extends="java.lang.Object"
  64272. abstract="true"
  64273. static="false" final="false" visibility="public"
  64274. deprecated="not deprecated">
  64275. <implements name="org.apache.hadoop.io.WritableComparable"/>
  64276. <constructor name="ID" type="int"
  64277. static="false" final="false" visibility="public"
  64278. deprecated="not deprecated">
  64279. <doc>
  64280. <![CDATA[constructs an ID object from the given int]]>
  64281. </doc>
  64282. </constructor>
  64283. <constructor name="ID"
  64284. static="false" final="false" visibility="protected"
  64285. deprecated="not deprecated">
  64286. </constructor>
  64287. <method name="getId" return="int"
  64288. abstract="false" native="false" synchronized="false"
  64289. static="false" final="false" visibility="public"
  64290. deprecated="not deprecated">
  64291. <doc>
  64292. <![CDATA[returns the int which represents the identifier]]>
  64293. </doc>
  64294. </method>
  64295. <method name="toString" return="java.lang.String"
  64296. abstract="false" native="false" synchronized="false"
  64297. static="false" final="false" visibility="public"
  64298. deprecated="not deprecated">
  64299. </method>
  64300. <method name="hashCode" return="int"
  64301. abstract="false" native="false" synchronized="false"
  64302. static="false" final="false" visibility="public"
  64303. deprecated="not deprecated">
  64304. </method>
  64305. <method name="equals" return="boolean"
  64306. abstract="false" native="false" synchronized="false"
  64307. static="false" final="false" visibility="public"
  64308. deprecated="not deprecated">
  64309. <param name="o" type="java.lang.Object"/>
  64310. </method>
  64311. <method name="compareTo" return="int"
  64312. abstract="false" native="false" synchronized="false"
  64313. static="false" final="false" visibility="public"
  64314. deprecated="not deprecated">
  64315. <param name="that" type="org.apache.hadoop.mapreduce.ID"/>
  64316. <doc>
  64317. <![CDATA[Compare IDs by associated numbers]]>
  64318. </doc>
  64319. </method>
  64320. <method name="readFields"
  64321. abstract="false" native="false" synchronized="false"
  64322. static="false" final="false" visibility="public"
  64323. deprecated="not deprecated">
  64324. <param name="in" type="java.io.DataInput"/>
  64325. <exception name="IOException" type="java.io.IOException"/>
  64326. </method>
  64327. <method name="write"
  64328. abstract="false" native="false" synchronized="false"
  64329. static="false" final="false" visibility="public"
  64330. deprecated="not deprecated">
  64331. <param name="out" type="java.io.DataOutput"/>
  64332. <exception name="IOException" type="java.io.IOException"/>
  64333. </method>
  64334. <field name="SEPARATOR" type="char"
  64335. transient="false" volatile="false"
  64336. static="true" final="true" visibility="protected"
  64337. deprecated="not deprecated">
  64338. </field>
  64339. <field name="id" type="int"
  64340. transient="false" volatile="false"
  64341. static="false" final="false" visibility="protected"
  64342. deprecated="not deprecated">
  64343. </field>
  64344. <doc>
  64345. <![CDATA[A general identifier, which internally stores the id
  64346. as an integer. This is the super class of {@link JobID},
  64347. {@link TaskID} and {@link TaskAttemptID}.
  64348. @see JobID
  64349. @see TaskID
  64350. @see TaskAttemptID]]>
  64351. </doc>
  64352. </class>
  64353. <!-- end class org.apache.hadoop.mapreduce.ID -->
  64354. <!-- start class org.apache.hadoop.mapreduce.InputFormat -->
  64355. <class name="InputFormat" extends="java.lang.Object"
  64356. abstract="true"
  64357. static="false" final="false" visibility="public"
  64358. deprecated="not deprecated">
  64359. <constructor name="InputFormat"
  64360. static="false" final="false" visibility="public"
  64361. deprecated="not deprecated">
  64362. </constructor>
  64363. <method name="getSplits" return="java.util.List"
  64364. abstract="true" native="false" synchronized="false"
  64365. static="false" final="false" visibility="public"
  64366. deprecated="not deprecated">
  64367. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  64368. <exception name="IOException" type="java.io.IOException"/>
  64369. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64370. <doc>
  64371. <![CDATA[Logically split the set of input files for the job.
  64372. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  64373. for processing.</p>
  64374. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  64375. input files are not physically split into chunks. For e.g. a split could
  64376. be <i>&lt;input-file-path, start, offset&gt;</i> tuple. The InputFormat
  64377. also creates the {@link RecordReader} to read the {@link InputSplit}.
  64378. @param context job configuration.
  64379. @return an array of {@link InputSplit}s for the job.]]>
  64380. </doc>
  64381. </method>
  64382. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  64383. abstract="true" native="false" synchronized="false"
  64384. static="false" final="false" visibility="public"
  64385. deprecated="not deprecated">
  64386. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  64387. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  64388. <exception name="IOException" type="java.io.IOException"/>
  64389. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64390. <doc>
  64391. <![CDATA[Create a record reader for a given split. The framework will call
  64392. {@link RecordReader#initialize(InputSplit, TaskAttemptContext)} before
  64393. the split is used.
  64394. @param split the split to be read
  64395. @param context the information about the task
  64396. @return a new record reader
  64397. @throws IOException
  64398. @throws InterruptedException]]>
  64399. </doc>
  64400. </method>
  64401. <doc>
  64402. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  64403. Map-Reduce job.
  64404. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  64405. job to:<p>
  64406. <ol>
  64407. <li>
  64408. Validate the input-specification of the job.
  64409. <li>
  64410. Split-up the input file(s) into logical {@link InputSplit}s, each of
  64411. which is then assigned to an individual {@link Mapper}.
  64412. </li>
  64413. <li>
  64414. Provide the {@link RecordReader} implementation to be used to glean
  64415. input records from the logical <code>InputSplit</code> for processing by
  64416. the {@link Mapper}.
  64417. </li>
  64418. </ol>
  64419. <p>The default behavior of file-based {@link InputFormat}s, typically
  64420. sub-classes of {@link FileInputFormat}, is to split the
  64421. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  64422. bytes, of the input files. However, the {@link FileSystem} blocksize of
  64423. the input files is treated as an upper bound for input splits. A lower bound
  64424. on the split size can be set via
  64425. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  64426. mapred.min.split.size</a>.</p>
  64427. <p>Clearly, logical splits based on input-size is insufficient for many
  64428. applications since record boundaries are to respected. In such cases, the
  64429. application has to also implement a {@link RecordReader} on whom lies the
  64430. responsibility to respect record-boundaries and present a record-oriented
  64431. view of the logical <code>InputSplit</code> to the individual task.
  64432. @see InputSplit
  64433. @see RecordReader
  64434. @see FileInputFormat]]>
  64435. </doc>
  64436. </class>
  64437. <!-- end class org.apache.hadoop.mapreduce.InputFormat -->
  64438. <!-- start class org.apache.hadoop.mapreduce.InputSplit -->
  64439. <class name="InputSplit" extends="java.lang.Object"
  64440. abstract="true"
  64441. static="false" final="false" visibility="public"
  64442. deprecated="not deprecated">
  64443. <constructor name="InputSplit"
  64444. static="false" final="false" visibility="public"
  64445. deprecated="not deprecated">
  64446. </constructor>
  64447. <method name="getLength" return="long"
  64448. abstract="true" native="false" synchronized="false"
  64449. static="false" final="false" visibility="public"
  64450. deprecated="not deprecated">
  64451. <exception name="IOException" type="java.io.IOException"/>
  64452. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64453. <doc>
  64454. <![CDATA[Get the size of the split, so that the input splits can be sorted by size.
  64455. @return the number of bytes in the split
  64456. @throws IOException
  64457. @throws InterruptedException]]>
  64458. </doc>
  64459. </method>
  64460. <method name="getLocations" return="java.lang.String[]"
  64461. abstract="true" native="false" synchronized="false"
  64462. static="false" final="false" visibility="public"
  64463. deprecated="not deprecated">
  64464. <exception name="IOException" type="java.io.IOException"/>
  64465. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64466. <doc>
  64467. <![CDATA[Get the list of nodes by name where the data for the split would be local.
  64468. The locations do not need to be serialized.
  64469. @return a new array of the node nodes.
  64470. @throws IOException
  64471. @throws InterruptedException]]>
  64472. </doc>
  64473. </method>
  64474. <doc>
  64475. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  64476. individual {@link Mapper}.
  64477. <p>Typically, it presents a byte-oriented view on the input and is the
  64478. responsibility of {@link RecordReader} of the job to process this and present
  64479. a record-oriented view.
  64480. @see InputFormat
  64481. @see RecordReader]]>
  64482. </doc>
  64483. </class>
  64484. <!-- end class org.apache.hadoop.mapreduce.InputSplit -->
  64485. <!-- start class org.apache.hadoop.mapreduce.Job -->
  64486. <class name="Job" extends="org.apache.hadoop.mapreduce.JobContext"
  64487. abstract="false"
  64488. static="false" final="false" visibility="public"
  64489. deprecated="not deprecated">
  64490. <constructor name="Job"
  64491. static="false" final="false" visibility="public"
  64492. deprecated="not deprecated">
  64493. <exception name="IOException" type="java.io.IOException"/>
  64494. </constructor>
  64495. <constructor name="Job" type="org.apache.hadoop.conf.Configuration"
  64496. static="false" final="false" visibility="public"
  64497. deprecated="not deprecated">
  64498. <exception name="IOException" type="java.io.IOException"/>
  64499. </constructor>
  64500. <constructor name="Job" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  64501. static="false" final="false" visibility="public"
  64502. deprecated="not deprecated">
  64503. <exception name="IOException" type="java.io.IOException"/>
  64504. </constructor>
  64505. <method name="setNumReduceTasks"
  64506. abstract="false" native="false" synchronized="false"
  64507. static="false" final="false" visibility="public"
  64508. deprecated="not deprecated">
  64509. <param name="tasks" type="int"/>
  64510. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64511. <doc>
  64512. <![CDATA[Set the number of reduce tasks for the job.
  64513. @param tasks the number of reduce tasks
  64514. @throws IllegalStateException if the job is submitted]]>
  64515. </doc>
  64516. </method>
  64517. <method name="setWorkingDirectory"
  64518. abstract="false" native="false" synchronized="false"
  64519. static="false" final="false" visibility="public"
  64520. deprecated="not deprecated">
  64521. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  64522. <exception name="IOException" type="java.io.IOException"/>
  64523. <doc>
  64524. <![CDATA[Set the current working directory for the default file system.
  64525. @param dir the new current working directory.
  64526. @throws IllegalStateException if the job is submitted]]>
  64527. </doc>
  64528. </method>
  64529. <method name="setInputFormatClass"
  64530. abstract="false" native="false" synchronized="false"
  64531. static="false" final="false" visibility="public"
  64532. deprecated="not deprecated">
  64533. <param name="cls" type="java.lang.Class"/>
  64534. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64535. <doc>
  64536. <![CDATA[Set the {@link InputFormat} for the job.
  64537. @param cls the <code>InputFormat</code> to use
  64538. @throws IllegalStateException if the job is submitted]]>
  64539. </doc>
  64540. </method>
  64541. <method name="setOutputFormatClass"
  64542. abstract="false" native="false" synchronized="false"
  64543. static="false" final="false" visibility="public"
  64544. deprecated="not deprecated">
  64545. <param name="cls" type="java.lang.Class"/>
  64546. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64547. <doc>
  64548. <![CDATA[Set the {@link OutputFormat} for the job.
  64549. @param cls the <code>OutputFormat</code> to use
  64550. @throws IllegalStateException if the job is submitted]]>
  64551. </doc>
  64552. </method>
  64553. <method name="setMapperClass"
  64554. abstract="false" native="false" synchronized="false"
  64555. static="false" final="false" visibility="public"
  64556. deprecated="not deprecated">
  64557. <param name="cls" type="java.lang.Class"/>
  64558. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64559. <doc>
  64560. <![CDATA[Set the {@link Mapper} for the job.
  64561. @param cls the <code>Mapper</code> to use
  64562. @throws IllegalStateException if the job is submitted]]>
  64563. </doc>
  64564. </method>
  64565. <method name="setJarByClass"
  64566. abstract="false" native="false" synchronized="false"
  64567. static="false" final="false" visibility="public"
  64568. deprecated="not deprecated">
  64569. <param name="cls" type="java.lang.Class"/>
  64570. <doc>
  64571. <![CDATA[Set the Jar by finding where a given class came from.
  64572. @param cls the example class]]>
  64573. </doc>
  64574. </method>
  64575. <method name="getJar" return="java.lang.String"
  64576. abstract="false" native="false" synchronized="false"
  64577. static="false" final="false" visibility="public"
  64578. deprecated="not deprecated">
  64579. <doc>
  64580. <![CDATA[Get the pathname of the job's jar.
  64581. @return the pathname]]>
  64582. </doc>
  64583. </method>
  64584. <method name="setCombinerClass"
  64585. abstract="false" native="false" synchronized="false"
  64586. static="false" final="false" visibility="public"
  64587. deprecated="not deprecated">
  64588. <param name="cls" type="java.lang.Class"/>
  64589. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64590. <doc>
  64591. <![CDATA[Set the combiner class for the job.
  64592. @param cls the combiner to use
  64593. @throws IllegalStateException if the job is submitted]]>
  64594. </doc>
  64595. </method>
  64596. <method name="setReducerClass"
  64597. abstract="false" native="false" synchronized="false"
  64598. static="false" final="false" visibility="public"
  64599. deprecated="not deprecated">
  64600. <param name="cls" type="java.lang.Class"/>
  64601. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64602. <doc>
  64603. <![CDATA[Set the {@link Reducer} for the job.
  64604. @param cls the <code>Reducer</code> to use
  64605. @throws IllegalStateException if the job is submitted]]>
  64606. </doc>
  64607. </method>
  64608. <method name="setPartitionerClass"
  64609. abstract="false" native="false" synchronized="false"
  64610. static="false" final="false" visibility="public"
  64611. deprecated="not deprecated">
  64612. <param name="cls" type="java.lang.Class"/>
  64613. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64614. <doc>
  64615. <![CDATA[Set the {@link Partitioner} for the job.
  64616. @param cls the <code>Partitioner</code> to use
  64617. @throws IllegalStateException if the job is submitted]]>
  64618. </doc>
  64619. </method>
  64620. <method name="setMapOutputKeyClass"
  64621. abstract="false" native="false" synchronized="false"
  64622. static="false" final="false" visibility="public"
  64623. deprecated="not deprecated">
  64624. <param name="theClass" type="java.lang.Class"/>
  64625. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64626. <doc>
  64627. <![CDATA[Set the key class for the map output data. This allows the user to
  64628. specify the map output key class to be different than the final output
  64629. value class.
  64630. @param theClass the map output key class.
  64631. @throws IllegalStateException if the job is submitted]]>
  64632. </doc>
  64633. </method>
  64634. <method name="setMapOutputValueClass"
  64635. abstract="false" native="false" synchronized="false"
  64636. static="false" final="false" visibility="public"
  64637. deprecated="not deprecated">
  64638. <param name="theClass" type="java.lang.Class"/>
  64639. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64640. <doc>
  64641. <![CDATA[Set the value class for the map output data. This allows the user to
  64642. specify the map output value class to be different than the final output
  64643. value class.
  64644. @param theClass the map output value class.
  64645. @throws IllegalStateException if the job is submitted]]>
  64646. </doc>
  64647. </method>
  64648. <method name="setOutputKeyClass"
  64649. abstract="false" native="false" synchronized="false"
  64650. static="false" final="false" visibility="public"
  64651. deprecated="not deprecated">
  64652. <param name="theClass" type="java.lang.Class"/>
  64653. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64654. <doc>
  64655. <![CDATA[Set the key class for the job output data.
  64656. @param theClass the key class for the job output data.
  64657. @throws IllegalStateException if the job is submitted]]>
  64658. </doc>
  64659. </method>
  64660. <method name="setOutputValueClass"
  64661. abstract="false" native="false" synchronized="false"
  64662. static="false" final="false" visibility="public"
  64663. deprecated="not deprecated">
  64664. <param name="theClass" type="java.lang.Class"/>
  64665. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64666. <doc>
  64667. <![CDATA[Set the value class for job outputs.
  64668. @param theClass the value class for job outputs.
  64669. @throws IllegalStateException if the job is submitted]]>
  64670. </doc>
  64671. </method>
  64672. <method name="setSortComparatorClass"
  64673. abstract="false" native="false" synchronized="false"
  64674. static="false" final="false" visibility="public"
  64675. deprecated="not deprecated">
  64676. <param name="cls" type="java.lang.Class"/>
  64677. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64678. <doc>
  64679. <![CDATA[Define the comparator that controls how the keys are sorted before they
  64680. are passed to the {@link Reducer}.
  64681. @param cls the raw comparator
  64682. @throws IllegalStateException if the job is submitted]]>
  64683. </doc>
  64684. </method>
  64685. <method name="setGroupingComparatorClass"
  64686. abstract="false" native="false" synchronized="false"
  64687. static="false" final="false" visibility="public"
  64688. deprecated="not deprecated">
  64689. <param name="cls" type="java.lang.Class"/>
  64690. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64691. <doc>
  64692. <![CDATA[Define the comparator that controls which keys are grouped together
  64693. for a single call to
  64694. {@link Reducer#reduce(Object, Iterable,
  64695. org.apache.hadoop.mapreduce.Reducer.Context)}
  64696. @param cls the raw comparator to use
  64697. @throws IllegalStateException if the job is submitted]]>
  64698. </doc>
  64699. </method>
  64700. <method name="setJobName"
  64701. abstract="false" native="false" synchronized="false"
  64702. static="false" final="false" visibility="public"
  64703. deprecated="not deprecated">
  64704. <param name="name" type="java.lang.String"/>
  64705. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64706. <doc>
  64707. <![CDATA[Set the user-specified job name.
  64708. @param name the job's new name.
  64709. @throws IllegalStateException if the job is submitted]]>
  64710. </doc>
  64711. </method>
  64712. <method name="getTrackingURL" return="java.lang.String"
  64713. abstract="false" native="false" synchronized="false"
  64714. static="false" final="false" visibility="public"
  64715. deprecated="not deprecated">
  64716. <doc>
  64717. <![CDATA[Get the URL where some job progress information will be displayed.
  64718. @return the URL where some job progress information will be displayed.]]>
  64719. </doc>
  64720. </method>
  64721. <method name="setupProgress" return="float"
  64722. abstract="false" native="false" synchronized="false"
  64723. static="false" final="false" visibility="public"
  64724. deprecated="not deprecated">
  64725. <exception name="IOException" type="java.io.IOException"/>
  64726. <doc>
  64727. <![CDATA[Get the <i>progress</i> of the job's setup, as a float between 0.0
  64728. and 1.0. When the job setup is completed, the function returns 1.0.
  64729. @return the progress of the job's setup.
  64730. @throws IOException]]>
  64731. </doc>
  64732. </method>
  64733. <method name="mapProgress" return="float"
  64734. abstract="false" native="false" synchronized="false"
  64735. static="false" final="false" visibility="public"
  64736. deprecated="not deprecated">
  64737. <exception name="IOException" type="java.io.IOException"/>
  64738. <doc>
  64739. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  64740. and 1.0. When all map tasks have completed, the function returns 1.0.
  64741. @return the progress of the job's map-tasks.
  64742. @throws IOException]]>
  64743. </doc>
  64744. </method>
  64745. <method name="reduceProgress" return="float"
  64746. abstract="false" native="false" synchronized="false"
  64747. static="false" final="false" visibility="public"
  64748. deprecated="not deprecated">
  64749. <exception name="IOException" type="java.io.IOException"/>
  64750. <doc>
  64751. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  64752. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  64753. @return the progress of the job's reduce-tasks.
  64754. @throws IOException]]>
  64755. </doc>
  64756. </method>
  64757. <method name="isComplete" return="boolean"
  64758. abstract="false" native="false" synchronized="false"
  64759. static="false" final="false" visibility="public"
  64760. deprecated="not deprecated">
  64761. <exception name="IOException" type="java.io.IOException"/>
  64762. <doc>
  64763. <![CDATA[Check if the job is finished or not.
  64764. This is a non-blocking call.
  64765. @return <code>true</code> if the job is complete, else <code>false</code>.
  64766. @throws IOException]]>
  64767. </doc>
  64768. </method>
  64769. <method name="isSuccessful" return="boolean"
  64770. abstract="false" native="false" synchronized="false"
  64771. static="false" final="false" visibility="public"
  64772. deprecated="not deprecated">
  64773. <exception name="IOException" type="java.io.IOException"/>
  64774. <doc>
  64775. <![CDATA[Check if the job completed successfully.
  64776. @return <code>true</code> if the job succeeded, else <code>false</code>.
  64777. @throws IOException]]>
  64778. </doc>
  64779. </method>
  64780. <method name="killJob"
  64781. abstract="false" native="false" synchronized="false"
  64782. static="false" final="false" visibility="public"
  64783. deprecated="not deprecated">
  64784. <exception name="IOException" type="java.io.IOException"/>
  64785. <doc>
  64786. <![CDATA[Kill the running job. Blocks until all job tasks have been
  64787. killed as well. If the job is no longer running, it simply returns.
  64788. @throws IOException]]>
  64789. </doc>
  64790. </method>
  64791. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  64792. abstract="false" native="false" synchronized="false"
  64793. static="false" final="false" visibility="public"
  64794. deprecated="not deprecated">
  64795. <param name="startFrom" type="int"/>
  64796. <exception name="IOException" type="java.io.IOException"/>
  64797. <doc>
  64798. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  64799. @param startFrom index to start fetching events from
  64800. @return an array of {@link TaskCompletionEvent}s
  64801. @throws IOException]]>
  64802. </doc>
  64803. </method>
  64804. <method name="killTask"
  64805. abstract="false" native="false" synchronized="false"
  64806. static="false" final="false" visibility="public"
  64807. deprecated="not deprecated">
  64808. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  64809. <exception name="IOException" type="java.io.IOException"/>
  64810. <doc>
  64811. <![CDATA[Kill indicated task attempt.
  64812. @param taskId the id of the task to be terminated.
  64813. @throws IOException]]>
  64814. </doc>
  64815. </method>
  64816. <method name="failTask"
  64817. abstract="false" native="false" synchronized="false"
  64818. static="false" final="false" visibility="public"
  64819. deprecated="not deprecated">
  64820. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  64821. <exception name="IOException" type="java.io.IOException"/>
  64822. <doc>
  64823. <![CDATA[Fail indicated task attempt.
  64824. @param taskId the id of the task to be terminated.
  64825. @throws IOException]]>
  64826. </doc>
  64827. </method>
  64828. <method name="getCounters" return="org.apache.hadoop.mapreduce.Counters"
  64829. abstract="false" native="false" synchronized="false"
  64830. static="false" final="false" visibility="public"
  64831. deprecated="not deprecated">
  64832. <exception name="IOException" type="java.io.IOException"/>
  64833. <doc>
  64834. <![CDATA[Gets the counters for this job.
  64835. @return the counters for this job.
  64836. @throws IOException]]>
  64837. </doc>
  64838. </method>
  64839. <method name="setCancelDelegationTokenUponJobCompletion"
  64840. abstract="false" native="false" synchronized="false"
  64841. static="false" final="false" visibility="public"
  64842. deprecated="not deprecated">
  64843. <param name="value" type="boolean"/>
  64844. <doc>
  64845. <![CDATA[Sets the flag that will allow the JobTracker to cancel the HDFS delegation
  64846. tokens upon job completion. Defaults to true.]]>
  64847. </doc>
  64848. </method>
  64849. <method name="submit"
  64850. abstract="false" native="false" synchronized="false"
  64851. static="false" final="false" visibility="public"
  64852. deprecated="not deprecated">
  64853. <exception name="IOException" type="java.io.IOException"/>
  64854. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64855. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  64856. <doc>
  64857. <![CDATA[Submit the job to the cluster and return immediately.
  64858. @throws IOException]]>
  64859. </doc>
  64860. </method>
  64861. <method name="waitForCompletion" return="boolean"
  64862. abstract="false" native="false" synchronized="false"
  64863. static="false" final="false" visibility="public"
  64864. deprecated="not deprecated">
  64865. <param name="verbose" type="boolean"/>
  64866. <exception name="IOException" type="java.io.IOException"/>
  64867. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64868. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  64869. <doc>
  64870. <![CDATA[Submit the job to the cluster and wait for it to finish.
  64871. @param verbose print the progress to the user
  64872. @return true if the job succeeded
  64873. @throws IOException thrown if the communication with the
  64874. <code>JobTracker</code> is lost]]>
  64875. </doc>
  64876. </method>
  64877. <doc>
  64878. <![CDATA[The job submitter's view of the Job. It allows the user to configure the
  64879. job, submit it, control its execution, and query the state. The set methods
  64880. only work until the job is submitted, afterwards they will throw an
  64881. IllegalStateException.]]>
  64882. </doc>
  64883. </class>
  64884. <!-- end class org.apache.hadoop.mapreduce.Job -->
  64885. <!-- start class org.apache.hadoop.mapreduce.Job.JobState -->
  64886. <class name="Job.JobState" extends="java.lang.Enum"
  64887. abstract="false"
  64888. static="true" final="true" visibility="public"
  64889. deprecated="not deprecated">
  64890. <method name="values" return="org.apache.hadoop.mapreduce.Job.JobState[]"
  64891. abstract="false" native="false" synchronized="false"
  64892. static="true" final="false" visibility="public"
  64893. deprecated="not deprecated">
  64894. </method>
  64895. <method name="valueOf" return="org.apache.hadoop.mapreduce.Job.JobState"
  64896. abstract="false" native="false" synchronized="false"
  64897. static="true" final="false" visibility="public"
  64898. deprecated="not deprecated">
  64899. <param name="name" type="java.lang.String"/>
  64900. </method>
  64901. <field name="DEFINE" type="org.apache.hadoop.mapreduce.Job.JobState"
  64902. transient="false" volatile="false"
  64903. static="true" final="true" visibility="public"
  64904. deprecated="not deprecated">
  64905. </field>
  64906. <field name="RUNNING" type="org.apache.hadoop.mapreduce.Job.JobState"
  64907. transient="false" volatile="false"
  64908. static="true" final="true" visibility="public"
  64909. deprecated="not deprecated">
  64910. </field>
  64911. </class>
  64912. <!-- end class org.apache.hadoop.mapreduce.Job.JobState -->
  64913. <!-- start class org.apache.hadoop.mapreduce.JobACL -->
  64914. <class name="JobACL" extends="java.lang.Enum"
  64915. abstract="false"
  64916. static="false" final="true" visibility="public"
  64917. deprecated="not deprecated">
  64918. <method name="values" return="org.apache.hadoop.mapreduce.JobACL[]"
  64919. abstract="false" native="false" synchronized="false"
  64920. static="true" final="false" visibility="public"
  64921. deprecated="not deprecated">
  64922. </method>
  64923. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobACL"
  64924. abstract="false" native="false" synchronized="false"
  64925. static="true" final="false" visibility="public"
  64926. deprecated="not deprecated">
  64927. <param name="name" type="java.lang.String"/>
  64928. </method>
  64929. <method name="getAclName" return="java.lang.String"
  64930. abstract="false" native="false" synchronized="false"
  64931. static="false" final="false" visibility="public"
  64932. deprecated="not deprecated">
  64933. <doc>
  64934. <![CDATA[Get the name of the ACL. Here it is same as the name of the configuration
  64935. property for specifying the ACL for the job.
  64936. @return aclName]]>
  64937. </doc>
  64938. </method>
  64939. <field name="VIEW_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  64940. transient="false" volatile="false"
  64941. static="true" final="true" visibility="public"
  64942. deprecated="not deprecated">
  64943. <doc>
  64944. <![CDATA[ACL for 'viewing' job. Dictates who can 'view' some or all of the job
  64945. related details.]]>
  64946. </doc>
  64947. </field>
  64948. <field name="MODIFY_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  64949. transient="false" volatile="false"
  64950. static="true" final="true" visibility="public"
  64951. deprecated="not deprecated">
  64952. <doc>
  64953. <![CDATA[ACL for 'modifying' job. Dictates who can 'modify' the job for e.g., by
  64954. killing the job, killing/failing a task of the job or setting priority of
  64955. the job.]]>
  64956. </doc>
  64957. </field>
  64958. <doc>
  64959. <![CDATA[Job related ACLs]]>
  64960. </doc>
  64961. </class>
  64962. <!-- end class org.apache.hadoop.mapreduce.JobACL -->
  64963. <!-- start class org.apache.hadoop.mapreduce.JobContext -->
  64964. <class name="JobContext" extends="java.lang.Object"
  64965. abstract="false"
  64966. static="false" final="false" visibility="public"
  64967. deprecated="not deprecated">
  64968. <constructor name="JobContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.JobID"
  64969. static="false" final="false" visibility="public"
  64970. deprecated="not deprecated">
  64971. </constructor>
  64972. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  64973. abstract="false" native="false" synchronized="false"
  64974. static="false" final="false" visibility="public"
  64975. deprecated="not deprecated">
  64976. <doc>
  64977. <![CDATA[Return the configuration for the job.
  64978. @return the shared configuration object]]>
  64979. </doc>
  64980. </method>
  64981. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  64982. abstract="false" native="false" synchronized="false"
  64983. static="false" final="false" visibility="public"
  64984. deprecated="not deprecated">
  64985. <doc>
  64986. <![CDATA[Get credentials for the job.
  64987. @return credentials for the job]]>
  64988. </doc>
  64989. </method>
  64990. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  64991. abstract="false" native="false" synchronized="false"
  64992. static="false" final="false" visibility="public"
  64993. deprecated="not deprecated">
  64994. <doc>
  64995. <![CDATA[Get the unique ID for the job.
  64996. @return the object with the job id]]>
  64997. </doc>
  64998. </method>
  64999. <method name="getNumReduceTasks" return="int"
  65000. abstract="false" native="false" synchronized="false"
  65001. static="false" final="false" visibility="public"
  65002. deprecated="not deprecated">
  65003. <doc>
  65004. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  65005. <code>1</code>.
  65006. @return the number of reduce tasks for this job.]]>
  65007. </doc>
  65008. </method>
  65009. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  65010. abstract="false" native="false" synchronized="false"
  65011. static="false" final="false" visibility="public"
  65012. deprecated="not deprecated">
  65013. <exception name="IOException" type="java.io.IOException"/>
  65014. <doc>
  65015. <![CDATA[Get the current working directory for the default file system.
  65016. @return the directory name.]]>
  65017. </doc>
  65018. </method>
  65019. <method name="getOutputKeyClass" return="java.lang.Class"
  65020. abstract="false" native="false" synchronized="false"
  65021. static="false" final="false" visibility="public"
  65022. deprecated="not deprecated">
  65023. <doc>
  65024. <![CDATA[Get the key class for the job output data.
  65025. @return the key class for the job output data.]]>
  65026. </doc>
  65027. </method>
  65028. <method name="getOutputValueClass" return="java.lang.Class"
  65029. abstract="false" native="false" synchronized="false"
  65030. static="false" final="false" visibility="public"
  65031. deprecated="not deprecated">
  65032. <doc>
  65033. <![CDATA[Get the value class for job outputs.
  65034. @return the value class for job outputs.]]>
  65035. </doc>
  65036. </method>
  65037. <method name="getMapOutputKeyClass" return="java.lang.Class"
  65038. abstract="false" native="false" synchronized="false"
  65039. static="false" final="false" visibility="public"
  65040. deprecated="not deprecated">
  65041. <doc>
  65042. <![CDATA[Get the key class for the map output data. If it is not set, use the
  65043. (final) output key class. This allows the map output key class to be
  65044. different than the final output key class.
  65045. @return the map output key class.]]>
  65046. </doc>
  65047. </method>
  65048. <method name="getMapOutputValueClass" return="java.lang.Class"
  65049. abstract="false" native="false" synchronized="false"
  65050. static="false" final="false" visibility="public"
  65051. deprecated="not deprecated">
  65052. <doc>
  65053. <![CDATA[Get the value class for the map output data. If it is not set, use the
  65054. (final) output value class This allows the map output value class to be
  65055. different than the final output value class.
  65056. @return the map output value class.]]>
  65057. </doc>
  65058. </method>
  65059. <method name="getJobName" return="java.lang.String"
  65060. abstract="false" native="false" synchronized="false"
  65061. static="false" final="false" visibility="public"
  65062. deprecated="not deprecated">
  65063. <doc>
  65064. <![CDATA[Get the user-specified job name. This is only used to identify the
  65065. job to the user.
  65066. @return the job's name, defaulting to "".]]>
  65067. </doc>
  65068. </method>
  65069. <method name="getInputFormatClass" return="java.lang.Class"
  65070. abstract="false" native="false" synchronized="false"
  65071. static="false" final="false" visibility="public"
  65072. deprecated="not deprecated">
  65073. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65074. <doc>
  65075. <![CDATA[Get the {@link InputFormat} class for the job.
  65076. @return the {@link InputFormat} class for the job.]]>
  65077. </doc>
  65078. </method>
  65079. <method name="getMapperClass" return="java.lang.Class"
  65080. abstract="false" native="false" synchronized="false"
  65081. static="false" final="false" visibility="public"
  65082. deprecated="not deprecated">
  65083. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65084. <doc>
  65085. <![CDATA[Get the {@link Mapper} class for the job.
  65086. @return the {@link Mapper} class for the job.]]>
  65087. </doc>
  65088. </method>
  65089. <method name="getCombinerClass" return="java.lang.Class"
  65090. abstract="false" native="false" synchronized="false"
  65091. static="false" final="false" visibility="public"
  65092. deprecated="not deprecated">
  65093. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65094. <doc>
  65095. <![CDATA[Get the combiner class for the job.
  65096. @return the combiner class for the job.]]>
  65097. </doc>
  65098. </method>
  65099. <method name="getReducerClass" return="java.lang.Class"
  65100. abstract="false" native="false" synchronized="false"
  65101. static="false" final="false" visibility="public"
  65102. deprecated="not deprecated">
  65103. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65104. <doc>
  65105. <![CDATA[Get the {@link Reducer} class for the job.
  65106. @return the {@link Reducer} class for the job.]]>
  65107. </doc>
  65108. </method>
  65109. <method name="getOutputFormatClass" return="java.lang.Class"
  65110. abstract="false" native="false" synchronized="false"
  65111. static="false" final="false" visibility="public"
  65112. deprecated="not deprecated">
  65113. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65114. <doc>
  65115. <![CDATA[Get the {@link OutputFormat} class for the job.
  65116. @return the {@link OutputFormat} class for the job.]]>
  65117. </doc>
  65118. </method>
  65119. <method name="getPartitionerClass" return="java.lang.Class"
  65120. abstract="false" native="false" synchronized="false"
  65121. static="false" final="false" visibility="public"
  65122. deprecated="not deprecated">
  65123. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65124. <doc>
  65125. <![CDATA[Get the {@link Partitioner} class for the job.
  65126. @return the {@link Partitioner} class for the job.]]>
  65127. </doc>
  65128. </method>
  65129. <method name="getSortComparator" return="org.apache.hadoop.io.RawComparator"
  65130. abstract="false" native="false" synchronized="false"
  65131. static="false" final="false" visibility="public"
  65132. deprecated="not deprecated">
  65133. <doc>
  65134. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  65135. @return the {@link RawComparator} comparator used to compare keys.]]>
  65136. </doc>
  65137. </method>
  65138. <method name="getJar" return="java.lang.String"
  65139. abstract="false" native="false" synchronized="false"
  65140. static="false" final="false" visibility="public"
  65141. deprecated="not deprecated">
  65142. <doc>
  65143. <![CDATA[Get the pathname of the job's jar.
  65144. @return the pathname]]>
  65145. </doc>
  65146. </method>
  65147. <method name="getGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  65148. abstract="false" native="false" synchronized="false"
  65149. static="false" final="false" visibility="public"
  65150. deprecated="not deprecated">
  65151. <doc>
  65152. <![CDATA[Get the user defined {@link RawComparator} comparator for
  65153. grouping keys of inputs to the reduce.
  65154. @return comparator set by the user for grouping values.
  65155. @see Job#setGroupingComparatorClass(Class) for details.]]>
  65156. </doc>
  65157. </method>
  65158. <field name="INPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  65159. transient="false" volatile="false"
  65160. static="true" final="true" visibility="protected"
  65161. deprecated="not deprecated">
  65162. </field>
  65163. <field name="MAP_CLASS_ATTR" type="java.lang.String"
  65164. transient="false" volatile="false"
  65165. static="true" final="true" visibility="protected"
  65166. deprecated="not deprecated">
  65167. </field>
  65168. <field name="COMBINE_CLASS_ATTR" type="java.lang.String"
  65169. transient="false" volatile="false"
  65170. static="true" final="true" visibility="protected"
  65171. deprecated="not deprecated">
  65172. </field>
  65173. <field name="REDUCE_CLASS_ATTR" type="java.lang.String"
  65174. transient="false" volatile="false"
  65175. static="true" final="true" visibility="protected"
  65176. deprecated="not deprecated">
  65177. </field>
  65178. <field name="OUTPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  65179. transient="false" volatile="false"
  65180. static="true" final="true" visibility="protected"
  65181. deprecated="not deprecated">
  65182. </field>
  65183. <field name="PARTITIONER_CLASS_ATTR" type="java.lang.String"
  65184. transient="false" volatile="false"
  65185. static="true" final="true" visibility="protected"
  65186. deprecated="not deprecated">
  65187. </field>
  65188. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  65189. transient="false" volatile="false"
  65190. static="false" final="true" visibility="protected"
  65191. deprecated="not deprecated">
  65192. </field>
  65193. <field name="credentials" type="org.apache.hadoop.security.Credentials"
  65194. transient="false" volatile="false"
  65195. static="false" final="true" visibility="protected"
  65196. deprecated="not deprecated">
  65197. </field>
  65198. <field name="JOB_NAMENODES" type="java.lang.String"
  65199. transient="false" volatile="false"
  65200. static="true" final="true" visibility="public"
  65201. deprecated="not deprecated">
  65202. </field>
  65203. <field name="JOB_ACL_VIEW_JOB" type="java.lang.String"
  65204. transient="false" volatile="false"
  65205. static="true" final="true" visibility="public"
  65206. deprecated="not deprecated">
  65207. </field>
  65208. <field name="JOB_ACL_MODIFY_JOB" type="java.lang.String"
  65209. transient="false" volatile="false"
  65210. static="true" final="true" visibility="public"
  65211. deprecated="not deprecated">
  65212. </field>
  65213. <field name="CACHE_FILE_VISIBILITIES" type="java.lang.String"
  65214. transient="false" volatile="false"
  65215. static="true" final="true" visibility="public"
  65216. deprecated="not deprecated">
  65217. </field>
  65218. <field name="CACHE_ARCHIVES_VISIBILITIES" type="java.lang.String"
  65219. transient="false" volatile="false"
  65220. static="true" final="true" visibility="public"
  65221. deprecated="not deprecated">
  65222. </field>
  65223. <field name="JOB_CANCEL_DELEGATION_TOKEN" type="java.lang.String"
  65224. transient="false" volatile="false"
  65225. static="true" final="true" visibility="public"
  65226. deprecated="not deprecated">
  65227. </field>
  65228. <field name="USER_LOG_RETAIN_HOURS" type="java.lang.String"
  65229. transient="false" volatile="false"
  65230. static="true" final="true" visibility="public"
  65231. deprecated="not deprecated">
  65232. </field>
  65233. <field name="ugi" type="org.apache.hadoop.security.UserGroupInformation"
  65234. transient="false" volatile="false"
  65235. static="false" final="false" visibility="protected"
  65236. deprecated="not deprecated">
  65237. <doc>
  65238. <![CDATA[The UserGroupInformation object that has a reference to the current user]]>
  65239. </doc>
  65240. </field>
  65241. <doc>
  65242. <![CDATA[A read-only view of the job that is provided to the tasks while they
  65243. are running.]]>
  65244. </doc>
  65245. </class>
  65246. <!-- end class org.apache.hadoop.mapreduce.JobContext -->
  65247. <!-- start class org.apache.hadoop.mapreduce.JobID -->
  65248. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  65249. abstract="false"
  65250. static="false" final="false" visibility="public"
  65251. deprecated="not deprecated">
  65252. <implements name="java.lang.Comparable"/>
  65253. <constructor name="JobID" type="java.lang.String, int"
  65254. static="false" final="false" visibility="public"
  65255. deprecated="not deprecated">
  65256. <doc>
  65257. <![CDATA[Constructs a JobID object
  65258. @param jtIdentifier jobTracker identifier
  65259. @param id job number]]>
  65260. </doc>
  65261. </constructor>
  65262. <constructor name="JobID"
  65263. static="false" final="false" visibility="public"
  65264. deprecated="not deprecated">
  65265. </constructor>
  65266. <method name="getJtIdentifier" return="java.lang.String"
  65267. abstract="false" native="false" synchronized="false"
  65268. static="false" final="false" visibility="public"
  65269. deprecated="not deprecated">
  65270. </method>
  65271. <method name="equals" return="boolean"
  65272. abstract="false" native="false" synchronized="false"
  65273. static="false" final="false" visibility="public"
  65274. deprecated="not deprecated">
  65275. <param name="o" type="java.lang.Object"/>
  65276. </method>
  65277. <method name="compareTo" return="int"
  65278. abstract="false" native="false" synchronized="false"
  65279. static="false" final="false" visibility="public"
  65280. deprecated="not deprecated">
  65281. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  65282. <doc>
  65283. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  65284. </doc>
  65285. </method>
  65286. <method name="appendTo" return="java.lang.StringBuilder"
  65287. abstract="false" native="false" synchronized="false"
  65288. static="false" final="false" visibility="public"
  65289. deprecated="not deprecated">
  65290. <param name="builder" type="java.lang.StringBuilder"/>
  65291. <doc>
  65292. <![CDATA[Add the stuff after the "job" prefix to the given builder. This is useful,
  65293. because the sub-ids use this substring at the start of their string.
  65294. @param builder the builder to append to
  65295. @return the builder that was passed in]]>
  65296. </doc>
  65297. </method>
  65298. <method name="hashCode" return="int"
  65299. abstract="false" native="false" synchronized="false"
  65300. static="false" final="false" visibility="public"
  65301. deprecated="not deprecated">
  65302. </method>
  65303. <method name="toString" return="java.lang.String"
  65304. abstract="false" native="false" synchronized="false"
  65305. static="false" final="false" visibility="public"
  65306. deprecated="not deprecated">
  65307. </method>
  65308. <method name="readFields"
  65309. abstract="false" native="false" synchronized="false"
  65310. static="false" final="false" visibility="public"
  65311. deprecated="not deprecated">
  65312. <param name="in" type="java.io.DataInput"/>
  65313. <exception name="IOException" type="java.io.IOException"/>
  65314. </method>
  65315. <method name="write"
  65316. abstract="false" native="false" synchronized="false"
  65317. static="false" final="false" visibility="public"
  65318. deprecated="not deprecated">
  65319. <param name="out" type="java.io.DataOutput"/>
  65320. <exception name="IOException" type="java.io.IOException"/>
  65321. </method>
  65322. <method name="forName" return="org.apache.hadoop.mapreduce.JobID"
  65323. abstract="false" native="false" synchronized="false"
  65324. static="true" final="false" visibility="public"
  65325. deprecated="not deprecated">
  65326. <param name="str" type="java.lang.String"/>
  65327. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  65328. <doc>
  65329. <![CDATA[Construct a JobId object from given string
  65330. @return constructed JobId object or null if the given String is null
  65331. @throws IllegalArgumentException if the given string is malformed]]>
  65332. </doc>
  65333. </method>
  65334. <field name="JOB" type="java.lang.String"
  65335. transient="false" volatile="false"
  65336. static="true" final="true" visibility="protected"
  65337. deprecated="not deprecated">
  65338. </field>
  65339. <field name="JOBID_REGEX" type="java.lang.String"
  65340. transient="false" volatile="false"
  65341. static="true" final="true" visibility="public"
  65342. deprecated="not deprecated">
  65343. </field>
  65344. <field name="idFormat" type="java.text.NumberFormat"
  65345. transient="false" volatile="false"
  65346. static="true" final="true" visibility="protected"
  65347. deprecated="not deprecated">
  65348. </field>
  65349. <doc>
  65350. <![CDATA[JobID represents the immutable and unique identifier for
  65351. the job. JobID consists of two parts. First part
  65352. represents the jobtracker identifier, so that jobID to jobtracker map
  65353. is defined. For cluster setup this string is the jobtracker
  65354. start time, for local setting, it is "local".
  65355. Second part of the JobID is the job number. <br>
  65356. An example JobID is :
  65357. <code>job_200707121733_0003</code> , which represents the third job
  65358. running at the jobtracker started at <code>200707121733</code>.
  65359. <p>
  65360. Applications should never construct or parse JobID strings, but rather
  65361. use appropriate constructors or {@link #forName(String)} method.
  65362. @see TaskID
  65363. @see TaskAttemptID
  65364. @see org.apache.hadoop.mapred.JobTracker#getNewJobId()
  65365. @see org.apache.hadoop.mapred.JobTracker#getStartTime()]]>
  65366. </doc>
  65367. </class>
  65368. <!-- end class org.apache.hadoop.mapreduce.JobID -->
  65369. <!-- start class org.apache.hadoop.mapreduce.JobStatus -->
  65370. <class name="JobStatus" extends="java.lang.Object"
  65371. abstract="false"
  65372. static="false" final="false" visibility="public"
  65373. deprecated="not deprecated">
  65374. <constructor name="JobStatus"
  65375. static="false" final="false" visibility="public"
  65376. deprecated="not deprecated">
  65377. </constructor>
  65378. <doc>
  65379. <![CDATA[Describes the current status of a job.]]>
  65380. </doc>
  65381. </class>
  65382. <!-- end class org.apache.hadoop.mapreduce.JobStatus -->
  65383. <!-- start class org.apache.hadoop.mapreduce.JobStatus.State -->
  65384. <class name="JobStatus.State" extends="java.lang.Enum"
  65385. abstract="false"
  65386. static="true" final="true" visibility="public"
  65387. deprecated="not deprecated">
  65388. <method name="values" return="org.apache.hadoop.mapreduce.JobStatus.State[]"
  65389. abstract="false" native="false" synchronized="false"
  65390. static="true" final="false" visibility="public"
  65391. deprecated="not deprecated">
  65392. </method>
  65393. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobStatus.State"
  65394. abstract="false" native="false" synchronized="false"
  65395. static="true" final="false" visibility="public"
  65396. deprecated="not deprecated">
  65397. <param name="name" type="java.lang.String"/>
  65398. </method>
  65399. <method name="getValue" return="int"
  65400. abstract="false" native="false" synchronized="false"
  65401. static="false" final="false" visibility="public"
  65402. deprecated="not deprecated">
  65403. </method>
  65404. <field name="RUNNING" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65405. transient="false" volatile="false"
  65406. static="true" final="true" visibility="public"
  65407. deprecated="not deprecated">
  65408. </field>
  65409. <field name="SUCCEEDED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65410. transient="false" volatile="false"
  65411. static="true" final="true" visibility="public"
  65412. deprecated="not deprecated">
  65413. </field>
  65414. <field name="FAILED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65415. transient="false" volatile="false"
  65416. static="true" final="true" visibility="public"
  65417. deprecated="not deprecated">
  65418. </field>
  65419. <field name="PREP" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65420. transient="false" volatile="false"
  65421. static="true" final="true" visibility="public"
  65422. deprecated="not deprecated">
  65423. </field>
  65424. <field name="KILLED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65425. transient="false" volatile="false"
  65426. static="true" final="true" visibility="public"
  65427. deprecated="not deprecated">
  65428. </field>
  65429. <doc>
  65430. <![CDATA[Current state of the job]]>
  65431. </doc>
  65432. </class>
  65433. <!-- end class org.apache.hadoop.mapreduce.JobStatus.State -->
  65434. <!-- start class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  65435. <class name="JobSubmissionFiles" extends="java.lang.Object"
  65436. abstract="false"
  65437. static="false" final="false" visibility="public"
  65438. deprecated="not deprecated">
  65439. <constructor name="JobSubmissionFiles"
  65440. static="false" final="false" visibility="public"
  65441. deprecated="not deprecated">
  65442. </constructor>
  65443. <method name="getJobSplitFile" return="org.apache.hadoop.fs.Path"
  65444. abstract="false" native="false" synchronized="false"
  65445. static="true" final="false" visibility="public"
  65446. deprecated="not deprecated">
  65447. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  65448. </method>
  65449. <method name="getJobSplitMetaFile" return="org.apache.hadoop.fs.Path"
  65450. abstract="false" native="false" synchronized="false"
  65451. static="true" final="false" visibility="public"
  65452. deprecated="not deprecated">
  65453. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  65454. </method>
  65455. <method name="getJobConfPath" return="org.apache.hadoop.fs.Path"
  65456. abstract="false" native="false" synchronized="false"
  65457. static="true" final="false" visibility="public"
  65458. deprecated="not deprecated">
  65459. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65460. <doc>
  65461. <![CDATA[Get the job conf path.]]>
  65462. </doc>
  65463. </method>
  65464. <method name="getJobJar" return="org.apache.hadoop.fs.Path"
  65465. abstract="false" native="false" synchronized="false"
  65466. static="true" final="false" visibility="public"
  65467. deprecated="not deprecated">
  65468. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65469. <doc>
  65470. <![CDATA[Get the job jar path.]]>
  65471. </doc>
  65472. </method>
  65473. <method name="getJobDistCacheFiles" return="org.apache.hadoop.fs.Path"
  65474. abstract="false" native="false" synchronized="false"
  65475. static="true" final="false" visibility="public"
  65476. deprecated="not deprecated">
  65477. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65478. <doc>
  65479. <![CDATA[Get the job distributed cache files path.
  65480. @param jobSubmitDir]]>
  65481. </doc>
  65482. </method>
  65483. <method name="getJobDistCacheArchives" return="org.apache.hadoop.fs.Path"
  65484. abstract="false" native="false" synchronized="false"
  65485. static="true" final="false" visibility="public"
  65486. deprecated="not deprecated">
  65487. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65488. <doc>
  65489. <![CDATA[Get the job distributed cache archives path.
  65490. @param jobSubmitDir]]>
  65491. </doc>
  65492. </method>
  65493. <method name="getJobDistCacheLibjars" return="org.apache.hadoop.fs.Path"
  65494. abstract="false" native="false" synchronized="false"
  65495. static="true" final="false" visibility="public"
  65496. deprecated="not deprecated">
  65497. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65498. <doc>
  65499. <![CDATA[Get the job distributed cache libjars path.
  65500. @param jobSubmitDir]]>
  65501. </doc>
  65502. </method>
  65503. <method name="getStagingDir" return="org.apache.hadoop.fs.Path"
  65504. abstract="false" native="false" synchronized="false"
  65505. static="true" final="false" visibility="public"
  65506. deprecated="not deprecated">
  65507. <param name="client" type="org.apache.hadoop.mapred.JobClient"/>
  65508. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  65509. <exception name="IOException" type="java.io.IOException"/>
  65510. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65511. <doc>
  65512. <![CDATA[Initializes the staging directory and returns the path. It also
  65513. keeps track of all necessary ownership & permissions
  65514. @param client
  65515. @param conf]]>
  65516. </doc>
  65517. </method>
  65518. <field name="JOB_DIR_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  65519. transient="false" volatile="false"
  65520. static="true" final="true" visibility="public"
  65521. deprecated="not deprecated">
  65522. </field>
  65523. <field name="JOB_FILE_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  65524. transient="false" volatile="false"
  65525. static="true" final="true" visibility="public"
  65526. deprecated="not deprecated">
  65527. </field>
  65528. <doc>
  65529. <![CDATA[A utility to manage job submission files.<br/>
  65530. <b><i>Note that this class is for framework internal usage only and is
  65531. not to be used by users directly.</i></b>]]>
  65532. </doc>
  65533. </class>
  65534. <!-- end class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  65535. <!-- start class org.apache.hadoop.mapreduce.MapContext -->
  65536. <class name="MapContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  65537. abstract="false"
  65538. static="false" final="false" visibility="public"
  65539. deprecated="not deprecated">
  65540. <constructor name="MapContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.RecordReader, org.apache.hadoop.mapreduce.RecordWriter, org.apache.hadoop.mapreduce.OutputCommitter, org.apache.hadoop.mapreduce.StatusReporter, org.apache.hadoop.mapreduce.InputSplit"
  65541. static="false" final="false" visibility="public"
  65542. deprecated="not deprecated">
  65543. </constructor>
  65544. <method name="getInputSplit" return="org.apache.hadoop.mapreduce.InputSplit"
  65545. abstract="false" native="false" synchronized="false"
  65546. static="false" final="false" visibility="public"
  65547. deprecated="not deprecated">
  65548. <doc>
  65549. <![CDATA[Get the input split for this map.]]>
  65550. </doc>
  65551. </method>
  65552. <method name="getCurrentKey" return="java.lang.Object"
  65553. abstract="false" native="false" synchronized="false"
  65554. static="false" final="false" visibility="public"
  65555. deprecated="not deprecated">
  65556. <exception name="IOException" type="java.io.IOException"/>
  65557. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65558. </method>
  65559. <method name="getCurrentValue" return="java.lang.Object"
  65560. abstract="false" native="false" synchronized="false"
  65561. static="false" final="false" visibility="public"
  65562. deprecated="not deprecated">
  65563. <exception name="IOException" type="java.io.IOException"/>
  65564. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65565. </method>
  65566. <method name="nextKeyValue" return="boolean"
  65567. abstract="false" native="false" synchronized="false"
  65568. static="false" final="false" visibility="public"
  65569. deprecated="not deprecated">
  65570. <exception name="IOException" type="java.io.IOException"/>
  65571. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65572. </method>
  65573. <doc>
  65574. <![CDATA[The context that is given to the {@link Mapper}.
  65575. @param <KEYIN> the key input type to the Mapper
  65576. @param <VALUEIN> the value input type to the Mapper
  65577. @param <KEYOUT> the key output type from the Mapper
  65578. @param <VALUEOUT> the value output type from the Mapper]]>
  65579. </doc>
  65580. </class>
  65581. <!-- end class org.apache.hadoop.mapreduce.MapContext -->
  65582. <!-- start class org.apache.hadoop.mapreduce.Mapper -->
  65583. <class name="Mapper" extends="java.lang.Object"
  65584. abstract="false"
  65585. static="false" final="false" visibility="public"
  65586. deprecated="not deprecated">
  65587. <constructor name="Mapper"
  65588. static="false" final="false" visibility="public"
  65589. deprecated="not deprecated">
  65590. </constructor>
  65591. <method name="setup"
  65592. abstract="false" native="false" synchronized="false"
  65593. static="false" final="false" visibility="protected"
  65594. deprecated="not deprecated">
  65595. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  65596. <exception name="IOException" type="java.io.IOException"/>
  65597. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65598. <doc>
  65599. <![CDATA[Called once at the beginning of the task.]]>
  65600. </doc>
  65601. </method>
  65602. <method name="map"
  65603. abstract="false" native="false" synchronized="false"
  65604. static="false" final="false" visibility="protected"
  65605. deprecated="not deprecated">
  65606. <param name="key" type="java.lang.Object"/>
  65607. <param name="value" type="java.lang.Object"/>
  65608. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  65609. <exception name="IOException" type="java.io.IOException"/>
  65610. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65611. <doc>
  65612. <![CDATA[Called once for each key/value pair in the input split. Most applications
  65613. should override this, but the default is the identity function.]]>
  65614. </doc>
  65615. </method>
  65616. <method name="cleanup"
  65617. abstract="false" native="false" synchronized="false"
  65618. static="false" final="false" visibility="protected"
  65619. deprecated="not deprecated">
  65620. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  65621. <exception name="IOException" type="java.io.IOException"/>
  65622. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65623. <doc>
  65624. <![CDATA[Called once at the end of the task.]]>
  65625. </doc>
  65626. </method>
  65627. <method name="run"
  65628. abstract="false" native="false" synchronized="false"
  65629. static="false" final="false" visibility="public"
  65630. deprecated="not deprecated">
  65631. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  65632. <exception name="IOException" type="java.io.IOException"/>
  65633. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65634. <doc>
  65635. <![CDATA[Expert users can override this method for more complete control over the
  65636. execution of the Mapper.
  65637. @param context
  65638. @throws IOException]]>
  65639. </doc>
  65640. </method>
  65641. <doc>
  65642. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  65643. <p>Maps are the individual tasks which transform input records into a
  65644. intermediate records. The transformed intermediate records need not be of
  65645. the same type as the input records. A given input pair may map to zero or
  65646. many output pairs.</p>
  65647. <p>The Hadoop Map-Reduce framework spawns one map task for each
  65648. {@link InputSplit} generated by the {@link InputFormat} for the job.
  65649. <code>Mapper</code> implementations can access the {@link Configuration} for
  65650. the job via the {@link JobContext#getConfiguration()}.
  65651. <p>The framework first calls
  65652. {@link #setup(org.apache.hadoop.mapreduce.Mapper.Context)}, followed by
  65653. {@link #map(Object, Object, Context)}
  65654. for each key/value pair in the <code>InputSplit</code>. Finally
  65655. {@link #cleanup(Context)} is called.</p>
  65656. <p>All intermediate values associated with a given output key are
  65657. subsequently grouped by the framework, and passed to a {@link Reducer} to
  65658. determine the final output. Users can control the sorting and grouping by
  65659. specifying two key {@link RawComparator} classes.</p>
  65660. <p>The <code>Mapper</code> outputs are partitioned per
  65661. <code>Reducer</code>. Users can control which keys (and hence records) go to
  65662. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  65663. <p>Users can optionally specify a <code>combiner</code>, via
  65664. {@link Job#setCombinerClass(Class)}, to perform local aggregation of the
  65665. intermediate outputs, which helps to cut down the amount of data transferred
  65666. from the <code>Mapper</code> to the <code>Reducer</code>.
  65667. <p>Applications can specify if and how the intermediate
  65668. outputs are to be compressed and which {@link CompressionCodec}s are to be
  65669. used via the <code>Configuration</code>.</p>
  65670. <p>If the job has zero
  65671. reduces then the output of the <code>Mapper</code> is directly written
  65672. to the {@link OutputFormat} without sorting by keys.</p>
  65673. <p>Example:</p>
  65674. <p><blockquote><pre>
  65675. public class TokenCounterMapper
  65676. extends Mapper<Object, Text, Text, IntWritable>{
  65677. private final static IntWritable one = new IntWritable(1);
  65678. private Text word = new Text();
  65679. public void map(Object key, Text value, Context context) throws IOException {
  65680. StringTokenizer itr = new StringTokenizer(value.toString());
  65681. while (itr.hasMoreTokens()) {
  65682. word.set(itr.nextToken());
  65683. context.collect(word, one);
  65684. }
  65685. }
  65686. }
  65687. </pre></blockquote></p>
  65688. <p>Applications may override the {@link #run(Context)} method to exert
  65689. greater control on map processing e.g. multi-threaded <code>Mapper</code>s
  65690. etc.</p>
  65691. @see InputFormat
  65692. @see JobContext
  65693. @see Partitioner
  65694. @see Reducer]]>
  65695. </doc>
  65696. </class>
  65697. <!-- end class org.apache.hadoop.mapreduce.Mapper -->
  65698. <!-- start class org.apache.hadoop.mapreduce.Mapper.Context -->
  65699. <class name="Mapper.Context" extends="org.apache.hadoop.mapreduce.MapContext"
  65700. abstract="false"
  65701. static="false" final="false" visibility="public"
  65702. deprecated="not deprecated">
  65703. <constructor name="Mapper.Context" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.RecordReader, org.apache.hadoop.mapreduce.RecordWriter, org.apache.hadoop.mapreduce.OutputCommitter, org.apache.hadoop.mapreduce.StatusReporter, org.apache.hadoop.mapreduce.InputSplit"
  65704. static="false" final="false" visibility="public"
  65705. deprecated="not deprecated">
  65706. <exception name="IOException" type="java.io.IOException"/>
  65707. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65708. </constructor>
  65709. </class>
  65710. <!-- end class org.apache.hadoop.mapreduce.Mapper.Context -->
  65711. <!-- start class org.apache.hadoop.mapreduce.OutputCommitter -->
  65712. <class name="OutputCommitter" extends="java.lang.Object"
  65713. abstract="true"
  65714. static="false" final="false" visibility="public"
  65715. deprecated="not deprecated">
  65716. <constructor name="OutputCommitter"
  65717. static="false" final="false" visibility="public"
  65718. deprecated="not deprecated">
  65719. </constructor>
  65720. <method name="setupJob"
  65721. abstract="true" native="false" synchronized="false"
  65722. static="false" final="false" visibility="public"
  65723. deprecated="not deprecated">
  65724. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  65725. <exception name="IOException" type="java.io.IOException"/>
  65726. <doc>
  65727. <![CDATA[For the framework to setup the job output during initialization
  65728. @param jobContext Context of the job whose output is being written.
  65729. @throws IOException if temporary output could not be created]]>
  65730. </doc>
  65731. </method>
  65732. <method name="commitJob"
  65733. abstract="false" native="false" synchronized="false"
  65734. static="false" final="false" visibility="public"
  65735. deprecated="not deprecated">
  65736. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  65737. <exception name="IOException" type="java.io.IOException"/>
  65738. <doc>
  65739. <![CDATA[For cleaning up the job's output after job completion. Note that this
  65740. is invoked for jobs with final run state as
  65741. {@link JobStatus.State#SUCCEEDED}
  65742. @param jobContext Context of the job whose output is being written.
  65743. @throws IOException]]>
  65744. </doc>
  65745. </method>
  65746. <method name="cleanupJob"
  65747. abstract="false" native="false" synchronized="false"
  65748. static="false" final="false" visibility="public"
  65749. deprecated="use {@link #commitJob(JobContext)} or
  65750. {@link #abortJob(JobContext, JobStatus.State)} instead">
  65751. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  65752. <exception name="IOException" type="java.io.IOException"/>
  65753. <doc>
  65754. <![CDATA[For cleaning up the job's output after job completion
  65755. @deprecated use {@link #commitJob(JobContext)} or
  65756. {@link #abortJob(JobContext, JobStatus.State)} instead]]>
  65757. </doc>
  65758. </method>
  65759. <method name="abortJob"
  65760. abstract="false" native="false" synchronized="false"
  65761. static="false" final="false" visibility="public"
  65762. deprecated="not deprecated">
  65763. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  65764. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  65765. <exception name="IOException" type="java.io.IOException"/>
  65766. <doc>
  65767. <![CDATA[For aborting an unsuccessful job's output. Note that this is invoked for
  65768. jobs with final run state as {@link JobStatus.State#FAILED} or
  65769. {@link JobStatus.State#KILLED}.
  65770. @param jobContext Context of the job whose output is being written.
  65771. @param state final run state of the job, should be either
  65772. {@link JobStatus.State#KILLED} or {@link JobStatus.State#FAILED}
  65773. @throws IOException]]>
  65774. </doc>
  65775. </method>
  65776. <method name="setupTask"
  65777. abstract="true" native="false" synchronized="false"
  65778. static="false" final="false" visibility="public"
  65779. deprecated="not deprecated">
  65780. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  65781. <exception name="IOException" type="java.io.IOException"/>
  65782. <doc>
  65783. <![CDATA[Sets up output for the task.
  65784. @param taskContext Context of the task whose output is being written.
  65785. @throws IOException]]>
  65786. </doc>
  65787. </method>
  65788. <method name="needsTaskCommit" return="boolean"
  65789. abstract="true" native="false" synchronized="false"
  65790. static="false" final="false" visibility="public"
  65791. deprecated="not deprecated">
  65792. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  65793. <exception name="IOException" type="java.io.IOException"/>
  65794. <doc>
  65795. <![CDATA[Check whether task needs a commit
  65796. @param taskContext
  65797. @return true/false
  65798. @throws IOException]]>
  65799. </doc>
  65800. </method>
  65801. <method name="commitTask"
  65802. abstract="true" native="false" synchronized="false"
  65803. static="false" final="false" visibility="public"
  65804. deprecated="not deprecated">
  65805. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  65806. <exception name="IOException" type="java.io.IOException"/>
  65807. <doc>
  65808. <![CDATA[To promote the task's temporary output to final output location
  65809. The task's output is moved to the job's output directory.
  65810. @param taskContext Context of the task whose output is being written.
  65811. @throws IOException if commit is not]]>
  65812. </doc>
  65813. </method>
  65814. <method name="abortTask"
  65815. abstract="true" native="false" synchronized="false"
  65816. static="false" final="false" visibility="public"
  65817. deprecated="not deprecated">
  65818. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  65819. <exception name="IOException" type="java.io.IOException"/>
  65820. <doc>
  65821. <![CDATA[Discard the task output
  65822. @param taskContext
  65823. @throws IOException]]>
  65824. </doc>
  65825. </method>
  65826. <doc>
  65827. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  65828. Map-Reduce job.
  65829. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  65830. the job to:<p>
  65831. <ol>
  65832. <li>
  65833. Setup the job during initialization. For example, create the temporary
  65834. output directory for the job during the initialization of the job.
  65835. </li>
  65836. <li>
  65837. Cleanup the job after the job completion. For example, remove the
  65838. temporary output directory after the job completion.
  65839. </li>
  65840. <li>
  65841. Setup the task temporary output.
  65842. </li>
  65843. <li>
  65844. Check whether a task needs a commit. This is to avoid the commit
  65845. procedure if a task does not need commit.
  65846. </li>
  65847. <li>
  65848. Commit of the task output.
  65849. </li>
  65850. <li>
  65851. Discard the task commit.
  65852. </li>
  65853. </ol>
  65854. @see org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
  65855. @see JobContext
  65856. @see TaskAttemptContext]]>
  65857. </doc>
  65858. </class>
  65859. <!-- end class org.apache.hadoop.mapreduce.OutputCommitter -->
  65860. <!-- start class org.apache.hadoop.mapreduce.OutputFormat -->
  65861. <class name="OutputFormat" extends="java.lang.Object"
  65862. abstract="true"
  65863. static="false" final="false" visibility="public"
  65864. deprecated="not deprecated">
  65865. <constructor name="OutputFormat"
  65866. static="false" final="false" visibility="public"
  65867. deprecated="not deprecated">
  65868. </constructor>
  65869. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  65870. abstract="true" native="false" synchronized="false"
  65871. static="false" final="false" visibility="public"
  65872. deprecated="not deprecated">
  65873. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  65874. <exception name="IOException" type="java.io.IOException"/>
  65875. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65876. <doc>
  65877. <![CDATA[Get the {@link RecordWriter} for the given task.
  65878. @param context the information about the current task.
  65879. @return a {@link RecordWriter} to write the output for the job.
  65880. @throws IOException]]>
  65881. </doc>
  65882. </method>
  65883. <method name="checkOutputSpecs"
  65884. abstract="true" native="false" synchronized="false"
  65885. static="false" final="false" visibility="public"
  65886. deprecated="not deprecated">
  65887. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  65888. <exception name="IOException" type="java.io.IOException"/>
  65889. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65890. <doc>
  65891. <![CDATA[Check for validity of the output-specification for the job.
  65892. <p>This is to validate the output specification for the job when it is
  65893. a job is submitted. Typically checks that it does not already exist,
  65894. throwing an exception when it already exists, so that output is not
  65895. overwritten.</p>
  65896. @param context information about the job
  65897. @throws IOException when output should not be attempted]]>
  65898. </doc>
  65899. </method>
  65900. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  65901. abstract="true" native="false" synchronized="false"
  65902. static="false" final="false" visibility="public"
  65903. deprecated="not deprecated">
  65904. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  65905. <exception name="IOException" type="java.io.IOException"/>
  65906. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65907. <doc>
  65908. <![CDATA[Get the output committer for this output format. This is responsible
  65909. for ensuring the output is committed correctly.
  65910. @param context the task context
  65911. @return an output committer
  65912. @throws IOException
  65913. @throws InterruptedException]]>
  65914. </doc>
  65915. </method>
  65916. <doc>
  65917. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  65918. Map-Reduce job.
  65919. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  65920. job to:<p>
  65921. <ol>
  65922. <li>
  65923. Validate the output-specification of the job. For e.g. check that the
  65924. output directory doesn't already exist.
  65925. <li>
  65926. Provide the {@link RecordWriter} implementation to be used to write out
  65927. the output files of the job. Output files are stored in a
  65928. {@link FileSystem}.
  65929. </li>
  65930. </ol>
  65931. @see RecordWriter]]>
  65932. </doc>
  65933. </class>
  65934. <!-- end class org.apache.hadoop.mapreduce.OutputFormat -->
  65935. <!-- start class org.apache.hadoop.mapreduce.Partitioner -->
  65936. <class name="Partitioner" extends="java.lang.Object"
  65937. abstract="true"
  65938. static="false" final="false" visibility="public"
  65939. deprecated="not deprecated">
  65940. <constructor name="Partitioner"
  65941. static="false" final="false" visibility="public"
  65942. deprecated="not deprecated">
  65943. </constructor>
  65944. <method name="getPartition" return="int"
  65945. abstract="true" native="false" synchronized="false"
  65946. static="false" final="false" visibility="public"
  65947. deprecated="not deprecated">
  65948. <param name="key" type="java.lang.Object"/>
  65949. <param name="value" type="java.lang.Object"/>
  65950. <param name="numPartitions" type="int"/>
  65951. <doc>
  65952. <![CDATA[Get the partition number for a given key (hence record) given the total
  65953. number of partitions i.e. number of reduce-tasks for the job.
  65954. <p>Typically a hash function on a all or a subset of the key.</p>
  65955. @param key the key to be partioned.
  65956. @param value the entry value.
  65957. @param numPartitions the total number of partitions.
  65958. @return the partition number for the <code>key</code>.]]>
  65959. </doc>
  65960. </method>
  65961. <doc>
  65962. <![CDATA[Partitions the key space.
  65963. <p><code>Partitioner</code> controls the partitioning of the keys of the
  65964. intermediate map-outputs. The key (or a subset of the key) is used to derive
  65965. the partition, typically by a hash function. The total number of partitions
  65966. is the same as the number of reduce tasks for the job. Hence this controls
  65967. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  65968. record) is sent for reduction.</p>
  65969. @see Reducer]]>
  65970. </doc>
  65971. </class>
  65972. <!-- end class org.apache.hadoop.mapreduce.Partitioner -->
  65973. <!-- start class org.apache.hadoop.mapreduce.RecordReader -->
  65974. <class name="RecordReader" extends="java.lang.Object"
  65975. abstract="true"
  65976. static="false" final="false" visibility="public"
  65977. deprecated="not deprecated">
  65978. <implements name="java.io.Closeable"/>
  65979. <constructor name="RecordReader"
  65980. static="false" final="false" visibility="public"
  65981. deprecated="not deprecated">
  65982. </constructor>
  65983. <method name="initialize"
  65984. abstract="true" native="false" synchronized="false"
  65985. static="false" final="false" visibility="public"
  65986. deprecated="not deprecated">
  65987. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  65988. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  65989. <exception name="IOException" type="java.io.IOException"/>
  65990. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65991. <doc>
  65992. <![CDATA[Called once at initialization.
  65993. @param split the split that defines the range of records to read
  65994. @param context the information about the task
  65995. @throws IOException
  65996. @throws InterruptedException]]>
  65997. </doc>
  65998. </method>
  65999. <method name="nextKeyValue" return="boolean"
  66000. abstract="true" native="false" synchronized="false"
  66001. static="false" final="false" visibility="public"
  66002. deprecated="not deprecated">
  66003. <exception name="IOException" type="java.io.IOException"/>
  66004. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66005. <doc>
  66006. <![CDATA[Read the next key, value pair.
  66007. @return true if a key/value pair was read
  66008. @throws IOException
  66009. @throws InterruptedException]]>
  66010. </doc>
  66011. </method>
  66012. <method name="getCurrentKey" return="java.lang.Object"
  66013. abstract="true" native="false" synchronized="false"
  66014. static="false" final="false" visibility="public"
  66015. deprecated="not deprecated">
  66016. <exception name="IOException" type="java.io.IOException"/>
  66017. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66018. <doc>
  66019. <![CDATA[Get the current key
  66020. @return the current key or null if there is no current key
  66021. @throws IOException
  66022. @throws InterruptedException]]>
  66023. </doc>
  66024. </method>
  66025. <method name="getCurrentValue" return="java.lang.Object"
  66026. abstract="true" native="false" synchronized="false"
  66027. static="false" final="false" visibility="public"
  66028. deprecated="not deprecated">
  66029. <exception name="IOException" type="java.io.IOException"/>
  66030. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66031. <doc>
  66032. <![CDATA[Get the current value.
  66033. @return the object that was read
  66034. @throws IOException
  66035. @throws InterruptedException]]>
  66036. </doc>
  66037. </method>
  66038. <method name="getProgress" return="float"
  66039. abstract="true" native="false" synchronized="false"
  66040. static="false" final="false" visibility="public"
  66041. deprecated="not deprecated">
  66042. <exception name="IOException" type="java.io.IOException"/>
  66043. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66044. <doc>
  66045. <![CDATA[The current progress of the record reader through its data.
  66046. @return a number between 0.0 and 1.0 that is the fraction of the data read
  66047. @throws IOException
  66048. @throws InterruptedException]]>
  66049. </doc>
  66050. </method>
  66051. <method name="close"
  66052. abstract="true" native="false" synchronized="false"
  66053. static="false" final="false" visibility="public"
  66054. deprecated="not deprecated">
  66055. <exception name="IOException" type="java.io.IOException"/>
  66056. <doc>
  66057. <![CDATA[Close the record reader.]]>
  66058. </doc>
  66059. </method>
  66060. <doc>
  66061. <![CDATA[The record reader breaks the data into key/value pairs for input to the
  66062. {@link Mapper}.
  66063. @param <KEYIN>
  66064. @param <VALUEIN>]]>
  66065. </doc>
  66066. </class>
  66067. <!-- end class org.apache.hadoop.mapreduce.RecordReader -->
  66068. <!-- start class org.apache.hadoop.mapreduce.RecordWriter -->
  66069. <class name="RecordWriter" extends="java.lang.Object"
  66070. abstract="true"
  66071. static="false" final="false" visibility="public"
  66072. deprecated="not deprecated">
  66073. <constructor name="RecordWriter"
  66074. static="false" final="false" visibility="public"
  66075. deprecated="not deprecated">
  66076. </constructor>
  66077. <method name="write"
  66078. abstract="true" native="false" synchronized="false"
  66079. static="false" final="false" visibility="public"
  66080. deprecated="not deprecated">
  66081. <param name="key" type="java.lang.Object"/>
  66082. <param name="value" type="java.lang.Object"/>
  66083. <exception name="IOException" type="java.io.IOException"/>
  66084. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66085. <doc>
  66086. <![CDATA[Writes a key/value pair.
  66087. @param key the key to write.
  66088. @param value the value to write.
  66089. @throws IOException]]>
  66090. </doc>
  66091. </method>
  66092. <method name="close"
  66093. abstract="true" native="false" synchronized="false"
  66094. static="false" final="false" visibility="public"
  66095. deprecated="not deprecated">
  66096. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66097. <exception name="IOException" type="java.io.IOException"/>
  66098. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66099. <doc>
  66100. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  66101. @param context the context of the task
  66102. @throws IOException]]>
  66103. </doc>
  66104. </method>
  66105. <doc>
  66106. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  66107. to an output file.
  66108. <p><code>RecordWriter</code> implementations write the job outputs to the
  66109. {@link FileSystem}.
  66110. @see OutputFormat]]>
  66111. </doc>
  66112. </class>
  66113. <!-- end class org.apache.hadoop.mapreduce.RecordWriter -->
  66114. <!-- start class org.apache.hadoop.mapreduce.ReduceContext -->
  66115. <class name="ReduceContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  66116. abstract="false"
  66117. static="false" final="false" visibility="public"
  66118. deprecated="not deprecated">
  66119. <constructor name="ReduceContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapred.RawKeyValueIterator, org.apache.hadoop.mapreduce.Counter, org.apache.hadoop.mapreduce.Counter, org.apache.hadoop.mapreduce.RecordWriter, org.apache.hadoop.mapreduce.OutputCommitter, org.apache.hadoop.mapreduce.StatusReporter, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class"
  66120. static="false" final="false" visibility="public"
  66121. deprecated="not deprecated">
  66122. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66123. <exception name="IOException" type="java.io.IOException"/>
  66124. </constructor>
  66125. <method name="nextKey" return="boolean"
  66126. abstract="false" native="false" synchronized="false"
  66127. static="false" final="false" visibility="public"
  66128. deprecated="not deprecated">
  66129. <exception name="IOException" type="java.io.IOException"/>
  66130. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66131. <doc>
  66132. <![CDATA[Start processing next unique key.]]>
  66133. </doc>
  66134. </method>
  66135. <method name="nextKeyValue" return="boolean"
  66136. abstract="false" native="false" synchronized="false"
  66137. static="false" final="false" visibility="public"
  66138. deprecated="not deprecated">
  66139. <exception name="IOException" type="java.io.IOException"/>
  66140. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66141. <doc>
  66142. <![CDATA[Advance to the next key/value pair.]]>
  66143. </doc>
  66144. </method>
  66145. <method name="getCurrentKey" return="java.lang.Object"
  66146. abstract="false" native="false" synchronized="false"
  66147. static="false" final="false" visibility="public"
  66148. deprecated="not deprecated">
  66149. </method>
  66150. <method name="getCurrentValue" return="java.lang.Object"
  66151. abstract="false" native="false" synchronized="false"
  66152. static="false" final="false" visibility="public"
  66153. deprecated="not deprecated">
  66154. </method>
  66155. <method name="getValues" return="java.lang.Iterable"
  66156. abstract="false" native="false" synchronized="false"
  66157. static="false" final="false" visibility="public"
  66158. deprecated="not deprecated">
  66159. <exception name="IOException" type="java.io.IOException"/>
  66160. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66161. <doc>
  66162. <![CDATA[Iterate through the values for the current key, reusing the same value
  66163. object, which is stored in the context.
  66164. @return the series of values associated with the current key. All of the
  66165. objects returned directly and indirectly from this method are reused.]]>
  66166. </doc>
  66167. </method>
  66168. <field name="reporter" type="org.apache.hadoop.util.Progressable"
  66169. transient="false" volatile="false"
  66170. static="false" final="false" visibility="protected"
  66171. deprecated="not deprecated">
  66172. </field>
  66173. <doc>
  66174. <![CDATA[The context passed to the {@link Reducer}.
  66175. @param <KEYIN> the class of the input keys
  66176. @param <VALUEIN> the class of the input values
  66177. @param <KEYOUT> the class of the output keys
  66178. @param <VALUEOUT> the class of the output values]]>
  66179. </doc>
  66180. </class>
  66181. <!-- end class org.apache.hadoop.mapreduce.ReduceContext -->
  66182. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  66183. <class name="ReduceContext.ValueIterable" extends="java.lang.Object"
  66184. abstract="false"
  66185. static="false" final="false" visibility="protected"
  66186. deprecated="not deprecated">
  66187. <implements name="java.lang.Iterable"/>
  66188. <constructor name="ReduceContext.ValueIterable"
  66189. static="false" final="false" visibility="protected"
  66190. deprecated="not deprecated">
  66191. </constructor>
  66192. <method name="iterator" return="java.util.Iterator"
  66193. abstract="false" native="false" synchronized="false"
  66194. static="false" final="false" visibility="public"
  66195. deprecated="not deprecated">
  66196. </method>
  66197. </class>
  66198. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  66199. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  66200. <class name="ReduceContext.ValueIterator" extends="java.lang.Object"
  66201. abstract="false"
  66202. static="false" final="false" visibility="protected"
  66203. deprecated="not deprecated">
  66204. <implements name="java.util.Iterator"/>
  66205. <constructor name="ReduceContext.ValueIterator"
  66206. static="false" final="false" visibility="protected"
  66207. deprecated="not deprecated">
  66208. </constructor>
  66209. <method name="hasNext" return="boolean"
  66210. abstract="false" native="false" synchronized="false"
  66211. static="false" final="false" visibility="public"
  66212. deprecated="not deprecated">
  66213. </method>
  66214. <method name="next" return="java.lang.Object"
  66215. abstract="false" native="false" synchronized="false"
  66216. static="false" final="false" visibility="public"
  66217. deprecated="not deprecated">
  66218. </method>
  66219. <method name="remove"
  66220. abstract="false" native="false" synchronized="false"
  66221. static="false" final="false" visibility="public"
  66222. deprecated="not deprecated">
  66223. </method>
  66224. </class>
  66225. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  66226. <!-- start class org.apache.hadoop.mapreduce.Reducer -->
  66227. <class name="Reducer" extends="java.lang.Object"
  66228. abstract="false"
  66229. static="false" final="false" visibility="public"
  66230. deprecated="not deprecated">
  66231. <constructor name="Reducer"
  66232. static="false" final="false" visibility="public"
  66233. deprecated="not deprecated">
  66234. </constructor>
  66235. <method name="setup"
  66236. abstract="false" native="false" synchronized="false"
  66237. static="false" final="false" visibility="protected"
  66238. deprecated="not deprecated">
  66239. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  66240. <exception name="IOException" type="java.io.IOException"/>
  66241. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66242. <doc>
  66243. <![CDATA[Called once at the start of the task.]]>
  66244. </doc>
  66245. </method>
  66246. <method name="reduce"
  66247. abstract="false" native="false" synchronized="false"
  66248. static="false" final="false" visibility="protected"
  66249. deprecated="not deprecated">
  66250. <param name="key" type="java.lang.Object"/>
  66251. <param name="values" type="java.lang.Iterable"/>
  66252. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  66253. <exception name="IOException" type="java.io.IOException"/>
  66254. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66255. <doc>
  66256. <![CDATA[This method is called once for each key. Most applications will define
  66257. their reduce class by overriding this method. The default implementation
  66258. is an identity function.]]>
  66259. </doc>
  66260. </method>
  66261. <method name="cleanup"
  66262. abstract="false" native="false" synchronized="false"
  66263. static="false" final="false" visibility="protected"
  66264. deprecated="not deprecated">
  66265. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  66266. <exception name="IOException" type="java.io.IOException"/>
  66267. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66268. <doc>
  66269. <![CDATA[Called once at the end of the task.]]>
  66270. </doc>
  66271. </method>
  66272. <method name="run"
  66273. abstract="false" native="false" synchronized="false"
  66274. static="false" final="false" visibility="public"
  66275. deprecated="not deprecated">
  66276. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  66277. <exception name="IOException" type="java.io.IOException"/>
  66278. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66279. <doc>
  66280. <![CDATA[Advanced application writers can use the
  66281. {@link #run(org.apache.hadoop.mapreduce.Reducer.Context)} method to
  66282. control how the reduce task works.]]>
  66283. </doc>
  66284. </method>
  66285. <doc>
  66286. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  66287. values.
  66288. <p><code>Reducer</code> implementations
  66289. can access the {@link Configuration} for the job via the
  66290. {@link JobContext#getConfiguration()} method.</p>
  66291. <p><code>Reducer</code> has 3 primary phases:</p>
  66292. <ol>
  66293. <li>
  66294. <h4 id="Shuffle">Shuffle</h4>
  66295. <p>The <code>Reducer</code> copies the sorted output from each
  66296. {@link Mapper} using HTTP across the network.</p>
  66297. </li>
  66298. <li>
  66299. <h4 id="Sort">Sort</h4>
  66300. <p>The framework merge sorts <code>Reducer</code> inputs by
  66301. <code>key</code>s
  66302. (since different <code>Mapper</code>s may have output the same key).</p>
  66303. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  66304. being fetched they are merged.</p>
  66305. <h5 id="SecondarySort">SecondarySort</h5>
  66306. <p>To achieve a secondary sort on the values returned by the value
  66307. iterator, the application should extend the key with the secondary
  66308. key and define a grouping comparator. The keys will be sorted using the
  66309. entire key, but will be grouped using the grouping comparator to decide
  66310. which keys and values are sent in the same call to reduce.The grouping
  66311. comparator is specified via
  66312. {@link Job#setGroupingComparatorClass(Class)}. The sort order is
  66313. controlled by
  66314. {@link Job#setSortComparatorClass(Class)}.</p>
  66315. For example, say that you want to find duplicate web pages and tag them
  66316. all with the url of the "best" known example. You would set up the job
  66317. like:
  66318. <ul>
  66319. <li>Map Input Key: url</li>
  66320. <li>Map Input Value: document</li>
  66321. <li>Map Output Key: document checksum, url pagerank</li>
  66322. <li>Map Output Value: url</li>
  66323. <li>Partitioner: by checksum</li>
  66324. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  66325. <li>OutputValueGroupingComparator: by checksum</li>
  66326. </ul>
  66327. </li>
  66328. <li>
  66329. <h4 id="Reduce">Reduce</h4>
  66330. <p>In this phase the
  66331. {@link #reduce(Object, Iterable, Context)}
  66332. method is called for each <code>&lt;key, (collection of values)></code> in
  66333. the sorted inputs.</p>
  66334. <p>The output of the reduce task is typically written to a
  66335. {@link RecordWriter} via
  66336. {@link Context#write(Object, Object)}.</p>
  66337. </li>
  66338. </ol>
  66339. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  66340. <p>Example:</p>
  66341. <p><blockquote><pre>
  66342. public class IntSumReducer<Key> extends Reducer<Key,IntWritable,
  66343. Key,IntWritable> {
  66344. private IntWritable result = new IntWritable();
  66345. public void reduce(Key key, Iterable<IntWritable> values,
  66346. Context context) throws IOException {
  66347. int sum = 0;
  66348. for (IntWritable val : values) {
  66349. sum += val.get();
  66350. }
  66351. result.set(sum);
  66352. context.collect(key, result);
  66353. }
  66354. }
  66355. </pre></blockquote></p>
  66356. @see Mapper
  66357. @see Partitioner]]>
  66358. </doc>
  66359. </class>
  66360. <!-- end class org.apache.hadoop.mapreduce.Reducer -->
  66361. <!-- start class org.apache.hadoop.mapreduce.Reducer.Context -->
  66362. <class name="Reducer.Context" extends="org.apache.hadoop.mapreduce.ReduceContext"
  66363. abstract="false"
  66364. static="false" final="false" visibility="public"
  66365. deprecated="not deprecated">
  66366. <constructor name="Reducer.Context" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapred.RawKeyValueIterator, org.apache.hadoop.mapreduce.Counter, org.apache.hadoop.mapreduce.Counter, org.apache.hadoop.mapreduce.RecordWriter, org.apache.hadoop.mapreduce.OutputCommitter, org.apache.hadoop.mapreduce.StatusReporter, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class"
  66367. static="false" final="false" visibility="public"
  66368. deprecated="not deprecated">
  66369. <exception name="IOException" type="java.io.IOException"/>
  66370. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66371. </constructor>
  66372. </class>
  66373. <!-- end class org.apache.hadoop.mapreduce.Reducer.Context -->
  66374. <!-- start class org.apache.hadoop.mapreduce.StatusReporter -->
  66375. <class name="StatusReporter" extends="java.lang.Object"
  66376. abstract="true"
  66377. static="false" final="false" visibility="public"
  66378. deprecated="not deprecated">
  66379. <constructor name="StatusReporter"
  66380. static="false" final="false" visibility="public"
  66381. deprecated="not deprecated">
  66382. </constructor>
  66383. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  66384. abstract="true" native="false" synchronized="false"
  66385. static="false" final="false" visibility="public"
  66386. deprecated="not deprecated">
  66387. <param name="name" type="java.lang.Enum"/>
  66388. </method>
  66389. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  66390. abstract="true" native="false" synchronized="false"
  66391. static="false" final="false" visibility="public"
  66392. deprecated="not deprecated">
  66393. <param name="group" type="java.lang.String"/>
  66394. <param name="name" type="java.lang.String"/>
  66395. </method>
  66396. <method name="progress"
  66397. abstract="true" native="false" synchronized="false"
  66398. static="false" final="false" visibility="public"
  66399. deprecated="not deprecated">
  66400. </method>
  66401. <method name="setStatus"
  66402. abstract="true" native="false" synchronized="false"
  66403. static="false" final="false" visibility="public"
  66404. deprecated="not deprecated">
  66405. <param name="status" type="java.lang.String"/>
  66406. </method>
  66407. </class>
  66408. <!-- end class org.apache.hadoop.mapreduce.StatusReporter -->
  66409. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  66410. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.JobContext"
  66411. abstract="false"
  66412. static="false" final="false" visibility="public"
  66413. deprecated="not deprecated">
  66414. <implements name="org.apache.hadoop.util.Progressable"/>
  66415. <constructor name="TaskAttemptContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID"
  66416. static="false" final="false" visibility="public"
  66417. deprecated="not deprecated">
  66418. </constructor>
  66419. <method name="getTaskAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  66420. abstract="false" native="false" synchronized="false"
  66421. static="false" final="false" visibility="public"
  66422. deprecated="not deprecated">
  66423. <doc>
  66424. <![CDATA[Get the unique name for this task attempt.]]>
  66425. </doc>
  66426. </method>
  66427. <method name="setStatus"
  66428. abstract="false" native="false" synchronized="false"
  66429. static="false" final="false" visibility="public"
  66430. deprecated="not deprecated">
  66431. <param name="msg" type="java.lang.String"/>
  66432. <exception name="IOException" type="java.io.IOException"/>
  66433. <doc>
  66434. <![CDATA[Set the current status of the task to the given string.]]>
  66435. </doc>
  66436. </method>
  66437. <method name="getStatus" return="java.lang.String"
  66438. abstract="false" native="false" synchronized="false"
  66439. static="false" final="false" visibility="public"
  66440. deprecated="not deprecated">
  66441. <doc>
  66442. <![CDATA[Get the last set status message.
  66443. @return the current status message]]>
  66444. </doc>
  66445. </method>
  66446. <method name="progress"
  66447. abstract="false" native="false" synchronized="false"
  66448. static="false" final="false" visibility="public"
  66449. deprecated="not deprecated">
  66450. <doc>
  66451. <![CDATA[Report progress. The subtypes actually do work in this method.]]>
  66452. </doc>
  66453. </method>
  66454. <doc>
  66455. <![CDATA[The context for task attempts.]]>
  66456. </doc>
  66457. </class>
  66458. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  66459. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptID -->
  66460. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  66461. abstract="false"
  66462. static="false" final="false" visibility="public"
  66463. deprecated="not deprecated">
  66464. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapreduce.TaskID, int"
  66465. static="false" final="false" visibility="public"
  66466. deprecated="not deprecated">
  66467. <doc>
  66468. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  66469. @param taskId TaskID that this task belongs to
  66470. @param id the task attempt number]]>
  66471. </doc>
  66472. </constructor>
  66473. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  66474. static="false" final="false" visibility="public"
  66475. deprecated="not deprecated">
  66476. <doc>
  66477. <![CDATA[Constructs a TaskId object from given parts.
  66478. @param jtIdentifier jobTracker identifier
  66479. @param jobId job number
  66480. @param isMap whether the tip is a map
  66481. @param taskId taskId number
  66482. @param id the task attempt number]]>
  66483. </doc>
  66484. </constructor>
  66485. <constructor name="TaskAttemptID"
  66486. static="false" final="false" visibility="public"
  66487. deprecated="not deprecated">
  66488. </constructor>
  66489. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  66490. abstract="false" native="false" synchronized="false"
  66491. static="false" final="false" visibility="public"
  66492. deprecated="not deprecated">
  66493. <doc>
  66494. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  66495. </doc>
  66496. </method>
  66497. <method name="getTaskID" return="org.apache.hadoop.mapreduce.TaskID"
  66498. abstract="false" native="false" synchronized="false"
  66499. static="false" final="false" visibility="public"
  66500. deprecated="not deprecated">
  66501. <doc>
  66502. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  66503. </doc>
  66504. </method>
  66505. <method name="isMap" return="boolean"
  66506. abstract="false" native="false" synchronized="false"
  66507. static="false" final="false" visibility="public"
  66508. deprecated="not deprecated">
  66509. <doc>
  66510. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  66511. </doc>
  66512. </method>
  66513. <method name="equals" return="boolean"
  66514. abstract="false" native="false" synchronized="false"
  66515. static="false" final="false" visibility="public"
  66516. deprecated="not deprecated">
  66517. <param name="o" type="java.lang.Object"/>
  66518. </method>
  66519. <method name="appendTo" return="java.lang.StringBuilder"
  66520. abstract="false" native="false" synchronized="false"
  66521. static="false" final="false" visibility="protected"
  66522. deprecated="not deprecated">
  66523. <param name="builder" type="java.lang.StringBuilder"/>
  66524. <doc>
  66525. <![CDATA[Add the unique string to the StringBuilder
  66526. @param builder the builder to append ot
  66527. @return the builder that was passed in.]]>
  66528. </doc>
  66529. </method>
  66530. <method name="readFields"
  66531. abstract="false" native="false" synchronized="false"
  66532. static="false" final="false" visibility="public"
  66533. deprecated="not deprecated">
  66534. <param name="in" type="java.io.DataInput"/>
  66535. <exception name="IOException" type="java.io.IOException"/>
  66536. </method>
  66537. <method name="write"
  66538. abstract="false" native="false" synchronized="false"
  66539. static="false" final="false" visibility="public"
  66540. deprecated="not deprecated">
  66541. <param name="out" type="java.io.DataOutput"/>
  66542. <exception name="IOException" type="java.io.IOException"/>
  66543. </method>
  66544. <method name="hashCode" return="int"
  66545. abstract="false" native="false" synchronized="false"
  66546. static="false" final="false" visibility="public"
  66547. deprecated="not deprecated">
  66548. </method>
  66549. <method name="compareTo" return="int"
  66550. abstract="false" native="false" synchronized="false"
  66551. static="false" final="false" visibility="public"
  66552. deprecated="not deprecated">
  66553. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  66554. <doc>
  66555. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  66556. </doc>
  66557. </method>
  66558. <method name="toString" return="java.lang.String"
  66559. abstract="false" native="false" synchronized="false"
  66560. static="false" final="false" visibility="public"
  66561. deprecated="not deprecated">
  66562. </method>
  66563. <method name="forName" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  66564. abstract="false" native="false" synchronized="false"
  66565. static="true" final="false" visibility="public"
  66566. deprecated="not deprecated">
  66567. <param name="str" type="java.lang.String"/>
  66568. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  66569. <doc>
  66570. <![CDATA[Construct a TaskAttemptID object from given string
  66571. @return constructed TaskAttemptID object or null if the given String is null
  66572. @throws IllegalArgumentException if the given string is malformed]]>
  66573. </doc>
  66574. </method>
  66575. <field name="ATTEMPT" type="java.lang.String"
  66576. transient="false" volatile="false"
  66577. static="true" final="true" visibility="protected"
  66578. deprecated="not deprecated">
  66579. </field>
  66580. <doc>
  66581. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  66582. a task attempt. Each task attempt is one particular instance of a Map or
  66583. Reduce Task identified by its TaskID.
  66584. TaskAttemptID consists of 2 parts. First part is the
  66585. {@link TaskID}, that this TaskAttemptID belongs to.
  66586. Second part is the task attempt number. <br>
  66587. An example TaskAttemptID is :
  66588. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  66589. zeroth task attempt for the fifth map task in the third job
  66590. running at the jobtracker started at <code>200707121733</code>.
  66591. <p>
  66592. Applications should never construct or parse TaskAttemptID strings
  66593. , but rather use appropriate constructors or {@link #forName(String)}
  66594. method.
  66595. @see JobID
  66596. @see TaskID]]>
  66597. </doc>
  66598. </class>
  66599. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptID -->
  66600. <!-- start class org.apache.hadoop.mapreduce.TaskID -->
  66601. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  66602. abstract="false"
  66603. static="false" final="false" visibility="public"
  66604. deprecated="not deprecated">
  66605. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  66606. static="false" final="false" visibility="public"
  66607. deprecated="not deprecated">
  66608. <doc>
  66609. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  66610. @param jobId JobID that this tip belongs to
  66611. @param isMap whether the tip is a map
  66612. @param id the tip number]]>
  66613. </doc>
  66614. </constructor>
  66615. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  66616. static="false" final="false" visibility="public"
  66617. deprecated="not deprecated">
  66618. <doc>
  66619. <![CDATA[Constructs a TaskInProgressId object from given parts.
  66620. @param jtIdentifier jobTracker identifier
  66621. @param jobId job number
  66622. @param isMap whether the tip is a map
  66623. @param id the tip number]]>
  66624. </doc>
  66625. </constructor>
  66626. <constructor name="TaskID"
  66627. static="false" final="false" visibility="public"
  66628. deprecated="not deprecated">
  66629. </constructor>
  66630. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  66631. abstract="false" native="false" synchronized="false"
  66632. static="false" final="false" visibility="public"
  66633. deprecated="not deprecated">
  66634. <doc>
  66635. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  66636. </doc>
  66637. </method>
  66638. <method name="isMap" return="boolean"
  66639. abstract="false" native="false" synchronized="false"
  66640. static="false" final="false" visibility="public"
  66641. deprecated="not deprecated">
  66642. <doc>
  66643. <![CDATA[Returns whether this TaskID is a map ID]]>
  66644. </doc>
  66645. </method>
  66646. <method name="equals" return="boolean"
  66647. abstract="false" native="false" synchronized="false"
  66648. static="false" final="false" visibility="public"
  66649. deprecated="not deprecated">
  66650. <param name="o" type="java.lang.Object"/>
  66651. </method>
  66652. <method name="compareTo" return="int"
  66653. abstract="false" native="false" synchronized="false"
  66654. static="false" final="false" visibility="public"
  66655. deprecated="not deprecated">
  66656. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  66657. <doc>
  66658. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  66659. defined as greater then maps.]]>
  66660. </doc>
  66661. </method>
  66662. <method name="toString" return="java.lang.String"
  66663. abstract="false" native="false" synchronized="false"
  66664. static="false" final="false" visibility="public"
  66665. deprecated="not deprecated">
  66666. </method>
  66667. <method name="appendTo" return="java.lang.StringBuilder"
  66668. abstract="false" native="false" synchronized="false"
  66669. static="false" final="false" visibility="protected"
  66670. deprecated="not deprecated">
  66671. <param name="builder" type="java.lang.StringBuilder"/>
  66672. <doc>
  66673. <![CDATA[Add the unique string to the given builder.
  66674. @param builder the builder to append to
  66675. @return the builder that was passed in]]>
  66676. </doc>
  66677. </method>
  66678. <method name="hashCode" return="int"
  66679. abstract="false" native="false" synchronized="false"
  66680. static="false" final="false" visibility="public"
  66681. deprecated="not deprecated">
  66682. </method>
  66683. <method name="readFields"
  66684. abstract="false" native="false" synchronized="false"
  66685. static="false" final="false" visibility="public"
  66686. deprecated="not deprecated">
  66687. <param name="in" type="java.io.DataInput"/>
  66688. <exception name="IOException" type="java.io.IOException"/>
  66689. </method>
  66690. <method name="write"
  66691. abstract="false" native="false" synchronized="false"
  66692. static="false" final="false" visibility="public"
  66693. deprecated="not deprecated">
  66694. <param name="out" type="java.io.DataOutput"/>
  66695. <exception name="IOException" type="java.io.IOException"/>
  66696. </method>
  66697. <method name="forName" return="org.apache.hadoop.mapreduce.TaskID"
  66698. abstract="false" native="false" synchronized="false"
  66699. static="true" final="false" visibility="public"
  66700. deprecated="not deprecated">
  66701. <param name="str" type="java.lang.String"/>
  66702. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  66703. <doc>
  66704. <![CDATA[Construct a TaskID object from given string
  66705. @return constructed TaskID object or null if the given String is null
  66706. @throws IllegalArgumentException if the given string is malformed]]>
  66707. </doc>
  66708. </method>
  66709. <field name="TASK" type="java.lang.String"
  66710. transient="false" volatile="false"
  66711. static="true" final="true" visibility="protected"
  66712. deprecated="not deprecated">
  66713. </field>
  66714. <field name="idFormat" type="java.text.NumberFormat"
  66715. transient="false" volatile="false"
  66716. static="true" final="true" visibility="protected"
  66717. deprecated="not deprecated">
  66718. </field>
  66719. <doc>
  66720. <![CDATA[TaskID represents the immutable and unique identifier for
  66721. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  66722. execute the Map or Reduce Task, each of which are uniquely indentified by
  66723. their TaskAttemptID.
  66724. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  66725. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  66726. representing whether the task is a map task or a reduce task.
  66727. And the third part is the task number. <br>
  66728. An example TaskID is :
  66729. <code>task_200707121733_0003_m_000005</code> , which represents the
  66730. fifth map task in the third job running at the jobtracker
  66731. started at <code>200707121733</code>.
  66732. <p>
  66733. Applications should never construct or parse TaskID strings
  66734. , but rather use appropriate constructors or {@link #forName(String)}
  66735. method.
  66736. @see JobID
  66737. @see TaskAttemptID]]>
  66738. </doc>
  66739. </class>
  66740. <!-- end class org.apache.hadoop.mapreduce.TaskID -->
  66741. <!-- start class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  66742. <class name="TaskInputOutputContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  66743. abstract="true"
  66744. static="false" final="false" visibility="public"
  66745. deprecated="not deprecated">
  66746. <implements name="org.apache.hadoop.util.Progressable"/>
  66747. <constructor name="TaskInputOutputContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.RecordWriter, org.apache.hadoop.mapreduce.OutputCommitter, org.apache.hadoop.mapreduce.StatusReporter"
  66748. static="false" final="false" visibility="public"
  66749. deprecated="not deprecated">
  66750. </constructor>
  66751. <method name="nextKeyValue" return="boolean"
  66752. abstract="true" native="false" synchronized="false"
  66753. static="false" final="false" visibility="public"
  66754. deprecated="not deprecated">
  66755. <exception name="IOException" type="java.io.IOException"/>
  66756. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66757. <doc>
  66758. <![CDATA[Advance to the next key, value pair, returning null if at end.
  66759. @return the key object that was read into, or null if no more]]>
  66760. </doc>
  66761. </method>
  66762. <method name="getCurrentKey" return="java.lang.Object"
  66763. abstract="true" native="false" synchronized="false"
  66764. static="false" final="false" visibility="public"
  66765. deprecated="not deprecated">
  66766. <exception name="IOException" type="java.io.IOException"/>
  66767. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66768. <doc>
  66769. <![CDATA[Get the current key.
  66770. @return the current key object or null if there isn't one
  66771. @throws IOException
  66772. @throws InterruptedException]]>
  66773. </doc>
  66774. </method>
  66775. <method name="getCurrentValue" return="java.lang.Object"
  66776. abstract="true" native="false" synchronized="false"
  66777. static="false" final="false" visibility="public"
  66778. deprecated="not deprecated">
  66779. <exception name="IOException" type="java.io.IOException"/>
  66780. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66781. <doc>
  66782. <![CDATA[Get the current value.
  66783. @return the value object that was read into
  66784. @throws IOException
  66785. @throws InterruptedException]]>
  66786. </doc>
  66787. </method>
  66788. <method name="write"
  66789. abstract="false" native="false" synchronized="false"
  66790. static="false" final="false" visibility="public"
  66791. deprecated="not deprecated">
  66792. <param name="key" type="java.lang.Object"/>
  66793. <param name="value" type="java.lang.Object"/>
  66794. <exception name="IOException" type="java.io.IOException"/>
  66795. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66796. <doc>
  66797. <![CDATA[Generate an output key/value pair.]]>
  66798. </doc>
  66799. </method>
  66800. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  66801. abstract="false" native="false" synchronized="false"
  66802. static="false" final="false" visibility="public"
  66803. deprecated="not deprecated">
  66804. <param name="counterName" type="java.lang.Enum"/>
  66805. </method>
  66806. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  66807. abstract="false" native="false" synchronized="false"
  66808. static="false" final="false" visibility="public"
  66809. deprecated="not deprecated">
  66810. <param name="groupName" type="java.lang.String"/>
  66811. <param name="counterName" type="java.lang.String"/>
  66812. </method>
  66813. <method name="progress"
  66814. abstract="false" native="false" synchronized="false"
  66815. static="false" final="false" visibility="public"
  66816. deprecated="not deprecated">
  66817. </method>
  66818. <method name="setStatus"
  66819. abstract="false" native="false" synchronized="false"
  66820. static="false" final="false" visibility="public"
  66821. deprecated="not deprecated">
  66822. <param name="status" type="java.lang.String"/>
  66823. </method>
  66824. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  66825. abstract="false" native="false" synchronized="false"
  66826. static="false" final="false" visibility="public"
  66827. deprecated="not deprecated">
  66828. </method>
  66829. <doc>
  66830. <![CDATA[A context object that allows input and output from the task. It is only
  66831. supplied to the {@link Mapper} or {@link Reducer}.
  66832. @param <KEYIN> the input key type for the task
  66833. @param <VALUEIN> the input value type for the task
  66834. @param <KEYOUT> the output key type for the task
  66835. @param <VALUEOUT> the output value type for the task]]>
  66836. </doc>
  66837. </class>
  66838. <!-- end class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  66839. <!-- start class org.apache.hadoop.mapreduce.TaskType -->
  66840. <class name="TaskType" extends="java.lang.Enum"
  66841. abstract="false"
  66842. static="false" final="true" visibility="public"
  66843. deprecated="not deprecated">
  66844. <method name="values" return="org.apache.hadoop.mapreduce.TaskType[]"
  66845. abstract="false" native="false" synchronized="false"
  66846. static="true" final="false" visibility="public"
  66847. deprecated="not deprecated">
  66848. </method>
  66849. <method name="valueOf" return="org.apache.hadoop.mapreduce.TaskType"
  66850. abstract="false" native="false" synchronized="false"
  66851. static="true" final="false" visibility="public"
  66852. deprecated="not deprecated">
  66853. <param name="name" type="java.lang.String"/>
  66854. </method>
  66855. <field name="MAP" type="org.apache.hadoop.mapreduce.TaskType"
  66856. transient="false" volatile="false"
  66857. static="true" final="true" visibility="public"
  66858. deprecated="not deprecated">
  66859. </field>
  66860. <field name="REDUCE" type="org.apache.hadoop.mapreduce.TaskType"
  66861. transient="false" volatile="false"
  66862. static="true" final="true" visibility="public"
  66863. deprecated="not deprecated">
  66864. </field>
  66865. <field name="JOB_SETUP" type="org.apache.hadoop.mapreduce.TaskType"
  66866. transient="false" volatile="false"
  66867. static="true" final="true" visibility="public"
  66868. deprecated="not deprecated">
  66869. </field>
  66870. <field name="JOB_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  66871. transient="false" volatile="false"
  66872. static="true" final="true" visibility="public"
  66873. deprecated="not deprecated">
  66874. </field>
  66875. <field name="TASK_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  66876. transient="false" volatile="false"
  66877. static="true" final="true" visibility="public"
  66878. deprecated="not deprecated">
  66879. </field>
  66880. <doc>
  66881. <![CDATA[Enum for map, reduce, job-setup, job-cleanup, task-cleanup task types.]]>
  66882. </doc>
  66883. </class>
  66884. <!-- end class org.apache.hadoop.mapreduce.TaskType -->
  66885. </package>
  66886. <package name="org.apache.hadoop.mapreduce.lib.input">
  66887. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  66888. <class name="FileInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  66889. abstract="true"
  66890. static="false" final="false" visibility="public"
  66891. deprecated="not deprecated">
  66892. <constructor name="FileInputFormat"
  66893. static="false" final="false" visibility="public"
  66894. deprecated="not deprecated">
  66895. </constructor>
  66896. <method name="getFormatMinSplitSize" return="long"
  66897. abstract="false" native="false" synchronized="false"
  66898. static="false" final="false" visibility="protected"
  66899. deprecated="not deprecated">
  66900. <doc>
  66901. <![CDATA[Get the lower bound on split size imposed by the format.
  66902. @return the number of bytes of the minimal split for this format]]>
  66903. </doc>
  66904. </method>
  66905. <method name="isSplitable" return="boolean"
  66906. abstract="false" native="false" synchronized="false"
  66907. static="false" final="false" visibility="protected"
  66908. deprecated="not deprecated">
  66909. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  66910. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  66911. <doc>
  66912. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  66913. stream compressed, it will not be.
  66914. <code>FileInputFormat</code> implementations can override this and return
  66915. <code>false</code> to ensure that individual input files are never split-up
  66916. so that {@link Mapper}s process entire files.
  66917. @param context the job context
  66918. @param filename the file name to check
  66919. @return is this file splitable?]]>
  66920. </doc>
  66921. </method>
  66922. <method name="setInputPathFilter"
  66923. abstract="false" native="false" synchronized="false"
  66924. static="true" final="false" visibility="public"
  66925. deprecated="not deprecated">
  66926. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  66927. <param name="filter" type="java.lang.Class"/>
  66928. <doc>
  66929. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  66930. @param job the job to modify
  66931. @param filter the PathFilter class use for filtering the input paths.]]>
  66932. </doc>
  66933. </method>
  66934. <method name="setMinInputSplitSize"
  66935. abstract="false" native="false" synchronized="false"
  66936. static="true" final="false" visibility="public"
  66937. deprecated="not deprecated">
  66938. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  66939. <param name="size" type="long"/>
  66940. <doc>
  66941. <![CDATA[Set the minimum input split size
  66942. @param job the job to modify
  66943. @param size the minimum size]]>
  66944. </doc>
  66945. </method>
  66946. <method name="getMinSplitSize" return="long"
  66947. abstract="false" native="false" synchronized="false"
  66948. static="true" final="false" visibility="public"
  66949. deprecated="not deprecated">
  66950. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  66951. <doc>
  66952. <![CDATA[Get the minimum split size
  66953. @param job the job
  66954. @return the minimum number of bytes that can be in a split]]>
  66955. </doc>
  66956. </method>
  66957. <method name="setMaxInputSplitSize"
  66958. abstract="false" native="false" synchronized="false"
  66959. static="true" final="false" visibility="public"
  66960. deprecated="not deprecated">
  66961. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  66962. <param name="size" type="long"/>
  66963. <doc>
  66964. <![CDATA[Set the maximum split size
  66965. @param job the job to modify
  66966. @param size the maximum split size]]>
  66967. </doc>
  66968. </method>
  66969. <method name="getMaxSplitSize" return="long"
  66970. abstract="false" native="false" synchronized="false"
  66971. static="true" final="false" visibility="public"
  66972. deprecated="not deprecated">
  66973. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  66974. <doc>
  66975. <![CDATA[Get the maximum split size.
  66976. @param context the job to look at.
  66977. @return the maximum number of bytes a split can include]]>
  66978. </doc>
  66979. </method>
  66980. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  66981. abstract="false" native="false" synchronized="false"
  66982. static="true" final="false" visibility="public"
  66983. deprecated="not deprecated">
  66984. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  66985. <doc>
  66986. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  66987. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  66988. </doc>
  66989. </method>
  66990. <method name="listStatus" return="java.util.List"
  66991. abstract="false" native="false" synchronized="false"
  66992. static="false" final="false" visibility="protected"
  66993. deprecated="not deprecated">
  66994. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  66995. <exception name="IOException" type="java.io.IOException"/>
  66996. <doc>
  66997. <![CDATA[List input directories.
  66998. Subclasses may override to, e.g., select only files matching a regular
  66999. expression.
  67000. @param job the job to list input paths for
  67001. @return array of FileStatus objects
  67002. @throws IOException if zero items.]]>
  67003. </doc>
  67004. </method>
  67005. <method name="getSplits" return="java.util.List"
  67006. abstract="false" native="false" synchronized="false"
  67007. static="false" final="false" visibility="public"
  67008. deprecated="not deprecated">
  67009. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67010. <exception name="IOException" type="java.io.IOException"/>
  67011. <doc>
  67012. <![CDATA[Generate the list of files and make them into FileSplits.]]>
  67013. </doc>
  67014. </method>
  67015. <method name="computeSplitSize" return="long"
  67016. abstract="false" native="false" synchronized="false"
  67017. static="false" final="false" visibility="protected"
  67018. deprecated="not deprecated">
  67019. <param name="blockSize" type="long"/>
  67020. <param name="minSize" type="long"/>
  67021. <param name="maxSize" type="long"/>
  67022. </method>
  67023. <method name="getBlockIndex" return="int"
  67024. abstract="false" native="false" synchronized="false"
  67025. static="false" final="false" visibility="protected"
  67026. deprecated="not deprecated">
  67027. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  67028. <param name="offset" type="long"/>
  67029. </method>
  67030. <method name="setInputPaths"
  67031. abstract="false" native="false" synchronized="false"
  67032. static="true" final="false" visibility="public"
  67033. deprecated="not deprecated">
  67034. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67035. <param name="commaSeparatedPaths" type="java.lang.String"/>
  67036. <exception name="IOException" type="java.io.IOException"/>
  67037. <doc>
  67038. <![CDATA[Sets the given comma separated paths as the list of inputs
  67039. for the map-reduce job.
  67040. @param job the job
  67041. @param commaSeparatedPaths Comma separated paths to be set as
  67042. the list of inputs for the map-reduce job.]]>
  67043. </doc>
  67044. </method>
  67045. <method name="addInputPaths"
  67046. abstract="false" native="false" synchronized="false"
  67047. static="true" final="false" visibility="public"
  67048. deprecated="not deprecated">
  67049. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67050. <param name="commaSeparatedPaths" type="java.lang.String"/>
  67051. <exception name="IOException" type="java.io.IOException"/>
  67052. <doc>
  67053. <![CDATA[Add the given comma separated paths to the list of inputs for
  67054. the map-reduce job.
  67055. @param job The job to modify
  67056. @param commaSeparatedPaths Comma separated paths to be added to
  67057. the list of inputs for the map-reduce job.]]>
  67058. </doc>
  67059. </method>
  67060. <method name="setInputPaths"
  67061. abstract="false" native="false" synchronized="false"
  67062. static="true" final="false" visibility="public"
  67063. deprecated="not deprecated">
  67064. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67065. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  67066. <exception name="IOException" type="java.io.IOException"/>
  67067. <doc>
  67068. <![CDATA[Set the array of {@link Path}s as the list of inputs
  67069. for the map-reduce job.
  67070. @param job The job to modify
  67071. @param inputPaths the {@link Path}s of the input directories/files
  67072. for the map-reduce job.]]>
  67073. </doc>
  67074. </method>
  67075. <method name="addInputPath"
  67076. abstract="false" native="false" synchronized="false"
  67077. static="true" final="false" visibility="public"
  67078. deprecated="not deprecated">
  67079. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67080. <param name="path" type="org.apache.hadoop.fs.Path"/>
  67081. <exception name="IOException" type="java.io.IOException"/>
  67082. <doc>
  67083. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  67084. @param job The {@link Job} to modify
  67085. @param path {@link Path} to be added to the list of inputs for
  67086. the map-reduce job.]]>
  67087. </doc>
  67088. </method>
  67089. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  67090. abstract="false" native="false" synchronized="false"
  67091. static="true" final="false" visibility="public"
  67092. deprecated="not deprecated">
  67093. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67094. <doc>
  67095. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  67096. @param context The job
  67097. @return the list of input {@link Path}s for the map-reduce job.]]>
  67098. </doc>
  67099. </method>
  67100. <doc>
  67101. <![CDATA[A base class for file-based {@link InputFormat}s.
  67102. <p><code>FileInputFormat</code> is the base class for all file-based
  67103. <code>InputFormat</code>s. This provides a generic implementation of
  67104. {@link #getSplits(JobContext)}.
  67105. Subclasses of <code>FileInputFormat</code> can also override the
  67106. {@link #isSplitable(JobContext, Path)} method to ensure input-files are
  67107. not split-up and are processed as a whole by {@link Mapper}s.]]>
  67108. </doc>
  67109. </class>
  67110. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  67111. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  67112. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  67113. abstract="false"
  67114. static="true" final="true" visibility="public"
  67115. deprecated="not deprecated">
  67116. <method name="values" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter[]"
  67117. abstract="false" native="false" synchronized="false"
  67118. static="true" final="false" visibility="public"
  67119. deprecated="not deprecated">
  67120. </method>
  67121. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  67122. abstract="false" native="false" synchronized="false"
  67123. static="true" final="false" visibility="public"
  67124. deprecated="not deprecated">
  67125. <param name="name" type="java.lang.String"/>
  67126. </method>
  67127. <field name="BYTES_READ" type="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  67128. transient="false" volatile="false"
  67129. static="true" final="true" visibility="public"
  67130. deprecated="not deprecated">
  67131. </field>
  67132. </class>
  67133. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  67134. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  67135. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  67136. abstract="false"
  67137. static="false" final="false" visibility="public"
  67138. deprecated="not deprecated">
  67139. <implements name="org.apache.hadoop.io.Writable"/>
  67140. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  67141. static="false" final="false" visibility="public"
  67142. deprecated="not deprecated">
  67143. <doc>
  67144. <![CDATA[Constructs a split with host information
  67145. @param file the file name
  67146. @param start the position of the first byte in the file to process
  67147. @param length the number of bytes in the file to process
  67148. @param hosts the list of hosts containing the block, possibly null]]>
  67149. </doc>
  67150. </constructor>
  67151. <method name="getPath" return="org.apache.hadoop.fs.Path"
  67152. abstract="false" native="false" synchronized="false"
  67153. static="false" final="false" visibility="public"
  67154. deprecated="not deprecated">
  67155. <doc>
  67156. <![CDATA[The file containing this split's data.]]>
  67157. </doc>
  67158. </method>
  67159. <method name="getStart" return="long"
  67160. abstract="false" native="false" synchronized="false"
  67161. static="false" final="false" visibility="public"
  67162. deprecated="not deprecated">
  67163. <doc>
  67164. <![CDATA[The position of the first byte in the file to process.]]>
  67165. </doc>
  67166. </method>
  67167. <method name="getLength" return="long"
  67168. abstract="false" native="false" synchronized="false"
  67169. static="false" final="false" visibility="public"
  67170. deprecated="not deprecated">
  67171. <doc>
  67172. <![CDATA[The number of bytes in the file to process.]]>
  67173. </doc>
  67174. </method>
  67175. <method name="toString" return="java.lang.String"
  67176. abstract="false" native="false" synchronized="false"
  67177. static="false" final="false" visibility="public"
  67178. deprecated="not deprecated">
  67179. </method>
  67180. <method name="write"
  67181. abstract="false" native="false" synchronized="false"
  67182. static="false" final="false" visibility="public"
  67183. deprecated="not deprecated">
  67184. <param name="out" type="java.io.DataOutput"/>
  67185. <exception name="IOException" type="java.io.IOException"/>
  67186. </method>
  67187. <method name="readFields"
  67188. abstract="false" native="false" synchronized="false"
  67189. static="false" final="false" visibility="public"
  67190. deprecated="not deprecated">
  67191. <param name="in" type="java.io.DataInput"/>
  67192. <exception name="IOException" type="java.io.IOException"/>
  67193. </method>
  67194. <method name="getLocations" return="java.lang.String[]"
  67195. abstract="false" native="false" synchronized="false"
  67196. static="false" final="false" visibility="public"
  67197. deprecated="not deprecated">
  67198. <exception name="IOException" type="java.io.IOException"/>
  67199. </method>
  67200. <doc>
  67201. <![CDATA[A section of an input file. Returned by {@link
  67202. InputFormat#getSplits(JobContext)} and passed to
  67203. {@link InputFormat#createRecordReader(InputSplit,TaskAttemptContext)}.]]>
  67204. </doc>
  67205. </class>
  67206. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  67207. <!-- start class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  67208. <class name="InvalidInputException" extends="java.io.IOException"
  67209. abstract="false"
  67210. static="false" final="false" visibility="public"
  67211. deprecated="not deprecated">
  67212. <constructor name="InvalidInputException" type="java.util.List"
  67213. static="false" final="false" visibility="public"
  67214. deprecated="not deprecated">
  67215. <doc>
  67216. <![CDATA[Create the exception with the given list.
  67217. @param probs the list of problems to report. this list is not copied.]]>
  67218. </doc>
  67219. </constructor>
  67220. <method name="getProblems" return="java.util.List"
  67221. abstract="false" native="false" synchronized="false"
  67222. static="false" final="false" visibility="public"
  67223. deprecated="not deprecated">
  67224. <doc>
  67225. <![CDATA[Get the complete list of the problems reported.
  67226. @return the list of problems, which must not be modified]]>
  67227. </doc>
  67228. </method>
  67229. <method name="getMessage" return="java.lang.String"
  67230. abstract="false" native="false" synchronized="false"
  67231. static="false" final="false" visibility="public"
  67232. deprecated="not deprecated">
  67233. <doc>
  67234. <![CDATA[Get a summary message of the problems found.
  67235. @return the concatenated messages from all of the problems.]]>
  67236. </doc>
  67237. </method>
  67238. <doc>
  67239. <![CDATA[This class wraps a list of problems with the input, so that the user
  67240. can get a list of problems together instead of finding and fixing them one
  67241. by one.]]>
  67242. </doc>
  67243. </class>
  67244. <!-- end class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  67245. <!-- start class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  67246. <class name="LineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  67247. abstract="false"
  67248. static="false" final="false" visibility="public"
  67249. deprecated="not deprecated">
  67250. <constructor name="LineRecordReader"
  67251. static="false" final="false" visibility="public"
  67252. deprecated="not deprecated">
  67253. </constructor>
  67254. <method name="initialize"
  67255. abstract="false" native="false" synchronized="false"
  67256. static="false" final="false" visibility="public"
  67257. deprecated="not deprecated">
  67258. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  67259. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67260. <exception name="IOException" type="java.io.IOException"/>
  67261. </method>
  67262. <method name="nextKeyValue" return="boolean"
  67263. abstract="false" native="false" synchronized="false"
  67264. static="false" final="false" visibility="public"
  67265. deprecated="not deprecated">
  67266. <exception name="IOException" type="java.io.IOException"/>
  67267. </method>
  67268. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  67269. abstract="false" native="false" synchronized="false"
  67270. static="false" final="false" visibility="public"
  67271. deprecated="not deprecated">
  67272. </method>
  67273. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  67274. abstract="false" native="false" synchronized="false"
  67275. static="false" final="false" visibility="public"
  67276. deprecated="not deprecated">
  67277. </method>
  67278. <method name="getProgress" return="float"
  67279. abstract="false" native="false" synchronized="false"
  67280. static="false" final="false" visibility="public"
  67281. deprecated="not deprecated">
  67282. <doc>
  67283. <![CDATA[Get the progress within the split]]>
  67284. </doc>
  67285. </method>
  67286. <method name="close"
  67287. abstract="false" native="false" synchronized="true"
  67288. static="false" final="false" visibility="public"
  67289. deprecated="not deprecated">
  67290. <exception name="IOException" type="java.io.IOException"/>
  67291. </method>
  67292. <doc>
  67293. <![CDATA[Treats keys as offset in file and value as line.]]>
  67294. </doc>
  67295. </class>
  67296. <!-- end class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  67297. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  67298. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  67299. abstract="false"
  67300. static="false" final="false" visibility="public"
  67301. deprecated="not deprecated">
  67302. <constructor name="SequenceFileInputFormat"
  67303. static="false" final="false" visibility="public"
  67304. deprecated="not deprecated">
  67305. </constructor>
  67306. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  67307. abstract="false" native="false" synchronized="false"
  67308. static="false" final="false" visibility="public"
  67309. deprecated="not deprecated">
  67310. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  67311. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67312. <exception name="IOException" type="java.io.IOException"/>
  67313. </method>
  67314. <method name="getFormatMinSplitSize" return="long"
  67315. abstract="false" native="false" synchronized="false"
  67316. static="false" final="false" visibility="protected"
  67317. deprecated="not deprecated">
  67318. </method>
  67319. <method name="listStatus" return="java.util.List"
  67320. abstract="false" native="false" synchronized="false"
  67321. static="false" final="false" visibility="protected"
  67322. deprecated="not deprecated">
  67323. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67324. <exception name="IOException" type="java.io.IOException"/>
  67325. </method>
  67326. <doc>
  67327. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  67328. </doc>
  67329. </class>
  67330. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  67331. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  67332. <class name="SequenceFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  67333. abstract="false"
  67334. static="false" final="false" visibility="public"
  67335. deprecated="not deprecated">
  67336. <constructor name="SequenceFileRecordReader"
  67337. static="false" final="false" visibility="public"
  67338. deprecated="not deprecated">
  67339. </constructor>
  67340. <method name="initialize"
  67341. abstract="false" native="false" synchronized="false"
  67342. static="false" final="false" visibility="public"
  67343. deprecated="not deprecated">
  67344. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  67345. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67346. <exception name="IOException" type="java.io.IOException"/>
  67347. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67348. </method>
  67349. <method name="nextKeyValue" return="boolean"
  67350. abstract="false" native="false" synchronized="false"
  67351. static="false" final="false" visibility="public"
  67352. deprecated="not deprecated">
  67353. <exception name="IOException" type="java.io.IOException"/>
  67354. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67355. </method>
  67356. <method name="getCurrentKey" return="java.lang.Object"
  67357. abstract="false" native="false" synchronized="false"
  67358. static="false" final="false" visibility="public"
  67359. deprecated="not deprecated">
  67360. </method>
  67361. <method name="getCurrentValue" return="java.lang.Object"
  67362. abstract="false" native="false" synchronized="false"
  67363. static="false" final="false" visibility="public"
  67364. deprecated="not deprecated">
  67365. </method>
  67366. <method name="getProgress" return="float"
  67367. abstract="false" native="false" synchronized="false"
  67368. static="false" final="false" visibility="public"
  67369. deprecated="not deprecated">
  67370. <exception name="IOException" type="java.io.IOException"/>
  67371. <doc>
  67372. <![CDATA[Return the progress within the input split
  67373. @return 0.0 to 1.0 of the input byte range]]>
  67374. </doc>
  67375. </method>
  67376. <method name="close"
  67377. abstract="false" native="false" synchronized="true"
  67378. static="false" final="false" visibility="public"
  67379. deprecated="not deprecated">
  67380. <exception name="IOException" type="java.io.IOException"/>
  67381. </method>
  67382. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  67383. transient="false" volatile="false"
  67384. static="false" final="false" visibility="protected"
  67385. deprecated="not deprecated">
  67386. </field>
  67387. <doc>
  67388. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  67389. </doc>
  67390. </class>
  67391. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  67392. <!-- start class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  67393. <class name="TextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  67394. abstract="false"
  67395. static="false" final="false" visibility="public"
  67396. deprecated="not deprecated">
  67397. <constructor name="TextInputFormat"
  67398. static="false" final="false" visibility="public"
  67399. deprecated="not deprecated">
  67400. </constructor>
  67401. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  67402. abstract="false" native="false" synchronized="false"
  67403. static="false" final="false" visibility="public"
  67404. deprecated="not deprecated">
  67405. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  67406. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67407. </method>
  67408. <method name="isSplitable" return="boolean"
  67409. abstract="false" native="false" synchronized="false"
  67410. static="false" final="false" visibility="protected"
  67411. deprecated="not deprecated">
  67412. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67413. <param name="file" type="org.apache.hadoop.fs.Path"/>
  67414. </method>
  67415. <doc>
  67416. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  67417. Either linefeed or carriage-return are used to signal end of line. Keys are
  67418. the position in the file, and values are the line of text..]]>
  67419. </doc>
  67420. </class>
  67421. <!-- end class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  67422. </package>
  67423. <package name="org.apache.hadoop.mapreduce.lib.map">
  67424. <!-- start class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  67425. <class name="InverseMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  67426. abstract="false"
  67427. static="false" final="false" visibility="public"
  67428. deprecated="not deprecated">
  67429. <constructor name="InverseMapper"
  67430. static="false" final="false" visibility="public"
  67431. deprecated="not deprecated">
  67432. </constructor>
  67433. <method name="map"
  67434. abstract="false" native="false" synchronized="false"
  67435. static="false" final="false" visibility="public"
  67436. deprecated="not deprecated">
  67437. <param name="key" type="java.lang.Object"/>
  67438. <param name="value" type="java.lang.Object"/>
  67439. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67440. <exception name="IOException" type="java.io.IOException"/>
  67441. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67442. <doc>
  67443. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  67444. </doc>
  67445. </method>
  67446. <doc>
  67447. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  67448. </doc>
  67449. </class>
  67450. <!-- end class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  67451. <!-- start class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  67452. <class name="MultithreadedMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  67453. abstract="false"
  67454. static="false" final="false" visibility="public"
  67455. deprecated="not deprecated">
  67456. <constructor name="MultithreadedMapper"
  67457. static="false" final="false" visibility="public"
  67458. deprecated="not deprecated">
  67459. </constructor>
  67460. <method name="getNumberOfThreads" return="int"
  67461. abstract="false" native="false" synchronized="false"
  67462. static="true" final="false" visibility="public"
  67463. deprecated="not deprecated">
  67464. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67465. <doc>
  67466. <![CDATA[The number of threads in the thread pool that will run the map function.
  67467. @param job the job
  67468. @return the number of threads]]>
  67469. </doc>
  67470. </method>
  67471. <method name="setNumberOfThreads"
  67472. abstract="false" native="false" synchronized="false"
  67473. static="true" final="false" visibility="public"
  67474. deprecated="not deprecated">
  67475. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67476. <param name="threads" type="int"/>
  67477. <doc>
  67478. <![CDATA[Set the number of threads in the pool for running maps.
  67479. @param job the job to modify
  67480. @param threads the new number of threads]]>
  67481. </doc>
  67482. </method>
  67483. <method name="getMapperClass" return="java.lang.Class"
  67484. abstract="false" native="false" synchronized="false"
  67485. static="true" final="false" visibility="public"
  67486. deprecated="not deprecated">
  67487. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67488. <doc>
  67489. <![CDATA[Get the application's mapper class.
  67490. @param <K1> the map's input key type
  67491. @param <V1> the map's input value type
  67492. @param <K2> the map's output key type
  67493. @param <V2> the map's output value type
  67494. @param job the job
  67495. @return the mapper class to run]]>
  67496. </doc>
  67497. </method>
  67498. <method name="setMapperClass"
  67499. abstract="false" native="false" synchronized="false"
  67500. static="true" final="false" visibility="public"
  67501. deprecated="not deprecated">
  67502. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67503. <param name="cls" type="java.lang.Class"/>
  67504. <doc>
  67505. <![CDATA[Set the application's mapper class.
  67506. @param <K1> the map input key type
  67507. @param <V1> the map input value type
  67508. @param <K2> the map output key type
  67509. @param <V2> the map output value type
  67510. @param job the job to modify
  67511. @param cls the class to use as the mapper]]>
  67512. </doc>
  67513. </method>
  67514. <method name="run"
  67515. abstract="false" native="false" synchronized="false"
  67516. static="false" final="false" visibility="public"
  67517. deprecated="not deprecated">
  67518. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67519. <exception name="IOException" type="java.io.IOException"/>
  67520. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67521. <doc>
  67522. <![CDATA[Run the application's maps using a thread pool.]]>
  67523. </doc>
  67524. </method>
  67525. <doc>
  67526. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapreduce.Mapper.
  67527. <p>
  67528. It can be used instead of the default implementation,
  67529. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  67530. bound in order to improve throughput.
  67531. <p>
  67532. Mapper implementations using this MapRunnable must be thread-safe.
  67533. <p>
  67534. The Map-Reduce job has to be configured with the mapper to use via
  67535. {@link #setMapperClass(Configuration, Class)} and
  67536. the number of thread the thread-pool can use with the
  67537. {@link #getNumberOfThreads(Configuration) method. The default
  67538. value is 10 threads.
  67539. <p>]]>
  67540. </doc>
  67541. </class>
  67542. <!-- end class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  67543. <!-- start class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  67544. <class name="TokenCounterMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  67545. abstract="false"
  67546. static="false" final="false" visibility="public"
  67547. deprecated="not deprecated">
  67548. <constructor name="TokenCounterMapper"
  67549. static="false" final="false" visibility="public"
  67550. deprecated="not deprecated">
  67551. </constructor>
  67552. <method name="map"
  67553. abstract="false" native="false" synchronized="false"
  67554. static="false" final="false" visibility="public"
  67555. deprecated="not deprecated">
  67556. <param name="key" type="java.lang.Object"/>
  67557. <param name="value" type="org.apache.hadoop.io.Text"/>
  67558. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67559. <exception name="IOException" type="java.io.IOException"/>
  67560. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67561. </method>
  67562. <doc>
  67563. <![CDATA[Tokenize the input values and emit each word with a count of 1.]]>
  67564. </doc>
  67565. </class>
  67566. <!-- end class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  67567. </package>
  67568. <package name="org.apache.hadoop.mapreduce.lib.output">
  67569. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  67570. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  67571. abstract="false"
  67572. static="false" final="false" visibility="public"
  67573. deprecated="not deprecated">
  67574. <constructor name="FileOutputCommitter" type="org.apache.hadoop.fs.Path, org.apache.hadoop.mapreduce.TaskAttemptContext"
  67575. static="false" final="false" visibility="public"
  67576. deprecated="not deprecated">
  67577. <exception name="IOException" type="java.io.IOException"/>
  67578. <doc>
  67579. <![CDATA[Create a file output committer
  67580. @param outputPath the job's output path
  67581. @param context the task's context
  67582. @throws IOException]]>
  67583. </doc>
  67584. </constructor>
  67585. <method name="setupJob"
  67586. abstract="false" native="false" synchronized="false"
  67587. static="false" final="false" visibility="public"
  67588. deprecated="not deprecated">
  67589. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67590. <exception name="IOException" type="java.io.IOException"/>
  67591. <doc>
  67592. <![CDATA[Create the temporary directory that is the root of all of the task
  67593. work directories.
  67594. @param context the job's context]]>
  67595. </doc>
  67596. </method>
  67597. <method name="commitJob"
  67598. abstract="false" native="false" synchronized="false"
  67599. static="false" final="false" visibility="public"
  67600. deprecated="not deprecated">
  67601. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67602. <exception name="IOException" type="java.io.IOException"/>
  67603. <doc>
  67604. <![CDATA[Delete the temporary directory, including all of the work directories.
  67605. This is called for all jobs whose final run state is SUCCEEDED
  67606. @param context the job's context.]]>
  67607. </doc>
  67608. </method>
  67609. <method name="cleanupJob"
  67610. abstract="false" native="false" synchronized="false"
  67611. static="false" final="false" visibility="public"
  67612. deprecated="not deprecated">
  67613. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67614. <exception name="IOException" type="java.io.IOException"/>
  67615. </method>
  67616. <method name="abortJob"
  67617. abstract="false" native="false" synchronized="false"
  67618. static="false" final="false" visibility="public"
  67619. deprecated="not deprecated">
  67620. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67621. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  67622. <exception name="IOException" type="java.io.IOException"/>
  67623. <doc>
  67624. <![CDATA[Delete the temporary directory, including all of the work directories.
  67625. @param context the job's context
  67626. @param state final run state of the job, should be FAILED or KILLED]]>
  67627. </doc>
  67628. </method>
  67629. <method name="setupTask"
  67630. abstract="false" native="false" synchronized="false"
  67631. static="false" final="false" visibility="public"
  67632. deprecated="not deprecated">
  67633. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67634. <exception name="IOException" type="java.io.IOException"/>
  67635. <doc>
  67636. <![CDATA[No task setup required.]]>
  67637. </doc>
  67638. </method>
  67639. <method name="commitTask"
  67640. abstract="false" native="false" synchronized="false"
  67641. static="false" final="false" visibility="public"
  67642. deprecated="not deprecated">
  67643. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67644. <exception name="IOException" type="java.io.IOException"/>
  67645. <doc>
  67646. <![CDATA[Move the files from the work directory to the job output directory
  67647. @param context the task context]]>
  67648. </doc>
  67649. </method>
  67650. <method name="abortTask"
  67651. abstract="false" native="false" synchronized="false"
  67652. static="false" final="false" visibility="public"
  67653. deprecated="not deprecated">
  67654. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67655. <doc>
  67656. <![CDATA[Delete the work directory]]>
  67657. </doc>
  67658. </method>
  67659. <method name="needsTaskCommit" return="boolean"
  67660. abstract="false" native="false" synchronized="false"
  67661. static="false" final="false" visibility="public"
  67662. deprecated="not deprecated">
  67663. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67664. <exception name="IOException" type="java.io.IOException"/>
  67665. <doc>
  67666. <![CDATA[Did this task write any files in the work directory?
  67667. @param context the task's context]]>
  67668. </doc>
  67669. </method>
  67670. <method name="getWorkPath" return="org.apache.hadoop.fs.Path"
  67671. abstract="false" native="false" synchronized="false"
  67672. static="false" final="false" visibility="public"
  67673. deprecated="not deprecated">
  67674. <exception name="IOException" type="java.io.IOException"/>
  67675. <doc>
  67676. <![CDATA[Get the directory that the task should write results into
  67677. @return the work directory
  67678. @throws IOException]]>
  67679. </doc>
  67680. </method>
  67681. <field name="TEMP_DIR_NAME" type="java.lang.String"
  67682. transient="false" volatile="false"
  67683. static="true" final="true" visibility="protected"
  67684. deprecated="not deprecated">
  67685. <doc>
  67686. <![CDATA[Temporary directory name]]>
  67687. </doc>
  67688. </field>
  67689. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  67690. transient="false" volatile="false"
  67691. static="true" final="true" visibility="public"
  67692. deprecated="not deprecated">
  67693. </field>
  67694. <doc>
  67695. <![CDATA[An {@link OutputCommitter} that commits files specified
  67696. in job output directory i.e. ${mapred.output.dir}.]]>
  67697. </doc>
  67698. </class>
  67699. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  67700. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  67701. <class name="FileOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  67702. abstract="true"
  67703. static="false" final="false" visibility="public"
  67704. deprecated="not deprecated">
  67705. <constructor name="FileOutputFormat"
  67706. static="false" final="false" visibility="public"
  67707. deprecated="not deprecated">
  67708. </constructor>
  67709. <method name="setCompressOutput"
  67710. abstract="false" native="false" synchronized="false"
  67711. static="true" final="false" visibility="public"
  67712. deprecated="not deprecated">
  67713. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67714. <param name="compress" type="boolean"/>
  67715. <doc>
  67716. <![CDATA[Set whether the output of the job is compressed.
  67717. @param job the job to modify
  67718. @param compress should the output of the job be compressed?]]>
  67719. </doc>
  67720. </method>
  67721. <method name="getCompressOutput" return="boolean"
  67722. abstract="false" native="false" synchronized="false"
  67723. static="true" final="false" visibility="public"
  67724. deprecated="not deprecated">
  67725. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67726. <doc>
  67727. <![CDATA[Is the job output compressed?
  67728. @param job the Job to look in
  67729. @return <code>true</code> if the job output should be compressed,
  67730. <code>false</code> otherwise]]>
  67731. </doc>
  67732. </method>
  67733. <method name="setOutputCompressorClass"
  67734. abstract="false" native="false" synchronized="false"
  67735. static="true" final="false" visibility="public"
  67736. deprecated="not deprecated">
  67737. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67738. <param name="codecClass" type="java.lang.Class"/>
  67739. <doc>
  67740. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  67741. @param job the job to modify
  67742. @param codecClass the {@link CompressionCodec} to be used to
  67743. compress the job outputs]]>
  67744. </doc>
  67745. </method>
  67746. <method name="getOutputCompressorClass" return="java.lang.Class"
  67747. abstract="false" native="false" synchronized="false"
  67748. static="true" final="false" visibility="public"
  67749. deprecated="not deprecated">
  67750. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67751. <param name="defaultValue" type="java.lang.Class"/>
  67752. <doc>
  67753. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  67754. @param job the {@link Job} to look in
  67755. @param defaultValue the {@link CompressionCodec} to return if not set
  67756. @return the {@link CompressionCodec} to be used to compress the
  67757. job outputs
  67758. @throws IllegalArgumentException if the class was specified, but not found]]>
  67759. </doc>
  67760. </method>
  67761. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  67762. abstract="true" native="false" synchronized="false"
  67763. static="false" final="false" visibility="public"
  67764. deprecated="not deprecated">
  67765. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67766. <exception name="IOException" type="java.io.IOException"/>
  67767. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67768. </method>
  67769. <method name="checkOutputSpecs"
  67770. abstract="false" native="false" synchronized="false"
  67771. static="false" final="false" visibility="public"
  67772. deprecated="not deprecated">
  67773. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67774. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  67775. <exception name="IOException" type="java.io.IOException"/>
  67776. </method>
  67777. <method name="setOutputPath"
  67778. abstract="false" native="false" synchronized="false"
  67779. static="true" final="false" visibility="public"
  67780. deprecated="not deprecated">
  67781. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67782. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  67783. <doc>
  67784. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  67785. @param job The job to modify
  67786. @param outputDir the {@link Path} of the output directory for
  67787. the map-reduce job.]]>
  67788. </doc>
  67789. </method>
  67790. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  67791. abstract="false" native="false" synchronized="false"
  67792. static="true" final="false" visibility="public"
  67793. deprecated="not deprecated">
  67794. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67795. <doc>
  67796. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  67797. @return the {@link Path} to the output directory for the map-reduce job.
  67798. @see FileOutputFormat#getWorkOutputPath(TaskInputOutputContext)]]>
  67799. </doc>
  67800. </method>
  67801. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  67802. abstract="false" native="false" synchronized="false"
  67803. static="true" final="false" visibility="public"
  67804. deprecated="not deprecated">
  67805. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  67806. <exception name="IOException" type="java.io.IOException"/>
  67807. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67808. <doc>
  67809. <![CDATA[Get the {@link Path} to the task's temporary output directory
  67810. for the map-reduce job
  67811. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  67812. <p>Some applications need to create/write-to side-files, which differ from
  67813. the actual job-outputs.
  67814. <p>In such cases there could be issues with 2 instances of the same TIP
  67815. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  67816. same file (path) on HDFS. Hence the application-writer will have to pick
  67817. unique names per task-attempt (e.g. using the attemptid, say
  67818. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  67819. <p>To get around this the Map-Reduce framework helps the application-writer
  67820. out by maintaining a special
  67821. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  67822. sub-directory for each task-attempt on HDFS where the output of the
  67823. task-attempt goes. On successful completion of the task-attempt the files
  67824. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  67825. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  67826. framework discards the sub-directory of unsuccessful task-attempts. This
  67827. is completely transparent to the application.</p>
  67828. <p>The application-writer can take advantage of this by creating any
  67829. side-files required in a work directory during execution
  67830. of his task i.e. via
  67831. {@link #getWorkOutputPath(TaskInputOutputContext)}, and
  67832. the framework will move them out similarly - thus she doesn't have to pick
  67833. unique paths per task-attempt.</p>
  67834. <p>The entire discussion holds true for maps of jobs with
  67835. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  67836. goes directly to HDFS.</p>
  67837. @return the {@link Path} to the task's temporary output directory
  67838. for the map-reduce job.]]>
  67839. </doc>
  67840. </method>
  67841. <method name="getPathForWorkFile" return="org.apache.hadoop.fs.Path"
  67842. abstract="false" native="false" synchronized="false"
  67843. static="true" final="false" visibility="public"
  67844. deprecated="not deprecated">
  67845. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  67846. <param name="name" type="java.lang.String"/>
  67847. <param name="extension" type="java.lang.String"/>
  67848. <exception name="IOException" type="java.io.IOException"/>
  67849. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67850. <doc>
  67851. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  67852. the task within the job output directory.
  67853. <p>The path can be used to create custom files from within the map and
  67854. reduce tasks. The path name will be unique for each task. The path parent
  67855. will be the job output directory.</p>ls
  67856. <p>This method uses the {@link #getUniqueFile} method to make the file name
  67857. unique for the task.</p>
  67858. @param context the context for the task.
  67859. @param name the name for the file.
  67860. @param extension the extension for the file
  67861. @return a unique path accross all tasks of the job.]]>
  67862. </doc>
  67863. </method>
  67864. <method name="getUniqueFile" return="java.lang.String"
  67865. abstract="false" native="false" synchronized="true"
  67866. static="true" final="false" visibility="public"
  67867. deprecated="not deprecated">
  67868. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67869. <param name="name" type="java.lang.String"/>
  67870. <param name="extension" type="java.lang.String"/>
  67871. <doc>
  67872. <![CDATA[Generate a unique filename, based on the task id, name, and extension
  67873. @param context the task that is calling this
  67874. @param name the base filename
  67875. @param extension the filename extension
  67876. @return a string like $name-[mr]-$id$extension]]>
  67877. </doc>
  67878. </method>
  67879. <method name="getDefaultWorkFile" return="org.apache.hadoop.fs.Path"
  67880. abstract="false" native="false" synchronized="false"
  67881. static="false" final="false" visibility="public"
  67882. deprecated="not deprecated">
  67883. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67884. <param name="extension" type="java.lang.String"/>
  67885. <exception name="IOException" type="java.io.IOException"/>
  67886. <doc>
  67887. <![CDATA[Get the default path and filename for the output format.
  67888. @param context the task context
  67889. @param extension an extension to add to the filename
  67890. @return a full path $output/_temporary/$taskid/part-[mr]-$id
  67891. @throws IOException]]>
  67892. </doc>
  67893. </method>
  67894. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  67895. abstract="false" native="false" synchronized="true"
  67896. static="false" final="false" visibility="public"
  67897. deprecated="not deprecated">
  67898. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67899. <exception name="IOException" type="java.io.IOException"/>
  67900. </method>
  67901. <doc>
  67902. <![CDATA[A base class for {@link OutputFormat}s that read from {@link FileSystem}s.]]>
  67903. </doc>
  67904. </class>
  67905. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  67906. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  67907. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  67908. abstract="false"
  67909. static="true" final="true" visibility="public"
  67910. deprecated="not deprecated">
  67911. <method name="values" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter[]"
  67912. abstract="false" native="false" synchronized="false"
  67913. static="true" final="false" visibility="public"
  67914. deprecated="not deprecated">
  67915. </method>
  67916. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  67917. abstract="false" native="false" synchronized="false"
  67918. static="true" final="false" visibility="public"
  67919. deprecated="not deprecated">
  67920. <param name="name" type="java.lang.String"/>
  67921. </method>
  67922. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  67923. transient="false" volatile="false"
  67924. static="true" final="true" visibility="public"
  67925. deprecated="not deprecated">
  67926. </field>
  67927. </class>
  67928. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  67929. <!-- start class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  67930. <class name="NullOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  67931. abstract="false"
  67932. static="false" final="false" visibility="public"
  67933. deprecated="not deprecated">
  67934. <constructor name="NullOutputFormat"
  67935. static="false" final="false" visibility="public"
  67936. deprecated="not deprecated">
  67937. </constructor>
  67938. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  67939. abstract="false" native="false" synchronized="false"
  67940. static="false" final="false" visibility="public"
  67941. deprecated="not deprecated">
  67942. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67943. </method>
  67944. <method name="checkOutputSpecs"
  67945. abstract="false" native="false" synchronized="false"
  67946. static="false" final="false" visibility="public"
  67947. deprecated="not deprecated">
  67948. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67949. </method>
  67950. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  67951. abstract="false" native="false" synchronized="false"
  67952. static="false" final="false" visibility="public"
  67953. deprecated="not deprecated">
  67954. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67955. </method>
  67956. <doc>
  67957. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  67958. </doc>
  67959. </class>
  67960. <!-- end class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  67961. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  67962. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  67963. abstract="false"
  67964. static="false" final="false" visibility="public"
  67965. deprecated="not deprecated">
  67966. <constructor name="SequenceFileOutputFormat"
  67967. static="false" final="false" visibility="public"
  67968. deprecated="not deprecated">
  67969. </constructor>
  67970. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  67971. abstract="false" native="false" synchronized="false"
  67972. static="false" final="false" visibility="public"
  67973. deprecated="not deprecated">
  67974. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67975. <exception name="IOException" type="java.io.IOException"/>
  67976. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67977. </method>
  67978. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  67979. abstract="false" native="false" synchronized="false"
  67980. static="true" final="false" visibility="public"
  67981. deprecated="not deprecated">
  67982. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67983. <doc>
  67984. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  67985. @param job the {@link Job}
  67986. @return the {@link CompressionType} for the output {@link SequenceFile},
  67987. defaulting to {@link CompressionType#RECORD}]]>
  67988. </doc>
  67989. </method>
  67990. <method name="setOutputCompressionType"
  67991. abstract="false" native="false" synchronized="false"
  67992. static="true" final="false" visibility="public"
  67993. deprecated="not deprecated">
  67994. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67995. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  67996. <doc>
  67997. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  67998. @param job the {@link Job} to modify
  67999. @param style the {@link CompressionType} for the output
  68000. {@link SequenceFile}]]>
  68001. </doc>
  68002. </method>
  68003. <doc>
  68004. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  68005. </doc>
  68006. </class>
  68007. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  68008. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  68009. <class name="TextOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  68010. abstract="false"
  68011. static="false" final="false" visibility="public"
  68012. deprecated="not deprecated">
  68013. <constructor name="TextOutputFormat"
  68014. static="false" final="false" visibility="public"
  68015. deprecated="not deprecated">
  68016. </constructor>
  68017. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  68018. abstract="false" native="false" synchronized="false"
  68019. static="false" final="false" visibility="public"
  68020. deprecated="not deprecated">
  68021. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68022. <exception name="IOException" type="java.io.IOException"/>
  68023. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68024. </method>
  68025. <doc>
  68026. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  68027. </doc>
  68028. </class>
  68029. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  68030. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  68031. <class name="TextOutputFormat.LineRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  68032. abstract="false"
  68033. static="true" final="false" visibility="protected"
  68034. deprecated="not deprecated">
  68035. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  68036. static="false" final="false" visibility="public"
  68037. deprecated="not deprecated">
  68038. </constructor>
  68039. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  68040. static="false" final="false" visibility="public"
  68041. deprecated="not deprecated">
  68042. </constructor>
  68043. <method name="write"
  68044. abstract="false" native="false" synchronized="true"
  68045. static="false" final="false" visibility="public"
  68046. deprecated="not deprecated">
  68047. <param name="key" type="java.lang.Object"/>
  68048. <param name="value" type="java.lang.Object"/>
  68049. <exception name="IOException" type="java.io.IOException"/>
  68050. </method>
  68051. <method name="close"
  68052. abstract="false" native="false" synchronized="true"
  68053. static="false" final="false" visibility="public"
  68054. deprecated="not deprecated">
  68055. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68056. <exception name="IOException" type="java.io.IOException"/>
  68057. </method>
  68058. <field name="out" type="java.io.DataOutputStream"
  68059. transient="false" volatile="false"
  68060. static="false" final="false" visibility="protected"
  68061. deprecated="not deprecated">
  68062. </field>
  68063. </class>
  68064. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  68065. </package>
  68066. <package name="org.apache.hadoop.mapreduce.lib.partition">
  68067. <!-- start class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  68068. <class name="HashPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  68069. abstract="false"
  68070. static="false" final="false" visibility="public"
  68071. deprecated="not deprecated">
  68072. <constructor name="HashPartitioner"
  68073. static="false" final="false" visibility="public"
  68074. deprecated="not deprecated">
  68075. </constructor>
  68076. <method name="getPartition" return="int"
  68077. abstract="false" native="false" synchronized="false"
  68078. static="false" final="false" visibility="public"
  68079. deprecated="not deprecated">
  68080. <param name="key" type="java.lang.Object"/>
  68081. <param name="value" type="java.lang.Object"/>
  68082. <param name="numReduceTasks" type="int"/>
  68083. <doc>
  68084. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  68085. </doc>
  68086. </method>
  68087. <doc>
  68088. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  68089. </doc>
  68090. </class>
  68091. <!-- end class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  68092. </package>
  68093. <package name="org.apache.hadoop.mapreduce.lib.reduce">
  68094. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  68095. <class name="IntSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  68096. abstract="false"
  68097. static="false" final="false" visibility="public"
  68098. deprecated="not deprecated">
  68099. <constructor name="IntSumReducer"
  68100. static="false" final="false" visibility="public"
  68101. deprecated="not deprecated">
  68102. </constructor>
  68103. <method name="reduce"
  68104. abstract="false" native="false" synchronized="false"
  68105. static="false" final="false" visibility="public"
  68106. deprecated="not deprecated">
  68107. <param name="key" type="java.lang.Object"/>
  68108. <param name="values" type="java.lang.Iterable"/>
  68109. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68110. <exception name="IOException" type="java.io.IOException"/>
  68111. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68112. </method>
  68113. </class>
  68114. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  68115. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  68116. <class name="LongSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  68117. abstract="false"
  68118. static="false" final="false" visibility="public"
  68119. deprecated="not deprecated">
  68120. <constructor name="LongSumReducer"
  68121. static="false" final="false" visibility="public"
  68122. deprecated="not deprecated">
  68123. </constructor>
  68124. <method name="reduce"
  68125. abstract="false" native="false" synchronized="false"
  68126. static="false" final="false" visibility="public"
  68127. deprecated="not deprecated">
  68128. <param name="key" type="java.lang.Object"/>
  68129. <param name="values" type="java.lang.Iterable"/>
  68130. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68131. <exception name="IOException" type="java.io.IOException"/>
  68132. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68133. </method>
  68134. </class>
  68135. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  68136. </package>
  68137. <package name="org.apache.hadoop.mapreduce.security">
  68138. <!-- start class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  68139. <class name="SecureShuffleUtils" extends="java.lang.Object"
  68140. abstract="false"
  68141. static="false" final="false" visibility="public"
  68142. deprecated="not deprecated">
  68143. <constructor name="SecureShuffleUtils"
  68144. static="false" final="false" visibility="public"
  68145. deprecated="not deprecated">
  68146. </constructor>
  68147. <method name="generateHash" return="java.lang.String"
  68148. abstract="false" native="false" synchronized="false"
  68149. static="true" final="false" visibility="public"
  68150. deprecated="not deprecated">
  68151. <param name="msg" type="byte[]"/>
  68152. <param name="key" type="javax.crypto.SecretKey"/>
  68153. <doc>
  68154. <![CDATA[Base64 encoded hash of msg
  68155. @param msg]]>
  68156. </doc>
  68157. </method>
  68158. <method name="hashFromString" return="java.lang.String"
  68159. abstract="false" native="false" synchronized="false"
  68160. static="true" final="false" visibility="public"
  68161. deprecated="not deprecated">
  68162. <param name="enc_str" type="java.lang.String"/>
  68163. <param name="key" type="javax.crypto.SecretKey"/>
  68164. <exception name="IOException" type="java.io.IOException"/>
  68165. <doc>
  68166. <![CDATA[Aux util to calculate hash of a String
  68167. @param enc_str
  68168. @param key
  68169. @return Base64 encodedHash
  68170. @throws IOException]]>
  68171. </doc>
  68172. </method>
  68173. <method name="verifyReply"
  68174. abstract="false" native="false" synchronized="false"
  68175. static="true" final="false" visibility="public"
  68176. deprecated="not deprecated">
  68177. <param name="base64Hash" type="java.lang.String"/>
  68178. <param name="msg" type="java.lang.String"/>
  68179. <param name="key" type="javax.crypto.SecretKey"/>
  68180. <exception name="IOException" type="java.io.IOException"/>
  68181. <doc>
  68182. <![CDATA[verify that base64Hash is same as HMacHash(msg)
  68183. @param base64Hash (Base64 encoded hash)
  68184. @param msg
  68185. @throws IOException if not the same]]>
  68186. </doc>
  68187. </method>
  68188. <method name="buildMsgFrom" return="java.lang.String"
  68189. abstract="false" native="false" synchronized="false"
  68190. static="true" final="false" visibility="public"
  68191. deprecated="not deprecated">
  68192. <param name="url" type="java.net.URL"/>
  68193. <doc>
  68194. <![CDATA[Shuffle specific utils - build string for encoding from URL
  68195. @param url
  68196. @return string for encoding]]>
  68197. </doc>
  68198. </method>
  68199. <method name="buildMsgFrom" return="java.lang.String"
  68200. abstract="false" native="false" synchronized="false"
  68201. static="true" final="false" visibility="public"
  68202. deprecated="not deprecated">
  68203. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  68204. <doc>
  68205. <![CDATA[Shuffle specific utils - build string for encoding from URL
  68206. @param request
  68207. @return string for encoding]]>
  68208. </doc>
  68209. </method>
  68210. <method name="toHex" return="java.lang.String"
  68211. abstract="false" native="false" synchronized="false"
  68212. static="true" final="false" visibility="public"
  68213. deprecated="not deprecated">
  68214. <param name="ba" type="byte[]"/>
  68215. <doc>
  68216. <![CDATA[byte array to Hex String
  68217. @param ba
  68218. @return string with HEX value of the key]]>
  68219. </doc>
  68220. </method>
  68221. <field name="HTTP_HEADER_URL_HASH" type="java.lang.String"
  68222. transient="false" volatile="false"
  68223. static="true" final="true" visibility="public"
  68224. deprecated="not deprecated">
  68225. </field>
  68226. <field name="HTTP_HEADER_REPLY_URL_HASH" type="java.lang.String"
  68227. transient="false" volatile="false"
  68228. static="true" final="true" visibility="public"
  68229. deprecated="not deprecated">
  68230. </field>
  68231. <doc>
  68232. <![CDATA[utilities for generating kyes, hashes and verifying them for shuffle]]>
  68233. </doc>
  68234. </class>
  68235. <!-- end class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  68236. <!-- start class org.apache.hadoop.mapreduce.security.TokenCache -->
  68237. <class name="TokenCache" extends="java.lang.Object"
  68238. abstract="false"
  68239. static="false" final="false" visibility="public"
  68240. deprecated="not deprecated">
  68241. <constructor name="TokenCache"
  68242. static="false" final="false" visibility="public"
  68243. deprecated="not deprecated">
  68244. </constructor>
  68245. <method name="getSecretKey" return="byte[]"
  68246. abstract="false" native="false" synchronized="false"
  68247. static="true" final="false" visibility="public"
  68248. deprecated="not deprecated">
  68249. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  68250. <param name="alias" type="org.apache.hadoop.io.Text"/>
  68251. <doc>
  68252. <![CDATA[auxiliary method to get user's secret keys..
  68253. @param alias
  68254. @return secret key from the storage]]>
  68255. </doc>
  68256. </method>
  68257. <method name="obtainTokensForNamenodes"
  68258. abstract="false" native="false" synchronized="false"
  68259. static="true" final="false" visibility="public"
  68260. deprecated="not deprecated">
  68261. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  68262. <param name="ps" type="org.apache.hadoop.fs.Path[]"/>
  68263. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68264. <exception name="IOException" type="java.io.IOException"/>
  68265. <doc>
  68266. <![CDATA[Convenience method to obtain delegation tokens from namenodes
  68267. corresponding to the paths passed.
  68268. @param ps array of paths
  68269. @param conf configuration
  68270. @throws IOException]]>
  68271. </doc>
  68272. </method>
  68273. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  68274. abstract="false" native="false" synchronized="false"
  68275. static="true" final="false" visibility="public"
  68276. deprecated="not deprecated">
  68277. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  68278. <param name="namenode" type="java.lang.String"/>
  68279. <doc>
  68280. <![CDATA[@param namenode
  68281. @return delegation token]]>
  68282. </doc>
  68283. </method>
  68284. <method name="loadTokens" return="org.apache.hadoop.security.Credentials"
  68285. abstract="false" native="false" synchronized="false"
  68286. static="true" final="false" visibility="public"
  68287. deprecated="not deprecated">
  68288. <param name="jobTokenFile" type="java.lang.String"/>
  68289. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68290. <exception name="IOException" type="java.io.IOException"/>
  68291. <doc>
  68292. <![CDATA[load job token from a file
  68293. @param conf
  68294. @throws IOException]]>
  68295. </doc>
  68296. </method>
  68297. <method name="setJobToken"
  68298. abstract="false" native="false" synchronized="false"
  68299. static="true" final="false" visibility="public"
  68300. deprecated="not deprecated">
  68301. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  68302. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  68303. <doc>
  68304. <![CDATA[store job token
  68305. @param t]]>
  68306. </doc>
  68307. </method>
  68308. <method name="getJobToken" return="org.apache.hadoop.security.token.Token"
  68309. abstract="false" native="false" synchronized="false"
  68310. static="true" final="false" visibility="public"
  68311. deprecated="not deprecated">
  68312. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  68313. <doc>
  68314. <![CDATA[@return job token]]>
  68315. </doc>
  68316. </method>
  68317. <field name="JOB_TOKEN_HDFS_FILE" type="java.lang.String"
  68318. transient="false" volatile="false"
  68319. static="true" final="true" visibility="public"
  68320. deprecated="not deprecated">
  68321. <doc>
  68322. <![CDATA[file name used on HDFS for generated job token]]>
  68323. </doc>
  68324. </field>
  68325. <field name="JOB_TOKENS_FILENAME" type="java.lang.String"
  68326. transient="false" volatile="false"
  68327. static="true" final="true" visibility="public"
  68328. deprecated="not deprecated">
  68329. <doc>
  68330. <![CDATA[conf setting for job tokens cache file name]]>
  68331. </doc>
  68332. </field>
  68333. <doc>
  68334. <![CDATA[This class provides user facing APIs for transferring secrets from
  68335. the job client to the tasks.
  68336. The secrets can be stored just before submission of jobs and read during
  68337. the task execution.]]>
  68338. </doc>
  68339. </class>
  68340. <!-- end class org.apache.hadoop.mapreduce.security.TokenCache -->
  68341. </package>
  68342. <package name="org.apache.hadoop.mapreduce.security.token">
  68343. <!-- start class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  68344. <class name="DelegationTokenRenewal" extends="java.lang.Object"
  68345. abstract="false"
  68346. static="false" final="false" visibility="public"
  68347. deprecated="not deprecated">
  68348. <constructor name="DelegationTokenRenewal"
  68349. static="false" final="false" visibility="public"
  68350. deprecated="not deprecated">
  68351. </constructor>
  68352. <method name="registerDelegationTokensForRenewal"
  68353. abstract="false" native="false" synchronized="true"
  68354. static="true" final="false" visibility="public"
  68355. deprecated="not deprecated">
  68356. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  68357. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  68358. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68359. <exception name="IOException" type="java.io.IOException"/>
  68360. </method>
  68361. <method name="close"
  68362. abstract="false" native="false" synchronized="false"
  68363. static="true" final="false" visibility="public"
  68364. deprecated="not deprecated">
  68365. <doc>
  68366. <![CDATA[removing all tokens renewals]]>
  68367. </doc>
  68368. </method>
  68369. <method name="removeDelegationTokenRenewalForJob"
  68370. abstract="false" native="false" synchronized="false"
  68371. static="true" final="false" visibility="public"
  68372. deprecated="not deprecated">
  68373. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  68374. <doc>
  68375. <![CDATA[removing DT for completed jobs
  68376. @param jobId]]>
  68377. </doc>
  68378. </method>
  68379. <field name="SCHEME" type="java.lang.String"
  68380. transient="false" volatile="false"
  68381. static="true" final="true" visibility="public"
  68382. deprecated="not deprecated">
  68383. </field>
  68384. </class>
  68385. <!-- end class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  68386. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  68387. <class name="JobTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  68388. abstract="false"
  68389. static="false" final="false" visibility="public"
  68390. deprecated="not deprecated">
  68391. <constructor name="JobTokenIdentifier"
  68392. static="false" final="false" visibility="public"
  68393. deprecated="not deprecated">
  68394. <doc>
  68395. <![CDATA[Default constructor]]>
  68396. </doc>
  68397. </constructor>
  68398. <constructor name="JobTokenIdentifier" type="org.apache.hadoop.io.Text"
  68399. static="false" final="false" visibility="public"
  68400. deprecated="not deprecated">
  68401. <doc>
  68402. <![CDATA[Create a job token identifier from a jobid
  68403. @param jobid the jobid to use]]>
  68404. </doc>
  68405. </constructor>
  68406. <method name="getKind" return="org.apache.hadoop.io.Text"
  68407. abstract="false" native="false" synchronized="false"
  68408. static="false" final="false" visibility="public"
  68409. deprecated="not deprecated">
  68410. <doc>
  68411. <![CDATA[{@inheritDoc}]]>
  68412. </doc>
  68413. </method>
  68414. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  68415. abstract="false" native="false" synchronized="false"
  68416. static="false" final="false" visibility="public"
  68417. deprecated="not deprecated">
  68418. <doc>
  68419. <![CDATA[{@inheritDoc}]]>
  68420. </doc>
  68421. </method>
  68422. <method name="getJobId" return="org.apache.hadoop.io.Text"
  68423. abstract="false" native="false" synchronized="false"
  68424. static="false" final="false" visibility="public"
  68425. deprecated="not deprecated">
  68426. <doc>
  68427. <![CDATA[Get the jobid
  68428. @return the jobid]]>
  68429. </doc>
  68430. </method>
  68431. <method name="readFields"
  68432. abstract="false" native="false" synchronized="false"
  68433. static="false" final="false" visibility="public"
  68434. deprecated="not deprecated">
  68435. <param name="in" type="java.io.DataInput"/>
  68436. <exception name="IOException" type="java.io.IOException"/>
  68437. <doc>
  68438. <![CDATA[{@inheritDoc}]]>
  68439. </doc>
  68440. </method>
  68441. <method name="write"
  68442. abstract="false" native="false" synchronized="false"
  68443. static="false" final="false" visibility="public"
  68444. deprecated="not deprecated">
  68445. <param name="out" type="java.io.DataOutput"/>
  68446. <exception name="IOException" type="java.io.IOException"/>
  68447. <doc>
  68448. <![CDATA[{@inheritDoc}]]>
  68449. </doc>
  68450. </method>
  68451. <field name="KIND_NAME" type="org.apache.hadoop.io.Text"
  68452. transient="false" volatile="false"
  68453. static="true" final="true" visibility="public"
  68454. deprecated="not deprecated">
  68455. </field>
  68456. <doc>
  68457. <![CDATA[The token identifier for job token]]>
  68458. </doc>
  68459. </class>
  68460. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  68461. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  68462. <class name="JobTokenIdentifier.Renewer" extends="org.apache.hadoop.security.token.Token.TrivialRenewer"
  68463. abstract="false"
  68464. static="true" final="false" visibility="public"
  68465. deprecated="not deprecated">
  68466. <constructor name="JobTokenIdentifier.Renewer"
  68467. static="false" final="false" visibility="public"
  68468. deprecated="not deprecated">
  68469. </constructor>
  68470. <method name="getKind" return="org.apache.hadoop.io.Text"
  68471. abstract="false" native="false" synchronized="false"
  68472. static="false" final="false" visibility="protected"
  68473. deprecated="not deprecated">
  68474. </method>
  68475. </class>
  68476. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  68477. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  68478. <class name="JobTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  68479. abstract="false"
  68480. static="false" final="false" visibility="public"
  68481. deprecated="not deprecated">
  68482. <constructor name="JobTokenSecretManager"
  68483. static="false" final="false" visibility="public"
  68484. deprecated="not deprecated">
  68485. <doc>
  68486. <![CDATA[Default constructor]]>
  68487. </doc>
  68488. </constructor>
  68489. <method name="createSecretKey" return="javax.crypto.SecretKey"
  68490. abstract="false" native="false" synchronized="false"
  68491. static="true" final="false" visibility="public"
  68492. deprecated="not deprecated">
  68493. <param name="key" type="byte[]"/>
  68494. <doc>
  68495. <![CDATA[Convert the byte[] to a secret key
  68496. @param key the byte[] to create the secret key from
  68497. @return the secret key]]>
  68498. </doc>
  68499. </method>
  68500. <method name="computeHash" return="byte[]"
  68501. abstract="false" native="false" synchronized="false"
  68502. static="true" final="false" visibility="public"
  68503. deprecated="not deprecated">
  68504. <param name="msg" type="byte[]"/>
  68505. <param name="key" type="javax.crypto.SecretKey"/>
  68506. <doc>
  68507. <![CDATA[Compute the HMAC hash of the message using the key
  68508. @param msg the message to hash
  68509. @param key the key to use
  68510. @return the computed hash]]>
  68511. </doc>
  68512. </method>
  68513. <method name="createPassword" return="byte[]"
  68514. abstract="false" native="false" synchronized="false"
  68515. static="false" final="false" visibility="public"
  68516. deprecated="not deprecated">
  68517. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  68518. <doc>
  68519. <![CDATA[Create a new password/secret for the given job token identifier.
  68520. @param identifier the job token identifier
  68521. @return token password/secret]]>
  68522. </doc>
  68523. </method>
  68524. <method name="addTokenForJob"
  68525. abstract="false" native="false" synchronized="false"
  68526. static="false" final="false" visibility="public"
  68527. deprecated="not deprecated">
  68528. <param name="jobId" type="java.lang.String"/>
  68529. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  68530. <doc>
  68531. <![CDATA[Add the job token of a job to cache
  68532. @param jobId the job that owns the token
  68533. @param token the job token]]>
  68534. </doc>
  68535. </method>
  68536. <method name="removeTokenForJob"
  68537. abstract="false" native="false" synchronized="false"
  68538. static="false" final="false" visibility="public"
  68539. deprecated="not deprecated">
  68540. <param name="jobId" type="java.lang.String"/>
  68541. <doc>
  68542. <![CDATA[Remove the cached job token of a job from cache
  68543. @param jobId the job whose token is to be removed]]>
  68544. </doc>
  68545. </method>
  68546. <method name="retrieveTokenSecret" return="javax.crypto.SecretKey"
  68547. abstract="false" native="false" synchronized="false"
  68548. static="false" final="false" visibility="public"
  68549. deprecated="not deprecated">
  68550. <param name="jobId" type="java.lang.String"/>
  68551. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  68552. <doc>
  68553. <![CDATA[Look up the token password/secret for the given jobId.
  68554. @param jobId the jobId to look up
  68555. @return token password/secret as SecretKey
  68556. @throws InvalidToken]]>
  68557. </doc>
  68558. </method>
  68559. <method name="retrievePassword" return="byte[]"
  68560. abstract="false" native="false" synchronized="false"
  68561. static="false" final="false" visibility="public"
  68562. deprecated="not deprecated">
  68563. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  68564. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  68565. <doc>
  68566. <![CDATA[Look up the token password/secret for the given job token identifier.
  68567. @param identifier the job token identifier to look up
  68568. @return token password/secret as byte[]
  68569. @throws InvalidToken]]>
  68570. </doc>
  68571. </method>
  68572. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"
  68573. abstract="false" native="false" synchronized="false"
  68574. static="false" final="false" visibility="public"
  68575. deprecated="not deprecated">
  68576. <doc>
  68577. <![CDATA[Create an empty job token identifier
  68578. @return a newly created empty job token identifier]]>
  68579. </doc>
  68580. </method>
  68581. <doc>
  68582. <![CDATA[SecretManager for job token. It can be used to cache generated job tokens.]]>
  68583. </doc>
  68584. </class>
  68585. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  68586. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  68587. <class name="JobTokenSelector" extends="java.lang.Object"
  68588. abstract="false"
  68589. static="false" final="false" visibility="public"
  68590. deprecated="not deprecated">
  68591. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  68592. <constructor name="JobTokenSelector"
  68593. static="false" final="false" visibility="public"
  68594. deprecated="not deprecated">
  68595. </constructor>
  68596. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  68597. abstract="false" native="false" synchronized="false"
  68598. static="false" final="false" visibility="public"
  68599. deprecated="not deprecated">
  68600. <param name="service" type="org.apache.hadoop.io.Text"/>
  68601. <param name="tokens" type="java.util.Collection"/>
  68602. </method>
  68603. <doc>
  68604. <![CDATA[Look through tokens to find the first job token that matches the service
  68605. and return it.]]>
  68606. </doc>
  68607. </class>
  68608. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  68609. </package>
  68610. <package name="org.apache.hadoop.mapreduce.security.token.delegation">
  68611. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  68612. <class name="DelegationTokenIdentifier" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  68613. abstract="false"
  68614. static="false" final="false" visibility="public"
  68615. deprecated="not deprecated">
  68616. <constructor name="DelegationTokenIdentifier"
  68617. static="false" final="false" visibility="public"
  68618. deprecated="not deprecated">
  68619. <doc>
  68620. <![CDATA[Create an empty delegation token identifier for reading into.]]>
  68621. </doc>
  68622. </constructor>
  68623. <constructor name="DelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  68624. static="false" final="false" visibility="public"
  68625. deprecated="not deprecated">
  68626. <doc>
  68627. <![CDATA[Create a new delegation token identifier
  68628. @param owner the effective username of the token owner
  68629. @param renewer the username of the renewer
  68630. @param realUser the real username of the token owner]]>
  68631. </doc>
  68632. </constructor>
  68633. <method name="getKind" return="org.apache.hadoop.io.Text"
  68634. abstract="false" native="false" synchronized="false"
  68635. static="false" final="false" visibility="public"
  68636. deprecated="not deprecated">
  68637. </method>
  68638. <field name="MAPREDUCE_DELEGATION_KIND" type="org.apache.hadoop.io.Text"
  68639. transient="false" volatile="false"
  68640. static="true" final="true" visibility="public"
  68641. deprecated="not deprecated">
  68642. </field>
  68643. <doc>
  68644. <![CDATA[A delegation token identifier that is specific to MapReduce.]]>
  68645. </doc>
  68646. </class>
  68647. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  68648. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  68649. <class name="DelegationTokenSecretManager" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager"
  68650. abstract="false"
  68651. static="false" final="false" visibility="public"
  68652. deprecated="not deprecated">
  68653. <constructor name="DelegationTokenSecretManager" type="long, long, long, long"
  68654. static="false" final="false" visibility="public"
  68655. deprecated="not deprecated">
  68656. <doc>
  68657. <![CDATA[Create a secret manager
  68658. @param delegationKeyUpdateInterval the number of seconds for rolling new
  68659. secret keys.
  68660. @param delegationTokenMaxLifetime the maximum lifetime of the delegation
  68661. tokens
  68662. @param delegationTokenRenewInterval how often the tokens must be renewed
  68663. @param delegationTokenRemoverScanInterval how often the tokens are scanned
  68664. for expired tokens]]>
  68665. </doc>
  68666. </constructor>
  68667. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier"
  68668. abstract="false" native="false" synchronized="false"
  68669. static="false" final="false" visibility="public"
  68670. deprecated="not deprecated">
  68671. </method>
  68672. <doc>
  68673. <![CDATA[A MapReduce specific delegation token secret manager.
  68674. The secret manager is responsible for generating and accepting the password
  68675. for each token.]]>
  68676. </doc>
  68677. </class>
  68678. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  68679. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  68680. <class name="DelegationTokenSelector" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector"
  68681. abstract="false"
  68682. static="false" final="false" visibility="public"
  68683. deprecated="not deprecated">
  68684. <constructor name="DelegationTokenSelector"
  68685. static="false" final="false" visibility="public"
  68686. deprecated="not deprecated">
  68687. </constructor>
  68688. <doc>
  68689. <![CDATA[A delegation token that is specialized for MapReduce]]>
  68690. </doc>
  68691. </class>
  68692. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  68693. </package>
  68694. <package name="org.apache.hadoop.mapreduce.server.jobtracker">
  68695. <!-- start class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  68696. <class name="TaskTracker" extends="java.lang.Object"
  68697. abstract="false"
  68698. static="false" final="false" visibility="public"
  68699. deprecated="not deprecated">
  68700. <constructor name="TaskTracker" type="java.lang.String"
  68701. static="false" final="false" visibility="public"
  68702. deprecated="not deprecated">
  68703. <doc>
  68704. <![CDATA[Create a new {@link TaskTracker}.
  68705. @param trackerName Unique identifier for the <code>TaskTracker</code>]]>
  68706. </doc>
  68707. </constructor>
  68708. <method name="getTrackerName" return="java.lang.String"
  68709. abstract="false" native="false" synchronized="false"
  68710. static="false" final="false" visibility="public"
  68711. deprecated="not deprecated">
  68712. <doc>
  68713. <![CDATA[Get the unique identifier for the {@link TaskTracker}
  68714. @return the unique identifier for the <code>TaskTracker</code>]]>
  68715. </doc>
  68716. </method>
  68717. <method name="getStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  68718. abstract="false" native="false" synchronized="false"
  68719. static="false" final="false" visibility="public"
  68720. deprecated="not deprecated">
  68721. <doc>
  68722. <![CDATA[Get the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  68723. @return the current <code>TaskTrackerStatus</code> of the
  68724. <code>TaskTracker</code>]]>
  68725. </doc>
  68726. </method>
  68727. <method name="setStatus"
  68728. abstract="false" native="false" synchronized="false"
  68729. static="false" final="false" visibility="public"
  68730. deprecated="not deprecated">
  68731. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  68732. <doc>
  68733. <![CDATA[Set the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  68734. @param status the current <code>TaskTrackerStatus</code> of the
  68735. <code>TaskTracker</code>]]>
  68736. </doc>
  68737. </method>
  68738. <method name="getAvailableSlots" return="int"
  68739. abstract="false" native="false" synchronized="false"
  68740. static="false" final="false" visibility="public"
  68741. deprecated="not deprecated">
  68742. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  68743. <doc>
  68744. <![CDATA[Get the number of currently available slots on this tasktracker for the
  68745. given type of the task.
  68746. @param taskType the {@link TaskType} to check for number of available slots
  68747. @return the number of currently available slots for the given
  68748. <code>taskType</code>]]>
  68749. </doc>
  68750. </method>
  68751. <method name="getJobForFallowSlot" return="org.apache.hadoop.mapred.JobInProgress"
  68752. abstract="false" native="false" synchronized="false"
  68753. static="false" final="false" visibility="public"
  68754. deprecated="not deprecated">
  68755. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  68756. <doc>
  68757. <![CDATA[Get the {@link JobInProgress} for which the fallow slot(s) are held.
  68758. @param taskType {@link TaskType} of the task
  68759. @return the task for which the fallow slot(s) are held,
  68760. <code>null</code> if there are no fallow slots]]>
  68761. </doc>
  68762. </method>
  68763. <method name="reserveSlots"
  68764. abstract="false" native="false" synchronized="false"
  68765. static="false" final="false" visibility="public"
  68766. deprecated="not deprecated">
  68767. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  68768. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  68769. <param name="numSlots" type="int"/>
  68770. <doc>
  68771. <![CDATA[Reserve specified number of slots for a given <code>job</code>.
  68772. @param taskType {@link TaskType} of the task
  68773. @param job the job for which slots on this <code>TaskTracker</code>
  68774. are to be reserved
  68775. @param numSlots number of slots to be reserved]]>
  68776. </doc>
  68777. </method>
  68778. <method name="unreserveSlots"
  68779. abstract="false" native="false" synchronized="false"
  68780. static="false" final="false" visibility="public"
  68781. deprecated="not deprecated">
  68782. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  68783. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  68784. <doc>
  68785. <![CDATA[Free map slots on this <code>TaskTracker</code> which were reserved for
  68786. <code>taskType</code>.
  68787. @param taskType {@link TaskType} of the task
  68788. @param job job whose slots are being un-reserved]]>
  68789. </doc>
  68790. </method>
  68791. <method name="cancelAllReservations"
  68792. abstract="false" native="false" synchronized="false"
  68793. static="false" final="false" visibility="public"
  68794. deprecated="not deprecated">
  68795. <doc>
  68796. <![CDATA[Cleanup when the {@link TaskTracker} is declared as 'lost/blacklisted'
  68797. by the JobTracker.
  68798. The method assumes that the lock on the {@link JobTracker} is obtained
  68799. by the caller.]]>
  68800. </doc>
  68801. </method>
  68802. <doc>
  68803. <![CDATA[The representation of a single <code>TaskTracker</code> as seen by
  68804. the {@link JobTracker}.]]>
  68805. </doc>
  68806. </class>
  68807. <!-- end class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  68808. </package>
  68809. <package name="org.apache.hadoop.mapreduce.server.tasktracker">
  68810. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  68811. <class name="JVMInfo" extends="java.lang.Object"
  68812. abstract="false"
  68813. static="false" final="false" visibility="public"
  68814. deprecated="not deprecated">
  68815. <constructor name="JVMInfo" type="java.io.File, java.util.List"
  68816. static="false" final="false" visibility="public"
  68817. deprecated="not deprecated">
  68818. </constructor>
  68819. <method name="getLogLocation" return="java.io.File"
  68820. abstract="false" native="false" synchronized="false"
  68821. static="false" final="false" visibility="public"
  68822. deprecated="not deprecated">
  68823. </method>
  68824. <method name="getAllAttempts" return="java.util.List"
  68825. abstract="false" native="false" synchronized="false"
  68826. static="false" final="false" visibility="public"
  68827. deprecated="not deprecated">
  68828. </method>
  68829. </class>
  68830. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  68831. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  68832. <class name="Localizer" extends="java.lang.Object"
  68833. abstract="false"
  68834. static="false" final="false" visibility="public"
  68835. deprecated="not deprecated">
  68836. <constructor name="Localizer" type="org.apache.hadoop.fs.FileSystem, java.lang.String[]"
  68837. static="false" final="false" visibility="public"
  68838. deprecated="not deprecated">
  68839. <doc>
  68840. <![CDATA[Create a Localizer instance
  68841. @param fileSys
  68842. @param lDirs]]>
  68843. </doc>
  68844. </constructor>
  68845. <method name="initializeUserDirs"
  68846. abstract="false" native="false" synchronized="false"
  68847. static="false" final="false" visibility="public"
  68848. deprecated="not deprecated">
  68849. <param name="user" type="java.lang.String"/>
  68850. <exception name="IOException" type="java.io.IOException"/>
  68851. <doc>
  68852. <![CDATA[Initialize the local directories for a particular user on this TT. This
  68853. involves creation and setting permissions of the following directories
  68854. <ul>
  68855. <li>$mapred.local.dir/taskTracker/$user</li>
  68856. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  68857. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  68858. </ul>
  68859. @param user
  68860. @throws IOException]]>
  68861. </doc>
  68862. </method>
  68863. <method name="initializeAttemptDirs"
  68864. abstract="false" native="false" synchronized="false"
  68865. static="false" final="false" visibility="public"
  68866. deprecated="not deprecated">
  68867. <param name="user" type="java.lang.String"/>
  68868. <param name="jobId" type="java.lang.String"/>
  68869. <param name="attemptId" type="java.lang.String"/>
  68870. <exception name="IOException" type="java.io.IOException"/>
  68871. <doc>
  68872. <![CDATA[Create taskDirs on all the disks. Otherwise, in some cases, like when
  68873. LinuxTaskController is in use, child might wish to balance load across
  68874. disks but cannot itself create attempt directory because of the fact that
  68875. job directory is writable only by the TT.
  68876. @param user
  68877. @param jobId
  68878. @param attemptId
  68879. @throws IOException]]>
  68880. </doc>
  68881. </method>
  68882. <doc>
  68883. <![CDATA[NOTE: This class is internal only and not intended for users!!]]>
  68884. </doc>
  68885. </class>
  68886. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  68887. </package>
  68888. <package name="org.apache.hadoop.mapreduce.server.tasktracker.userlogs">
  68889. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  68890. <class name="DeleteJobEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  68891. abstract="false"
  68892. static="false" final="false" visibility="public"
  68893. deprecated="not deprecated">
  68894. <constructor name="DeleteJobEvent" type="org.apache.hadoop.mapreduce.JobID"
  68895. static="false" final="false" visibility="public"
  68896. deprecated="not deprecated">
  68897. <doc>
  68898. <![CDATA[Create the event to delete job log directory.
  68899. @param jobid
  68900. The {@link JobID} whose logs should be deleted.]]>
  68901. </doc>
  68902. </constructor>
  68903. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  68904. abstract="false" native="false" synchronized="false"
  68905. static="false" final="false" visibility="public"
  68906. deprecated="not deprecated">
  68907. <doc>
  68908. <![CDATA[Get the jobid.
  68909. @return object of {@link JobID}]]>
  68910. </doc>
  68911. </method>
  68912. <doc>
  68913. <![CDATA[This is an {@link UserLogEvent} sent when job logs should be deleted.]]>
  68914. </doc>
  68915. </class>
  68916. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  68917. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  68918. <class name="JobCompletedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  68919. abstract="false"
  68920. static="false" final="false" visibility="public"
  68921. deprecated="not deprecated">
  68922. <constructor name="JobCompletedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int"
  68923. static="false" final="false" visibility="public"
  68924. deprecated="not deprecated">
  68925. <doc>
  68926. <![CDATA[Create the event for job completion.
  68927. @param jobid
  68928. The completed {@link JobID} .
  68929. @param jobCompletionTime
  68930. The job completion time.
  68931. @param retainHours
  68932. The number of hours for which the job logs should be retained]]>
  68933. </doc>
  68934. </constructor>
  68935. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  68936. abstract="false" native="false" synchronized="false"
  68937. static="false" final="false" visibility="public"
  68938. deprecated="not deprecated">
  68939. <doc>
  68940. <![CDATA[Get the job id.
  68941. @return object of {@link JobID}]]>
  68942. </doc>
  68943. </method>
  68944. <method name="getJobCompletionTime" return="long"
  68945. abstract="false" native="false" synchronized="false"
  68946. static="false" final="false" visibility="public"
  68947. deprecated="not deprecated">
  68948. <doc>
  68949. <![CDATA[Get the job completion time-stamp in milli-seconds.
  68950. @return job completion time.]]>
  68951. </doc>
  68952. </method>
  68953. <method name="getRetainHours" return="int"
  68954. abstract="false" native="false" synchronized="false"
  68955. static="false" final="false" visibility="public"
  68956. deprecated="not deprecated">
  68957. <doc>
  68958. <![CDATA[Get the number of hours for which job logs should be retained.
  68959. @return retainHours]]>
  68960. </doc>
  68961. </method>
  68962. <doc>
  68963. <![CDATA[This is an {@link UserLogEvent} sent when the job completes]]>
  68964. </doc>
  68965. </class>
  68966. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  68967. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  68968. <class name="JobStartedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  68969. abstract="false"
  68970. static="false" final="false" visibility="public"
  68971. deprecated="not deprecated">
  68972. <constructor name="JobStartedEvent" type="org.apache.hadoop.mapreduce.JobID"
  68973. static="false" final="false" visibility="public"
  68974. deprecated="not deprecated">
  68975. <doc>
  68976. <![CDATA[Create the event to inform the job has started.
  68977. @param jobid
  68978. The {@link JobID} which started]]>
  68979. </doc>
  68980. </constructor>
  68981. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  68982. abstract="false" native="false" synchronized="false"
  68983. static="false" final="false" visibility="public"
  68984. deprecated="not deprecated">
  68985. <doc>
  68986. <![CDATA[Get the job id.
  68987. @return object of {@link JobID}]]>
  68988. </doc>
  68989. </method>
  68990. <doc>
  68991. <![CDATA[This is an {@link UserLogEvent} sent when the job starts.]]>
  68992. </doc>
  68993. </class>
  68994. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  68995. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  68996. <class name="JvmFinishedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  68997. abstract="false"
  68998. static="false" final="false" visibility="public"
  68999. deprecated="not deprecated">
  69000. <constructor name="JvmFinishedEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  69001. static="false" final="false" visibility="public"
  69002. deprecated="not deprecated">
  69003. <doc>
  69004. <![CDATA[Create the event to inform that the jvm has finished.
  69005. @param jvmInfo
  69006. The finished {@link JVMInfo}]]>
  69007. </doc>
  69008. </constructor>
  69009. <method name="getJvmInfo" return="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  69010. abstract="false" native="false" synchronized="false"
  69011. static="false" final="false" visibility="public"
  69012. deprecated="not deprecated">
  69013. <doc>
  69014. <![CDATA[Get the jvm info.
  69015. @return object of {@link JVMInfo}]]>
  69016. </doc>
  69017. </method>
  69018. <doc>
  69019. <![CDATA[This is an {@link UserLogEvent} sent when the jvm finishes.]]>
  69020. </doc>
  69021. </class>
  69022. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  69023. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  69024. <class name="UserLogEvent" extends="java.lang.Object"
  69025. abstract="true"
  69026. static="false" final="false" visibility="public"
  69027. deprecated="not deprecated">
  69028. <constructor name="UserLogEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69029. static="false" final="false" visibility="protected"
  69030. deprecated="not deprecated">
  69031. </constructor>
  69032. <method name="getEventType" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69033. abstract="false" native="false" synchronized="false"
  69034. static="false" final="false" visibility="public"
  69035. deprecated="not deprecated">
  69036. <doc>
  69037. <![CDATA[Return the {@link EventType}.
  69038. @return the {@link EventType}.]]>
  69039. </doc>
  69040. </method>
  69041. <doc>
  69042. <![CDATA[A directive from the various components of {@link TaskTracker} to the
  69043. {@link UserLogManager} to inform about an event.]]>
  69044. </doc>
  69045. </class>
  69046. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  69047. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  69048. <class name="UserLogEvent.EventType" extends="java.lang.Enum"
  69049. abstract="false"
  69050. static="true" final="true" visibility="public"
  69051. deprecated="not deprecated">
  69052. <method name="values" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType[]"
  69053. abstract="false" native="false" synchronized="false"
  69054. static="true" final="false" visibility="public"
  69055. deprecated="not deprecated">
  69056. </method>
  69057. <method name="valueOf" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69058. abstract="false" native="false" synchronized="false"
  69059. static="true" final="false" visibility="public"
  69060. deprecated="not deprecated">
  69061. <param name="name" type="java.lang.String"/>
  69062. </method>
  69063. <field name="JVM_FINISHED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69064. transient="false" volatile="false"
  69065. static="true" final="true" visibility="public"
  69066. deprecated="not deprecated">
  69067. </field>
  69068. <field name="JOB_STARTED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69069. transient="false" volatile="false"
  69070. static="true" final="true" visibility="public"
  69071. deprecated="not deprecated">
  69072. </field>
  69073. <field name="JOB_COMPLETED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69074. transient="false" volatile="false"
  69075. static="true" final="true" visibility="public"
  69076. deprecated="not deprecated">
  69077. </field>
  69078. <field name="DELETE_JOB" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69079. transient="false" volatile="false"
  69080. static="true" final="true" visibility="public"
  69081. deprecated="not deprecated">
  69082. </field>
  69083. </class>
  69084. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  69085. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  69086. <class name="UserLogManager" extends="java.lang.Object"
  69087. abstract="false"
  69088. static="false" final="false" visibility="public"
  69089. deprecated="not deprecated">
  69090. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  69091. static="false" final="false" visibility="public"
  69092. deprecated="not deprecated">
  69093. <exception name="IOException" type="java.io.IOException"/>
  69094. <doc>
  69095. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  69096. It should be explicitly started using {@link #start()} to start functioning
  69097. @param conf The {@link Configuration}
  69098. @param taskController The task controller to delete the log files
  69099. @throws IOException]]>
  69100. </doc>
  69101. </constructor>
  69102. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration"
  69103. static="false" final="false" visibility="public"
  69104. deprecated="not deprecated">
  69105. <exception name="IOException" type="java.io.IOException"/>
  69106. <doc>
  69107. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  69108. This constructor is there mainly for unit tests.
  69109. @param conf The {@link Configuration}
  69110. @throws IOException]]>
  69111. </doc>
  69112. </constructor>
  69113. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  69114. abstract="false" native="false" synchronized="false"
  69115. static="false" final="false" visibility="public"
  69116. deprecated="not deprecated">
  69117. <doc>
  69118. <![CDATA[Get the taskController for deleting logs.
  69119. @return the TaskController]]>
  69120. </doc>
  69121. </method>
  69122. <method name="start"
  69123. abstract="false" native="false" synchronized="false"
  69124. static="false" final="false" visibility="public"
  69125. deprecated="not deprecated">
  69126. <doc>
  69127. <![CDATA[Starts managing the logs]]>
  69128. </doc>
  69129. </method>
  69130. <method name="monitor"
  69131. abstract="false" native="false" synchronized="false"
  69132. static="false" final="false" visibility="protected"
  69133. deprecated="not deprecated">
  69134. <exception name="Exception" type="java.lang.Exception"/>
  69135. </method>
  69136. <method name="processEvent"
  69137. abstract="false" native="false" synchronized="false"
  69138. static="false" final="false" visibility="protected"
  69139. deprecated="not deprecated">
  69140. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  69141. <exception name="IOException" type="java.io.IOException"/>
  69142. </method>
  69143. <method name="clearOldUserLogs"
  69144. abstract="false" native="false" synchronized="false"
  69145. static="false" final="false" visibility="public"
  69146. deprecated="not deprecated">
  69147. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69148. <exception name="IOException" type="java.io.IOException"/>
  69149. <doc>
  69150. <![CDATA[Called during TaskTracker restart/re-init.
  69151. @param conf
  69152. TT's conf
  69153. @throws IOException]]>
  69154. </doc>
  69155. </method>
  69156. <method name="addLogEvent"
  69157. abstract="false" native="false" synchronized="false"
  69158. static="false" final="false" visibility="public"
  69159. deprecated="not deprecated">
  69160. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  69161. <doc>
  69162. <![CDATA[Add the {@link UserLogEvent} for processing.
  69163. @param event]]>
  69164. </doc>
  69165. </method>
  69166. <method name="getUserLogCleaner" return="org.apache.hadoop.mapred.UserLogCleaner"
  69167. abstract="false" native="false" synchronized="false"
  69168. static="false" final="false" visibility="public"
  69169. deprecated="not deprecated">
  69170. <doc>
  69171. <![CDATA[Get {@link UserLogCleaner}.
  69172. This method is called only from unit tests.
  69173. @return {@link UserLogCleaner}]]>
  69174. </doc>
  69175. </method>
  69176. <doc>
  69177. <![CDATA[This manages user logs on the {@link TaskTracker}.]]>
  69178. </doc>
  69179. </class>
  69180. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  69181. </package>
  69182. <package name="org.apache.hadoop.mapreduce.split">
  69183. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit -->
  69184. <class name="JobSplit" extends="java.lang.Object"
  69185. abstract="false"
  69186. static="false" final="false" visibility="public"
  69187. deprecated="not deprecated">
  69188. <constructor name="JobSplit"
  69189. static="false" final="false" visibility="public"
  69190. deprecated="not deprecated">
  69191. </constructor>
  69192. <field name="EMPTY_TASK_SPLIT" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo"
  69193. transient="false" volatile="false"
  69194. static="true" final="true" visibility="public"
  69195. deprecated="not deprecated">
  69196. </field>
  69197. <doc>
  69198. <![CDATA[This class groups the fundamental classes associated with
  69199. reading/writing splits. The split information is divided into
  69200. two parts based on the consumer of the information. The two
  69201. parts are the split meta information, and the raw split
  69202. information. The first part is consumed by the JobTracker to
  69203. create the tasks' locality data structures. The second part is
  69204. used by the maps at runtime to know what to do!
  69205. These pieces of information are written to two separate files.
  69206. The metainformation file is slurped by the JobTracker during
  69207. job initialization. A map task gets the meta information during
  69208. the launch and it reads the raw split bytes directly from the
  69209. file.]]>
  69210. </doc>
  69211. </class>
  69212. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit -->
  69213. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  69214. <class name="JobSplit.SplitMetaInfo" extends="java.lang.Object"
  69215. abstract="false"
  69216. static="true" final="false" visibility="public"
  69217. deprecated="not deprecated">
  69218. <implements name="org.apache.hadoop.io.Writable"/>
  69219. <constructor name="JobSplit.SplitMetaInfo"
  69220. static="false" final="false" visibility="public"
  69221. deprecated="not deprecated">
  69222. </constructor>
  69223. <constructor name="JobSplit.SplitMetaInfo" type="java.lang.String[], long, long"
  69224. static="false" final="false" visibility="public"
  69225. deprecated="not deprecated">
  69226. </constructor>
  69227. <constructor name="JobSplit.SplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  69228. static="false" final="false" visibility="public"
  69229. deprecated="not deprecated">
  69230. <exception name="IOException" type="java.io.IOException"/>
  69231. </constructor>
  69232. <method name="getLocations" return="java.lang.String[]"
  69233. abstract="false" native="false" synchronized="false"
  69234. static="false" final="false" visibility="public"
  69235. deprecated="not deprecated">
  69236. </method>
  69237. <method name="getStartOffset" return="long"
  69238. abstract="false" native="false" synchronized="false"
  69239. static="false" final="false" visibility="public"
  69240. deprecated="not deprecated">
  69241. </method>
  69242. <method name="getInputDataLength" return="long"
  69243. abstract="false" native="false" synchronized="false"
  69244. static="false" final="false" visibility="public"
  69245. deprecated="not deprecated">
  69246. </method>
  69247. <method name="setInputDataLocations"
  69248. abstract="false" native="false" synchronized="false"
  69249. static="false" final="false" visibility="public"
  69250. deprecated="not deprecated">
  69251. <param name="locations" type="java.lang.String[]"/>
  69252. </method>
  69253. <method name="setInputDataLength"
  69254. abstract="false" native="false" synchronized="false"
  69255. static="false" final="false" visibility="public"
  69256. deprecated="not deprecated">
  69257. <param name="length" type="long"/>
  69258. </method>
  69259. <method name="readFields"
  69260. abstract="false" native="false" synchronized="false"
  69261. static="false" final="false" visibility="public"
  69262. deprecated="not deprecated">
  69263. <param name="in" type="java.io.DataInput"/>
  69264. <exception name="IOException" type="java.io.IOException"/>
  69265. </method>
  69266. <method name="write"
  69267. abstract="false" native="false" synchronized="false"
  69268. static="false" final="false" visibility="public"
  69269. deprecated="not deprecated">
  69270. <param name="out" type="java.io.DataOutput"/>
  69271. <exception name="IOException" type="java.io.IOException"/>
  69272. </method>
  69273. <method name="toString" return="java.lang.String"
  69274. abstract="false" native="false" synchronized="false"
  69275. static="false" final="false" visibility="public"
  69276. deprecated="not deprecated">
  69277. </method>
  69278. <doc>
  69279. <![CDATA[This represents the meta information about the task split.
  69280. The main fields are
  69281. - start offset in actual split
  69282. - data length that will be processed in this split
  69283. - hosts on which this split is local]]>
  69284. </doc>
  69285. </class>
  69286. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  69287. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  69288. <class name="JobSplit.TaskSplitIndex" extends="java.lang.Object"
  69289. abstract="false"
  69290. static="true" final="false" visibility="public"
  69291. deprecated="not deprecated">
  69292. <constructor name="JobSplit.TaskSplitIndex"
  69293. static="false" final="false" visibility="public"
  69294. deprecated="not deprecated">
  69295. </constructor>
  69296. <constructor name="JobSplit.TaskSplitIndex" type="java.lang.String, long"
  69297. static="false" final="false" visibility="public"
  69298. deprecated="not deprecated">
  69299. </constructor>
  69300. <method name="getStartOffset" return="long"
  69301. abstract="false" native="false" synchronized="false"
  69302. static="false" final="false" visibility="public"
  69303. deprecated="not deprecated">
  69304. </method>
  69305. <method name="getSplitLocation" return="java.lang.String"
  69306. abstract="false" native="false" synchronized="false"
  69307. static="false" final="false" visibility="public"
  69308. deprecated="not deprecated">
  69309. </method>
  69310. <method name="readFields"
  69311. abstract="false" native="false" synchronized="false"
  69312. static="false" final="false" visibility="public"
  69313. deprecated="not deprecated">
  69314. <param name="in" type="java.io.DataInput"/>
  69315. <exception name="IOException" type="java.io.IOException"/>
  69316. </method>
  69317. <method name="write"
  69318. abstract="false" native="false" synchronized="false"
  69319. static="false" final="false" visibility="public"
  69320. deprecated="not deprecated">
  69321. <param name="out" type="java.io.DataOutput"/>
  69322. <exception name="IOException" type="java.io.IOException"/>
  69323. </method>
  69324. <doc>
  69325. <![CDATA[This represents the meta information about the task split that the
  69326. task gets]]>
  69327. </doc>
  69328. </class>
  69329. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  69330. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  69331. <class name="JobSplit.TaskSplitMetaInfo" extends="java.lang.Object"
  69332. abstract="false"
  69333. static="true" final="false" visibility="public"
  69334. deprecated="not deprecated">
  69335. <constructor name="JobSplit.TaskSplitMetaInfo"
  69336. static="false" final="false" visibility="public"
  69337. deprecated="not deprecated">
  69338. </constructor>
  69339. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex, java.lang.String[], long"
  69340. static="false" final="false" visibility="public"
  69341. deprecated="not deprecated">
  69342. </constructor>
  69343. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  69344. static="false" final="false" visibility="public"
  69345. deprecated="not deprecated">
  69346. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69347. <exception name="IOException" type="java.io.IOException"/>
  69348. </constructor>
  69349. <constructor name="JobSplit.TaskSplitMetaInfo" type="java.lang.String[], long, long"
  69350. static="false" final="false" visibility="public"
  69351. deprecated="not deprecated">
  69352. </constructor>
  69353. <method name="getSplitIndex" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex"
  69354. abstract="false" native="false" synchronized="false"
  69355. static="false" final="false" visibility="public"
  69356. deprecated="not deprecated">
  69357. </method>
  69358. <method name="getSplitLocation" return="java.lang.String"
  69359. abstract="false" native="false" synchronized="false"
  69360. static="false" final="false" visibility="public"
  69361. deprecated="not deprecated">
  69362. </method>
  69363. <method name="getInputDataLength" return="long"
  69364. abstract="false" native="false" synchronized="false"
  69365. static="false" final="false" visibility="public"
  69366. deprecated="not deprecated">
  69367. </method>
  69368. <method name="getLocations" return="java.lang.String[]"
  69369. abstract="false" native="false" synchronized="false"
  69370. static="false" final="false" visibility="public"
  69371. deprecated="not deprecated">
  69372. </method>
  69373. <method name="getStartOffset" return="long"
  69374. abstract="false" native="false" synchronized="false"
  69375. static="false" final="false" visibility="public"
  69376. deprecated="not deprecated">
  69377. </method>
  69378. <doc>
  69379. <![CDATA[This represents the meta information about the task split that the
  69380. JobTracker creates]]>
  69381. </doc>
  69382. </class>
  69383. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  69384. <!-- start class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  69385. <class name="JobSplitWriter" extends="java.lang.Object"
  69386. abstract="false"
  69387. static="false" final="false" visibility="public"
  69388. deprecated="not deprecated">
  69389. <constructor name="JobSplitWriter"
  69390. static="false" final="false" visibility="public"
  69391. deprecated="not deprecated">
  69392. </constructor>
  69393. <method name="createSplitFiles"
  69394. abstract="false" native="false" synchronized="false"
  69395. static="true" final="false" visibility="public"
  69396. deprecated="not deprecated">
  69397. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  69398. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69399. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  69400. <param name="splits" type="java.util.List"/>
  69401. <exception name="IOException" type="java.io.IOException"/>
  69402. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69403. </method>
  69404. <method name="createSplitFiles"
  69405. abstract="false" native="false" synchronized="false"
  69406. static="true" final="false" visibility="public"
  69407. deprecated="not deprecated">
  69408. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  69409. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69410. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  69411. <param name="splits" type="org.apache.hadoop.mapreduce.InputSplit[]"/>
  69412. <exception name="IOException" type="java.io.IOException"/>
  69413. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69414. </method>
  69415. <method name="createSplitFiles"
  69416. abstract="false" native="false" synchronized="false"
  69417. static="true" final="false" visibility="public"
  69418. deprecated="not deprecated">
  69419. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  69420. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69421. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  69422. <param name="splits" type="org.apache.hadoop.mapred.InputSplit[]"/>
  69423. <exception name="IOException" type="java.io.IOException"/>
  69424. </method>
  69425. <doc>
  69426. <![CDATA[The class that is used by the Job clients to write splits (both the meta
  69427. and the raw bytes parts)]]>
  69428. </doc>
  69429. </class>
  69430. <!-- end class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  69431. <!-- start class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  69432. <class name="SplitMetaInfoReader" extends="java.lang.Object"
  69433. abstract="false"
  69434. static="false" final="false" visibility="public"
  69435. deprecated="not deprecated">
  69436. <constructor name="SplitMetaInfoReader"
  69437. static="false" final="false" visibility="public"
  69438. deprecated="not deprecated">
  69439. </constructor>
  69440. <method name="readSplitMetaInfo" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo[]"
  69441. abstract="false" native="false" synchronized="false"
  69442. static="true" final="false" visibility="public"
  69443. deprecated="not deprecated">
  69444. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  69445. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  69446. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69447. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  69448. <exception name="IOException" type="java.io.IOException"/>
  69449. </method>
  69450. <doc>
  69451. <![CDATA[A (internal) utility that reads the split meta info and creates
  69452. split meta info objects]]>
  69453. </doc>
  69454. </class>
  69455. <!-- end class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  69456. </package>
  69457. <package name="org.apache.hadoop.tools">
  69458. <!-- start class org.apache.hadoop.tools.DistCh -->
  69459. <class name="DistCh" extends="org.apache.hadoop.tools.DistTool"
  69460. abstract="false"
  69461. static="false" final="false" visibility="public"
  69462. deprecated="not deprecated">
  69463. <method name="run" return="int"
  69464. abstract="false" native="false" synchronized="false"
  69465. static="false" final="false" visibility="public"
  69466. deprecated="not deprecated">
  69467. <param name="args" type="java.lang.String[]"/>
  69468. <exception name="Exception" type="java.lang.Exception"/>
  69469. <doc>
  69470. <![CDATA[This is the main driver for recursively changing files properties.]]>
  69471. </doc>
  69472. </method>
  69473. <method name="main"
  69474. abstract="false" native="false" synchronized="false"
  69475. static="true" final="false" visibility="public"
  69476. deprecated="not deprecated">
  69477. <param name="args" type="java.lang.String[]"/>
  69478. <exception name="Exception" type="java.lang.Exception"/>
  69479. </method>
  69480. <doc>
  69481. <![CDATA[A Map-reduce program to recursively change files properties
  69482. such as owner, group and permission.]]>
  69483. </doc>
  69484. </class>
  69485. <!-- end class org.apache.hadoop.tools.DistCh -->
  69486. <!-- start class org.apache.hadoop.tools.DistCp -->
  69487. <class name="DistCp" extends="java.lang.Object"
  69488. abstract="false"
  69489. static="false" final="false" visibility="public"
  69490. deprecated="not deprecated">
  69491. <implements name="org.apache.hadoop.util.Tool"/>
  69492. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  69493. static="false" final="false" visibility="public"
  69494. deprecated="not deprecated">
  69495. </constructor>
  69496. <method name="setConf"
  69497. abstract="false" native="false" synchronized="false"
  69498. static="false" final="false" visibility="public"
  69499. deprecated="not deprecated">
  69500. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69501. </method>
  69502. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  69503. abstract="false" native="false" synchronized="false"
  69504. static="false" final="false" visibility="public"
  69505. deprecated="not deprecated">
  69506. </method>
  69507. <method name="copy"
  69508. abstract="false" native="false" synchronized="false"
  69509. static="true" final="false" visibility="public"
  69510. deprecated="not deprecated">
  69511. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69512. <param name="srcPath" type="java.lang.String"/>
  69513. <param name="destPath" type="java.lang.String"/>
  69514. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  69515. <param name="srcAsList" type="boolean"/>
  69516. <param name="ignoreReadFailures" type="boolean"/>
  69517. <exception name="IOException" type="java.io.IOException"/>
  69518. </method>
  69519. <method name="run" return="int"
  69520. abstract="false" native="false" synchronized="false"
  69521. static="false" final="false" visibility="public"
  69522. deprecated="not deprecated">
  69523. <param name="args" type="java.lang.String[]"/>
  69524. <doc>
  69525. <![CDATA[This is the main driver for recursively copying directories
  69526. across file systems. It takes at least two cmdline parameters. A source
  69527. URL and a destination URL. It then essentially does an "ls -lR" on the
  69528. source URL, and writes the output in a round-robin manner to all the map
  69529. input files. The mapper actually copies the files allotted to it. The
  69530. reduce is empty.]]>
  69531. </doc>
  69532. </method>
  69533. <method name="main"
  69534. abstract="false" native="false" synchronized="false"
  69535. static="true" final="false" visibility="public"
  69536. deprecated="not deprecated">
  69537. <param name="args" type="java.lang.String[]"/>
  69538. <exception name="Exception" type="java.lang.Exception"/>
  69539. </method>
  69540. <method name="getRandomId" return="java.lang.String"
  69541. abstract="false" native="false" synchronized="false"
  69542. static="true" final="false" visibility="public"
  69543. deprecated="not deprecated">
  69544. </method>
  69545. <field name="LOG" type="org.apache.commons.logging.Log"
  69546. transient="false" volatile="false"
  69547. static="true" final="true" visibility="public"
  69548. deprecated="not deprecated">
  69549. </field>
  69550. <doc>
  69551. <![CDATA[A Map-reduce program to recursively copy directories between
  69552. different file-systems.]]>
  69553. </doc>
  69554. </class>
  69555. <!-- end class org.apache.hadoop.tools.DistCp -->
  69556. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  69557. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  69558. abstract="false"
  69559. static="true" final="false" visibility="public"
  69560. deprecated="not deprecated">
  69561. <field name="ERROR_CODE" type="int"
  69562. transient="false" volatile="false"
  69563. static="true" final="true" visibility="public"
  69564. deprecated="not deprecated">
  69565. <doc>
  69566. <![CDATA[Error code for this exception]]>
  69567. </doc>
  69568. </field>
  69569. <doc>
  69570. <![CDATA[An exception class for duplicated source files.]]>
  69571. </doc>
  69572. </class>
  69573. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  69574. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  69575. <class name="HadoopArchives" extends="java.lang.Object"
  69576. abstract="false"
  69577. static="false" final="false" visibility="public"
  69578. deprecated="not deprecated">
  69579. <implements name="org.apache.hadoop.util.Tool"/>
  69580. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  69581. static="false" final="false" visibility="public"
  69582. deprecated="not deprecated">
  69583. </constructor>
  69584. <method name="setConf"
  69585. abstract="false" native="false" synchronized="false"
  69586. static="false" final="false" visibility="public"
  69587. deprecated="not deprecated">
  69588. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69589. </method>
  69590. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  69591. abstract="false" native="false" synchronized="false"
  69592. static="false" final="false" visibility="public"
  69593. deprecated="not deprecated">
  69594. </method>
  69595. <method name="run" return="int"
  69596. abstract="false" native="false" synchronized="false"
  69597. static="false" final="false" visibility="public"
  69598. deprecated="not deprecated">
  69599. <param name="args" type="java.lang.String[]"/>
  69600. <exception name="Exception" type="java.lang.Exception"/>
  69601. <doc>
  69602. <![CDATA[the main driver for creating the archives
  69603. it takes at least three command line parameters. The parent path,
  69604. The src and the dest. It does an lsr on the source paths.
  69605. The mapper created archuves and the reducer creates
  69606. the archive index.]]>
  69607. </doc>
  69608. </method>
  69609. <method name="main"
  69610. abstract="false" native="false" synchronized="false"
  69611. static="true" final="false" visibility="public"
  69612. deprecated="not deprecated">
  69613. <param name="args" type="java.lang.String[]"/>
  69614. <doc>
  69615. <![CDATA[the main functions]]>
  69616. </doc>
  69617. </method>
  69618. <field name="VERSION" type="int"
  69619. transient="false" volatile="false"
  69620. static="true" final="true" visibility="public"
  69621. deprecated="not deprecated">
  69622. </field>
  69623. <doc>
  69624. <![CDATA[a archive creation utility.
  69625. This class provides methods that can be used
  69626. to create hadoop archives. For understanding of
  69627. Hadoop archives look at {@link HarFileSystem}.]]>
  69628. </doc>
  69629. </class>
  69630. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  69631. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  69632. <class name="Logalyzer" extends="java.lang.Object"
  69633. abstract="false"
  69634. static="false" final="false" visibility="public"
  69635. deprecated="not deprecated">
  69636. <constructor name="Logalyzer"
  69637. static="false" final="false" visibility="public"
  69638. deprecated="not deprecated">
  69639. </constructor>
  69640. <method name="doArchive"
  69641. abstract="false" native="false" synchronized="false"
  69642. static="false" final="false" visibility="public"
  69643. deprecated="not deprecated">
  69644. <param name="logListURI" type="java.lang.String"/>
  69645. <param name="archiveDirectory" type="java.lang.String"/>
  69646. <exception name="IOException" type="java.io.IOException"/>
  69647. <doc>
  69648. <![CDATA[doArchive: Workhorse function to archive log-files.
  69649. @param logListURI : The uri which will serve list of log-files to archive.
  69650. @param archiveDirectory : The directory to store archived logfiles.
  69651. @throws IOException]]>
  69652. </doc>
  69653. </method>
  69654. <method name="doAnalyze"
  69655. abstract="false" native="false" synchronized="false"
  69656. static="false" final="false" visibility="public"
  69657. deprecated="not deprecated">
  69658. <param name="inputFilesDirectory" type="java.lang.String"/>
  69659. <param name="outputDirectory" type="java.lang.String"/>
  69660. <param name="grepPattern" type="java.lang.String"/>
  69661. <param name="sortColumns" type="java.lang.String"/>
  69662. <param name="columnSeparator" type="java.lang.String"/>
  69663. <exception name="IOException" type="java.io.IOException"/>
  69664. <doc>
  69665. <![CDATA[doAnalyze:
  69666. @param inputFilesDirectory : Directory containing the files to be analyzed.
  69667. @param outputDirectory : Directory to store analysis (output).
  69668. @param grepPattern : Pattern to *grep* for.
  69669. @param sortColumns : Sort specification for output.
  69670. @param columnSeparator : Column separator.
  69671. @throws IOException]]>
  69672. </doc>
  69673. </method>
  69674. <method name="main"
  69675. abstract="false" native="false" synchronized="false"
  69676. static="true" final="false" visibility="public"
  69677. deprecated="not deprecated">
  69678. <param name="args" type="java.lang.String[]"/>
  69679. </method>
  69680. <doc>
  69681. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  69682. <p>
  69683. This tool supports archiving and anaylzing (sort/grep) of log-files.
  69684. It takes as input
  69685. a) Input uri which will serve uris of the logs to be archived.
  69686. b) Output directory (not mandatory).
  69687. b) Directory on dfs to archive the logs.
  69688. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  69689. Usage:
  69690. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  69691. <p>]]>
  69692. </doc>
  69693. </class>
  69694. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  69695. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  69696. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  69697. abstract="false"
  69698. static="true" final="false" visibility="public"
  69699. deprecated="not deprecated">
  69700. <implements name="org.apache.hadoop.conf.Configurable"/>
  69701. <constructor name="Logalyzer.LogComparator"
  69702. static="false" final="false" visibility="public"
  69703. deprecated="not deprecated">
  69704. </constructor>
  69705. <method name="setConf"
  69706. abstract="false" native="false" synchronized="false"
  69707. static="false" final="false" visibility="public"
  69708. deprecated="not deprecated">
  69709. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69710. </method>
  69711. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  69712. abstract="false" native="false" synchronized="false"
  69713. static="false" final="false" visibility="public"
  69714. deprecated="not deprecated">
  69715. </method>
  69716. <method name="compare" return="int"
  69717. abstract="false" native="false" synchronized="false"
  69718. static="false" final="false" visibility="public"
  69719. deprecated="not deprecated">
  69720. <param name="b1" type="byte[]"/>
  69721. <param name="s1" type="int"/>
  69722. <param name="l1" type="int"/>
  69723. <param name="b2" type="byte[]"/>
  69724. <param name="s2" type="int"/>
  69725. <param name="l2" type="int"/>
  69726. </method>
  69727. <doc>
  69728. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  69729. </doc>
  69730. </class>
  69731. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  69732. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  69733. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  69734. abstract="false"
  69735. static="true" final="false" visibility="public"
  69736. deprecated="not deprecated">
  69737. <implements name="org.apache.hadoop.mapred.Mapper"/>
  69738. <constructor name="Logalyzer.LogRegexMapper"
  69739. static="false" final="false" visibility="public"
  69740. deprecated="not deprecated">
  69741. </constructor>
  69742. <method name="configure"
  69743. abstract="false" native="false" synchronized="false"
  69744. static="false" final="false" visibility="public"
  69745. deprecated="not deprecated">
  69746. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  69747. </method>
  69748. <method name="map"
  69749. abstract="false" native="false" synchronized="false"
  69750. static="false" final="false" visibility="public"
  69751. deprecated="not deprecated">
  69752. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  69753. <param name="value" type="org.apache.hadoop.io.Text"/>
  69754. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  69755. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  69756. <exception name="IOException" type="java.io.IOException"/>
  69757. </method>
  69758. <doc>
  69759. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  69760. </doc>
  69761. </class>
  69762. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  69763. </package>
  69764. <package name="org.apache.hadoop.tools.rumen">
  69765. <!-- start class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  69766. <class name="AbstractClusterStory" extends="java.lang.Object"
  69767. abstract="true"
  69768. static="false" final="false" visibility="public"
  69769. deprecated="not deprecated">
  69770. <implements name="org.apache.hadoop.tools.rumen.ClusterStory"/>
  69771. <constructor name="AbstractClusterStory"
  69772. static="false" final="false" visibility="public"
  69773. deprecated="not deprecated">
  69774. </constructor>
  69775. <method name="getMachines" return="java.util.Set"
  69776. abstract="false" native="false" synchronized="false"
  69777. static="false" final="false" visibility="public"
  69778. deprecated="not deprecated">
  69779. </method>
  69780. <method name="getRacks" return="java.util.Set"
  69781. abstract="false" native="false" synchronized="true"
  69782. static="false" final="false" visibility="public"
  69783. deprecated="not deprecated">
  69784. </method>
  69785. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  69786. abstract="false" native="false" synchronized="true"
  69787. static="false" final="false" visibility="public"
  69788. deprecated="not deprecated">
  69789. <param name="expected" type="int"/>
  69790. <param name="random" type="java.util.Random"/>
  69791. </method>
  69792. <method name="buildMachineNodeMap"
  69793. abstract="false" native="false" synchronized="true"
  69794. static="false" final="false" visibility="protected"
  69795. deprecated="not deprecated">
  69796. </method>
  69797. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  69798. abstract="false" native="false" synchronized="false"
  69799. static="false" final="false" visibility="public"
  69800. deprecated="not deprecated">
  69801. <param name="name" type="java.lang.String"/>
  69802. </method>
  69803. <method name="distance" return="int"
  69804. abstract="false" native="false" synchronized="false"
  69805. static="false" final="false" visibility="public"
  69806. deprecated="not deprecated">
  69807. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  69808. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  69809. </method>
  69810. <method name="buildRackNodeMap"
  69811. abstract="false" native="false" synchronized="true"
  69812. static="false" final="false" visibility="protected"
  69813. deprecated="not deprecated">
  69814. </method>
  69815. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  69816. abstract="false" native="false" synchronized="false"
  69817. static="false" final="false" visibility="public"
  69818. deprecated="not deprecated">
  69819. <param name="name" type="java.lang.String"/>
  69820. </method>
  69821. <method name="getMaximumDistance" return="int"
  69822. abstract="false" native="false" synchronized="false"
  69823. static="false" final="false" visibility="public"
  69824. deprecated="not deprecated">
  69825. </method>
  69826. <method name="parseTopologyTree"
  69827. abstract="false" native="false" synchronized="true"
  69828. static="false" final="false" visibility="protected"
  69829. deprecated="not deprecated">
  69830. </method>
  69831. <field name="machineNodes" type="java.util.Set"
  69832. transient="false" volatile="false"
  69833. static="false" final="false" visibility="protected"
  69834. deprecated="not deprecated">
  69835. </field>
  69836. <field name="rackNodes" type="java.util.Set"
  69837. transient="false" volatile="false"
  69838. static="false" final="false" visibility="protected"
  69839. deprecated="not deprecated">
  69840. </field>
  69841. <field name="mNodesFlattened" type="org.apache.hadoop.tools.rumen.MachineNode[]"
  69842. transient="false" volatile="false"
  69843. static="false" final="false" visibility="protected"
  69844. deprecated="not deprecated">
  69845. </field>
  69846. <field name="mNodeMap" type="java.util.Map"
  69847. transient="false" volatile="false"
  69848. static="false" final="false" visibility="protected"
  69849. deprecated="not deprecated">
  69850. </field>
  69851. <field name="rNodeMap" type="java.util.Map"
  69852. transient="false" volatile="false"
  69853. static="false" final="false" visibility="protected"
  69854. deprecated="not deprecated">
  69855. </field>
  69856. <field name="maximumDistance" type="int"
  69857. transient="false" volatile="false"
  69858. static="false" final="false" visibility="protected"
  69859. deprecated="not deprecated">
  69860. </field>
  69861. <doc>
  69862. <![CDATA[{@link AbstractClusterStory} provides a partial implementation of
  69863. {@link ClusterStory} by parsing the topology tree.]]>
  69864. </doc>
  69865. </class>
  69866. <!-- end class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  69867. <!-- start class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  69868. <class name="CDFPiecewiseLinearRandomGenerator" extends="org.apache.hadoop.tools.rumen.CDFRandomGenerator"
  69869. abstract="false"
  69870. static="false" final="false" visibility="public"
  69871. deprecated="not deprecated">
  69872. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  69873. static="false" final="false" visibility="public"
  69874. deprecated="not deprecated">
  69875. <doc>
  69876. <![CDATA[@param cdf
  69877. builds a CDFRandomValue engine around this
  69878. {@link LoggedDiscreteCDF}, with a defaultly seeded RNG]]>
  69879. </doc>
  69880. </constructor>
  69881. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF, long"
  69882. static="false" final="false" visibility="public"
  69883. deprecated="not deprecated">
  69884. <doc>
  69885. <![CDATA[@param cdf
  69886. builds a CDFRandomValue engine around this
  69887. {@link LoggedDiscreteCDF}, with an explicitly seeded RNG
  69888. @param seed
  69889. the random number generator seed]]>
  69890. </doc>
  69891. </constructor>
  69892. <method name="valueAt" return="long"
  69893. abstract="false" native="false" synchronized="false"
  69894. static="false" final="false" visibility="public"
  69895. deprecated="not deprecated">
  69896. <param name="probability" type="double"/>
  69897. <doc>
  69898. <![CDATA[TODO This code assumes that the empirical minimum resp. maximum is the
  69899. epistomological minimum resp. maximum. This is probably okay for the
  69900. minimum, because that likely represents a task where everything went well,
  69901. but for the maximum we may want to develop a way of extrapolating past the
  69902. maximum.]]>
  69903. </doc>
  69904. </method>
  69905. </class>
  69906. <!-- end class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  69907. <!-- start class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  69908. <class name="CDFRandomGenerator" extends="java.lang.Object"
  69909. abstract="true"
  69910. static="false" final="false" visibility="public"
  69911. deprecated="not deprecated">
  69912. <method name="initializeTables"
  69913. abstract="false" native="false" synchronized="false"
  69914. static="false" final="true" visibility="protected"
  69915. deprecated="not deprecated">
  69916. <param name="cdf" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"/>
  69917. </method>
  69918. <method name="floorIndex" return="int"
  69919. abstract="false" native="false" synchronized="false"
  69920. static="false" final="false" visibility="protected"
  69921. deprecated="not deprecated">
  69922. <param name="probe" type="double"/>
  69923. </method>
  69924. <method name="getRankingAt" return="double"
  69925. abstract="false" native="false" synchronized="false"
  69926. static="false" final="false" visibility="protected"
  69927. deprecated="not deprecated">
  69928. <param name="index" type="int"/>
  69929. </method>
  69930. <method name="getDatumAt" return="long"
  69931. abstract="false" native="false" synchronized="false"
  69932. static="false" final="false" visibility="protected"
  69933. deprecated="not deprecated">
  69934. <param name="index" type="int"/>
  69935. </method>
  69936. <method name="randomValue" return="long"
  69937. abstract="false" native="false" synchronized="false"
  69938. static="false" final="false" visibility="public"
  69939. deprecated="not deprecated">
  69940. </method>
  69941. <method name="valueAt" return="long"
  69942. abstract="true" native="false" synchronized="false"
  69943. static="false" final="false" visibility="public"
  69944. deprecated="not deprecated">
  69945. <param name="probability" type="double"/>
  69946. </method>
  69947. <doc>
  69948. <![CDATA[An instance of this class generates random values that confirm to the
  69949. embedded {@link LoggedDiscreteCDF} . The discrete CDF is a pointwise
  69950. approximation of the "real" CDF. We therefore have a choice of interpolation
  69951. rules.
  69952. A concrete subclass of this abstract class will implement valueAt(double)
  69953. using a class-dependent interpolation rule.]]>
  69954. </doc>
  69955. </class>
  69956. <!-- end class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  69957. <!-- start interface org.apache.hadoop.tools.rumen.ClusterStory -->
  69958. <interface name="ClusterStory" abstract="true"
  69959. static="false" final="false" visibility="public"
  69960. deprecated="not deprecated">
  69961. <method name="getMachines" return="java.util.Set"
  69962. abstract="false" native="false" synchronized="false"
  69963. static="false" final="false" visibility="public"
  69964. deprecated="not deprecated">
  69965. <doc>
  69966. <![CDATA[Get all machines of the cluster.
  69967. @return A read-only set that contains all machines of the cluster.]]>
  69968. </doc>
  69969. </method>
  69970. <method name="getRacks" return="java.util.Set"
  69971. abstract="false" native="false" synchronized="false"
  69972. static="false" final="false" visibility="public"
  69973. deprecated="not deprecated">
  69974. <doc>
  69975. <![CDATA[Get all racks of the cluster.
  69976. @return A read-only set that contains all racks of the cluster.]]>
  69977. </doc>
  69978. </method>
  69979. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  69980. abstract="false" native="false" synchronized="false"
  69981. static="false" final="false" visibility="public"
  69982. deprecated="not deprecated">
  69983. <doc>
  69984. <![CDATA[Get the cluster topology tree.
  69985. @return The root node of the cluster topology tree.]]>
  69986. </doc>
  69987. </method>
  69988. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  69989. abstract="false" native="false" synchronized="false"
  69990. static="false" final="false" visibility="public"
  69991. deprecated="not deprecated">
  69992. <param name="expected" type="int"/>
  69993. <param name="random" type="java.util.Random"/>
  69994. <doc>
  69995. <![CDATA[Select a random set of machines.
  69996. @param expected The expected sample size.
  69997. @param random Random number generator to use.
  69998. @return An array of up to expected number of {@link MachineNode}s.]]>
  69999. </doc>
  70000. </method>
  70001. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  70002. abstract="false" native="false" synchronized="false"
  70003. static="false" final="false" visibility="public"
  70004. deprecated="not deprecated">
  70005. <param name="name" type="java.lang.String"/>
  70006. <doc>
  70007. <![CDATA[Get {@link MachineNode} by its host name.
  70008. @return The {@line MachineNode} with the same name. Or null if not found.]]>
  70009. </doc>
  70010. </method>
  70011. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  70012. abstract="false" native="false" synchronized="false"
  70013. static="false" final="false" visibility="public"
  70014. deprecated="not deprecated">
  70015. <param name="name" type="java.lang.String"/>
  70016. <doc>
  70017. <![CDATA[Get {@link RackNode} by its name.
  70018. @return The {@line RackNode} with the same name. Or null if not found.]]>
  70019. </doc>
  70020. </method>
  70021. <method name="distance" return="int"
  70022. abstract="false" native="false" synchronized="false"
  70023. static="false" final="false" visibility="public"
  70024. deprecated="not deprecated">
  70025. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  70026. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  70027. <doc>
  70028. <![CDATA[Determine the distance between two {@link Node}s. Currently, the distance
  70029. is loosely defined as the length of the longer path for either a or b to
  70030. reach their common ancestor.
  70031. @param a
  70032. @param b
  70033. @return The distance between {@link Node} a and {@link Node} b.]]>
  70034. </doc>
  70035. </method>
  70036. <method name="getMaximumDistance" return="int"
  70037. abstract="false" native="false" synchronized="false"
  70038. static="false" final="false" visibility="public"
  70039. deprecated="not deprecated">
  70040. <doc>
  70041. <![CDATA[Get the maximum distance possible between any two nodes.
  70042. @return the maximum distance possible between any two nodes.]]>
  70043. </doc>
  70044. </method>
  70045. <doc>
  70046. <![CDATA[{@link ClusterStory} represents all configurations of a MapReduce cluster,
  70047. including nodes, network topology, and slot configurations.]]>
  70048. </doc>
  70049. </interface>
  70050. <!-- end interface org.apache.hadoop.tools.rumen.ClusterStory -->
  70051. <!-- start class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  70052. <class name="ClusterTopologyReader" extends="java.lang.Object"
  70053. abstract="false"
  70054. static="false" final="false" visibility="public"
  70055. deprecated="not deprecated">
  70056. <constructor name="ClusterTopologyReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  70057. static="false" final="false" visibility="public"
  70058. deprecated="not deprecated">
  70059. <exception name="IOException" type="java.io.IOException"/>
  70060. <doc>
  70061. <![CDATA[Constructor.
  70062. @param path
  70063. Path to the JSON-encoded topology file, possibly compressed.
  70064. @param conf
  70065. @throws IOException]]>
  70066. </doc>
  70067. </constructor>
  70068. <constructor name="ClusterTopologyReader" type="java.io.InputStream"
  70069. static="false" final="false" visibility="public"
  70070. deprecated="not deprecated">
  70071. <exception name="IOException" type="java.io.IOException"/>
  70072. <doc>
  70073. <![CDATA[Constructor.
  70074. @param input
  70075. The input stream for the JSON-encoded topology data.]]>
  70076. </doc>
  70077. </constructor>
  70078. <method name="get" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  70079. abstract="false" native="false" synchronized="false"
  70080. static="false" final="false" visibility="public"
  70081. deprecated="not deprecated">
  70082. <doc>
  70083. <![CDATA[Get the {@link LoggedNetworkTopology} object.
  70084. @return The {@link LoggedNetworkTopology} object parsed from the input.]]>
  70085. </doc>
  70086. </method>
  70087. <doc>
  70088. <![CDATA[Reading JSON-encoded cluster topology and produce the parsed
  70089. {@link LoggedNetworkTopology} object.]]>
  70090. </doc>
  70091. </class>
  70092. <!-- end class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  70093. <!-- start interface org.apache.hadoop.tools.rumen.DeepCompare -->
  70094. <interface name="DeepCompare" abstract="true"
  70095. static="false" final="false" visibility="public"
  70096. deprecated="not deprecated">
  70097. <method name="deepCompare"
  70098. abstract="false" native="false" synchronized="false"
  70099. static="false" final="false" visibility="public"
  70100. deprecated="not deprecated">
  70101. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  70102. <param name="myLocation" type="org.apache.hadoop.tools.rumen.TreePath"/>
  70103. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  70104. <doc>
  70105. <![CDATA[@param other
  70106. the other comparand that's being compared to me
  70107. @param myLocation
  70108. the path that got to me. In the root, myLocation is null. To
  70109. process the scalar {@code foo} field of the root we will make a
  70110. recursive call with a {@link TreePath} whose {@code fieldName} is
  70111. {@code "bar"} and whose {@code index} is -1 and whose {@code
  70112. parent} is {@code null}. To process the plural {@code bar} field
  70113. of the root we will make a recursive call with a {@link TreePath}
  70114. whose fieldName is {@code "foo"} and whose {@code index} is -1 and
  70115. whose {@code parent} is also {@code null}.
  70116. @throws DeepInequalityException]]>
  70117. </doc>
  70118. </method>
  70119. <doc>
  70120. <![CDATA[Classes that implement this interface can deep-compare [for equality only,
  70121. not order] with another instance. They do a deep compare. If there is any
  70122. semantically significant difference, an implementer throws an Exception to be
  70123. thrown with a chain of causes describing the chain of field references and
  70124. indices that get you to the miscompared point.]]>
  70125. </doc>
  70126. </interface>
  70127. <!-- end interface org.apache.hadoop.tools.rumen.DeepCompare -->
  70128. <!-- start class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  70129. <class name="DeepInequalityException" extends="java.lang.Exception"
  70130. abstract="false"
  70131. static="false" final="false" visibility="public"
  70132. deprecated="not deprecated">
  70133. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath, java.lang.Throwable"
  70134. static="false" final="false" visibility="public"
  70135. deprecated="not deprecated">
  70136. <doc>
  70137. <![CDATA[@param message
  70138. an exception message
  70139. @param path
  70140. the path that gets from the root to the inequality
  70141. This is the constructor that I intend to have used for this
  70142. exception.]]>
  70143. </doc>
  70144. </constructor>
  70145. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath"
  70146. static="false" final="false" visibility="public"
  70147. deprecated="not deprecated">
  70148. <doc>
  70149. <![CDATA[@param message
  70150. an exception message
  70151. @param path
  70152. the path that gets from the root to the inequality
  70153. This is the constructor that I intend to have used for this
  70154. exception.]]>
  70155. </doc>
  70156. </constructor>
  70157. <doc>
  70158. <![CDATA[We use this exception class in the unit test, and we do a deep comparison
  70159. when we run the]]>
  70160. </doc>
  70161. </class>
  70162. <!-- end class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  70163. <!-- start class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  70164. <class name="DefaultInputDemuxer" extends="java.lang.Object"
  70165. abstract="false"
  70166. static="false" final="false" visibility="public"
  70167. deprecated="not deprecated">
  70168. <implements name="org.apache.hadoop.tools.rumen.InputDemuxer"/>
  70169. <constructor name="DefaultInputDemuxer"
  70170. static="false" final="false" visibility="public"
  70171. deprecated="not deprecated">
  70172. </constructor>
  70173. <method name="bindTo"
  70174. abstract="false" native="false" synchronized="false"
  70175. static="false" final="false" visibility="public"
  70176. deprecated="not deprecated">
  70177. <param name="path" type="org.apache.hadoop.fs.Path"/>
  70178. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70179. <exception name="IOException" type="java.io.IOException"/>
  70180. </method>
  70181. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  70182. abstract="false" native="false" synchronized="false"
  70183. static="false" final="false" visibility="public"
  70184. deprecated="not deprecated">
  70185. <exception name="IOException" type="java.io.IOException"/>
  70186. </method>
  70187. <method name="close"
  70188. abstract="false" native="false" synchronized="false"
  70189. static="false" final="false" visibility="public"
  70190. deprecated="not deprecated">
  70191. <exception name="IOException" type="java.io.IOException"/>
  70192. </method>
  70193. <doc>
  70194. <![CDATA[{@link DefaultInputDemuxer} acts as a pass-through demuxer. It just opens
  70195. each file and returns back the input stream. If the input is compressed, it
  70196. would return a decompression stream.]]>
  70197. </doc>
  70198. </class>
  70199. <!-- end class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  70200. <!-- start class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  70201. <class name="DefaultOutputter" extends="java.lang.Object"
  70202. abstract="false"
  70203. static="false" final="false" visibility="public"
  70204. deprecated="not deprecated">
  70205. <implements name="org.apache.hadoop.tools.rumen.Outputter"/>
  70206. <constructor name="DefaultOutputter"
  70207. static="false" final="false" visibility="public"
  70208. deprecated="not deprecated">
  70209. </constructor>
  70210. <method name="init"
  70211. abstract="false" native="false" synchronized="false"
  70212. static="false" final="false" visibility="public"
  70213. deprecated="not deprecated">
  70214. <param name="path" type="org.apache.hadoop.fs.Path"/>
  70215. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70216. <exception name="IOException" type="java.io.IOException"/>
  70217. </method>
  70218. <method name="output"
  70219. abstract="false" native="false" synchronized="false"
  70220. static="false" final="false" visibility="public"
  70221. deprecated="not deprecated">
  70222. <param name="object" type="java.lang.Object"/>
  70223. <exception name="IOException" type="java.io.IOException"/>
  70224. </method>
  70225. <method name="close"
  70226. abstract="false" native="false" synchronized="false"
  70227. static="false" final="false" visibility="public"
  70228. deprecated="not deprecated">
  70229. <exception name="IOException" type="java.io.IOException"/>
  70230. </method>
  70231. <doc>
  70232. <![CDATA[The default {@link Outputter} that outputs to a plain file. Compression
  70233. will be applied if the path has the right suffix.]]>
  70234. </doc>
  70235. </class>
  70236. <!-- end class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  70237. <!-- start class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  70238. <class name="DeskewedJobTraceReader" extends="java.lang.Object"
  70239. abstract="false"
  70240. static="false" final="false" visibility="public"
  70241. deprecated="not deprecated">
  70242. <implements name="java.io.Closeable"/>
  70243. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader, int, boolean"
  70244. static="false" final="false" visibility="public"
  70245. deprecated="not deprecated">
  70246. <exception name="IOException" type="java.io.IOException"/>
  70247. <doc>
  70248. <![CDATA[Constructor.
  70249. @param reader
  70250. the {@link JobTraceReader} that's being protected
  70251. @param skewBufferSize
  70252. [the number of late jobs that can preced a later out-of-order
  70253. earlier job
  70254. @throws IOException]]>
  70255. </doc>
  70256. </constructor>
  70257. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader"
  70258. static="false" final="false" visibility="public"
  70259. deprecated="not deprecated">
  70260. <exception name="IOException" type="java.io.IOException"/>
  70261. </constructor>
  70262. <method name="close"
  70263. abstract="false" native="false" synchronized="false"
  70264. static="false" final="false" visibility="public"
  70265. deprecated="not deprecated">
  70266. <exception name="IOException" type="java.io.IOException"/>
  70267. </method>
  70268. </class>
  70269. <!-- end class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  70270. <!-- start class org.apache.hadoop.tools.rumen.EventType -->
  70271. <class name="EventType" extends="java.lang.Enum"
  70272. abstract="false"
  70273. static="false" final="true" visibility="public"
  70274. deprecated="not deprecated">
  70275. <method name="values" return="org.apache.hadoop.tools.rumen.EventType[]"
  70276. abstract="false" native="false" synchronized="false"
  70277. static="true" final="false" visibility="public"
  70278. deprecated="not deprecated">
  70279. </method>
  70280. <method name="valueOf" return="org.apache.hadoop.tools.rumen.EventType"
  70281. abstract="false" native="false" synchronized="false"
  70282. static="true" final="false" visibility="public"
  70283. deprecated="not deprecated">
  70284. <param name="name" type="java.lang.String"/>
  70285. </method>
  70286. <field name="JOB_SUBMITTED" type="org.apache.hadoop.tools.rumen.EventType"
  70287. transient="false" volatile="false"
  70288. static="true" final="true" visibility="public"
  70289. deprecated="not deprecated">
  70290. </field>
  70291. <field name="JOB_INITED" type="org.apache.hadoop.tools.rumen.EventType"
  70292. transient="false" volatile="false"
  70293. static="true" final="true" visibility="public"
  70294. deprecated="not deprecated">
  70295. </field>
  70296. <field name="JOB_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  70297. transient="false" volatile="false"
  70298. static="true" final="true" visibility="public"
  70299. deprecated="not deprecated">
  70300. </field>
  70301. <field name="JOB_PRIORITY_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  70302. transient="false" volatile="false"
  70303. static="true" final="true" visibility="public"
  70304. deprecated="not deprecated">
  70305. </field>
  70306. <field name="JOB_STATUS_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  70307. transient="false" volatile="false"
  70308. static="true" final="true" visibility="public"
  70309. deprecated="not deprecated">
  70310. </field>
  70311. <field name="JOB_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  70312. transient="false" volatile="false"
  70313. static="true" final="true" visibility="public"
  70314. deprecated="not deprecated">
  70315. </field>
  70316. <field name="JOB_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  70317. transient="false" volatile="false"
  70318. static="true" final="true" visibility="public"
  70319. deprecated="not deprecated">
  70320. </field>
  70321. <field name="JOB_INFO_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  70322. transient="false" volatile="false"
  70323. static="true" final="true" visibility="public"
  70324. deprecated="not deprecated">
  70325. </field>
  70326. <field name="TASK_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  70327. transient="false" volatile="false"
  70328. static="true" final="true" visibility="public"
  70329. deprecated="not deprecated">
  70330. </field>
  70331. <field name="TASK_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  70332. transient="false" volatile="false"
  70333. static="true" final="true" visibility="public"
  70334. deprecated="not deprecated">
  70335. </field>
  70336. <field name="TASK_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  70337. transient="false" volatile="false"
  70338. static="true" final="true" visibility="public"
  70339. deprecated="not deprecated">
  70340. </field>
  70341. <field name="TASK_UPDATED" type="org.apache.hadoop.tools.rumen.EventType"
  70342. transient="false" volatile="false"
  70343. static="true" final="true" visibility="public"
  70344. deprecated="not deprecated">
  70345. </field>
  70346. <field name="MAP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  70347. transient="false" volatile="false"
  70348. static="true" final="true" visibility="public"
  70349. deprecated="not deprecated">
  70350. </field>
  70351. <field name="MAP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  70352. transient="false" volatile="false"
  70353. static="true" final="true" visibility="public"
  70354. deprecated="not deprecated">
  70355. </field>
  70356. <field name="MAP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  70357. transient="false" volatile="false"
  70358. static="true" final="true" visibility="public"
  70359. deprecated="not deprecated">
  70360. </field>
  70361. <field name="MAP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  70362. transient="false" volatile="false"
  70363. static="true" final="true" visibility="public"
  70364. deprecated="not deprecated">
  70365. </field>
  70366. <field name="REDUCE_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  70367. transient="false" volatile="false"
  70368. static="true" final="true" visibility="public"
  70369. deprecated="not deprecated">
  70370. </field>
  70371. <field name="REDUCE_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  70372. transient="false" volatile="false"
  70373. static="true" final="true" visibility="public"
  70374. deprecated="not deprecated">
  70375. </field>
  70376. <field name="REDUCE_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  70377. transient="false" volatile="false"
  70378. static="true" final="true" visibility="public"
  70379. deprecated="not deprecated">
  70380. </field>
  70381. <field name="REDUCE_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  70382. transient="false" volatile="false"
  70383. static="true" final="true" visibility="public"
  70384. deprecated="not deprecated">
  70385. </field>
  70386. <field name="SETUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  70387. transient="false" volatile="false"
  70388. static="true" final="true" visibility="public"
  70389. deprecated="not deprecated">
  70390. </field>
  70391. <field name="SETUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  70392. transient="false" volatile="false"
  70393. static="true" final="true" visibility="public"
  70394. deprecated="not deprecated">
  70395. </field>
  70396. <field name="SETUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  70397. transient="false" volatile="false"
  70398. static="true" final="true" visibility="public"
  70399. deprecated="not deprecated">
  70400. </field>
  70401. <field name="SETUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  70402. transient="false" volatile="false"
  70403. static="true" final="true" visibility="public"
  70404. deprecated="not deprecated">
  70405. </field>
  70406. <field name="CLEANUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  70407. transient="false" volatile="false"
  70408. static="true" final="true" visibility="public"
  70409. deprecated="not deprecated">
  70410. </field>
  70411. <field name="CLEANUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  70412. transient="false" volatile="false"
  70413. static="true" final="true" visibility="public"
  70414. deprecated="not deprecated">
  70415. </field>
  70416. <field name="CLEANUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  70417. transient="false" volatile="false"
  70418. static="true" final="true" visibility="public"
  70419. deprecated="not deprecated">
  70420. </field>
  70421. <field name="CLEANUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  70422. transient="false" volatile="false"
  70423. static="true" final="true" visibility="public"
  70424. deprecated="not deprecated">
  70425. </field>
  70426. </class>
  70427. <!-- end class org.apache.hadoop.tools.rumen.EventType -->
  70428. <!-- start class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  70429. <class name="Hadoop20JHParser" extends="java.lang.Object"
  70430. abstract="false"
  70431. static="false" final="false" visibility="public"
  70432. deprecated="not deprecated">
  70433. <implements name="org.apache.hadoop.tools.rumen.JobHistoryParser"/>
  70434. <constructor name="Hadoop20JHParser" type="java.io.InputStream"
  70435. static="false" final="false" visibility="public"
  70436. deprecated="not deprecated">
  70437. <exception name="IOException" type="java.io.IOException"/>
  70438. </constructor>
  70439. <method name="canParse" return="boolean"
  70440. abstract="false" native="false" synchronized="false"
  70441. static="true" final="false" visibility="public"
  70442. deprecated="not deprecated">
  70443. <param name="input" type="java.io.InputStream"/>
  70444. <exception name="IOException" type="java.io.IOException"/>
  70445. <doc>
  70446. <![CDATA[Can this parser parse the input?
  70447. @param input
  70448. @return Whether this parser can parse the input.
  70449. @throws IOException
  70450. We will deem a stream to be a good 0.20 job history stream if the
  70451. first line is exactly "Meta VERSION=\"1\" ."]]>
  70452. </doc>
  70453. </method>
  70454. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  70455. abstract="false" native="false" synchronized="false"
  70456. static="false" final="false" visibility="public"
  70457. deprecated="not deprecated">
  70458. </method>
  70459. <method name="close"
  70460. abstract="false" native="false" synchronized="false"
  70461. static="false" final="false" visibility="public"
  70462. deprecated="not deprecated">
  70463. <exception name="IOException" type="java.io.IOException"/>
  70464. </method>
  70465. <doc>
  70466. <![CDATA[{@link JobHistoryParser} to parse job histories for hadoop 0.20 (META=1).]]>
  70467. </doc>
  70468. </class>
  70469. <!-- end class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  70470. <!-- start class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  70471. <class name="HadoopLogsAnalyzer" extends="org.apache.hadoop.conf.Configured"
  70472. abstract="false"
  70473. static="false" final="false" visibility="public"
  70474. deprecated="not deprecated">
  70475. <implements name="org.apache.hadoop.util.Tool"/>
  70476. <constructor name="HadoopLogsAnalyzer"
  70477. static="false" final="false" visibility="public"
  70478. deprecated="not deprecated">
  70479. </constructor>
  70480. <method name="run" return="int"
  70481. abstract="false" native="false" synchronized="false"
  70482. static="false" final="false" visibility="public"
  70483. deprecated="not deprecated">
  70484. <param name="args" type="java.lang.String[]"/>
  70485. <exception name="IOException" type="java.io.IOException"/>
  70486. </method>
  70487. <method name="main"
  70488. abstract="false" native="false" synchronized="false"
  70489. static="true" final="false" visibility="public"
  70490. deprecated="not deprecated">
  70491. <param name="args" type="java.lang.String[]"/>
  70492. <doc>
  70493. <![CDATA[@param args
  70494. Last arg is the input file. That file can be a directory, in which
  70495. case you get all the files in sorted order. We will decompress
  70496. files whose nmes end in .gz .
  70497. switches: -c collect line types.
  70498. -d debug mode
  70499. -delays print out the delays [interval between job submit time and
  70500. launch time]
  70501. -runtimes print out the job runtimes
  70502. -spreads print out the ratio of 10%ile and 90%ile, of both the
  70503. successful map task attempt run times and the the successful
  70504. reduce task attempt run times
  70505. -tasktimes prints out individual task time distributions
  70506. collects all the line types and prints the first example of each
  70507. one]]>
  70508. </doc>
  70509. </method>
  70510. <doc>
  70511. <![CDATA[This is the main class for rumen log mining functionality.
  70512. It reads a directory of job tracker logs, and computes various information
  70513. about it. See {@code usage()}, below.]]>
  70514. </doc>
  70515. </class>
  70516. <!-- end class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  70517. <!-- start interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  70518. <interface name="HistoryEvent" abstract="true"
  70519. static="false" final="false" visibility="public"
  70520. deprecated="not deprecated">
  70521. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  70522. abstract="false" native="false" synchronized="false"
  70523. static="false" final="false" visibility="public"
  70524. deprecated="not deprecated">
  70525. <doc>
  70526. <![CDATA[Return this event's type.]]>
  70527. </doc>
  70528. </method>
  70529. </interface>
  70530. <!-- end interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  70531. <!-- start interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  70532. <interface name="InputDemuxer" abstract="true"
  70533. static="false" final="false" visibility="public"
  70534. deprecated="not deprecated">
  70535. <implements name="java.io.Closeable"/>
  70536. <method name="bindTo"
  70537. abstract="false" native="false" synchronized="false"
  70538. static="false" final="false" visibility="public"
  70539. deprecated="not deprecated">
  70540. <param name="path" type="org.apache.hadoop.fs.Path"/>
  70541. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70542. <exception name="IOException" type="java.io.IOException"/>
  70543. <doc>
  70544. <![CDATA[Bind the {@link InputDemuxer} to a particular file.
  70545. @param path
  70546. The path to the find it should bind to.
  70547. @param conf
  70548. Configuration
  70549. @throws IOException
  70550. Returns true when the binding succeeds. If the file can be read
  70551. but is in the wrong format, returns false. IOException is
  70552. reserved for read errors.]]>
  70553. </doc>
  70554. </method>
  70555. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  70556. abstract="false" native="false" synchronized="false"
  70557. static="false" final="false" visibility="public"
  70558. deprecated="not deprecated">
  70559. <exception name="IOException" type="java.io.IOException"/>
  70560. <doc>
  70561. <![CDATA[Get the next <name, input> pair. The name should preserve the original job
  70562. history file or job conf file name. The input object should be closed
  70563. before calling getNext() again. The old input object would be invalid after
  70564. calling getNext() again.
  70565. @return the next <name, input> pair.]]>
  70566. </doc>
  70567. </method>
  70568. <doc>
  70569. <![CDATA[{@link InputDemuxer} dem-ultiplexes the input files into individual input
  70570. streams.]]>
  70571. </doc>
  70572. </interface>
  70573. <!-- end interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  70574. <!-- start class org.apache.hadoop.tools.rumen.JhCounter -->
  70575. <class name="JhCounter" extends="java.lang.Object"
  70576. abstract="false"
  70577. static="false" final="false" visibility="public"
  70578. deprecated="not deprecated">
  70579. <constructor name="JhCounter"
  70580. static="false" final="false" visibility="public"
  70581. deprecated="not deprecated">
  70582. </constructor>
  70583. <field name="name" type="java.lang.String"
  70584. transient="false" volatile="false"
  70585. static="false" final="false" visibility="public"
  70586. deprecated="not deprecated">
  70587. </field>
  70588. <field name="displayName" type="java.lang.String"
  70589. transient="false" volatile="false"
  70590. static="false" final="false" visibility="public"
  70591. deprecated="not deprecated">
  70592. </field>
  70593. <field name="value" type="long"
  70594. transient="false" volatile="false"
  70595. static="false" final="false" visibility="public"
  70596. deprecated="not deprecated">
  70597. </field>
  70598. </class>
  70599. <!-- end class org.apache.hadoop.tools.rumen.JhCounter -->
  70600. <!-- start class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  70601. <class name="JhCounterGroup" extends="java.lang.Object"
  70602. abstract="false"
  70603. static="false" final="false" visibility="public"
  70604. deprecated="not deprecated">
  70605. <constructor name="JhCounterGroup"
  70606. static="false" final="false" visibility="public"
  70607. deprecated="not deprecated">
  70608. </constructor>
  70609. <field name="name" type="java.lang.String"
  70610. transient="false" volatile="false"
  70611. static="false" final="false" visibility="public"
  70612. deprecated="not deprecated">
  70613. </field>
  70614. <field name="displayName" type="java.lang.String"
  70615. transient="false" volatile="false"
  70616. static="false" final="false" visibility="public"
  70617. deprecated="not deprecated">
  70618. </field>
  70619. <field name="counts" type="java.util.List"
  70620. transient="false" volatile="false"
  70621. static="false" final="false" visibility="public"
  70622. deprecated="not deprecated">
  70623. </field>
  70624. </class>
  70625. <!-- end class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  70626. <!-- start class org.apache.hadoop.tools.rumen.JhCounters -->
  70627. <class name="JhCounters" extends="java.lang.Object"
  70628. abstract="false"
  70629. static="false" final="false" visibility="public"
  70630. deprecated="not deprecated">
  70631. <field name="name" type="java.lang.String"
  70632. transient="false" volatile="false"
  70633. static="false" final="false" visibility="public"
  70634. deprecated="not deprecated">
  70635. </field>
  70636. <field name="groups" type="java.util.List"
  70637. transient="false" volatile="false"
  70638. static="false" final="false" visibility="public"
  70639. deprecated="not deprecated">
  70640. </field>
  70641. </class>
  70642. <!-- end class org.apache.hadoop.tools.rumen.JhCounters -->
  70643. <!-- start class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  70644. <class name="Job20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  70645. abstract="false"
  70646. static="false" final="false" visibility="public"
  70647. deprecated="not deprecated">
  70648. </class>
  70649. <!-- end class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  70650. <!-- start class org.apache.hadoop.tools.rumen.JobBuilder -->
  70651. <class name="JobBuilder" extends="java.lang.Object"
  70652. abstract="false"
  70653. static="false" final="false" visibility="public"
  70654. deprecated="not deprecated">
  70655. <constructor name="JobBuilder" type="java.lang.String"
  70656. static="false" final="false" visibility="public"
  70657. deprecated="not deprecated">
  70658. </constructor>
  70659. <method name="getJobID" return="java.lang.String"
  70660. abstract="false" native="false" synchronized="false"
  70661. static="false" final="false" visibility="public"
  70662. deprecated="not deprecated">
  70663. </method>
  70664. <method name="process"
  70665. abstract="false" native="false" synchronized="false"
  70666. static="false" final="false" visibility="public"
  70667. deprecated="not deprecated">
  70668. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  70669. <doc>
  70670. <![CDATA[Process one {@link HistoryEvent}
  70671. @param event
  70672. The {@link HistoryEvent} to be processed.]]>
  70673. </doc>
  70674. </method>
  70675. <method name="process"
  70676. abstract="false" native="false" synchronized="false"
  70677. static="false" final="false" visibility="public"
  70678. deprecated="not deprecated">
  70679. <param name="conf" type="java.util.Properties"/>
  70680. <doc>
  70681. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  70682. to be called once. It is okay to process a conf before, during or after the
  70683. events.
  70684. @param conf
  70685. The job conf properties to be added.]]>
  70686. </doc>
  70687. </method>
  70688. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedJob"
  70689. abstract="false" native="false" synchronized="false"
  70690. static="false" final="false" visibility="public"
  70691. deprecated="not deprecated">
  70692. <doc>
  70693. <![CDATA[Request the builder to build the final object. Once called, the
  70694. {@link JobBuilder} would accept no more events or job-conf properties.
  70695. @return Parsed {@link LoggedJob} object.]]>
  70696. </doc>
  70697. </method>
  70698. <doc>
  70699. <![CDATA[{@link JobBuilder} builds one job. It processes a sequence of
  70700. {@link HistoryEvent}s.]]>
  70701. </doc>
  70702. </class>
  70703. <!-- end class org.apache.hadoop.tools.rumen.JobBuilder -->
  70704. <!-- start class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  70705. <class name="JobConfigurationParser" extends="java.lang.Object"
  70706. abstract="false"
  70707. static="false" final="false" visibility="public"
  70708. deprecated="not deprecated">
  70709. <constructor name="JobConfigurationParser" type="java.util.List"
  70710. static="false" final="false" visibility="public"
  70711. deprecated="not deprecated">
  70712. <doc>
  70713. <![CDATA[Constructor
  70714. @param interested
  70715. properties we should extract from the job configuration xml.]]>
  70716. </doc>
  70717. </constructor>
  70718. <doc>
  70719. <![CDATA[{@link JobConfigurationParser} parses the job configuration xml file, and
  70720. extracts various framework specific properties. It parses the file using a
  70721. stream-parser and thus is more memory efficient. [This optimization may be
  70722. postponed for a future release]]]>
  70723. </doc>
  70724. </class>
  70725. <!-- end class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  70726. <!-- start class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  70727. <class name="JobConfPropertyNames" extends="java.lang.Enum"
  70728. abstract="false"
  70729. static="false" final="true" visibility="public"
  70730. deprecated="not deprecated">
  70731. <method name="values" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames[]"
  70732. abstract="false" native="false" synchronized="false"
  70733. static="true" final="false" visibility="public"
  70734. deprecated="not deprecated">
  70735. </method>
  70736. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  70737. abstract="false" native="false" synchronized="false"
  70738. static="true" final="false" visibility="public"
  70739. deprecated="not deprecated">
  70740. <param name="name" type="java.lang.String"/>
  70741. </method>
  70742. <method name="getCandidates" return="java.lang.String[]"
  70743. abstract="false" native="false" synchronized="false"
  70744. static="false" final="false" visibility="public"
  70745. deprecated="not deprecated">
  70746. </method>
  70747. <field name="QUEUE_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  70748. transient="false" volatile="false"
  70749. static="true" final="true" visibility="public"
  70750. deprecated="not deprecated">
  70751. </field>
  70752. <field name="JOB_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  70753. transient="false" volatile="false"
  70754. static="true" final="true" visibility="public"
  70755. deprecated="not deprecated">
  70756. </field>
  70757. <field name="TASK_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  70758. transient="false" volatile="false"
  70759. static="true" final="true" visibility="public"
  70760. deprecated="not deprecated">
  70761. </field>
  70762. <field name="MAP_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  70763. transient="false" volatile="false"
  70764. static="true" final="true" visibility="public"
  70765. deprecated="not deprecated">
  70766. </field>
  70767. <field name="REDUCE_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  70768. transient="false" volatile="false"
  70769. static="true" final="true" visibility="public"
  70770. deprecated="not deprecated">
  70771. </field>
  70772. </class>
  70773. <!-- end class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  70774. <!-- start class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  70775. <class name="JobFinishedEvent" extends="java.lang.Object"
  70776. abstract="false"
  70777. static="false" final="false" visibility="public"
  70778. deprecated="not deprecated">
  70779. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  70780. <constructor name="JobFinishedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, int, int, org.apache.hadoop.mapreduce.Counters, org.apache.hadoop.mapreduce.Counters, org.apache.hadoop.mapreduce.Counters"
  70781. static="false" final="false" visibility="public"
  70782. deprecated="not deprecated">
  70783. <doc>
  70784. <![CDATA[Create an event to record successful job completion
  70785. @param id Job ID
  70786. @param finishTime Finish time of the job
  70787. @param finishedMaps The number of finished maps
  70788. @param finishedReduces The number of finished reduces
  70789. @param failedMaps The number of failed maps
  70790. @param failedReduces The number of failed reduces
  70791. @param mapCounters Map Counters for the job
  70792. @param reduceCounters Reduce Counters for the job
  70793. @param totalCounters Total Counters for the job]]>
  70794. </doc>
  70795. </constructor>
  70796. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  70797. abstract="false" native="false" synchronized="false"
  70798. static="false" final="false" visibility="public"
  70799. deprecated="not deprecated">
  70800. </method>
  70801. <method name="getJobid" return="org.apache.hadoop.mapreduce.JobID"
  70802. abstract="false" native="false" synchronized="false"
  70803. static="false" final="false" visibility="public"
  70804. deprecated="not deprecated">
  70805. <doc>
  70806. <![CDATA[Get the Job ID]]>
  70807. </doc>
  70808. </method>
  70809. <method name="getFinishTime" return="long"
  70810. abstract="false" native="false" synchronized="false"
  70811. static="false" final="false" visibility="public"
  70812. deprecated="not deprecated">
  70813. <doc>
  70814. <![CDATA[Get the job finish time]]>
  70815. </doc>
  70816. </method>
  70817. <method name="getFinishedMaps" return="int"
  70818. abstract="false" native="false" synchronized="false"
  70819. static="false" final="false" visibility="public"
  70820. deprecated="not deprecated">
  70821. <doc>
  70822. <![CDATA[Get the number of finished maps for the job]]>
  70823. </doc>
  70824. </method>
  70825. <method name="getFinishedReduces" return="int"
  70826. abstract="false" native="false" synchronized="false"
  70827. static="false" final="false" visibility="public"
  70828. deprecated="not deprecated">
  70829. <doc>
  70830. <![CDATA[Get the number of finished reducers for the job]]>
  70831. </doc>
  70832. </method>
  70833. <method name="getFailedMaps" return="int"
  70834. abstract="false" native="false" synchronized="false"
  70835. static="false" final="false" visibility="public"
  70836. deprecated="not deprecated">
  70837. <doc>
  70838. <![CDATA[Get the number of failed maps for the job]]>
  70839. </doc>
  70840. </method>
  70841. <method name="getFailedReduces" return="int"
  70842. abstract="false" native="false" synchronized="false"
  70843. static="false" final="false" visibility="public"
  70844. deprecated="not deprecated">
  70845. <doc>
  70846. <![CDATA[Get the number of failed reducers for the job]]>
  70847. </doc>
  70848. </method>
  70849. <method name="getTotalCounters" return="org.apache.hadoop.mapreduce.Counters"
  70850. abstract="false" native="false" synchronized="false"
  70851. static="false" final="false" visibility="public"
  70852. deprecated="not deprecated">
  70853. <doc>
  70854. <![CDATA[Get the counters for the job]]>
  70855. </doc>
  70856. </method>
  70857. <method name="getMapCounters" return="org.apache.hadoop.mapreduce.Counters"
  70858. abstract="false" native="false" synchronized="false"
  70859. static="false" final="false" visibility="public"
  70860. deprecated="not deprecated">
  70861. <doc>
  70862. <![CDATA[Get the Map counters for the job]]>
  70863. </doc>
  70864. </method>
  70865. <method name="getReduceCounters" return="org.apache.hadoop.mapreduce.Counters"
  70866. abstract="false" native="false" synchronized="false"
  70867. static="false" final="false" visibility="public"
  70868. deprecated="not deprecated">
  70869. <doc>
  70870. <![CDATA[Get the reduce counters for the job]]>
  70871. </doc>
  70872. </method>
  70873. <doc>
  70874. <![CDATA[Event to record successful completion of job]]>
  70875. </doc>
  70876. </class>
  70877. <!-- end class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  70878. <!-- start interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  70879. <interface name="JobHistoryParser" abstract="true"
  70880. static="false" final="false" visibility="public"
  70881. deprecated="not deprecated">
  70882. <implements name="java.io.Closeable"/>
  70883. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  70884. abstract="false" native="false" synchronized="false"
  70885. static="false" final="false" visibility="public"
  70886. deprecated="not deprecated">
  70887. <exception name="IOException" type="java.io.IOException"/>
  70888. <doc>
  70889. <![CDATA[Get the next {@link HistoryEvent}
  70890. @return the next {@link HistoryEvent}. If no more events left, return null.
  70891. @throws IOException]]>
  70892. </doc>
  70893. </method>
  70894. <doc>
  70895. <![CDATA[{@link JobHistoryParser} defines the interface of a Job History file parser.]]>
  70896. </doc>
  70897. </interface>
  70898. <!-- end interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  70899. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  70900. <class name="JobHistoryParserFactory" extends="java.lang.Object"
  70901. abstract="false"
  70902. static="false" final="false" visibility="public"
  70903. deprecated="not deprecated">
  70904. <constructor name="JobHistoryParserFactory"
  70905. static="false" final="false" visibility="public"
  70906. deprecated="not deprecated">
  70907. </constructor>
  70908. <method name="getParser" return="org.apache.hadoop.tools.rumen.JobHistoryParser"
  70909. abstract="false" native="false" synchronized="false"
  70910. static="true" final="false" visibility="public"
  70911. deprecated="not deprecated">
  70912. <param name="ris" type="org.apache.hadoop.tools.rumen.RewindableInputStream"/>
  70913. <exception name="IOException" type="java.io.IOException"/>
  70914. </method>
  70915. <doc>
  70916. <![CDATA[{@link JobHistoryParserFactory} is a singleton class that attempts to
  70917. determine the version of job history and return a proper parser.]]>
  70918. </doc>
  70919. </class>
  70920. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  70921. <!-- start class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  70922. <class name="JobInfoChangeEvent" extends="java.lang.Object"
  70923. abstract="false"
  70924. static="false" final="false" visibility="public"
  70925. deprecated="not deprecated">
  70926. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  70927. <constructor name="JobInfoChangeEvent" type="org.apache.hadoop.mapreduce.JobID, long, long"
  70928. static="false" final="false" visibility="public"
  70929. deprecated="not deprecated">
  70930. <doc>
  70931. <![CDATA[Create a event to record the submit and launch time of a job
  70932. @param id Job Id
  70933. @param submitTime Submit time of the job
  70934. @param launchTime Launch time of the job]]>
  70935. </doc>
  70936. </constructor>
  70937. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  70938. abstract="false" native="false" synchronized="false"
  70939. static="false" final="false" visibility="public"
  70940. deprecated="not deprecated">
  70941. <doc>
  70942. <![CDATA[Get the Job ID]]>
  70943. </doc>
  70944. </method>
  70945. <method name="getSubmitTime" return="long"
  70946. abstract="false" native="false" synchronized="false"
  70947. static="false" final="false" visibility="public"
  70948. deprecated="not deprecated">
  70949. <doc>
  70950. <![CDATA[Get the Job submit time]]>
  70951. </doc>
  70952. </method>
  70953. <method name="getLaunchTime" return="long"
  70954. abstract="false" native="false" synchronized="false"
  70955. static="false" final="false" visibility="public"
  70956. deprecated="not deprecated">
  70957. <doc>
  70958. <![CDATA[Get the Job launch time]]>
  70959. </doc>
  70960. </method>
  70961. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  70962. abstract="false" native="false" synchronized="false"
  70963. static="false" final="false" visibility="public"
  70964. deprecated="not deprecated">
  70965. </method>
  70966. <doc>
  70967. <![CDATA[Event to record changes in the submit and launch time of
  70968. a job]]>
  70969. </doc>
  70970. </class>
  70971. <!-- end class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  70972. <!-- start class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  70973. <class name="JobInitedEvent" extends="java.lang.Object"
  70974. abstract="false"
  70975. static="false" final="false" visibility="public"
  70976. deprecated="not deprecated">
  70977. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  70978. <constructor name="JobInitedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  70979. static="false" final="false" visibility="public"
  70980. deprecated="not deprecated">
  70981. <doc>
  70982. <![CDATA[Create an event to record job initialization
  70983. @param id
  70984. @param launchTime
  70985. @param totalMaps
  70986. @param totalReduces
  70987. @param jobStatus]]>
  70988. </doc>
  70989. </constructor>
  70990. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  70991. abstract="false" native="false" synchronized="false"
  70992. static="false" final="false" visibility="public"
  70993. deprecated="not deprecated">
  70994. <doc>
  70995. <![CDATA[Get the job ID]]>
  70996. </doc>
  70997. </method>
  70998. <method name="getLaunchTime" return="long"
  70999. abstract="false" native="false" synchronized="false"
  71000. static="false" final="false" visibility="public"
  71001. deprecated="not deprecated">
  71002. <doc>
  71003. <![CDATA[Get the launch time]]>
  71004. </doc>
  71005. </method>
  71006. <method name="getTotalMaps" return="int"
  71007. abstract="false" native="false" synchronized="false"
  71008. static="false" final="false" visibility="public"
  71009. deprecated="not deprecated">
  71010. <doc>
  71011. <![CDATA[Get the total number of maps]]>
  71012. </doc>
  71013. </method>
  71014. <method name="getTotalReduces" return="int"
  71015. abstract="false" native="false" synchronized="false"
  71016. static="false" final="false" visibility="public"
  71017. deprecated="not deprecated">
  71018. <doc>
  71019. <![CDATA[Get the total number of reduces]]>
  71020. </doc>
  71021. </method>
  71022. <method name="getStatus" return="java.lang.String"
  71023. abstract="false" native="false" synchronized="false"
  71024. static="false" final="false" visibility="public"
  71025. deprecated="not deprecated">
  71026. <doc>
  71027. <![CDATA[Get the status]]>
  71028. </doc>
  71029. </method>
  71030. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  71031. abstract="false" native="false" synchronized="false"
  71032. static="false" final="false" visibility="public"
  71033. deprecated="not deprecated">
  71034. <doc>
  71035. <![CDATA[Get the event type]]>
  71036. </doc>
  71037. </method>
  71038. <doc>
  71039. <![CDATA[Event to record the initialization of a job]]>
  71040. </doc>
  71041. </class>
  71042. <!-- end class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  71043. <!-- start class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  71044. <class name="JobPriorityChangeEvent" extends="java.lang.Object"
  71045. abstract="false"
  71046. static="false" final="false" visibility="public"
  71047. deprecated="not deprecated">
  71048. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  71049. <constructor name="JobPriorityChangeEvent" type="org.apache.hadoop.mapreduce.JobID, org.apache.hadoop.mapred.JobPriority"
  71050. static="false" final="false" visibility="public"
  71051. deprecated="not deprecated">
  71052. <doc>
  71053. <![CDATA[Generate an event to record changes in Job priority
  71054. @param id Job Id
  71055. @param priority The new priority of the job]]>
  71056. </doc>
  71057. </constructor>
  71058. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  71059. abstract="false" native="false" synchronized="false"
  71060. static="false" final="false" visibility="public"
  71061. deprecated="not deprecated">
  71062. <doc>
  71063. <![CDATA[Get the Job ID]]>
  71064. </doc>
  71065. </method>
  71066. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  71067. abstract="false" native="false" synchronized="false"
  71068. static="false" final="false" visibility="public"
  71069. deprecated="not deprecated">
  71070. <doc>
  71071. <![CDATA[Get the job priority]]>
  71072. </doc>
  71073. </method>
  71074. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  71075. abstract="false" native="false" synchronized="false"
  71076. static="false" final="false" visibility="public"
  71077. deprecated="not deprecated">
  71078. <doc>
  71079. <![CDATA[Get the event type]]>
  71080. </doc>
  71081. </method>
  71082. <doc>
  71083. <![CDATA[Event to record the change of priority of a job]]>
  71084. </doc>
  71085. </class>
  71086. <!-- end class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  71087. <!-- start class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  71088. <class name="JobStatusChangedEvent" extends="java.lang.Object"
  71089. abstract="false"
  71090. static="false" final="false" visibility="public"
  71091. deprecated="not deprecated">
  71092. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  71093. <constructor name="JobStatusChangedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String"
  71094. static="false" final="false" visibility="public"
  71095. deprecated="not deprecated">
  71096. <doc>
  71097. <![CDATA[Create an event to record the change in the Job Status
  71098. @param id Job ID
  71099. @param jobStatus The new job status]]>
  71100. </doc>
  71101. </constructor>
  71102. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  71103. abstract="false" native="false" synchronized="false"
  71104. static="false" final="false" visibility="public"
  71105. deprecated="not deprecated">
  71106. <doc>
  71107. <![CDATA[Get the Job Id]]>
  71108. </doc>
  71109. </method>
  71110. <method name="getStatus" return="java.lang.String"
  71111. abstract="false" native="false" synchronized="false"
  71112. static="false" final="false" visibility="public"
  71113. deprecated="not deprecated">
  71114. <doc>
  71115. <![CDATA[Get the event status]]>
  71116. </doc>
  71117. </method>
  71118. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  71119. abstract="false" native="false" synchronized="false"
  71120. static="false" final="false" visibility="public"
  71121. deprecated="not deprecated">
  71122. <doc>
  71123. <![CDATA[Get the event type]]>
  71124. </doc>
  71125. </method>
  71126. <doc>
  71127. <![CDATA[Event to record the change of status for a job]]>
  71128. </doc>
  71129. </class>
  71130. <!-- end class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  71131. <!-- start interface org.apache.hadoop.tools.rumen.JobStory -->
  71132. <interface name="JobStory" abstract="true"
  71133. static="false" final="false" visibility="public"
  71134. deprecated="not deprecated">
  71135. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  71136. abstract="false" native="false" synchronized="false"
  71137. static="false" final="false" visibility="public"
  71138. deprecated="not deprecated">
  71139. <doc>
  71140. <![CDATA[Get the {@link JobConf} for the job.
  71141. @return the <code>JobConf</code> for the job]]>
  71142. </doc>
  71143. </method>
  71144. <method name="getName" return="java.lang.String"
  71145. abstract="false" native="false" synchronized="false"
  71146. static="false" final="false" visibility="public"
  71147. deprecated="not deprecated">
  71148. <doc>
  71149. <![CDATA[Get the job name.
  71150. @return the job name]]>
  71151. </doc>
  71152. </method>
  71153. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  71154. abstract="false" native="false" synchronized="false"
  71155. static="false" final="false" visibility="public"
  71156. deprecated="not deprecated">
  71157. <doc>
  71158. <![CDATA[Get the job ID
  71159. @return the job ID]]>
  71160. </doc>
  71161. </method>
  71162. <method name="getUser" return="java.lang.String"
  71163. abstract="false" native="false" synchronized="false"
  71164. static="false" final="false" visibility="public"
  71165. deprecated="not deprecated">
  71166. <doc>
  71167. <![CDATA[Get the user who ran the job.
  71168. @return the user who ran the job]]>
  71169. </doc>
  71170. </method>
  71171. <method name="getSubmissionTime" return="long"
  71172. abstract="false" native="false" synchronized="false"
  71173. static="false" final="false" visibility="public"
  71174. deprecated="not deprecated">
  71175. <doc>
  71176. <![CDATA[Get the job submission time.
  71177. @return the job submission time]]>
  71178. </doc>
  71179. </method>
  71180. <method name="getNumberMaps" return="int"
  71181. abstract="false" native="false" synchronized="false"
  71182. static="false" final="false" visibility="public"
  71183. deprecated="not deprecated">
  71184. <doc>
  71185. <![CDATA[Get the number of maps in the {@link JobStory}.
  71186. @return the number of maps in the <code>Job</code>]]>
  71187. </doc>
  71188. </method>
  71189. <method name="getNumberReduces" return="int"
  71190. abstract="false" native="false" synchronized="false"
  71191. static="false" final="false" visibility="public"
  71192. deprecated="not deprecated">
  71193. <doc>
  71194. <![CDATA[Get the number of reduce in the {@link JobStory}.
  71195. @return the number of reduces in the <code>Job</code>]]>
  71196. </doc>
  71197. </method>
  71198. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  71199. abstract="false" native="false" synchronized="false"
  71200. static="false" final="false" visibility="public"
  71201. deprecated="not deprecated">
  71202. <doc>
  71203. <![CDATA[Get the input splits for the job.
  71204. @return the input splits for the job]]>
  71205. </doc>
  71206. </method>
  71207. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  71208. abstract="false" native="false" synchronized="false"
  71209. static="false" final="false" visibility="public"
  71210. deprecated="not deprecated">
  71211. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  71212. <param name="taskNumber" type="int"/>
  71213. <doc>
  71214. <![CDATA[Get {@link TaskInfo} for a given task.
  71215. @param taskType {@link TaskType} of the task
  71216. @param taskNumber Partition number of the task
  71217. @return the <code>TaskInfo</code> for the given task]]>
  71218. </doc>
  71219. </method>
  71220. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  71221. abstract="false" native="false" synchronized="false"
  71222. static="false" final="false" visibility="public"
  71223. deprecated="not deprecated">
  71224. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  71225. <param name="taskNumber" type="int"/>
  71226. <param name="taskAttemptNumber" type="int"/>
  71227. <doc>
  71228. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, without regard to
  71229. impact of locality (e.g. not needed to make scheduling decisions).
  71230. @param taskType {@link TaskType} of the task-attempt
  71231. @param taskNumber Partition number of the task-attempt
  71232. @param taskAttemptNumber Attempt number of the task
  71233. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  71234. </doc>
  71235. </method>
  71236. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  71237. abstract="false" native="false" synchronized="false"
  71238. static="false" final="false" visibility="public"
  71239. deprecated="not deprecated">
  71240. <param name="taskNumber" type="int"/>
  71241. <param name="taskAttemptNumber" type="int"/>
  71242. <param name="locality" type="int"/>
  71243. <doc>
  71244. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, considering impact
  71245. of locality.
  71246. @param taskNumber Partition number of the task-attempt
  71247. @param taskAttemptNumber Attempt number of the task
  71248. @param locality Data locality of the task as scheduled in simulation
  71249. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  71250. </doc>
  71251. </method>
  71252. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  71253. abstract="false" native="false" synchronized="false"
  71254. static="false" final="false" visibility="public"
  71255. deprecated="not deprecated">
  71256. <doc>
  71257. <![CDATA[Get the outcome of the job execution.
  71258. @return The outcome of the job execution.]]>
  71259. </doc>
  71260. </method>
  71261. <method name="getQueueName" return="java.lang.String"
  71262. abstract="false" native="false" synchronized="false"
  71263. static="false" final="false" visibility="public"
  71264. deprecated="not deprecated">
  71265. <doc>
  71266. <![CDATA[Get the queue where the job is submitted.
  71267. @return the queue where the job is submitted.]]>
  71268. </doc>
  71269. </method>
  71270. <doc>
  71271. <![CDATA[{@link JobStory} represents the runtime information available for a
  71272. completed Map-Reduce job.]]>
  71273. </doc>
  71274. </interface>
  71275. <!-- end interface org.apache.hadoop.tools.rumen.JobStory -->
  71276. <!-- start interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  71277. <interface name="JobStoryProducer" abstract="true"
  71278. static="false" final="false" visibility="public"
  71279. deprecated="not deprecated">
  71280. <implements name="java.io.Closeable"/>
  71281. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.JobStory"
  71282. abstract="false" native="false" synchronized="false"
  71283. static="false" final="false" visibility="public"
  71284. deprecated="not deprecated">
  71285. <exception name="IOException" type="java.io.IOException"/>
  71286. <doc>
  71287. <![CDATA[Get the next job.
  71288. @return The next job. Or null if no more job is available.
  71289. @throws IOException]]>
  71290. </doc>
  71291. </method>
  71292. <doc>
  71293. <![CDATA[{@link JobStoryProducer} produces the sequence of {@link JobStory}'s.]]>
  71294. </doc>
  71295. </interface>
  71296. <!-- end interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  71297. <!-- start class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  71298. <class name="JobSubmittedEvent" extends="java.lang.Object"
  71299. abstract="false"
  71300. static="false" final="false" visibility="public"
  71301. deprecated="not deprecated">
  71302. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  71303. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String"
  71304. static="false" final="false" visibility="public"
  71305. deprecated="Use
  71306. {@link #JobSubmittedEvent(JobID, String, String, long, String, Map)}
  71307. instead.">
  71308. <doc>
  71309. <![CDATA[@deprecated Use
  71310. {@link #JobSubmittedEvent(JobID, String, String, long, String, Map)}
  71311. instead.]]>
  71312. </doc>
  71313. </constructor>
  71314. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map"
  71315. static="false" final="false" visibility="public"
  71316. deprecated="not deprecated">
  71317. <doc>
  71318. <![CDATA[Create an event to record job submission
  71319. @param id The job Id of the job
  71320. @param jobName Name of the job
  71321. @param userName Name of the user who submitted the job
  71322. @param submitTime Time of submission
  71323. @param jobConfPath Path of the Job Configuration file
  71324. @param jobACLs The configured acls for the job.]]>
  71325. </doc>
  71326. </constructor>
  71327. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  71328. abstract="false" native="false" synchronized="false"
  71329. static="false" final="false" visibility="public"
  71330. deprecated="not deprecated">
  71331. <doc>
  71332. <![CDATA[Get the Job Id]]>
  71333. </doc>
  71334. </method>
  71335. <method name="getJobName" return="java.lang.String"
  71336. abstract="false" native="false" synchronized="false"
  71337. static="false" final="false" visibility="public"
  71338. deprecated="not deprecated">
  71339. <doc>
  71340. <![CDATA[Get the Job name]]>
  71341. </doc>
  71342. </method>
  71343. <method name="getUserName" return="java.lang.String"
  71344. abstract="false" native="false" synchronized="false"
  71345. static="false" final="false" visibility="public"
  71346. deprecated="not deprecated">
  71347. <doc>
  71348. <![CDATA[Get the user name]]>
  71349. </doc>
  71350. </method>
  71351. <method name="getSubmitTime" return="long"
  71352. abstract="false" native="false" synchronized="false"
  71353. static="false" final="false" visibility="public"
  71354. deprecated="not deprecated">
  71355. <doc>
  71356. <![CDATA[Get the submit time]]>
  71357. </doc>
  71358. </method>
  71359. <method name="getJobConfPath" return="java.lang.String"
  71360. abstract="false" native="false" synchronized="false"
  71361. static="false" final="false" visibility="public"
  71362. deprecated="not deprecated">
  71363. <doc>
  71364. <![CDATA[Get the Path for the Job Configuration file]]>
  71365. </doc>
  71366. </method>
  71367. <method name="getJobAcls" return="java.util.Map"
  71368. abstract="false" native="false" synchronized="false"
  71369. static="false" final="false" visibility="public"
  71370. deprecated="not deprecated">
  71371. <doc>
  71372. <![CDATA[Get the acls configured for the job]]>
  71373. </doc>
  71374. </method>
  71375. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  71376. abstract="false" native="false" synchronized="false"
  71377. static="false" final="false" visibility="public"
  71378. deprecated="not deprecated">
  71379. <doc>
  71380. <![CDATA[Get the event type]]>
  71381. </doc>
  71382. </method>
  71383. <doc>
  71384. <![CDATA[Event to record the submission of a job]]>
  71385. </doc>
  71386. </class>
  71387. <!-- end class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  71388. <!-- start class org.apache.hadoop.tools.rumen.JobTraceReader -->
  71389. <class name="JobTraceReader" extends="org.apache.hadoop.tools.rumen.JsonObjectMapperParser"
  71390. abstract="false"
  71391. static="false" final="false" visibility="public"
  71392. deprecated="not deprecated">
  71393. <constructor name="JobTraceReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  71394. static="false" final="false" visibility="public"
  71395. deprecated="not deprecated">
  71396. <exception name="IOException" type="java.io.IOException"/>
  71397. <doc>
  71398. <![CDATA[Constructor.
  71399. @param path
  71400. Path to the JSON trace file, possibly compressed.
  71401. @param conf
  71402. @throws IOException]]>
  71403. </doc>
  71404. </constructor>
  71405. <constructor name="JobTraceReader" type="java.io.InputStream"
  71406. static="false" final="false" visibility="public"
  71407. deprecated="not deprecated">
  71408. <exception name="IOException" type="java.io.IOException"/>
  71409. <doc>
  71410. <![CDATA[Constructor.
  71411. @param input
  71412. The input stream for the JSON trace.]]>
  71413. </doc>
  71414. </constructor>
  71415. <doc>
  71416. <![CDATA[Reading JSON-encoded job traces and produce {@link LoggedJob} instances.]]>
  71417. </doc>
  71418. </class>
  71419. <!-- end class org.apache.hadoop.tools.rumen.JobTraceReader -->
  71420. <!-- start class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  71421. <class name="JobUnsuccessfulCompletionEvent" extends="java.lang.Object"
  71422. abstract="false"
  71423. static="false" final="false" visibility="public"
  71424. deprecated="not deprecated">
  71425. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  71426. <constructor name="JobUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  71427. static="false" final="false" visibility="public"
  71428. deprecated="not deprecated">
  71429. <doc>
  71430. <![CDATA[Create an event to record unsuccessful completion (killed/failed) of jobs
  71431. @param id Job ID
  71432. @param finishTime Finish time of the job
  71433. @param finishedMaps Number of finished maps
  71434. @param finishedReduces Number of finished reduces
  71435. @param status Status of the job]]>
  71436. </doc>
  71437. </constructor>
  71438. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  71439. abstract="false" native="false" synchronized="false"
  71440. static="false" final="false" visibility="public"
  71441. deprecated="not deprecated">
  71442. <doc>
  71443. <![CDATA[Get the Job ID]]>
  71444. </doc>
  71445. </method>
  71446. <method name="getFinishTime" return="long"
  71447. abstract="false" native="false" synchronized="false"
  71448. static="false" final="false" visibility="public"
  71449. deprecated="not deprecated">
  71450. <doc>
  71451. <![CDATA[Get the job finish time]]>
  71452. </doc>
  71453. </method>
  71454. <method name="getFinishedMaps" return="int"
  71455. abstract="false" native="false" synchronized="false"
  71456. static="false" final="false" visibility="public"
  71457. deprecated="not deprecated">
  71458. <doc>
  71459. <![CDATA[Get the number of finished maps]]>
  71460. </doc>
  71461. </method>
  71462. <method name="getFinishedReduces" return="int"
  71463. abstract="false" native="false" synchronized="false"
  71464. static="false" final="false" visibility="public"
  71465. deprecated="not deprecated">
  71466. <doc>
  71467. <![CDATA[Get the number of finished reduces]]>
  71468. </doc>
  71469. </method>
  71470. <method name="getStatus" return="java.lang.String"
  71471. abstract="false" native="false" synchronized="false"
  71472. static="false" final="false" visibility="public"
  71473. deprecated="not deprecated">
  71474. <doc>
  71475. <![CDATA[Get the status]]>
  71476. </doc>
  71477. </method>
  71478. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  71479. abstract="false" native="false" synchronized="false"
  71480. static="false" final="false" visibility="public"
  71481. deprecated="not deprecated">
  71482. <doc>
  71483. <![CDATA[Get the event type]]>
  71484. </doc>
  71485. </method>
  71486. <doc>
  71487. <![CDATA[Event to record Failed and Killed completion of jobs]]>
  71488. </doc>
  71489. </class>
  71490. <!-- end class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  71491. <!-- start class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  71492. <class name="JsonObjectMapperWriter" extends="java.lang.Object"
  71493. abstract="false"
  71494. static="false" final="false" visibility="public"
  71495. deprecated="not deprecated">
  71496. <implements name="java.io.Closeable"/>
  71497. <constructor name="JsonObjectMapperWriter" type="java.io.OutputStream, boolean"
  71498. static="false" final="false" visibility="public"
  71499. deprecated="not deprecated">
  71500. <exception name="IOException" type="java.io.IOException"/>
  71501. </constructor>
  71502. <method name="write"
  71503. abstract="false" native="false" synchronized="false"
  71504. static="false" final="false" visibility="public"
  71505. deprecated="not deprecated">
  71506. <param name="object" type="java.lang.Object"/>
  71507. <exception name="IOException" type="java.io.IOException"/>
  71508. </method>
  71509. <method name="close"
  71510. abstract="false" native="false" synchronized="false"
  71511. static="false" final="false" visibility="public"
  71512. deprecated="not deprecated">
  71513. <exception name="IOException" type="java.io.IOException"/>
  71514. </method>
  71515. <doc>
  71516. <![CDATA[Simple wrapper around {@link JsonGenerator} to write objects in JSON format.
  71517. @param <T> The type of the objects to be written.]]>
  71518. </doc>
  71519. </class>
  71520. <!-- end class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  71521. <!-- start class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  71522. <class name="LoggedDiscreteCDF" extends="java.lang.Object"
  71523. abstract="false"
  71524. static="false" final="false" visibility="public"
  71525. deprecated="not deprecated">
  71526. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71527. <constructor name="LoggedDiscreteCDF"
  71528. static="false" final="false" visibility="public"
  71529. deprecated="not deprecated">
  71530. </constructor>
  71531. <method name="getMinimum" return="long"
  71532. abstract="false" native="false" synchronized="false"
  71533. static="false" final="false" visibility="public"
  71534. deprecated="not deprecated">
  71535. </method>
  71536. <method name="getRankings" return="java.util.List"
  71537. abstract="false" native="false" synchronized="false"
  71538. static="false" final="false" visibility="public"
  71539. deprecated="not deprecated">
  71540. </method>
  71541. <method name="getMaximum" return="long"
  71542. abstract="false" native="false" synchronized="false"
  71543. static="false" final="false" visibility="public"
  71544. deprecated="not deprecated">
  71545. </method>
  71546. <method name="getNumberValues" return="long"
  71547. abstract="false" native="false" synchronized="false"
  71548. static="false" final="false" visibility="public"
  71549. deprecated="not deprecated">
  71550. </method>
  71551. <method name="deepCompare"
  71552. abstract="false" native="false" synchronized="false"
  71553. static="false" final="false" visibility="public"
  71554. deprecated="not deprecated">
  71555. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71556. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  71557. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  71558. </method>
  71559. <doc>
  71560. <![CDATA[A {@link LoggedDiscreteCDF} is a discrete approximation of a cumulative
  71561. distribution function, with this class set up to meet the requirements of the
  71562. Jackson JSON parser/generator.
  71563. All of the public methods are simply accessors for the instance variables we
  71564. want to write out in the JSON files.]]>
  71565. </doc>
  71566. </class>
  71567. <!-- end class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  71568. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob -->
  71569. <class name="LoggedJob" extends="java.lang.Object"
  71570. abstract="false"
  71571. static="false" final="false" visibility="public"
  71572. deprecated="not deprecated">
  71573. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71574. <method name="setUnknownAttribute"
  71575. abstract="false" native="false" synchronized="false"
  71576. static="false" final="false" visibility="public"
  71577. deprecated="not deprecated">
  71578. <param name="attributeName" type="java.lang.String"/>
  71579. <param name="ignored" type="java.lang.Object"/>
  71580. </method>
  71581. <method name="getUser" return="java.lang.String"
  71582. abstract="false" native="false" synchronized="false"
  71583. static="false" final="false" visibility="public"
  71584. deprecated="not deprecated">
  71585. </method>
  71586. <method name="getJobID" return="java.lang.String"
  71587. abstract="false" native="false" synchronized="false"
  71588. static="false" final="false" visibility="public"
  71589. deprecated="not deprecated">
  71590. </method>
  71591. <method name="getPriority" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71592. abstract="false" native="false" synchronized="false"
  71593. static="false" final="false" visibility="public"
  71594. deprecated="not deprecated">
  71595. </method>
  71596. <method name="getComputonsPerMapInputByte" return="long"
  71597. abstract="false" native="false" synchronized="false"
  71598. static="false" final="false" visibility="public"
  71599. deprecated="not deprecated">
  71600. </method>
  71601. <method name="getComputonsPerMapOutputByte" return="long"
  71602. abstract="false" native="false" synchronized="false"
  71603. static="false" final="false" visibility="public"
  71604. deprecated="not deprecated">
  71605. </method>
  71606. <method name="getComputonsPerReduceInputByte" return="long"
  71607. abstract="false" native="false" synchronized="false"
  71608. static="false" final="false" visibility="public"
  71609. deprecated="not deprecated">
  71610. </method>
  71611. <method name="getComputonsPerReduceOutputByte" return="long"
  71612. abstract="false" native="false" synchronized="false"
  71613. static="false" final="false" visibility="public"
  71614. deprecated="not deprecated">
  71615. </method>
  71616. <method name="getSubmitTime" return="long"
  71617. abstract="false" native="false" synchronized="false"
  71618. static="false" final="false" visibility="public"
  71619. deprecated="not deprecated">
  71620. </method>
  71621. <method name="getLaunchTime" return="long"
  71622. abstract="false" native="false" synchronized="false"
  71623. static="false" final="false" visibility="public"
  71624. deprecated="not deprecated">
  71625. </method>
  71626. <method name="getFinishTime" return="long"
  71627. abstract="false" native="false" synchronized="false"
  71628. static="false" final="false" visibility="public"
  71629. deprecated="not deprecated">
  71630. </method>
  71631. <method name="getHeapMegabytes" return="int"
  71632. abstract="false" native="false" synchronized="false"
  71633. static="false" final="false" visibility="public"
  71634. deprecated="not deprecated">
  71635. </method>
  71636. <method name="getTotalMaps" return="int"
  71637. abstract="false" native="false" synchronized="false"
  71638. static="false" final="false" visibility="public"
  71639. deprecated="not deprecated">
  71640. </method>
  71641. <method name="getTotalReduces" return="int"
  71642. abstract="false" native="false" synchronized="false"
  71643. static="false" final="false" visibility="public"
  71644. deprecated="not deprecated">
  71645. </method>
  71646. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  71647. abstract="false" native="false" synchronized="false"
  71648. static="false" final="false" visibility="public"
  71649. deprecated="not deprecated">
  71650. </method>
  71651. <method name="getJobtype" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  71652. abstract="false" native="false" synchronized="false"
  71653. static="false" final="false" visibility="public"
  71654. deprecated="not deprecated">
  71655. </method>
  71656. <method name="getDirectDependantJobs" return="java.util.List"
  71657. abstract="false" native="false" synchronized="false"
  71658. static="false" final="false" visibility="public"
  71659. deprecated="not deprecated">
  71660. </method>
  71661. <method name="getMapTasks" return="java.util.List"
  71662. abstract="false" native="false" synchronized="false"
  71663. static="false" final="false" visibility="public"
  71664. deprecated="not deprecated">
  71665. </method>
  71666. <method name="getReduceTasks" return="java.util.List"
  71667. abstract="false" native="false" synchronized="false"
  71668. static="false" final="false" visibility="public"
  71669. deprecated="not deprecated">
  71670. </method>
  71671. <method name="getOtherTasks" return="java.util.List"
  71672. abstract="false" native="false" synchronized="false"
  71673. static="false" final="false" visibility="public"
  71674. deprecated="not deprecated">
  71675. </method>
  71676. <method name="getSuccessfulMapAttemptCDFs" return="java.util.ArrayList"
  71677. abstract="false" native="false" synchronized="false"
  71678. static="false" final="false" visibility="public"
  71679. deprecated="not deprecated">
  71680. </method>
  71681. <method name="getFailedMapAttemptCDFs" return="java.util.ArrayList"
  71682. abstract="false" native="false" synchronized="false"
  71683. static="false" final="false" visibility="public"
  71684. deprecated="not deprecated">
  71685. </method>
  71686. <method name="getSuccessfulReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  71687. abstract="false" native="false" synchronized="false"
  71688. static="false" final="false" visibility="public"
  71689. deprecated="not deprecated">
  71690. </method>
  71691. <method name="getFailedReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  71692. abstract="false" native="false" synchronized="false"
  71693. static="false" final="false" visibility="public"
  71694. deprecated="not deprecated">
  71695. </method>
  71696. <method name="getMapperTriesToSucceed" return="double[]"
  71697. abstract="false" native="false" synchronized="false"
  71698. static="false" final="false" visibility="public"
  71699. deprecated="not deprecated">
  71700. </method>
  71701. <method name="getFailedMapperFraction" return="double"
  71702. abstract="false" native="false" synchronized="false"
  71703. static="false" final="false" visibility="public"
  71704. deprecated="not deprecated">
  71705. </method>
  71706. <method name="getRelativeTime" return="long"
  71707. abstract="false" native="false" synchronized="false"
  71708. static="false" final="false" visibility="public"
  71709. deprecated="not deprecated">
  71710. </method>
  71711. <method name="getQueue" return="java.lang.String"
  71712. abstract="false" native="false" synchronized="false"
  71713. static="false" final="false" visibility="public"
  71714. deprecated="not deprecated">
  71715. </method>
  71716. <method name="getJobName" return="java.lang.String"
  71717. abstract="false" native="false" synchronized="false"
  71718. static="false" final="false" visibility="public"
  71719. deprecated="not deprecated">
  71720. </method>
  71721. <method name="getClusterMapMB" return="int"
  71722. abstract="false" native="false" synchronized="false"
  71723. static="false" final="false" visibility="public"
  71724. deprecated="not deprecated">
  71725. </method>
  71726. <method name="getClusterReduceMB" return="int"
  71727. abstract="false" native="false" synchronized="false"
  71728. static="false" final="false" visibility="public"
  71729. deprecated="not deprecated">
  71730. </method>
  71731. <method name="getJobMapMB" return="int"
  71732. abstract="false" native="false" synchronized="false"
  71733. static="false" final="false" visibility="public"
  71734. deprecated="not deprecated">
  71735. </method>
  71736. <method name="getJobReduceMB" return="int"
  71737. abstract="false" native="false" synchronized="false"
  71738. static="false" final="false" visibility="public"
  71739. deprecated="not deprecated">
  71740. </method>
  71741. <method name="deepCompare"
  71742. abstract="false" native="false" synchronized="false"
  71743. static="false" final="false" visibility="public"
  71744. deprecated="not deprecated">
  71745. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71746. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  71747. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  71748. </method>
  71749. <doc>
  71750. <![CDATA[A {@link LoggedDiscreteCDF} is a representation of an hadoop job, with the
  71751. details of this class set up to meet the requirements of the Jackson JSON
  71752. parser/generator.
  71753. All of the public methods are simply accessors for the instance variables we
  71754. want to write out in the JSON files.]]>
  71755. </doc>
  71756. </class>
  71757. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob -->
  71758. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  71759. <class name="LoggedJob.JobPriority" extends="java.lang.Enum"
  71760. abstract="false"
  71761. static="true" final="true" visibility="public"
  71762. deprecated="not deprecated">
  71763. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority[]"
  71764. abstract="false" native="false" synchronized="false"
  71765. static="true" final="false" visibility="public"
  71766. deprecated="not deprecated">
  71767. </method>
  71768. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71769. abstract="false" native="false" synchronized="false"
  71770. static="true" final="false" visibility="public"
  71771. deprecated="not deprecated">
  71772. <param name="name" type="java.lang.String"/>
  71773. </method>
  71774. <field name="VERY_LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71775. transient="false" volatile="false"
  71776. static="true" final="true" visibility="public"
  71777. deprecated="not deprecated">
  71778. </field>
  71779. <field name="LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71780. transient="false" volatile="false"
  71781. static="true" final="true" visibility="public"
  71782. deprecated="not deprecated">
  71783. </field>
  71784. <field name="NORMAL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71785. transient="false" volatile="false"
  71786. static="true" final="true" visibility="public"
  71787. deprecated="not deprecated">
  71788. </field>
  71789. <field name="HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71790. transient="false" volatile="false"
  71791. static="true" final="true" visibility="public"
  71792. deprecated="not deprecated">
  71793. </field>
  71794. <field name="VERY_HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71795. transient="false" volatile="false"
  71796. static="true" final="true" visibility="public"
  71797. deprecated="not deprecated">
  71798. </field>
  71799. </class>
  71800. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  71801. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  71802. <class name="LoggedJob.JobType" extends="java.lang.Enum"
  71803. abstract="false"
  71804. static="true" final="true" visibility="public"
  71805. deprecated="not deprecated">
  71806. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType[]"
  71807. abstract="false" native="false" synchronized="false"
  71808. static="true" final="false" visibility="public"
  71809. deprecated="not deprecated">
  71810. </method>
  71811. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  71812. abstract="false" native="false" synchronized="false"
  71813. static="true" final="false" visibility="public"
  71814. deprecated="not deprecated">
  71815. <param name="name" type="java.lang.String"/>
  71816. </method>
  71817. <field name="JAVA" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  71818. transient="false" volatile="false"
  71819. static="true" final="true" visibility="public"
  71820. deprecated="not deprecated">
  71821. </field>
  71822. <field name="PIG" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  71823. transient="false" volatile="false"
  71824. static="true" final="true" visibility="public"
  71825. deprecated="not deprecated">
  71826. </field>
  71827. <field name="STREAMING" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  71828. transient="false" volatile="false"
  71829. static="true" final="true" visibility="public"
  71830. deprecated="not deprecated">
  71831. </field>
  71832. <field name="PIPES" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  71833. transient="false" volatile="false"
  71834. static="true" final="true" visibility="public"
  71835. deprecated="not deprecated">
  71836. </field>
  71837. <field name="OVERALL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  71838. transient="false" volatile="false"
  71839. static="true" final="true" visibility="public"
  71840. deprecated="not deprecated">
  71841. </field>
  71842. </class>
  71843. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  71844. <!-- start class org.apache.hadoop.tools.rumen.LoggedLocation -->
  71845. <class name="LoggedLocation" extends="java.lang.Object"
  71846. abstract="false"
  71847. static="false" final="false" visibility="public"
  71848. deprecated="not deprecated">
  71849. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71850. <constructor name="LoggedLocation"
  71851. static="false" final="false" visibility="public"
  71852. deprecated="not deprecated">
  71853. </constructor>
  71854. <method name="getLayers" return="java.util.List"
  71855. abstract="false" native="false" synchronized="false"
  71856. static="false" final="false" visibility="public"
  71857. deprecated="not deprecated">
  71858. </method>
  71859. <method name="setUnknownAttribute"
  71860. abstract="false" native="false" synchronized="false"
  71861. static="false" final="false" visibility="public"
  71862. deprecated="not deprecated">
  71863. <param name="attributeName" type="java.lang.String"/>
  71864. <param name="ignored" type="java.lang.Object"/>
  71865. </method>
  71866. <method name="deepCompare"
  71867. abstract="false" native="false" synchronized="false"
  71868. static="false" final="false" visibility="public"
  71869. deprecated="not deprecated">
  71870. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71871. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  71872. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  71873. </method>
  71874. <doc>
  71875. <![CDATA[A {@link LoggedLocation} is a representation of a point in an hierarchical
  71876. network, represented as a series of membership names, broadest first.
  71877. For example, if your network has <i>hosts</i> grouped into <i>racks</i>, then
  71878. in onecluster you might have a node {@code node1} on rack {@code rack1}. This
  71879. would be represented with a ArrayList of two layers, with two {@link String}
  71880. s being {@code "rack1"} and {@code "node1"}.
  71881. The details of this class are set up to meet the requirements of the Jackson
  71882. JSON parser/generator.
  71883. All of the public methods are simply accessors for the instance variables we
  71884. want to write out in the JSON files.]]>
  71885. </doc>
  71886. </class>
  71887. <!-- end class org.apache.hadoop.tools.rumen.LoggedLocation -->
  71888. <!-- start class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  71889. <class name="LoggedNetworkTopology" extends="java.lang.Object"
  71890. abstract="false"
  71891. static="false" final="false" visibility="public"
  71892. deprecated="not deprecated">
  71893. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71894. <constructor name="LoggedNetworkTopology"
  71895. static="false" final="false" visibility="public"
  71896. deprecated="not deprecated">
  71897. </constructor>
  71898. <method name="setUnknownAttribute"
  71899. abstract="false" native="false" synchronized="false"
  71900. static="false" final="false" visibility="public"
  71901. deprecated="not deprecated">
  71902. <param name="attributeName" type="java.lang.String"/>
  71903. <param name="ignored" type="java.lang.Object"/>
  71904. </method>
  71905. <method name="getName" return="java.lang.String"
  71906. abstract="false" native="false" synchronized="false"
  71907. static="false" final="false" visibility="public"
  71908. deprecated="not deprecated">
  71909. </method>
  71910. <method name="getChildren" return="java.util.List"
  71911. abstract="false" native="false" synchronized="false"
  71912. static="false" final="false" visibility="public"
  71913. deprecated="not deprecated">
  71914. </method>
  71915. <method name="deepCompare"
  71916. abstract="false" native="false" synchronized="false"
  71917. static="false" final="false" visibility="public"
  71918. deprecated="not deprecated">
  71919. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71920. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  71921. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  71922. </method>
  71923. <doc>
  71924. <![CDATA[A {@link LoggedNetworkTopology} represents a tree that in turn represents a
  71925. hierarchy of hosts. The current version requires the tree to have all leaves
  71926. at the same level.
  71927. All of the public methods are simply accessors for the instance variables we
  71928. want to write out in the JSON files.]]>
  71929. </doc>
  71930. </class>
  71931. <!-- end class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  71932. <!-- start class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  71933. <class name="LoggedSingleRelativeRanking" extends="java.lang.Object"
  71934. abstract="false"
  71935. static="false" final="false" visibility="public"
  71936. deprecated="not deprecated">
  71937. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71938. <constructor name="LoggedSingleRelativeRanking"
  71939. static="false" final="false" visibility="public"
  71940. deprecated="not deprecated">
  71941. </constructor>
  71942. <method name="setUnknownAttribute"
  71943. abstract="false" native="false" synchronized="false"
  71944. static="false" final="false" visibility="public"
  71945. deprecated="not deprecated">
  71946. <param name="attributeName" type="java.lang.String"/>
  71947. <param name="ignored" type="java.lang.Object"/>
  71948. </method>
  71949. <method name="getRelativeRanking" return="double"
  71950. abstract="false" native="false" synchronized="false"
  71951. static="false" final="false" visibility="public"
  71952. deprecated="not deprecated">
  71953. </method>
  71954. <method name="getDatum" return="long"
  71955. abstract="false" native="false" synchronized="false"
  71956. static="false" final="false" visibility="public"
  71957. deprecated="not deprecated">
  71958. </method>
  71959. <method name="deepCompare"
  71960. abstract="false" native="false" synchronized="false"
  71961. static="false" final="false" visibility="public"
  71962. deprecated="not deprecated">
  71963. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71964. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  71965. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  71966. </method>
  71967. <doc>
  71968. <![CDATA[A {@link LoggedSingleRelativeRanking} represents an X-Y coordinate of a
  71969. single point in a discrete CDF.
  71970. All of the public methods are simply accessors for the instance variables we
  71971. want to write out in the JSON files.]]>
  71972. </doc>
  71973. </class>
  71974. <!-- end class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  71975. <!-- start class org.apache.hadoop.tools.rumen.LoggedTask -->
  71976. <class name="LoggedTask" extends="java.lang.Object"
  71977. abstract="false"
  71978. static="false" final="false" visibility="public"
  71979. deprecated="not deprecated">
  71980. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71981. <method name="setUnknownAttribute"
  71982. abstract="false" native="false" synchronized="false"
  71983. static="false" final="false" visibility="public"
  71984. deprecated="not deprecated">
  71985. <param name="attributeName" type="java.lang.String"/>
  71986. <param name="ignored" type="java.lang.Object"/>
  71987. </method>
  71988. <method name="getInputBytes" return="long"
  71989. abstract="false" native="false" synchronized="false"
  71990. static="false" final="false" visibility="public"
  71991. deprecated="not deprecated">
  71992. </method>
  71993. <method name="getInputRecords" return="long"
  71994. abstract="false" native="false" synchronized="false"
  71995. static="false" final="false" visibility="public"
  71996. deprecated="not deprecated">
  71997. </method>
  71998. <method name="getOutputBytes" return="long"
  71999. abstract="false" native="false" synchronized="false"
  72000. static="false" final="false" visibility="public"
  72001. deprecated="not deprecated">
  72002. </method>
  72003. <method name="getOutputRecords" return="long"
  72004. abstract="false" native="false" synchronized="false"
  72005. static="false" final="false" visibility="public"
  72006. deprecated="not deprecated">
  72007. </method>
  72008. <method name="getTaskID" return="java.lang.String"
  72009. abstract="false" native="false" synchronized="false"
  72010. static="false" final="false" visibility="public"
  72011. deprecated="not deprecated">
  72012. </method>
  72013. <method name="getStartTime" return="long"
  72014. abstract="false" native="false" synchronized="false"
  72015. static="false" final="false" visibility="public"
  72016. deprecated="not deprecated">
  72017. </method>
  72018. <method name="getFinishTime" return="long"
  72019. abstract="false" native="false" synchronized="false"
  72020. static="false" final="false" visibility="public"
  72021. deprecated="not deprecated">
  72022. </method>
  72023. <method name="getAttempts" return="java.util.List"
  72024. abstract="false" native="false" synchronized="false"
  72025. static="false" final="false" visibility="public"
  72026. deprecated="not deprecated">
  72027. </method>
  72028. <method name="getPreferredLocations" return="java.util.List"
  72029. abstract="false" native="false" synchronized="false"
  72030. static="false" final="false" visibility="public"
  72031. deprecated="not deprecated">
  72032. </method>
  72033. <method name="getTaskStatus" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72034. abstract="false" native="false" synchronized="false"
  72035. static="false" final="false" visibility="public"
  72036. deprecated="not deprecated">
  72037. </method>
  72038. <method name="getTaskType" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72039. abstract="false" native="false" synchronized="false"
  72040. static="false" final="false" visibility="public"
  72041. deprecated="not deprecated">
  72042. </method>
  72043. <method name="incorporateCounters"
  72044. abstract="false" native="false" synchronized="false"
  72045. static="false" final="false" visibility="public"
  72046. deprecated="not deprecated">
  72047. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  72048. </method>
  72049. <method name="deepCompare"
  72050. abstract="false" native="false" synchronized="false"
  72051. static="false" final="false" visibility="public"
  72052. deprecated="not deprecated">
  72053. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72054. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  72055. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  72056. </method>
  72057. <doc>
  72058. <![CDATA[A {@link LoggedTask} represents a [hadoop] task that is part of a hadoop job.
  72059. It knows about the [pssibly empty] sequence of attempts, its I/O footprint,
  72060. and its runtime.
  72061. All of the public methods are simply accessors for the instance variables we
  72062. want to write out in the JSON files.]]>
  72063. </doc>
  72064. </class>
  72065. <!-- end class org.apache.hadoop.tools.rumen.LoggedTask -->
  72066. <!-- start class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  72067. <class name="LoggedTaskAttempt" extends="java.lang.Object"
  72068. abstract="false"
  72069. static="false" final="false" visibility="public"
  72070. deprecated="not deprecated">
  72071. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72072. <method name="setUnknownAttribute"
  72073. abstract="false" native="false" synchronized="false"
  72074. static="false" final="false" visibility="public"
  72075. deprecated="not deprecated">
  72076. <param name="attributeName" type="java.lang.String"/>
  72077. <param name="ignored" type="java.lang.Object"/>
  72078. </method>
  72079. <method name="getShuffleFinished" return="long"
  72080. abstract="false" native="false" synchronized="false"
  72081. static="false" final="false" visibility="public"
  72082. deprecated="not deprecated">
  72083. </method>
  72084. <method name="getSortFinished" return="long"
  72085. abstract="false" native="false" synchronized="false"
  72086. static="false" final="false" visibility="public"
  72087. deprecated="not deprecated">
  72088. </method>
  72089. <method name="getAttemptID" return="java.lang.String"
  72090. abstract="false" native="false" synchronized="false"
  72091. static="false" final="false" visibility="public"
  72092. deprecated="not deprecated">
  72093. </method>
  72094. <method name="getResult" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72095. abstract="false" native="false" synchronized="false"
  72096. static="false" final="false" visibility="public"
  72097. deprecated="not deprecated">
  72098. </method>
  72099. <method name="getStartTime" return="long"
  72100. abstract="false" native="false" synchronized="false"
  72101. static="false" final="false" visibility="public"
  72102. deprecated="not deprecated">
  72103. </method>
  72104. <method name="getFinishTime" return="long"
  72105. abstract="false" native="false" synchronized="false"
  72106. static="false" final="false" visibility="public"
  72107. deprecated="not deprecated">
  72108. </method>
  72109. <method name="getHostName" return="java.lang.String"
  72110. abstract="false" native="false" synchronized="false"
  72111. static="false" final="false" visibility="public"
  72112. deprecated="not deprecated">
  72113. </method>
  72114. <method name="getHdfsBytesRead" return="long"
  72115. abstract="false" native="false" synchronized="false"
  72116. static="false" final="false" visibility="public"
  72117. deprecated="not deprecated">
  72118. </method>
  72119. <method name="getHdfsBytesWritten" return="long"
  72120. abstract="false" native="false" synchronized="false"
  72121. static="false" final="false" visibility="public"
  72122. deprecated="not deprecated">
  72123. </method>
  72124. <method name="getFileBytesRead" return="long"
  72125. abstract="false" native="false" synchronized="false"
  72126. static="false" final="false" visibility="public"
  72127. deprecated="not deprecated">
  72128. </method>
  72129. <method name="getFileBytesWritten" return="long"
  72130. abstract="false" native="false" synchronized="false"
  72131. static="false" final="false" visibility="public"
  72132. deprecated="not deprecated">
  72133. </method>
  72134. <method name="getMapInputRecords" return="long"
  72135. abstract="false" native="false" synchronized="false"
  72136. static="false" final="false" visibility="public"
  72137. deprecated="not deprecated">
  72138. </method>
  72139. <method name="getMapOutputBytes" return="long"
  72140. abstract="false" native="false" synchronized="false"
  72141. static="false" final="false" visibility="public"
  72142. deprecated="not deprecated">
  72143. </method>
  72144. <method name="getMapOutputRecords" return="long"
  72145. abstract="false" native="false" synchronized="false"
  72146. static="false" final="false" visibility="public"
  72147. deprecated="not deprecated">
  72148. </method>
  72149. <method name="getCombineInputRecords" return="long"
  72150. abstract="false" native="false" synchronized="false"
  72151. static="false" final="false" visibility="public"
  72152. deprecated="not deprecated">
  72153. </method>
  72154. <method name="getReduceInputGroups" return="long"
  72155. abstract="false" native="false" synchronized="false"
  72156. static="false" final="false" visibility="public"
  72157. deprecated="not deprecated">
  72158. </method>
  72159. <method name="getReduceInputRecords" return="long"
  72160. abstract="false" native="false" synchronized="false"
  72161. static="false" final="false" visibility="public"
  72162. deprecated="not deprecated">
  72163. </method>
  72164. <method name="getReduceShuffleBytes" return="long"
  72165. abstract="false" native="false" synchronized="false"
  72166. static="false" final="false" visibility="public"
  72167. deprecated="not deprecated">
  72168. </method>
  72169. <method name="getReduceOutputRecords" return="long"
  72170. abstract="false" native="false" synchronized="false"
  72171. static="false" final="false" visibility="public"
  72172. deprecated="not deprecated">
  72173. </method>
  72174. <method name="getSpilledRecords" return="long"
  72175. abstract="false" native="false" synchronized="false"
  72176. static="false" final="false" visibility="public"
  72177. deprecated="not deprecated">
  72178. </method>
  72179. <method name="getLocation" return="org.apache.hadoop.tools.rumen.LoggedLocation"
  72180. abstract="false" native="false" synchronized="false"
  72181. static="false" final="false" visibility="public"
  72182. deprecated="not deprecated">
  72183. </method>
  72184. <method name="getMapInputBytes" return="long"
  72185. abstract="false" native="false" synchronized="false"
  72186. static="false" final="false" visibility="public"
  72187. deprecated="not deprecated">
  72188. </method>
  72189. <method name="incorporateCounters"
  72190. abstract="false" native="false" synchronized="false"
  72191. static="false" final="false" visibility="public"
  72192. deprecated="not deprecated">
  72193. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  72194. </method>
  72195. <method name="deepCompare"
  72196. abstract="false" native="false" synchronized="false"
  72197. static="false" final="false" visibility="public"
  72198. deprecated="not deprecated">
  72199. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72200. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  72201. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  72202. </method>
  72203. <doc>
  72204. <![CDATA[A {@link LoggedTaskAttempt} represents an attempt to run an hadoop task in a
  72205. hadoop job. Note that a task can have several attempts.
  72206. All of the public methods are simply accessors for the instance variables we
  72207. want to write out in the JSON files.]]>
  72208. </doc>
  72209. </class>
  72210. <!-- end class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  72211. <!-- start class org.apache.hadoop.tools.rumen.MachineNode -->
  72212. <class name="MachineNode" extends="org.apache.hadoop.tools.rumen.Node"
  72213. abstract="false"
  72214. static="false" final="true" visibility="public"
  72215. deprecated="not deprecated">
  72216. <method name="equals" return="boolean"
  72217. abstract="false" native="false" synchronized="false"
  72218. static="false" final="false" visibility="public"
  72219. deprecated="not deprecated">
  72220. <param name="obj" type="java.lang.Object"/>
  72221. </method>
  72222. <method name="hashCode" return="int"
  72223. abstract="false" native="false" synchronized="false"
  72224. static="false" final="false" visibility="public"
  72225. deprecated="not deprecated">
  72226. </method>
  72227. <method name="getMemory" return="long"
  72228. abstract="false" native="false" synchronized="false"
  72229. static="false" final="false" visibility="public"
  72230. deprecated="not deprecated">
  72231. <doc>
  72232. <![CDATA[Get the available physical RAM of the node.
  72233. @return The available physical RAM of the node, in KB.]]>
  72234. </doc>
  72235. </method>
  72236. <method name="getMapSlots" return="int"
  72237. abstract="false" native="false" synchronized="false"
  72238. static="false" final="false" visibility="public"
  72239. deprecated="not deprecated">
  72240. <doc>
  72241. <![CDATA[Get the number of map slots of the node.
  72242. @return The number of map slots of the node.]]>
  72243. </doc>
  72244. </method>
  72245. <method name="getReduceSlots" return="int"
  72246. abstract="false" native="false" synchronized="false"
  72247. static="false" final="false" visibility="public"
  72248. deprecated="not deprecated">
  72249. <doc>
  72250. <![CDATA[Get the number of reduce slots of the node.
  72251. @return The number of reduce slots fo the node.]]>
  72252. </doc>
  72253. </method>
  72254. <method name="getMemoryPerMapSlot" return="long"
  72255. abstract="false" native="false" synchronized="false"
  72256. static="false" final="false" visibility="public"
  72257. deprecated="not deprecated">
  72258. <doc>
  72259. <![CDATA[Get the amount of RAM reserved for each map slot.
  72260. @return the amount of RAM reserved for each map slot, in KB.]]>
  72261. </doc>
  72262. </method>
  72263. <method name="getMemoryPerReduceSlot" return="long"
  72264. abstract="false" native="false" synchronized="false"
  72265. static="false" final="false" visibility="public"
  72266. deprecated="not deprecated">
  72267. <doc>
  72268. <![CDATA[Get the amount of RAM reserved for each reduce slot.
  72269. @return the amount of RAM reserved for each reduce slot, in KB.]]>
  72270. </doc>
  72271. </method>
  72272. <method name="getNumCores" return="int"
  72273. abstract="false" native="false" synchronized="false"
  72274. static="false" final="false" visibility="public"
  72275. deprecated="not deprecated">
  72276. <doc>
  72277. <![CDATA[Get the number of cores of the node.
  72278. @return the number of cores of the node.]]>
  72279. </doc>
  72280. </method>
  72281. <method name="getRackNode" return="org.apache.hadoop.tools.rumen.RackNode"
  72282. abstract="false" native="false" synchronized="false"
  72283. static="false" final="false" visibility="public"
  72284. deprecated="not deprecated">
  72285. <doc>
  72286. <![CDATA[Get the rack node that the machine belongs to.
  72287. @return The rack node that the machine belongs to. Returns null if the
  72288. machine does not belong to any rack.]]>
  72289. </doc>
  72290. </method>
  72291. <method name="addChild" return="boolean"
  72292. abstract="false" native="false" synchronized="true"
  72293. static="false" final="false" visibility="public"
  72294. deprecated="not deprecated">
  72295. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  72296. </method>
  72297. <doc>
  72298. <![CDATA[{@link MachineNode} represents the configuration of a cluster node.
  72299. {@link MachineNode} should be constructed by {@link MachineNode.Builder}.]]>
  72300. </doc>
  72301. </class>
  72302. <!-- end class org.apache.hadoop.tools.rumen.MachineNode -->
  72303. <!-- start class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  72304. <class name="MachineNode.Builder" extends="java.lang.Object"
  72305. abstract="false"
  72306. static="true" final="true" visibility="public"
  72307. deprecated="not deprecated">
  72308. <constructor name="MachineNode.Builder" type="java.lang.String, int"
  72309. static="false" final="false" visibility="public"
  72310. deprecated="not deprecated">
  72311. <doc>
  72312. <![CDATA[Start building a new NodeInfo object.
  72313. @param name
  72314. Unique name of the node. Typically the fully qualified domain
  72315. name.]]>
  72316. </doc>
  72317. </constructor>
  72318. <method name="setMemory" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72319. abstract="false" native="false" synchronized="false"
  72320. static="false" final="false" visibility="public"
  72321. deprecated="not deprecated">
  72322. <param name="memory" type="long"/>
  72323. <doc>
  72324. <![CDATA[Set the physical memory of the node.
  72325. @param memory Available RAM in KB.]]>
  72326. </doc>
  72327. </method>
  72328. <method name="setMapSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72329. abstract="false" native="false" synchronized="false"
  72330. static="false" final="false" visibility="public"
  72331. deprecated="not deprecated">
  72332. <param name="mapSlots" type="int"/>
  72333. <doc>
  72334. <![CDATA[Set the number of map slot for the node.
  72335. @param mapSlots The number of map slots for the node.]]>
  72336. </doc>
  72337. </method>
  72338. <method name="setReduceSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72339. abstract="false" native="false" synchronized="false"
  72340. static="false" final="false" visibility="public"
  72341. deprecated="not deprecated">
  72342. <param name="reduceSlots" type="int"/>
  72343. <doc>
  72344. <![CDATA[Set the number of reduce slot for the node.
  72345. @param reduceSlots The number of reduce slots for the node.]]>
  72346. </doc>
  72347. </method>
  72348. <method name="setMemoryPerMapSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72349. abstract="false" native="false" synchronized="false"
  72350. static="false" final="false" visibility="public"
  72351. deprecated="not deprecated">
  72352. <param name="memoryPerMapSlot" type="long"/>
  72353. <doc>
  72354. <![CDATA[Set the amount of RAM reserved for each map slot.
  72355. @param memoryPerMapSlot The amount of RAM reserved for each map slot, in KB.]]>
  72356. </doc>
  72357. </method>
  72358. <method name="setMemoryPerReduceSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72359. abstract="false" native="false" synchronized="false"
  72360. static="false" final="false" visibility="public"
  72361. deprecated="not deprecated">
  72362. <param name="memoryPerReduceSlot" type="long"/>
  72363. <doc>
  72364. <![CDATA[Set the amount of RAM reserved for each reduce slot.
  72365. @param memoryPerReduceSlot The amount of RAM reserved for each reduce slot, in KB.]]>
  72366. </doc>
  72367. </method>
  72368. <method name="setNumCores" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72369. abstract="false" native="false" synchronized="false"
  72370. static="false" final="false" visibility="public"
  72371. deprecated="not deprecated">
  72372. <param name="numCores" type="int"/>
  72373. <doc>
  72374. <![CDATA[Set the number of cores for the node.
  72375. @param numCores Number of cores for the node.]]>
  72376. </doc>
  72377. </method>
  72378. <method name="cloneFrom" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72379. abstract="false" native="false" synchronized="false"
  72380. static="false" final="false" visibility="public"
  72381. deprecated="not deprecated">
  72382. <param name="ref" type="org.apache.hadoop.tools.rumen.MachineNode"/>
  72383. <doc>
  72384. <![CDATA[Clone the settings from a reference {@link MachineNode} object.
  72385. @param ref The reference {@link MachineNode} object.]]>
  72386. </doc>
  72387. </method>
  72388. <method name="build" return="org.apache.hadoop.tools.rumen.MachineNode"
  72389. abstract="false" native="false" synchronized="false"
  72390. static="false" final="false" visibility="public"
  72391. deprecated="not deprecated">
  72392. <doc>
  72393. <![CDATA[Build the {@link MachineNode} object.
  72394. @return The {@link MachineNode} object being built.]]>
  72395. </doc>
  72396. </method>
  72397. <doc>
  72398. <![CDATA[Builder for a NodeInfo object]]>
  72399. </doc>
  72400. </class>
  72401. <!-- end class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  72402. <!-- start class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  72403. <class name="MapAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  72404. abstract="false"
  72405. static="false" final="false" visibility="public"
  72406. deprecated="not deprecated">
  72407. <constructor name="MapAttempt20LineHistoryEventEmitter"
  72408. static="false" final="false" visibility="protected"
  72409. deprecated="not deprecated">
  72410. </constructor>
  72411. </class>
  72412. <!-- end class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  72413. <!-- start class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  72414. <class name="MapAttemptFinishedEvent" extends="java.lang.Object"
  72415. abstract="false"
  72416. static="false" final="false" visibility="public"
  72417. deprecated="not deprecated">
  72418. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  72419. <constructor name="MapAttemptFinishedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, long, java.lang.String, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  72420. static="false" final="false" visibility="public"
  72421. deprecated="not deprecated">
  72422. <doc>
  72423. <![CDATA[Create an event for successful completion of map attempts
  72424. @param id Task Attempt ID
  72425. @param taskType Type of the task
  72426. @param taskStatus Status of the task
  72427. @param mapFinishTime Finish time of the map phase
  72428. @param finishTime Finish time of the attempt
  72429. @param hostname Name of the host where the map executed
  72430. @param state State string for the attempt
  72431. @param counters Counters for the attempt]]>
  72432. </doc>
  72433. </constructor>
  72434. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  72435. abstract="false" native="false" synchronized="false"
  72436. static="false" final="false" visibility="public"
  72437. deprecated="not deprecated">
  72438. <doc>
  72439. <![CDATA[Get the task ID]]>
  72440. </doc>
  72441. </method>
  72442. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  72443. abstract="false" native="false" synchronized="false"
  72444. static="false" final="false" visibility="public"
  72445. deprecated="not deprecated">
  72446. <doc>
  72447. <![CDATA[Get the attempt id]]>
  72448. </doc>
  72449. </method>
  72450. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  72451. abstract="false" native="false" synchronized="false"
  72452. static="false" final="false" visibility="public"
  72453. deprecated="not deprecated">
  72454. <doc>
  72455. <![CDATA[Get the task type]]>
  72456. </doc>
  72457. </method>
  72458. <method name="getTaskStatus" return="java.lang.String"
  72459. abstract="false" native="false" synchronized="false"
  72460. static="false" final="false" visibility="public"
  72461. deprecated="not deprecated">
  72462. <doc>
  72463. <![CDATA[Get the task status]]>
  72464. </doc>
  72465. </method>
  72466. <method name="getMapFinishTime" return="long"
  72467. abstract="false" native="false" synchronized="false"
  72468. static="false" final="false" visibility="public"
  72469. deprecated="not deprecated">
  72470. <doc>
  72471. <![CDATA[Get the map phase finish time]]>
  72472. </doc>
  72473. </method>
  72474. <method name="getFinishTime" return="long"
  72475. abstract="false" native="false" synchronized="false"
  72476. static="false" final="false" visibility="public"
  72477. deprecated="not deprecated">
  72478. <doc>
  72479. <![CDATA[Get the attempt finish time]]>
  72480. </doc>
  72481. </method>
  72482. <method name="getHostname" return="java.lang.String"
  72483. abstract="false" native="false" synchronized="false"
  72484. static="false" final="false" visibility="public"
  72485. deprecated="not deprecated">
  72486. <doc>
  72487. <![CDATA[Get the host name]]>
  72488. </doc>
  72489. </method>
  72490. <method name="getState" return="java.lang.String"
  72491. abstract="false" native="false" synchronized="false"
  72492. static="false" final="false" visibility="public"
  72493. deprecated="not deprecated">
  72494. <doc>
  72495. <![CDATA[Get the state string]]>
  72496. </doc>
  72497. </method>
  72498. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  72499. abstract="false" native="false" synchronized="false"
  72500. static="false" final="false" visibility="public"
  72501. deprecated="not deprecated">
  72502. <doc>
  72503. <![CDATA[Get the counters]]>
  72504. </doc>
  72505. </method>
  72506. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  72507. abstract="false" native="false" synchronized="false"
  72508. static="false" final="false" visibility="public"
  72509. deprecated="not deprecated">
  72510. <doc>
  72511. <![CDATA[Get the event type]]>
  72512. </doc>
  72513. </method>
  72514. <doc>
  72515. <![CDATA[Event to record successful completion of a map attempt]]>
  72516. </doc>
  72517. </class>
  72518. <!-- end class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  72519. <!-- start class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  72520. <class name="MapTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  72521. abstract="false"
  72522. static="false" final="false" visibility="public"
  72523. deprecated="not deprecated">
  72524. <constructor name="MapTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long"
  72525. static="false" final="false" visibility="public"
  72526. deprecated="not deprecated">
  72527. </constructor>
  72528. <method name="getRuntime" return="long"
  72529. abstract="false" native="false" synchronized="false"
  72530. static="false" final="false" visibility="public"
  72531. deprecated="not deprecated">
  72532. </method>
  72533. <method name="getMapRuntime" return="long"
  72534. abstract="false" native="false" synchronized="false"
  72535. static="false" final="false" visibility="public"
  72536. deprecated="not deprecated">
  72537. <doc>
  72538. <![CDATA[Get the runtime for the <b>map</b> phase of the map-task attempt.
  72539. @return the runtime for the <b>map</b> phase of the map-task attempt]]>
  72540. </doc>
  72541. </method>
  72542. <doc>
  72543. <![CDATA[{@link MapTaskAttemptInfo} represents the information with regard to a
  72544. map task attempt.]]>
  72545. </doc>
  72546. </class>
  72547. <!-- end class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  72548. <!-- start class org.apache.hadoop.tools.rumen.Node -->
  72549. <class name="Node" extends="java.lang.Object"
  72550. abstract="false"
  72551. static="false" final="false" visibility="public"
  72552. deprecated="not deprecated">
  72553. <implements name="java.lang.Comparable"/>
  72554. <constructor name="Node" type="java.lang.String, int"
  72555. static="false" final="false" visibility="public"
  72556. deprecated="not deprecated">
  72557. <doc>
  72558. <![CDATA[@param name
  72559. A unique name to identify a node in the cluster.
  72560. @param level
  72561. The level of the node in the cluster]]>
  72562. </doc>
  72563. </constructor>
  72564. <method name="getName" return="java.lang.String"
  72565. abstract="false" native="false" synchronized="false"
  72566. static="false" final="false" visibility="public"
  72567. deprecated="not deprecated">
  72568. <doc>
  72569. <![CDATA[Get the name of the node.
  72570. @return The name of the node.]]>
  72571. </doc>
  72572. </method>
  72573. <method name="getLevel" return="int"
  72574. abstract="false" native="false" synchronized="false"
  72575. static="false" final="false" visibility="public"
  72576. deprecated="not deprecated">
  72577. <doc>
  72578. <![CDATA[Get the level of the node.
  72579. @return The level of the node.]]>
  72580. </doc>
  72581. </method>
  72582. <method name="addChild" return="boolean"
  72583. abstract="false" native="false" synchronized="true"
  72584. static="false" final="false" visibility="public"
  72585. deprecated="not deprecated">
  72586. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  72587. <doc>
  72588. <![CDATA[Add a child node to this node.
  72589. @param child The child node to be added. The child node should currently not be belong to another cluster topology.
  72590. @return Boolean indicating whether the node is successfully added.]]>
  72591. </doc>
  72592. </method>
  72593. <method name="hasChildren" return="boolean"
  72594. abstract="false" native="false" synchronized="true"
  72595. static="false" final="false" visibility="public"
  72596. deprecated="not deprecated">
  72597. <doc>
  72598. <![CDATA[Does this node have any children?
  72599. @return Boolean indicate whether this node has any children.]]>
  72600. </doc>
  72601. </method>
  72602. <method name="getChildren" return="java.util.Set"
  72603. abstract="false" native="false" synchronized="true"
  72604. static="false" final="false" visibility="public"
  72605. deprecated="not deprecated">
  72606. <doc>
  72607. <![CDATA[Get the children of this node.
  72608. @return The children of this node. If no child, an empty set will be
  72609. returned. The returned set is read-only.]]>
  72610. </doc>
  72611. </method>
  72612. <method name="getParent" return="org.apache.hadoop.tools.rumen.Node"
  72613. abstract="false" native="false" synchronized="false"
  72614. static="false" final="false" visibility="public"
  72615. deprecated="not deprecated">
  72616. <doc>
  72617. <![CDATA[Get the parent node.
  72618. @return the parent node. If root node, return null.]]>
  72619. </doc>
  72620. </method>
  72621. <method name="hashCode" return="int"
  72622. abstract="false" native="false" synchronized="false"
  72623. static="false" final="false" visibility="public"
  72624. deprecated="not deprecated">
  72625. </method>
  72626. <method name="equals" return="boolean"
  72627. abstract="false" native="false" synchronized="false"
  72628. static="false" final="false" visibility="public"
  72629. deprecated="not deprecated">
  72630. <param name="obj" type="java.lang.Object"/>
  72631. </method>
  72632. <method name="toString" return="java.lang.String"
  72633. abstract="false" native="false" synchronized="false"
  72634. static="false" final="false" visibility="public"
  72635. deprecated="not deprecated">
  72636. </method>
  72637. <method name="compareTo" return="int"
  72638. abstract="false" native="false" synchronized="false"
  72639. static="false" final="false" visibility="public"
  72640. deprecated="not deprecated">
  72641. <param name="o" type="org.apache.hadoop.tools.rumen.Node"/>
  72642. </method>
  72643. <doc>
  72644. <![CDATA[{@link Node} represents a node in the cluster topology. A node can be a
  72645. {@MachineNode}, or a {@link RackNode}, etc.]]>
  72646. </doc>
  72647. </class>
  72648. <!-- end class org.apache.hadoop.tools.rumen.Node -->
  72649. <!-- start interface org.apache.hadoop.tools.rumen.Outputter -->
  72650. <interface name="Outputter" abstract="true"
  72651. static="false" final="false" visibility="public"
  72652. deprecated="not deprecated">
  72653. <implements name="java.io.Closeable"/>
  72654. <method name="init"
  72655. abstract="false" native="false" synchronized="false"
  72656. static="false" final="false" visibility="public"
  72657. deprecated="not deprecated">
  72658. <param name="path" type="org.apache.hadoop.fs.Path"/>
  72659. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72660. <exception name="IOException" type="java.io.IOException"/>
  72661. <doc>
  72662. <![CDATA[Initialize the {@link Outputter} to a specific path.
  72663. @param path The {@link Path} to the output file.
  72664. @param conf Configuration
  72665. @throws IOException]]>
  72666. </doc>
  72667. </method>
  72668. <method name="output"
  72669. abstract="false" native="false" synchronized="false"
  72670. static="false" final="false" visibility="public"
  72671. deprecated="not deprecated">
  72672. <param name="object" type="java.lang.Object"/>
  72673. <exception name="IOException" type="java.io.IOException"/>
  72674. <doc>
  72675. <![CDATA[Output an object.
  72676. @param object The objecte.
  72677. @throws IOException]]>
  72678. </doc>
  72679. </method>
  72680. <doc>
  72681. <![CDATA[Interface to output a sequence of objects of type T.]]>
  72682. </doc>
  72683. </interface>
  72684. <!-- end interface org.apache.hadoop.tools.rumen.Outputter -->
  72685. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  72686. <class name="Pre21JobHistoryConstants" extends="java.lang.Object"
  72687. abstract="false"
  72688. static="false" final="false" visibility="public"
  72689. deprecated="not deprecated">
  72690. <constructor name="Pre21JobHistoryConstants"
  72691. static="false" final="false" visibility="public"
  72692. deprecated="not deprecated">
  72693. </constructor>
  72694. </class>
  72695. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  72696. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  72697. <class name="Pre21JobHistoryConstants.Values" extends="java.lang.Enum"
  72698. abstract="false"
  72699. static="true" final="true" visibility="public"
  72700. deprecated="not deprecated">
  72701. <method name="values" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values[]"
  72702. abstract="false" native="false" synchronized="false"
  72703. static="true" final="false" visibility="public"
  72704. deprecated="not deprecated">
  72705. </method>
  72706. <method name="valueOf" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72707. abstract="false" native="false" synchronized="false"
  72708. static="true" final="false" visibility="public"
  72709. deprecated="not deprecated">
  72710. <param name="name" type="java.lang.String"/>
  72711. </method>
  72712. <field name="SUCCESS" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72713. transient="false" volatile="false"
  72714. static="true" final="true" visibility="public"
  72715. deprecated="not deprecated">
  72716. </field>
  72717. <field name="FAILED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72718. transient="false" volatile="false"
  72719. static="true" final="true" visibility="public"
  72720. deprecated="not deprecated">
  72721. </field>
  72722. <field name="KILLED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72723. transient="false" volatile="false"
  72724. static="true" final="true" visibility="public"
  72725. deprecated="not deprecated">
  72726. </field>
  72727. <field name="MAP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72728. transient="false" volatile="false"
  72729. static="true" final="true" visibility="public"
  72730. deprecated="not deprecated">
  72731. </field>
  72732. <field name="REDUCE" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72733. transient="false" volatile="false"
  72734. static="true" final="true" visibility="public"
  72735. deprecated="not deprecated">
  72736. </field>
  72737. <field name="CLEANUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72738. transient="false" volatile="false"
  72739. static="true" final="true" visibility="public"
  72740. deprecated="not deprecated">
  72741. </field>
  72742. <field name="RUNNING" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72743. transient="false" volatile="false"
  72744. static="true" final="true" visibility="public"
  72745. deprecated="not deprecated">
  72746. </field>
  72747. <field name="PREP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72748. transient="false" volatile="false"
  72749. static="true" final="true" visibility="public"
  72750. deprecated="not deprecated">
  72751. </field>
  72752. <field name="SETUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72753. transient="false" volatile="false"
  72754. static="true" final="true" visibility="public"
  72755. deprecated="not deprecated">
  72756. </field>
  72757. <doc>
  72758. <![CDATA[This enum contains some of the values commonly used by history log events.
  72759. since values in history can only be strings - Values.name() is used in
  72760. most places in history file.]]>
  72761. </doc>
  72762. </class>
  72763. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  72764. <!-- start class org.apache.hadoop.tools.rumen.RackNode -->
  72765. <class name="RackNode" extends="org.apache.hadoop.tools.rumen.Node"
  72766. abstract="false"
  72767. static="false" final="true" visibility="public"
  72768. deprecated="not deprecated">
  72769. <constructor name="RackNode" type="java.lang.String, int"
  72770. static="false" final="false" visibility="public"
  72771. deprecated="not deprecated">
  72772. </constructor>
  72773. <method name="addChild" return="boolean"
  72774. abstract="false" native="false" synchronized="true"
  72775. static="false" final="false" visibility="public"
  72776. deprecated="not deprecated">
  72777. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  72778. </method>
  72779. <method name="getMachinesInRack" return="java.util.Set"
  72780. abstract="false" native="false" synchronized="false"
  72781. static="false" final="false" visibility="public"
  72782. deprecated="not deprecated">
  72783. <doc>
  72784. <![CDATA[Get the machine nodes that belong to the rack.
  72785. @return The machine nodes that belong to the rack.]]>
  72786. </doc>
  72787. </method>
  72788. <doc>
  72789. <![CDATA[{@link RackNode} represents a rack node in the cluster topology.]]>
  72790. </doc>
  72791. </class>
  72792. <!-- end class org.apache.hadoop.tools.rumen.RackNode -->
  72793. <!-- start class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  72794. <class name="RandomSeedGenerator" extends="java.lang.Object"
  72795. abstract="false"
  72796. static="false" final="false" visibility="public"
  72797. deprecated="not deprecated">
  72798. <constructor name="RandomSeedGenerator"
  72799. static="false" final="false" visibility="public"
  72800. deprecated="not deprecated">
  72801. </constructor>
  72802. <method name="getSeed" return="long"
  72803. abstract="false" native="false" synchronized="false"
  72804. static="true" final="false" visibility="public"
  72805. deprecated="not deprecated">
  72806. <param name="streamId" type="java.lang.String"/>
  72807. <param name="masterSeed" type="long"/>
  72808. <doc>
  72809. <![CDATA[Generates a new random seed.
  72810. @param streamId a string identifying the stream of random numbers
  72811. @param masterSeed higher level master random seed
  72812. @return the random seed. Different (streamId, masterSeed) pairs result in
  72813. (vastly) different random seeds.]]>
  72814. </doc>
  72815. </method>
  72816. <doc>
  72817. <![CDATA[The purpose of this class is to generate new random seeds from a master
  72818. seed. This is needed to make the Random().next*() calls in rumen and mumak
  72819. deterministic so that mumak simulations become deterministically replayable.
  72820. In these tools we need many independent streams of random numbers, some of
  72821. which are created dynamically. We seed these streams with the sub-seeds
  72822. returned by RandomSeedGenerator.
  72823. For a slightly more complicated approach to generating multiple streams of
  72824. random numbers with better theoretical guarantees, see
  72825. P. L'Ecuyer, R. Simard, E. J. Chen, and W. D. Kelton,
  72826. ``An Objected-Oriented Random-Number Package with Many Long Streams and
  72827. Substreams'', Operations Research, 50, 6 (2002), 1073--1075
  72828. http://www.iro.umontreal.ca/~lecuyer/papers.html
  72829. http://www.iro.umontreal.ca/~lecuyer/myftp/streams00/]]>
  72830. </doc>
  72831. </class>
  72832. <!-- end class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  72833. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  72834. <class name="ReduceAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  72835. abstract="false"
  72836. static="false" final="false" visibility="public"
  72837. deprecated="not deprecated">
  72838. </class>
  72839. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  72840. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  72841. <class name="ReduceAttemptFinishedEvent" extends="java.lang.Object"
  72842. abstract="false"
  72843. static="false" final="false" visibility="public"
  72844. deprecated="not deprecated">
  72845. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  72846. <constructor name="ReduceAttemptFinishedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, long, long, java.lang.String, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  72847. static="false" final="false" visibility="public"
  72848. deprecated="not deprecated">
  72849. <doc>
  72850. <![CDATA[Create an event to record completion of a reduce attempt
  72851. @param id Attempt Id
  72852. @param taskType Type of task
  72853. @param taskStatus Status of the task
  72854. @param shuffleFinishTime Finish time of the shuffle phase
  72855. @param sortFinishTime Finish time of the sort phase
  72856. @param finishTime Finish time of the attempt
  72857. @param hostname Name of the host where the attempt executed
  72858. @param state State of the attempt
  72859. @param counters Counters for the attempt]]>
  72860. </doc>
  72861. </constructor>
  72862. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  72863. abstract="false" native="false" synchronized="false"
  72864. static="false" final="false" visibility="public"
  72865. deprecated="not deprecated">
  72866. <doc>
  72867. <![CDATA[Get the Task ID]]>
  72868. </doc>
  72869. </method>
  72870. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  72871. abstract="false" native="false" synchronized="false"
  72872. static="false" final="false" visibility="public"
  72873. deprecated="not deprecated">
  72874. <doc>
  72875. <![CDATA[Get the attempt id]]>
  72876. </doc>
  72877. </method>
  72878. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  72879. abstract="false" native="false" synchronized="false"
  72880. static="false" final="false" visibility="public"
  72881. deprecated="not deprecated">
  72882. <doc>
  72883. <![CDATA[Get the task type]]>
  72884. </doc>
  72885. </method>
  72886. <method name="getTaskStatus" return="java.lang.String"
  72887. abstract="false" native="false" synchronized="false"
  72888. static="false" final="false" visibility="public"
  72889. deprecated="not deprecated">
  72890. <doc>
  72891. <![CDATA[Get the task status]]>
  72892. </doc>
  72893. </method>
  72894. <method name="getSortFinishTime" return="long"
  72895. abstract="false" native="false" synchronized="false"
  72896. static="false" final="false" visibility="public"
  72897. deprecated="not deprecated">
  72898. <doc>
  72899. <![CDATA[Get the finish time of the sort phase]]>
  72900. </doc>
  72901. </method>
  72902. <method name="getShuffleFinishTime" return="long"
  72903. abstract="false" native="false" synchronized="false"
  72904. static="false" final="false" visibility="public"
  72905. deprecated="not deprecated">
  72906. <doc>
  72907. <![CDATA[Get the finish time of the shuffle phase]]>
  72908. </doc>
  72909. </method>
  72910. <method name="getFinishTime" return="long"
  72911. abstract="false" native="false" synchronized="false"
  72912. static="false" final="false" visibility="public"
  72913. deprecated="not deprecated">
  72914. <doc>
  72915. <![CDATA[Get the finish time of the attempt]]>
  72916. </doc>
  72917. </method>
  72918. <method name="getHostname" return="java.lang.String"
  72919. abstract="false" native="false" synchronized="false"
  72920. static="false" final="false" visibility="public"
  72921. deprecated="not deprecated">
  72922. <doc>
  72923. <![CDATA[Get the name of the host where the attempt ran]]>
  72924. </doc>
  72925. </method>
  72926. <method name="getState" return="java.lang.String"
  72927. abstract="false" native="false" synchronized="false"
  72928. static="false" final="false" visibility="public"
  72929. deprecated="not deprecated">
  72930. <doc>
  72931. <![CDATA[Get the state string]]>
  72932. </doc>
  72933. </method>
  72934. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  72935. abstract="false" native="false" synchronized="false"
  72936. static="false" final="false" visibility="public"
  72937. deprecated="not deprecated">
  72938. <doc>
  72939. <![CDATA[Get the counters for the attempt]]>
  72940. </doc>
  72941. </method>
  72942. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  72943. abstract="false" native="false" synchronized="false"
  72944. static="false" final="false" visibility="public"
  72945. deprecated="not deprecated">
  72946. <doc>
  72947. <![CDATA[Get the event type]]>
  72948. </doc>
  72949. </method>
  72950. <doc>
  72951. <![CDATA[Event to record successful completion of a reduce attempt]]>
  72952. </doc>
  72953. </class>
  72954. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  72955. <!-- start class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  72956. <class name="ReduceTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  72957. abstract="false"
  72958. static="false" final="false" visibility="public"
  72959. deprecated="not deprecated">
  72960. <constructor name="ReduceTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long, long, long"
  72961. static="false" final="false" visibility="public"
  72962. deprecated="not deprecated">
  72963. </constructor>
  72964. <method name="getReduceRuntime" return="long"
  72965. abstract="false" native="false" synchronized="false"
  72966. static="false" final="false" visibility="public"
  72967. deprecated="not deprecated">
  72968. <doc>
  72969. <![CDATA[Get the runtime for the <b>reduce</b> phase of the reduce task-attempt.
  72970. @return the runtime for the <b>reduce</b> phase of the reduce task-attempt]]>
  72971. </doc>
  72972. </method>
  72973. <method name="getShuffleRuntime" return="long"
  72974. abstract="false" native="false" synchronized="false"
  72975. static="false" final="false" visibility="public"
  72976. deprecated="not deprecated">
  72977. <doc>
  72978. <![CDATA[Get the runtime for the <b>shuffle</b> phase of the reduce task-attempt.
  72979. @return the runtime for the <b>shuffle</b> phase of the reduce task-attempt]]>
  72980. </doc>
  72981. </method>
  72982. <method name="getMergeRuntime" return="long"
  72983. abstract="false" native="false" synchronized="false"
  72984. static="false" final="false" visibility="public"
  72985. deprecated="not deprecated">
  72986. <doc>
  72987. <![CDATA[Get the runtime for the <b>merge</b> phase of the reduce task-attempt
  72988. @return the runtime for the <b>merge</b> phase of the reduce task-attempt]]>
  72989. </doc>
  72990. </method>
  72991. <method name="getRuntime" return="long"
  72992. abstract="false" native="false" synchronized="false"
  72993. static="false" final="false" visibility="public"
  72994. deprecated="not deprecated">
  72995. </method>
  72996. <doc>
  72997. <![CDATA[{@link ReduceTaskAttemptInfo} represents the information with regard to a
  72998. reduce task attempt.]]>
  72999. </doc>
  73000. </class>
  73001. <!-- end class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  73002. <!-- start class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  73003. <class name="RewindableInputStream" extends="java.io.InputStream"
  73004. abstract="false"
  73005. static="false" final="false" visibility="public"
  73006. deprecated="not deprecated">
  73007. <constructor name="RewindableInputStream" type="java.io.InputStream"
  73008. static="false" final="false" visibility="public"
  73009. deprecated="not deprecated">
  73010. <doc>
  73011. <![CDATA[Constructor.
  73012. @param input]]>
  73013. </doc>
  73014. </constructor>
  73015. <constructor name="RewindableInputStream" type="java.io.InputStream, int"
  73016. static="false" final="false" visibility="public"
  73017. deprecated="not deprecated">
  73018. <doc>
  73019. <![CDATA[Constructor
  73020. @param input
  73021. input stream.
  73022. @param maxBytesToRemember
  73023. Maximum number of bytes we need to remember at the beginning of
  73024. the stream. If {@link #rewind()} is called after so many bytes are
  73025. read from the stream, {@link #rewind()} would fail.]]>
  73026. </doc>
  73027. </constructor>
  73028. <method name="read" return="int"
  73029. abstract="false" native="false" synchronized="false"
  73030. static="false" final="false" visibility="public"
  73031. deprecated="not deprecated">
  73032. <exception name="IOException" type="java.io.IOException"/>
  73033. </method>
  73034. <method name="read" return="int"
  73035. abstract="false" native="false" synchronized="false"
  73036. static="false" final="false" visibility="public"
  73037. deprecated="not deprecated">
  73038. <param name="buffer" type="byte[]"/>
  73039. <param name="offset" type="int"/>
  73040. <param name="length" type="int"/>
  73041. <exception name="IOException" type="java.io.IOException"/>
  73042. </method>
  73043. <method name="close"
  73044. abstract="false" native="false" synchronized="false"
  73045. static="false" final="false" visibility="public"
  73046. deprecated="not deprecated">
  73047. <exception name="IOException" type="java.io.IOException"/>
  73048. </method>
  73049. <method name="rewind" return="java.io.InputStream"
  73050. abstract="false" native="false" synchronized="false"
  73051. static="false" final="false" visibility="public"
  73052. deprecated="not deprecated">
  73053. <exception name="IOException" type="java.io.IOException"/>
  73054. </method>
  73055. <doc>
  73056. <![CDATA[A simple wrapper class to make any input stream "rewindable". It could be
  73057. made more memory efficient by grow the internal buffer adaptively.]]>
  73058. </doc>
  73059. </class>
  73060. <!-- end class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  73061. <!-- start class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  73062. <class name="Task20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  73063. abstract="false"
  73064. static="false" final="false" visibility="public"
  73065. deprecated="not deprecated">
  73066. <constructor name="Task20LineHistoryEventEmitter"
  73067. static="false" final="false" visibility="protected"
  73068. deprecated="not deprecated">
  73069. </constructor>
  73070. </class>
  73071. <!-- end class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  73072. <!-- start class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  73073. <class name="TaskAttempt20LineEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  73074. abstract="true"
  73075. static="false" final="false" visibility="public"
  73076. deprecated="not deprecated">
  73077. <constructor name="TaskAttempt20LineEventEmitter"
  73078. static="false" final="false" visibility="protected"
  73079. deprecated="not deprecated">
  73080. </constructor>
  73081. </class>
  73082. <!-- end class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  73083. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  73084. <class name="TaskAttemptFinishedEvent" extends="java.lang.Object"
  73085. abstract="false"
  73086. static="false" final="false" visibility="public"
  73087. deprecated="not deprecated">
  73088. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73089. <constructor name="TaskAttemptFinishedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, java.lang.String, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  73090. static="false" final="false" visibility="public"
  73091. deprecated="not deprecated">
  73092. <doc>
  73093. <![CDATA[Create an event to record successful finishes for setup and cleanup
  73094. attempts
  73095. @param id Attempt ID
  73096. @param taskType Type of task
  73097. @param taskStatus Status of task
  73098. @param finishTime Finish time of attempt
  73099. @param hostname Host where the attempt executed
  73100. @param state State string
  73101. @param counters Counters for the attempt]]>
  73102. </doc>
  73103. </constructor>
  73104. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73105. abstract="false" native="false" synchronized="false"
  73106. static="false" final="false" visibility="public"
  73107. deprecated="not deprecated">
  73108. <doc>
  73109. <![CDATA[Get the task ID]]>
  73110. </doc>
  73111. </method>
  73112. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  73113. abstract="false" native="false" synchronized="false"
  73114. static="false" final="false" visibility="public"
  73115. deprecated="not deprecated">
  73116. <doc>
  73117. <![CDATA[Get the task attempt id]]>
  73118. </doc>
  73119. </method>
  73120. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73121. abstract="false" native="false" synchronized="false"
  73122. static="false" final="false" visibility="public"
  73123. deprecated="not deprecated">
  73124. <doc>
  73125. <![CDATA[Get the task type]]>
  73126. </doc>
  73127. </method>
  73128. <method name="getTaskStatus" return="java.lang.String"
  73129. abstract="false" native="false" synchronized="false"
  73130. static="false" final="false" visibility="public"
  73131. deprecated="not deprecated">
  73132. <doc>
  73133. <![CDATA[Get the task status]]>
  73134. </doc>
  73135. </method>
  73136. <method name="getFinishTime" return="long"
  73137. abstract="false" native="false" synchronized="false"
  73138. static="false" final="false" visibility="public"
  73139. deprecated="not deprecated">
  73140. <doc>
  73141. <![CDATA[Get the attempt finish time]]>
  73142. </doc>
  73143. </method>
  73144. <method name="getHostname" return="java.lang.String"
  73145. abstract="false" native="false" synchronized="false"
  73146. static="false" final="false" visibility="public"
  73147. deprecated="not deprecated">
  73148. <doc>
  73149. <![CDATA[Get the host where the attempt executed]]>
  73150. </doc>
  73151. </method>
  73152. <method name="getState" return="java.lang.String"
  73153. abstract="false" native="false" synchronized="false"
  73154. static="false" final="false" visibility="public"
  73155. deprecated="not deprecated">
  73156. <doc>
  73157. <![CDATA[Get the state string]]>
  73158. </doc>
  73159. </method>
  73160. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  73161. abstract="false" native="false" synchronized="false"
  73162. static="false" final="false" visibility="public"
  73163. deprecated="not deprecated">
  73164. <doc>
  73165. <![CDATA[Get the counters for the attempt]]>
  73166. </doc>
  73167. </method>
  73168. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73169. abstract="false" native="false" synchronized="false"
  73170. static="false" final="false" visibility="public"
  73171. deprecated="not deprecated">
  73172. <doc>
  73173. <![CDATA[Get the event type]]>
  73174. </doc>
  73175. </method>
  73176. <doc>
  73177. <![CDATA[Event to record successful task completion]]>
  73178. </doc>
  73179. </class>
  73180. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  73181. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  73182. <class name="TaskAttemptInfo" extends="java.lang.Object"
  73183. abstract="true"
  73184. static="false" final="false" visibility="public"
  73185. deprecated="not deprecated">
  73186. <constructor name="TaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo"
  73187. static="false" final="false" visibility="protected"
  73188. deprecated="not deprecated">
  73189. </constructor>
  73190. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  73191. abstract="false" native="false" synchronized="false"
  73192. static="false" final="false" visibility="public"
  73193. deprecated="not deprecated">
  73194. <doc>
  73195. <![CDATA[Get the final {@link TaskStatus.State} of the task-attempt.
  73196. @return the final <code>State</code> of the task-attempt]]>
  73197. </doc>
  73198. </method>
  73199. <method name="getRuntime" return="long"
  73200. abstract="true" native="false" synchronized="false"
  73201. static="false" final="false" visibility="public"
  73202. deprecated="not deprecated">
  73203. <doc>
  73204. <![CDATA[Get the total runtime for the task-attempt.
  73205. @return the total runtime for the task-attempt]]>
  73206. </doc>
  73207. </method>
  73208. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  73209. abstract="false" native="false" synchronized="false"
  73210. static="false" final="false" visibility="public"
  73211. deprecated="not deprecated">
  73212. <doc>
  73213. <![CDATA[Get the {@link TaskInfo} for the given task-attempt.
  73214. @return the <code>TaskInfo</code> for the given task-attempt]]>
  73215. </doc>
  73216. </method>
  73217. <field name="state" type="org.apache.hadoop.mapred.TaskStatus.State"
  73218. transient="false" volatile="false"
  73219. static="false" final="true" visibility="protected"
  73220. deprecated="not deprecated">
  73221. </field>
  73222. <field name="taskInfo" type="org.apache.hadoop.tools.rumen.TaskInfo"
  73223. transient="false" volatile="false"
  73224. static="false" final="true" visibility="protected"
  73225. deprecated="not deprecated">
  73226. </field>
  73227. <doc>
  73228. <![CDATA[{@link TaskAttemptInfo} is a collection of statistics about a particular
  73229. task-attempt gleaned from job-history of the job.]]>
  73230. </doc>
  73231. </class>
  73232. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  73233. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  73234. <class name="TaskAttemptStartedEvent" extends="java.lang.Object"
  73235. abstract="false"
  73236. static="false" final="false" visibility="public"
  73237. deprecated="not deprecated">
  73238. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73239. <constructor name="TaskAttemptStartedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, long, java.lang.String, int"
  73240. static="false" final="false" visibility="public"
  73241. deprecated="not deprecated">
  73242. <doc>
  73243. <![CDATA[Create an event to record the start of an attempt
  73244. @param attemptId Id of the attempt
  73245. @param taskType Type of task
  73246. @param startTime Start time of the attempt
  73247. @param trackerName Name of the Task Tracker where attempt is running
  73248. @param httpPort The port number of the tracker]]>
  73249. </doc>
  73250. </constructor>
  73251. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73252. abstract="false" native="false" synchronized="false"
  73253. static="false" final="false" visibility="public"
  73254. deprecated="not deprecated">
  73255. <doc>
  73256. <![CDATA[Get the task id]]>
  73257. </doc>
  73258. </method>
  73259. <method name="getTrackerName" return="java.lang.String"
  73260. abstract="false" native="false" synchronized="false"
  73261. static="false" final="false" visibility="public"
  73262. deprecated="not deprecated">
  73263. <doc>
  73264. <![CDATA[Get the tracker name]]>
  73265. </doc>
  73266. </method>
  73267. <method name="getStartTime" return="long"
  73268. abstract="false" native="false" synchronized="false"
  73269. static="false" final="false" visibility="public"
  73270. deprecated="not deprecated">
  73271. <doc>
  73272. <![CDATA[Get the start time]]>
  73273. </doc>
  73274. </method>
  73275. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73276. abstract="false" native="false" synchronized="false"
  73277. static="false" final="false" visibility="public"
  73278. deprecated="not deprecated">
  73279. <doc>
  73280. <![CDATA[Get the task type]]>
  73281. </doc>
  73282. </method>
  73283. <method name="getHttpPort" return="int"
  73284. abstract="false" native="false" synchronized="false"
  73285. static="false" final="false" visibility="public"
  73286. deprecated="not deprecated">
  73287. <doc>
  73288. <![CDATA[Get the HTTP port]]>
  73289. </doc>
  73290. </method>
  73291. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  73292. abstract="false" native="false" synchronized="false"
  73293. static="false" final="false" visibility="public"
  73294. deprecated="not deprecated">
  73295. <doc>
  73296. <![CDATA[Get the attempt id]]>
  73297. </doc>
  73298. </method>
  73299. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73300. abstract="false" native="false" synchronized="false"
  73301. static="false" final="false" visibility="public"
  73302. deprecated="not deprecated">
  73303. <doc>
  73304. <![CDATA[Get the event type]]>
  73305. </doc>
  73306. </method>
  73307. <doc>
  73308. <![CDATA[Event to record start of a task attempt]]>
  73309. </doc>
  73310. </class>
  73311. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  73312. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  73313. <class name="TaskAttemptUnsuccessfulCompletionEvent" extends="java.lang.Object"
  73314. abstract="false"
  73315. static="false" final="false" visibility="public"
  73316. deprecated="not deprecated">
  73317. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73318. <constructor name="TaskAttemptUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, java.lang.String, java.lang.String"
  73319. static="false" final="false" visibility="public"
  73320. deprecated="not deprecated">
  73321. <doc>
  73322. <![CDATA[Create an event to record the unsuccessful completion of attempts
  73323. @param id Attempt ID
  73324. @param taskType Type of the task
  73325. @param status Status of the attempt
  73326. @param finishTime Finish time of the attempt
  73327. @param hostname Name of the host where the attempt executed
  73328. @param error Error string]]>
  73329. </doc>
  73330. </constructor>
  73331. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73332. abstract="false" native="false" synchronized="false"
  73333. static="false" final="false" visibility="public"
  73334. deprecated="not deprecated">
  73335. <doc>
  73336. <![CDATA[Get the task id]]>
  73337. </doc>
  73338. </method>
  73339. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73340. abstract="false" native="false" synchronized="false"
  73341. static="false" final="false" visibility="public"
  73342. deprecated="not deprecated">
  73343. <doc>
  73344. <![CDATA[Get the task type]]>
  73345. </doc>
  73346. </method>
  73347. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  73348. abstract="false" native="false" synchronized="false"
  73349. static="false" final="false" visibility="public"
  73350. deprecated="not deprecated">
  73351. <doc>
  73352. <![CDATA[Get the attempt id]]>
  73353. </doc>
  73354. </method>
  73355. <method name="getFinishTime" return="long"
  73356. abstract="false" native="false" synchronized="false"
  73357. static="false" final="false" visibility="public"
  73358. deprecated="not deprecated">
  73359. <doc>
  73360. <![CDATA[Get the finish time]]>
  73361. </doc>
  73362. </method>
  73363. <method name="getHostname" return="java.lang.String"
  73364. abstract="false" native="false" synchronized="false"
  73365. static="false" final="false" visibility="public"
  73366. deprecated="not deprecated">
  73367. <doc>
  73368. <![CDATA[Get the name of the host where the attempt executed]]>
  73369. </doc>
  73370. </method>
  73371. <method name="getError" return="java.lang.String"
  73372. abstract="false" native="false" synchronized="false"
  73373. static="false" final="false" visibility="public"
  73374. deprecated="not deprecated">
  73375. <doc>
  73376. <![CDATA[Get the error string]]>
  73377. </doc>
  73378. </method>
  73379. <method name="getTaskStatus" return="java.lang.String"
  73380. abstract="false" native="false" synchronized="false"
  73381. static="false" final="false" visibility="public"
  73382. deprecated="not deprecated">
  73383. <doc>
  73384. <![CDATA[Get the task status]]>
  73385. </doc>
  73386. </method>
  73387. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73388. abstract="false" native="false" synchronized="false"
  73389. static="false" final="false" visibility="public"
  73390. deprecated="not deprecated">
  73391. <doc>
  73392. <![CDATA[Get the event type]]>
  73393. </doc>
  73394. </method>
  73395. <doc>
  73396. <![CDATA[Event to record unsuccessful (Killed/Failed) completion of task attempts]]>
  73397. </doc>
  73398. </class>
  73399. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  73400. <!-- start class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  73401. <class name="TaskFailedEvent" extends="java.lang.Object"
  73402. abstract="false"
  73403. static="false" final="false" visibility="public"
  73404. deprecated="not deprecated">
  73405. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73406. <constructor name="TaskFailedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String, java.lang.String, org.apache.hadoop.mapreduce.TaskAttemptID"
  73407. static="false" final="false" visibility="public"
  73408. deprecated="not deprecated">
  73409. <doc>
  73410. <![CDATA[Create an event to record task failure
  73411. @param id Task ID
  73412. @param finishTime Finish time of the task
  73413. @param taskType Type of the task
  73414. @param error Error String
  73415. @param status Status
  73416. @param failedDueToAttempt The attempt id due to which the task failed]]>
  73417. </doc>
  73418. </constructor>
  73419. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73420. abstract="false" native="false" synchronized="false"
  73421. static="false" final="false" visibility="public"
  73422. deprecated="not deprecated">
  73423. <doc>
  73424. <![CDATA[Get the task id]]>
  73425. </doc>
  73426. </method>
  73427. <method name="getError" return="java.lang.String"
  73428. abstract="false" native="false" synchronized="false"
  73429. static="false" final="false" visibility="public"
  73430. deprecated="not deprecated">
  73431. <doc>
  73432. <![CDATA[Get the error string]]>
  73433. </doc>
  73434. </method>
  73435. <method name="getFinishTime" return="long"
  73436. abstract="false" native="false" synchronized="false"
  73437. static="false" final="false" visibility="public"
  73438. deprecated="not deprecated">
  73439. <doc>
  73440. <![CDATA[Get the finish time of the attempt]]>
  73441. </doc>
  73442. </method>
  73443. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73444. abstract="false" native="false" synchronized="false"
  73445. static="false" final="false" visibility="public"
  73446. deprecated="not deprecated">
  73447. <doc>
  73448. <![CDATA[Get the task type]]>
  73449. </doc>
  73450. </method>
  73451. <method name="getFailedAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  73452. abstract="false" native="false" synchronized="false"
  73453. static="false" final="false" visibility="public"
  73454. deprecated="not deprecated">
  73455. <doc>
  73456. <![CDATA[Get the attempt id due to which the task failed]]>
  73457. </doc>
  73458. </method>
  73459. <method name="getTaskStatus" return="java.lang.String"
  73460. abstract="false" native="false" synchronized="false"
  73461. static="false" final="false" visibility="public"
  73462. deprecated="not deprecated">
  73463. <doc>
  73464. <![CDATA[Get the task status]]>
  73465. </doc>
  73466. </method>
  73467. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73468. abstract="false" native="false" synchronized="false"
  73469. static="false" final="false" visibility="public"
  73470. deprecated="not deprecated">
  73471. <doc>
  73472. <![CDATA[Get the event type]]>
  73473. </doc>
  73474. </method>
  73475. <doc>
  73476. <![CDATA[Event to record the failure of a task]]>
  73477. </doc>
  73478. </class>
  73479. <!-- end class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  73480. <!-- start class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  73481. <class name="TaskFinishedEvent" extends="java.lang.Object"
  73482. abstract="false"
  73483. static="false" final="false" visibility="public"
  73484. deprecated="not deprecated">
  73485. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73486. <constructor name="TaskFinishedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  73487. static="false" final="false" visibility="public"
  73488. deprecated="not deprecated">
  73489. <doc>
  73490. <![CDATA[Create an event to record the successful completion of a task
  73491. @param id Task ID
  73492. @param finishTime Finish time of the task
  73493. @param taskType Type of the task
  73494. @param status Status string
  73495. @param counters Counters for the task]]>
  73496. </doc>
  73497. </constructor>
  73498. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73499. abstract="false" native="false" synchronized="false"
  73500. static="false" final="false" visibility="public"
  73501. deprecated="not deprecated">
  73502. <doc>
  73503. <![CDATA[Get task id]]>
  73504. </doc>
  73505. </method>
  73506. <method name="getFinishTime" return="long"
  73507. abstract="false" native="false" synchronized="false"
  73508. static="false" final="false" visibility="public"
  73509. deprecated="not deprecated">
  73510. <doc>
  73511. <![CDATA[Get the task finish time]]>
  73512. </doc>
  73513. </method>
  73514. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  73515. abstract="false" native="false" synchronized="false"
  73516. static="false" final="false" visibility="public"
  73517. deprecated="not deprecated">
  73518. <doc>
  73519. <![CDATA[Get task counters]]>
  73520. </doc>
  73521. </method>
  73522. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73523. abstract="false" native="false" synchronized="false"
  73524. static="false" final="false" visibility="public"
  73525. deprecated="not deprecated">
  73526. <doc>
  73527. <![CDATA[Get task type]]>
  73528. </doc>
  73529. </method>
  73530. <method name="getTaskStatus" return="java.lang.String"
  73531. abstract="false" native="false" synchronized="false"
  73532. static="false" final="false" visibility="public"
  73533. deprecated="not deprecated">
  73534. <doc>
  73535. <![CDATA[Get task status]]>
  73536. </doc>
  73537. </method>
  73538. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73539. abstract="false" native="false" synchronized="false"
  73540. static="false" final="false" visibility="public"
  73541. deprecated="not deprecated">
  73542. <doc>
  73543. <![CDATA[Get event type]]>
  73544. </doc>
  73545. </method>
  73546. <doc>
  73547. <![CDATA[Event to record the successful completion of a task]]>
  73548. </doc>
  73549. </class>
  73550. <!-- end class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  73551. <!-- start class org.apache.hadoop.tools.rumen.TaskInfo -->
  73552. <class name="TaskInfo" extends="java.lang.Object"
  73553. abstract="false"
  73554. static="false" final="false" visibility="public"
  73555. deprecated="not deprecated">
  73556. <constructor name="TaskInfo" type="long, int, long, int, long"
  73557. static="false" final="false" visibility="public"
  73558. deprecated="not deprecated">
  73559. </constructor>
  73560. <method name="getInputBytes" return="long"
  73561. abstract="false" native="false" synchronized="false"
  73562. static="false" final="false" visibility="public"
  73563. deprecated="not deprecated">
  73564. <doc>
  73565. <![CDATA[@return Raw bytes read from the FileSystem into the task. Note that this
  73566. may not always match the input bytes to the task.]]>
  73567. </doc>
  73568. </method>
  73569. <method name="getInputRecords" return="int"
  73570. abstract="false" native="false" synchronized="false"
  73571. static="false" final="false" visibility="public"
  73572. deprecated="not deprecated">
  73573. <doc>
  73574. <![CDATA[@return Number of records input to this task.]]>
  73575. </doc>
  73576. </method>
  73577. <method name="getOutputBytes" return="long"
  73578. abstract="false" native="false" synchronized="false"
  73579. static="false" final="false" visibility="public"
  73580. deprecated="not deprecated">
  73581. <doc>
  73582. <![CDATA[@return Raw bytes written to the destination FileSystem. Note that this may
  73583. not match output bytes.]]>
  73584. </doc>
  73585. </method>
  73586. <method name="getOutputRecords" return="int"
  73587. abstract="false" native="false" synchronized="false"
  73588. static="false" final="false" visibility="public"
  73589. deprecated="not deprecated">
  73590. <doc>
  73591. <![CDATA[@return Number of records output from this task.]]>
  73592. </doc>
  73593. </method>
  73594. <method name="getTaskMemory" return="long"
  73595. abstract="false" native="false" synchronized="false"
  73596. static="false" final="false" visibility="public"
  73597. deprecated="not deprecated">
  73598. <doc>
  73599. <![CDATA[@return Memory used by the task leq the heap size.]]>
  73600. </doc>
  73601. </method>
  73602. </class>
  73603. <!-- end class org.apache.hadoop.tools.rumen.TaskInfo -->
  73604. <!-- start class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  73605. <class name="TaskStartedEvent" extends="java.lang.Object"
  73606. abstract="false"
  73607. static="false" final="false" visibility="public"
  73608. deprecated="not deprecated">
  73609. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73610. <constructor name="TaskStartedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String"
  73611. static="false" final="false" visibility="public"
  73612. deprecated="not deprecated">
  73613. <doc>
  73614. <![CDATA[Create an event to record start of a task
  73615. @param id Task Id
  73616. @param startTime Start time of the task
  73617. @param taskType Type of the task
  73618. @param splitLocations Split locations, applicable for map tasks]]>
  73619. </doc>
  73620. </constructor>
  73621. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73622. abstract="false" native="false" synchronized="false"
  73623. static="false" final="false" visibility="public"
  73624. deprecated="not deprecated">
  73625. <doc>
  73626. <![CDATA[Get the task id]]>
  73627. </doc>
  73628. </method>
  73629. <method name="getSplitLocations" return="java.lang.String"
  73630. abstract="false" native="false" synchronized="false"
  73631. static="false" final="false" visibility="public"
  73632. deprecated="not deprecated">
  73633. <doc>
  73634. <![CDATA[Get the split locations, applicable for map tasks]]>
  73635. </doc>
  73636. </method>
  73637. <method name="getStartTime" return="long"
  73638. abstract="false" native="false" synchronized="false"
  73639. static="false" final="false" visibility="public"
  73640. deprecated="not deprecated">
  73641. <doc>
  73642. <![CDATA[Get the start time of the task]]>
  73643. </doc>
  73644. </method>
  73645. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73646. abstract="false" native="false" synchronized="false"
  73647. static="false" final="false" visibility="public"
  73648. deprecated="not deprecated">
  73649. <doc>
  73650. <![CDATA[Get the task type]]>
  73651. </doc>
  73652. </method>
  73653. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73654. abstract="false" native="false" synchronized="false"
  73655. static="false" final="false" visibility="public"
  73656. deprecated="not deprecated">
  73657. <doc>
  73658. <![CDATA[Get the event type]]>
  73659. </doc>
  73660. </method>
  73661. <doc>
  73662. <![CDATA[Event to record the start of a task]]>
  73663. </doc>
  73664. </class>
  73665. <!-- end class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  73666. <!-- start class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  73667. <class name="TaskUpdatedEvent" extends="java.lang.Object"
  73668. abstract="false"
  73669. static="false" final="false" visibility="public"
  73670. deprecated="not deprecated">
  73671. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73672. <constructor name="TaskUpdatedEvent" type="org.apache.hadoop.mapreduce.TaskID, long"
  73673. static="false" final="false" visibility="public"
  73674. deprecated="not deprecated">
  73675. <doc>
  73676. <![CDATA[Create an event to record task updates
  73677. @param id Id of the task
  73678. @param finishTime Finish time of the task]]>
  73679. </doc>
  73680. </constructor>
  73681. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73682. abstract="false" native="false" synchronized="false"
  73683. static="false" final="false" visibility="public"
  73684. deprecated="not deprecated">
  73685. <doc>
  73686. <![CDATA[Get the task ID]]>
  73687. </doc>
  73688. </method>
  73689. <method name="getFinishTime" return="long"
  73690. abstract="false" native="false" synchronized="false"
  73691. static="false" final="false" visibility="public"
  73692. deprecated="not deprecated">
  73693. <doc>
  73694. <![CDATA[Get the task finish time]]>
  73695. </doc>
  73696. </method>
  73697. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73698. abstract="false" native="false" synchronized="false"
  73699. static="false" final="false" visibility="public"
  73700. deprecated="not deprecated">
  73701. <doc>
  73702. <![CDATA[Get the event type]]>
  73703. </doc>
  73704. </method>
  73705. <doc>
  73706. <![CDATA[Event to record updates to a task]]>
  73707. </doc>
  73708. </class>
  73709. <!-- end class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  73710. <!-- start class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  73711. <class name="TopologyBuilder" extends="java.lang.Object"
  73712. abstract="false"
  73713. static="false" final="false" visibility="public"
  73714. deprecated="not deprecated">
  73715. <constructor name="TopologyBuilder"
  73716. static="false" final="false" visibility="public"
  73717. deprecated="not deprecated">
  73718. </constructor>
  73719. <method name="process"
  73720. abstract="false" native="false" synchronized="false"
  73721. static="false" final="false" visibility="public"
  73722. deprecated="not deprecated">
  73723. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73724. <doc>
  73725. <![CDATA[Process one {@link HistoryEvent}
  73726. @param event
  73727. The {@link HistoryEvent} to be processed.]]>
  73728. </doc>
  73729. </method>
  73730. <method name="process"
  73731. abstract="false" native="false" synchronized="false"
  73732. static="false" final="false" visibility="public"
  73733. deprecated="not deprecated">
  73734. <param name="conf" type="java.util.Properties"/>
  73735. <doc>
  73736. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  73737. to be called once.
  73738. @param conf
  73739. The job conf properties to be added.]]>
  73740. </doc>
  73741. </method>
  73742. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  73743. abstract="false" native="false" synchronized="false"
  73744. static="false" final="false" visibility="public"
  73745. deprecated="not deprecated">
  73746. <doc>
  73747. <![CDATA[Request the builder to build the final object. Once called, the
  73748. {@link TopologyBuilder} would accept no more events or job-conf properties.
  73749. @return Parsed {@link LoggedNetworkTopology} object.]]>
  73750. </doc>
  73751. </method>
  73752. <doc>
  73753. <![CDATA[Building the cluster topology.]]>
  73754. </doc>
  73755. </class>
  73756. <!-- end class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  73757. <!-- start class org.apache.hadoop.tools.rumen.TraceBuilder -->
  73758. <class name="TraceBuilder" extends="org.apache.hadoop.conf.Configured"
  73759. abstract="false"
  73760. static="false" final="false" visibility="public"
  73761. deprecated="not deprecated">
  73762. <implements name="org.apache.hadoop.util.Tool"/>
  73763. <constructor name="TraceBuilder"
  73764. static="false" final="false" visibility="public"
  73765. deprecated="not deprecated">
  73766. </constructor>
  73767. <method name="main"
  73768. abstract="false" native="false" synchronized="false"
  73769. static="true" final="false" visibility="public"
  73770. deprecated="not deprecated">
  73771. <param name="args" type="java.lang.String[]"/>
  73772. </method>
  73773. <method name="run" return="int"
  73774. abstract="false" native="false" synchronized="false"
  73775. static="false" final="false" visibility="public"
  73776. deprecated="not deprecated">
  73777. <param name="args" type="java.lang.String[]"/>
  73778. <exception name="Exception" type="java.lang.Exception"/>
  73779. </method>
  73780. <doc>
  73781. <![CDATA[The main driver of the Rumen Parser.]]>
  73782. </doc>
  73783. </class>
  73784. <!-- end class org.apache.hadoop.tools.rumen.TraceBuilder -->
  73785. <!-- start class org.apache.hadoop.tools.rumen.TreePath -->
  73786. <class name="TreePath" extends="java.lang.Object"
  73787. abstract="false"
  73788. static="false" final="false" visibility="public"
  73789. deprecated="not deprecated">
  73790. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String"
  73791. static="false" final="false" visibility="public"
  73792. deprecated="not deprecated">
  73793. </constructor>
  73794. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String, int"
  73795. static="false" final="false" visibility="public"
  73796. deprecated="not deprecated">
  73797. </constructor>
  73798. <method name="toString" return="java.lang.String"
  73799. abstract="false" native="false" synchronized="false"
  73800. static="false" final="false" visibility="public"
  73801. deprecated="not deprecated">
  73802. </method>
  73803. <doc>
  73804. <![CDATA[This describes a path from a node to the root. We use it when we compare two
  73805. trees during rumen unit tests. If the trees are not identical, this chain
  73806. will be converted to a string which describes the path from the root to the
  73807. fields that did not compare.]]>
  73808. </doc>
  73809. </class>
  73810. <!-- end class org.apache.hadoop.tools.rumen.TreePath -->
  73811. <!-- start class org.apache.hadoop.tools.rumen.ZombieCluster -->
  73812. <class name="ZombieCluster" extends="org.apache.hadoop.tools.rumen.AbstractClusterStory"
  73813. abstract="false"
  73814. static="false" final="false" visibility="public"
  73815. deprecated="not deprecated">
  73816. <constructor name="ZombieCluster" type="org.apache.hadoop.tools.rumen.LoggedNetworkTopology, org.apache.hadoop.tools.rumen.MachineNode"
  73817. static="false" final="false" visibility="public"
  73818. deprecated="not deprecated">
  73819. <doc>
  73820. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  73821. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  73822. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  73823. @param topology
  73824. The network topology.
  73825. @param defaultNode
  73826. The default node setting.]]>
  73827. </doc>
  73828. </constructor>
  73829. <constructor name="ZombieCluster" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.MachineNode, org.apache.hadoop.conf.Configuration"
  73830. static="false" final="false" visibility="public"
  73831. deprecated="not deprecated">
  73832. <exception name="IOException" type="java.io.IOException"/>
  73833. <doc>
  73834. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  73835. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  73836. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  73837. @param path Path to the JSON-encoded topology file.
  73838. @param conf
  73839. @param defaultNode
  73840. The default node setting.
  73841. @throws IOException]]>
  73842. </doc>
  73843. </constructor>
  73844. <constructor name="ZombieCluster" type="java.io.InputStream, org.apache.hadoop.tools.rumen.MachineNode"
  73845. static="false" final="false" visibility="public"
  73846. deprecated="not deprecated">
  73847. <exception name="IOException" type="java.io.IOException"/>
  73848. <doc>
  73849. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  73850. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  73851. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  73852. @param input The input stream for the JSON-encoded topology file.
  73853. @param defaultNode
  73854. The default node setting.
  73855. @throws IOException]]>
  73856. </doc>
  73857. </constructor>
  73858. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  73859. abstract="false" native="false" synchronized="false"
  73860. static="false" final="false" visibility="public"
  73861. deprecated="not deprecated">
  73862. </method>
  73863. <doc>
  73864. <![CDATA[{@link ZombieCluster} rebuilds the cluster topology using the information
  73865. obtained from job history logs.]]>
  73866. </doc>
  73867. </class>
  73868. <!-- end class org.apache.hadoop.tools.rumen.ZombieCluster -->
  73869. <!-- start class org.apache.hadoop.tools.rumen.ZombieJob -->
  73870. <class name="ZombieJob" extends="java.lang.Object"
  73871. abstract="false"
  73872. static="false" final="false" visibility="public"
  73873. deprecated="not deprecated">
  73874. <implements name="org.apache.hadoop.tools.rumen.JobStory"/>
  73875. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory, long"
  73876. static="false" final="false" visibility="public"
  73877. deprecated="not deprecated">
  73878. <doc>
  73879. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  73880. {@link LoggedJob} passed in this parameter
  73881. @param job
  73882. The dead job this ZombieJob instance is based on.
  73883. @param cluster
  73884. The cluster topology where the dead job ran on. This argument can
  73885. be null if we do not have knowledge of the cluster topology.
  73886. @param seed
  73887. Seed for the random number generator for filling in information
  73888. not available from the ZombieJob.]]>
  73889. </doc>
  73890. </constructor>
  73891. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory"
  73892. static="false" final="false" visibility="public"
  73893. deprecated="not deprecated">
  73894. <doc>
  73895. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  73896. {@link LoggedJob} passed in this parameter
  73897. @param job
  73898. The dead job this ZombieJob instance is based on.
  73899. @param cluster
  73900. The cluster topology where the dead job ran on. This argument can
  73901. be null if we do not have knowledge of the cluster topology.]]>
  73902. </doc>
  73903. </constructor>
  73904. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  73905. abstract="false" native="false" synchronized="true"
  73906. static="false" final="false" visibility="public"
  73907. deprecated="not deprecated">
  73908. </method>
  73909. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  73910. abstract="false" native="false" synchronized="false"
  73911. static="false" final="false" visibility="public"
  73912. deprecated="not deprecated">
  73913. </method>
  73914. <method name="getName" return="java.lang.String"
  73915. abstract="false" native="false" synchronized="false"
  73916. static="false" final="false" visibility="public"
  73917. deprecated="not deprecated">
  73918. </method>
  73919. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  73920. abstract="false" native="false" synchronized="false"
  73921. static="false" final="false" visibility="public"
  73922. deprecated="not deprecated">
  73923. </method>
  73924. <method name="getNumberMaps" return="int"
  73925. abstract="false" native="false" synchronized="false"
  73926. static="false" final="false" visibility="public"
  73927. deprecated="not deprecated">
  73928. </method>
  73929. <method name="getNumberReduces" return="int"
  73930. abstract="false" native="false" synchronized="false"
  73931. static="false" final="false" visibility="public"
  73932. deprecated="not deprecated">
  73933. </method>
  73934. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  73935. abstract="false" native="false" synchronized="false"
  73936. static="false" final="false" visibility="public"
  73937. deprecated="not deprecated">
  73938. </method>
  73939. <method name="getSubmissionTime" return="long"
  73940. abstract="false" native="false" synchronized="false"
  73941. static="false" final="false" visibility="public"
  73942. deprecated="not deprecated">
  73943. </method>
  73944. <method name="getQueueName" return="java.lang.String"
  73945. abstract="false" native="false" synchronized="false"
  73946. static="false" final="false" visibility="public"
  73947. deprecated="not deprecated">
  73948. </method>
  73949. <method name="getNumLoggedMaps" return="int"
  73950. abstract="false" native="false" synchronized="false"
  73951. static="false" final="false" visibility="public"
  73952. deprecated="not deprecated">
  73953. <doc>
  73954. <![CDATA[Getting the number of map tasks that are actually logged in the trace.
  73955. @return The number of map tasks that are actually logged in the trace.]]>
  73956. </doc>
  73957. </method>
  73958. <method name="getNumLoggedReduces" return="int"
  73959. abstract="false" native="false" synchronized="false"
  73960. static="false" final="false" visibility="public"
  73961. deprecated="not deprecated">
  73962. <doc>
  73963. <![CDATA[Getting the number of reduce tasks that are actually logged in the trace.
  73964. @return The number of map tasks that are actually logged in the trace.]]>
  73965. </doc>
  73966. </method>
  73967. <method name="getUser" return="java.lang.String"
  73968. abstract="false" native="false" synchronized="false"
  73969. static="false" final="false" visibility="public"
  73970. deprecated="not deprecated">
  73971. </method>
  73972. <method name="getLoggedJob" return="org.apache.hadoop.tools.rumen.LoggedJob"
  73973. abstract="false" native="false" synchronized="false"
  73974. static="false" final="false" visibility="public"
  73975. deprecated="not deprecated">
  73976. <doc>
  73977. <![CDATA[Get the underlining {@link LoggedJob} object read directly from the trace.
  73978. This is mainly for debugging.
  73979. @return the underlining {@link LoggedJob} object]]>
  73980. </doc>
  73981. </method>
  73982. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  73983. abstract="false" native="false" synchronized="false"
  73984. static="false" final="false" visibility="public"
  73985. deprecated="not deprecated">
  73986. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  73987. <param name="taskNumber" type="int"/>
  73988. <param name="taskAttemptNumber" type="int"/>
  73989. <doc>
  73990. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  73991. taskType, taskNumber, and taskAttemptNumber. This function does not care
  73992. about locality, and follows the following decision logic: 1. Make up a
  73993. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  73994. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  73995. trace, 3. Otherwise (final state is SUCCEEDED or FAILED), construct the
  73996. {@link TaskAttemptInfo} from the trace.]]>
  73997. </doc>
  73998. </method>
  73999. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  74000. abstract="false" native="false" synchronized="false"
  74001. static="false" final="false" visibility="public"
  74002. deprecated="not deprecated">
  74003. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  74004. <param name="taskNumber" type="int"/>
  74005. </method>
  74006. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  74007. abstract="false" native="false" synchronized="false"
  74008. static="false" final="false" visibility="public"
  74009. deprecated="not deprecated">
  74010. <param name="taskNumber" type="int"/>
  74011. <param name="taskAttemptNumber" type="int"/>
  74012. <param name="locality" type="int"/>
  74013. <doc>
  74014. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  74015. taskType, taskNumber, and taskAttemptNumber. This function considers
  74016. locality, and follows the following decision logic: 1. Make up a
  74017. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  74018. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  74019. trace, 3. If final state is FAILED, construct a {@link TaskAttemptInfo}
  74020. from the trace, without considering locality. 4. If final state is
  74021. SUCCEEDED, construct a {@link TaskAttemptInfo} from the trace, with runtime
  74022. scaled according to locality in simulation and locality in trace.]]>
  74023. </doc>
  74024. </method>
  74025. <doc>
  74026. <![CDATA[{@link ZombieJob} is a layer above {@link LoggedJob} raw JSON objects.
  74027. Each {@link ZombieJob} object represents a job in job history. For everything
  74028. that exists in job history, contents are returned unchanged faithfully. To
  74029. get input splits of a non-exist task, a non-exist task attempt, or an
  74030. ill-formed task attempt, proper objects are made up from statistical
  74031. sketches.]]>
  74032. </doc>
  74033. </class>
  74034. <!-- end class org.apache.hadoop.tools.rumen.ZombieJob -->
  74035. <!-- start class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  74036. <class name="ZombieJobProducer" extends="java.lang.Object"
  74037. abstract="false"
  74038. static="false" final="false" visibility="public"
  74039. deprecated="not deprecated">
  74040. <implements name="org.apache.hadoop.tools.rumen.JobStoryProducer"/>
  74041. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration"
  74042. static="false" final="false" visibility="public"
  74043. deprecated="not deprecated">
  74044. <exception name="IOException" type="java.io.IOException"/>
  74045. <doc>
  74046. <![CDATA[Constructor
  74047. @param path
  74048. Path to the JSON trace file, possibly compressed.
  74049. @param cluster
  74050. The topology of the cluster that corresponds to the jobs in the
  74051. trace. The argument can be null if we do not have knowledge of the
  74052. cluster topology.
  74053. @param conf
  74054. @throws IOException]]>
  74055. </doc>
  74056. </constructor>
  74057. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration, long"
  74058. static="false" final="false" visibility="public"
  74059. deprecated="not deprecated">
  74060. <exception name="IOException" type="java.io.IOException"/>
  74061. <doc>
  74062. <![CDATA[Constructor
  74063. @param path
  74064. Path to the JSON trace file, possibly compressed.
  74065. @param cluster
  74066. The topology of the cluster that corresponds to the jobs in the
  74067. trace. The argument can be null if we do not have knowledge of the
  74068. cluster topology.
  74069. @param conf
  74070. @param randomSeed
  74071. use a deterministic seed.
  74072. @throws IOException]]>
  74073. </doc>
  74074. </constructor>
  74075. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster"
  74076. static="false" final="false" visibility="public"
  74077. deprecated="not deprecated">
  74078. <exception name="IOException" type="java.io.IOException"/>
  74079. <doc>
  74080. <![CDATA[Constructor
  74081. @param input
  74082. The input stream for the JSON trace.
  74083. @param cluster
  74084. The topology of the cluster that corresponds to the jobs in the
  74085. trace. The argument can be null if we do not have knowledge of the
  74086. cluster topology.
  74087. @throws IOException]]>
  74088. </doc>
  74089. </constructor>
  74090. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster, long"
  74091. static="false" final="false" visibility="public"
  74092. deprecated="not deprecated">
  74093. <exception name="IOException" type="java.io.IOException"/>
  74094. <doc>
  74095. <![CDATA[Constructor
  74096. @param input
  74097. The input stream for the JSON trace.
  74098. @param cluster
  74099. The topology of the cluster that corresponds to the jobs in the
  74100. trace. The argument can be null if we do not have knowledge of the
  74101. cluster topology.
  74102. @param randomSeed
  74103. use a deterministic seed.
  74104. @throws IOException]]>
  74105. </doc>
  74106. </constructor>
  74107. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.ZombieJob"
  74108. abstract="false" native="false" synchronized="false"
  74109. static="false" final="false" visibility="public"
  74110. deprecated="not deprecated">
  74111. <exception name="IOException" type="java.io.IOException"/>
  74112. </method>
  74113. <method name="close"
  74114. abstract="false" native="false" synchronized="false"
  74115. static="false" final="false" visibility="public"
  74116. deprecated="not deprecated">
  74117. <exception name="IOException" type="java.io.IOException"/>
  74118. </method>
  74119. <doc>
  74120. <![CDATA[Producing {@link JobStory}s from job trace.]]>
  74121. </doc>
  74122. </class>
  74123. <!-- end class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  74124. </package>
  74125. </api>