hadoop_0.20.0.xml 2.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Thu Apr 23 09:21:06 PDT 2009 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 0.20.0"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /Users/ndaley/hadoop/release-0.20.0/build/ivy/lib/Hadoop/jdiff/jdiff-1.0.9.jar:/Users/ndaley/hadoop/release-0.20.0/build/ivy/lib/Hadoop/jdiff/xerces-1.4.4.jar -classpath /Users/ndaley/hadoop/release-0.20.0/build/classes:/Users/ndaley/hadoop/release-0.20.0/lib/commons-cli-2.0-SNAPSHOT.jar:/Users/ndaley/hadoop/release-0.20.0/lib/hsqldb-1.8.0.10.jar:/Users/ndaley/hadoop/release-0.20.0/lib/jsp-2.1/jsp-2.1.jar:/Users/ndaley/hadoop/release-0.20.0/lib/jsp-2.1/jsp-api-2.1.jar:/Users/ndaley/hadoop/release-0.20.0/lib/kfs-0.2.2.jar:/Users/ndaley/hadoop/release-0.20.0/conf:/Users/ndaley/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.0.4.jar:/Users/ndaley/.ivy2/cache/log4j/log4j/jars/log4j-1.2.15.jar:/Users/ndaley/.ivy2/cache/commons-httpclient/commons-httpclient/jars/commons-httpclient-3.0.1.jar:/Users/ndaley/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.3.jar:/Users/ndaley/.ivy2/cache/xmlenc/xmlenc/jars/xmlenc-0.52.jar:/Users/ndaley/.ivy2/cache/net.java.dev.jets3t/jets3t/jars/jets3t-0.6.1.jar:/Users/ndaley/.ivy2/cache/commons-net/commons-net/jars/commons-net-1.4.1.jar:/Users/ndaley/.ivy2/cache/org.mortbay.jetty/servlet-api-2.5/jars/servlet-api-2.5-6.1.14.jar:/Users/ndaley/.ivy2/cache/oro/oro/jars/oro-2.0.8.jar:/Users/ndaley/.ivy2/cache/org.mortbay.jetty/jetty/jars/jetty-6.1.14.jar:/Users/ndaley/.ivy2/cache/org.mortbay.jetty/jetty-util/jars/jetty-util-6.1.14.jar:/Users/ndaley/.ivy2/cache/tomcat/jasper-runtime/jars/jasper-runtime-5.5.12.jar:/Users/ndaley/.ivy2/cache/tomcat/jasper-compiler/jars/jasper-compiler-5.5.12.jar:/Users/ndaley/.ivy2/cache/commons-el/commons-el/jars/commons-el-1.0.jar:/Users/ndaley/.ivy2/cache/junit/junit/jars/junit-3.8.1.jar:/Users/ndaley/.ivy2/cache/commons-logging/commons-logging-api/jars/commons-logging-api-1.0.4.jar:/Users/ndaley/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.4.3.jar:/Users/ndaley/.ivy2/cache/org.eclipse.jdt/core/jars/core-3.1.1.jar:/Users/ndaley/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.4.3.jar:/Users/ndaley/.ivy2/cache/jdiff/jdiff/jars/jdiff-1.0.9.jar:/Users/ndaley/.ivy2/cache/xerces/xerces/jars/xerces-1.4.4.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/ant-jai.jar:/usr/share/ant/lib/ant-jmf.jar:/usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/ant/lib/ant-swing.jar:/usr/share/ant/lib/ant-testutil.jar:/usr/share/ant/lib/ant-trax.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/xercesImpl.jar:/usr/share/ant/lib/xml-apis.jar -sourcepath /Users/ndaley/hadoop/release-0.20.0/src/core:/Users/ndaley/hadoop/release-0.20.0/src/mapred:/Users/ndaley/hadoop/release-0.20.0/src/tools -apidir /Users/ndaley/hadoop/release-0.20.0/lib/jdiff -apiname hadoop 0.20.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.conf">
  67. <!-- start interface org.apache.hadoop.conf.Configurable -->
  68. <interface name="Configurable" abstract="true"
  69. static="false" final="false" visibility="public"
  70. deprecated="not deprecated">
  71. <method name="setConf"
  72. abstract="false" native="false" synchronized="false"
  73. static="false" final="false" visibility="public"
  74. deprecated="not deprecated">
  75. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76. <doc>
  77. <![CDATA[Set the configuration to be used by this object.]]>
  78. </doc>
  79. </method>
  80. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  81. abstract="false" native="false" synchronized="false"
  82. static="false" final="false" visibility="public"
  83. deprecated="not deprecated">
  84. <doc>
  85. <![CDATA[Return the configuration used by this object.]]>
  86. </doc>
  87. </method>
  88. <doc>
  89. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  90. </doc>
  91. </interface>
  92. <!-- end interface org.apache.hadoop.conf.Configurable -->
  93. <!-- start class org.apache.hadoop.conf.Configuration -->
  94. <class name="Configuration" extends="java.lang.Object"
  95. abstract="false"
  96. static="false" final="false" visibility="public"
  97. deprecated="not deprecated">
  98. <implements name="java.lang.Iterable"/>
  99. <implements name="org.apache.hadoop.io.Writable"/>
  100. <constructor name="Configuration"
  101. static="false" final="false" visibility="public"
  102. deprecated="not deprecated">
  103. <doc>
  104. <![CDATA[A new configuration.]]>
  105. </doc>
  106. </constructor>
  107. <constructor name="Configuration" type="boolean"
  108. static="false" final="false" visibility="public"
  109. deprecated="not deprecated">
  110. <doc>
  111. <![CDATA[A new configuration where the behavior of reading from the default
  112. resources can be turned off.
  113. If the parameter {@code loadDefaults} is false, the new instance
  114. will not load resources from the default files.
  115. @param loadDefaults specifies whether to load from the default files]]>
  116. </doc>
  117. </constructor>
  118. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  119. static="false" final="false" visibility="public"
  120. deprecated="not deprecated">
  121. <doc>
  122. <![CDATA[A new configuration with the same settings cloned from another.
  123. @param other the configuration from which to clone settings.]]>
  124. </doc>
  125. </constructor>
  126. <method name="addDefaultResource"
  127. abstract="false" native="false" synchronized="true"
  128. static="true" final="false" visibility="public"
  129. deprecated="not deprecated">
  130. <param name="name" type="java.lang.String"/>
  131. <doc>
  132. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  133. added.
  134. @param name file name. File should be present in the classpath.]]>
  135. </doc>
  136. </method>
  137. <method name="addResource"
  138. abstract="false" native="false" synchronized="false"
  139. static="false" final="false" visibility="public"
  140. deprecated="not deprecated">
  141. <param name="name" type="java.lang.String"/>
  142. <doc>
  143. <![CDATA[Add a configuration resource.
  144. The properties of this resource will override properties of previously
  145. added resources, unless they were marked <a href="#Final">final</a>.
  146. @param name resource to be added, the classpath is examined for a file
  147. with that name.]]>
  148. </doc>
  149. </method>
  150. <method name="addResource"
  151. abstract="false" native="false" synchronized="false"
  152. static="false" final="false" visibility="public"
  153. deprecated="not deprecated">
  154. <param name="url" type="java.net.URL"/>
  155. <doc>
  156. <![CDATA[Add a configuration resource.
  157. The properties of this resource will override properties of previously
  158. added resources, unless they were marked <a href="#Final">final</a>.
  159. @param url url of the resource to be added, the local filesystem is
  160. examined directly to find the resource, without referring to
  161. the classpath.]]>
  162. </doc>
  163. </method>
  164. <method name="addResource"
  165. abstract="false" native="false" synchronized="false"
  166. static="false" final="false" visibility="public"
  167. deprecated="not deprecated">
  168. <param name="file" type="org.apache.hadoop.fs.Path"/>
  169. <doc>
  170. <![CDATA[Add a configuration resource.
  171. The properties of this resource will override properties of previously
  172. added resources, unless they were marked <a href="#Final">final</a>.
  173. @param file file-path of resource to be added, the local filesystem is
  174. examined directly to find the resource, without referring to
  175. the classpath.]]>
  176. </doc>
  177. </method>
  178. <method name="addResource"
  179. abstract="false" native="false" synchronized="false"
  180. static="false" final="false" visibility="public"
  181. deprecated="not deprecated">
  182. <param name="in" type="java.io.InputStream"/>
  183. <doc>
  184. <![CDATA[Add a configuration resource.
  185. The properties of this resource will override properties of previously
  186. added resources, unless they were marked <a href="#Final">final</a>.
  187. @param in InputStream to deserialize the object from.]]>
  188. </doc>
  189. </method>
  190. <method name="reloadConfiguration"
  191. abstract="false" native="false" synchronized="true"
  192. static="false" final="false" visibility="public"
  193. deprecated="not deprecated">
  194. <doc>
  195. <![CDATA[Reload configuration from previously added resources.
  196. This method will clear all the configuration read from the added
  197. resources, and final parameters. This will make the resources to
  198. be read again before accessing the values. Values that are added
  199. via set methods will overlay values read from the resources.]]>
  200. </doc>
  201. </method>
  202. <method name="get" return="java.lang.String"
  203. abstract="false" native="false" synchronized="false"
  204. static="false" final="false" visibility="public"
  205. deprecated="not deprecated">
  206. <param name="name" type="java.lang.String"/>
  207. <doc>
  208. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  209. no such property exists.
  210. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  211. before being returned.
  212. @param name the property name.
  213. @return the value of the <code>name</code> property,
  214. or null if no such property exists.]]>
  215. </doc>
  216. </method>
  217. <method name="getRaw" return="java.lang.String"
  218. abstract="false" native="false" synchronized="false"
  219. static="false" final="false" visibility="public"
  220. deprecated="not deprecated">
  221. <param name="name" type="java.lang.String"/>
  222. <doc>
  223. <![CDATA[Get the value of the <code>name</code> property, without doing
  224. <a href="#VariableExpansion">variable expansion</a>.
  225. @param name the property name.
  226. @return the value of the <code>name</code> property,
  227. or null if no such property exists.]]>
  228. </doc>
  229. </method>
  230. <method name="set"
  231. abstract="false" native="false" synchronized="false"
  232. static="false" final="false" visibility="public"
  233. deprecated="not deprecated">
  234. <param name="name" type="java.lang.String"/>
  235. <param name="value" type="java.lang.String"/>
  236. <doc>
  237. <![CDATA[Set the <code>value</code> of the <code>name</code> property.
  238. @param name property name.
  239. @param value property value.]]>
  240. </doc>
  241. </method>
  242. <method name="setIfUnset"
  243. abstract="false" native="false" synchronized="false"
  244. static="false" final="false" visibility="public"
  245. deprecated="not deprecated">
  246. <param name="name" type="java.lang.String"/>
  247. <param name="value" type="java.lang.String"/>
  248. <doc>
  249. <![CDATA[Sets a property if it is currently unset.
  250. @param name the property name
  251. @param value the new value]]>
  252. </doc>
  253. </method>
  254. <method name="get" return="java.lang.String"
  255. abstract="false" native="false" synchronized="false"
  256. static="false" final="false" visibility="public"
  257. deprecated="not deprecated">
  258. <param name="name" type="java.lang.String"/>
  259. <param name="defaultValue" type="java.lang.String"/>
  260. <doc>
  261. <![CDATA[Get the value of the <code>name</code> property. If no such property
  262. exists, then <code>defaultValue</code> is returned.
  263. @param name property name.
  264. @param defaultValue default value.
  265. @return property value, or <code>defaultValue</code> if the property
  266. doesn't exist.]]>
  267. </doc>
  268. </method>
  269. <method name="getInt" return="int"
  270. abstract="false" native="false" synchronized="false"
  271. static="false" final="false" visibility="public"
  272. deprecated="not deprecated">
  273. <param name="name" type="java.lang.String"/>
  274. <param name="defaultValue" type="int"/>
  275. <doc>
  276. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  277. If no such property exists, or if the specified value is not a valid
  278. <code>int</code>, then <code>defaultValue</code> is returned.
  279. @param name property name.
  280. @param defaultValue default value.
  281. @return property value as an <code>int</code>,
  282. or <code>defaultValue</code>.]]>
  283. </doc>
  284. </method>
  285. <method name="setInt"
  286. abstract="false" native="false" synchronized="false"
  287. static="false" final="false" visibility="public"
  288. deprecated="not deprecated">
  289. <param name="name" type="java.lang.String"/>
  290. <param name="value" type="int"/>
  291. <doc>
  292. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  293. @param name property name.
  294. @param value <code>int</code> value of the property.]]>
  295. </doc>
  296. </method>
  297. <method name="getLong" return="long"
  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. <param name="defaultValue" type="long"/>
  303. <doc>
  304. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  305. If no such property is specified, or if the specified value is not a valid
  306. <code>long</code>, then <code>defaultValue</code> is returned.
  307. @param name property name.
  308. @param defaultValue default value.
  309. @return property value as a <code>long</code>,
  310. or <code>defaultValue</code>.]]>
  311. </doc>
  312. </method>
  313. <method name="setLong"
  314. abstract="false" native="false" synchronized="false"
  315. static="false" final="false" visibility="public"
  316. deprecated="not deprecated">
  317. <param name="name" type="java.lang.String"/>
  318. <param name="value" type="long"/>
  319. <doc>
  320. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  321. @param name property name.
  322. @param value <code>long</code> value of the property.]]>
  323. </doc>
  324. </method>
  325. <method name="getFloat" return="float"
  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="defaultValue" type="float"/>
  331. <doc>
  332. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  333. If no such property is specified, or if the specified value is not a valid
  334. <code>float</code>, then <code>defaultValue</code> is returned.
  335. @param name property name.
  336. @param defaultValue default value.
  337. @return property value as a <code>float</code>,
  338. or <code>defaultValue</code>.]]>
  339. </doc>
  340. </method>
  341. <method name="setFloat"
  342. abstract="false" native="false" synchronized="false"
  343. static="false" final="false" visibility="public"
  344. deprecated="not deprecated">
  345. <param name="name" type="java.lang.String"/>
  346. <param name="value" type="float"/>
  347. <doc>
  348. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  349. @param name property name.
  350. @param value property value.]]>
  351. </doc>
  352. </method>
  353. <method name="getBoolean" return="boolean"
  354. abstract="false" native="false" synchronized="false"
  355. static="false" final="false" visibility="public"
  356. deprecated="not deprecated">
  357. <param name="name" type="java.lang.String"/>
  358. <param name="defaultValue" type="boolean"/>
  359. <doc>
  360. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  361. If no such property is specified, or if the specified value is not a valid
  362. <code>boolean</code>, then <code>defaultValue</code> is returned.
  363. @param name property name.
  364. @param defaultValue default value.
  365. @return property value as a <code>boolean</code>,
  366. or <code>defaultValue</code>.]]>
  367. </doc>
  368. </method>
  369. <method name="setBoolean"
  370. abstract="false" native="false" synchronized="false"
  371. static="false" final="false" visibility="public"
  372. deprecated="not deprecated">
  373. <param name="name" type="java.lang.String"/>
  374. <param name="value" type="boolean"/>
  375. <doc>
  376. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  377. @param name property name.
  378. @param value <code>boolean</code> value of the property.]]>
  379. </doc>
  380. </method>
  381. <method name="setBooleanIfUnset"
  382. abstract="false" native="false" synchronized="false"
  383. static="false" final="false" visibility="public"
  384. deprecated="not deprecated">
  385. <param name="name" type="java.lang.String"/>
  386. <param name="value" type="boolean"/>
  387. <doc>
  388. <![CDATA[Set the given property, if it is currently unset.
  389. @param name property name
  390. @param value new value]]>
  391. </doc>
  392. </method>
  393. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  394. abstract="false" native="false" synchronized="false"
  395. static="false" final="false" visibility="public"
  396. deprecated="not deprecated">
  397. <param name="name" type="java.lang.String"/>
  398. <param name="defaultValue" type="java.lang.String"/>
  399. <doc>
  400. <![CDATA[Parse the given attribute as a set of integer ranges
  401. @param name the attribute name
  402. @param defaultValue the default value if it is not set
  403. @return a new set of ranges from the configured value]]>
  404. </doc>
  405. </method>
  406. <method name="getStringCollection" return="java.util.Collection"
  407. abstract="false" native="false" synchronized="false"
  408. static="false" final="false" visibility="public"
  409. deprecated="not deprecated">
  410. <param name="name" type="java.lang.String"/>
  411. <doc>
  412. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  413. a collection of <code>String</code>s.
  414. If no such property is specified then empty collection is returned.
  415. <p>
  416. This is an optimized version of {@link #getStrings(String)}
  417. @param name property name.
  418. @return property value as a collection of <code>String</code>s.]]>
  419. </doc>
  420. </method>
  421. <method name="getStrings" return="java.lang.String[]"
  422. abstract="false" native="false" synchronized="false"
  423. static="false" final="false" visibility="public"
  424. deprecated="not deprecated">
  425. <param name="name" type="java.lang.String"/>
  426. <doc>
  427. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  428. an array of <code>String</code>s.
  429. If no such property is specified then <code>null</code> is returned.
  430. @param name property name.
  431. @return property value as an array of <code>String</code>s,
  432. or <code>null</code>.]]>
  433. </doc>
  434. </method>
  435. <method name="getStrings" return="java.lang.String[]"
  436. abstract="false" native="false" synchronized="false"
  437. static="false" final="false" visibility="public"
  438. deprecated="not deprecated">
  439. <param name="name" type="java.lang.String"/>
  440. <param name="defaultValue" type="java.lang.String[]"/>
  441. <doc>
  442. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  443. an array of <code>String</code>s.
  444. If no such property is specified then default value is returned.
  445. @param name property name.
  446. @param defaultValue The default value
  447. @return property value as an array of <code>String</code>s,
  448. or default value.]]>
  449. </doc>
  450. </method>
  451. <method name="setStrings"
  452. abstract="false" native="false" synchronized="false"
  453. static="false" final="false" visibility="public"
  454. deprecated="not deprecated">
  455. <param name="name" type="java.lang.String"/>
  456. <param name="values" type="java.lang.String[]"/>
  457. <doc>
  458. <![CDATA[Set the array of string values for the <code>name</code> property as
  459. as comma delimited values.
  460. @param name property name.
  461. @param values The values]]>
  462. </doc>
  463. </method>
  464. <method name="getClassByName" return="java.lang.Class"
  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. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  470. <doc>
  471. <![CDATA[Load a class by name.
  472. @param name the class name.
  473. @return the class object.
  474. @throws ClassNotFoundException if the class is not found.]]>
  475. </doc>
  476. </method>
  477. <method name="getClasses" return="java.lang.Class[]"
  478. abstract="false" native="false" synchronized="false"
  479. static="false" final="false" visibility="public"
  480. deprecated="not deprecated">
  481. <param name="name" type="java.lang.String"/>
  482. <param name="defaultValue" type="java.lang.Class[]"/>
  483. <doc>
  484. <![CDATA[Get the value of the <code>name</code> property
  485. as an array of <code>Class</code>.
  486. The value of the property specifies a list of comma separated class names.
  487. If no such property is specified, then <code>defaultValue</code> is
  488. returned.
  489. @param name the property name.
  490. @param defaultValue default value.
  491. @return property value as a <code>Class[]</code>,
  492. or <code>defaultValue</code>.]]>
  493. </doc>
  494. </method>
  495. <method name="getClass" return="java.lang.Class"
  496. abstract="false" native="false" synchronized="false"
  497. static="false" final="false" visibility="public"
  498. deprecated="not deprecated">
  499. <param name="name" type="java.lang.String"/>
  500. <param name="defaultValue" type="java.lang.Class"/>
  501. <doc>
  502. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  503. If no such property is specified, then <code>defaultValue</code> is
  504. returned.
  505. @param name the class name.
  506. @param defaultValue default value.
  507. @return property value as a <code>Class</code>,
  508. or <code>defaultValue</code>.]]>
  509. </doc>
  510. </method>
  511. <method name="getClass" return="java.lang.Class"
  512. abstract="false" native="false" synchronized="false"
  513. static="false" final="false" visibility="public"
  514. deprecated="not deprecated">
  515. <param name="name" type="java.lang.String"/>
  516. <param name="defaultValue" type="java.lang.Class"/>
  517. <param name="xface" type="java.lang.Class"/>
  518. <doc>
  519. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  520. implementing the interface specified by <code>xface</code>.
  521. If no such property is specified, then <code>defaultValue</code> is
  522. returned.
  523. An exception is thrown if the returned class does not implement the named
  524. interface.
  525. @param name the class name.
  526. @param defaultValue default value.
  527. @param xface the interface implemented by the named class.
  528. @return property value as a <code>Class</code>,
  529. or <code>defaultValue</code>.]]>
  530. </doc>
  531. </method>
  532. <method name="setClass"
  533. abstract="false" native="false" synchronized="false"
  534. static="false" final="false" visibility="public"
  535. deprecated="not deprecated">
  536. <param name="name" type="java.lang.String"/>
  537. <param name="theClass" type="java.lang.Class"/>
  538. <param name="xface" type="java.lang.Class"/>
  539. <doc>
  540. <![CDATA[Set the value of the <code>name</code> property to the name of a
  541. <code>theClass</code> implementing the given interface <code>xface</code>.
  542. An exception is thrown if <code>theClass</code> does not implement the
  543. interface <code>xface</code>.
  544. @param name property name.
  545. @param theClass property value.
  546. @param xface the interface implemented by the named class.]]>
  547. </doc>
  548. </method>
  549. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  550. abstract="false" native="false" synchronized="false"
  551. static="false" final="false" visibility="public"
  552. deprecated="not deprecated">
  553. <param name="dirsProp" type="java.lang.String"/>
  554. <param name="path" type="java.lang.String"/>
  555. <exception name="IOException" type="java.io.IOException"/>
  556. <doc>
  557. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  558. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  559. then one is chosen based on <i>path</i>'s hash code. If the selected
  560. directory does not exist, an attempt is made to create it.
  561. @param dirsProp directory in which to locate the file.
  562. @param path file-path.
  563. @return local file under the directory with the given path.]]>
  564. </doc>
  565. </method>
  566. <method name="getFile" return="java.io.File"
  567. abstract="false" native="false" synchronized="false"
  568. static="false" final="false" visibility="public"
  569. deprecated="not deprecated">
  570. <param name="dirsProp" type="java.lang.String"/>
  571. <param name="path" type="java.lang.String"/>
  572. <exception name="IOException" type="java.io.IOException"/>
  573. <doc>
  574. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  575. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  576. then one is chosen based on <i>path</i>'s hash code. If the selected
  577. directory does not exist, an attempt is made to create it.
  578. @param dirsProp directory in which to locate the file.
  579. @param path file-path.
  580. @return local file under the directory with the given path.]]>
  581. </doc>
  582. </method>
  583. <method name="getResource" return="java.net.URL"
  584. abstract="false" native="false" synchronized="false"
  585. static="false" final="false" visibility="public"
  586. deprecated="not deprecated">
  587. <param name="name" type="java.lang.String"/>
  588. <doc>
  589. <![CDATA[Get the {@link URL} for the named resource.
  590. @param name resource name.
  591. @return the url for the named resource.]]>
  592. </doc>
  593. </method>
  594. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  595. abstract="false" native="false" synchronized="false"
  596. static="false" final="false" visibility="public"
  597. deprecated="not deprecated">
  598. <param name="name" type="java.lang.String"/>
  599. <doc>
  600. <![CDATA[Get an input stream attached to the configuration resource with the
  601. given <code>name</code>.
  602. @param name configuration resource name.
  603. @return an input stream attached to the resource.]]>
  604. </doc>
  605. </method>
  606. <method name="getConfResourceAsReader" return="java.io.Reader"
  607. abstract="false" native="false" synchronized="false"
  608. static="false" final="false" visibility="public"
  609. deprecated="not deprecated">
  610. <param name="name" type="java.lang.String"/>
  611. <doc>
  612. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  613. given <code>name</code>.
  614. @param name configuration resource name.
  615. @return a reader attached to the resource.]]>
  616. </doc>
  617. </method>
  618. <method name="size" return="int"
  619. abstract="false" native="false" synchronized="false"
  620. static="false" final="false" visibility="public"
  621. deprecated="not deprecated">
  622. <doc>
  623. <![CDATA[Return the number of keys in the configuration.
  624. @return number of keys in the configuration.]]>
  625. </doc>
  626. </method>
  627. <method name="clear"
  628. abstract="false" native="false" synchronized="false"
  629. static="false" final="false" visibility="public"
  630. deprecated="not deprecated">
  631. <doc>
  632. <![CDATA[Clears all keys from the configuration.]]>
  633. </doc>
  634. </method>
  635. <method name="iterator" return="java.util.Iterator"
  636. abstract="false" native="false" synchronized="false"
  637. static="false" final="false" visibility="public"
  638. deprecated="not deprecated">
  639. <doc>
  640. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  641. key-value pairs in the configuration.
  642. @return an iterator over the entries.]]>
  643. </doc>
  644. </method>
  645. <method name="writeXml"
  646. abstract="false" native="false" synchronized="false"
  647. static="false" final="false" visibility="public"
  648. deprecated="not deprecated">
  649. <param name="out" type="java.io.OutputStream"/>
  650. <exception name="IOException" type="java.io.IOException"/>
  651. <doc>
  652. <![CDATA[Write out the non-default properties in this configuration to the give
  653. {@link OutputStream}.
  654. @param out the output stream to write to.]]>
  655. </doc>
  656. </method>
  657. <method name="getClassLoader" return="java.lang.ClassLoader"
  658. abstract="false" native="false" synchronized="false"
  659. static="false" final="false" visibility="public"
  660. deprecated="not deprecated">
  661. <doc>
  662. <![CDATA[Get the {@link ClassLoader} for this job.
  663. @return the correct class loader.]]>
  664. </doc>
  665. </method>
  666. <method name="setClassLoader"
  667. abstract="false" native="false" synchronized="false"
  668. static="false" final="false" visibility="public"
  669. deprecated="not deprecated">
  670. <param name="classLoader" type="java.lang.ClassLoader"/>
  671. <doc>
  672. <![CDATA[Set the class loader that will be used to load the various objects.
  673. @param classLoader the new class loader.]]>
  674. </doc>
  675. </method>
  676. <method name="toString" return="java.lang.String"
  677. abstract="false" native="false" synchronized="false"
  678. static="false" final="false" visibility="public"
  679. deprecated="not deprecated">
  680. </method>
  681. <method name="setQuietMode"
  682. abstract="false" native="false" synchronized="true"
  683. static="false" final="false" visibility="public"
  684. deprecated="not deprecated">
  685. <param name="quietmode" type="boolean"/>
  686. <doc>
  687. <![CDATA[Set the quietness-mode.
  688. In the quiet-mode, error and informational messages might not be logged.
  689. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  690. to turn it off.]]>
  691. </doc>
  692. </method>
  693. <method name="main"
  694. abstract="false" native="false" synchronized="false"
  695. static="true" final="false" visibility="public"
  696. deprecated="not deprecated">
  697. <param name="args" type="java.lang.String[]"/>
  698. <exception name="Exception" type="java.lang.Exception"/>
  699. <doc>
  700. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  701. </doc>
  702. </method>
  703. <method name="readFields"
  704. abstract="false" native="false" synchronized="false"
  705. static="false" final="false" visibility="public"
  706. deprecated="not deprecated">
  707. <param name="in" type="java.io.DataInput"/>
  708. <exception name="IOException" type="java.io.IOException"/>
  709. </method>
  710. <method name="write"
  711. abstract="false" native="false" synchronized="false"
  712. static="false" final="false" visibility="public"
  713. deprecated="not deprecated">
  714. <param name="out" type="java.io.DataOutput"/>
  715. <exception name="IOException" type="java.io.IOException"/>
  716. </method>
  717. <doc>
  718. <![CDATA[Provides access to configuration parameters.
  719. <h4 id="Resources">Resources</h4>
  720. <p>Configurations are specified by resources. A resource contains a set of
  721. name/value pairs as XML data. Each resource is named by either a
  722. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  723. then the classpath is examined for a file with that name. If named by a
  724. <code>Path</code>, then the local filesystem is examined directly, without
  725. referring to the classpath.
  726. <p>Unless explicitly turned off, Hadoop by default specifies two
  727. resources, loaded in-order from the classpath: <ol>
  728. <li><tt><a href="{@docRoot}/../core-default.html">core-default.xml</a>
  729. </tt>: Read-only defaults for hadoop.</li>
  730. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  731. installation.</li>
  732. </ol>
  733. Applications may add additional resources, which are loaded
  734. subsequent to these resources in the order they are added.
  735. <h4 id="FinalParams">Final Parameters</h4>
  736. <p>Configuration parameters may be declared <i>final</i>.
  737. Once a resource declares a value final, no subsequently-loaded
  738. resource can alter that value.
  739. For example, one might define a final parameter with:
  740. <tt><pre>
  741. &lt;property&gt;
  742. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  743. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  744. <b>&lt;final&gt;true&lt;/final&gt;</b>
  745. &lt;/property&gt;</pre></tt>
  746. Administrators typically define parameters as final in
  747. <tt>core-site.xml</tt> for values that user applications may not alter.
  748. <h4 id="VariableExpansion">Variable Expansion</h4>
  749. <p>Value strings are first processed for <i>variable expansion</i>. The
  750. available properties are:<ol>
  751. <li>Other properties defined in this Configuration; and, if a name is
  752. undefined here,</li>
  753. <li>Properties in {@link System#getProperties()}.</li>
  754. </ol>
  755. <p>For example, if a configuration resource contains the following property
  756. definitions:
  757. <tt><pre>
  758. &lt;property&gt;
  759. &lt;name&gt;basedir&lt;/name&gt;
  760. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  761. &lt;/property&gt;
  762. &lt;property&gt;
  763. &lt;name&gt;tempdir&lt;/name&gt;
  764. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  765. &lt;/property&gt;</pre></tt>
  766. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  767. will be resolved to another property in this Configuration, while
  768. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  769. of the System property with that name.]]>
  770. </doc>
  771. </class>
  772. <!-- end class org.apache.hadoop.conf.Configuration -->
  773. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  774. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  775. abstract="false"
  776. static="true" final="false" visibility="public"
  777. deprecated="not deprecated">
  778. <constructor name="Configuration.IntegerRanges"
  779. static="false" final="false" visibility="public"
  780. deprecated="not deprecated">
  781. </constructor>
  782. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  783. static="false" final="false" visibility="public"
  784. deprecated="not deprecated">
  785. </constructor>
  786. <method name="isIncluded" return="boolean"
  787. abstract="false" native="false" synchronized="false"
  788. static="false" final="false" visibility="public"
  789. deprecated="not deprecated">
  790. <param name="value" type="int"/>
  791. <doc>
  792. <![CDATA[Is the given value in the set of ranges
  793. @param value the value to check
  794. @return is the value in the ranges?]]>
  795. </doc>
  796. </method>
  797. <method name="toString" return="java.lang.String"
  798. abstract="false" native="false" synchronized="false"
  799. static="false" final="false" visibility="public"
  800. deprecated="not deprecated">
  801. </method>
  802. <doc>
  803. <![CDATA[A class that represents a set of positive integer ranges. It parses
  804. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  805. the lower/upper bounds are separated by dash. Either the lower or upper
  806. bound may be omitted meaning all values up to or over. So the string
  807. above means 2, 3, 5, and 7, 8, 9, ...]]>
  808. </doc>
  809. </class>
  810. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  811. <!-- start class org.apache.hadoop.conf.Configured -->
  812. <class name="Configured" extends="java.lang.Object"
  813. abstract="false"
  814. static="false" final="false" visibility="public"
  815. deprecated="not deprecated">
  816. <implements name="org.apache.hadoop.conf.Configurable"/>
  817. <constructor name="Configured"
  818. static="false" final="false" visibility="public"
  819. deprecated="not deprecated">
  820. <doc>
  821. <![CDATA[Construct a Configured.]]>
  822. </doc>
  823. </constructor>
  824. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  825. static="false" final="false" visibility="public"
  826. deprecated="not deprecated">
  827. <doc>
  828. <![CDATA[Construct a Configured.]]>
  829. </doc>
  830. </constructor>
  831. <method name="setConf"
  832. abstract="false" native="false" synchronized="false"
  833. static="false" final="false" visibility="public"
  834. deprecated="not deprecated">
  835. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  836. </method>
  837. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  838. abstract="false" native="false" synchronized="false"
  839. static="false" final="false" visibility="public"
  840. deprecated="not deprecated">
  841. </method>
  842. <doc>
  843. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  844. </doc>
  845. </class>
  846. <!-- end class org.apache.hadoop.conf.Configured -->
  847. </package>
  848. <package name="org.apache.hadoop.filecache">
  849. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  850. <class name="DistributedCache" extends="java.lang.Object"
  851. abstract="false"
  852. static="false" final="false" visibility="public"
  853. deprecated="not deprecated">
  854. <constructor name="DistributedCache"
  855. static="false" final="false" visibility="public"
  856. deprecated="not deprecated">
  857. </constructor>
  858. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  859. abstract="false" native="false" synchronized="false"
  860. static="true" final="false" visibility="public"
  861. deprecated="not deprecated">
  862. <param name="cache" type="java.net.URI"/>
  863. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  864. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  865. <param name="fileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  866. <param name="isArchive" type="boolean"/>
  867. <param name="confFileStamp" type="long"/>
  868. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  869. <exception name="IOException" type="java.io.IOException"/>
  870. <doc>
  871. <![CDATA[Get the locally cached file or archive; it could either be
  872. previously cached (and valid) or copy it from the {@link FileSystem} now.
  873. @param cache the cache to be localized, this should be specified as
  874. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  875. or hostname:port is provided the file is assumed to be in the filesystem
  876. being used in the Configuration
  877. @param conf The Confguration file which contains the filesystem
  878. @param baseDir The base cache Dir where you wnat to localize the files/archives
  879. @param fileStatus The file status on the dfs.
  880. @param isArchive if the cache is an archive or a file. In case it is an
  881. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  882. be unzipped/unjarred/untarred automatically
  883. and the directory where the archive is unzipped/unjarred/untarred is
  884. returned as the Path.
  885. In case of a file, the path to the file is returned
  886. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  887. file to be cached hasn't changed since the job started
  888. @param currentWorkDir this is the directory where you would want to create symlinks
  889. for the locally cached files/archives
  890. @return the path to directory where the archives are unjarred in case of archives,
  891. the path to the file where the file is copied locally
  892. @throws IOException]]>
  893. </doc>
  894. </method>
  895. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  896. abstract="false" native="false" synchronized="false"
  897. static="true" final="false" visibility="public"
  898. deprecated="not deprecated">
  899. <param name="cache" type="java.net.URI"/>
  900. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  901. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  902. <param name="fileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  903. <param name="isArchive" type="boolean"/>
  904. <param name="confFileStamp" type="long"/>
  905. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  906. <param name="honorSymLinkConf" type="boolean"/>
  907. <exception name="IOException" type="java.io.IOException"/>
  908. <doc>
  909. <![CDATA[Get the locally cached file or archive; it could either be
  910. previously cached (and valid) or copy it from the {@link FileSystem} now.
  911. @param cache the cache to be localized, this should be specified as
  912. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  913. or hostname:port is provided the file is assumed to be in the filesystem
  914. being used in the Configuration
  915. @param conf The Confguration file which contains the filesystem
  916. @param baseDir The base cache Dir where you wnat to localize the files/archives
  917. @param fileStatus The file status on the dfs.
  918. @param isArchive if the cache is an archive or a file. In case it is an
  919. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  920. be unzipped/unjarred/untarred automatically
  921. and the directory where the archive is unzipped/unjarred/untarred is
  922. returned as the Path.
  923. In case of a file, the path to the file is returned
  924. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  925. file to be cached hasn't changed since the job started
  926. @param currentWorkDir this is the directory where you would want to create symlinks
  927. for the locally cached files/archives
  928. @param honorSymLinkConf if this is false, then the symlinks are not
  929. created even if conf says so (this is required for an optimization in task
  930. launches
  931. @return the path to directory where the archives are unjarred in case of archives,
  932. the path to the file where the file is copied locally
  933. @throws IOException]]>
  934. </doc>
  935. </method>
  936. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  937. abstract="false" native="false" synchronized="false"
  938. static="true" final="false" visibility="public"
  939. deprecated="not deprecated">
  940. <param name="cache" type="java.net.URI"/>
  941. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  942. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  943. <param name="isArchive" type="boolean"/>
  944. <param name="confFileStamp" type="long"/>
  945. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  946. <exception name="IOException" type="java.io.IOException"/>
  947. <doc>
  948. <![CDATA[Get the locally cached file or archive; it could either be
  949. previously cached (and valid) or copy it from the {@link FileSystem} now.
  950. @param cache the cache to be localized, this should be specified as
  951. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  952. or hostname:port is provided the file is assumed to be in the filesystem
  953. being used in the Configuration
  954. @param conf The Confguration file which contains the filesystem
  955. @param baseDir The base cache Dir where you wnat to localize the files/archives
  956. @param isArchive if the cache is an archive or a file. In case it is an
  957. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  958. be unzipped/unjarred/untarred automatically
  959. and the directory where the archive is unzipped/unjarred/untarred
  960. is returned as the Path.
  961. In case of a file, the path to the file is returned
  962. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  963. file to be cached hasn't changed since the job started
  964. @param currentWorkDir this is the directory where you would want to create symlinks
  965. for the locally cached files/archives
  966. @return the path to directory where the archives are unjarred in case of archives,
  967. the path to the file where the file is copied locally
  968. @throws IOException]]>
  969. </doc>
  970. </method>
  971. <method name="releaseCache"
  972. abstract="false" native="false" synchronized="false"
  973. static="true" final="false" visibility="public"
  974. deprecated="not deprecated">
  975. <param name="cache" type="java.net.URI"/>
  976. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  977. <exception name="IOException" type="java.io.IOException"/>
  978. <doc>
  979. <![CDATA[This is the opposite of getlocalcache. When you are done with
  980. using the cache, you need to release the cache
  981. @param cache The cache URI to be released
  982. @param conf configuration which contains the filesystem the cache
  983. is contained in.
  984. @throws IOException]]>
  985. </doc>
  986. </method>
  987. <method name="makeRelative" return="java.lang.String"
  988. abstract="false" native="false" synchronized="false"
  989. static="true" final="false" visibility="public"
  990. deprecated="not deprecated">
  991. <param name="cache" type="java.net.URI"/>
  992. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  993. <exception name="IOException" type="java.io.IOException"/>
  994. </method>
  995. <method name="getTimestamp" return="long"
  996. abstract="false" native="false" synchronized="false"
  997. static="true" final="false" visibility="public"
  998. deprecated="not deprecated">
  999. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1000. <param name="cache" type="java.net.URI"/>
  1001. <exception name="IOException" type="java.io.IOException"/>
  1002. <doc>
  1003. <![CDATA[Returns mtime of a given cache file on hdfs.
  1004. @param conf configuration
  1005. @param cache cache file
  1006. @return mtime of a given cache file on hdfs
  1007. @throws IOException]]>
  1008. </doc>
  1009. </method>
  1010. <method name="createAllSymlink"
  1011. abstract="false" native="false" synchronized="false"
  1012. static="true" final="false" visibility="public"
  1013. deprecated="not deprecated">
  1014. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1015. <param name="jobCacheDir" type="java.io.File"/>
  1016. <param name="workDir" type="java.io.File"/>
  1017. <exception name="IOException" type="java.io.IOException"/>
  1018. <doc>
  1019. <![CDATA[This method create symlinks for all files in a given dir in another directory
  1020. @param conf the configuration
  1021. @param jobCacheDir the target directory for creating symlinks
  1022. @param workDir the directory in which the symlinks are created
  1023. @throws IOException]]>
  1024. </doc>
  1025. </method>
  1026. <method name="setCacheArchives"
  1027. abstract="false" native="false" synchronized="false"
  1028. static="true" final="false" visibility="public"
  1029. deprecated="not deprecated">
  1030. <param name="archives" type="java.net.URI[]"/>
  1031. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1032. <doc>
  1033. <![CDATA[Set the configuration with the given set of archives
  1034. @param archives The list of archives that need to be localized
  1035. @param conf Configuration which will be changed]]>
  1036. </doc>
  1037. </method>
  1038. <method name="setCacheFiles"
  1039. abstract="false" native="false" synchronized="false"
  1040. static="true" final="false" visibility="public"
  1041. deprecated="not deprecated">
  1042. <param name="files" type="java.net.URI[]"/>
  1043. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1044. <doc>
  1045. <![CDATA[Set the configuration with the given set of files
  1046. @param files The list of files that need to be localized
  1047. @param conf Configuration which will be changed]]>
  1048. </doc>
  1049. </method>
  1050. <method name="getCacheArchives" return="java.net.URI[]"
  1051. abstract="false" native="false" synchronized="false"
  1052. static="true" final="false" visibility="public"
  1053. deprecated="not deprecated">
  1054. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1055. <exception name="IOException" type="java.io.IOException"/>
  1056. <doc>
  1057. <![CDATA[Get cache archives set in the Configuration
  1058. @param conf The configuration which contains the archives
  1059. @return A URI array of the caches set in the Configuration
  1060. @throws IOException]]>
  1061. </doc>
  1062. </method>
  1063. <method name="getCacheFiles" return="java.net.URI[]"
  1064. abstract="false" native="false" synchronized="false"
  1065. static="true" final="false" visibility="public"
  1066. deprecated="not deprecated">
  1067. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1068. <exception name="IOException" type="java.io.IOException"/>
  1069. <doc>
  1070. <![CDATA[Get cache files set in the Configuration
  1071. @param conf The configuration which contains the files
  1072. @return A URI array of the files set in the Configuration
  1073. @throws IOException]]>
  1074. </doc>
  1075. </method>
  1076. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  1077. abstract="false" native="false" synchronized="false"
  1078. static="true" final="false" visibility="public"
  1079. deprecated="not deprecated">
  1080. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1081. <exception name="IOException" type="java.io.IOException"/>
  1082. <doc>
  1083. <![CDATA[Return the path array of the localized caches
  1084. @param conf Configuration that contains the localized archives
  1085. @return A path array of localized caches
  1086. @throws IOException]]>
  1087. </doc>
  1088. </method>
  1089. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  1090. abstract="false" native="false" synchronized="false"
  1091. static="true" final="false" visibility="public"
  1092. deprecated="not deprecated">
  1093. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1094. <exception name="IOException" type="java.io.IOException"/>
  1095. <doc>
  1096. <![CDATA[Return the path array of the localized files
  1097. @param conf Configuration that contains the localized files
  1098. @return A path array of localized files
  1099. @throws IOException]]>
  1100. </doc>
  1101. </method>
  1102. <method name="getArchiveTimestamps" return="java.lang.String[]"
  1103. abstract="false" native="false" synchronized="false"
  1104. static="true" final="false" visibility="public"
  1105. deprecated="not deprecated">
  1106. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1107. <doc>
  1108. <![CDATA[Get the timestamps of the archives
  1109. @param conf The configuration which stored the timestamps
  1110. @return a string array of timestamps
  1111. @throws IOException]]>
  1112. </doc>
  1113. </method>
  1114. <method name="getFileTimestamps" return="java.lang.String[]"
  1115. abstract="false" native="false" synchronized="false"
  1116. static="true" final="false" visibility="public"
  1117. deprecated="not deprecated">
  1118. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1119. <doc>
  1120. <![CDATA[Get the timestamps of the files
  1121. @param conf The configuration which stored the timestamps
  1122. @return a string array of timestamps
  1123. @throws IOException]]>
  1124. </doc>
  1125. </method>
  1126. <method name="setArchiveTimestamps"
  1127. abstract="false" native="false" synchronized="false"
  1128. static="true" final="false" visibility="public"
  1129. deprecated="not deprecated">
  1130. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1131. <param name="timestamps" type="java.lang.String"/>
  1132. <doc>
  1133. <![CDATA[This is to check the timestamp of the archives to be localized
  1134. @param conf Configuration which stores the timestamp's
  1135. @param timestamps comma separated list of timestamps of archives.
  1136. The order should be the same as the order in which the archives are added.]]>
  1137. </doc>
  1138. </method>
  1139. <method name="setFileTimestamps"
  1140. abstract="false" native="false" synchronized="false"
  1141. static="true" final="false" visibility="public"
  1142. deprecated="not deprecated">
  1143. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1144. <param name="timestamps" type="java.lang.String"/>
  1145. <doc>
  1146. <![CDATA[This is to check the timestamp of the files to be localized
  1147. @param conf Configuration which stores the timestamp's
  1148. @param timestamps comma separated list of timestamps of files.
  1149. The order should be the same as the order in which the files are added.]]>
  1150. </doc>
  1151. </method>
  1152. <method name="setLocalArchives"
  1153. abstract="false" native="false" synchronized="false"
  1154. static="true" final="false" visibility="public"
  1155. deprecated="not deprecated">
  1156. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1157. <param name="str" type="java.lang.String"/>
  1158. <doc>
  1159. <![CDATA[Set the conf to contain the location for localized archives
  1160. @param conf The conf to modify to contain the localized caches
  1161. @param str a comma separated list of local archives]]>
  1162. </doc>
  1163. </method>
  1164. <method name="setLocalFiles"
  1165. abstract="false" native="false" synchronized="false"
  1166. static="true" final="false" visibility="public"
  1167. deprecated="not deprecated">
  1168. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1169. <param name="str" type="java.lang.String"/>
  1170. <doc>
  1171. <![CDATA[Set the conf to contain the location for localized files
  1172. @param conf The conf to modify to contain the localized caches
  1173. @param str a comma separated list of local files]]>
  1174. </doc>
  1175. </method>
  1176. <method name="addCacheArchive"
  1177. abstract="false" native="false" synchronized="false"
  1178. static="true" final="false" visibility="public"
  1179. deprecated="not deprecated">
  1180. <param name="uri" type="java.net.URI"/>
  1181. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1182. <doc>
  1183. <![CDATA[Add a archives to be localized to the conf
  1184. @param uri The uri of the cache to be localized
  1185. @param conf Configuration to add the cache to]]>
  1186. </doc>
  1187. </method>
  1188. <method name="addCacheFile"
  1189. abstract="false" native="false" synchronized="false"
  1190. static="true" final="false" visibility="public"
  1191. deprecated="not deprecated">
  1192. <param name="uri" type="java.net.URI"/>
  1193. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1194. <doc>
  1195. <![CDATA[Add a file to be localized to the conf
  1196. @param uri The uri of the cache to be localized
  1197. @param conf Configuration to add the cache to]]>
  1198. </doc>
  1199. </method>
  1200. <method name="addFileToClassPath"
  1201. abstract="false" native="false" synchronized="false"
  1202. static="true" final="false" visibility="public"
  1203. deprecated="not deprecated">
  1204. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1205. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1206. <exception name="IOException" type="java.io.IOException"/>
  1207. <doc>
  1208. <![CDATA[Add an file path to the current set of classpath entries It adds the file
  1209. to cache as well.
  1210. @param file Path of the file to be added
  1211. @param conf Configuration that contains the classpath setting]]>
  1212. </doc>
  1213. </method>
  1214. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  1215. abstract="false" native="false" synchronized="false"
  1216. static="true" final="false" visibility="public"
  1217. deprecated="not deprecated">
  1218. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1219. <doc>
  1220. <![CDATA[Get the file entries in classpath as an array of Path
  1221. @param conf Configuration that contains the classpath setting]]>
  1222. </doc>
  1223. </method>
  1224. <method name="addArchiveToClassPath"
  1225. abstract="false" native="false" synchronized="false"
  1226. static="true" final="false" visibility="public"
  1227. deprecated="not deprecated">
  1228. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  1229. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1230. <exception name="IOException" type="java.io.IOException"/>
  1231. <doc>
  1232. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  1233. archive to cache as well.
  1234. @param archive Path of the archive to be added
  1235. @param conf Configuration that contains the classpath setting]]>
  1236. </doc>
  1237. </method>
  1238. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  1239. abstract="false" native="false" synchronized="false"
  1240. static="true" final="false" visibility="public"
  1241. deprecated="not deprecated">
  1242. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1243. <doc>
  1244. <![CDATA[Get the archive entries in classpath as an array of Path
  1245. @param conf Configuration that contains the classpath setting]]>
  1246. </doc>
  1247. </method>
  1248. <method name="createSymlink"
  1249. abstract="false" native="false" synchronized="false"
  1250. static="true" final="false" visibility="public"
  1251. deprecated="not deprecated">
  1252. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1253. <doc>
  1254. <![CDATA[This method allows you to create symlinks in the current working directory
  1255. of the task to all the cache files/archives
  1256. @param conf the jobconf]]>
  1257. </doc>
  1258. </method>
  1259. <method name="getSymlink" return="boolean"
  1260. abstract="false" native="false" synchronized="false"
  1261. static="true" final="false" visibility="public"
  1262. deprecated="not deprecated">
  1263. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1264. <doc>
  1265. <![CDATA[This method checks to see if symlinks are to be create for the
  1266. localized cache files in the current working directory
  1267. @param conf the jobconf
  1268. @return true if symlinks are to be created- else return false]]>
  1269. </doc>
  1270. </method>
  1271. <method name="checkURIs" return="boolean"
  1272. abstract="false" native="false" synchronized="false"
  1273. static="true" final="false" visibility="public"
  1274. deprecated="not deprecated">
  1275. <param name="uriFiles" type="java.net.URI[]"/>
  1276. <param name="uriArchives" type="java.net.URI[]"/>
  1277. <doc>
  1278. <![CDATA[This method checks if there is a conflict in the fragment names
  1279. of the uris. Also makes sure that each uri has a fragment. It
  1280. is only to be called if you want to create symlinks for
  1281. the various archives and files.
  1282. @param uriFiles The uri array of urifiles
  1283. @param uriArchives the uri array of uri archives]]>
  1284. </doc>
  1285. </method>
  1286. <method name="purgeCache"
  1287. abstract="false" native="false" synchronized="false"
  1288. static="true" final="false" visibility="public"
  1289. deprecated="not deprecated">
  1290. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1291. <exception name="IOException" type="java.io.IOException"/>
  1292. <doc>
  1293. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  1294. should only be used when the server is reinitializing, because the users
  1295. are going to lose their files.]]>
  1296. </doc>
  1297. </method>
  1298. <doc>
  1299. <![CDATA[Distribute application-specific large, read-only files efficiently.
  1300. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  1301. framework to cache files (text, archives, jars etc.) needed by applications.
  1302. </p>
  1303. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  1304. via the {@link org.apache.hadoop.mapred.JobConf}.
  1305. The <code>DistributedCache</code> assumes that the
  1306. files specified via hdfs:// urls are already present on the
  1307. {@link FileSystem} at the path specified by the url.</p>
  1308. <p>The framework will copy the necessary files on to the slave node before
  1309. any tasks for the job are executed on that node. Its efficiency stems from
  1310. the fact that the files are only copied once per job and the ability to
  1311. cache archives which are un-archived on the slaves.</p>
  1312. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  1313. data/text files and/or more complex types such as archives, jars etc.
  1314. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  1315. Jars may be optionally added to the classpath of the tasks, a rudimentary
  1316. software distribution mechanism. Files have execution permissions.
  1317. Optionally users can also direct it to symlink the distributed cache file(s)
  1318. into the working directory of the task.</p>
  1319. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  1320. files. Clearly the cache files should not be modified by the application
  1321. or externally while the job is executing.</p>
  1322. <p>Here is an illustrative example on how to use the
  1323. <code>DistributedCache</code>:</p>
  1324. <p><blockquote><pre>
  1325. // Setting up the cache for the application
  1326. 1. Copy the requisite files to the <code>FileSystem</code>:
  1327. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  1328. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  1329. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  1330. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  1331. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  1332. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  1333. 2. Setup the application's <code>JobConf</code>:
  1334. JobConf job = new JobConf();
  1335. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  1336. job);
  1337. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  1338. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  1339. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  1340. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  1341. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  1342. 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper}
  1343. or {@link org.apache.hadoop.mapred.Reducer}:
  1344. public static class MapClass extends MapReduceBase
  1345. implements Mapper&lt;K, V, K, V&gt; {
  1346. private Path[] localArchives;
  1347. private Path[] localFiles;
  1348. public void configure(JobConf job) {
  1349. // Get the cached archives/files
  1350. localArchives = DistributedCache.getLocalCacheArchives(job);
  1351. localFiles = DistributedCache.getLocalCacheFiles(job);
  1352. }
  1353. public void map(K key, V value,
  1354. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  1355. throws IOException {
  1356. // Use data from the cached archives/files here
  1357. // ...
  1358. // ...
  1359. output.collect(k, v);
  1360. }
  1361. }
  1362. </pre></blockquote></p>
  1363. @see org.apache.hadoop.mapred.JobConf
  1364. @see org.apache.hadoop.mapred.JobClient]]>
  1365. </doc>
  1366. </class>
  1367. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  1368. </package>
  1369. <package name="org.apache.hadoop.fs">
  1370. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  1371. <class name="BlockLocation" extends="java.lang.Object"
  1372. abstract="false"
  1373. static="false" final="false" visibility="public"
  1374. deprecated="not deprecated">
  1375. <implements name="org.apache.hadoop.io.Writable"/>
  1376. <constructor name="BlockLocation"
  1377. static="false" final="false" visibility="public"
  1378. deprecated="not deprecated">
  1379. <doc>
  1380. <![CDATA[Default Constructor]]>
  1381. </doc>
  1382. </constructor>
  1383. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  1384. static="false" final="false" visibility="public"
  1385. deprecated="not deprecated">
  1386. <doc>
  1387. <![CDATA[Constructor with host, name, offset and length]]>
  1388. </doc>
  1389. </constructor>
  1390. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  1391. static="false" final="false" visibility="public"
  1392. deprecated="not deprecated">
  1393. <doc>
  1394. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  1395. </doc>
  1396. </constructor>
  1397. <method name="getHosts" return="java.lang.String[]"
  1398. abstract="false" native="false" synchronized="false"
  1399. static="false" final="false" visibility="public"
  1400. deprecated="not deprecated">
  1401. <exception name="IOException" type="java.io.IOException"/>
  1402. <doc>
  1403. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  1404. </doc>
  1405. </method>
  1406. <method name="getNames" return="java.lang.String[]"
  1407. abstract="false" native="false" synchronized="false"
  1408. static="false" final="false" visibility="public"
  1409. deprecated="not deprecated">
  1410. <exception name="IOException" type="java.io.IOException"/>
  1411. <doc>
  1412. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  1413. </doc>
  1414. </method>
  1415. <method name="getTopologyPaths" return="java.lang.String[]"
  1416. abstract="false" native="false" synchronized="false"
  1417. static="false" final="false" visibility="public"
  1418. deprecated="not deprecated">
  1419. <exception name="IOException" type="java.io.IOException"/>
  1420. <doc>
  1421. <![CDATA[Get the list of network topology paths for each of the hosts.
  1422. The last component of the path is the host.]]>
  1423. </doc>
  1424. </method>
  1425. <method name="getOffset" return="long"
  1426. abstract="false" native="false" synchronized="false"
  1427. static="false" final="false" visibility="public"
  1428. deprecated="not deprecated">
  1429. <doc>
  1430. <![CDATA[Get the start offset of file associated with this block]]>
  1431. </doc>
  1432. </method>
  1433. <method name="getLength" return="long"
  1434. abstract="false" native="false" synchronized="false"
  1435. static="false" final="false" visibility="public"
  1436. deprecated="not deprecated">
  1437. <doc>
  1438. <![CDATA[Get the length of the block]]>
  1439. </doc>
  1440. </method>
  1441. <method name="setOffset"
  1442. abstract="false" native="false" synchronized="false"
  1443. static="false" final="false" visibility="public"
  1444. deprecated="not deprecated">
  1445. <param name="offset" type="long"/>
  1446. <doc>
  1447. <![CDATA[Set the start offset of file associated with this block]]>
  1448. </doc>
  1449. </method>
  1450. <method name="setLength"
  1451. abstract="false" native="false" synchronized="false"
  1452. static="false" final="false" visibility="public"
  1453. deprecated="not deprecated">
  1454. <param name="length" type="long"/>
  1455. <doc>
  1456. <![CDATA[Set the length of block]]>
  1457. </doc>
  1458. </method>
  1459. <method name="setHosts"
  1460. abstract="false" native="false" synchronized="false"
  1461. static="false" final="false" visibility="public"
  1462. deprecated="not deprecated">
  1463. <param name="hosts" type="java.lang.String[]"/>
  1464. <exception name="IOException" type="java.io.IOException"/>
  1465. <doc>
  1466. <![CDATA[Set the hosts hosting this block]]>
  1467. </doc>
  1468. </method>
  1469. <method name="setNames"
  1470. abstract="false" native="false" synchronized="false"
  1471. static="false" final="false" visibility="public"
  1472. deprecated="not deprecated">
  1473. <param name="names" type="java.lang.String[]"/>
  1474. <exception name="IOException" type="java.io.IOException"/>
  1475. <doc>
  1476. <![CDATA[Set the names (host:port) hosting this block]]>
  1477. </doc>
  1478. </method>
  1479. <method name="setTopologyPaths"
  1480. abstract="false" native="false" synchronized="false"
  1481. static="false" final="false" visibility="public"
  1482. deprecated="not deprecated">
  1483. <param name="topologyPaths" type="java.lang.String[]"/>
  1484. <exception name="IOException" type="java.io.IOException"/>
  1485. <doc>
  1486. <![CDATA[Set the network topology paths of the hosts]]>
  1487. </doc>
  1488. </method>
  1489. <method name="write"
  1490. abstract="false" native="false" synchronized="false"
  1491. static="false" final="false" visibility="public"
  1492. deprecated="not deprecated">
  1493. <param name="out" type="java.io.DataOutput"/>
  1494. <exception name="IOException" type="java.io.IOException"/>
  1495. <doc>
  1496. <![CDATA[Implement write of Writable]]>
  1497. </doc>
  1498. </method>
  1499. <method name="readFields"
  1500. abstract="false" native="false" synchronized="false"
  1501. static="false" final="false" visibility="public"
  1502. deprecated="not deprecated">
  1503. <param name="in" type="java.io.DataInput"/>
  1504. <exception name="IOException" type="java.io.IOException"/>
  1505. <doc>
  1506. <![CDATA[Implement readFields of Writable]]>
  1507. </doc>
  1508. </method>
  1509. <method name="toString" return="java.lang.String"
  1510. abstract="false" native="false" synchronized="false"
  1511. static="false" final="false" visibility="public"
  1512. deprecated="not deprecated">
  1513. </method>
  1514. </class>
  1515. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  1516. <!-- start class org.apache.hadoop.fs.BufferedFSInputStream -->
  1517. <class name="BufferedFSInputStream" extends="java.io.BufferedInputStream"
  1518. abstract="false"
  1519. static="false" final="false" visibility="public"
  1520. deprecated="not deprecated">
  1521. <implements name="org.apache.hadoop.fs.Seekable"/>
  1522. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  1523. <constructor name="BufferedFSInputStream" type="org.apache.hadoop.fs.FSInputStream, int"
  1524. static="false" final="false" visibility="public"
  1525. deprecated="not deprecated">
  1526. <doc>
  1527. <![CDATA[Creates a <code>BufferedFSInputStream</code>
  1528. with the specified buffer size,
  1529. and saves its argument, the input stream
  1530. <code>in</code>, for later use. An internal
  1531. buffer array of length <code>size</code>
  1532. is created and stored in <code>buf</code>.
  1533. @param in the underlying input stream.
  1534. @param size the buffer size.
  1535. @exception IllegalArgumentException if size <= 0.]]>
  1536. </doc>
  1537. </constructor>
  1538. <method name="getPos" return="long"
  1539. abstract="false" native="false" synchronized="false"
  1540. static="false" final="false" visibility="public"
  1541. deprecated="not deprecated">
  1542. <exception name="IOException" type="java.io.IOException"/>
  1543. </method>
  1544. <method name="skip" return="long"
  1545. abstract="false" native="false" synchronized="false"
  1546. static="false" final="false" visibility="public"
  1547. deprecated="not deprecated">
  1548. <param name="n" type="long"/>
  1549. <exception name="IOException" type="java.io.IOException"/>
  1550. </method>
  1551. <method name="seek"
  1552. abstract="false" native="false" synchronized="false"
  1553. static="false" final="false" visibility="public"
  1554. deprecated="not deprecated">
  1555. <param name="pos" type="long"/>
  1556. <exception name="IOException" type="java.io.IOException"/>
  1557. </method>
  1558. <method name="seekToNewSource" return="boolean"
  1559. abstract="false" native="false" synchronized="false"
  1560. static="false" final="false" visibility="public"
  1561. deprecated="not deprecated">
  1562. <param name="targetPos" type="long"/>
  1563. <exception name="IOException" type="java.io.IOException"/>
  1564. </method>
  1565. <method name="read" return="int"
  1566. abstract="false" native="false" synchronized="false"
  1567. static="false" final="false" visibility="public"
  1568. deprecated="not deprecated">
  1569. <param name="position" type="long"/>
  1570. <param name="buffer" type="byte[]"/>
  1571. <param name="offset" type="int"/>
  1572. <param name="length" type="int"/>
  1573. <exception name="IOException" type="java.io.IOException"/>
  1574. </method>
  1575. <method name="readFully"
  1576. abstract="false" native="false" synchronized="false"
  1577. static="false" final="false" visibility="public"
  1578. deprecated="not deprecated">
  1579. <param name="position" type="long"/>
  1580. <param name="buffer" type="byte[]"/>
  1581. <param name="offset" type="int"/>
  1582. <param name="length" type="int"/>
  1583. <exception name="IOException" type="java.io.IOException"/>
  1584. </method>
  1585. <method name="readFully"
  1586. abstract="false" native="false" synchronized="false"
  1587. static="false" final="false" visibility="public"
  1588. deprecated="not deprecated">
  1589. <param name="position" type="long"/>
  1590. <param name="buffer" type="byte[]"/>
  1591. <exception name="IOException" type="java.io.IOException"/>
  1592. </method>
  1593. <doc>
  1594. <![CDATA[A class optimizes reading from FSInputStream by bufferring]]>
  1595. </doc>
  1596. </class>
  1597. <!-- end class org.apache.hadoop.fs.BufferedFSInputStream -->
  1598. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  1599. <class name="ChecksumException" extends="java.io.IOException"
  1600. abstract="false"
  1601. static="false" final="false" visibility="public"
  1602. deprecated="not deprecated">
  1603. <constructor name="ChecksumException" type="java.lang.String, long"
  1604. static="false" final="false" visibility="public"
  1605. deprecated="not deprecated">
  1606. </constructor>
  1607. <method name="getPos" return="long"
  1608. abstract="false" native="false" synchronized="false"
  1609. static="false" final="false" visibility="public"
  1610. deprecated="not deprecated">
  1611. </method>
  1612. <doc>
  1613. <![CDATA[Thrown for checksum errors.]]>
  1614. </doc>
  1615. </class>
  1616. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  1617. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  1618. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  1619. abstract="true"
  1620. static="false" final="false" visibility="public"
  1621. deprecated="not deprecated">
  1622. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  1623. static="false" final="false" visibility="public"
  1624. deprecated="not deprecated">
  1625. </constructor>
  1626. <method name="getApproxChkSumLength" return="double"
  1627. abstract="false" native="false" synchronized="false"
  1628. static="true" final="false" visibility="public"
  1629. deprecated="not deprecated">
  1630. <param name="size" type="long"/>
  1631. </method>
  1632. <method name="setConf"
  1633. abstract="false" native="false" synchronized="false"
  1634. static="false" final="false" visibility="public"
  1635. deprecated="not deprecated">
  1636. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1637. </method>
  1638. <method name="setVerifyChecksum"
  1639. abstract="false" native="false" synchronized="false"
  1640. static="false" final="false" visibility="public"
  1641. deprecated="not deprecated">
  1642. <param name="verifyChecksum" type="boolean"/>
  1643. <doc>
  1644. <![CDATA[Set whether to verify checksum.]]>
  1645. </doc>
  1646. </method>
  1647. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  1648. abstract="false" native="false" synchronized="false"
  1649. static="false" final="false" visibility="public"
  1650. deprecated="not deprecated">
  1651. <doc>
  1652. <![CDATA[get the raw file system]]>
  1653. </doc>
  1654. </method>
  1655. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  1656. abstract="false" native="false" synchronized="false"
  1657. static="false" final="false" visibility="public"
  1658. deprecated="not deprecated">
  1659. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1660. <doc>
  1661. <![CDATA[Return the name of the checksum file associated with a file.]]>
  1662. </doc>
  1663. </method>
  1664. <method name="isChecksumFile" return="boolean"
  1665. abstract="false" native="false" synchronized="false"
  1666. static="true" final="false" visibility="public"
  1667. deprecated="not deprecated">
  1668. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1669. <doc>
  1670. <![CDATA[Return true iff file is a checksum file name.]]>
  1671. </doc>
  1672. </method>
  1673. <method name="getChecksumFileLength" return="long"
  1674. abstract="false" native="false" synchronized="false"
  1675. static="false" final="false" visibility="public"
  1676. deprecated="not deprecated">
  1677. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1678. <param name="fileSize" type="long"/>
  1679. <doc>
  1680. <![CDATA[Return the length of the checksum file given the size of the
  1681. actual file.]]>
  1682. </doc>
  1683. </method>
  1684. <method name="getBytesPerSum" return="int"
  1685. abstract="false" native="false" synchronized="false"
  1686. static="false" final="false" visibility="public"
  1687. deprecated="not deprecated">
  1688. <doc>
  1689. <![CDATA[Return the bytes Per Checksum]]>
  1690. </doc>
  1691. </method>
  1692. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1693. abstract="false" native="false" synchronized="false"
  1694. static="false" final="false" visibility="public"
  1695. deprecated="not deprecated">
  1696. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1697. <param name="bufferSize" type="int"/>
  1698. <exception name="IOException" type="java.io.IOException"/>
  1699. <doc>
  1700. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  1701. @param f the file name to open
  1702. @param bufferSize the size of the buffer to be used.]]>
  1703. </doc>
  1704. </method>
  1705. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  1706. abstract="false" native="false" synchronized="false"
  1707. static="false" final="false" visibility="public"
  1708. deprecated="not deprecated">
  1709. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1710. <param name="bufferSize" type="int"/>
  1711. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1712. <exception name="IOException" type="java.io.IOException"/>
  1713. <doc>
  1714. <![CDATA[{@inheritDoc}]]>
  1715. </doc>
  1716. </method>
  1717. <method name="getChecksumLength" return="long"
  1718. abstract="false" native="false" synchronized="false"
  1719. static="true" final="false" visibility="public"
  1720. deprecated="not deprecated">
  1721. <param name="size" type="long"/>
  1722. <param name="bytesPerSum" type="int"/>
  1723. <doc>
  1724. <![CDATA[Calculated the length of the checksum file in bytes.
  1725. @param size the length of the data file in bytes
  1726. @param bytesPerSum the number of bytes in a checksum block
  1727. @return the number of bytes in the checksum file]]>
  1728. </doc>
  1729. </method>
  1730. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1731. abstract="false" native="false" synchronized="false"
  1732. static="false" final="false" visibility="public"
  1733. deprecated="not deprecated">
  1734. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1735. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1736. <param name="overwrite" type="boolean"/>
  1737. <param name="bufferSize" type="int"/>
  1738. <param name="replication" type="short"/>
  1739. <param name="blockSize" type="long"/>
  1740. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1741. <exception name="IOException" type="java.io.IOException"/>
  1742. <doc>
  1743. <![CDATA[{@inheritDoc}]]>
  1744. </doc>
  1745. </method>
  1746. <method name="setReplication" return="boolean"
  1747. abstract="false" native="false" synchronized="false"
  1748. static="false" final="false" visibility="public"
  1749. deprecated="not deprecated">
  1750. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1751. <param name="replication" type="short"/>
  1752. <exception name="IOException" type="java.io.IOException"/>
  1753. <doc>
  1754. <![CDATA[Set replication for an existing file.
  1755. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  1756. @param src file name
  1757. @param replication new replication
  1758. @throws IOException
  1759. @return true if successful;
  1760. false if file does not exist or is a directory]]>
  1761. </doc>
  1762. </method>
  1763. <method name="rename" return="boolean"
  1764. abstract="false" native="false" synchronized="false"
  1765. static="false" final="false" visibility="public"
  1766. deprecated="not deprecated">
  1767. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1768. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1769. <exception name="IOException" type="java.io.IOException"/>
  1770. <doc>
  1771. <![CDATA[Rename files/dirs]]>
  1772. </doc>
  1773. </method>
  1774. <method name="delete" return="boolean"
  1775. abstract="false" native="false" synchronized="false"
  1776. static="false" final="false" visibility="public"
  1777. deprecated="not deprecated">
  1778. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1779. <param name="recursive" type="boolean"/>
  1780. <exception name="IOException" type="java.io.IOException"/>
  1781. <doc>
  1782. <![CDATA[Implement the delete(Path, boolean) in checksum
  1783. file system.]]>
  1784. </doc>
  1785. </method>
  1786. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1787. abstract="false" native="false" synchronized="false"
  1788. static="false" final="false" visibility="public"
  1789. deprecated="not deprecated">
  1790. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1791. <exception name="IOException" type="java.io.IOException"/>
  1792. <doc>
  1793. <![CDATA[List the statuses of the files/directories in the given path if the path is
  1794. a directory.
  1795. @param f
  1796. given path
  1797. @return the statuses of the files/directories in the given patch
  1798. @throws IOException]]>
  1799. </doc>
  1800. </method>
  1801. <method name="mkdirs" return="boolean"
  1802. abstract="false" native="false" synchronized="false"
  1803. static="false" final="false" visibility="public"
  1804. deprecated="not deprecated">
  1805. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1806. <exception name="IOException" type="java.io.IOException"/>
  1807. </method>
  1808. <method name="copyFromLocalFile"
  1809. abstract="false" native="false" synchronized="false"
  1810. static="false" final="false" visibility="public"
  1811. deprecated="not deprecated">
  1812. <param name="delSrc" type="boolean"/>
  1813. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1814. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1815. <exception name="IOException" type="java.io.IOException"/>
  1816. </method>
  1817. <method name="copyToLocalFile"
  1818. abstract="false" native="false" synchronized="false"
  1819. static="false" final="false" visibility="public"
  1820. deprecated="not deprecated">
  1821. <param name="delSrc" type="boolean"/>
  1822. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1823. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1824. <exception name="IOException" type="java.io.IOException"/>
  1825. <doc>
  1826. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1827. Copy it from FS control to the local dst name.]]>
  1828. </doc>
  1829. </method>
  1830. <method name="copyToLocalFile"
  1831. abstract="false" native="false" synchronized="false"
  1832. static="false" final="false" visibility="public"
  1833. deprecated="not deprecated">
  1834. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1835. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1836. <param name="copyCrc" type="boolean"/>
  1837. <exception name="IOException" type="java.io.IOException"/>
  1838. <doc>
  1839. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1840. Copy it from FS control to the local dst name.
  1841. If src and dst are directories, the copyCrc parameter
  1842. determines whether to copy CRC files.]]>
  1843. </doc>
  1844. </method>
  1845. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  1846. abstract="false" native="false" synchronized="false"
  1847. static="false" final="false" visibility="public"
  1848. deprecated="not deprecated">
  1849. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1850. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1851. <exception name="IOException" type="java.io.IOException"/>
  1852. </method>
  1853. <method name="completeLocalOutput"
  1854. abstract="false" native="false" synchronized="false"
  1855. static="false" final="false" visibility="public"
  1856. deprecated="not deprecated">
  1857. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1858. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1859. <exception name="IOException" type="java.io.IOException"/>
  1860. </method>
  1861. <method name="reportChecksumFailure" return="boolean"
  1862. abstract="false" native="false" synchronized="false"
  1863. static="false" final="false" visibility="public"
  1864. deprecated="not deprecated">
  1865. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1866. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1867. <param name="inPos" type="long"/>
  1868. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1869. <param name="sumsPos" type="long"/>
  1870. <doc>
  1871. <![CDATA[Report a checksum error to the file system.
  1872. @param f the file name containing the error
  1873. @param in the stream open on the file
  1874. @param inPos the position of the beginning of the bad data in the file
  1875. @param sums the stream open on the checksum file
  1876. @param sumsPos the position of the beginning of the bad data in the checksum file
  1877. @return if retry is neccessary]]>
  1878. </doc>
  1879. </method>
  1880. <doc>
  1881. <![CDATA[Abstract Checksumed FileSystem.
  1882. It provide a basice implementation of a Checksumed FileSystem,
  1883. which creates a checksum file for each raw file.
  1884. It generates & verifies checksums at the client side.]]>
  1885. </doc>
  1886. </class>
  1887. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  1888. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1889. <class name="ContentSummary" extends="java.lang.Object"
  1890. abstract="false"
  1891. static="false" final="false" visibility="public"
  1892. deprecated="not deprecated">
  1893. <implements name="org.apache.hadoop.io.Writable"/>
  1894. <constructor name="ContentSummary"
  1895. static="false" final="false" visibility="public"
  1896. deprecated="not deprecated">
  1897. <doc>
  1898. <![CDATA[Constructor]]>
  1899. </doc>
  1900. </constructor>
  1901. <constructor name="ContentSummary" type="long, long, long"
  1902. static="false" final="false" visibility="public"
  1903. deprecated="not deprecated">
  1904. <doc>
  1905. <![CDATA[Constructor]]>
  1906. </doc>
  1907. </constructor>
  1908. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  1909. static="false" final="false" visibility="public"
  1910. deprecated="not deprecated">
  1911. <doc>
  1912. <![CDATA[Constructor]]>
  1913. </doc>
  1914. </constructor>
  1915. <method name="getLength" return="long"
  1916. abstract="false" native="false" synchronized="false"
  1917. static="false" final="false" visibility="public"
  1918. deprecated="not deprecated">
  1919. <doc>
  1920. <![CDATA[@return the length]]>
  1921. </doc>
  1922. </method>
  1923. <method name="getDirectoryCount" return="long"
  1924. abstract="false" native="false" synchronized="false"
  1925. static="false" final="false" visibility="public"
  1926. deprecated="not deprecated">
  1927. <doc>
  1928. <![CDATA[@return the directory count]]>
  1929. </doc>
  1930. </method>
  1931. <method name="getFileCount" return="long"
  1932. abstract="false" native="false" synchronized="false"
  1933. static="false" final="false" visibility="public"
  1934. deprecated="not deprecated">
  1935. <doc>
  1936. <![CDATA[@return the file count]]>
  1937. </doc>
  1938. </method>
  1939. <method name="getQuota" return="long"
  1940. abstract="false" native="false" synchronized="false"
  1941. static="false" final="false" visibility="public"
  1942. deprecated="not deprecated">
  1943. <doc>
  1944. <![CDATA[Return the directory quota]]>
  1945. </doc>
  1946. </method>
  1947. <method name="getSpaceConsumed" return="long"
  1948. abstract="false" native="false" synchronized="false"
  1949. static="false" final="false" visibility="public"
  1950. deprecated="not deprecated">
  1951. <doc>
  1952. <![CDATA[Retuns (disk) space consumed]]>
  1953. </doc>
  1954. </method>
  1955. <method name="getSpaceQuota" return="long"
  1956. abstract="false" native="false" synchronized="false"
  1957. static="false" final="false" visibility="public"
  1958. deprecated="not deprecated">
  1959. <doc>
  1960. <![CDATA[Returns (disk) space quota]]>
  1961. </doc>
  1962. </method>
  1963. <method name="write"
  1964. abstract="false" native="false" synchronized="false"
  1965. static="false" final="false" visibility="public"
  1966. deprecated="not deprecated">
  1967. <param name="out" type="java.io.DataOutput"/>
  1968. <exception name="IOException" type="java.io.IOException"/>
  1969. <doc>
  1970. <![CDATA[{@inheritDoc}]]>
  1971. </doc>
  1972. </method>
  1973. <method name="readFields"
  1974. abstract="false" native="false" synchronized="false"
  1975. static="false" final="false" visibility="public"
  1976. deprecated="not deprecated">
  1977. <param name="in" type="java.io.DataInput"/>
  1978. <exception name="IOException" type="java.io.IOException"/>
  1979. <doc>
  1980. <![CDATA[{@inheritDoc}]]>
  1981. </doc>
  1982. </method>
  1983. <method name="getHeader" return="java.lang.String"
  1984. abstract="false" native="false" synchronized="false"
  1985. static="true" final="false" visibility="public"
  1986. deprecated="not deprecated">
  1987. <param name="qOption" type="boolean"/>
  1988. <doc>
  1989. <![CDATA[Return the header of the output.
  1990. if qOption is false, output directory count, file count, and content size;
  1991. if qOption is true, output quota and remaining quota as well.
  1992. @param qOption a flag indicating if quota needs to be printed or not
  1993. @return the header of the output]]>
  1994. </doc>
  1995. </method>
  1996. <method name="toString" return="java.lang.String"
  1997. abstract="false" native="false" synchronized="false"
  1998. static="false" final="false" visibility="public"
  1999. deprecated="not deprecated">
  2000. <doc>
  2001. <![CDATA[{@inheritDoc}]]>
  2002. </doc>
  2003. </method>
  2004. <method name="toString" return="java.lang.String"
  2005. abstract="false" native="false" synchronized="false"
  2006. static="false" final="false" visibility="public"
  2007. deprecated="not deprecated">
  2008. <param name="qOption" type="boolean"/>
  2009. <doc>
  2010. <![CDATA[Return the string representation of the object in the output format.
  2011. if qOption is false, output directory count, file count, and content size;
  2012. if qOption is true, output quota and remaining quota as well.
  2013. @param qOption a flag indicating if quota needs to be printed or not
  2014. @return the string representation of the object]]>
  2015. </doc>
  2016. </method>
  2017. <doc>
  2018. <![CDATA[Store the summary of a content (a directory or a file).]]>
  2019. </doc>
  2020. </class>
  2021. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  2022. <!-- start class org.apache.hadoop.fs.DF -->
  2023. <class name="DF" extends="org.apache.hadoop.util.Shell"
  2024. abstract="false"
  2025. static="false" final="false" visibility="public"
  2026. deprecated="not deprecated">
  2027. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  2028. static="false" final="false" visibility="public"
  2029. deprecated="not deprecated">
  2030. <exception name="IOException" type="java.io.IOException"/>
  2031. </constructor>
  2032. <constructor name="DF" type="java.io.File, long"
  2033. static="false" final="false" visibility="public"
  2034. deprecated="not deprecated">
  2035. <exception name="IOException" type="java.io.IOException"/>
  2036. </constructor>
  2037. <method name="getDirPath" return="java.lang.String"
  2038. abstract="false" native="false" synchronized="false"
  2039. static="false" final="false" visibility="public"
  2040. deprecated="not deprecated">
  2041. </method>
  2042. <method name="getFilesystem" return="java.lang.String"
  2043. abstract="false" native="false" synchronized="false"
  2044. static="false" final="false" visibility="public"
  2045. deprecated="not deprecated">
  2046. <exception name="IOException" type="java.io.IOException"/>
  2047. </method>
  2048. <method name="getCapacity" return="long"
  2049. abstract="false" native="false" synchronized="false"
  2050. static="false" final="false" visibility="public"
  2051. deprecated="not deprecated">
  2052. <exception name="IOException" type="java.io.IOException"/>
  2053. </method>
  2054. <method name="getUsed" return="long"
  2055. abstract="false" native="false" synchronized="false"
  2056. static="false" final="false" visibility="public"
  2057. deprecated="not deprecated">
  2058. <exception name="IOException" type="java.io.IOException"/>
  2059. </method>
  2060. <method name="getAvailable" return="long"
  2061. abstract="false" native="false" synchronized="false"
  2062. static="false" final="false" visibility="public"
  2063. deprecated="not deprecated">
  2064. <exception name="IOException" type="java.io.IOException"/>
  2065. </method>
  2066. <method name="getPercentUsed" return="int"
  2067. abstract="false" native="false" synchronized="false"
  2068. static="false" final="false" visibility="public"
  2069. deprecated="not deprecated">
  2070. <exception name="IOException" type="java.io.IOException"/>
  2071. </method>
  2072. <method name="getMount" return="java.lang.String"
  2073. abstract="false" native="false" synchronized="false"
  2074. static="false" final="false" visibility="public"
  2075. deprecated="not deprecated">
  2076. <exception name="IOException" type="java.io.IOException"/>
  2077. </method>
  2078. <method name="toString" return="java.lang.String"
  2079. abstract="false" native="false" synchronized="false"
  2080. static="false" final="false" visibility="public"
  2081. deprecated="not deprecated">
  2082. </method>
  2083. <method name="getExecString" return="java.lang.String[]"
  2084. abstract="false" native="false" synchronized="false"
  2085. static="false" final="false" visibility="protected"
  2086. deprecated="not deprecated">
  2087. </method>
  2088. <method name="parseExecResult"
  2089. abstract="false" native="false" synchronized="false"
  2090. static="false" final="false" visibility="protected"
  2091. deprecated="not deprecated">
  2092. <param name="lines" type="java.io.BufferedReader"/>
  2093. <exception name="IOException" type="java.io.IOException"/>
  2094. </method>
  2095. <method name="main"
  2096. abstract="false" native="false" synchronized="false"
  2097. static="true" final="false" visibility="public"
  2098. deprecated="not deprecated">
  2099. <param name="args" type="java.lang.String[]"/>
  2100. <exception name="Exception" type="java.lang.Exception"/>
  2101. </method>
  2102. <field name="DF_INTERVAL_DEFAULT" type="long"
  2103. transient="false" volatile="false"
  2104. static="true" final="true" visibility="public"
  2105. deprecated="not deprecated">
  2106. </field>
  2107. <doc>
  2108. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program.
  2109. Tested on Linux, FreeBSD, Cygwin.]]>
  2110. </doc>
  2111. </class>
  2112. <!-- end class org.apache.hadoop.fs.DF -->
  2113. <!-- start class org.apache.hadoop.fs.DU -->
  2114. <class name="DU" extends="org.apache.hadoop.util.Shell"
  2115. abstract="false"
  2116. static="false" final="false" visibility="public"
  2117. deprecated="not deprecated">
  2118. <constructor name="DU" type="java.io.File, long"
  2119. static="false" final="false" visibility="public"
  2120. deprecated="not deprecated">
  2121. <exception name="IOException" type="java.io.IOException"/>
  2122. <doc>
  2123. <![CDATA[Keeps track of disk usage.
  2124. @param path the path to check disk usage in
  2125. @param interval refresh the disk usage at this interval
  2126. @throws IOException if we fail to refresh the disk usage]]>
  2127. </doc>
  2128. </constructor>
  2129. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  2130. static="false" final="false" visibility="public"
  2131. deprecated="not deprecated">
  2132. <exception name="IOException" type="java.io.IOException"/>
  2133. <doc>
  2134. <![CDATA[Keeps track of disk usage.
  2135. @param path the path to check disk usage in
  2136. @param conf configuration object
  2137. @throws IOException if we fail to refresh the disk usage]]>
  2138. </doc>
  2139. </constructor>
  2140. <method name="decDfsUsed"
  2141. abstract="false" native="false" synchronized="false"
  2142. static="false" final="false" visibility="public"
  2143. deprecated="not deprecated">
  2144. <param name="value" type="long"/>
  2145. <doc>
  2146. <![CDATA[Decrease how much disk space we use.
  2147. @param value decrease by this value]]>
  2148. </doc>
  2149. </method>
  2150. <method name="incDfsUsed"
  2151. abstract="false" native="false" synchronized="false"
  2152. static="false" final="false" visibility="public"
  2153. deprecated="not deprecated">
  2154. <param name="value" type="long"/>
  2155. <doc>
  2156. <![CDATA[Increase how much disk space we use.
  2157. @param value increase by this value]]>
  2158. </doc>
  2159. </method>
  2160. <method name="getUsed" return="long"
  2161. abstract="false" native="false" synchronized="false"
  2162. static="false" final="false" visibility="public"
  2163. deprecated="not deprecated">
  2164. <exception name="IOException" type="java.io.IOException"/>
  2165. <doc>
  2166. <![CDATA[@return disk space used
  2167. @throws IOException if the shell command fails]]>
  2168. </doc>
  2169. </method>
  2170. <method name="getDirPath" return="java.lang.String"
  2171. abstract="false" native="false" synchronized="false"
  2172. static="false" final="false" visibility="public"
  2173. deprecated="not deprecated">
  2174. <doc>
  2175. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  2176. </doc>
  2177. </method>
  2178. <method name="start"
  2179. abstract="false" native="false" synchronized="false"
  2180. static="false" final="false" visibility="public"
  2181. deprecated="not deprecated">
  2182. <doc>
  2183. <![CDATA[Start the disk usage checking thread.]]>
  2184. </doc>
  2185. </method>
  2186. <method name="shutdown"
  2187. abstract="false" native="false" synchronized="false"
  2188. static="false" final="false" visibility="public"
  2189. deprecated="not deprecated">
  2190. <doc>
  2191. <![CDATA[Shut down the refreshing thread.]]>
  2192. </doc>
  2193. </method>
  2194. <method name="toString" return="java.lang.String"
  2195. abstract="false" native="false" synchronized="false"
  2196. static="false" final="false" visibility="public"
  2197. deprecated="not deprecated">
  2198. </method>
  2199. <method name="getExecString" return="java.lang.String[]"
  2200. abstract="false" native="false" synchronized="false"
  2201. static="false" final="false" visibility="protected"
  2202. deprecated="not deprecated">
  2203. </method>
  2204. <method name="parseExecResult"
  2205. abstract="false" native="false" synchronized="false"
  2206. static="false" final="false" visibility="protected"
  2207. deprecated="not deprecated">
  2208. <param name="lines" type="java.io.BufferedReader"/>
  2209. <exception name="IOException" type="java.io.IOException"/>
  2210. </method>
  2211. <method name="main"
  2212. abstract="false" native="false" synchronized="false"
  2213. static="true" final="false" visibility="public"
  2214. deprecated="not deprecated">
  2215. <param name="args" type="java.lang.String[]"/>
  2216. <exception name="Exception" type="java.lang.Exception"/>
  2217. </method>
  2218. <doc>
  2219. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  2220. </doc>
  2221. </class>
  2222. <!-- end class org.apache.hadoop.fs.DU -->
  2223. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  2224. <class name="FileChecksum" extends="java.lang.Object"
  2225. abstract="true"
  2226. static="false" final="false" visibility="public"
  2227. deprecated="not deprecated">
  2228. <implements name="org.apache.hadoop.io.Writable"/>
  2229. <constructor name="FileChecksum"
  2230. static="false" final="false" visibility="public"
  2231. deprecated="not deprecated">
  2232. </constructor>
  2233. <method name="getAlgorithmName" return="java.lang.String"
  2234. abstract="true" native="false" synchronized="false"
  2235. static="false" final="false" visibility="public"
  2236. deprecated="not deprecated">
  2237. <doc>
  2238. <![CDATA[The checksum algorithm name]]>
  2239. </doc>
  2240. </method>
  2241. <method name="getLength" return="int"
  2242. abstract="true" native="false" synchronized="false"
  2243. static="false" final="false" visibility="public"
  2244. deprecated="not deprecated">
  2245. <doc>
  2246. <![CDATA[The length of the checksum in bytes]]>
  2247. </doc>
  2248. </method>
  2249. <method name="getBytes" return="byte[]"
  2250. abstract="true" native="false" synchronized="false"
  2251. static="false" final="false" visibility="public"
  2252. deprecated="not deprecated">
  2253. <doc>
  2254. <![CDATA[The value of the checksum in bytes]]>
  2255. </doc>
  2256. </method>
  2257. <method name="equals" return="boolean"
  2258. abstract="false" native="false" synchronized="false"
  2259. static="false" final="false" visibility="public"
  2260. deprecated="not deprecated">
  2261. <param name="other" type="java.lang.Object"/>
  2262. <doc>
  2263. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  2264. </doc>
  2265. </method>
  2266. <method name="hashCode" return="int"
  2267. abstract="false" native="false" synchronized="false"
  2268. static="false" final="false" visibility="public"
  2269. deprecated="not deprecated">
  2270. <doc>
  2271. <![CDATA[{@inheritDoc}]]>
  2272. </doc>
  2273. </method>
  2274. <doc>
  2275. <![CDATA[An abstract class representing file checksums for files.]]>
  2276. </doc>
  2277. </class>
  2278. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2279. <!-- start class org.apache.hadoop.fs.FileStatus -->
  2280. <class name="FileStatus" extends="java.lang.Object"
  2281. abstract="false"
  2282. static="false" final="false" visibility="public"
  2283. deprecated="not deprecated">
  2284. <implements name="org.apache.hadoop.io.Writable"/>
  2285. <implements name="java.lang.Comparable"/>
  2286. <constructor name="FileStatus"
  2287. static="false" final="false" visibility="public"
  2288. deprecated="not deprecated">
  2289. </constructor>
  2290. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  2291. static="false" final="false" visibility="public"
  2292. deprecated="not deprecated">
  2293. </constructor>
  2294. <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"
  2295. static="false" final="false" visibility="public"
  2296. deprecated="not deprecated">
  2297. </constructor>
  2298. <method name="getLen" return="long"
  2299. abstract="false" native="false" synchronized="false"
  2300. static="false" final="false" visibility="public"
  2301. deprecated="not deprecated">
  2302. </method>
  2303. <method name="isDir" return="boolean"
  2304. abstract="false" native="false" synchronized="false"
  2305. static="false" final="false" visibility="public"
  2306. deprecated="not deprecated">
  2307. <doc>
  2308. <![CDATA[Is this a directory?
  2309. @return true if this is a directory]]>
  2310. </doc>
  2311. </method>
  2312. <method name="getBlockSize" return="long"
  2313. abstract="false" native="false" synchronized="false"
  2314. static="false" final="false" visibility="public"
  2315. deprecated="not deprecated">
  2316. <doc>
  2317. <![CDATA[Get the block size of the file.
  2318. @return the number of bytes]]>
  2319. </doc>
  2320. </method>
  2321. <method name="getReplication" return="short"
  2322. abstract="false" native="false" synchronized="false"
  2323. static="false" final="false" visibility="public"
  2324. deprecated="not deprecated">
  2325. <doc>
  2326. <![CDATA[Get the replication factor of a file.
  2327. @return the replication factor of a file.]]>
  2328. </doc>
  2329. </method>
  2330. <method name="getModificationTime" return="long"
  2331. abstract="false" native="false" synchronized="false"
  2332. static="false" final="false" visibility="public"
  2333. deprecated="not deprecated">
  2334. <doc>
  2335. <![CDATA[Get the modification time of the file.
  2336. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2337. </doc>
  2338. </method>
  2339. <method name="getAccessTime" return="long"
  2340. abstract="false" native="false" synchronized="false"
  2341. static="false" final="false" visibility="public"
  2342. deprecated="not deprecated">
  2343. <doc>
  2344. <![CDATA[Get the access time of the file.
  2345. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  2346. </doc>
  2347. </method>
  2348. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2349. abstract="false" native="false" synchronized="false"
  2350. static="false" final="false" visibility="public"
  2351. deprecated="not deprecated">
  2352. <doc>
  2353. <![CDATA[Get FsPermission associated with the file.
  2354. @return permssion. If a filesystem does not have a notion of permissions
  2355. or if permissions could not be determined, then default
  2356. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2357. </doc>
  2358. </method>
  2359. <method name="getOwner" return="java.lang.String"
  2360. abstract="false" native="false" synchronized="false"
  2361. static="false" final="false" visibility="public"
  2362. deprecated="not deprecated">
  2363. <doc>
  2364. <![CDATA[Get the owner of the file.
  2365. @return owner of the file. The string could be empty if there is no
  2366. notion of owner of a file in a filesystem or if it could not
  2367. be determined (rare).]]>
  2368. </doc>
  2369. </method>
  2370. <method name="getGroup" return="java.lang.String"
  2371. abstract="false" native="false" synchronized="false"
  2372. static="false" final="false" visibility="public"
  2373. deprecated="not deprecated">
  2374. <doc>
  2375. <![CDATA[Get the group associated with the file.
  2376. @return group for the file. The string could be empty if there is no
  2377. notion of group of a file in a filesystem or if it could not
  2378. be determined (rare).]]>
  2379. </doc>
  2380. </method>
  2381. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2382. abstract="false" native="false" synchronized="false"
  2383. static="false" final="false" visibility="public"
  2384. deprecated="not deprecated">
  2385. </method>
  2386. <method name="setPermission"
  2387. abstract="false" native="false" synchronized="false"
  2388. static="false" final="false" visibility="protected"
  2389. deprecated="not deprecated">
  2390. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2391. <doc>
  2392. <![CDATA[Sets permission.
  2393. @param permission if permission is null, default value is set]]>
  2394. </doc>
  2395. </method>
  2396. <method name="setOwner"
  2397. abstract="false" native="false" synchronized="false"
  2398. static="false" final="false" visibility="protected"
  2399. deprecated="not deprecated">
  2400. <param name="owner" type="java.lang.String"/>
  2401. <doc>
  2402. <![CDATA[Sets owner.
  2403. @param owner if it is null, default value is set]]>
  2404. </doc>
  2405. </method>
  2406. <method name="setGroup"
  2407. abstract="false" native="false" synchronized="false"
  2408. static="false" final="false" visibility="protected"
  2409. deprecated="not deprecated">
  2410. <param name="group" type="java.lang.String"/>
  2411. <doc>
  2412. <![CDATA[Sets group.
  2413. @param group if it is null, default value is set]]>
  2414. </doc>
  2415. </method>
  2416. <method name="write"
  2417. abstract="false" native="false" synchronized="false"
  2418. static="false" final="false" visibility="public"
  2419. deprecated="not deprecated">
  2420. <param name="out" type="java.io.DataOutput"/>
  2421. <exception name="IOException" type="java.io.IOException"/>
  2422. </method>
  2423. <method name="readFields"
  2424. abstract="false" native="false" synchronized="false"
  2425. static="false" final="false" visibility="public"
  2426. deprecated="not deprecated">
  2427. <param name="in" type="java.io.DataInput"/>
  2428. <exception name="IOException" type="java.io.IOException"/>
  2429. </method>
  2430. <method name="compareTo" return="int"
  2431. abstract="false" native="false" synchronized="false"
  2432. static="false" final="false" visibility="public"
  2433. deprecated="not deprecated">
  2434. <param name="o" type="java.lang.Object"/>
  2435. <doc>
  2436. <![CDATA[Compare this object to another object
  2437. @param o the object to be compared.
  2438. @return a negative integer, zero, or a positive integer as this object
  2439. is less than, equal to, or greater than the specified object.
  2440. @throws ClassCastException if the specified object's is not of
  2441. type FileStatus]]>
  2442. </doc>
  2443. </method>
  2444. <method name="equals" return="boolean"
  2445. abstract="false" native="false" synchronized="false"
  2446. static="false" final="false" visibility="public"
  2447. deprecated="not deprecated">
  2448. <param name="o" type="java.lang.Object"/>
  2449. <doc>
  2450. <![CDATA[Compare if this object is equal to another object
  2451. @param o the object to be compared.
  2452. @return true if two file status has the same path name; false if not.]]>
  2453. </doc>
  2454. </method>
  2455. <method name="hashCode" return="int"
  2456. abstract="false" native="false" synchronized="false"
  2457. static="false" final="false" visibility="public"
  2458. deprecated="not deprecated">
  2459. <doc>
  2460. <![CDATA[Returns a hash code value for the object, which is defined as
  2461. the hash code of the path name.
  2462. @return a hash code value for the path name.]]>
  2463. </doc>
  2464. </method>
  2465. <doc>
  2466. <![CDATA[Interface that represents the client side information for a file.]]>
  2467. </doc>
  2468. </class>
  2469. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2470. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2471. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2472. abstract="true"
  2473. static="false" final="false" visibility="public"
  2474. deprecated="not deprecated">
  2475. <implements name="java.io.Closeable"/>
  2476. <constructor name="FileSystem"
  2477. static="false" final="false" visibility="protected"
  2478. deprecated="not deprecated">
  2479. </constructor>
  2480. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2481. abstract="false" native="false" synchronized="false"
  2482. static="true" final="false" visibility="public"
  2483. deprecated="not deprecated">
  2484. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2485. <exception name="IOException" type="java.io.IOException"/>
  2486. <doc>
  2487. <![CDATA[Returns the configured filesystem implementation.]]>
  2488. </doc>
  2489. </method>
  2490. <method name="getDefaultUri" return="java.net.URI"
  2491. abstract="false" native="false" synchronized="false"
  2492. static="true" final="false" visibility="public"
  2493. deprecated="not deprecated">
  2494. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2495. <doc>
  2496. <![CDATA[Get the default filesystem URI from a configuration.
  2497. @param conf the configuration to access
  2498. @return the uri of the default filesystem]]>
  2499. </doc>
  2500. </method>
  2501. <method name="setDefaultUri"
  2502. abstract="false" native="false" synchronized="false"
  2503. static="true" final="false" visibility="public"
  2504. deprecated="not deprecated">
  2505. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2506. <param name="uri" type="java.net.URI"/>
  2507. <doc>
  2508. <![CDATA[Set the default filesystem URI in a configuration.
  2509. @param conf the configuration to alter
  2510. @param uri the new default filesystem uri]]>
  2511. </doc>
  2512. </method>
  2513. <method name="setDefaultUri"
  2514. abstract="false" native="false" synchronized="false"
  2515. static="true" final="false" visibility="public"
  2516. deprecated="not deprecated">
  2517. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2518. <param name="uri" type="java.lang.String"/>
  2519. <doc>
  2520. <![CDATA[Set the default filesystem URI in a configuration.
  2521. @param conf the configuration to alter
  2522. @param uri the new default filesystem uri]]>
  2523. </doc>
  2524. </method>
  2525. <method name="initialize"
  2526. abstract="false" native="false" synchronized="false"
  2527. static="false" final="false" visibility="public"
  2528. deprecated="not deprecated">
  2529. <param name="name" type="java.net.URI"/>
  2530. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2531. <exception name="IOException" type="java.io.IOException"/>
  2532. <doc>
  2533. <![CDATA[Called after a new FileSystem instance is constructed.
  2534. @param name a uri whose authority section names the host, port, etc.
  2535. for this FileSystem
  2536. @param conf the configuration]]>
  2537. </doc>
  2538. </method>
  2539. <method name="getUri" return="java.net.URI"
  2540. abstract="true" native="false" synchronized="false"
  2541. static="false" final="false" visibility="public"
  2542. deprecated="not deprecated">
  2543. <doc>
  2544. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2545. </doc>
  2546. </method>
  2547. <method name="getName" return="java.lang.String"
  2548. abstract="false" native="false" synchronized="false"
  2549. static="false" final="false" visibility="public"
  2550. deprecated="call #getUri() instead.">
  2551. <doc>
  2552. <![CDATA[@deprecated call #getUri() instead.]]>
  2553. </doc>
  2554. </method>
  2555. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2556. abstract="false" native="false" synchronized="false"
  2557. static="true" final="false" visibility="public"
  2558. deprecated="call #get(URI,Configuration) instead.">
  2559. <param name="name" type="java.lang.String"/>
  2560. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2561. <exception name="IOException" type="java.io.IOException"/>
  2562. <doc>
  2563. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2564. </doc>
  2565. </method>
  2566. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2567. abstract="false" native="false" synchronized="false"
  2568. static="true" final="false" visibility="public"
  2569. deprecated="not deprecated">
  2570. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2571. <exception name="IOException" type="java.io.IOException"/>
  2572. <doc>
  2573. <![CDATA[Get the local file syste
  2574. @param conf the configuration to configure the file system with
  2575. @return a LocalFileSystem]]>
  2576. </doc>
  2577. </method>
  2578. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2579. abstract="false" native="false" synchronized="false"
  2580. static="true" final="false" visibility="public"
  2581. deprecated="not deprecated">
  2582. <param name="uri" type="java.net.URI"/>
  2583. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2584. <exception name="IOException" type="java.io.IOException"/>
  2585. <doc>
  2586. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2587. of the URI determines a configuration property name,
  2588. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2589. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2590. </doc>
  2591. </method>
  2592. <method name="closeAll"
  2593. abstract="false" native="false" synchronized="false"
  2594. static="true" final="false" visibility="public"
  2595. deprecated="not deprecated">
  2596. <exception name="IOException" type="java.io.IOException"/>
  2597. <doc>
  2598. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2599. used anymore.
  2600. @throws IOException]]>
  2601. </doc>
  2602. </method>
  2603. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2604. abstract="false" native="false" synchronized="false"
  2605. static="false" final="false" visibility="public"
  2606. deprecated="not deprecated">
  2607. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2608. <doc>
  2609. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2610. </doc>
  2611. </method>
  2612. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2613. abstract="false" native="false" synchronized="false"
  2614. static="true" final="false" visibility="public"
  2615. deprecated="not deprecated">
  2616. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2617. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2618. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2619. <exception name="IOException" type="java.io.IOException"/>
  2620. <doc>
  2621. <![CDATA[create a file with the provided permission
  2622. The permission of the file is set to be the provided permission as in
  2623. setPermission, not permission&~umask
  2624. It is implemented using two RPCs. It is understood that it is inefficient,
  2625. but the implementation is thread-safe. The other option is to change the
  2626. value of umask in configuration to be 0, but it is not thread-safe.
  2627. @param fs file system handle
  2628. @param file the name of the file to be created
  2629. @param permission the permission of the file
  2630. @return an output stream
  2631. @throws IOException]]>
  2632. </doc>
  2633. </method>
  2634. <method name="mkdirs" return="boolean"
  2635. abstract="false" native="false" synchronized="false"
  2636. static="true" final="false" visibility="public"
  2637. deprecated="not deprecated">
  2638. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2639. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2640. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2641. <exception name="IOException" type="java.io.IOException"/>
  2642. <doc>
  2643. <![CDATA[create a directory with the provided permission
  2644. The permission of the directory is set to be the provided permission as in
  2645. setPermission, not permission&~umask
  2646. @see #create(FileSystem, Path, FsPermission)
  2647. @param fs file system handle
  2648. @param dir the name of the directory to be created
  2649. @param permission the permission of the directory
  2650. @return true if the directory creation succeeds; false otherwise
  2651. @throws IOException]]>
  2652. </doc>
  2653. </method>
  2654. <method name="checkPath"
  2655. abstract="false" native="false" synchronized="false"
  2656. static="false" final="false" visibility="protected"
  2657. deprecated="not deprecated">
  2658. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2659. <doc>
  2660. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2661. </doc>
  2662. </method>
  2663. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2664. abstract="false" native="false" synchronized="false"
  2665. static="false" final="false" visibility="public"
  2666. deprecated="not deprecated">
  2667. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2668. <param name="start" type="long"/>
  2669. <param name="len" type="long"/>
  2670. <exception name="IOException" type="java.io.IOException"/>
  2671. <doc>
  2672. <![CDATA[Return an array containing hostnames, offset and size of
  2673. portions of the given file. For a nonexistent
  2674. file or regions, null will be returned.
  2675. This call is most helpful with DFS, where it returns
  2676. hostnames of machines that contain the given file.
  2677. The FileSystem will simply return an elt containing 'localhost'.]]>
  2678. </doc>
  2679. </method>
  2680. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2681. abstract="true" native="false" synchronized="false"
  2682. static="false" final="false" visibility="public"
  2683. deprecated="not deprecated">
  2684. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2685. <param name="bufferSize" type="int"/>
  2686. <exception name="IOException" type="java.io.IOException"/>
  2687. <doc>
  2688. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2689. @param f the file name to open
  2690. @param bufferSize the size of the buffer to be used.]]>
  2691. </doc>
  2692. </method>
  2693. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2694. abstract="false" native="false" synchronized="false"
  2695. static="false" final="false" visibility="public"
  2696. deprecated="not deprecated">
  2697. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2698. <exception name="IOException" type="java.io.IOException"/>
  2699. <doc>
  2700. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2701. @param f the file to open]]>
  2702. </doc>
  2703. </method>
  2704. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2705. abstract="false" native="false" synchronized="false"
  2706. static="false" final="false" visibility="public"
  2707. deprecated="not deprecated">
  2708. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2709. <exception name="IOException" type="java.io.IOException"/>
  2710. <doc>
  2711. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2712. Files are overwritten by default.]]>
  2713. </doc>
  2714. </method>
  2715. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2716. abstract="false" native="false" synchronized="false"
  2717. static="false" final="false" visibility="public"
  2718. deprecated="not deprecated">
  2719. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2720. <param name="overwrite" type="boolean"/>
  2721. <exception name="IOException" type="java.io.IOException"/>
  2722. <doc>
  2723. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2724. </doc>
  2725. </method>
  2726. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2727. abstract="false" native="false" synchronized="false"
  2728. static="false" final="false" visibility="public"
  2729. deprecated="not deprecated">
  2730. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2731. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2732. <exception name="IOException" type="java.io.IOException"/>
  2733. <doc>
  2734. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2735. reporting.
  2736. Files are overwritten by default.]]>
  2737. </doc>
  2738. </method>
  2739. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2740. abstract="false" native="false" synchronized="false"
  2741. static="false" final="false" visibility="public"
  2742. deprecated="not deprecated">
  2743. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2744. <param name="replication" type="short"/>
  2745. <exception name="IOException" type="java.io.IOException"/>
  2746. <doc>
  2747. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2748. Files are overwritten by default.]]>
  2749. </doc>
  2750. </method>
  2751. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2752. abstract="false" native="false" synchronized="false"
  2753. static="false" final="false" visibility="public"
  2754. deprecated="not deprecated">
  2755. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2756. <param name="replication" type="short"/>
  2757. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2758. <exception name="IOException" type="java.io.IOException"/>
  2759. <doc>
  2760. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2761. reporting.
  2762. Files are overwritten by default.]]>
  2763. </doc>
  2764. </method>
  2765. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2766. abstract="false" native="false" synchronized="false"
  2767. static="false" final="false" visibility="public"
  2768. deprecated="not deprecated">
  2769. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2770. <param name="overwrite" type="boolean"/>
  2771. <param name="bufferSize" type="int"/>
  2772. <exception name="IOException" type="java.io.IOException"/>
  2773. <doc>
  2774. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2775. @param f the file name to open
  2776. @param overwrite if a file with this name already exists, then if true,
  2777. the file will be overwritten, and if false an error will be thrown.
  2778. @param bufferSize the size of the buffer to be used.]]>
  2779. </doc>
  2780. </method>
  2781. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2782. abstract="false" native="false" synchronized="false"
  2783. static="false" final="false" visibility="public"
  2784. deprecated="not deprecated">
  2785. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2786. <param name="overwrite" type="boolean"/>
  2787. <param name="bufferSize" type="int"/>
  2788. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2789. <exception name="IOException" type="java.io.IOException"/>
  2790. <doc>
  2791. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2792. reporting.
  2793. @param f the file name to open
  2794. @param overwrite if a file with this name already exists, then if true,
  2795. the file will be overwritten, and if false an error will be thrown.
  2796. @param bufferSize the size of the buffer to be used.]]>
  2797. </doc>
  2798. </method>
  2799. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2800. abstract="false" native="false" synchronized="false"
  2801. static="false" final="false" visibility="public"
  2802. deprecated="not deprecated">
  2803. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2804. <param name="overwrite" type="boolean"/>
  2805. <param name="bufferSize" type="int"/>
  2806. <param name="replication" type="short"/>
  2807. <param name="blockSize" type="long"/>
  2808. <exception name="IOException" type="java.io.IOException"/>
  2809. <doc>
  2810. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2811. @param f the file name to open
  2812. @param overwrite if a file with this name already exists, then if true,
  2813. the file will be overwritten, and if false an error will be thrown.
  2814. @param bufferSize the size of the buffer to be used.
  2815. @param replication required block replication for the file.]]>
  2816. </doc>
  2817. </method>
  2818. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2819. abstract="false" native="false" synchronized="false"
  2820. static="false" final="false" visibility="public"
  2821. deprecated="not deprecated">
  2822. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2823. <param name="overwrite" type="boolean"/>
  2824. <param name="bufferSize" type="int"/>
  2825. <param name="replication" type="short"/>
  2826. <param name="blockSize" type="long"/>
  2827. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2828. <exception name="IOException" type="java.io.IOException"/>
  2829. <doc>
  2830. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2831. reporting.
  2832. @param f the file name to open
  2833. @param overwrite if a file with this name already exists, then if true,
  2834. the file will be overwritten, and if false an error will be thrown.
  2835. @param bufferSize the size of the buffer to be used.
  2836. @param replication required block replication for the file.]]>
  2837. </doc>
  2838. </method>
  2839. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2840. abstract="true" native="false" synchronized="false"
  2841. static="false" final="false" visibility="public"
  2842. deprecated="not deprecated">
  2843. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2844. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2845. <param name="overwrite" type="boolean"/>
  2846. <param name="bufferSize" type="int"/>
  2847. <param name="replication" type="short"/>
  2848. <param name="blockSize" type="long"/>
  2849. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2850. <exception name="IOException" type="java.io.IOException"/>
  2851. <doc>
  2852. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2853. reporting.
  2854. @param f the file name to open
  2855. @param permission
  2856. @param overwrite if a file with this name already exists, then if true,
  2857. the file will be overwritten, and if false an error will be thrown.
  2858. @param bufferSize the size of the buffer to be used.
  2859. @param replication required block replication for the file.
  2860. @param blockSize
  2861. @param progress
  2862. @throws IOException
  2863. @see #setPermission(Path, FsPermission)]]>
  2864. </doc>
  2865. </method>
  2866. <method name="createNewFile" return="boolean"
  2867. abstract="false" 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[Creates the given Path as a brand-new zero-length file. If
  2874. create fails, or if it already existed, return false.]]>
  2875. </doc>
  2876. </method>
  2877. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2878. abstract="false" native="false" synchronized="false"
  2879. static="false" final="false" visibility="public"
  2880. deprecated="not deprecated">
  2881. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2882. <exception name="IOException" type="java.io.IOException"/>
  2883. <doc>
  2884. <![CDATA[Append to an existing file (optional operation).
  2885. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2886. @param f the existing file to be appended.
  2887. @throws IOException]]>
  2888. </doc>
  2889. </method>
  2890. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2891. abstract="false" native="false" synchronized="false"
  2892. static="false" final="false" visibility="public"
  2893. deprecated="not deprecated">
  2894. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2895. <param name="bufferSize" type="int"/>
  2896. <exception name="IOException" type="java.io.IOException"/>
  2897. <doc>
  2898. <![CDATA[Append to an existing file (optional operation).
  2899. Same as append(f, bufferSize, null).
  2900. @param f the existing file to be appended.
  2901. @param bufferSize the size of the buffer to be used.
  2902. @throws IOException]]>
  2903. </doc>
  2904. </method>
  2905. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2906. abstract="true" native="false" synchronized="false"
  2907. static="false" final="false" visibility="public"
  2908. deprecated="not deprecated">
  2909. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2910. <param name="bufferSize" type="int"/>
  2911. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2912. <exception name="IOException" type="java.io.IOException"/>
  2913. <doc>
  2914. <![CDATA[Append to an existing file (optional operation).
  2915. @param f the existing file to be appended.
  2916. @param bufferSize the size of the buffer to be used.
  2917. @param progress for reporting progress if it is not null.
  2918. @throws IOException]]>
  2919. </doc>
  2920. </method>
  2921. <method name="getReplication" return="short"
  2922. abstract="false" native="false" synchronized="false"
  2923. static="false" final="false" visibility="public"
  2924. deprecated="Use getFileStatus() instead">
  2925. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2926. <exception name="IOException" type="java.io.IOException"/>
  2927. <doc>
  2928. <![CDATA[Get replication.
  2929. @deprecated Use getFileStatus() instead
  2930. @param src file name
  2931. @return file replication
  2932. @throws IOException]]>
  2933. </doc>
  2934. </method>
  2935. <method name="setReplication" return="boolean"
  2936. abstract="false" native="false" synchronized="false"
  2937. static="false" final="false" visibility="public"
  2938. deprecated="not deprecated">
  2939. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2940. <param name="replication" type="short"/>
  2941. <exception name="IOException" type="java.io.IOException"/>
  2942. <doc>
  2943. <![CDATA[Set replication for an existing file.
  2944. @param src file name
  2945. @param replication new replication
  2946. @throws IOException
  2947. @return true if successful;
  2948. false if file does not exist or is a directory]]>
  2949. </doc>
  2950. </method>
  2951. <method name="rename" return="boolean"
  2952. abstract="true" native="false" synchronized="false"
  2953. static="false" final="false" visibility="public"
  2954. deprecated="not deprecated">
  2955. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2956. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2957. <exception name="IOException" type="java.io.IOException"/>
  2958. <doc>
  2959. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  2960. or remote DFS.]]>
  2961. </doc>
  2962. </method>
  2963. <method name="delete" return="boolean"
  2964. abstract="true" native="false" synchronized="false"
  2965. static="false" final="false" visibility="public"
  2966. deprecated="Use delete(Path, boolean) instead">
  2967. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2968. <exception name="IOException" type="java.io.IOException"/>
  2969. <doc>
  2970. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  2971. </doc>
  2972. </method>
  2973. <method name="delete" return="boolean"
  2974. abstract="true" native="false" synchronized="false"
  2975. static="false" final="false" visibility="public"
  2976. deprecated="not deprecated">
  2977. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2978. <param name="recursive" type="boolean"/>
  2979. <exception name="IOException" type="java.io.IOException"/>
  2980. <doc>
  2981. <![CDATA[Delete a file.
  2982. @param f the path to delete.
  2983. @param recursive if path is a directory and set to
  2984. true, the directory is deleted else throws an exception. In
  2985. case of a file the recursive can be set to either true or false.
  2986. @return true if delete is successful else false.
  2987. @throws IOException]]>
  2988. </doc>
  2989. </method>
  2990. <method name="deleteOnExit" return="boolean"
  2991. abstract="false" native="false" synchronized="false"
  2992. static="false" final="false" visibility="public"
  2993. deprecated="not deprecated">
  2994. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2995. <exception name="IOException" type="java.io.IOException"/>
  2996. <doc>
  2997. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  2998. When the JVM shuts down,
  2999. all FileSystem objects will be closed automatically.
  3000. Then,
  3001. the marked path will be deleted as a result of closing the FileSystem.
  3002. The path has to exist in the file system.
  3003. @param f the path to delete.
  3004. @return true if deleteOnExit is successful, otherwise false.
  3005. @throws IOException]]>
  3006. </doc>
  3007. </method>
  3008. <method name="processDeleteOnExit"
  3009. abstract="false" native="false" synchronized="false"
  3010. static="false" final="false" visibility="protected"
  3011. deprecated="not deprecated">
  3012. <doc>
  3013. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  3014. deletes all files in the specified paths.]]>
  3015. </doc>
  3016. </method>
  3017. <method name="exists" return="boolean"
  3018. abstract="false" native="false" synchronized="false"
  3019. static="false" final="false" visibility="public"
  3020. deprecated="not deprecated">
  3021. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3022. <exception name="IOException" type="java.io.IOException"/>
  3023. <doc>
  3024. <![CDATA[Check if exists.
  3025. @param f source file]]>
  3026. </doc>
  3027. </method>
  3028. <method name="isDirectory" return="boolean"
  3029. abstract="false" native="false" synchronized="false"
  3030. static="false" final="false" visibility="public"
  3031. deprecated="Use getFileStatus() instead">
  3032. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3033. <exception name="IOException" type="java.io.IOException"/>
  3034. <doc>
  3035. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3036. </doc>
  3037. </method>
  3038. <method name="isFile" return="boolean"
  3039. abstract="false" native="false" synchronized="false"
  3040. static="false" final="false" visibility="public"
  3041. deprecated="not deprecated">
  3042. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3043. <exception name="IOException" type="java.io.IOException"/>
  3044. <doc>
  3045. <![CDATA[True iff the named path is a regular file.]]>
  3046. </doc>
  3047. </method>
  3048. <method name="getLength" return="long"
  3049. abstract="false" native="false" synchronized="false"
  3050. static="false" final="false" visibility="public"
  3051. deprecated="Use getFileStatus() instead">
  3052. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3053. <exception name="IOException" type="java.io.IOException"/>
  3054. <doc>
  3055. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3056. </doc>
  3057. </method>
  3058. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  3059. abstract="false" native="false" synchronized="false"
  3060. static="false" final="false" visibility="public"
  3061. deprecated="not deprecated">
  3062. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3063. <exception name="IOException" type="java.io.IOException"/>
  3064. <doc>
  3065. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  3066. </doc>
  3067. </method>
  3068. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3069. abstract="true" native="false" synchronized="false"
  3070. static="false" final="false" visibility="public"
  3071. deprecated="not deprecated">
  3072. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3073. <exception name="IOException" type="java.io.IOException"/>
  3074. <doc>
  3075. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3076. a directory.
  3077. @param f
  3078. given path
  3079. @return the statuses of the files/directories in the given patch
  3080. @throws IOException]]>
  3081. </doc>
  3082. </method>
  3083. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3084. abstract="false" native="false" synchronized="false"
  3085. static="false" final="false" visibility="public"
  3086. deprecated="not deprecated">
  3087. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3088. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3089. <exception name="IOException" type="java.io.IOException"/>
  3090. <doc>
  3091. <![CDATA[Filter files/directories in the given path using the user-supplied path
  3092. filter.
  3093. @param f
  3094. a path name
  3095. @param filter
  3096. the user-supplied path filter
  3097. @return an array of FileStatus objects for the files under the given path
  3098. after applying the filter
  3099. @throws IOException
  3100. if encounter any problem while fetching the status]]>
  3101. </doc>
  3102. </method>
  3103. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3104. abstract="false" native="false" synchronized="false"
  3105. static="false" final="false" visibility="public"
  3106. deprecated="not deprecated">
  3107. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3108. <exception name="IOException" type="java.io.IOException"/>
  3109. <doc>
  3110. <![CDATA[Filter files/directories in the given list of paths using default
  3111. path filter.
  3112. @param files
  3113. a list of paths
  3114. @return a list of statuses for the files under the given paths after
  3115. applying the filter default Path filter
  3116. @exception IOException]]>
  3117. </doc>
  3118. </method>
  3119. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3120. abstract="false" native="false" synchronized="false"
  3121. static="false" final="false" visibility="public"
  3122. deprecated="not deprecated">
  3123. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3124. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3125. <exception name="IOException" type="java.io.IOException"/>
  3126. <doc>
  3127. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  3128. path filter.
  3129. @param files
  3130. a list of paths
  3131. @param filter
  3132. the user-supplied path filter
  3133. @return a list of statuses for the files under the given paths after
  3134. applying the filter
  3135. @exception IOException]]>
  3136. </doc>
  3137. </method>
  3138. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3139. abstract="false" native="false" synchronized="false"
  3140. static="false" final="false" visibility="public"
  3141. deprecated="not deprecated">
  3142. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3143. <exception name="IOException" type="java.io.IOException"/>
  3144. <doc>
  3145. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  3146. files. Results are sorted by their names.
  3147. <p>
  3148. A filename pattern is composed of <i>regular</i> characters and
  3149. <i>special pattern matching</i> characters, which are:
  3150. <dl>
  3151. <dd>
  3152. <dl>
  3153. <p>
  3154. <dt> <tt> ? </tt>
  3155. <dd> Matches any single character.
  3156. <p>
  3157. <dt> <tt> * </tt>
  3158. <dd> Matches zero or more characters.
  3159. <p>
  3160. <dt> <tt> [<i>abc</i>] </tt>
  3161. <dd> Matches a single character from character set
  3162. <tt>{<i>a,b,c</i>}</tt>.
  3163. <p>
  3164. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  3165. <dd> Matches a single character from the character range
  3166. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  3167. lexicographically less than or equal to character <tt><i>b</i></tt>.
  3168. <p>
  3169. <dt> <tt> [^<i>a</i>] </tt>
  3170. <dd> Matches a single character that is not from character set or range
  3171. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  3172. immediately to the right of the opening bracket.
  3173. <p>
  3174. <dt> <tt> \<i>c</i> </tt>
  3175. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  3176. <p>
  3177. <dt> <tt> {ab,cd} </tt>
  3178. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  3179. <p>
  3180. <dt> <tt> {ab,c{de,fh}} </tt>
  3181. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  3182. </dl>
  3183. </dd>
  3184. </dl>
  3185. @param pathPattern a regular expression specifying a pth pattern
  3186. @return an array of paths that match the path pattern
  3187. @throws IOException]]>
  3188. </doc>
  3189. </method>
  3190. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3191. abstract="false" native="false" synchronized="false"
  3192. static="false" final="false" visibility="public"
  3193. deprecated="not deprecated">
  3194. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3195. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3196. <exception name="IOException" type="java.io.IOException"/>
  3197. <doc>
  3198. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  3199. and is accepted by the user-supplied path filter. Results are sorted by
  3200. their path names.
  3201. Return null if pathPattern has no glob and the path does not exist.
  3202. Return an empty array if pathPattern has a glob and no path matches it.
  3203. @param pathPattern
  3204. a regular expression specifying the path pattern
  3205. @param filter
  3206. a user-supplied path filter
  3207. @return an array of FileStatus objects
  3208. @throws IOException if any I/O error occurs when fetching file status]]>
  3209. </doc>
  3210. </method>
  3211. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3212. abstract="false" native="false" synchronized="false"
  3213. static="false" final="false" visibility="public"
  3214. deprecated="not deprecated">
  3215. <doc>
  3216. <![CDATA[Return the current user's home directory in this filesystem.
  3217. The default implementation returns "/user/$USER/".]]>
  3218. </doc>
  3219. </method>
  3220. <method name="setWorkingDirectory"
  3221. abstract="true" native="false" synchronized="false"
  3222. static="false" final="false" visibility="public"
  3223. deprecated="not deprecated">
  3224. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  3225. <doc>
  3226. <![CDATA[Set the current working directory for the given file system. All relative
  3227. paths will be resolved relative to it.
  3228. @param new_dir]]>
  3229. </doc>
  3230. </method>
  3231. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3232. abstract="true" native="false" synchronized="false"
  3233. static="false" final="false" visibility="public"
  3234. deprecated="not deprecated">
  3235. <doc>
  3236. <![CDATA[Get the current working directory for the given file system
  3237. @return the directory pathname]]>
  3238. </doc>
  3239. </method>
  3240. <method name="mkdirs" return="boolean"
  3241. abstract="false" native="false" synchronized="false"
  3242. static="false" final="false" visibility="public"
  3243. deprecated="not deprecated">
  3244. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3245. <exception name="IOException" type="java.io.IOException"/>
  3246. <doc>
  3247. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  3248. </doc>
  3249. </method>
  3250. <method name="mkdirs" return="boolean"
  3251. abstract="true" native="false" synchronized="false"
  3252. static="false" final="false" visibility="public"
  3253. deprecated="not deprecated">
  3254. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3255. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3256. <exception name="IOException" type="java.io.IOException"/>
  3257. <doc>
  3258. <![CDATA[Make the given file and all non-existent parents into
  3259. directories. Has the semantics of Unix 'mkdir -p'.
  3260. Existence of the directory hierarchy is not an error.]]>
  3261. </doc>
  3262. </method>
  3263. <method name="copyFromLocalFile"
  3264. abstract="false" native="false" synchronized="false"
  3265. static="false" final="false" visibility="public"
  3266. deprecated="not deprecated">
  3267. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3268. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3269. <exception name="IOException" type="java.io.IOException"/>
  3270. <doc>
  3271. <![CDATA[The src file is on the local disk. Add it to FS at
  3272. the given dst name and the source is kept intact afterwards]]>
  3273. </doc>
  3274. </method>
  3275. <method name="moveFromLocalFile"
  3276. abstract="false" native="false" synchronized="false"
  3277. static="false" final="false" visibility="public"
  3278. deprecated="not deprecated">
  3279. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3280. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3281. <exception name="IOException" type="java.io.IOException"/>
  3282. <doc>
  3283. <![CDATA[The src files is on the local disk. Add it to FS at
  3284. the given dst name, removing the source afterwards.]]>
  3285. </doc>
  3286. </method>
  3287. <method name="moveFromLocalFile"
  3288. abstract="false" native="false" synchronized="false"
  3289. static="false" final="false" visibility="public"
  3290. deprecated="not deprecated">
  3291. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3292. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3293. <exception name="IOException" type="java.io.IOException"/>
  3294. <doc>
  3295. <![CDATA[The src file is on the local disk. Add it to FS at
  3296. the given dst name, removing the source afterwards.]]>
  3297. </doc>
  3298. </method>
  3299. <method name="copyFromLocalFile"
  3300. abstract="false" native="false" synchronized="false"
  3301. static="false" final="false" visibility="public"
  3302. deprecated="not deprecated">
  3303. <param name="delSrc" type="boolean"/>
  3304. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3305. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3306. <exception name="IOException" type="java.io.IOException"/>
  3307. <doc>
  3308. <![CDATA[The src file is on the local disk. Add it to FS at
  3309. the given dst name.
  3310. delSrc indicates if the source should be removed]]>
  3311. </doc>
  3312. </method>
  3313. <method name="copyFromLocalFile"
  3314. abstract="false" native="false" synchronized="false"
  3315. static="false" final="false" visibility="public"
  3316. deprecated="not deprecated">
  3317. <param name="delSrc" type="boolean"/>
  3318. <param name="overwrite" type="boolean"/>
  3319. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3320. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3321. <exception name="IOException" type="java.io.IOException"/>
  3322. <doc>
  3323. <![CDATA[The src files are on the local disk. Add it to FS at
  3324. the given dst name.
  3325. delSrc indicates if the source should be removed]]>
  3326. </doc>
  3327. </method>
  3328. <method name="copyFromLocalFile"
  3329. abstract="false" native="false" synchronized="false"
  3330. static="false" final="false" visibility="public"
  3331. deprecated="not deprecated">
  3332. <param name="delSrc" type="boolean"/>
  3333. <param name="overwrite" type="boolean"/>
  3334. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3335. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3336. <exception name="IOException" type="java.io.IOException"/>
  3337. <doc>
  3338. <![CDATA[The src file is on the local disk. Add it to FS at
  3339. the given dst name.
  3340. delSrc indicates if the source should be removed]]>
  3341. </doc>
  3342. </method>
  3343. <method name="copyToLocalFile"
  3344. abstract="false" native="false" synchronized="false"
  3345. static="false" final="false" visibility="public"
  3346. deprecated="not deprecated">
  3347. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3348. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3349. <exception name="IOException" type="java.io.IOException"/>
  3350. <doc>
  3351. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3352. Copy it from FS control to the local dst name.]]>
  3353. </doc>
  3354. </method>
  3355. <method name="moveToLocalFile"
  3356. abstract="false" native="false" synchronized="false"
  3357. static="false" final="false" visibility="public"
  3358. deprecated="not deprecated">
  3359. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3360. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3361. <exception name="IOException" type="java.io.IOException"/>
  3362. <doc>
  3363. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3364. Copy it from FS control to the local dst name.
  3365. Remove the source afterwards]]>
  3366. </doc>
  3367. </method>
  3368. <method name="copyToLocalFile"
  3369. abstract="false" native="false" synchronized="false"
  3370. static="false" final="false" visibility="public"
  3371. deprecated="not deprecated">
  3372. <param name="delSrc" type="boolean"/>
  3373. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3374. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3375. <exception name="IOException" type="java.io.IOException"/>
  3376. <doc>
  3377. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3378. Copy it from FS control to the local dst name.
  3379. delSrc indicates if the src will be removed or not.]]>
  3380. </doc>
  3381. </method>
  3382. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3383. abstract="false" native="false" synchronized="false"
  3384. static="false" final="false" visibility="public"
  3385. deprecated="not deprecated">
  3386. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3387. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3388. <exception name="IOException" type="java.io.IOException"/>
  3389. <doc>
  3390. <![CDATA[Returns a local File that the user can write output to. The caller
  3391. provides both the eventual FS target name and the local working
  3392. file. If the FS is local, we write directly into the target. If
  3393. the FS is remote, we write into the tmp local area.]]>
  3394. </doc>
  3395. </method>
  3396. <method name="completeLocalOutput"
  3397. abstract="false" native="false" synchronized="false"
  3398. static="false" final="false" visibility="public"
  3399. deprecated="not deprecated">
  3400. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3401. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3402. <exception name="IOException" type="java.io.IOException"/>
  3403. <doc>
  3404. <![CDATA[Called when we're all done writing to the target. A local FS will
  3405. do nothing, because we've written to exactly the right place. A remote
  3406. FS will copy the contents of tmpLocalFile to the correct target at
  3407. fsOutputFile.]]>
  3408. </doc>
  3409. </method>
  3410. <method name="close"
  3411. abstract="false" native="false" synchronized="false"
  3412. static="false" final="false" visibility="public"
  3413. deprecated="not deprecated">
  3414. <exception name="IOException" type="java.io.IOException"/>
  3415. <doc>
  3416. <![CDATA[No more filesystem operations are needed. Will
  3417. release any held locks.]]>
  3418. </doc>
  3419. </method>
  3420. <method name="getUsed" return="long"
  3421. abstract="false" native="false" synchronized="false"
  3422. static="false" final="false" visibility="public"
  3423. deprecated="not deprecated">
  3424. <exception name="IOException" type="java.io.IOException"/>
  3425. <doc>
  3426. <![CDATA[Return the total size of all files in the filesystem.]]>
  3427. </doc>
  3428. </method>
  3429. <method name="getBlockSize" return="long"
  3430. abstract="false" native="false" synchronized="false"
  3431. static="false" final="false" visibility="public"
  3432. deprecated="Use getFileStatus() instead">
  3433. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3434. <exception name="IOException" type="java.io.IOException"/>
  3435. <doc>
  3436. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3437. </doc>
  3438. </method>
  3439. <method name="getDefaultBlockSize" return="long"
  3440. abstract="false" native="false" synchronized="false"
  3441. static="false" final="false" visibility="public"
  3442. deprecated="not deprecated">
  3443. <doc>
  3444. <![CDATA[Return the number of bytes that large input files should be optimally
  3445. be split into to minimize i/o time.]]>
  3446. </doc>
  3447. </method>
  3448. <method name="getDefaultReplication" return="short"
  3449. abstract="false" native="false" synchronized="false"
  3450. static="false" final="false" visibility="public"
  3451. deprecated="not deprecated">
  3452. <doc>
  3453. <![CDATA[Get the default replication.]]>
  3454. </doc>
  3455. </method>
  3456. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3457. abstract="true" native="false" synchronized="false"
  3458. static="false" final="false" visibility="public"
  3459. deprecated="not deprecated">
  3460. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3461. <exception name="IOException" type="java.io.IOException"/>
  3462. <doc>
  3463. <![CDATA[Return a file status object that represents the path.
  3464. @param f The path we want information from
  3465. @return a FileStatus object
  3466. @throws FileNotFoundException when the path does not exist;
  3467. IOException see specific implementation]]>
  3468. </doc>
  3469. </method>
  3470. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3471. abstract="false" native="false" synchronized="false"
  3472. static="false" final="false" visibility="public"
  3473. deprecated="not deprecated">
  3474. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3475. <exception name="IOException" type="java.io.IOException"/>
  3476. <doc>
  3477. <![CDATA[Get the checksum of a file.
  3478. @param f The file path
  3479. @return The file checksum. The default return value is null,
  3480. which indicates that no checksum algorithm is implemented
  3481. in the corresponding FileSystem.]]>
  3482. </doc>
  3483. </method>
  3484. <method name="setVerifyChecksum"
  3485. abstract="false" native="false" synchronized="false"
  3486. static="false" final="false" visibility="public"
  3487. deprecated="not deprecated">
  3488. <param name="verifyChecksum" type="boolean"/>
  3489. <doc>
  3490. <![CDATA[Set the verify checksum flag. This is only applicable if the
  3491. corresponding FileSystem supports checksum. By default doesn't do anything.
  3492. @param verifyChecksum]]>
  3493. </doc>
  3494. </method>
  3495. <method name="setPermission"
  3496. abstract="false" native="false" synchronized="false"
  3497. static="false" final="false" visibility="public"
  3498. deprecated="not deprecated">
  3499. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3500. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3501. <exception name="IOException" type="java.io.IOException"/>
  3502. <doc>
  3503. <![CDATA[Set permission of a path.
  3504. @param p
  3505. @param permission]]>
  3506. </doc>
  3507. </method>
  3508. <method name="setOwner"
  3509. abstract="false" native="false" synchronized="false"
  3510. static="false" final="false" visibility="public"
  3511. deprecated="not deprecated">
  3512. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3513. <param name="username" type="java.lang.String"/>
  3514. <param name="groupname" type="java.lang.String"/>
  3515. <exception name="IOException" type="java.io.IOException"/>
  3516. <doc>
  3517. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3518. The parameters username and groupname cannot both be null.
  3519. @param p The path
  3520. @param username If it is null, the original username remains unchanged.
  3521. @param groupname If it is null, the original groupname remains unchanged.]]>
  3522. </doc>
  3523. </method>
  3524. <method name="setTimes"
  3525. abstract="false" native="false" synchronized="false"
  3526. static="false" final="false" visibility="public"
  3527. deprecated="not deprecated">
  3528. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3529. <param name="mtime" type="long"/>
  3530. <param name="atime" type="long"/>
  3531. <exception name="IOException" type="java.io.IOException"/>
  3532. <doc>
  3533. <![CDATA[Set access time of a file
  3534. @param p The path
  3535. @param mtime Set the modification time of this file.
  3536. The number of milliseconds since Jan 1, 1970.
  3537. A value of -1 means that this call should not set modification time.
  3538. @param atime Set the access time of this file.
  3539. The number of milliseconds since Jan 1, 1970.
  3540. A value of -1 means that this call should not set access time.]]>
  3541. </doc>
  3542. </method>
  3543. <method name="getStatistics" return="java.util.Map"
  3544. abstract="false" native="false" synchronized="true"
  3545. static="true" final="false" visibility="public"
  3546. deprecated="use {@link #getAllStatistics} instead">
  3547. <doc>
  3548. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  3549. @return a Map having a key as URI scheme and value as Statistics object
  3550. @deprecated use {@link #getAllStatistics} instead]]>
  3551. </doc>
  3552. </method>
  3553. <method name="getAllStatistics" return="java.util.List"
  3554. abstract="false" native="false" synchronized="true"
  3555. static="true" final="false" visibility="public"
  3556. deprecated="not deprecated">
  3557. <doc>
  3558. <![CDATA[Return the FileSystem classes that have Statistics]]>
  3559. </doc>
  3560. </method>
  3561. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3562. abstract="false" native="false" synchronized="true"
  3563. static="true" final="false" visibility="public"
  3564. deprecated="not deprecated">
  3565. <param name="scheme" type="java.lang.String"/>
  3566. <param name="cls" type="java.lang.Class"/>
  3567. <doc>
  3568. <![CDATA[Get the statistics for a particular file system
  3569. @param cls the class to lookup
  3570. @return a statistics object]]>
  3571. </doc>
  3572. </method>
  3573. <method name="clearStatistics"
  3574. abstract="false" native="false" synchronized="true"
  3575. static="true" final="false" visibility="public"
  3576. deprecated="not deprecated">
  3577. </method>
  3578. <method name="printStatistics"
  3579. abstract="false" native="false" synchronized="true"
  3580. static="true" final="false" visibility="public"
  3581. deprecated="not deprecated">
  3582. <exception name="IOException" type="java.io.IOException"/>
  3583. </method>
  3584. <field name="LOG" type="org.apache.commons.logging.Log"
  3585. transient="false" volatile="false"
  3586. static="true" final="true" visibility="public"
  3587. deprecated="not deprecated">
  3588. </field>
  3589. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3590. transient="false" volatile="false"
  3591. static="false" final="false" visibility="protected"
  3592. deprecated="not deprecated">
  3593. <doc>
  3594. <![CDATA[The statistics for this file system.]]>
  3595. </doc>
  3596. </field>
  3597. <doc>
  3598. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3599. may be implemented as a distributed filesystem, or as a "local"
  3600. one that reflects the locally-connected disk. The local version
  3601. exists for small Hadoop instances and for testing.
  3602. <p>
  3603. All user code that may potentially use the Hadoop Distributed
  3604. File System should be written to use a FileSystem object. The
  3605. Hadoop DFS is a multi-machine system that appears as a single
  3606. disk. It's useful because of its fault tolerance and potentially
  3607. very large capacity.
  3608. <p>
  3609. The local implementation is {@link LocalFileSystem} and distributed
  3610. implementation is DistributedFileSystem.]]>
  3611. </doc>
  3612. </class>
  3613. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3614. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3615. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3616. abstract="false"
  3617. static="true" final="true" visibility="public"
  3618. deprecated="not deprecated">
  3619. <constructor name="FileSystem.Statistics" type="java.lang.String"
  3620. static="false" final="false" visibility="public"
  3621. deprecated="not deprecated">
  3622. </constructor>
  3623. <method name="incrementBytesRead"
  3624. abstract="false" native="false" synchronized="false"
  3625. static="false" final="false" visibility="public"
  3626. deprecated="not deprecated">
  3627. <param name="newBytes" type="long"/>
  3628. <doc>
  3629. <![CDATA[Increment the bytes read in the statistics
  3630. @param newBytes the additional bytes read]]>
  3631. </doc>
  3632. </method>
  3633. <method name="incrementBytesWritten"
  3634. abstract="false" native="false" synchronized="false"
  3635. static="false" final="false" visibility="public"
  3636. deprecated="not deprecated">
  3637. <param name="newBytes" type="long"/>
  3638. <doc>
  3639. <![CDATA[Increment the bytes written in the statistics
  3640. @param newBytes the additional bytes written]]>
  3641. </doc>
  3642. </method>
  3643. <method name="getBytesRead" return="long"
  3644. abstract="false" native="false" synchronized="false"
  3645. static="false" final="false" visibility="public"
  3646. deprecated="not deprecated">
  3647. <doc>
  3648. <![CDATA[Get the total number of bytes read
  3649. @return the number of bytes]]>
  3650. </doc>
  3651. </method>
  3652. <method name="getBytesWritten" return="long"
  3653. abstract="false" native="false" synchronized="false"
  3654. static="false" final="false" visibility="public"
  3655. deprecated="not deprecated">
  3656. <doc>
  3657. <![CDATA[Get the total number of bytes written
  3658. @return the number of bytes]]>
  3659. </doc>
  3660. </method>
  3661. <method name="toString" return="java.lang.String"
  3662. abstract="false" native="false" synchronized="false"
  3663. static="false" final="false" visibility="public"
  3664. deprecated="not deprecated">
  3665. </method>
  3666. <method name="reset"
  3667. abstract="false" native="false" synchronized="false"
  3668. static="false" final="false" visibility="public"
  3669. deprecated="not deprecated">
  3670. <doc>
  3671. <![CDATA[Reset the counts of bytes to 0.]]>
  3672. </doc>
  3673. </method>
  3674. <method name="getScheme" return="java.lang.String"
  3675. abstract="false" native="false" synchronized="false"
  3676. static="false" final="false" visibility="public"
  3677. deprecated="not deprecated">
  3678. <doc>
  3679. <![CDATA[Get the uri scheme associated with this statistics object.
  3680. @return the schema associated with this set of statistics]]>
  3681. </doc>
  3682. </method>
  3683. </class>
  3684. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3685. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3686. <class name="FileUtil" extends="java.lang.Object"
  3687. abstract="false"
  3688. static="false" final="false" visibility="public"
  3689. deprecated="not deprecated">
  3690. <constructor name="FileUtil"
  3691. static="false" final="false" visibility="public"
  3692. deprecated="not deprecated">
  3693. </constructor>
  3694. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3695. abstract="false" native="false" synchronized="false"
  3696. static="true" final="false" visibility="public"
  3697. deprecated="not deprecated">
  3698. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3699. <doc>
  3700. <![CDATA[convert an array of FileStatus to an array of Path
  3701. @param stats
  3702. an array of FileStatus objects
  3703. @return an array of paths corresponding to the input]]>
  3704. </doc>
  3705. </method>
  3706. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3707. abstract="false" native="false" synchronized="false"
  3708. static="true" final="false" visibility="public"
  3709. deprecated="not deprecated">
  3710. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3711. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3712. <doc>
  3713. <![CDATA[convert an array of FileStatus to an array of Path.
  3714. If stats if null, return path
  3715. @param stats
  3716. an array of FileStatus objects
  3717. @param path
  3718. default path to return in stats is null
  3719. @return an array of paths corresponding to the input]]>
  3720. </doc>
  3721. </method>
  3722. <method name="fullyDelete" return="boolean"
  3723. abstract="false" native="false" synchronized="false"
  3724. static="true" final="false" visibility="public"
  3725. deprecated="not deprecated">
  3726. <param name="dir" type="java.io.File"/>
  3727. <exception name="IOException" type="java.io.IOException"/>
  3728. <doc>
  3729. <![CDATA[Delete a directory and all its contents. If
  3730. we return false, the directory may be partially-deleted.]]>
  3731. </doc>
  3732. </method>
  3733. <method name="fullyDelete"
  3734. abstract="false" native="false" synchronized="false"
  3735. static="true" final="false" visibility="public"
  3736. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  3737. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3738. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3739. <exception name="IOException" type="java.io.IOException"/>
  3740. <doc>
  3741. <![CDATA[Recursively delete a directory.
  3742. @param fs {@link FileSystem} on which the path is present
  3743. @param dir directory to recursively delete
  3744. @throws IOException
  3745. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  3746. </doc>
  3747. </method>
  3748. <method name="copy" return="boolean"
  3749. abstract="false" native="false" synchronized="false"
  3750. static="true" final="false" visibility="public"
  3751. deprecated="not deprecated">
  3752. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3753. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3754. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3755. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3756. <param name="deleteSource" type="boolean"/>
  3757. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3758. <exception name="IOException" type="java.io.IOException"/>
  3759. <doc>
  3760. <![CDATA[Copy files between FileSystems.]]>
  3761. </doc>
  3762. </method>
  3763. <method name="copy" return="boolean"
  3764. abstract="false" native="false" synchronized="false"
  3765. static="true" final="false" visibility="public"
  3766. deprecated="not deprecated">
  3767. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3768. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3769. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3770. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3771. <param name="deleteSource" type="boolean"/>
  3772. <param name="overwrite" type="boolean"/>
  3773. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3774. <exception name="IOException" type="java.io.IOException"/>
  3775. </method>
  3776. <method name="copy" return="boolean"
  3777. abstract="false" native="false" synchronized="false"
  3778. static="true" final="false" visibility="public"
  3779. deprecated="not deprecated">
  3780. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3781. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3782. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3783. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3784. <param name="deleteSource" type="boolean"/>
  3785. <param name="overwrite" type="boolean"/>
  3786. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3787. <exception name="IOException" type="java.io.IOException"/>
  3788. <doc>
  3789. <![CDATA[Copy files between FileSystems.]]>
  3790. </doc>
  3791. </method>
  3792. <method name="copyMerge" return="boolean"
  3793. abstract="false" native="false" synchronized="false"
  3794. static="true" final="false" visibility="public"
  3795. deprecated="not deprecated">
  3796. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3797. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  3798. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3799. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  3800. <param name="deleteSource" type="boolean"/>
  3801. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3802. <param name="addString" type="java.lang.String"/>
  3803. <exception name="IOException" type="java.io.IOException"/>
  3804. <doc>
  3805. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  3806. </doc>
  3807. </method>
  3808. <method name="copy" return="boolean"
  3809. abstract="false" native="false" synchronized="false"
  3810. static="true" final="false" visibility="public"
  3811. deprecated="not deprecated">
  3812. <param name="src" type="java.io.File"/>
  3813. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3814. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3815. <param name="deleteSource" type="boolean"/>
  3816. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3817. <exception name="IOException" type="java.io.IOException"/>
  3818. <doc>
  3819. <![CDATA[Copy local files to a FileSystem.]]>
  3820. </doc>
  3821. </method>
  3822. <method name="copy" return="boolean"
  3823. abstract="false" native="false" synchronized="false"
  3824. static="true" final="false" visibility="public"
  3825. deprecated="not deprecated">
  3826. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3827. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3828. <param name="dst" type="java.io.File"/>
  3829. <param name="deleteSource" type="boolean"/>
  3830. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3831. <exception name="IOException" type="java.io.IOException"/>
  3832. <doc>
  3833. <![CDATA[Copy FileSystem files to local files.]]>
  3834. </doc>
  3835. </method>
  3836. <method name="makeShellPath" return="java.lang.String"
  3837. abstract="false" native="false" synchronized="false"
  3838. static="true" final="false" visibility="public"
  3839. deprecated="not deprecated">
  3840. <param name="filename" type="java.lang.String"/>
  3841. <exception name="IOException" type="java.io.IOException"/>
  3842. <doc>
  3843. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3844. @param filename The filename to convert
  3845. @return The unix pathname
  3846. @throws IOException on windows, there can be problems with the subprocess]]>
  3847. </doc>
  3848. </method>
  3849. <method name="makeShellPath" return="java.lang.String"
  3850. abstract="false" native="false" synchronized="false"
  3851. static="true" final="false" visibility="public"
  3852. deprecated="not deprecated">
  3853. <param name="file" type="java.io.File"/>
  3854. <exception name="IOException" type="java.io.IOException"/>
  3855. <doc>
  3856. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3857. @param file The filename to convert
  3858. @return The unix pathname
  3859. @throws IOException on windows, there can be problems with the subprocess]]>
  3860. </doc>
  3861. </method>
  3862. <method name="makeShellPath" return="java.lang.String"
  3863. abstract="false" native="false" synchronized="false"
  3864. static="true" final="false" visibility="public"
  3865. deprecated="not deprecated">
  3866. <param name="file" type="java.io.File"/>
  3867. <param name="makeCanonicalPath" type="boolean"/>
  3868. <exception name="IOException" type="java.io.IOException"/>
  3869. <doc>
  3870. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3871. @param file The filename to convert
  3872. @param makeCanonicalPath
  3873. Whether to make canonical path for the file passed
  3874. @return The unix pathname
  3875. @throws IOException on windows, there can be problems with the subprocess]]>
  3876. </doc>
  3877. </method>
  3878. <method name="getDU" return="long"
  3879. abstract="false" native="false" synchronized="false"
  3880. static="true" final="false" visibility="public"
  3881. deprecated="not deprecated">
  3882. <param name="dir" type="java.io.File"/>
  3883. <doc>
  3884. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  3885. implementation.
  3886. @param dir
  3887. The input dir to get the disk space of this local dir
  3888. @return The total disk space of the input local directory]]>
  3889. </doc>
  3890. </method>
  3891. <method name="unZip"
  3892. abstract="false" native="false" synchronized="false"
  3893. static="true" final="false" visibility="public"
  3894. deprecated="not deprecated">
  3895. <param name="inFile" type="java.io.File"/>
  3896. <param name="unzipDir" type="java.io.File"/>
  3897. <exception name="IOException" type="java.io.IOException"/>
  3898. <doc>
  3899. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  3900. passed as the second parameter
  3901. @param inFile The zip file as input
  3902. @param unzipDir The unzip directory where to unzip the zip file.
  3903. @throws IOException]]>
  3904. </doc>
  3905. </method>
  3906. <method name="unTar"
  3907. abstract="false" native="false" synchronized="false"
  3908. static="true" final="false" visibility="public"
  3909. deprecated="not deprecated">
  3910. <param name="inFile" type="java.io.File"/>
  3911. <param name="untarDir" type="java.io.File"/>
  3912. <exception name="IOException" type="java.io.IOException"/>
  3913. <doc>
  3914. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  3915. passed as the second parameter
  3916. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  3917. @param inFile The tar file as input.
  3918. @param untarDir The untar directory where to untar the tar file.
  3919. @throws IOException]]>
  3920. </doc>
  3921. </method>
  3922. <method name="symLink" return="int"
  3923. abstract="false" native="false" synchronized="false"
  3924. static="true" final="false" visibility="public"
  3925. deprecated="not deprecated">
  3926. <param name="target" type="java.lang.String"/>
  3927. <param name="linkname" type="java.lang.String"/>
  3928. <exception name="IOException" type="java.io.IOException"/>
  3929. <doc>
  3930. <![CDATA[Create a soft link between a src and destination
  3931. only on a local disk. HDFS does not support this
  3932. @param target the target for symlink
  3933. @param linkname the symlink
  3934. @return value returned by the command]]>
  3935. </doc>
  3936. </method>
  3937. <method name="chmod" return="int"
  3938. abstract="false" native="false" synchronized="false"
  3939. static="true" final="false" visibility="public"
  3940. deprecated="not deprecated">
  3941. <param name="filename" type="java.lang.String"/>
  3942. <param name="perm" type="java.lang.String"/>
  3943. <exception name="IOException" type="java.io.IOException"/>
  3944. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  3945. <doc>
  3946. <![CDATA[Change the permissions on a filename.
  3947. @param filename the name of the file to change
  3948. @param perm the permission string
  3949. @return the exit code from the command
  3950. @throws IOException
  3951. @throws InterruptedException]]>
  3952. </doc>
  3953. </method>
  3954. <method name="createLocalTempFile" return="java.io.File"
  3955. abstract="false" native="false" synchronized="false"
  3956. static="true" final="true" visibility="public"
  3957. deprecated="not deprecated">
  3958. <param name="basefile" type="java.io.File"/>
  3959. <param name="prefix" type="java.lang.String"/>
  3960. <param name="isDeleteOnExit" type="boolean"/>
  3961. <exception name="IOException" type="java.io.IOException"/>
  3962. <doc>
  3963. <![CDATA[Create a tmp file for a base file.
  3964. @param basefile the base file of the tmp
  3965. @param prefix file name prefix of tmp
  3966. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  3967. @return a newly created tmp file
  3968. @exception IOException If a tmp file cannot created
  3969. @see java.io.File#createTempFile(String, String, File)
  3970. @see java.io.File#deleteOnExit()]]>
  3971. </doc>
  3972. </method>
  3973. <method name="replaceFile"
  3974. abstract="false" native="false" synchronized="false"
  3975. static="true" final="false" visibility="public"
  3976. deprecated="not deprecated">
  3977. <param name="src" type="java.io.File"/>
  3978. <param name="target" type="java.io.File"/>
  3979. <exception name="IOException" type="java.io.IOException"/>
  3980. <doc>
  3981. <![CDATA[Move the src file to the name specified by target.
  3982. @param src the source file
  3983. @param target the target file
  3984. @exception IOException If this operation fails]]>
  3985. </doc>
  3986. </method>
  3987. <doc>
  3988. <![CDATA[A collection of file-processing util methods]]>
  3989. </doc>
  3990. </class>
  3991. <!-- end class org.apache.hadoop.fs.FileUtil -->
  3992. <!-- start class org.apache.hadoop.fs.FileUtil.HardLink -->
  3993. <class name="FileUtil.HardLink" extends="java.lang.Object"
  3994. abstract="false"
  3995. static="true" final="false" visibility="public"
  3996. deprecated="not deprecated">
  3997. <constructor name="FileUtil.HardLink"
  3998. static="false" final="false" visibility="public"
  3999. deprecated="not deprecated">
  4000. </constructor>
  4001. <method name="createHardLink"
  4002. abstract="false" native="false" synchronized="false"
  4003. static="true" final="false" visibility="public"
  4004. deprecated="not deprecated">
  4005. <param name="target" type="java.io.File"/>
  4006. <param name="linkName" type="java.io.File"/>
  4007. <exception name="IOException" type="java.io.IOException"/>
  4008. <doc>
  4009. <![CDATA[Creates a hardlink]]>
  4010. </doc>
  4011. </method>
  4012. <method name="getLinkCount" return="int"
  4013. abstract="false" native="false" synchronized="false"
  4014. static="true" final="false" visibility="public"
  4015. deprecated="not deprecated">
  4016. <param name="fileName" type="java.io.File"/>
  4017. <exception name="IOException" type="java.io.IOException"/>
  4018. <doc>
  4019. <![CDATA[Retrieves the number of links to the specified file.]]>
  4020. </doc>
  4021. </method>
  4022. <doc>
  4023. <![CDATA[Class for creating hardlinks.
  4024. Supports Unix, Cygwin, WindXP.]]>
  4025. </doc>
  4026. </class>
  4027. <!-- end class org.apache.hadoop.fs.FileUtil.HardLink -->
  4028. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  4029. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  4030. abstract="false"
  4031. static="false" final="false" visibility="public"
  4032. deprecated="not deprecated">
  4033. <constructor name="FilterFileSystem"
  4034. static="false" final="false" visibility="public"
  4035. deprecated="not deprecated">
  4036. </constructor>
  4037. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4038. static="false" final="false" visibility="public"
  4039. deprecated="not deprecated">
  4040. </constructor>
  4041. <method name="initialize"
  4042. abstract="false" native="false" synchronized="false"
  4043. static="false" final="false" visibility="public"
  4044. deprecated="not deprecated">
  4045. <param name="name" type="java.net.URI"/>
  4046. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4047. <exception name="IOException" type="java.io.IOException"/>
  4048. <doc>
  4049. <![CDATA[Called after a new FileSystem instance is constructed.
  4050. @param name a uri whose authority section names the host, port, etc.
  4051. for this FileSystem
  4052. @param conf the configuration]]>
  4053. </doc>
  4054. </method>
  4055. <method name="getUri" return="java.net.URI"
  4056. abstract="false" native="false" synchronized="false"
  4057. static="false" final="false" visibility="public"
  4058. deprecated="not deprecated">
  4059. <doc>
  4060. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  4061. </doc>
  4062. </method>
  4063. <method name="getName" return="java.lang.String"
  4064. abstract="false" native="false" synchronized="false"
  4065. static="false" final="false" visibility="public"
  4066. deprecated="call #getUri() instead.">
  4067. <doc>
  4068. <![CDATA[@deprecated call #getUri() instead.]]>
  4069. </doc>
  4070. </method>
  4071. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4072. abstract="false" native="false" synchronized="false"
  4073. static="false" final="false" visibility="public"
  4074. deprecated="not deprecated">
  4075. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4076. <doc>
  4077. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  4078. </doc>
  4079. </method>
  4080. <method name="checkPath"
  4081. abstract="false" native="false" synchronized="false"
  4082. static="false" final="false" visibility="protected"
  4083. deprecated="not deprecated">
  4084. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4085. <doc>
  4086. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  4087. </doc>
  4088. </method>
  4089. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4090. abstract="false" native="false" synchronized="false"
  4091. static="false" final="false" visibility="public"
  4092. deprecated="not deprecated">
  4093. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4094. <param name="start" type="long"/>
  4095. <param name="len" type="long"/>
  4096. <exception name="IOException" type="java.io.IOException"/>
  4097. </method>
  4098. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4099. abstract="false" native="false" synchronized="false"
  4100. static="false" final="false" visibility="public"
  4101. deprecated="not deprecated">
  4102. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4103. <param name="bufferSize" type="int"/>
  4104. <exception name="IOException" type="java.io.IOException"/>
  4105. <doc>
  4106. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4107. @param f the file name to open
  4108. @param bufferSize the size of the buffer to be used.]]>
  4109. </doc>
  4110. </method>
  4111. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4112. abstract="false" native="false" synchronized="false"
  4113. static="false" final="false" visibility="public"
  4114. deprecated="not deprecated">
  4115. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4116. <param name="bufferSize" type="int"/>
  4117. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4118. <exception name="IOException" type="java.io.IOException"/>
  4119. <doc>
  4120. <![CDATA[{@inheritDoc}]]>
  4121. </doc>
  4122. </method>
  4123. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4124. abstract="false" native="false" synchronized="false"
  4125. static="false" final="false" visibility="public"
  4126. deprecated="not deprecated">
  4127. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4128. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4129. <param name="overwrite" type="boolean"/>
  4130. <param name="bufferSize" type="int"/>
  4131. <param name="replication" type="short"/>
  4132. <param name="blockSize" type="long"/>
  4133. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4134. <exception name="IOException" type="java.io.IOException"/>
  4135. <doc>
  4136. <![CDATA[{@inheritDoc}]]>
  4137. </doc>
  4138. </method>
  4139. <method name="setReplication" return="boolean"
  4140. abstract="false" native="false" synchronized="false"
  4141. static="false" final="false" visibility="public"
  4142. deprecated="not deprecated">
  4143. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4144. <param name="replication" type="short"/>
  4145. <exception name="IOException" type="java.io.IOException"/>
  4146. <doc>
  4147. <![CDATA[Set replication for an existing file.
  4148. @param src file name
  4149. @param replication new replication
  4150. @throws IOException
  4151. @return true if successful;
  4152. false if file does not exist or is a directory]]>
  4153. </doc>
  4154. </method>
  4155. <method name="rename" return="boolean"
  4156. abstract="false" native="false" synchronized="false"
  4157. static="false" final="false" visibility="public"
  4158. deprecated="not deprecated">
  4159. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4160. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4161. <exception name="IOException" type="java.io.IOException"/>
  4162. <doc>
  4163. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4164. or remote DFS.]]>
  4165. </doc>
  4166. </method>
  4167. <method name="delete" return="boolean"
  4168. abstract="false" native="false" synchronized="false"
  4169. static="false" final="false" visibility="public"
  4170. deprecated="not deprecated">
  4171. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4172. <exception name="IOException" type="java.io.IOException"/>
  4173. <doc>
  4174. <![CDATA[Delete a file]]>
  4175. </doc>
  4176. </method>
  4177. <method name="delete" return="boolean"
  4178. abstract="false" native="false" synchronized="false"
  4179. static="false" final="false" visibility="public"
  4180. deprecated="not deprecated">
  4181. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4182. <param name="recursive" type="boolean"/>
  4183. <exception name="IOException" type="java.io.IOException"/>
  4184. <doc>
  4185. <![CDATA[Delete a file]]>
  4186. </doc>
  4187. </method>
  4188. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4189. abstract="false" native="false" synchronized="false"
  4190. static="false" final="false" visibility="public"
  4191. deprecated="not deprecated">
  4192. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4193. <exception name="IOException" type="java.io.IOException"/>
  4194. <doc>
  4195. <![CDATA[List files in a directory.]]>
  4196. </doc>
  4197. </method>
  4198. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4199. abstract="false" native="false" synchronized="false"
  4200. static="false" final="false" visibility="public"
  4201. deprecated="not deprecated">
  4202. </method>
  4203. <method name="setWorkingDirectory"
  4204. abstract="false" native="false" synchronized="false"
  4205. static="false" final="false" visibility="public"
  4206. deprecated="not deprecated">
  4207. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4208. <doc>
  4209. <![CDATA[Set the current working directory for the given file system. All relative
  4210. paths will be resolved relative to it.
  4211. @param newDir]]>
  4212. </doc>
  4213. </method>
  4214. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4215. abstract="false" native="false" synchronized="false"
  4216. static="false" final="false" visibility="public"
  4217. deprecated="not deprecated">
  4218. <doc>
  4219. <![CDATA[Get the current working directory for the given file system
  4220. @return the directory pathname]]>
  4221. </doc>
  4222. </method>
  4223. <method name="mkdirs" return="boolean"
  4224. abstract="false" native="false" synchronized="false"
  4225. static="false" final="false" visibility="public"
  4226. deprecated="not deprecated">
  4227. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4228. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4229. <exception name="IOException" type="java.io.IOException"/>
  4230. <doc>
  4231. <![CDATA[{@inheritDoc}]]>
  4232. </doc>
  4233. </method>
  4234. <method name="copyFromLocalFile"
  4235. abstract="false" native="false" synchronized="false"
  4236. static="false" final="false" visibility="public"
  4237. deprecated="not deprecated">
  4238. <param name="delSrc" type="boolean"/>
  4239. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4240. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4241. <exception name="IOException" type="java.io.IOException"/>
  4242. <doc>
  4243. <![CDATA[The src file is on the local disk. Add it to FS at
  4244. the given dst name.
  4245. delSrc indicates if the source should be removed]]>
  4246. </doc>
  4247. </method>
  4248. <method name="copyToLocalFile"
  4249. abstract="false" native="false" synchronized="false"
  4250. static="false" final="false" visibility="public"
  4251. deprecated="not deprecated">
  4252. <param name="delSrc" type="boolean"/>
  4253. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4254. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4255. <exception name="IOException" type="java.io.IOException"/>
  4256. <doc>
  4257. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4258. Copy it from FS control to the local dst name.
  4259. delSrc indicates if the src will be removed or not.]]>
  4260. </doc>
  4261. </method>
  4262. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4263. abstract="false" native="false" synchronized="false"
  4264. static="false" final="false" visibility="public"
  4265. deprecated="not deprecated">
  4266. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4267. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4268. <exception name="IOException" type="java.io.IOException"/>
  4269. <doc>
  4270. <![CDATA[Returns a local File that the user can write output to. The caller
  4271. provides both the eventual FS target name and the local working
  4272. file. If the FS is local, we write directly into the target. If
  4273. the FS is remote, we write into the tmp local area.]]>
  4274. </doc>
  4275. </method>
  4276. <method name="completeLocalOutput"
  4277. abstract="false" native="false" synchronized="false"
  4278. static="false" final="false" visibility="public"
  4279. deprecated="not deprecated">
  4280. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4281. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4282. <exception name="IOException" type="java.io.IOException"/>
  4283. <doc>
  4284. <![CDATA[Called when we're all done writing to the target. A local FS will
  4285. do nothing, because we've written to exactly the right place. A remote
  4286. FS will copy the contents of tmpLocalFile to the correct target at
  4287. fsOutputFile.]]>
  4288. </doc>
  4289. </method>
  4290. <method name="getDefaultBlockSize" return="long"
  4291. abstract="false" native="false" synchronized="false"
  4292. static="false" final="false" visibility="public"
  4293. deprecated="not deprecated">
  4294. <doc>
  4295. <![CDATA[Return the number of bytes that large input files should be optimally
  4296. be split into to minimize i/o time.]]>
  4297. </doc>
  4298. </method>
  4299. <method name="getDefaultReplication" return="short"
  4300. abstract="false" native="false" synchronized="false"
  4301. static="false" final="false" visibility="public"
  4302. deprecated="not deprecated">
  4303. <doc>
  4304. <![CDATA[Get the default replication.]]>
  4305. </doc>
  4306. </method>
  4307. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4308. abstract="false" native="false" synchronized="false"
  4309. static="false" final="false" visibility="public"
  4310. deprecated="not deprecated">
  4311. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4312. <exception name="IOException" type="java.io.IOException"/>
  4313. <doc>
  4314. <![CDATA[Get file status.]]>
  4315. </doc>
  4316. </method>
  4317. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  4318. abstract="false" native="false" synchronized="false"
  4319. static="false" final="false" visibility="public"
  4320. deprecated="not deprecated">
  4321. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4322. <exception name="IOException" type="java.io.IOException"/>
  4323. <doc>
  4324. <![CDATA[{@inheritDoc}]]>
  4325. </doc>
  4326. </method>
  4327. <method name="setVerifyChecksum"
  4328. abstract="false" native="false" synchronized="false"
  4329. static="false" final="false" visibility="public"
  4330. deprecated="not deprecated">
  4331. <param name="verifyChecksum" type="boolean"/>
  4332. <doc>
  4333. <![CDATA[{@inheritDoc}]]>
  4334. </doc>
  4335. </method>
  4336. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  4337. abstract="false" native="false" synchronized="false"
  4338. static="false" final="false" visibility="public"
  4339. deprecated="not deprecated">
  4340. </method>
  4341. <method name="close"
  4342. abstract="false" native="false" synchronized="false"
  4343. static="false" final="false" visibility="public"
  4344. deprecated="not deprecated">
  4345. <exception name="IOException" type="java.io.IOException"/>
  4346. </method>
  4347. <method name="setOwner"
  4348. abstract="false" native="false" synchronized="false"
  4349. static="false" final="false" visibility="public"
  4350. deprecated="not deprecated">
  4351. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4352. <param name="username" type="java.lang.String"/>
  4353. <param name="groupname" type="java.lang.String"/>
  4354. <exception name="IOException" type="java.io.IOException"/>
  4355. <doc>
  4356. <![CDATA[{@inheritDoc}]]>
  4357. </doc>
  4358. </method>
  4359. <method name="setPermission"
  4360. abstract="false" native="false" synchronized="false"
  4361. static="false" final="false" visibility="public"
  4362. deprecated="not deprecated">
  4363. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4364. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4365. <exception name="IOException" type="java.io.IOException"/>
  4366. <doc>
  4367. <![CDATA[{@inheritDoc}]]>
  4368. </doc>
  4369. </method>
  4370. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4371. transient="false" volatile="false"
  4372. static="false" final="false" visibility="protected"
  4373. deprecated="not deprecated">
  4374. </field>
  4375. <doc>
  4376. <![CDATA[A <code>FilterFileSystem</code> contains
  4377. some other file system, which it uses as
  4378. its basic file system, possibly transforming
  4379. the data along the way or providing additional
  4380. functionality. The class <code>FilterFileSystem</code>
  4381. itself simply overrides all methods of
  4382. <code>FileSystem</code> with versions that
  4383. pass all requests to the contained file
  4384. system. Subclasses of <code>FilterFileSystem</code>
  4385. may further override some of these methods
  4386. and may also provide additional methods
  4387. and fields.]]>
  4388. </doc>
  4389. </class>
  4390. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  4391. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  4392. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  4393. abstract="false"
  4394. static="false" final="false" visibility="public"
  4395. deprecated="not deprecated">
  4396. <implements name="org.apache.hadoop.fs.Seekable"/>
  4397. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4398. <constructor name="FSDataInputStream" type="java.io.InputStream"
  4399. static="false" final="false" visibility="public"
  4400. deprecated="not deprecated">
  4401. <exception name="IOException" type="java.io.IOException"/>
  4402. </constructor>
  4403. <method name="seek"
  4404. abstract="false" native="false" synchronized="true"
  4405. static="false" final="false" visibility="public"
  4406. deprecated="not deprecated">
  4407. <param name="desired" type="long"/>
  4408. <exception name="IOException" type="java.io.IOException"/>
  4409. </method>
  4410. <method name="getPos" return="long"
  4411. abstract="false" native="false" synchronized="false"
  4412. static="false" final="false" visibility="public"
  4413. deprecated="not deprecated">
  4414. <exception name="IOException" type="java.io.IOException"/>
  4415. </method>
  4416. <method name="read" return="int"
  4417. abstract="false" native="false" synchronized="false"
  4418. static="false" final="false" visibility="public"
  4419. deprecated="not deprecated">
  4420. <param name="position" type="long"/>
  4421. <param name="buffer" type="byte[]"/>
  4422. <param name="offset" type="int"/>
  4423. <param name="length" type="int"/>
  4424. <exception name="IOException" type="java.io.IOException"/>
  4425. </method>
  4426. <method name="readFully"
  4427. abstract="false" native="false" synchronized="false"
  4428. static="false" final="false" visibility="public"
  4429. deprecated="not deprecated">
  4430. <param name="position" type="long"/>
  4431. <param name="buffer" type="byte[]"/>
  4432. <param name="offset" type="int"/>
  4433. <param name="length" type="int"/>
  4434. <exception name="IOException" type="java.io.IOException"/>
  4435. </method>
  4436. <method name="readFully"
  4437. abstract="false" native="false" synchronized="false"
  4438. static="false" final="false" visibility="public"
  4439. deprecated="not deprecated">
  4440. <param name="position" type="long"/>
  4441. <param name="buffer" type="byte[]"/>
  4442. <exception name="IOException" type="java.io.IOException"/>
  4443. </method>
  4444. <method name="seekToNewSource" return="boolean"
  4445. abstract="false" native="false" synchronized="false"
  4446. static="false" final="false" visibility="public"
  4447. deprecated="not deprecated">
  4448. <param name="targetPos" type="long"/>
  4449. <exception name="IOException" type="java.io.IOException"/>
  4450. </method>
  4451. <doc>
  4452. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4453. and buffers input through a {@link BufferedInputStream}.]]>
  4454. </doc>
  4455. </class>
  4456. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4457. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4458. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4459. abstract="false"
  4460. static="false" final="false" visibility="public"
  4461. deprecated="not deprecated">
  4462. <implements name="org.apache.hadoop.fs.Syncable"/>
  4463. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4464. static="false" final="false" visibility="public"
  4465. deprecated="not deprecated">
  4466. <exception name="IOException" type="java.io.IOException"/>
  4467. </constructor>
  4468. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4469. static="false" final="false" visibility="public"
  4470. deprecated="not deprecated">
  4471. <exception name="IOException" type="java.io.IOException"/>
  4472. </constructor>
  4473. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  4474. static="false" final="false" visibility="public"
  4475. deprecated="not deprecated">
  4476. <exception name="IOException" type="java.io.IOException"/>
  4477. </constructor>
  4478. <method name="getPos" return="long"
  4479. abstract="false" native="false" synchronized="false"
  4480. static="false" final="false" visibility="public"
  4481. deprecated="not deprecated">
  4482. <exception name="IOException" type="java.io.IOException"/>
  4483. </method>
  4484. <method name="close"
  4485. abstract="false" native="false" synchronized="false"
  4486. static="false" final="false" visibility="public"
  4487. deprecated="not deprecated">
  4488. <exception name="IOException" type="java.io.IOException"/>
  4489. </method>
  4490. <method name="getWrappedStream" return="java.io.OutputStream"
  4491. abstract="false" native="false" synchronized="false"
  4492. static="false" final="false" visibility="public"
  4493. deprecated="not deprecated">
  4494. </method>
  4495. <method name="sync"
  4496. abstract="false" native="false" synchronized="false"
  4497. static="false" final="false" visibility="public"
  4498. deprecated="not deprecated">
  4499. <exception name="IOException" type="java.io.IOException"/>
  4500. <doc>
  4501. <![CDATA[{@inheritDoc}]]>
  4502. </doc>
  4503. </method>
  4504. <doc>
  4505. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4506. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4507. file.]]>
  4508. </doc>
  4509. </class>
  4510. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4511. <!-- start class org.apache.hadoop.fs.FSError -->
  4512. <class name="FSError" extends="java.lang.Error"
  4513. abstract="false"
  4514. static="false" final="false" visibility="public"
  4515. deprecated="not deprecated">
  4516. <doc>
  4517. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4518. in the native filesystem.]]>
  4519. </doc>
  4520. </class>
  4521. <!-- end class org.apache.hadoop.fs.FSError -->
  4522. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4523. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4524. abstract="true"
  4525. static="false" final="false" visibility="public"
  4526. deprecated="not deprecated">
  4527. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4528. static="false" final="false" visibility="protected"
  4529. deprecated="not deprecated">
  4530. <doc>
  4531. <![CDATA[Constructor
  4532. @param file The name of the file to be read
  4533. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4534. </doc>
  4535. </constructor>
  4536. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4537. static="false" final="false" visibility="protected"
  4538. deprecated="not deprecated">
  4539. <doc>
  4540. <![CDATA[Constructor
  4541. @param file The name of the file to be read
  4542. @param numOfRetries Number of read retries when ChecksumError occurs
  4543. @param sum the type of Checksum engine
  4544. @param chunkSize maximun chunk size
  4545. @param checksumSize the number byte of each checksum]]>
  4546. </doc>
  4547. </constructor>
  4548. <method name="readChunk" return="int"
  4549. abstract="true" native="false" synchronized="false"
  4550. static="false" final="false" visibility="protected"
  4551. deprecated="not deprecated">
  4552. <param name="pos" type="long"/>
  4553. <param name="buf" type="byte[]"/>
  4554. <param name="offset" type="int"/>
  4555. <param name="len" type="int"/>
  4556. <param name="checksum" type="byte[]"/>
  4557. <exception name="IOException" type="java.io.IOException"/>
  4558. <doc>
  4559. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4560. and checksum into <code>checksum</code>.
  4561. The method is used for implementing read, therefore, it should be optimized
  4562. for sequential reading
  4563. @param pos chunkPos
  4564. @param buf desitination buffer
  4565. @param offset offset in buf at which to store data
  4566. @param len maximun number of bytes to read
  4567. @return number of bytes read]]>
  4568. </doc>
  4569. </method>
  4570. <method name="getChunkPosition" return="long"
  4571. abstract="true" native="false" synchronized="false"
  4572. static="false" final="false" visibility="protected"
  4573. deprecated="not deprecated">
  4574. <param name="pos" type="long"/>
  4575. <doc>
  4576. <![CDATA[Return position of beginning of chunk containing pos.
  4577. @param pos a postion in the file
  4578. @return the starting position of the chunk which contains the byte]]>
  4579. </doc>
  4580. </method>
  4581. <method name="needChecksum" return="boolean"
  4582. abstract="false" native="false" synchronized="true"
  4583. static="false" final="false" visibility="protected"
  4584. deprecated="not deprecated">
  4585. <doc>
  4586. <![CDATA[Return true if there is a need for checksum verification]]>
  4587. </doc>
  4588. </method>
  4589. <method name="read" return="int"
  4590. abstract="false" native="false" synchronized="true"
  4591. static="false" final="false" visibility="public"
  4592. deprecated="not deprecated">
  4593. <exception name="IOException" type="java.io.IOException"/>
  4594. <doc>
  4595. <![CDATA[Read one checksum-verified byte
  4596. @return the next byte of data, or <code>-1</code> if the end of the
  4597. stream is reached.
  4598. @exception IOException if an I/O error occurs.]]>
  4599. </doc>
  4600. </method>
  4601. <method name="read" return="int"
  4602. abstract="false" native="false" synchronized="true"
  4603. static="false" final="false" visibility="public"
  4604. deprecated="not deprecated">
  4605. <param name="b" type="byte[]"/>
  4606. <param name="off" type="int"/>
  4607. <param name="len" type="int"/>
  4608. <exception name="IOException" type="java.io.IOException"/>
  4609. <doc>
  4610. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4611. the specified byte array, starting at the given offset.
  4612. <p> This method implements the general contract of the corresponding
  4613. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4614. the <code>{@link InputStream}</code> class. As an additional
  4615. convenience, it attempts to read as many bytes as possible by repeatedly
  4616. invoking the <code>read</code> method of the underlying stream. This
  4617. iterated <code>read</code> continues until one of the following
  4618. conditions becomes true: <ul>
  4619. <li> The specified number of bytes have been read,
  4620. <li> The <code>read</code> method of the underlying stream returns
  4621. <code>-1</code>, indicating end-of-file.
  4622. </ul> If the first <code>read</code> on the underlying stream returns
  4623. <code>-1</code> to indicate end-of-file then this method returns
  4624. <code>-1</code>. Otherwise this method returns the number of bytes
  4625. actually read.
  4626. @param b destination buffer.
  4627. @param off offset at which to start storing bytes.
  4628. @param len maximum number of bytes to read.
  4629. @return the number of bytes read, or <code>-1</code> if the end of
  4630. the stream has been reached.
  4631. @exception IOException if an I/O error occurs.
  4632. ChecksumException if any checksum error occurs]]>
  4633. </doc>
  4634. </method>
  4635. <method name="checksum2long" return="long"
  4636. abstract="false" native="false" synchronized="false"
  4637. static="true" final="false" visibility="public"
  4638. deprecated="not deprecated">
  4639. <param name="checksum" type="byte[]"/>
  4640. <doc>
  4641. <![CDATA[Convert a checksum byte array to a long]]>
  4642. </doc>
  4643. </method>
  4644. <method name="getPos" return="long"
  4645. abstract="false" native="false" synchronized="true"
  4646. static="false" final="false" visibility="public"
  4647. deprecated="not deprecated">
  4648. <exception name="IOException" type="java.io.IOException"/>
  4649. </method>
  4650. <method name="available" return="int"
  4651. abstract="false" native="false" synchronized="true"
  4652. static="false" final="false" visibility="public"
  4653. deprecated="not deprecated">
  4654. <exception name="IOException" type="java.io.IOException"/>
  4655. </method>
  4656. <method name="skip" return="long"
  4657. abstract="false" native="false" synchronized="true"
  4658. static="false" final="false" visibility="public"
  4659. deprecated="not deprecated">
  4660. <param name="n" type="long"/>
  4661. <exception name="IOException" type="java.io.IOException"/>
  4662. <doc>
  4663. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4664. input stream.
  4665. <p>This method may skip more bytes than are remaining in the backing
  4666. file. This produces no exception and the number of bytes skipped
  4667. may include some number of bytes that were beyond the EOF of the
  4668. backing file. Attempting to read from the stream after skipping past
  4669. the end will result in -1 indicating the end of the file.
  4670. <p>If <code>n</code> is negative, no bytes are skipped.
  4671. @param n the number of bytes to be skipped.
  4672. @return the actual number of bytes skipped.
  4673. @exception IOException if an I/O error occurs.
  4674. ChecksumException if the chunk to skip to is corrupted]]>
  4675. </doc>
  4676. </method>
  4677. <method name="seek"
  4678. abstract="false" native="false" synchronized="true"
  4679. static="false" final="false" visibility="public"
  4680. deprecated="not deprecated">
  4681. <param name="pos" type="long"/>
  4682. <exception name="IOException" type="java.io.IOException"/>
  4683. <doc>
  4684. <![CDATA[Seek to the given position in the stream.
  4685. The next read() will be from that position.
  4686. <p>This method may seek past the end of the file.
  4687. This produces no exception and an attempt to read from
  4688. the stream will result in -1 indicating the end of the file.
  4689. @param pos the postion to seek to.
  4690. @exception IOException if an I/O error occurs.
  4691. ChecksumException if the chunk to seek to is corrupted]]>
  4692. </doc>
  4693. </method>
  4694. <method name="readFully" return="int"
  4695. abstract="false" native="false" synchronized="false"
  4696. static="true" final="false" visibility="protected"
  4697. deprecated="not deprecated">
  4698. <param name="stm" type="java.io.InputStream"/>
  4699. <param name="buf" type="byte[]"/>
  4700. <param name="offset" type="int"/>
  4701. <param name="len" type="int"/>
  4702. <exception name="IOException" type="java.io.IOException"/>
  4703. <doc>
  4704. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4705. <code>stm</code>
  4706. @param stm an input stream
  4707. @param buf destiniation buffer
  4708. @param offset offset at which to store data
  4709. @param len number of bytes to read
  4710. @return actual number of bytes read
  4711. @throws IOException if there is any IO error]]>
  4712. </doc>
  4713. </method>
  4714. <method name="set"
  4715. abstract="false" native="false" synchronized="true"
  4716. static="false" final="true" visibility="protected"
  4717. deprecated="not deprecated">
  4718. <param name="verifyChecksum" type="boolean"/>
  4719. <param name="sum" type="java.util.zip.Checksum"/>
  4720. <param name="maxChunkSize" type="int"/>
  4721. <param name="checksumSize" type="int"/>
  4722. <doc>
  4723. <![CDATA[Set the checksum related parameters
  4724. @param verifyChecksum whether to verify checksum
  4725. @param sum which type of checksum to use
  4726. @param maxChunkSize maximun chunk size
  4727. @param checksumSize checksum size]]>
  4728. </doc>
  4729. </method>
  4730. <method name="markSupported" return="boolean"
  4731. abstract="false" native="false" synchronized="false"
  4732. static="false" final="true" visibility="public"
  4733. deprecated="not deprecated">
  4734. </method>
  4735. <method name="mark"
  4736. abstract="false" native="false" synchronized="false"
  4737. static="false" final="true" visibility="public"
  4738. deprecated="not deprecated">
  4739. <param name="readlimit" type="int"/>
  4740. </method>
  4741. <method name="reset"
  4742. abstract="false" native="false" synchronized="false"
  4743. static="false" final="true" visibility="public"
  4744. deprecated="not deprecated">
  4745. <exception name="IOException" type="java.io.IOException"/>
  4746. </method>
  4747. <field name="LOG" type="org.apache.commons.logging.Log"
  4748. transient="false" volatile="false"
  4749. static="true" final="true" visibility="public"
  4750. deprecated="not deprecated">
  4751. </field>
  4752. <field name="file" type="org.apache.hadoop.fs.Path"
  4753. transient="false" volatile="false"
  4754. static="false" final="false" visibility="protected"
  4755. deprecated="not deprecated">
  4756. <doc>
  4757. <![CDATA[The file name from which data is read from]]>
  4758. </doc>
  4759. </field>
  4760. <doc>
  4761. <![CDATA[This is a generic input stream for verifying checksums for
  4762. data before it is read by a user.]]>
  4763. </doc>
  4764. </class>
  4765. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  4766. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  4767. <class name="FSInputStream" extends="java.io.InputStream"
  4768. abstract="true"
  4769. static="false" final="false" visibility="public"
  4770. deprecated="not deprecated">
  4771. <implements name="org.apache.hadoop.fs.Seekable"/>
  4772. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4773. <constructor name="FSInputStream"
  4774. static="false" final="false" visibility="public"
  4775. deprecated="not deprecated">
  4776. </constructor>
  4777. <method name="seek"
  4778. abstract="true" native="false" synchronized="false"
  4779. static="false" final="false" visibility="public"
  4780. deprecated="not deprecated">
  4781. <param name="pos" type="long"/>
  4782. <exception name="IOException" type="java.io.IOException"/>
  4783. <doc>
  4784. <![CDATA[Seek to the given offset from the start of the file.
  4785. The next read() will be from that location. Can't
  4786. seek past the end of the file.]]>
  4787. </doc>
  4788. </method>
  4789. <method name="getPos" return="long"
  4790. abstract="true" native="false" synchronized="false"
  4791. static="false" final="false" visibility="public"
  4792. deprecated="not deprecated">
  4793. <exception name="IOException" type="java.io.IOException"/>
  4794. <doc>
  4795. <![CDATA[Return the current offset from the start of the file]]>
  4796. </doc>
  4797. </method>
  4798. <method name="seekToNewSource" return="boolean"
  4799. abstract="true" native="false" synchronized="false"
  4800. static="false" final="false" visibility="public"
  4801. deprecated="not deprecated">
  4802. <param name="targetPos" type="long"/>
  4803. <exception name="IOException" type="java.io.IOException"/>
  4804. <doc>
  4805. <![CDATA[Seeks a different copy of the data. Returns true if
  4806. found a new source, false otherwise.]]>
  4807. </doc>
  4808. </method>
  4809. <method name="read" return="int"
  4810. abstract="false" native="false" synchronized="false"
  4811. static="false" final="false" visibility="public"
  4812. deprecated="not deprecated">
  4813. <param name="position" type="long"/>
  4814. <param name="buffer" type="byte[]"/>
  4815. <param name="offset" type="int"/>
  4816. <param name="length" type="int"/>
  4817. <exception name="IOException" type="java.io.IOException"/>
  4818. </method>
  4819. <method name="readFully"
  4820. abstract="false" native="false" synchronized="false"
  4821. static="false" final="false" visibility="public"
  4822. deprecated="not deprecated">
  4823. <param name="position" type="long"/>
  4824. <param name="buffer" type="byte[]"/>
  4825. <param name="offset" type="int"/>
  4826. <param name="length" type="int"/>
  4827. <exception name="IOException" type="java.io.IOException"/>
  4828. </method>
  4829. <method name="readFully"
  4830. abstract="false" native="false" synchronized="false"
  4831. static="false" final="false" visibility="public"
  4832. deprecated="not deprecated">
  4833. <param name="position" type="long"/>
  4834. <param name="buffer" type="byte[]"/>
  4835. <exception name="IOException" type="java.io.IOException"/>
  4836. </method>
  4837. <doc>
  4838. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  4839. of RAF-style seek ability.]]>
  4840. </doc>
  4841. </class>
  4842. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  4843. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  4844. <class name="FSOutputSummer" extends="java.io.OutputStream"
  4845. abstract="true"
  4846. static="false" final="false" visibility="public"
  4847. deprecated="not deprecated">
  4848. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  4849. static="false" final="false" visibility="protected"
  4850. deprecated="not deprecated">
  4851. </constructor>
  4852. <method name="writeChunk"
  4853. abstract="true" native="false" synchronized="false"
  4854. static="false" final="false" visibility="protected"
  4855. deprecated="not deprecated">
  4856. <param name="b" type="byte[]"/>
  4857. <param name="offset" type="int"/>
  4858. <param name="len" type="int"/>
  4859. <param name="checksum" type="byte[]"/>
  4860. <exception name="IOException" type="java.io.IOException"/>
  4861. </method>
  4862. <method name="write"
  4863. abstract="false" native="false" synchronized="true"
  4864. static="false" final="false" visibility="public"
  4865. deprecated="not deprecated">
  4866. <param name="b" type="int"/>
  4867. <exception name="IOException" type="java.io.IOException"/>
  4868. <doc>
  4869. <![CDATA[Write one byte]]>
  4870. </doc>
  4871. </method>
  4872. <method name="write"
  4873. abstract="false" native="false" synchronized="true"
  4874. static="false" final="false" visibility="public"
  4875. deprecated="not deprecated">
  4876. <param name="b" type="byte[]"/>
  4877. <param name="off" type="int"/>
  4878. <param name="len" type="int"/>
  4879. <exception name="IOException" type="java.io.IOException"/>
  4880. <doc>
  4881. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  4882. starting at offset <code>off</code> and generate a checksum for
  4883. each data chunk.
  4884. <p> This method stores bytes from the given array into this
  4885. stream's buffer before it gets checksumed. The buffer gets checksumed
  4886. and flushed to the underlying output stream when all data
  4887. in a checksum chunk are in the buffer. If the buffer is empty and
  4888. requested length is at least as large as the size of next checksum chunk
  4889. size, this method will checksum and write the chunk directly
  4890. to the underlying output stream. Thus it avoids uneccessary data copy.
  4891. @param b the data.
  4892. @param off the start offset in the data.
  4893. @param len the number of bytes to write.
  4894. @exception IOException if an I/O error occurs.]]>
  4895. </doc>
  4896. </method>
  4897. <method name="flushBuffer"
  4898. abstract="false" native="false" synchronized="true"
  4899. static="false" final="false" visibility="protected"
  4900. deprecated="not deprecated">
  4901. <exception name="IOException" type="java.io.IOException"/>
  4902. </method>
  4903. <method name="flushBuffer"
  4904. abstract="false" native="false" synchronized="true"
  4905. static="false" final="false" visibility="protected"
  4906. deprecated="not deprecated">
  4907. <param name="keep" type="boolean"/>
  4908. <exception name="IOException" type="java.io.IOException"/>
  4909. </method>
  4910. <method name="convertToByteStream" return="byte[]"
  4911. abstract="false" native="false" synchronized="false"
  4912. static="true" final="false" visibility="public"
  4913. deprecated="not deprecated">
  4914. <param name="sum" type="java.util.zip.Checksum"/>
  4915. <param name="checksumSize" type="int"/>
  4916. <doc>
  4917. <![CDATA[Converts a checksum integer value to a byte stream]]>
  4918. </doc>
  4919. </method>
  4920. <method name="resetChecksumChunk"
  4921. abstract="false" native="false" synchronized="true"
  4922. static="false" final="false" visibility="protected"
  4923. deprecated="not deprecated">
  4924. <param name="size" type="int"/>
  4925. <doc>
  4926. <![CDATA[Resets existing buffer with a new one of the specified size.]]>
  4927. </doc>
  4928. </method>
  4929. <doc>
  4930. <![CDATA[This is a generic output stream for generating checksums for
  4931. data before it is written to the underlying stream]]>
  4932. </doc>
  4933. </class>
  4934. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  4935. <!-- start class org.apache.hadoop.fs.FsShell -->
  4936. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  4937. abstract="false"
  4938. static="false" final="false" visibility="public"
  4939. deprecated="not deprecated">
  4940. <implements name="org.apache.hadoop.util.Tool"/>
  4941. <constructor name="FsShell"
  4942. static="false" final="false" visibility="public"
  4943. deprecated="not deprecated">
  4944. </constructor>
  4945. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  4946. static="false" final="false" visibility="public"
  4947. deprecated="not deprecated">
  4948. </constructor>
  4949. <method name="init"
  4950. abstract="false" native="false" synchronized="false"
  4951. static="false" final="false" visibility="protected"
  4952. deprecated="not deprecated">
  4953. <exception name="IOException" type="java.io.IOException"/>
  4954. </method>
  4955. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  4956. abstract="false" native="false" synchronized="false"
  4957. static="false" final="false" visibility="public"
  4958. deprecated="not deprecated">
  4959. <doc>
  4960. <![CDATA[Returns the Trash object associated with this shell.]]>
  4961. </doc>
  4962. </method>
  4963. <method name="byteDesc" return="java.lang.String"
  4964. abstract="false" native="false" synchronized="false"
  4965. static="true" final="false" visibility="public"
  4966. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.">
  4967. <param name="len" type="long"/>
  4968. <doc>
  4969. <![CDATA[Return an abbreviated English-language desc of the byte length
  4970. @deprecated Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.]]>
  4971. </doc>
  4972. </method>
  4973. <method name="limitDecimalTo2" return="java.lang.String"
  4974. abstract="false" native="false" synchronized="true"
  4975. static="true" final="false" visibility="public"
  4976. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.">
  4977. <param name="d" type="double"/>
  4978. <doc>
  4979. <![CDATA[@deprecated Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.]]>
  4980. </doc>
  4981. </method>
  4982. <method name="run" return="int"
  4983. abstract="false" native="false" synchronized="false"
  4984. static="false" final="false" visibility="public"
  4985. deprecated="not deprecated">
  4986. <param name="argv" type="java.lang.String[]"/>
  4987. <exception name="Exception" type="java.lang.Exception"/>
  4988. <doc>
  4989. <![CDATA[run]]>
  4990. </doc>
  4991. </method>
  4992. <method name="close"
  4993. abstract="false" native="false" synchronized="false"
  4994. static="false" final="false" visibility="public"
  4995. deprecated="not deprecated">
  4996. <exception name="IOException" type="java.io.IOException"/>
  4997. </method>
  4998. <method name="main"
  4999. abstract="false" native="false" synchronized="false"
  5000. static="true" final="false" visibility="public"
  5001. deprecated="not deprecated">
  5002. <param name="argv" type="java.lang.String[]"/>
  5003. <exception name="Exception" type="java.lang.Exception"/>
  5004. <doc>
  5005. <![CDATA[main() has some simple utility methods]]>
  5006. </doc>
  5007. </method>
  5008. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  5009. transient="false" volatile="false"
  5010. static="false" final="false" visibility="protected"
  5011. deprecated="not deprecated">
  5012. </field>
  5013. <field name="dateForm" type="java.text.SimpleDateFormat"
  5014. transient="false" volatile="false"
  5015. static="true" final="true" visibility="public"
  5016. deprecated="not deprecated">
  5017. </field>
  5018. <field name="modifFmt" type="java.text.SimpleDateFormat"
  5019. transient="false" volatile="false"
  5020. static="true" final="true" visibility="protected"
  5021. deprecated="not deprecated">
  5022. </field>
  5023. <doc>
  5024. <![CDATA[Provide command line access to a FileSystem.]]>
  5025. </doc>
  5026. </class>
  5027. <!-- end class org.apache.hadoop.fs.FsShell -->
  5028. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5029. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  5030. abstract="false"
  5031. static="false" final="false" visibility="public"
  5032. deprecated="not deprecated">
  5033. <implements name="java.net.URLStreamHandlerFactory"/>
  5034. <constructor name="FsUrlStreamHandlerFactory"
  5035. static="false" final="false" visibility="public"
  5036. deprecated="not deprecated">
  5037. </constructor>
  5038. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  5039. static="false" final="false" visibility="public"
  5040. deprecated="not deprecated">
  5041. </constructor>
  5042. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  5043. abstract="false" native="false" synchronized="false"
  5044. static="false" final="false" visibility="public"
  5045. deprecated="not deprecated">
  5046. <param name="protocol" type="java.lang.String"/>
  5047. </method>
  5048. <doc>
  5049. <![CDATA[Factory for URL stream handlers.
  5050. There is only one handler whose job is to create UrlConnections. A
  5051. FsUrlConnection relies on FileSystem to choose the appropriate FS
  5052. implementation.
  5053. Before returning our handler, we make sure that FileSystem knows an
  5054. implementation for the requested scheme/protocol.]]>
  5055. </doc>
  5056. </class>
  5057. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5058. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  5059. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  5060. abstract="false"
  5061. static="false" final="false" visibility="public"
  5062. deprecated="not deprecated">
  5063. <constructor name="HarFileSystem"
  5064. static="false" final="false" visibility="public"
  5065. deprecated="not deprecated">
  5066. <doc>
  5067. <![CDATA[public construction of harfilesystem]]>
  5068. </doc>
  5069. </constructor>
  5070. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5071. static="false" final="false" visibility="public"
  5072. deprecated="not deprecated">
  5073. <doc>
  5074. <![CDATA[Constructor to create a HarFileSystem with an
  5075. underlying filesystem.
  5076. @param fs]]>
  5077. </doc>
  5078. </constructor>
  5079. <method name="initialize"
  5080. abstract="false" native="false" synchronized="false"
  5081. static="false" final="false" visibility="public"
  5082. deprecated="not deprecated">
  5083. <param name="name" type="java.net.URI"/>
  5084. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5085. <exception name="IOException" type="java.io.IOException"/>
  5086. <doc>
  5087. <![CDATA[Initialize a Har filesystem per har archive. The
  5088. archive home directory is the top level directory
  5089. in the filesystem that contains the HAR archive.
  5090. Be careful with this method, you do not want to go
  5091. on creating new Filesystem instances per call to
  5092. path.getFileSystem().
  5093. the uri of Har is
  5094. har://underlyingfsscheme-host:port/archivepath.
  5095. or
  5096. har:///archivepath. This assumes the underlying filesystem
  5097. to be used in case not specified.]]>
  5098. </doc>
  5099. </method>
  5100. <method name="getHarVersion" return="int"
  5101. abstract="false" native="false" synchronized="false"
  5102. static="false" final="false" visibility="public"
  5103. deprecated="not deprecated">
  5104. <exception name="IOException" type="java.io.IOException"/>
  5105. </method>
  5106. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5107. abstract="false" native="false" synchronized="false"
  5108. static="false" final="false" visibility="public"
  5109. deprecated="not deprecated">
  5110. <doc>
  5111. <![CDATA[return the top level archive.]]>
  5112. </doc>
  5113. </method>
  5114. <method name="getUri" return="java.net.URI"
  5115. abstract="false" native="false" synchronized="false"
  5116. static="false" final="false" visibility="public"
  5117. deprecated="not deprecated">
  5118. <doc>
  5119. <![CDATA[Returns the uri of this filesystem.
  5120. The uri is of the form
  5121. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  5122. </doc>
  5123. </method>
  5124. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5125. abstract="false" native="false" synchronized="false"
  5126. static="false" final="false" visibility="public"
  5127. deprecated="not deprecated">
  5128. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5129. </method>
  5130. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5131. abstract="false" native="false" synchronized="false"
  5132. static="false" final="false" visibility="public"
  5133. deprecated="not deprecated">
  5134. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5135. <param name="start" type="long"/>
  5136. <param name="len" type="long"/>
  5137. <exception name="IOException" type="java.io.IOException"/>
  5138. <doc>
  5139. <![CDATA[get block locations from the underlying fs
  5140. @param file the input filestatus to get block locations
  5141. @param start the start in the file
  5142. @param len the length in the file
  5143. @return block locations for this segment of file
  5144. @throws IOException]]>
  5145. </doc>
  5146. </method>
  5147. <method name="getHarHash" return="int"
  5148. abstract="false" native="false" synchronized="false"
  5149. static="true" final="false" visibility="public"
  5150. deprecated="not deprecated">
  5151. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5152. <doc>
  5153. <![CDATA[the hash of the path p inside iniside
  5154. the filesystem
  5155. @param p the path in the harfilesystem
  5156. @return the hash code of the path.]]>
  5157. </doc>
  5158. </method>
  5159. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5160. abstract="false" native="false" synchronized="false"
  5161. static="false" final="false" visibility="public"
  5162. deprecated="not deprecated">
  5163. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5164. <exception name="IOException" type="java.io.IOException"/>
  5165. <doc>
  5166. <![CDATA[return the filestatus of files in har archive.
  5167. The permission returned are that of the archive
  5168. index files. The permissions are not persisted
  5169. while creating a hadoop archive.
  5170. @param f the path in har filesystem
  5171. @return filestatus.
  5172. @throws IOException]]>
  5173. </doc>
  5174. </method>
  5175. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5176. abstract="false" native="false" synchronized="false"
  5177. static="false" final="false" visibility="public"
  5178. deprecated="not deprecated">
  5179. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5180. <param name="bufferSize" type="int"/>
  5181. <exception name="IOException" type="java.io.IOException"/>
  5182. <doc>
  5183. <![CDATA[Returns a har input stream which fakes end of
  5184. file. It reads the index files to get the part
  5185. file name and the size and start of the file.]]>
  5186. </doc>
  5187. </method>
  5188. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5189. abstract="false" native="false" synchronized="false"
  5190. static="false" final="false" visibility="public"
  5191. deprecated="not deprecated">
  5192. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5193. <param name="bufferSize" type="int"/>
  5194. <exception name="IOException" type="java.io.IOException"/>
  5195. </method>
  5196. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5197. abstract="false" native="false" synchronized="false"
  5198. static="false" final="false" visibility="public"
  5199. deprecated="not deprecated">
  5200. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5201. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5202. <param name="overwrite" type="boolean"/>
  5203. <param name="bufferSize" type="int"/>
  5204. <param name="replication" type="short"/>
  5205. <param name="blockSize" type="long"/>
  5206. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5207. <exception name="IOException" type="java.io.IOException"/>
  5208. </method>
  5209. <method name="close"
  5210. abstract="false" native="false" synchronized="false"
  5211. static="false" final="false" visibility="public"
  5212. deprecated="not deprecated">
  5213. <exception name="IOException" type="java.io.IOException"/>
  5214. </method>
  5215. <method name="setReplication" return="boolean"
  5216. abstract="false" native="false" synchronized="false"
  5217. static="false" final="false" visibility="public"
  5218. deprecated="not deprecated">
  5219. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5220. <param name="replication" type="short"/>
  5221. <exception name="IOException" type="java.io.IOException"/>
  5222. <doc>
  5223. <![CDATA[Not implemented.]]>
  5224. </doc>
  5225. </method>
  5226. <method name="delete" return="boolean"
  5227. abstract="false" native="false" synchronized="false"
  5228. static="false" final="false" visibility="public"
  5229. deprecated="not deprecated">
  5230. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5231. <param name="recursive" type="boolean"/>
  5232. <exception name="IOException" type="java.io.IOException"/>
  5233. <doc>
  5234. <![CDATA[Not implemented.]]>
  5235. </doc>
  5236. </method>
  5237. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5238. abstract="false" native="false" synchronized="false"
  5239. static="false" final="false" visibility="public"
  5240. deprecated="not deprecated">
  5241. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5242. <exception name="IOException" type="java.io.IOException"/>
  5243. <doc>
  5244. <![CDATA[liststatus returns the children of a directory
  5245. after looking up the index files.]]>
  5246. </doc>
  5247. </method>
  5248. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5249. abstract="false" native="false" synchronized="false"
  5250. static="false" final="false" visibility="public"
  5251. deprecated="not deprecated">
  5252. <doc>
  5253. <![CDATA[return the top level archive path.]]>
  5254. </doc>
  5255. </method>
  5256. <method name="setWorkingDirectory"
  5257. abstract="false" native="false" synchronized="false"
  5258. static="false" final="false" visibility="public"
  5259. deprecated="not deprecated">
  5260. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5261. </method>
  5262. <method name="mkdirs" return="boolean"
  5263. abstract="false" native="false" synchronized="false"
  5264. static="false" final="false" visibility="public"
  5265. deprecated="not deprecated">
  5266. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5267. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5268. <exception name="IOException" type="java.io.IOException"/>
  5269. <doc>
  5270. <![CDATA[not implemented.]]>
  5271. </doc>
  5272. </method>
  5273. <method name="copyFromLocalFile"
  5274. abstract="false" native="false" synchronized="false"
  5275. static="false" final="false" visibility="public"
  5276. deprecated="not deprecated">
  5277. <param name="delSrc" type="boolean"/>
  5278. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5279. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5280. <exception name="IOException" type="java.io.IOException"/>
  5281. <doc>
  5282. <![CDATA[not implemented.]]>
  5283. </doc>
  5284. </method>
  5285. <method name="copyToLocalFile"
  5286. abstract="false" native="false" synchronized="false"
  5287. static="false" final="false" visibility="public"
  5288. deprecated="not deprecated">
  5289. <param name="delSrc" type="boolean"/>
  5290. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5291. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5292. <exception name="IOException" type="java.io.IOException"/>
  5293. <doc>
  5294. <![CDATA[copies the file in the har filesystem to a local file.]]>
  5295. </doc>
  5296. </method>
  5297. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5298. abstract="false" native="false" synchronized="false"
  5299. static="false" final="false" visibility="public"
  5300. deprecated="not deprecated">
  5301. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5302. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5303. <exception name="IOException" type="java.io.IOException"/>
  5304. <doc>
  5305. <![CDATA[not implemented.]]>
  5306. </doc>
  5307. </method>
  5308. <method name="completeLocalOutput"
  5309. abstract="false" native="false" synchronized="false"
  5310. static="false" final="false" visibility="public"
  5311. deprecated="not deprecated">
  5312. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5313. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5314. <exception name="IOException" type="java.io.IOException"/>
  5315. <doc>
  5316. <![CDATA[not implemented.]]>
  5317. </doc>
  5318. </method>
  5319. <method name="setOwner"
  5320. abstract="false" native="false" synchronized="false"
  5321. static="false" final="false" visibility="public"
  5322. deprecated="not deprecated">
  5323. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5324. <param name="username" type="java.lang.String"/>
  5325. <param name="groupname" type="java.lang.String"/>
  5326. <exception name="IOException" type="java.io.IOException"/>
  5327. <doc>
  5328. <![CDATA[not implemented.]]>
  5329. </doc>
  5330. </method>
  5331. <method name="setPermission"
  5332. abstract="false" native="false" synchronized="false"
  5333. static="false" final="false" visibility="public"
  5334. deprecated="not deprecated">
  5335. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5336. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5337. <exception name="IOException" type="java.io.IOException"/>
  5338. <doc>
  5339. <![CDATA[Not implemented.]]>
  5340. </doc>
  5341. </method>
  5342. <field name="VERSION" type="int"
  5343. transient="false" volatile="false"
  5344. static="true" final="true" visibility="public"
  5345. deprecated="not deprecated">
  5346. </field>
  5347. <doc>
  5348. <![CDATA[This is an implementation of the Hadoop Archive
  5349. Filesystem. This archive Filesystem has index files
  5350. of the form _index* and has contents of the form
  5351. part-*. The index files store the indexes of the
  5352. real files. The index files are of the form _masterindex
  5353. and _index. The master index is a level of indirection
  5354. in to the index file to make the look ups faster. the index
  5355. file is sorted with hash code of the paths that it contains
  5356. and the master index contains pointers to the positions in
  5357. index for ranges of hashcodes.]]>
  5358. </doc>
  5359. </class>
  5360. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  5361. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  5362. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5363. abstract="false"
  5364. static="false" final="false" visibility="public"
  5365. deprecated="not deprecated">
  5366. <constructor name="InMemoryFileSystem"
  5367. static="false" final="false" visibility="public"
  5368. deprecated="not deprecated">
  5369. </constructor>
  5370. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  5371. static="false" final="false" visibility="public"
  5372. deprecated="not deprecated">
  5373. </constructor>
  5374. <method name="reserveSpaceWithCheckSum" return="boolean"
  5375. abstract="false" native="false" synchronized="false"
  5376. static="false" final="false" visibility="public"
  5377. deprecated="not deprecated">
  5378. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5379. <param name="size" type="long"/>
  5380. <doc>
  5381. <![CDATA[Register a file with its size. This will also register a checksum for the
  5382. file that the user is trying to create. This is required since none of
  5383. the FileSystem APIs accept the size of the file as argument. But since it
  5384. is required for us to apriori know the size of the file we are going to
  5385. create, the user must call this method for each file he wants to create
  5386. and reserve memory for that file. We either succeed in reserving memory
  5387. for both the main file and the checksum file and return true, or return
  5388. false.]]>
  5389. </doc>
  5390. </method>
  5391. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  5392. abstract="false" native="false" synchronized="false"
  5393. static="false" final="false" visibility="public"
  5394. deprecated="not deprecated">
  5395. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5396. </method>
  5397. <method name="getNumFiles" return="int"
  5398. abstract="false" native="false" synchronized="false"
  5399. static="false" final="false" visibility="public"
  5400. deprecated="not deprecated">
  5401. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5402. </method>
  5403. <method name="getFSSize" return="long"
  5404. abstract="false" native="false" synchronized="false"
  5405. static="false" final="false" visibility="public"
  5406. deprecated="not deprecated">
  5407. </method>
  5408. <method name="getPercentUsed" return="float"
  5409. abstract="false" native="false" synchronized="false"
  5410. static="false" final="false" visibility="public"
  5411. deprecated="not deprecated">
  5412. </method>
  5413. <doc>
  5414. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  5415. that the file lengths are known ahead of time and the total lengths of all
  5416. the files is below a certain number (like 100 MB, configurable). Use the API
  5417. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  5418. the API for reserving space in the FS. The uri of this filesystem starts with
  5419. ramfs:// .]]>
  5420. </doc>
  5421. </class>
  5422. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  5423. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  5424. <class name="LocalDirAllocator" extends="java.lang.Object"
  5425. abstract="false"
  5426. static="false" final="false" visibility="public"
  5427. deprecated="not deprecated">
  5428. <constructor name="LocalDirAllocator" type="java.lang.String"
  5429. static="false" final="false" visibility="public"
  5430. deprecated="not deprecated">
  5431. <doc>
  5432. <![CDATA[Create an allocator object
  5433. @param contextCfgItemName]]>
  5434. </doc>
  5435. </constructor>
  5436. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5437. abstract="false" native="false" synchronized="false"
  5438. static="false" final="false" visibility="public"
  5439. deprecated="not deprecated">
  5440. <param name="pathStr" type="java.lang.String"/>
  5441. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5442. <exception name="IOException" type="java.io.IOException"/>
  5443. <doc>
  5444. <![CDATA[Get a path from the local FS. This method should be used if the size of
  5445. the file is not known apriori. We go round-robin over the set of disks
  5446. (via the configured dirs) and return the first complete path where
  5447. we could create the parent directory of the passed path.
  5448. @param pathStr the requested path (this will be created on the first
  5449. available disk)
  5450. @param conf the Configuration object
  5451. @return the complete path to the file on a local disk
  5452. @throws IOException]]>
  5453. </doc>
  5454. </method>
  5455. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5456. abstract="false" native="false" synchronized="false"
  5457. static="false" final="false" visibility="public"
  5458. deprecated="not deprecated">
  5459. <param name="pathStr" type="java.lang.String"/>
  5460. <param name="size" type="long"/>
  5461. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5462. <exception name="IOException" type="java.io.IOException"/>
  5463. <doc>
  5464. <![CDATA[Get a path from the local FS. Pass size as -1 if not known apriori. We
  5465. round-robin over the set of disks (via the configured dirs) and return
  5466. the first complete path which has enough space
  5467. @param pathStr the requested path (this will be created on the first
  5468. available disk)
  5469. @param size the size of the file that is going to be written
  5470. @param conf the Configuration object
  5471. @return the complete path to the file on a local disk
  5472. @throws IOException]]>
  5473. </doc>
  5474. </method>
  5475. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  5476. abstract="false" native="false" synchronized="false"
  5477. static="false" final="false" visibility="public"
  5478. deprecated="not deprecated">
  5479. <param name="pathStr" type="java.lang.String"/>
  5480. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5481. <exception name="IOException" type="java.io.IOException"/>
  5482. <doc>
  5483. <![CDATA[Get a path from the local FS for reading. We search through all the
  5484. configured dirs for the file's existence and return the complete
  5485. path to the file when we find one
  5486. @param pathStr the requested file (this will be searched)
  5487. @param conf the Configuration object
  5488. @return the complete path to the file on a local disk
  5489. @throws IOException]]>
  5490. </doc>
  5491. </method>
  5492. <method name="createTmpFileForWrite" return="java.io.File"
  5493. abstract="false" native="false" synchronized="false"
  5494. static="false" final="false" visibility="public"
  5495. deprecated="not deprecated">
  5496. <param name="pathStr" type="java.lang.String"/>
  5497. <param name="size" type="long"/>
  5498. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5499. <exception name="IOException" type="java.io.IOException"/>
  5500. <doc>
  5501. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  5502. apriori. We round-robin over the set of disks (via the configured dirs)
  5503. and select the first complete path which has enough space. A file is
  5504. created on this directory. The file is guaranteed to go away when the
  5505. JVM exits.
  5506. @param pathStr prefix for the temporary file
  5507. @param size the size of the file that is going to be written
  5508. @param conf the Configuration object
  5509. @return a unique temporary file
  5510. @throws IOException]]>
  5511. </doc>
  5512. </method>
  5513. <method name="isContextValid" return="boolean"
  5514. abstract="false" native="false" synchronized="false"
  5515. static="true" final="false" visibility="public"
  5516. deprecated="not deprecated">
  5517. <param name="contextCfgItemName" type="java.lang.String"/>
  5518. <doc>
  5519. <![CDATA[Method to check whether a context is valid
  5520. @param contextCfgItemName
  5521. @return true/false]]>
  5522. </doc>
  5523. </method>
  5524. <method name="ifExists" return="boolean"
  5525. abstract="false" native="false" synchronized="false"
  5526. static="false" final="false" visibility="public"
  5527. deprecated="not deprecated">
  5528. <param name="pathStr" type="java.lang.String"/>
  5529. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5530. <doc>
  5531. <![CDATA[We search through all the configured dirs for the file's existence
  5532. and return true when we find
  5533. @param pathStr the requested file (this will be searched)
  5534. @param conf the Configuration object
  5535. @return true if files exist. false otherwise
  5536. @throws IOException]]>
  5537. </doc>
  5538. </method>
  5539. <doc>
  5540. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  5541. files. The way it works is that it is kept track what disk was last
  5542. allocated for a file write. For the current request, the next disk from
  5543. the set of disks would be allocated if the free space on the disk is
  5544. sufficient enough to accomodate the file that is being considered for
  5545. creation. If the space requirements cannot be met, the next disk in order
  5546. would be tried and so on till a disk is found with sufficient capacity.
  5547. Once a disk with sufficient space is identified, a check is done to make
  5548. sure that the disk is writable. Also, there is an API provided that doesn't
  5549. take the space requirements into consideration but just checks whether the
  5550. disk under consideration is writable (this should be used for cases where
  5551. the file size is not known apriori). An API is provided to read a path that
  5552. was created earlier. That API works by doing a scan of all the disks for the
  5553. input pathname.
  5554. This implementation also provides the functionality of having multiple
  5555. allocators per JVM (one for each unique functionality or context, like
  5556. mapred, dfs-client, etc.). It ensures that there is only one instance of
  5557. an allocator per context per JVM.
  5558. Note:
  5559. 1. The contexts referred above are actually the configuration items defined
  5560. in the Configuration class like "mapred.local.dir" (for which we want to
  5561. control the dir allocations). The context-strings are exactly those
  5562. configuration items.
  5563. 2. This implementation does not take into consideration cases where
  5564. a disk becomes read-only or goes out of space while a file is being written
  5565. to (disks are shared between multiple processes, and so the latter situation
  5566. is probable).
  5567. 3. In the class implementation, "Disk" is referred to as "Dir", which
  5568. actually points to the configured directory on the Disk which will be the
  5569. parent for all file write/read allocations.]]>
  5570. </doc>
  5571. </class>
  5572. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  5573. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  5574. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5575. abstract="false"
  5576. static="false" final="false" visibility="public"
  5577. deprecated="not deprecated">
  5578. <constructor name="LocalFileSystem"
  5579. static="false" final="false" visibility="public"
  5580. deprecated="not deprecated">
  5581. </constructor>
  5582. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5583. static="false" final="false" visibility="public"
  5584. deprecated="not deprecated">
  5585. </constructor>
  5586. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  5587. abstract="false" native="false" synchronized="false"
  5588. static="false" final="false" visibility="public"
  5589. deprecated="not deprecated">
  5590. </method>
  5591. <method name="pathToFile" return="java.io.File"
  5592. abstract="false" native="false" synchronized="false"
  5593. static="false" final="false" visibility="public"
  5594. deprecated="not deprecated">
  5595. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5596. <doc>
  5597. <![CDATA[Convert a path to a File.]]>
  5598. </doc>
  5599. </method>
  5600. <method name="copyFromLocalFile"
  5601. abstract="false" native="false" synchronized="false"
  5602. static="false" final="false" visibility="public"
  5603. deprecated="not deprecated">
  5604. <param name="delSrc" type="boolean"/>
  5605. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5606. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5607. <exception name="IOException" type="java.io.IOException"/>
  5608. </method>
  5609. <method name="copyToLocalFile"
  5610. abstract="false" native="false" synchronized="false"
  5611. static="false" final="false" visibility="public"
  5612. deprecated="not deprecated">
  5613. <param name="delSrc" type="boolean"/>
  5614. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5615. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5616. <exception name="IOException" type="java.io.IOException"/>
  5617. </method>
  5618. <method name="reportChecksumFailure" return="boolean"
  5619. abstract="false" native="false" synchronized="false"
  5620. static="false" final="false" visibility="public"
  5621. deprecated="not deprecated">
  5622. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5623. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  5624. <param name="inPos" type="long"/>
  5625. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  5626. <param name="sumsPos" type="long"/>
  5627. <doc>
  5628. <![CDATA[Moves files to a bad file directory on the same device, so that their
  5629. storage will not be reused.]]>
  5630. </doc>
  5631. </method>
  5632. <doc>
  5633. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  5634. </doc>
  5635. </class>
  5636. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  5637. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  5638. <class name="MD5MD5CRC32FileChecksum" extends="org.apache.hadoop.fs.FileChecksum"
  5639. abstract="false"
  5640. static="false" final="false" visibility="public"
  5641. deprecated="not deprecated">
  5642. <constructor name="MD5MD5CRC32FileChecksum"
  5643. static="false" final="false" visibility="public"
  5644. deprecated="not deprecated">
  5645. <doc>
  5646. <![CDATA[Same as this(0, 0, null)]]>
  5647. </doc>
  5648. </constructor>
  5649. <constructor name="MD5MD5CRC32FileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  5650. static="false" final="false" visibility="public"
  5651. deprecated="not deprecated">
  5652. <doc>
  5653. <![CDATA[Create a MD5FileChecksum]]>
  5654. </doc>
  5655. </constructor>
  5656. <method name="getAlgorithmName" return="java.lang.String"
  5657. abstract="false" native="false" synchronized="false"
  5658. static="false" final="false" visibility="public"
  5659. deprecated="not deprecated">
  5660. <doc>
  5661. <![CDATA[{@inheritDoc}]]>
  5662. </doc>
  5663. </method>
  5664. <method name="getLength" return="int"
  5665. abstract="false" native="false" synchronized="false"
  5666. static="false" final="false" visibility="public"
  5667. deprecated="not deprecated">
  5668. <doc>
  5669. <![CDATA[{@inheritDoc}]]>
  5670. </doc>
  5671. </method>
  5672. <method name="getBytes" return="byte[]"
  5673. abstract="false" native="false" synchronized="false"
  5674. static="false" final="false" visibility="public"
  5675. deprecated="not deprecated">
  5676. <doc>
  5677. <![CDATA[{@inheritDoc}]]>
  5678. </doc>
  5679. </method>
  5680. <method name="readFields"
  5681. abstract="false" native="false" synchronized="false"
  5682. static="false" final="false" visibility="public"
  5683. deprecated="not deprecated">
  5684. <param name="in" type="java.io.DataInput"/>
  5685. <exception name="IOException" type="java.io.IOException"/>
  5686. <doc>
  5687. <![CDATA[{@inheritDoc}]]>
  5688. </doc>
  5689. </method>
  5690. <method name="write"
  5691. abstract="false" native="false" synchronized="false"
  5692. static="false" final="false" visibility="public"
  5693. deprecated="not deprecated">
  5694. <param name="out" type="java.io.DataOutput"/>
  5695. <exception name="IOException" type="java.io.IOException"/>
  5696. <doc>
  5697. <![CDATA[{@inheritDoc}]]>
  5698. </doc>
  5699. </method>
  5700. <method name="write"
  5701. abstract="false" native="false" synchronized="false"
  5702. static="true" final="false" visibility="public"
  5703. deprecated="not deprecated">
  5704. <param name="xml" type="org.znerd.xmlenc.XMLOutputter"/>
  5705. <param name="that" type="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"/>
  5706. <exception name="IOException" type="java.io.IOException"/>
  5707. <doc>
  5708. <![CDATA[Write that object to xml output.]]>
  5709. </doc>
  5710. </method>
  5711. <method name="valueOf" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  5712. abstract="false" native="false" synchronized="false"
  5713. static="true" final="false" visibility="public"
  5714. deprecated="not deprecated">
  5715. <param name="attrs" type="org.xml.sax.Attributes"/>
  5716. <exception name="SAXException" type="org.xml.sax.SAXException"/>
  5717. <doc>
  5718. <![CDATA[Return the object represented in the attributes.]]>
  5719. </doc>
  5720. </method>
  5721. <method name="toString" return="java.lang.String"
  5722. abstract="false" native="false" synchronized="false"
  5723. static="false" final="false" visibility="public"
  5724. deprecated="not deprecated">
  5725. <doc>
  5726. <![CDATA[{@inheritDoc}]]>
  5727. </doc>
  5728. </method>
  5729. <field name="LENGTH" type="int"
  5730. transient="false" volatile="false"
  5731. static="true" final="true" visibility="public"
  5732. deprecated="not deprecated">
  5733. </field>
  5734. <doc>
  5735. <![CDATA[MD5 of MD5 of CRC32.]]>
  5736. </doc>
  5737. </class>
  5738. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  5739. <!-- start class org.apache.hadoop.fs.Path -->
  5740. <class name="Path" extends="java.lang.Object"
  5741. abstract="false"
  5742. static="false" final="false" visibility="public"
  5743. deprecated="not deprecated">
  5744. <implements name="java.lang.Comparable"/>
  5745. <constructor name="Path" type="java.lang.String, java.lang.String"
  5746. static="false" final="false" visibility="public"
  5747. deprecated="not deprecated">
  5748. <doc>
  5749. <![CDATA[Resolve a child path against a parent path.]]>
  5750. </doc>
  5751. </constructor>
  5752. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  5753. static="false" final="false" visibility="public"
  5754. deprecated="not deprecated">
  5755. <doc>
  5756. <![CDATA[Resolve a child path against a parent path.]]>
  5757. </doc>
  5758. </constructor>
  5759. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  5760. static="false" final="false" visibility="public"
  5761. deprecated="not deprecated">
  5762. <doc>
  5763. <![CDATA[Resolve a child path against a parent path.]]>
  5764. </doc>
  5765. </constructor>
  5766. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  5767. static="false" final="false" visibility="public"
  5768. deprecated="not deprecated">
  5769. <doc>
  5770. <![CDATA[Resolve a child path against a parent path.]]>
  5771. </doc>
  5772. </constructor>
  5773. <constructor name="Path" type="java.lang.String"
  5774. static="false" final="false" visibility="public"
  5775. deprecated="not deprecated">
  5776. <doc>
  5777. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  5778. unescaped elements and some additional normalization.]]>
  5779. </doc>
  5780. </constructor>
  5781. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  5782. static="false" final="false" visibility="public"
  5783. deprecated="not deprecated">
  5784. <doc>
  5785. <![CDATA[Construct a Path from components.]]>
  5786. </doc>
  5787. </constructor>
  5788. <method name="toUri" return="java.net.URI"
  5789. abstract="false" native="false" synchronized="false"
  5790. static="false" final="false" visibility="public"
  5791. deprecated="not deprecated">
  5792. <doc>
  5793. <![CDATA[Convert this to a URI.]]>
  5794. </doc>
  5795. </method>
  5796. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  5797. abstract="false" native="false" synchronized="false"
  5798. static="false" final="false" visibility="public"
  5799. deprecated="not deprecated">
  5800. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5801. <exception name="IOException" type="java.io.IOException"/>
  5802. <doc>
  5803. <![CDATA[Return the FileSystem that owns this Path.]]>
  5804. </doc>
  5805. </method>
  5806. <method name="isAbsolute" return="boolean"
  5807. abstract="false" native="false" synchronized="false"
  5808. static="false" final="false" visibility="public"
  5809. deprecated="not deprecated">
  5810. <doc>
  5811. <![CDATA[True if the directory of this path is absolute.]]>
  5812. </doc>
  5813. </method>
  5814. <method name="getName" return="java.lang.String"
  5815. abstract="false" native="false" synchronized="false"
  5816. static="false" final="false" visibility="public"
  5817. deprecated="not deprecated">
  5818. <doc>
  5819. <![CDATA[Returns the final component of this path.]]>
  5820. </doc>
  5821. </method>
  5822. <method name="getParent" return="org.apache.hadoop.fs.Path"
  5823. abstract="false" native="false" synchronized="false"
  5824. static="false" final="false" visibility="public"
  5825. deprecated="not deprecated">
  5826. <doc>
  5827. <![CDATA[Returns the parent of a path or null if at root.]]>
  5828. </doc>
  5829. </method>
  5830. <method name="suffix" return="org.apache.hadoop.fs.Path"
  5831. abstract="false" native="false" synchronized="false"
  5832. static="false" final="false" visibility="public"
  5833. deprecated="not deprecated">
  5834. <param name="suffix" type="java.lang.String"/>
  5835. <doc>
  5836. <![CDATA[Adds a suffix to the final name in the path.]]>
  5837. </doc>
  5838. </method>
  5839. <method name="toString" return="java.lang.String"
  5840. abstract="false" native="false" synchronized="false"
  5841. static="false" final="false" visibility="public"
  5842. deprecated="not deprecated">
  5843. </method>
  5844. <method name="equals" return="boolean"
  5845. abstract="false" native="false" synchronized="false"
  5846. static="false" final="false" visibility="public"
  5847. deprecated="not deprecated">
  5848. <param name="o" type="java.lang.Object"/>
  5849. </method>
  5850. <method name="hashCode" return="int"
  5851. abstract="false" native="false" synchronized="false"
  5852. static="false" final="false" visibility="public"
  5853. deprecated="not deprecated">
  5854. </method>
  5855. <method name="compareTo" return="int"
  5856. abstract="false" native="false" synchronized="false"
  5857. static="false" final="false" visibility="public"
  5858. deprecated="not deprecated">
  5859. <param name="o" type="java.lang.Object"/>
  5860. </method>
  5861. <method name="depth" return="int"
  5862. abstract="false" native="false" synchronized="false"
  5863. static="false" final="false" visibility="public"
  5864. deprecated="not deprecated">
  5865. <doc>
  5866. <![CDATA[Return the number of elements in this path.]]>
  5867. </doc>
  5868. </method>
  5869. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5870. abstract="false" native="false" synchronized="false"
  5871. static="false" final="false" visibility="public"
  5872. deprecated="not deprecated">
  5873. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  5874. <doc>
  5875. <![CDATA[Returns a qualified path object.]]>
  5876. </doc>
  5877. </method>
  5878. <field name="SEPARATOR" type="java.lang.String"
  5879. transient="false" volatile="false"
  5880. static="true" final="true" visibility="public"
  5881. deprecated="not deprecated">
  5882. <doc>
  5883. <![CDATA[The directory separator, a slash.]]>
  5884. </doc>
  5885. </field>
  5886. <field name="SEPARATOR_CHAR" type="char"
  5887. transient="false" volatile="false"
  5888. static="true" final="true" visibility="public"
  5889. deprecated="not deprecated">
  5890. </field>
  5891. <field name="CUR_DIR" type="java.lang.String"
  5892. transient="false" volatile="false"
  5893. static="true" final="true" visibility="public"
  5894. deprecated="not deprecated">
  5895. </field>
  5896. <doc>
  5897. <![CDATA[Names a file or directory in a {@link FileSystem}.
  5898. Path strings use slash as the directory separator. A path string is
  5899. absolute if it begins with a slash.]]>
  5900. </doc>
  5901. </class>
  5902. <!-- end class org.apache.hadoop.fs.Path -->
  5903. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  5904. <interface name="PathFilter" abstract="true"
  5905. static="false" final="false" visibility="public"
  5906. deprecated="not deprecated">
  5907. <method name="accept" return="boolean"
  5908. abstract="false" native="false" synchronized="false"
  5909. static="false" final="false" visibility="public"
  5910. deprecated="not deprecated">
  5911. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5912. <doc>
  5913. <![CDATA[Tests whether or not the specified abstract pathname should be
  5914. included in a pathname list.
  5915. @param path The abstract pathname to be tested
  5916. @return <code>true</code> if and only if <code>pathname</code>
  5917. should be included]]>
  5918. </doc>
  5919. </method>
  5920. </interface>
  5921. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  5922. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  5923. <interface name="PositionedReadable" abstract="true"
  5924. static="false" final="false" visibility="public"
  5925. deprecated="not deprecated">
  5926. <method name="read" return="int"
  5927. abstract="false" native="false" synchronized="false"
  5928. static="false" final="false" visibility="public"
  5929. deprecated="not deprecated">
  5930. <param name="position" type="long"/>
  5931. <param name="buffer" type="byte[]"/>
  5932. <param name="offset" type="int"/>
  5933. <param name="length" type="int"/>
  5934. <exception name="IOException" type="java.io.IOException"/>
  5935. <doc>
  5936. <![CDATA[Read upto the specified number of bytes, from a given
  5937. position within a file, and return the number of bytes read. This does not
  5938. change the current offset of a file, and is thread-safe.]]>
  5939. </doc>
  5940. </method>
  5941. <method name="readFully"
  5942. abstract="false" native="false" synchronized="false"
  5943. static="false" final="false" visibility="public"
  5944. deprecated="not deprecated">
  5945. <param name="position" type="long"/>
  5946. <param name="buffer" type="byte[]"/>
  5947. <param name="offset" type="int"/>
  5948. <param name="length" type="int"/>
  5949. <exception name="IOException" type="java.io.IOException"/>
  5950. <doc>
  5951. <![CDATA[Read the specified number of bytes, from a given
  5952. position within a file. This does not
  5953. change the current offset of a file, and is thread-safe.]]>
  5954. </doc>
  5955. </method>
  5956. <method name="readFully"
  5957. abstract="false" native="false" synchronized="false"
  5958. static="false" final="false" visibility="public"
  5959. deprecated="not deprecated">
  5960. <param name="position" type="long"/>
  5961. <param name="buffer" type="byte[]"/>
  5962. <exception name="IOException" type="java.io.IOException"/>
  5963. <doc>
  5964. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  5965. position within a file. This does not
  5966. change the current offset of a file, and is thread-safe.]]>
  5967. </doc>
  5968. </method>
  5969. <doc>
  5970. <![CDATA[Stream that permits positional reading.]]>
  5971. </doc>
  5972. </interface>
  5973. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  5974. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  5975. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  5976. abstract="false"
  5977. static="false" final="false" visibility="public"
  5978. deprecated="not deprecated">
  5979. <constructor name="RawLocalFileSystem"
  5980. static="false" final="false" visibility="public"
  5981. deprecated="not deprecated">
  5982. </constructor>
  5983. <method name="pathToFile" return="java.io.File"
  5984. abstract="false" native="false" synchronized="false"
  5985. static="false" final="false" visibility="public"
  5986. deprecated="not deprecated">
  5987. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5988. <doc>
  5989. <![CDATA[Convert a path to a File.]]>
  5990. </doc>
  5991. </method>
  5992. <method name="getUri" return="java.net.URI"
  5993. abstract="false" native="false" synchronized="false"
  5994. static="false" final="false" visibility="public"
  5995. deprecated="not deprecated">
  5996. </method>
  5997. <method name="initialize"
  5998. abstract="false" native="false" synchronized="false"
  5999. static="false" final="false" visibility="public"
  6000. deprecated="not deprecated">
  6001. <param name="uri" type="java.net.URI"/>
  6002. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6003. <exception name="IOException" type="java.io.IOException"/>
  6004. </method>
  6005. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6006. abstract="false" native="false" synchronized="false"
  6007. static="false" final="false" visibility="public"
  6008. deprecated="not deprecated">
  6009. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6010. <param name="bufferSize" type="int"/>
  6011. <exception name="IOException" type="java.io.IOException"/>
  6012. </method>
  6013. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6014. abstract="false" native="false" synchronized="false"
  6015. static="false" final="false" visibility="public"
  6016. deprecated="not deprecated">
  6017. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6018. <param name="bufferSize" type="int"/>
  6019. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6020. <exception name="IOException" type="java.io.IOException"/>
  6021. <doc>
  6022. <![CDATA[{@inheritDoc}]]>
  6023. </doc>
  6024. </method>
  6025. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6026. abstract="false" native="false" synchronized="false"
  6027. static="false" final="false" visibility="public"
  6028. deprecated="not deprecated">
  6029. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6030. <param name="overwrite" type="boolean"/>
  6031. <param name="bufferSize" type="int"/>
  6032. <param name="replication" type="short"/>
  6033. <param name="blockSize" type="long"/>
  6034. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6035. <exception name="IOException" type="java.io.IOException"/>
  6036. <doc>
  6037. <![CDATA[{@inheritDoc}]]>
  6038. </doc>
  6039. </method>
  6040. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6041. abstract="false" native="false" synchronized="false"
  6042. static="false" final="false" visibility="public"
  6043. deprecated="not deprecated">
  6044. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6045. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6046. <param name="overwrite" type="boolean"/>
  6047. <param name="bufferSize" type="int"/>
  6048. <param name="replication" type="short"/>
  6049. <param name="blockSize" type="long"/>
  6050. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6051. <exception name="IOException" type="java.io.IOException"/>
  6052. <doc>
  6053. <![CDATA[{@inheritDoc}]]>
  6054. </doc>
  6055. </method>
  6056. <method name="rename" return="boolean"
  6057. abstract="false" native="false" synchronized="false"
  6058. static="false" final="false" visibility="public"
  6059. deprecated="not deprecated">
  6060. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6061. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6062. <exception name="IOException" type="java.io.IOException"/>
  6063. </method>
  6064. <method name="delete" return="boolean"
  6065. abstract="false" native="false" synchronized="false"
  6066. static="false" final="false" visibility="public"
  6067. deprecated="not deprecated">
  6068. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6069. <exception name="IOException" type="java.io.IOException"/>
  6070. </method>
  6071. <method name="delete" return="boolean"
  6072. abstract="false" native="false" synchronized="false"
  6073. static="false" final="false" visibility="public"
  6074. deprecated="not deprecated">
  6075. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6076. <param name="recursive" type="boolean"/>
  6077. <exception name="IOException" type="java.io.IOException"/>
  6078. </method>
  6079. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6080. abstract="false" native="false" synchronized="false"
  6081. static="false" final="false" visibility="public"
  6082. deprecated="not deprecated">
  6083. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6084. <exception name="IOException" type="java.io.IOException"/>
  6085. </method>
  6086. <method name="mkdirs" return="boolean"
  6087. abstract="false" native="false" synchronized="false"
  6088. static="false" final="false" visibility="public"
  6089. deprecated="not deprecated">
  6090. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6091. <exception name="IOException" type="java.io.IOException"/>
  6092. <doc>
  6093. <![CDATA[Creates the specified directory hierarchy. Does not
  6094. treat existence as an error.]]>
  6095. </doc>
  6096. </method>
  6097. <method name="mkdirs" return="boolean"
  6098. abstract="false" native="false" synchronized="false"
  6099. static="false" final="false" visibility="public"
  6100. deprecated="not deprecated">
  6101. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6102. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6103. <exception name="IOException" type="java.io.IOException"/>
  6104. <doc>
  6105. <![CDATA[{@inheritDoc}]]>
  6106. </doc>
  6107. </method>
  6108. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6109. abstract="false" native="false" synchronized="false"
  6110. static="false" final="false" visibility="public"
  6111. deprecated="not deprecated">
  6112. </method>
  6113. <method name="setWorkingDirectory"
  6114. abstract="false" native="false" synchronized="false"
  6115. static="false" final="false" visibility="public"
  6116. deprecated="not deprecated">
  6117. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6118. <doc>
  6119. <![CDATA[Set the working directory to the given directory.]]>
  6120. </doc>
  6121. </method>
  6122. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6123. abstract="false" native="false" synchronized="false"
  6124. static="false" final="false" visibility="public"
  6125. deprecated="not deprecated">
  6126. </method>
  6127. <method name="moveFromLocalFile"
  6128. abstract="false" native="false" synchronized="false"
  6129. static="false" final="false" visibility="public"
  6130. deprecated="not deprecated">
  6131. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6132. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6133. <exception name="IOException" type="java.io.IOException"/>
  6134. </method>
  6135. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6136. abstract="false" native="false" synchronized="false"
  6137. static="false" final="false" visibility="public"
  6138. deprecated="not deprecated">
  6139. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6140. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6141. <exception name="IOException" type="java.io.IOException"/>
  6142. </method>
  6143. <method name="completeLocalOutput"
  6144. abstract="false" native="false" synchronized="false"
  6145. static="false" final="false" visibility="public"
  6146. deprecated="not deprecated">
  6147. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  6148. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6149. <exception name="IOException" type="java.io.IOException"/>
  6150. </method>
  6151. <method name="close"
  6152. abstract="false" native="false" synchronized="false"
  6153. static="false" final="false" visibility="public"
  6154. deprecated="not deprecated">
  6155. <exception name="IOException" type="java.io.IOException"/>
  6156. </method>
  6157. <method name="toString" return="java.lang.String"
  6158. abstract="false" native="false" synchronized="false"
  6159. static="false" final="false" visibility="public"
  6160. deprecated="not deprecated">
  6161. </method>
  6162. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6163. abstract="false" native="false" synchronized="false"
  6164. static="false" final="false" visibility="public"
  6165. deprecated="not deprecated">
  6166. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6167. <exception name="IOException" type="java.io.IOException"/>
  6168. </method>
  6169. <method name="setOwner"
  6170. abstract="false" native="false" synchronized="false"
  6171. static="false" final="false" visibility="public"
  6172. deprecated="not deprecated">
  6173. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6174. <param name="username" type="java.lang.String"/>
  6175. <param name="groupname" type="java.lang.String"/>
  6176. <exception name="IOException" type="java.io.IOException"/>
  6177. <doc>
  6178. <![CDATA[Use the command chown to set owner.]]>
  6179. </doc>
  6180. </method>
  6181. <method name="setPermission"
  6182. abstract="false" native="false" synchronized="false"
  6183. static="false" final="false" visibility="public"
  6184. deprecated="not deprecated">
  6185. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6186. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6187. <exception name="IOException" type="java.io.IOException"/>
  6188. <doc>
  6189. <![CDATA[Use the command chmod to set permission.]]>
  6190. </doc>
  6191. </method>
  6192. <doc>
  6193. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  6194. </doc>
  6195. </class>
  6196. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  6197. <!-- start interface org.apache.hadoop.fs.Seekable -->
  6198. <interface name="Seekable" abstract="true"
  6199. static="false" final="false" visibility="public"
  6200. deprecated="not deprecated">
  6201. <method name="seek"
  6202. abstract="false" native="false" synchronized="false"
  6203. static="false" final="false" visibility="public"
  6204. deprecated="not deprecated">
  6205. <param name="pos" type="long"/>
  6206. <exception name="IOException" type="java.io.IOException"/>
  6207. <doc>
  6208. <![CDATA[Seek to the given offset from the start of the file.
  6209. The next read() will be from that location. Can't
  6210. seek past the end of the file.]]>
  6211. </doc>
  6212. </method>
  6213. <method name="getPos" return="long"
  6214. abstract="false" native="false" synchronized="false"
  6215. static="false" final="false" visibility="public"
  6216. deprecated="not deprecated">
  6217. <exception name="IOException" type="java.io.IOException"/>
  6218. <doc>
  6219. <![CDATA[Return the current offset from the start of the file]]>
  6220. </doc>
  6221. </method>
  6222. <method name="seekToNewSource" return="boolean"
  6223. abstract="false" native="false" synchronized="false"
  6224. static="false" final="false" visibility="public"
  6225. deprecated="not deprecated">
  6226. <param name="targetPos" type="long"/>
  6227. <exception name="IOException" type="java.io.IOException"/>
  6228. <doc>
  6229. <![CDATA[Seeks a different copy of the data. Returns true if
  6230. found a new source, false otherwise.]]>
  6231. </doc>
  6232. </method>
  6233. <doc>
  6234. <![CDATA[Stream that permits seeking.]]>
  6235. </doc>
  6236. </interface>
  6237. <!-- end interface org.apache.hadoop.fs.Seekable -->
  6238. <!-- start interface org.apache.hadoop.fs.Syncable -->
  6239. <interface name="Syncable" abstract="true"
  6240. static="false" final="false" visibility="public"
  6241. deprecated="not deprecated">
  6242. <method name="sync"
  6243. abstract="false" native="false" synchronized="false"
  6244. static="false" final="false" visibility="public"
  6245. deprecated="not deprecated">
  6246. <exception name="IOException" type="java.io.IOException"/>
  6247. <doc>
  6248. <![CDATA[Synchronize all buffer with the underlying devices.
  6249. @throws IOException]]>
  6250. </doc>
  6251. </method>
  6252. <doc>
  6253. <![CDATA[This interface declare the sync() operation.]]>
  6254. </doc>
  6255. </interface>
  6256. <!-- end interface org.apache.hadoop.fs.Syncable -->
  6257. <!-- start class org.apache.hadoop.fs.Trash -->
  6258. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  6259. abstract="false"
  6260. static="false" final="false" visibility="public"
  6261. deprecated="not deprecated">
  6262. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  6263. static="false" final="false" visibility="public"
  6264. deprecated="not deprecated">
  6265. <exception name="IOException" type="java.io.IOException"/>
  6266. <doc>
  6267. <![CDATA[Construct a trash can accessor.
  6268. @param conf a Configuration]]>
  6269. </doc>
  6270. </constructor>
  6271. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  6272. static="false" final="false" visibility="public"
  6273. deprecated="not deprecated">
  6274. <exception name="IOException" type="java.io.IOException"/>
  6275. <doc>
  6276. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  6277. </doc>
  6278. </constructor>
  6279. <method name="moveToTrash" return="boolean"
  6280. abstract="false" native="false" synchronized="false"
  6281. static="false" final="false" visibility="public"
  6282. deprecated="not deprecated">
  6283. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6284. <exception name="IOException" type="java.io.IOException"/>
  6285. <doc>
  6286. <![CDATA[Move a file or directory to the current trash directory.
  6287. @return false if the item is already in the trash or trash is disabled]]>
  6288. </doc>
  6289. </method>
  6290. <method name="checkpoint"
  6291. abstract="false" native="false" synchronized="false"
  6292. static="false" final="false" visibility="public"
  6293. deprecated="not deprecated">
  6294. <exception name="IOException" type="java.io.IOException"/>
  6295. <doc>
  6296. <![CDATA[Create a trash checkpoint.]]>
  6297. </doc>
  6298. </method>
  6299. <method name="expunge"
  6300. abstract="false" native="false" synchronized="false"
  6301. static="false" final="false" visibility="public"
  6302. deprecated="not deprecated">
  6303. <exception name="IOException" type="java.io.IOException"/>
  6304. <doc>
  6305. <![CDATA[Delete old checkpoints.]]>
  6306. </doc>
  6307. </method>
  6308. <method name="getEmptier" return="java.lang.Runnable"
  6309. abstract="false" native="false" synchronized="false"
  6310. static="false" final="false" visibility="public"
  6311. deprecated="not deprecated">
  6312. <exception name="IOException" type="java.io.IOException"/>
  6313. <doc>
  6314. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  6315. users, intended to be run by the superuser. Only one checkpoint is kept
  6316. at a time.]]>
  6317. </doc>
  6318. </method>
  6319. <method name="main"
  6320. abstract="false" native="false" synchronized="false"
  6321. static="true" final="false" visibility="public"
  6322. deprecated="not deprecated">
  6323. <param name="args" type="java.lang.String[]"/>
  6324. <exception name="Exception" type="java.lang.Exception"/>
  6325. <doc>
  6326. <![CDATA[Run an emptier.]]>
  6327. </doc>
  6328. </method>
  6329. <doc>
  6330. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  6331. directory, a subdirectory of their home directory named ".Trash". Files are
  6332. initially moved to a <i>current</i> sub-directory of the trash directory.
  6333. Within that sub-directory their original path is preserved. Periodically
  6334. one may checkpoint the current trash and remove older checkpoints. (This
  6335. design permits trash management without enumeration of the full trash
  6336. content, without date support in the filesystem, and without clock
  6337. synchronization.)]]>
  6338. </doc>
  6339. </class>
  6340. <!-- end class org.apache.hadoop.fs.Trash -->
  6341. </package>
  6342. <package name="org.apache.hadoop.fs.ftp">
  6343. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  6344. <class name="FTPException" extends="java.lang.RuntimeException"
  6345. abstract="false"
  6346. static="false" final="false" visibility="public"
  6347. deprecated="not deprecated">
  6348. <constructor name="FTPException" type="java.lang.String"
  6349. static="false" final="false" visibility="public"
  6350. deprecated="not deprecated">
  6351. </constructor>
  6352. <constructor name="FTPException" type="java.lang.Throwable"
  6353. static="false" final="false" visibility="public"
  6354. deprecated="not deprecated">
  6355. </constructor>
  6356. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  6357. static="false" final="false" visibility="public"
  6358. deprecated="not deprecated">
  6359. </constructor>
  6360. <doc>
  6361. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  6362. </doc>
  6363. </class>
  6364. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  6365. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6366. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6367. abstract="false"
  6368. static="false" final="false" visibility="public"
  6369. deprecated="not deprecated">
  6370. <constructor name="FTPFileSystem"
  6371. static="false" final="false" visibility="public"
  6372. deprecated="not deprecated">
  6373. </constructor>
  6374. <method name="initialize"
  6375. abstract="false" native="false" synchronized="false"
  6376. static="false" final="false" visibility="public"
  6377. deprecated="not deprecated">
  6378. <param name="uri" type="java.net.URI"/>
  6379. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6380. <exception name="IOException" type="java.io.IOException"/>
  6381. </method>
  6382. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6383. abstract="false" native="false" synchronized="false"
  6384. static="false" final="false" visibility="public"
  6385. deprecated="not deprecated">
  6386. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6387. <param name="bufferSize" type="int"/>
  6388. <exception name="IOException" type="java.io.IOException"/>
  6389. </method>
  6390. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6391. abstract="false" native="false" synchronized="false"
  6392. static="false" final="false" visibility="public"
  6393. deprecated="not deprecated">
  6394. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6395. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6396. <param name="overwrite" type="boolean"/>
  6397. <param name="bufferSize" type="int"/>
  6398. <param name="replication" type="short"/>
  6399. <param name="blockSize" type="long"/>
  6400. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6401. <exception name="IOException" type="java.io.IOException"/>
  6402. <doc>
  6403. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  6404. this class or else the invocation will block.]]>
  6405. </doc>
  6406. </method>
  6407. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6408. abstract="false" native="false" synchronized="false"
  6409. static="false" final="false" visibility="public"
  6410. deprecated="not deprecated">
  6411. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6412. <param name="bufferSize" type="int"/>
  6413. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6414. <exception name="IOException" type="java.io.IOException"/>
  6415. <doc>
  6416. <![CDATA[This optional operation is not yet supported.]]>
  6417. </doc>
  6418. </method>
  6419. <method name="delete" return="boolean"
  6420. abstract="false" native="false" synchronized="false"
  6421. static="false" final="false" visibility="public"
  6422. deprecated="Use delete(Path, boolean) instead">
  6423. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6424. <exception name="IOException" type="java.io.IOException"/>
  6425. <doc>
  6426. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  6427. </doc>
  6428. </method>
  6429. <method name="delete" return="boolean"
  6430. abstract="false" native="false" synchronized="false"
  6431. static="false" final="false" visibility="public"
  6432. deprecated="not deprecated">
  6433. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6434. <param name="recursive" type="boolean"/>
  6435. <exception name="IOException" type="java.io.IOException"/>
  6436. </method>
  6437. <method name="getUri" return="java.net.URI"
  6438. abstract="false" native="false" synchronized="false"
  6439. static="false" final="false" visibility="public"
  6440. deprecated="not deprecated">
  6441. </method>
  6442. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6443. abstract="false" native="false" synchronized="false"
  6444. static="false" final="false" visibility="public"
  6445. deprecated="not deprecated">
  6446. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6447. <exception name="IOException" type="java.io.IOException"/>
  6448. </method>
  6449. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6450. abstract="false" native="false" synchronized="false"
  6451. static="false" final="false" visibility="public"
  6452. deprecated="not deprecated">
  6453. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6454. <exception name="IOException" type="java.io.IOException"/>
  6455. </method>
  6456. <method name="mkdirs" return="boolean"
  6457. abstract="false" native="false" synchronized="false"
  6458. static="false" final="false" visibility="public"
  6459. deprecated="not deprecated">
  6460. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6461. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6462. <exception name="IOException" type="java.io.IOException"/>
  6463. </method>
  6464. <method name="rename" return="boolean"
  6465. abstract="false" native="false" synchronized="false"
  6466. static="false" final="false" visibility="public"
  6467. deprecated="not deprecated">
  6468. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6469. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6470. <exception name="IOException" type="java.io.IOException"/>
  6471. </method>
  6472. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6473. abstract="false" native="false" synchronized="false"
  6474. static="false" final="false" visibility="public"
  6475. deprecated="not deprecated">
  6476. </method>
  6477. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6478. abstract="false" native="false" synchronized="false"
  6479. static="false" final="false" visibility="public"
  6480. deprecated="not deprecated">
  6481. </method>
  6482. <method name="setWorkingDirectory"
  6483. abstract="false" native="false" synchronized="false"
  6484. static="false" final="false" visibility="public"
  6485. deprecated="not deprecated">
  6486. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6487. </method>
  6488. <field name="LOG" type="org.apache.commons.logging.Log"
  6489. transient="false" volatile="false"
  6490. static="true" final="true" visibility="public"
  6491. deprecated="not deprecated">
  6492. </field>
  6493. <field name="DEFAULT_BUFFER_SIZE" type="int"
  6494. transient="false" volatile="false"
  6495. static="true" final="true" visibility="public"
  6496. deprecated="not deprecated">
  6497. </field>
  6498. <field name="DEFAULT_BLOCK_SIZE" type="int"
  6499. transient="false" volatile="false"
  6500. static="true" final="true" visibility="public"
  6501. deprecated="not deprecated">
  6502. </field>
  6503. <doc>
  6504. <![CDATA[<p>
  6505. A {@link FileSystem} backed by an FTP client provided by <a
  6506. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  6507. </p>]]>
  6508. </doc>
  6509. </class>
  6510. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6511. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6512. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  6513. abstract="false"
  6514. static="false" final="false" visibility="public"
  6515. deprecated="not deprecated">
  6516. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  6517. static="false" final="false" visibility="public"
  6518. deprecated="not deprecated">
  6519. </constructor>
  6520. <method name="getPos" return="long"
  6521. abstract="false" native="false" synchronized="false"
  6522. static="false" final="false" visibility="public"
  6523. deprecated="not deprecated">
  6524. <exception name="IOException" type="java.io.IOException"/>
  6525. </method>
  6526. <method name="seek"
  6527. abstract="false" native="false" synchronized="false"
  6528. static="false" final="false" visibility="public"
  6529. deprecated="not deprecated">
  6530. <param name="pos" type="long"/>
  6531. <exception name="IOException" type="java.io.IOException"/>
  6532. </method>
  6533. <method name="seekToNewSource" return="boolean"
  6534. abstract="false" native="false" synchronized="false"
  6535. static="false" final="false" visibility="public"
  6536. deprecated="not deprecated">
  6537. <param name="targetPos" type="long"/>
  6538. <exception name="IOException" type="java.io.IOException"/>
  6539. </method>
  6540. <method name="read" return="int"
  6541. abstract="false" native="false" synchronized="true"
  6542. static="false" final="false" visibility="public"
  6543. deprecated="not deprecated">
  6544. <exception name="IOException" type="java.io.IOException"/>
  6545. </method>
  6546. <method name="read" return="int"
  6547. abstract="false" native="false" synchronized="true"
  6548. static="false" final="false" visibility="public"
  6549. deprecated="not deprecated">
  6550. <param name="buf" type="byte[]"/>
  6551. <param name="off" type="int"/>
  6552. <param name="len" type="int"/>
  6553. <exception name="IOException" type="java.io.IOException"/>
  6554. </method>
  6555. <method name="close"
  6556. abstract="false" native="false" synchronized="true"
  6557. static="false" final="false" visibility="public"
  6558. deprecated="not deprecated">
  6559. <exception name="IOException" type="java.io.IOException"/>
  6560. </method>
  6561. <method name="markSupported" return="boolean"
  6562. abstract="false" native="false" synchronized="false"
  6563. static="false" final="false" visibility="public"
  6564. deprecated="not deprecated">
  6565. </method>
  6566. <method name="mark"
  6567. abstract="false" native="false" synchronized="false"
  6568. static="false" final="false" visibility="public"
  6569. deprecated="not deprecated">
  6570. <param name="readLimit" type="int"/>
  6571. </method>
  6572. <method name="reset"
  6573. abstract="false" native="false" synchronized="false"
  6574. static="false" final="false" visibility="public"
  6575. deprecated="not deprecated">
  6576. <exception name="IOException" type="java.io.IOException"/>
  6577. </method>
  6578. </class>
  6579. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6580. </package>
  6581. <package name="org.apache.hadoop.fs.kfs">
  6582. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  6583. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6584. abstract="false"
  6585. static="false" final="false" visibility="public"
  6586. deprecated="not deprecated">
  6587. <constructor name="KosmosFileSystem"
  6588. static="false" final="false" visibility="public"
  6589. deprecated="not deprecated">
  6590. </constructor>
  6591. <method name="getUri" return="java.net.URI"
  6592. abstract="false" native="false" synchronized="false"
  6593. static="false" final="false" visibility="public"
  6594. deprecated="not deprecated">
  6595. </method>
  6596. <method name="initialize"
  6597. abstract="false" native="false" synchronized="false"
  6598. static="false" final="false" visibility="public"
  6599. deprecated="not deprecated">
  6600. <param name="uri" type="java.net.URI"/>
  6601. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6602. <exception name="IOException" type="java.io.IOException"/>
  6603. </method>
  6604. <method name="getName" return="java.lang.String"
  6605. abstract="false" native="false" synchronized="false"
  6606. static="false" final="false" visibility="public"
  6607. deprecated="not deprecated">
  6608. </method>
  6609. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6610. abstract="false" native="false" synchronized="false"
  6611. static="false" final="false" visibility="public"
  6612. deprecated="not deprecated">
  6613. </method>
  6614. <method name="setWorkingDirectory"
  6615. abstract="false" native="false" synchronized="false"
  6616. static="false" final="false" visibility="public"
  6617. deprecated="not deprecated">
  6618. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6619. </method>
  6620. <method name="mkdirs" return="boolean"
  6621. abstract="false" native="false" synchronized="false"
  6622. static="false" final="false" visibility="public"
  6623. deprecated="not deprecated">
  6624. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6625. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6626. <exception name="IOException" type="java.io.IOException"/>
  6627. </method>
  6628. <method name="isDirectory" return="boolean"
  6629. abstract="false" native="false" synchronized="false"
  6630. static="false" final="false" visibility="public"
  6631. deprecated="not deprecated">
  6632. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6633. <exception name="IOException" type="java.io.IOException"/>
  6634. </method>
  6635. <method name="isFile" return="boolean"
  6636. abstract="false" native="false" synchronized="false"
  6637. static="false" final="false" visibility="public"
  6638. deprecated="not deprecated">
  6639. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6640. <exception name="IOException" type="java.io.IOException"/>
  6641. </method>
  6642. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6643. abstract="false" native="false" synchronized="false"
  6644. static="false" final="false" visibility="public"
  6645. deprecated="not deprecated">
  6646. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6647. <exception name="IOException" type="java.io.IOException"/>
  6648. </method>
  6649. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6650. abstract="false" native="false" synchronized="false"
  6651. static="false" final="false" visibility="public"
  6652. deprecated="not deprecated">
  6653. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6654. <exception name="IOException" type="java.io.IOException"/>
  6655. </method>
  6656. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6657. abstract="false" native="false" synchronized="false"
  6658. static="false" final="false" visibility="public"
  6659. deprecated="not deprecated">
  6660. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6661. <param name="bufferSize" type="int"/>
  6662. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6663. <exception name="IOException" type="java.io.IOException"/>
  6664. <doc>
  6665. <![CDATA[This optional operation is not yet supported.]]>
  6666. </doc>
  6667. </method>
  6668. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6669. abstract="false" native="false" synchronized="false"
  6670. static="false" final="false" visibility="public"
  6671. deprecated="not deprecated">
  6672. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6673. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6674. <param name="overwrite" type="boolean"/>
  6675. <param name="bufferSize" type="int"/>
  6676. <param name="replication" type="short"/>
  6677. <param name="blockSize" type="long"/>
  6678. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6679. <exception name="IOException" type="java.io.IOException"/>
  6680. </method>
  6681. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6682. abstract="false" native="false" synchronized="false"
  6683. static="false" final="false" visibility="public"
  6684. deprecated="not deprecated">
  6685. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6686. <param name="bufferSize" type="int"/>
  6687. <exception name="IOException" type="java.io.IOException"/>
  6688. </method>
  6689. <method name="rename" return="boolean"
  6690. abstract="false" native="false" synchronized="false"
  6691. static="false" final="false" visibility="public"
  6692. deprecated="not deprecated">
  6693. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6694. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6695. <exception name="IOException" type="java.io.IOException"/>
  6696. </method>
  6697. <method name="delete" return="boolean"
  6698. abstract="false" native="false" synchronized="false"
  6699. static="false" final="false" visibility="public"
  6700. deprecated="not deprecated">
  6701. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6702. <param name="recursive" type="boolean"/>
  6703. <exception name="IOException" type="java.io.IOException"/>
  6704. </method>
  6705. <method name="delete" return="boolean"
  6706. abstract="false" native="false" synchronized="false"
  6707. static="false" final="false" visibility="public"
  6708. deprecated="not deprecated">
  6709. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6710. <exception name="IOException" type="java.io.IOException"/>
  6711. </method>
  6712. <method name="getLength" return="long"
  6713. abstract="false" native="false" synchronized="false"
  6714. static="false" final="false" visibility="public"
  6715. deprecated="not deprecated">
  6716. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6717. <exception name="IOException" type="java.io.IOException"/>
  6718. </method>
  6719. <method name="getReplication" return="short"
  6720. abstract="false" native="false" synchronized="false"
  6721. static="false" final="false" visibility="public"
  6722. deprecated="not deprecated">
  6723. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6724. <exception name="IOException" type="java.io.IOException"/>
  6725. </method>
  6726. <method name="getDefaultReplication" return="short"
  6727. abstract="false" native="false" synchronized="false"
  6728. static="false" final="false" visibility="public"
  6729. deprecated="not deprecated">
  6730. </method>
  6731. <method name="setReplication" return="boolean"
  6732. abstract="false" native="false" synchronized="false"
  6733. static="false" final="false" visibility="public"
  6734. deprecated="not deprecated">
  6735. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6736. <param name="replication" type="short"/>
  6737. <exception name="IOException" type="java.io.IOException"/>
  6738. </method>
  6739. <method name="getDefaultBlockSize" return="long"
  6740. abstract="false" native="false" synchronized="false"
  6741. static="false" final="false" visibility="public"
  6742. deprecated="not deprecated">
  6743. </method>
  6744. <method name="lock"
  6745. abstract="false" native="false" synchronized="false"
  6746. static="false" final="false" visibility="public"
  6747. deprecated="not deprecated">
  6748. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6749. <param name="shared" type="boolean"/>
  6750. <exception name="IOException" type="java.io.IOException"/>
  6751. </method>
  6752. <method name="release"
  6753. abstract="false" native="false" synchronized="false"
  6754. static="false" final="false" visibility="public"
  6755. deprecated="not deprecated">
  6756. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6757. <exception name="IOException" type="java.io.IOException"/>
  6758. </method>
  6759. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  6760. abstract="false" native="false" synchronized="false"
  6761. static="false" final="false" visibility="public"
  6762. deprecated="not deprecated">
  6763. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  6764. <param name="start" type="long"/>
  6765. <param name="len" type="long"/>
  6766. <exception name="IOException" type="java.io.IOException"/>
  6767. <doc>
  6768. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  6769. locations of the various chunks of the file file from KFS.]]>
  6770. </doc>
  6771. </method>
  6772. <method name="copyFromLocalFile"
  6773. abstract="false" native="false" synchronized="false"
  6774. static="false" final="false" visibility="public"
  6775. deprecated="not deprecated">
  6776. <param name="delSrc" type="boolean"/>
  6777. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6778. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6779. <exception name="IOException" type="java.io.IOException"/>
  6780. </method>
  6781. <method name="copyToLocalFile"
  6782. abstract="false" native="false" synchronized="false"
  6783. static="false" final="false" visibility="public"
  6784. deprecated="not deprecated">
  6785. <param name="delSrc" type="boolean"/>
  6786. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6787. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6788. <exception name="IOException" type="java.io.IOException"/>
  6789. </method>
  6790. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6791. abstract="false" native="false" synchronized="false"
  6792. static="false" final="false" visibility="public"
  6793. deprecated="not deprecated">
  6794. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6795. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6796. <exception name="IOException" type="java.io.IOException"/>
  6797. </method>
  6798. <method name="completeLocalOutput"
  6799. abstract="false" native="false" synchronized="false"
  6800. static="false" final="false" visibility="public"
  6801. deprecated="not deprecated">
  6802. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6803. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6804. <exception name="IOException" type="java.io.IOException"/>
  6805. </method>
  6806. <doc>
  6807. <![CDATA[A FileSystem backed by KFS.]]>
  6808. </doc>
  6809. </class>
  6810. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  6811. </package>
  6812. <package name="org.apache.hadoop.fs.permission">
  6813. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  6814. <class name="AccessControlException" extends="java.io.IOException"
  6815. abstract="false"
  6816. static="false" final="false" visibility="public"
  6817. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  6818. instead.">
  6819. <constructor name="AccessControlException"
  6820. static="false" final="false" visibility="public"
  6821. deprecated="not deprecated">
  6822. <doc>
  6823. <![CDATA[Default constructor is needed for unwrapping from
  6824. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  6825. </doc>
  6826. </constructor>
  6827. <constructor name="AccessControlException" type="java.lang.String"
  6828. static="false" final="false" visibility="public"
  6829. deprecated="not deprecated">
  6830. <doc>
  6831. <![CDATA[Constructs an {@link AccessControlException}
  6832. with the specified detail message.
  6833. @param s the detail message.]]>
  6834. </doc>
  6835. </constructor>
  6836. <constructor name="AccessControlException" type="java.lang.Throwable"
  6837. static="false" final="false" visibility="public"
  6838. deprecated="not deprecated">
  6839. <doc>
  6840. <![CDATA[Constructs a new exception with the specified cause and a detail
  6841. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  6842. typically contains the class and detail message of <tt>cause</tt>).
  6843. @param cause the cause (which is saved for later retrieval by the
  6844. {@link #getCause()} method). (A <tt>null</tt> value is
  6845. permitted, and indicates that the cause is nonexistent or
  6846. unknown.)]]>
  6847. </doc>
  6848. </constructor>
  6849. <doc>
  6850. <![CDATA[An exception class for access control related issues.
  6851. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  6852. instead.]]>
  6853. </doc>
  6854. </class>
  6855. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  6856. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  6857. <class name="FsAction" extends="java.lang.Enum"
  6858. abstract="false"
  6859. static="false" final="true" visibility="public"
  6860. deprecated="not deprecated">
  6861. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  6862. abstract="false" native="false" synchronized="false"
  6863. static="true" final="false" visibility="public"
  6864. deprecated="not deprecated">
  6865. </method>
  6866. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  6867. abstract="false" native="false" synchronized="false"
  6868. static="true" final="false" visibility="public"
  6869. deprecated="not deprecated">
  6870. <param name="name" type="java.lang.String"/>
  6871. </method>
  6872. <method name="implies" return="boolean"
  6873. abstract="false" native="false" synchronized="false"
  6874. static="false" final="false" visibility="public"
  6875. deprecated="not deprecated">
  6876. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  6877. <doc>
  6878. <![CDATA[Return true if this action implies that action.
  6879. @param that]]>
  6880. </doc>
  6881. </method>
  6882. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  6883. abstract="false" native="false" synchronized="false"
  6884. static="false" final="false" visibility="public"
  6885. deprecated="not deprecated">
  6886. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  6887. <doc>
  6888. <![CDATA[AND operation.]]>
  6889. </doc>
  6890. </method>
  6891. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  6892. abstract="false" native="false" synchronized="false"
  6893. static="false" final="false" visibility="public"
  6894. deprecated="not deprecated">
  6895. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  6896. <doc>
  6897. <![CDATA[OR operation.]]>
  6898. </doc>
  6899. </method>
  6900. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  6901. abstract="false" native="false" synchronized="false"
  6902. static="false" final="false" visibility="public"
  6903. deprecated="not deprecated">
  6904. <doc>
  6905. <![CDATA[NOT operation.]]>
  6906. </doc>
  6907. </method>
  6908. <field name="NONE" type="org.apache.hadoop.fs.permission.FsAction"
  6909. transient="false" volatile="false"
  6910. static="true" final="true" visibility="public"
  6911. deprecated="not deprecated">
  6912. </field>
  6913. <field name="EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  6914. transient="false" volatile="false"
  6915. static="true" final="true" visibility="public"
  6916. deprecated="not deprecated">
  6917. </field>
  6918. <field name="WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  6919. transient="false" volatile="false"
  6920. static="true" final="true" visibility="public"
  6921. deprecated="not deprecated">
  6922. </field>
  6923. <field name="WRITE_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  6924. transient="false" volatile="false"
  6925. static="true" final="true" visibility="public"
  6926. deprecated="not deprecated">
  6927. </field>
  6928. <field name="READ" type="org.apache.hadoop.fs.permission.FsAction"
  6929. transient="false" volatile="false"
  6930. static="true" final="true" visibility="public"
  6931. deprecated="not deprecated">
  6932. </field>
  6933. <field name="READ_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  6934. transient="false" volatile="false"
  6935. static="true" final="true" visibility="public"
  6936. deprecated="not deprecated">
  6937. </field>
  6938. <field name="READ_WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  6939. transient="false" volatile="false"
  6940. static="true" final="true" visibility="public"
  6941. deprecated="not deprecated">
  6942. </field>
  6943. <field name="ALL" type="org.apache.hadoop.fs.permission.FsAction"
  6944. transient="false" volatile="false"
  6945. static="true" final="true" visibility="public"
  6946. deprecated="not deprecated">
  6947. </field>
  6948. <field name="SYMBOL" type="java.lang.String"
  6949. transient="false" volatile="false"
  6950. static="false" final="true" visibility="public"
  6951. deprecated="not deprecated">
  6952. <doc>
  6953. <![CDATA[Symbolic representation]]>
  6954. </doc>
  6955. </field>
  6956. <doc>
  6957. <![CDATA[File system actions, e.g. read, write, etc.]]>
  6958. </doc>
  6959. </class>
  6960. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  6961. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  6962. <class name="FsPermission" extends="java.lang.Object"
  6963. abstract="false"
  6964. static="false" final="false" visibility="public"
  6965. deprecated="not deprecated">
  6966. <implements name="org.apache.hadoop.io.Writable"/>
  6967. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  6968. static="false" final="false" visibility="public"
  6969. deprecated="not deprecated">
  6970. <doc>
  6971. <![CDATA[Construct by the given {@link FsAction}.
  6972. @param u user action
  6973. @param g group action
  6974. @param o other action]]>
  6975. </doc>
  6976. </constructor>
  6977. <constructor name="FsPermission" type="short"
  6978. static="false" final="false" visibility="public"
  6979. deprecated="not deprecated">
  6980. <doc>
  6981. <![CDATA[Construct by the given mode.
  6982. @param mode
  6983. @see #toShort()]]>
  6984. </doc>
  6985. </constructor>
  6986. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  6987. static="false" final="false" visibility="public"
  6988. deprecated="not deprecated">
  6989. <doc>
  6990. <![CDATA[Copy constructor
  6991. @param other other permission]]>
  6992. </doc>
  6993. </constructor>
  6994. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  6995. abstract="false" native="false" synchronized="false"
  6996. static="true" final="false" visibility="public"
  6997. deprecated="not deprecated">
  6998. <param name="permission" type="short"/>
  6999. <doc>
  7000. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  7001. </doc>
  7002. </method>
  7003. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  7004. abstract="false" native="false" synchronized="false"
  7005. static="false" final="false" visibility="public"
  7006. deprecated="not deprecated">
  7007. <doc>
  7008. <![CDATA[Return user {@link FsAction}.]]>
  7009. </doc>
  7010. </method>
  7011. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  7012. abstract="false" native="false" synchronized="false"
  7013. static="false" final="false" visibility="public"
  7014. deprecated="not deprecated">
  7015. <doc>
  7016. <![CDATA[Return group {@link FsAction}.]]>
  7017. </doc>
  7018. </method>
  7019. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  7020. abstract="false" native="false" synchronized="false"
  7021. static="false" final="false" visibility="public"
  7022. deprecated="not deprecated">
  7023. <doc>
  7024. <![CDATA[Return other {@link FsAction}.]]>
  7025. </doc>
  7026. </method>
  7027. <method name="fromShort"
  7028. abstract="false" native="false" synchronized="false"
  7029. static="false" final="false" visibility="public"
  7030. deprecated="not deprecated">
  7031. <param name="n" type="short"/>
  7032. </method>
  7033. <method name="write"
  7034. abstract="false" native="false" synchronized="false"
  7035. static="false" final="false" visibility="public"
  7036. deprecated="not deprecated">
  7037. <param name="out" type="java.io.DataOutput"/>
  7038. <exception name="IOException" type="java.io.IOException"/>
  7039. <doc>
  7040. <![CDATA[{@inheritDoc}]]>
  7041. </doc>
  7042. </method>
  7043. <method name="readFields"
  7044. abstract="false" native="false" synchronized="false"
  7045. static="false" final="false" visibility="public"
  7046. deprecated="not deprecated">
  7047. <param name="in" type="java.io.DataInput"/>
  7048. <exception name="IOException" type="java.io.IOException"/>
  7049. <doc>
  7050. <![CDATA[{@inheritDoc}]]>
  7051. </doc>
  7052. </method>
  7053. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  7054. abstract="false" native="false" synchronized="false"
  7055. static="true" final="false" visibility="public"
  7056. deprecated="not deprecated">
  7057. <param name="in" type="java.io.DataInput"/>
  7058. <exception name="IOException" type="java.io.IOException"/>
  7059. <doc>
  7060. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  7061. </doc>
  7062. </method>
  7063. <method name="toShort" return="short"
  7064. abstract="false" native="false" synchronized="false"
  7065. static="false" final="false" visibility="public"
  7066. deprecated="not deprecated">
  7067. <doc>
  7068. <![CDATA[Encode the object to a short.]]>
  7069. </doc>
  7070. </method>
  7071. <method name="equals" return="boolean"
  7072. abstract="false" native="false" synchronized="false"
  7073. static="false" final="false" visibility="public"
  7074. deprecated="not deprecated">
  7075. <param name="obj" type="java.lang.Object"/>
  7076. <doc>
  7077. <![CDATA[{@inheritDoc}]]>
  7078. </doc>
  7079. </method>
  7080. <method name="hashCode" return="int"
  7081. abstract="false" native="false" synchronized="false"
  7082. static="false" final="false" visibility="public"
  7083. deprecated="not deprecated">
  7084. <doc>
  7085. <![CDATA[{@inheritDoc}]]>
  7086. </doc>
  7087. </method>
  7088. <method name="toString" return="java.lang.String"
  7089. abstract="false" native="false" synchronized="false"
  7090. static="false" final="false" visibility="public"
  7091. deprecated="not deprecated">
  7092. <doc>
  7093. <![CDATA[{@inheritDoc}]]>
  7094. </doc>
  7095. </method>
  7096. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7097. abstract="false" native="false" synchronized="false"
  7098. static="false" final="false" visibility="public"
  7099. deprecated="not deprecated">
  7100. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7101. <doc>
  7102. <![CDATA[Apply a umask to this permission and return a new one]]>
  7103. </doc>
  7104. </method>
  7105. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7106. abstract="false" native="false" synchronized="false"
  7107. static="true" final="false" visibility="public"
  7108. deprecated="not deprecated">
  7109. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7110. <doc>
  7111. <![CDATA[Get the user file creation mask (umask)]]>
  7112. </doc>
  7113. </method>
  7114. <method name="setUMask"
  7115. abstract="false" native="false" synchronized="false"
  7116. static="true" final="false" visibility="public"
  7117. deprecated="not deprecated">
  7118. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7119. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7120. <doc>
  7121. <![CDATA[Set the user file creation mask (umask)]]>
  7122. </doc>
  7123. </method>
  7124. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  7125. abstract="false" native="false" synchronized="false"
  7126. static="true" final="false" visibility="public"
  7127. deprecated="not deprecated">
  7128. <doc>
  7129. <![CDATA[Get the default permission.]]>
  7130. </doc>
  7131. </method>
  7132. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  7133. abstract="false" native="false" synchronized="false"
  7134. static="true" final="false" visibility="public"
  7135. deprecated="not deprecated">
  7136. <param name="unixSymbolicPermission" type="java.lang.String"/>
  7137. <doc>
  7138. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  7139. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  7140. </doc>
  7141. </method>
  7142. <field name="UMASK_LABEL" type="java.lang.String"
  7143. transient="false" volatile="false"
  7144. static="true" final="true" visibility="public"
  7145. deprecated="not deprecated">
  7146. <doc>
  7147. <![CDATA[umask property label]]>
  7148. </doc>
  7149. </field>
  7150. <field name="DEFAULT_UMASK" type="int"
  7151. transient="false" volatile="false"
  7152. static="true" final="true" visibility="public"
  7153. deprecated="not deprecated">
  7154. </field>
  7155. <doc>
  7156. <![CDATA[A class for file/directory permissions.]]>
  7157. </doc>
  7158. </class>
  7159. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  7160. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  7161. <class name="PermissionStatus" extends="java.lang.Object"
  7162. abstract="false"
  7163. static="false" final="false" visibility="public"
  7164. deprecated="not deprecated">
  7165. <implements name="org.apache.hadoop.io.Writable"/>
  7166. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  7167. static="false" final="false" visibility="public"
  7168. deprecated="not deprecated">
  7169. <doc>
  7170. <![CDATA[Constructor]]>
  7171. </doc>
  7172. </constructor>
  7173. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7174. abstract="false" native="false" synchronized="false"
  7175. static="true" final="false" visibility="public"
  7176. deprecated="not deprecated">
  7177. <param name="user" type="java.lang.String"/>
  7178. <param name="group" type="java.lang.String"/>
  7179. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7180. <doc>
  7181. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  7182. </doc>
  7183. </method>
  7184. <method name="getUserName" return="java.lang.String"
  7185. abstract="false" native="false" synchronized="false"
  7186. static="false" final="false" visibility="public"
  7187. deprecated="not deprecated">
  7188. <doc>
  7189. <![CDATA[Return user name]]>
  7190. </doc>
  7191. </method>
  7192. <method name="getGroupName" return="java.lang.String"
  7193. abstract="false" native="false" synchronized="false"
  7194. static="false" final="false" visibility="public"
  7195. deprecated="not deprecated">
  7196. <doc>
  7197. <![CDATA[Return group name]]>
  7198. </doc>
  7199. </method>
  7200. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7201. abstract="false" native="false" synchronized="false"
  7202. static="false" final="false" visibility="public"
  7203. deprecated="not deprecated">
  7204. <doc>
  7205. <![CDATA[Return permission]]>
  7206. </doc>
  7207. </method>
  7208. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7209. abstract="false" native="false" synchronized="false"
  7210. static="false" final="false" visibility="public"
  7211. deprecated="not deprecated">
  7212. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7213. <doc>
  7214. <![CDATA[Apply umask.
  7215. @see FsPermission#applyUMask(FsPermission)]]>
  7216. </doc>
  7217. </method>
  7218. <method name="readFields"
  7219. abstract="false" native="false" synchronized="false"
  7220. static="false" final="false" visibility="public"
  7221. deprecated="not deprecated">
  7222. <param name="in" type="java.io.DataInput"/>
  7223. <exception name="IOException" type="java.io.IOException"/>
  7224. <doc>
  7225. <![CDATA[{@inheritDoc}]]>
  7226. </doc>
  7227. </method>
  7228. <method name="write"
  7229. abstract="false" native="false" synchronized="false"
  7230. static="false" final="false" visibility="public"
  7231. deprecated="not deprecated">
  7232. <param name="out" type="java.io.DataOutput"/>
  7233. <exception name="IOException" type="java.io.IOException"/>
  7234. <doc>
  7235. <![CDATA[{@inheritDoc}]]>
  7236. </doc>
  7237. </method>
  7238. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7239. abstract="false" native="false" synchronized="false"
  7240. static="true" final="false" visibility="public"
  7241. deprecated="not deprecated">
  7242. <param name="in" type="java.io.DataInput"/>
  7243. <exception name="IOException" type="java.io.IOException"/>
  7244. <doc>
  7245. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  7246. </doc>
  7247. </method>
  7248. <method name="write"
  7249. abstract="false" native="false" synchronized="false"
  7250. static="true" final="false" visibility="public"
  7251. deprecated="not deprecated">
  7252. <param name="out" type="java.io.DataOutput"/>
  7253. <param name="username" type="java.lang.String"/>
  7254. <param name="groupname" type="java.lang.String"/>
  7255. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7256. <exception name="IOException" type="java.io.IOException"/>
  7257. <doc>
  7258. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  7259. </doc>
  7260. </method>
  7261. <method name="toString" return="java.lang.String"
  7262. abstract="false" native="false" synchronized="false"
  7263. static="false" final="false" visibility="public"
  7264. deprecated="not deprecated">
  7265. <doc>
  7266. <![CDATA[{@inheritDoc}]]>
  7267. </doc>
  7268. </method>
  7269. <doc>
  7270. <![CDATA[Store permission related information.]]>
  7271. </doc>
  7272. </class>
  7273. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  7274. </package>
  7275. <package name="org.apache.hadoop.fs.s3">
  7276. <!-- start class org.apache.hadoop.fs.s3.Block -->
  7277. <class name="Block" extends="java.lang.Object"
  7278. abstract="false"
  7279. static="false" final="false" visibility="public"
  7280. deprecated="not deprecated">
  7281. <constructor name="Block" type="long, long"
  7282. static="false" final="false" visibility="public"
  7283. deprecated="not deprecated">
  7284. </constructor>
  7285. <method name="getId" return="long"
  7286. abstract="false" native="false" synchronized="false"
  7287. static="false" final="false" visibility="public"
  7288. deprecated="not deprecated">
  7289. </method>
  7290. <method name="getLength" return="long"
  7291. abstract="false" native="false" synchronized="false"
  7292. static="false" final="false" visibility="public"
  7293. deprecated="not deprecated">
  7294. </method>
  7295. <method name="toString" return="java.lang.String"
  7296. abstract="false" native="false" synchronized="false"
  7297. static="false" final="false" visibility="public"
  7298. deprecated="not deprecated">
  7299. </method>
  7300. <doc>
  7301. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  7302. </doc>
  7303. </class>
  7304. <!-- end class org.apache.hadoop.fs.s3.Block -->
  7305. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7306. <interface name="FileSystemStore" abstract="true"
  7307. static="false" final="false" visibility="public"
  7308. deprecated="not deprecated">
  7309. <method name="initialize"
  7310. abstract="false" native="false" synchronized="false"
  7311. static="false" final="false" visibility="public"
  7312. deprecated="not deprecated">
  7313. <param name="uri" type="java.net.URI"/>
  7314. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7315. <exception name="IOException" type="java.io.IOException"/>
  7316. </method>
  7317. <method name="getVersion" return="java.lang.String"
  7318. abstract="false" native="false" synchronized="false"
  7319. static="false" final="false" visibility="public"
  7320. deprecated="not deprecated">
  7321. <exception name="IOException" type="java.io.IOException"/>
  7322. </method>
  7323. <method name="storeINode"
  7324. abstract="false" native="false" synchronized="false"
  7325. static="false" final="false" visibility="public"
  7326. deprecated="not deprecated">
  7327. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7328. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  7329. <exception name="IOException" type="java.io.IOException"/>
  7330. </method>
  7331. <method name="storeBlock"
  7332. abstract="false" native="false" synchronized="false"
  7333. static="false" final="false" visibility="public"
  7334. deprecated="not deprecated">
  7335. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7336. <param name="file" type="java.io.File"/>
  7337. <exception name="IOException" type="java.io.IOException"/>
  7338. </method>
  7339. <method name="inodeExists" return="boolean"
  7340. abstract="false" native="false" synchronized="false"
  7341. static="false" final="false" visibility="public"
  7342. deprecated="not deprecated">
  7343. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7344. <exception name="IOException" type="java.io.IOException"/>
  7345. </method>
  7346. <method name="blockExists" return="boolean"
  7347. abstract="false" native="false" synchronized="false"
  7348. static="false" final="false" visibility="public"
  7349. deprecated="not deprecated">
  7350. <param name="blockId" type="long"/>
  7351. <exception name="IOException" type="java.io.IOException"/>
  7352. </method>
  7353. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  7354. abstract="false" native="false" synchronized="false"
  7355. static="false" final="false" visibility="public"
  7356. deprecated="not deprecated">
  7357. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7358. <exception name="IOException" type="java.io.IOException"/>
  7359. </method>
  7360. <method name="retrieveBlock" return="java.io.File"
  7361. abstract="false" native="false" synchronized="false"
  7362. static="false" final="false" visibility="public"
  7363. deprecated="not deprecated">
  7364. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7365. <param name="byteRangeStart" type="long"/>
  7366. <exception name="IOException" type="java.io.IOException"/>
  7367. </method>
  7368. <method name="deleteINode"
  7369. abstract="false" native="false" synchronized="false"
  7370. static="false" final="false" visibility="public"
  7371. deprecated="not deprecated">
  7372. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7373. <exception name="IOException" type="java.io.IOException"/>
  7374. </method>
  7375. <method name="deleteBlock"
  7376. abstract="false" native="false" synchronized="false"
  7377. static="false" final="false" visibility="public"
  7378. deprecated="not deprecated">
  7379. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7380. <exception name="IOException" type="java.io.IOException"/>
  7381. </method>
  7382. <method name="listSubPaths" return="java.util.Set"
  7383. abstract="false" native="false" synchronized="false"
  7384. static="false" final="false" visibility="public"
  7385. deprecated="not deprecated">
  7386. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7387. <exception name="IOException" type="java.io.IOException"/>
  7388. </method>
  7389. <method name="listDeepSubPaths" return="java.util.Set"
  7390. abstract="false" native="false" synchronized="false"
  7391. static="false" final="false" visibility="public"
  7392. deprecated="not deprecated">
  7393. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7394. <exception name="IOException" type="java.io.IOException"/>
  7395. </method>
  7396. <method name="purge"
  7397. abstract="false" native="false" synchronized="false"
  7398. static="false" final="false" visibility="public"
  7399. deprecated="not deprecated">
  7400. <exception name="IOException" type="java.io.IOException"/>
  7401. <doc>
  7402. <![CDATA[Delete everything. Used for testing.
  7403. @throws IOException]]>
  7404. </doc>
  7405. </method>
  7406. <method name="dump"
  7407. abstract="false" native="false" synchronized="false"
  7408. static="false" final="false" visibility="public"
  7409. deprecated="not deprecated">
  7410. <exception name="IOException" type="java.io.IOException"/>
  7411. <doc>
  7412. <![CDATA[Diagnostic method to dump all INodes to the console.
  7413. @throws IOException]]>
  7414. </doc>
  7415. </method>
  7416. <doc>
  7417. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  7418. </doc>
  7419. </interface>
  7420. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7421. <!-- start class org.apache.hadoop.fs.s3.INode -->
  7422. <class name="INode" extends="java.lang.Object"
  7423. abstract="false"
  7424. static="false" final="false" visibility="public"
  7425. deprecated="not deprecated">
  7426. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  7427. static="false" final="false" visibility="public"
  7428. deprecated="not deprecated">
  7429. </constructor>
  7430. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  7431. abstract="false" native="false" synchronized="false"
  7432. static="false" final="false" visibility="public"
  7433. deprecated="not deprecated">
  7434. </method>
  7435. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  7436. abstract="false" native="false" synchronized="false"
  7437. static="false" final="false" visibility="public"
  7438. deprecated="not deprecated">
  7439. </method>
  7440. <method name="isDirectory" return="boolean"
  7441. abstract="false" native="false" synchronized="false"
  7442. static="false" final="false" visibility="public"
  7443. deprecated="not deprecated">
  7444. </method>
  7445. <method name="isFile" return="boolean"
  7446. abstract="false" native="false" synchronized="false"
  7447. static="false" final="false" visibility="public"
  7448. deprecated="not deprecated">
  7449. </method>
  7450. <method name="getSerializedLength" return="long"
  7451. abstract="false" native="false" synchronized="false"
  7452. static="false" final="false" visibility="public"
  7453. deprecated="not deprecated">
  7454. </method>
  7455. <method name="serialize" return="java.io.InputStream"
  7456. abstract="false" native="false" synchronized="false"
  7457. static="false" final="false" visibility="public"
  7458. deprecated="not deprecated">
  7459. <exception name="IOException" type="java.io.IOException"/>
  7460. </method>
  7461. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  7462. abstract="false" native="false" synchronized="false"
  7463. static="true" final="false" visibility="public"
  7464. deprecated="not deprecated">
  7465. <param name="in" type="java.io.InputStream"/>
  7466. <exception name="IOException" type="java.io.IOException"/>
  7467. </method>
  7468. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  7469. transient="false" volatile="false"
  7470. static="true" final="true" visibility="public"
  7471. deprecated="not deprecated">
  7472. </field>
  7473. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  7474. transient="false" volatile="false"
  7475. static="true" final="true" visibility="public"
  7476. deprecated="not deprecated">
  7477. </field>
  7478. <doc>
  7479. <![CDATA[Holds file metadata including type (regular file, or directory),
  7480. and the list of blocks that are pointers to the data.]]>
  7481. </doc>
  7482. </class>
  7483. <!-- end class org.apache.hadoop.fs.s3.INode -->
  7484. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  7485. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  7486. abstract="false"
  7487. static="false" final="false" visibility="public"
  7488. deprecated="not deprecated">
  7489. <implements name="org.apache.hadoop.util.Tool"/>
  7490. <constructor name="MigrationTool"
  7491. static="false" final="false" visibility="public"
  7492. deprecated="not deprecated">
  7493. </constructor>
  7494. <method name="main"
  7495. abstract="false" native="false" synchronized="false"
  7496. static="true" final="false" visibility="public"
  7497. deprecated="not deprecated">
  7498. <param name="args" type="java.lang.String[]"/>
  7499. <exception name="Exception" type="java.lang.Exception"/>
  7500. </method>
  7501. <method name="run" return="int"
  7502. abstract="false" native="false" synchronized="false"
  7503. static="false" final="false" visibility="public"
  7504. deprecated="not deprecated">
  7505. <param name="args" type="java.lang.String[]"/>
  7506. <exception name="Exception" type="java.lang.Exception"/>
  7507. </method>
  7508. <method name="initialize"
  7509. abstract="false" native="false" synchronized="false"
  7510. static="false" final="false" visibility="public"
  7511. deprecated="not deprecated">
  7512. <param name="uri" type="java.net.URI"/>
  7513. <exception name="IOException" type="java.io.IOException"/>
  7514. </method>
  7515. <doc>
  7516. <![CDATA[<p>
  7517. This class is a tool for migrating data from an older to a newer version
  7518. of an S3 filesystem.
  7519. </p>
  7520. <p>
  7521. All files in the filesystem are migrated by re-writing the block metadata
  7522. - no datafiles are touched.
  7523. </p>]]>
  7524. </doc>
  7525. </class>
  7526. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  7527. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  7528. <class name="S3Credentials" extends="java.lang.Object"
  7529. abstract="false"
  7530. static="false" final="false" visibility="public"
  7531. deprecated="not deprecated">
  7532. <constructor name="S3Credentials"
  7533. static="false" final="false" visibility="public"
  7534. deprecated="not deprecated">
  7535. </constructor>
  7536. <method name="initialize"
  7537. abstract="false" native="false" synchronized="false"
  7538. static="false" final="false" visibility="public"
  7539. deprecated="not deprecated">
  7540. <param name="uri" type="java.net.URI"/>
  7541. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7542. <doc>
  7543. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  7544. determined.]]>
  7545. </doc>
  7546. </method>
  7547. <method name="getAccessKey" return="java.lang.String"
  7548. abstract="false" native="false" synchronized="false"
  7549. static="false" final="false" visibility="public"
  7550. deprecated="not deprecated">
  7551. </method>
  7552. <method name="getSecretAccessKey" return="java.lang.String"
  7553. abstract="false" native="false" synchronized="false"
  7554. static="false" final="false" visibility="public"
  7555. deprecated="not deprecated">
  7556. </method>
  7557. <doc>
  7558. <![CDATA[<p>
  7559. Extracts AWS credentials from the filesystem URI or configuration.
  7560. </p>]]>
  7561. </doc>
  7562. </class>
  7563. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  7564. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  7565. <class name="S3Exception" extends="java.lang.RuntimeException"
  7566. abstract="false"
  7567. static="false" final="false" visibility="public"
  7568. deprecated="not deprecated">
  7569. <constructor name="S3Exception" type="java.lang.Throwable"
  7570. static="false" final="false" visibility="public"
  7571. deprecated="not deprecated">
  7572. </constructor>
  7573. <doc>
  7574. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  7575. </doc>
  7576. </class>
  7577. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  7578. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  7579. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7580. abstract="false"
  7581. static="false" final="false" visibility="public"
  7582. deprecated="not deprecated">
  7583. <constructor name="S3FileSystem"
  7584. static="false" final="false" visibility="public"
  7585. deprecated="not deprecated">
  7586. </constructor>
  7587. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  7588. static="false" final="false" visibility="public"
  7589. deprecated="not deprecated">
  7590. </constructor>
  7591. <method name="getUri" return="java.net.URI"
  7592. abstract="false" native="false" synchronized="false"
  7593. static="false" final="false" visibility="public"
  7594. deprecated="not deprecated">
  7595. </method>
  7596. <method name="initialize"
  7597. abstract="false" native="false" synchronized="false"
  7598. static="false" final="false" visibility="public"
  7599. deprecated="not deprecated">
  7600. <param name="uri" type="java.net.URI"/>
  7601. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7602. <exception name="IOException" type="java.io.IOException"/>
  7603. </method>
  7604. <method name="getName" return="java.lang.String"
  7605. abstract="false" native="false" synchronized="false"
  7606. static="false" final="false" visibility="public"
  7607. deprecated="not deprecated">
  7608. </method>
  7609. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7610. abstract="false" native="false" synchronized="false"
  7611. static="false" final="false" visibility="public"
  7612. deprecated="not deprecated">
  7613. </method>
  7614. <method name="setWorkingDirectory"
  7615. abstract="false" native="false" synchronized="false"
  7616. static="false" final="false" visibility="public"
  7617. deprecated="not deprecated">
  7618. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7619. </method>
  7620. <method name="mkdirs" return="boolean"
  7621. abstract="false" native="false" synchronized="false"
  7622. static="false" final="false" visibility="public"
  7623. deprecated="not deprecated">
  7624. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7625. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7626. <exception name="IOException" type="java.io.IOException"/>
  7627. <doc>
  7628. <![CDATA[@param permission Currently ignored.]]>
  7629. </doc>
  7630. </method>
  7631. <method name="isFile" return="boolean"
  7632. abstract="false" native="false" synchronized="false"
  7633. static="false" final="false" visibility="public"
  7634. deprecated="not deprecated">
  7635. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7636. <exception name="IOException" type="java.io.IOException"/>
  7637. </method>
  7638. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7639. abstract="false" native="false" synchronized="false"
  7640. static="false" final="false" visibility="public"
  7641. deprecated="not deprecated">
  7642. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7643. <exception name="IOException" type="java.io.IOException"/>
  7644. </method>
  7645. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7646. abstract="false" native="false" synchronized="false"
  7647. static="false" final="false" visibility="public"
  7648. deprecated="not deprecated">
  7649. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7650. <param name="bufferSize" type="int"/>
  7651. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7652. <exception name="IOException" type="java.io.IOException"/>
  7653. <doc>
  7654. <![CDATA[This optional operation is not yet supported.]]>
  7655. </doc>
  7656. </method>
  7657. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7658. abstract="false" native="false" synchronized="false"
  7659. static="false" final="false" visibility="public"
  7660. deprecated="not deprecated">
  7661. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7662. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7663. <param name="overwrite" type="boolean"/>
  7664. <param name="bufferSize" type="int"/>
  7665. <param name="replication" type="short"/>
  7666. <param name="blockSize" type="long"/>
  7667. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7668. <exception name="IOException" type="java.io.IOException"/>
  7669. <doc>
  7670. <![CDATA[@param permission Currently ignored.]]>
  7671. </doc>
  7672. </method>
  7673. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7674. abstract="false" native="false" synchronized="false"
  7675. static="false" final="false" visibility="public"
  7676. deprecated="not deprecated">
  7677. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7678. <param name="bufferSize" type="int"/>
  7679. <exception name="IOException" type="java.io.IOException"/>
  7680. </method>
  7681. <method name="rename" return="boolean"
  7682. abstract="false" native="false" synchronized="false"
  7683. static="false" final="false" visibility="public"
  7684. deprecated="not deprecated">
  7685. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7686. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7687. <exception name="IOException" type="java.io.IOException"/>
  7688. </method>
  7689. <method name="delete" return="boolean"
  7690. abstract="false" native="false" synchronized="false"
  7691. static="false" final="false" visibility="public"
  7692. deprecated="not deprecated">
  7693. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7694. <param name="recursive" type="boolean"/>
  7695. <exception name="IOException" type="java.io.IOException"/>
  7696. </method>
  7697. <method name="delete" return="boolean"
  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="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7705. abstract="false" native="false" synchronized="false"
  7706. static="false" final="false" visibility="public"
  7707. deprecated="not deprecated">
  7708. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7709. <exception name="IOException" type="java.io.IOException"/>
  7710. <doc>
  7711. <![CDATA[FileStatus for S3 file systems.]]>
  7712. </doc>
  7713. </method>
  7714. <doc>
  7715. <![CDATA[<p>
  7716. A block-based {@link FileSystem} backed by
  7717. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  7718. </p>
  7719. @see NativeS3FileSystem]]>
  7720. </doc>
  7721. </class>
  7722. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  7723. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  7724. <class name="S3FileSystemException" extends="java.io.IOException"
  7725. abstract="false"
  7726. static="false" final="false" visibility="public"
  7727. deprecated="not deprecated">
  7728. <constructor name="S3FileSystemException" type="java.lang.String"
  7729. static="false" final="false" visibility="public"
  7730. deprecated="not deprecated">
  7731. </constructor>
  7732. <doc>
  7733. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  7734. </doc>
  7735. </class>
  7736. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  7737. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  7738. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  7739. abstract="false"
  7740. static="false" final="false" visibility="public"
  7741. deprecated="not deprecated">
  7742. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  7743. static="false" final="false" visibility="public"
  7744. deprecated="not deprecated">
  7745. </constructor>
  7746. <doc>
  7747. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  7748. in {@link S3FileSystem}.]]>
  7749. </doc>
  7750. </class>
  7751. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  7752. </package>
  7753. <package name="org.apache.hadoop.fs.s3native">
  7754. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  7755. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7756. abstract="false"
  7757. static="false" final="false" visibility="public"
  7758. deprecated="not deprecated">
  7759. <constructor name="NativeS3FileSystem"
  7760. static="false" final="false" visibility="public"
  7761. deprecated="not deprecated">
  7762. </constructor>
  7763. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  7764. static="false" final="false" visibility="public"
  7765. deprecated="not deprecated">
  7766. </constructor>
  7767. <method name="initialize"
  7768. abstract="false" native="false" synchronized="false"
  7769. static="false" final="false" visibility="public"
  7770. deprecated="not deprecated">
  7771. <param name="uri" type="java.net.URI"/>
  7772. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7773. <exception name="IOException" type="java.io.IOException"/>
  7774. </method>
  7775. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7776. abstract="false" native="false" synchronized="false"
  7777. static="false" final="false" visibility="public"
  7778. deprecated="not deprecated">
  7779. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7780. <param name="bufferSize" type="int"/>
  7781. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7782. <exception name="IOException" type="java.io.IOException"/>
  7783. <doc>
  7784. <![CDATA[This optional operation is not yet supported.]]>
  7785. </doc>
  7786. </method>
  7787. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7788. abstract="false" native="false" synchronized="false"
  7789. static="false" final="false" visibility="public"
  7790. deprecated="not deprecated">
  7791. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7792. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7793. <param name="overwrite" type="boolean"/>
  7794. <param name="bufferSize" type="int"/>
  7795. <param name="replication" type="short"/>
  7796. <param name="blockSize" type="long"/>
  7797. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7798. <exception name="IOException" type="java.io.IOException"/>
  7799. </method>
  7800. <method name="delete" return="boolean"
  7801. abstract="false" native="false" synchronized="false"
  7802. static="false" final="false" visibility="public"
  7803. deprecated="not deprecated">
  7804. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7805. <exception name="IOException" type="java.io.IOException"/>
  7806. </method>
  7807. <method name="delete" return="boolean"
  7808. abstract="false" native="false" synchronized="false"
  7809. static="false" final="false" visibility="public"
  7810. deprecated="not deprecated">
  7811. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7812. <param name="recursive" type="boolean"/>
  7813. <exception name="IOException" type="java.io.IOException"/>
  7814. </method>
  7815. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7816. abstract="false" native="false" synchronized="false"
  7817. static="false" final="false" visibility="public"
  7818. deprecated="not deprecated">
  7819. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7820. <exception name="IOException" type="java.io.IOException"/>
  7821. </method>
  7822. <method name="getUri" return="java.net.URI"
  7823. abstract="false" native="false" synchronized="false"
  7824. static="false" final="false" visibility="public"
  7825. deprecated="not deprecated">
  7826. </method>
  7827. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7828. abstract="false" native="false" synchronized="false"
  7829. static="false" final="false" visibility="public"
  7830. deprecated="not deprecated">
  7831. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7832. <exception name="IOException" type="java.io.IOException"/>
  7833. <doc>
  7834. <![CDATA[<p>
  7835. If <code>f</code> is a file, this method will make a single call to S3.
  7836. If <code>f</code> is a directory, this method will make a maximum of
  7837. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  7838. files and directories contained directly in <code>f</code>.
  7839. </p>]]>
  7840. </doc>
  7841. </method>
  7842. <method name="mkdirs" return="boolean"
  7843. abstract="false" native="false" synchronized="false"
  7844. static="false" final="false" visibility="public"
  7845. deprecated="not deprecated">
  7846. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7847. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7848. <exception name="IOException" type="java.io.IOException"/>
  7849. </method>
  7850. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7851. abstract="false" native="false" synchronized="false"
  7852. static="false" final="false" visibility="public"
  7853. deprecated="not deprecated">
  7854. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7855. <param name="bufferSize" type="int"/>
  7856. <exception name="IOException" type="java.io.IOException"/>
  7857. </method>
  7858. <method name="rename" return="boolean"
  7859. abstract="false" native="false" synchronized="false"
  7860. static="false" final="false" visibility="public"
  7861. deprecated="not deprecated">
  7862. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7863. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7864. <exception name="IOException" type="java.io.IOException"/>
  7865. </method>
  7866. <method name="setWorkingDirectory"
  7867. abstract="false" native="false" synchronized="false"
  7868. static="false" final="false" visibility="public"
  7869. deprecated="not deprecated">
  7870. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  7871. <doc>
  7872. <![CDATA[Set the working directory to the given directory.]]>
  7873. </doc>
  7874. </method>
  7875. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7876. abstract="false" native="false" synchronized="false"
  7877. static="false" final="false" visibility="public"
  7878. deprecated="not deprecated">
  7879. </method>
  7880. <field name="LOG" type="org.apache.commons.logging.Log"
  7881. transient="false" volatile="false"
  7882. static="true" final="true" visibility="public"
  7883. deprecated="not deprecated">
  7884. </field>
  7885. <doc>
  7886. <![CDATA[<p>
  7887. A {@link FileSystem} for reading and writing files stored on
  7888. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  7889. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  7890. stores files on S3 in their
  7891. native form so they can be read by other S3 tools.
  7892. </p>
  7893. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  7894. </doc>
  7895. </class>
  7896. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  7897. </package>
  7898. <package name="org.apache.hadoop.fs.shell">
  7899. <!-- start class org.apache.hadoop.fs.shell.Command -->
  7900. <class name="Command" extends="org.apache.hadoop.conf.Configured"
  7901. abstract="true"
  7902. static="false" final="false" visibility="public"
  7903. deprecated="not deprecated">
  7904. <constructor name="Command" type="org.apache.hadoop.conf.Configuration"
  7905. static="false" final="false" visibility="protected"
  7906. deprecated="not deprecated">
  7907. <doc>
  7908. <![CDATA[Constructor]]>
  7909. </doc>
  7910. </constructor>
  7911. <method name="getCommandName" return="java.lang.String"
  7912. abstract="true" native="false" synchronized="false"
  7913. static="false" final="false" visibility="public"
  7914. deprecated="not deprecated">
  7915. <doc>
  7916. <![CDATA[Return the command's name excluding the leading character -]]>
  7917. </doc>
  7918. </method>
  7919. <method name="run"
  7920. abstract="true" native="false" synchronized="false"
  7921. static="false" final="false" visibility="protected"
  7922. deprecated="not deprecated">
  7923. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7924. <exception name="IOException" type="java.io.IOException"/>
  7925. <doc>
  7926. <![CDATA[Execute the command on the input path
  7927. @param path the input path
  7928. @throws IOException if any error occurs]]>
  7929. </doc>
  7930. </method>
  7931. <method name="runAll" return="int"
  7932. abstract="false" native="false" synchronized="false"
  7933. static="false" final="false" visibility="public"
  7934. deprecated="not deprecated">
  7935. <doc>
  7936. <![CDATA[For each source path, execute the command
  7937. @return 0 if it runs successfully; -1 if it fails]]>
  7938. </doc>
  7939. </method>
  7940. <field name="args" type="java.lang.String[]"
  7941. transient="false" volatile="false"
  7942. static="false" final="false" visibility="protected"
  7943. deprecated="not deprecated">
  7944. </field>
  7945. <doc>
  7946. <![CDATA[An abstract class for the execution of a file system command]]>
  7947. </doc>
  7948. </class>
  7949. <!-- end class org.apache.hadoop.fs.shell.Command -->
  7950. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  7951. <class name="CommandFormat" extends="java.lang.Object"
  7952. abstract="false"
  7953. static="false" final="false" visibility="public"
  7954. deprecated="not deprecated">
  7955. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  7956. static="false" final="false" visibility="public"
  7957. deprecated="not deprecated">
  7958. <doc>
  7959. <![CDATA[constructor]]>
  7960. </doc>
  7961. </constructor>
  7962. <method name="parse" return="java.util.List"
  7963. abstract="false" native="false" synchronized="false"
  7964. static="false" final="false" visibility="public"
  7965. deprecated="not deprecated">
  7966. <param name="args" type="java.lang.String[]"/>
  7967. <param name="pos" type="int"/>
  7968. <doc>
  7969. <![CDATA[Parse parameters starting from the given position
  7970. @param args an array of input arguments
  7971. @param pos the position at which starts to parse
  7972. @return a list of parameters]]>
  7973. </doc>
  7974. </method>
  7975. <method name="getOpt" return="boolean"
  7976. abstract="false" native="false" synchronized="false"
  7977. static="false" final="false" visibility="public"
  7978. deprecated="not deprecated">
  7979. <param name="option" type="java.lang.String"/>
  7980. <doc>
  7981. <![CDATA[Return if the option is set or not
  7982. @param option String representation of an option
  7983. @return true is the option is set; false otherwise]]>
  7984. </doc>
  7985. </method>
  7986. <doc>
  7987. <![CDATA[Parse the args of a command and check the format of args.]]>
  7988. </doc>
  7989. </class>
  7990. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  7991. <!-- start class org.apache.hadoop.fs.shell.Count -->
  7992. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  7993. abstract="false"
  7994. static="false" final="false" visibility="public"
  7995. deprecated="not deprecated">
  7996. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.conf.Configuration"
  7997. static="false" final="false" visibility="public"
  7998. deprecated="not deprecated">
  7999. <doc>
  8000. <![CDATA[Constructor
  8001. @param cmd the count command
  8002. @param pos the starting index of the arguments]]>
  8003. </doc>
  8004. </constructor>
  8005. <method name="matches" return="boolean"
  8006. abstract="false" native="false" synchronized="false"
  8007. static="true" final="false" visibility="public"
  8008. deprecated="not deprecated">
  8009. <param name="cmd" type="java.lang.String"/>
  8010. <doc>
  8011. <![CDATA[Check if a command is the count command
  8012. @param cmd A string representation of a command starting with "-"
  8013. @return true if this is a count command; false otherwise]]>
  8014. </doc>
  8015. </method>
  8016. <method name="getCommandName" return="java.lang.String"
  8017. abstract="false" native="false" synchronized="false"
  8018. static="false" final="false" visibility="public"
  8019. deprecated="not deprecated">
  8020. </method>
  8021. <method name="run"
  8022. abstract="false" native="false" synchronized="false"
  8023. static="false" final="false" visibility="protected"
  8024. deprecated="not deprecated">
  8025. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8026. <exception name="IOException" type="java.io.IOException"/>
  8027. </method>
  8028. <field name="NAME" type="java.lang.String"
  8029. transient="false" volatile="false"
  8030. static="true" final="true" visibility="public"
  8031. deprecated="not deprecated">
  8032. </field>
  8033. <field name="USAGE" type="java.lang.String"
  8034. transient="false" volatile="false"
  8035. static="true" final="true" visibility="public"
  8036. deprecated="not deprecated">
  8037. </field>
  8038. <field name="DESCRIPTION" type="java.lang.String"
  8039. transient="false" volatile="false"
  8040. static="true" final="true" visibility="public"
  8041. deprecated="not deprecated">
  8042. </field>
  8043. <doc>
  8044. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  8045. </doc>
  8046. </class>
  8047. <!-- end class org.apache.hadoop.fs.shell.Count -->
  8048. </package>
  8049. <package name="org.apache.hadoop.http">
  8050. <!-- start interface org.apache.hadoop.http.FilterContainer -->
  8051. <interface name="FilterContainer" abstract="true"
  8052. static="false" final="false" visibility="public"
  8053. deprecated="not deprecated">
  8054. <method name="addFilter"
  8055. abstract="false" native="false" synchronized="false"
  8056. static="false" final="false" visibility="public"
  8057. deprecated="not deprecated">
  8058. <param name="name" type="java.lang.String"/>
  8059. <param name="classname" type="java.lang.String"/>
  8060. <param name="parameters" type="java.util.Map"/>
  8061. <doc>
  8062. <![CDATA[Add a filter to the container.
  8063. @param name Filter name
  8064. @param classname Filter class name
  8065. @param parameters a map from parameter names to initial values]]>
  8066. </doc>
  8067. </method>
  8068. <method name="addGlobalFilter"
  8069. abstract="false" native="false" synchronized="false"
  8070. static="false" final="false" visibility="public"
  8071. deprecated="not deprecated">
  8072. <param name="name" type="java.lang.String"/>
  8073. <param name="classname" type="java.lang.String"/>
  8074. <param name="parameters" type="java.util.Map"/>
  8075. <doc>
  8076. <![CDATA[Add a global filter to the container.
  8077. @param name filter name
  8078. @param classname filter class name
  8079. @param parameters a map from parameter names to initial values]]>
  8080. </doc>
  8081. </method>
  8082. <doc>
  8083. <![CDATA[A container class for javax.servlet.Filter.]]>
  8084. </doc>
  8085. </interface>
  8086. <!-- end interface org.apache.hadoop.http.FilterContainer -->
  8087. <!-- start class org.apache.hadoop.http.FilterInitializer -->
  8088. <class name="FilterInitializer" extends="java.lang.Object"
  8089. abstract="true"
  8090. static="false" final="false" visibility="public"
  8091. deprecated="not deprecated">
  8092. <constructor name="FilterInitializer"
  8093. static="false" final="false" visibility="public"
  8094. deprecated="not deprecated">
  8095. </constructor>
  8096. <doc>
  8097. <![CDATA[Initialize a javax.servlet.Filter.]]>
  8098. </doc>
  8099. </class>
  8100. <!-- end class org.apache.hadoop.http.FilterInitializer -->
  8101. <!-- start class org.apache.hadoop.http.HttpServer -->
  8102. <class name="HttpServer" extends="java.lang.Object"
  8103. abstract="false"
  8104. static="false" final="false" visibility="public"
  8105. deprecated="not deprecated">
  8106. <implements name="org.apache.hadoop.http.FilterContainer"/>
  8107. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean"
  8108. static="false" final="false" visibility="public"
  8109. deprecated="not deprecated">
  8110. <exception name="IOException" type="java.io.IOException"/>
  8111. <doc>
  8112. <![CDATA[Same as this(name, bindAddress, port, findPort, null);]]>
  8113. </doc>
  8114. </constructor>
  8115. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration"
  8116. static="false" final="false" visibility="public"
  8117. deprecated="not deprecated">
  8118. <exception name="IOException" type="java.io.IOException"/>
  8119. <doc>
  8120. <![CDATA[Create a status server on the given port.
  8121. The jsp scripts are taken from src/webapps/<name>.
  8122. @param name The name of the server
  8123. @param port The port to use on the server
  8124. @param findPort whether the server should start at the given port and
  8125. increment by 1 until it finds a free port.
  8126. @param conf Configuration]]>
  8127. </doc>
  8128. </constructor>
  8129. <method name="createBaseListener" return="org.mortbay.jetty.Connector"
  8130. abstract="false" native="false" synchronized="false"
  8131. static="false" final="false" visibility="protected"
  8132. deprecated="not deprecated">
  8133. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8134. <exception name="IOException" type="java.io.IOException"/>
  8135. <doc>
  8136. <![CDATA[Create a required listener for the Jetty instance listening on the port
  8137. provided. This wrapper and all subclasses must create at least one
  8138. listener.]]>
  8139. </doc>
  8140. </method>
  8141. <method name="addDefaultApps"
  8142. abstract="false" native="false" synchronized="false"
  8143. static="false" final="false" visibility="protected"
  8144. deprecated="not deprecated">
  8145. <param name="parent" type="org.mortbay.jetty.handler.ContextHandlerCollection"/>
  8146. <param name="appDir" type="java.lang.String"/>
  8147. <exception name="IOException" type="java.io.IOException"/>
  8148. <doc>
  8149. <![CDATA[Add default apps.
  8150. @param appDir The application directory
  8151. @throws IOException]]>
  8152. </doc>
  8153. </method>
  8154. <method name="addDefaultServlets"
  8155. abstract="false" native="false" synchronized="false"
  8156. static="false" final="false" visibility="protected"
  8157. deprecated="not deprecated">
  8158. <doc>
  8159. <![CDATA[Add default servlets.]]>
  8160. </doc>
  8161. </method>
  8162. <method name="addContext"
  8163. abstract="false" native="false" synchronized="false"
  8164. static="false" final="false" visibility="public"
  8165. deprecated="not deprecated">
  8166. <param name="ctxt" type="org.mortbay.jetty.servlet.Context"/>
  8167. <param name="isFiltered" type="boolean"/>
  8168. <exception name="IOException" type="java.io.IOException"/>
  8169. </method>
  8170. <method name="addContext"
  8171. abstract="false" native="false" synchronized="false"
  8172. static="false" final="false" visibility="protected"
  8173. deprecated="not deprecated">
  8174. <param name="pathSpec" type="java.lang.String"/>
  8175. <param name="dir" type="java.lang.String"/>
  8176. <param name="isFiltered" type="boolean"/>
  8177. <exception name="IOException" type="java.io.IOException"/>
  8178. <doc>
  8179. <![CDATA[Add a context
  8180. @param pathSpec The path spec for the context
  8181. @param dir The directory containing the context
  8182. @param isFiltered if true, the servlet is added to the filter path mapping
  8183. @throws IOException]]>
  8184. </doc>
  8185. </method>
  8186. <method name="setAttribute"
  8187. abstract="false" native="false" synchronized="false"
  8188. static="false" final="false" visibility="public"
  8189. deprecated="not deprecated">
  8190. <param name="name" type="java.lang.String"/>
  8191. <param name="value" type="java.lang.Object"/>
  8192. <doc>
  8193. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8194. pages as "application.getAttribute(name)".
  8195. @param name The name of the attribute
  8196. @param value The value of the attribute]]>
  8197. </doc>
  8198. </method>
  8199. <method name="addServlet"
  8200. abstract="false" native="false" synchronized="false"
  8201. static="false" final="false" visibility="public"
  8202. deprecated="not deprecated">
  8203. <param name="name" type="java.lang.String"/>
  8204. <param name="pathSpec" type="java.lang.String"/>
  8205. <param name="clazz" type="java.lang.Class"/>
  8206. <doc>
  8207. <![CDATA[Add a servlet in the server.
  8208. @param name The name of the servlet (can be passed as null)
  8209. @param pathSpec The path spec for the servlet
  8210. @param clazz The servlet class]]>
  8211. </doc>
  8212. </method>
  8213. <method name="addInternalServlet"
  8214. abstract="false" native="false" synchronized="false"
  8215. static="false" final="false" visibility="public"
  8216. deprecated="this is a temporary method">
  8217. <param name="name" type="java.lang.String"/>
  8218. <param name="pathSpec" type="java.lang.String"/>
  8219. <param name="clazz" type="java.lang.Class"/>
  8220. <doc>
  8221. <![CDATA[Add an internal servlet in the server.
  8222. @param name The name of the servlet (can be passed as null)
  8223. @param pathSpec The path spec for the servlet
  8224. @param clazz The servlet class
  8225. @deprecated this is a temporary method]]>
  8226. </doc>
  8227. </method>
  8228. <method name="addFilter"
  8229. abstract="false" native="false" synchronized="false"
  8230. static="false" final="false" visibility="public"
  8231. deprecated="not deprecated">
  8232. <param name="name" type="java.lang.String"/>
  8233. <param name="classname" type="java.lang.String"/>
  8234. <param name="parameters" type="java.util.Map"/>
  8235. <doc>
  8236. <![CDATA[{@inheritDoc}]]>
  8237. </doc>
  8238. </method>
  8239. <method name="addGlobalFilter"
  8240. abstract="false" native="false" synchronized="false"
  8241. static="false" final="false" visibility="public"
  8242. deprecated="not deprecated">
  8243. <param name="name" type="java.lang.String"/>
  8244. <param name="classname" type="java.lang.String"/>
  8245. <param name="parameters" type="java.util.Map"/>
  8246. <doc>
  8247. <![CDATA[{@inheritDoc}]]>
  8248. </doc>
  8249. </method>
  8250. <method name="defineFilter"
  8251. abstract="false" native="false" synchronized="false"
  8252. static="false" final="false" visibility="protected"
  8253. deprecated="not deprecated">
  8254. <param name="ctx" type="org.mortbay.jetty.servlet.Context"/>
  8255. <param name="name" type="java.lang.String"/>
  8256. <param name="classname" type="java.lang.String"/>
  8257. <param name="parameters" type="java.util.Map"/>
  8258. <param name="urls" type="java.lang.String[]"/>
  8259. <doc>
  8260. <![CDATA[Define a filter for a context and set up default url mappings.]]>
  8261. </doc>
  8262. </method>
  8263. <method name="addFilterPathMapping"
  8264. abstract="false" native="false" synchronized="false"
  8265. static="false" final="false" visibility="protected"
  8266. deprecated="not deprecated">
  8267. <param name="pathSpec" type="java.lang.String"/>
  8268. <param name="webAppCtx" type="org.mortbay.jetty.servlet.Context"/>
  8269. <doc>
  8270. <![CDATA[Add the path spec to the filter path mapping.
  8271. @param pathSpec The path spec
  8272. @param webAppCtx The WebApplicationContext to add to]]>
  8273. </doc>
  8274. </method>
  8275. <method name="getAttribute" return="java.lang.Object"
  8276. abstract="false" native="false" synchronized="false"
  8277. static="false" final="false" visibility="public"
  8278. deprecated="not deprecated">
  8279. <param name="name" type="java.lang.String"/>
  8280. <doc>
  8281. <![CDATA[Get the value in the webapp context.
  8282. @param name The name of the attribute
  8283. @return The value of the attribute]]>
  8284. </doc>
  8285. </method>
  8286. <method name="getWebAppsPath" return="java.lang.String"
  8287. abstract="false" native="false" synchronized="false"
  8288. static="false" final="false" visibility="protected"
  8289. deprecated="not deprecated">
  8290. <exception name="IOException" type="java.io.IOException"/>
  8291. <doc>
  8292. <![CDATA[Get the pathname to the webapps files.
  8293. @return the pathname as a URL
  8294. @throws IOException if 'webapps' directory cannot be found on CLASSPATH.]]>
  8295. </doc>
  8296. </method>
  8297. <method name="getPort" return="int"
  8298. abstract="false" native="false" synchronized="false"
  8299. static="false" final="false" visibility="public"
  8300. deprecated="not deprecated">
  8301. <doc>
  8302. <![CDATA[Get the port that the server is on
  8303. @return the port]]>
  8304. </doc>
  8305. </method>
  8306. <method name="setThreads"
  8307. abstract="false" native="false" synchronized="false"
  8308. static="false" final="false" visibility="public"
  8309. deprecated="not deprecated">
  8310. <param name="min" type="int"/>
  8311. <param name="max" type="int"/>
  8312. <doc>
  8313. <![CDATA[Set the min, max number of worker threads (simultaneous connections).]]>
  8314. </doc>
  8315. </method>
  8316. <method name="addSslListener"
  8317. abstract="false" native="false" synchronized="false"
  8318. static="false" final="false" visibility="public"
  8319. deprecated="Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}">
  8320. <param name="addr" type="java.net.InetSocketAddress"/>
  8321. <param name="keystore" type="java.lang.String"/>
  8322. <param name="storPass" type="java.lang.String"/>
  8323. <param name="keyPass" type="java.lang.String"/>
  8324. <exception name="IOException" type="java.io.IOException"/>
  8325. <doc>
  8326. <![CDATA[Configure an ssl listener on the server.
  8327. @param addr address to listen on
  8328. @param keystore location of the keystore
  8329. @param storPass password for the keystore
  8330. @param keyPass password for the key
  8331. @deprecated Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}]]>
  8332. </doc>
  8333. </method>
  8334. <method name="addSslListener"
  8335. abstract="false" native="false" synchronized="false"
  8336. static="false" final="false" visibility="public"
  8337. deprecated="not deprecated">
  8338. <param name="addr" type="java.net.InetSocketAddress"/>
  8339. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  8340. <param name="needClientAuth" type="boolean"/>
  8341. <exception name="IOException" type="java.io.IOException"/>
  8342. <doc>
  8343. <![CDATA[Configure an ssl listener on the server.
  8344. @param addr address to listen on
  8345. @param sslConf conf to retrieve ssl options
  8346. @param needClientAuth whether client authentication is required]]>
  8347. </doc>
  8348. </method>
  8349. <method name="start"
  8350. abstract="false" native="false" synchronized="false"
  8351. static="false" final="false" visibility="public"
  8352. deprecated="not deprecated">
  8353. <exception name="IOException" type="java.io.IOException"/>
  8354. <doc>
  8355. <![CDATA[Start the server. Does not wait for the server to start.]]>
  8356. </doc>
  8357. </method>
  8358. <method name="stop"
  8359. abstract="false" native="false" synchronized="false"
  8360. static="false" final="false" visibility="public"
  8361. deprecated="not deprecated">
  8362. <exception name="Exception" type="java.lang.Exception"/>
  8363. <doc>
  8364. <![CDATA[stop the server]]>
  8365. </doc>
  8366. </method>
  8367. <method name="join"
  8368. abstract="false" native="false" synchronized="false"
  8369. static="false" final="false" visibility="public"
  8370. deprecated="not deprecated">
  8371. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8372. </method>
  8373. <field name="LOG" type="org.apache.commons.logging.Log"
  8374. transient="false" volatile="false"
  8375. static="true" final="true" visibility="public"
  8376. deprecated="not deprecated">
  8377. </field>
  8378. <field name="webServer" type="org.mortbay.jetty.Server"
  8379. transient="false" volatile="false"
  8380. static="false" final="true" visibility="protected"
  8381. deprecated="not deprecated">
  8382. </field>
  8383. <field name="listener" type="org.mortbay.jetty.Connector"
  8384. transient="false" volatile="false"
  8385. static="false" final="true" visibility="protected"
  8386. deprecated="not deprecated">
  8387. </field>
  8388. <field name="webAppContext" type="org.mortbay.jetty.webapp.WebAppContext"
  8389. transient="false" volatile="false"
  8390. static="false" final="true" visibility="protected"
  8391. deprecated="not deprecated">
  8392. </field>
  8393. <field name="findPort" type="boolean"
  8394. transient="false" volatile="false"
  8395. static="false" final="true" visibility="protected"
  8396. deprecated="not deprecated">
  8397. </field>
  8398. <field name="defaultContexts" type="java.util.Map"
  8399. transient="false" volatile="false"
  8400. static="false" final="true" visibility="protected"
  8401. deprecated="not deprecated">
  8402. </field>
  8403. <field name="filterNames" type="java.util.List"
  8404. transient="false" volatile="false"
  8405. static="false" final="true" visibility="protected"
  8406. deprecated="not deprecated">
  8407. </field>
  8408. <doc>
  8409. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  8410. is to serve up status information for the server.
  8411. There are three contexts:
  8412. "/logs/" -> points to the log directory
  8413. "/static/" -> points to common static files (src/webapps/static)
  8414. "/" -> the jsp server code from (src/webapps/<name>)]]>
  8415. </doc>
  8416. </class>
  8417. <!-- end class org.apache.hadoop.http.HttpServer -->
  8418. <!-- start class org.apache.hadoop.http.HttpServer.StackServlet -->
  8419. <class name="HttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  8420. abstract="false"
  8421. static="true" final="false" visibility="public"
  8422. deprecated="not deprecated">
  8423. <constructor name="HttpServer.StackServlet"
  8424. static="false" final="false" visibility="public"
  8425. deprecated="not deprecated">
  8426. </constructor>
  8427. <method name="doGet"
  8428. abstract="false" native="false" synchronized="false"
  8429. static="false" final="false" visibility="public"
  8430. deprecated="not deprecated">
  8431. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8432. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8433. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8434. <exception name="IOException" type="java.io.IOException"/>
  8435. </method>
  8436. <doc>
  8437. <![CDATA[A very simple servlet to serve up a text representation of the current
  8438. stack traces. It both returns the stacks to the caller and logs them.
  8439. Currently the stack traces are done sequentially rather than exactly the
  8440. same data.]]>
  8441. </doc>
  8442. </class>
  8443. <!-- end class org.apache.hadoop.http.HttpServer.StackServlet -->
  8444. </package>
  8445. <package name="org.apache.hadoop.io">
  8446. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  8447. <class name="AbstractMapWritable" extends="java.lang.Object"
  8448. abstract="true"
  8449. static="false" final="false" visibility="public"
  8450. deprecated="not deprecated">
  8451. <implements name="org.apache.hadoop.io.Writable"/>
  8452. <implements name="org.apache.hadoop.conf.Configurable"/>
  8453. <constructor name="AbstractMapWritable"
  8454. static="false" final="false" visibility="protected"
  8455. deprecated="not deprecated">
  8456. <doc>
  8457. <![CDATA[constructor.]]>
  8458. </doc>
  8459. </constructor>
  8460. <method name="addToMap"
  8461. abstract="false" native="false" synchronized="true"
  8462. static="false" final="false" visibility="protected"
  8463. deprecated="not deprecated">
  8464. <param name="clazz" type="java.lang.Class"/>
  8465. <doc>
  8466. <![CDATA[Add a Class to the maps if it is not already present.]]>
  8467. </doc>
  8468. </method>
  8469. <method name="getClass" return="java.lang.Class"
  8470. abstract="false" native="false" synchronized="false"
  8471. static="false" final="false" visibility="protected"
  8472. deprecated="not deprecated">
  8473. <param name="id" type="byte"/>
  8474. <doc>
  8475. <![CDATA[@return the Class class for the specified id]]>
  8476. </doc>
  8477. </method>
  8478. <method name="getId" return="byte"
  8479. abstract="false" native="false" synchronized="false"
  8480. static="false" final="false" visibility="protected"
  8481. deprecated="not deprecated">
  8482. <param name="clazz" type="java.lang.Class"/>
  8483. <doc>
  8484. <![CDATA[@return the id for the specified Class]]>
  8485. </doc>
  8486. </method>
  8487. <method name="copy"
  8488. abstract="false" native="false" synchronized="true"
  8489. static="false" final="false" visibility="protected"
  8490. deprecated="not deprecated">
  8491. <param name="other" type="org.apache.hadoop.io.Writable"/>
  8492. <doc>
  8493. <![CDATA[Used by child copy constructors.]]>
  8494. </doc>
  8495. </method>
  8496. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  8497. abstract="false" native="false" synchronized="false"
  8498. static="false" final="false" visibility="public"
  8499. deprecated="not deprecated">
  8500. <doc>
  8501. <![CDATA[@return the conf]]>
  8502. </doc>
  8503. </method>
  8504. <method name="setConf"
  8505. abstract="false" native="false" synchronized="false"
  8506. static="false" final="false" visibility="public"
  8507. deprecated="not deprecated">
  8508. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8509. <doc>
  8510. <![CDATA[@param conf the conf to set]]>
  8511. </doc>
  8512. </method>
  8513. <method name="write"
  8514. abstract="false" native="false" synchronized="false"
  8515. static="false" final="false" visibility="public"
  8516. deprecated="not deprecated">
  8517. <param name="out" type="java.io.DataOutput"/>
  8518. <exception name="IOException" type="java.io.IOException"/>
  8519. <doc>
  8520. <![CDATA[{@inheritDoc}]]>
  8521. </doc>
  8522. </method>
  8523. <method name="readFields"
  8524. abstract="false" native="false" synchronized="false"
  8525. static="false" final="false" visibility="public"
  8526. deprecated="not deprecated">
  8527. <param name="in" type="java.io.DataInput"/>
  8528. <exception name="IOException" type="java.io.IOException"/>
  8529. <doc>
  8530. <![CDATA[{@inheritDoc}]]>
  8531. </doc>
  8532. </method>
  8533. <doc>
  8534. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  8535. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  8536. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  8537. maps travel with the class instead of being static.
  8538. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  8539. in any specific map instance.]]>
  8540. </doc>
  8541. </class>
  8542. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  8543. <!-- start class org.apache.hadoop.io.ArrayFile -->
  8544. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  8545. abstract="false"
  8546. static="false" final="false" visibility="public"
  8547. deprecated="not deprecated">
  8548. <constructor name="ArrayFile"
  8549. static="false" final="false" visibility="protected"
  8550. deprecated="not deprecated">
  8551. </constructor>
  8552. <doc>
  8553. <![CDATA[A dense file-based mapping from integers to values.]]>
  8554. </doc>
  8555. </class>
  8556. <!-- end class org.apache.hadoop.io.ArrayFile -->
  8557. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  8558. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  8559. abstract="false"
  8560. static="true" final="false" visibility="public"
  8561. deprecated="not deprecated">
  8562. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  8563. static="false" final="false" visibility="public"
  8564. deprecated="not deprecated">
  8565. <exception name="IOException" type="java.io.IOException"/>
  8566. <doc>
  8567. <![CDATA[Construct an array reader for the named file.]]>
  8568. </doc>
  8569. </constructor>
  8570. <method name="seek"
  8571. abstract="false" native="false" synchronized="true"
  8572. static="false" final="false" visibility="public"
  8573. deprecated="not deprecated">
  8574. <param name="n" type="long"/>
  8575. <exception name="IOException" type="java.io.IOException"/>
  8576. <doc>
  8577. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  8578. </doc>
  8579. </method>
  8580. <method name="next" return="org.apache.hadoop.io.Writable"
  8581. abstract="false" native="false" synchronized="true"
  8582. static="false" final="false" visibility="public"
  8583. deprecated="not deprecated">
  8584. <param name="value" type="org.apache.hadoop.io.Writable"/>
  8585. <exception name="IOException" type="java.io.IOException"/>
  8586. <doc>
  8587. <![CDATA[Read and return the next value in the file.]]>
  8588. </doc>
  8589. </method>
  8590. <method name="key" return="long"
  8591. abstract="false" native="false" synchronized="true"
  8592. static="false" final="false" visibility="public"
  8593. deprecated="not deprecated">
  8594. <exception name="IOException" type="java.io.IOException"/>
  8595. <doc>
  8596. <![CDATA[Returns the key associated with the most recent call to {@link
  8597. #seek(long)}, {@link #next(Writable)}, or {@link
  8598. #get(long,Writable)}.]]>
  8599. </doc>
  8600. </method>
  8601. <method name="get" return="org.apache.hadoop.io.Writable"
  8602. abstract="false" native="false" synchronized="true"
  8603. static="false" final="false" visibility="public"
  8604. deprecated="not deprecated">
  8605. <param name="n" type="long"/>
  8606. <param name="value" type="org.apache.hadoop.io.Writable"/>
  8607. <exception name="IOException" type="java.io.IOException"/>
  8608. <doc>
  8609. <![CDATA[Return the <code>n</code>th value in the file.]]>
  8610. </doc>
  8611. </method>
  8612. <doc>
  8613. <![CDATA[Provide access to an existing array file.]]>
  8614. </doc>
  8615. </class>
  8616. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  8617. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  8618. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  8619. abstract="false"
  8620. static="true" final="false" visibility="public"
  8621. deprecated="not deprecated">
  8622. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  8623. static="false" final="false" visibility="public"
  8624. deprecated="not deprecated">
  8625. <exception name="IOException" type="java.io.IOException"/>
  8626. <doc>
  8627. <![CDATA[Create the named file for values of the named class.]]>
  8628. </doc>
  8629. </constructor>
  8630. <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"
  8631. static="false" final="false" visibility="public"
  8632. deprecated="not deprecated">
  8633. <exception name="IOException" type="java.io.IOException"/>
  8634. <doc>
  8635. <![CDATA[Create the named file for values of the named class.]]>
  8636. </doc>
  8637. </constructor>
  8638. <method name="append"
  8639. abstract="false" native="false" synchronized="true"
  8640. static="false" final="false" visibility="public"
  8641. deprecated="not deprecated">
  8642. <param name="value" type="org.apache.hadoop.io.Writable"/>
  8643. <exception name="IOException" type="java.io.IOException"/>
  8644. <doc>
  8645. <![CDATA[Append a value to the file.]]>
  8646. </doc>
  8647. </method>
  8648. <doc>
  8649. <![CDATA[Write a new array file.]]>
  8650. </doc>
  8651. </class>
  8652. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  8653. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  8654. <class name="ArrayWritable" extends="java.lang.Object"
  8655. abstract="false"
  8656. static="false" final="false" visibility="public"
  8657. deprecated="not deprecated">
  8658. <implements name="org.apache.hadoop.io.Writable"/>
  8659. <constructor name="ArrayWritable" type="java.lang.Class"
  8660. static="false" final="false" visibility="public"
  8661. deprecated="not deprecated">
  8662. </constructor>
  8663. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  8664. static="false" final="false" visibility="public"
  8665. deprecated="not deprecated">
  8666. </constructor>
  8667. <constructor name="ArrayWritable" type="java.lang.String[]"
  8668. static="false" final="false" visibility="public"
  8669. deprecated="not deprecated">
  8670. </constructor>
  8671. <method name="getValueClass" return="java.lang.Class"
  8672. abstract="false" native="false" synchronized="false"
  8673. static="false" final="false" visibility="public"
  8674. deprecated="not deprecated">
  8675. </method>
  8676. <method name="toStrings" return="java.lang.String[]"
  8677. abstract="false" native="false" synchronized="false"
  8678. static="false" final="false" visibility="public"
  8679. deprecated="not deprecated">
  8680. </method>
  8681. <method name="toArray" return="java.lang.Object"
  8682. abstract="false" native="false" synchronized="false"
  8683. static="false" final="false" visibility="public"
  8684. deprecated="not deprecated">
  8685. </method>
  8686. <method name="set"
  8687. abstract="false" native="false" synchronized="false"
  8688. static="false" final="false" visibility="public"
  8689. deprecated="not deprecated">
  8690. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  8691. </method>
  8692. <method name="get" return="org.apache.hadoop.io.Writable[]"
  8693. abstract="false" native="false" synchronized="false"
  8694. static="false" final="false" visibility="public"
  8695. deprecated="not deprecated">
  8696. </method>
  8697. <method name="readFields"
  8698. abstract="false" native="false" synchronized="false"
  8699. static="false" final="false" visibility="public"
  8700. deprecated="not deprecated">
  8701. <param name="in" type="java.io.DataInput"/>
  8702. <exception name="IOException" type="java.io.IOException"/>
  8703. </method>
  8704. <method name="write"
  8705. abstract="false" native="false" synchronized="false"
  8706. static="false" final="false" visibility="public"
  8707. deprecated="not deprecated">
  8708. <param name="out" type="java.io.DataOutput"/>
  8709. <exception name="IOException" type="java.io.IOException"/>
  8710. </method>
  8711. <doc>
  8712. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  8713. writable must all be instances of the same class. If this writable will be
  8714. the input for a Reducer, you will need to create a subclass that sets the
  8715. value to be of the proper type.
  8716. For example:
  8717. <code>
  8718. public class IntArrayWritable extends ArrayWritable {
  8719. public IntArrayWritable() {
  8720. super(IntWritable.class);
  8721. }
  8722. }
  8723. </code>]]>
  8724. </doc>
  8725. </class>
  8726. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  8727. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  8728. <class name="BinaryComparable" extends="java.lang.Object"
  8729. abstract="true"
  8730. static="false" final="false" visibility="public"
  8731. deprecated="not deprecated">
  8732. <implements name="java.lang.Comparable"/>
  8733. <constructor name="BinaryComparable"
  8734. static="false" final="false" visibility="public"
  8735. deprecated="not deprecated">
  8736. </constructor>
  8737. <method name="getLength" return="int"
  8738. abstract="true" native="false" synchronized="false"
  8739. static="false" final="false" visibility="public"
  8740. deprecated="not deprecated">
  8741. <doc>
  8742. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  8743. </doc>
  8744. </method>
  8745. <method name="getBytes" return="byte[]"
  8746. abstract="true" native="false" synchronized="false"
  8747. static="false" final="false" visibility="public"
  8748. deprecated="not deprecated">
  8749. <doc>
  8750. <![CDATA[Return representative byte array for this instance.]]>
  8751. </doc>
  8752. </method>
  8753. <method name="compareTo" return="int"
  8754. abstract="false" native="false" synchronized="false"
  8755. static="false" final="false" visibility="public"
  8756. deprecated="not deprecated">
  8757. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  8758. <doc>
  8759. <![CDATA[Compare bytes from {#getBytes()}.
  8760. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  8761. </doc>
  8762. </method>
  8763. <method name="compareTo" return="int"
  8764. abstract="false" native="false" synchronized="false"
  8765. static="false" final="false" visibility="public"
  8766. deprecated="not deprecated">
  8767. <param name="other" type="byte[]"/>
  8768. <param name="off" type="int"/>
  8769. <param name="len" type="int"/>
  8770. <doc>
  8771. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  8772. </doc>
  8773. </method>
  8774. <method name="equals" return="boolean"
  8775. abstract="false" native="false" synchronized="false"
  8776. static="false" final="false" visibility="public"
  8777. deprecated="not deprecated">
  8778. <param name="other" type="java.lang.Object"/>
  8779. <doc>
  8780. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  8781. </doc>
  8782. </method>
  8783. <method name="hashCode" return="int"
  8784. abstract="false" native="false" synchronized="false"
  8785. static="false" final="false" visibility="public"
  8786. deprecated="not deprecated">
  8787. <doc>
  8788. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  8789. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  8790. </doc>
  8791. </method>
  8792. <doc>
  8793. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  8794. types supporting ordering/permutation by a representative set of bytes.]]>
  8795. </doc>
  8796. </class>
  8797. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  8798. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  8799. <class name="BloomMapFile" extends="java.lang.Object"
  8800. abstract="false"
  8801. static="false" final="false" visibility="public"
  8802. deprecated="not deprecated">
  8803. <constructor name="BloomMapFile"
  8804. static="false" final="false" visibility="public"
  8805. deprecated="not deprecated">
  8806. </constructor>
  8807. <method name="delete"
  8808. abstract="false" native="false" synchronized="false"
  8809. static="true" final="false" visibility="public"
  8810. deprecated="not deprecated">
  8811. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8812. <param name="name" type="java.lang.String"/>
  8813. <exception name="IOException" type="java.io.IOException"/>
  8814. </method>
  8815. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  8816. transient="false" volatile="false"
  8817. static="true" final="true" visibility="public"
  8818. deprecated="not deprecated">
  8819. </field>
  8820. <field name="HASH_COUNT" type="int"
  8821. transient="false" volatile="false"
  8822. static="true" final="true" visibility="public"
  8823. deprecated="not deprecated">
  8824. </field>
  8825. <doc>
  8826. <![CDATA[This class extends {@link MapFile} and provides very much the same
  8827. functionality. However, it uses dynamic Bloom filters to provide
  8828. quick membership test for keys, and it offers a fast version of
  8829. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  8830. case of sparsely populated MapFile-s.]]>
  8831. </doc>
  8832. </class>
  8833. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  8834. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  8835. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  8836. abstract="false"
  8837. static="true" final="false" visibility="public"
  8838. deprecated="not deprecated">
  8839. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  8840. static="false" final="false" visibility="public"
  8841. deprecated="not deprecated">
  8842. <exception name="IOException" type="java.io.IOException"/>
  8843. </constructor>
  8844. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  8845. static="false" final="false" visibility="public"
  8846. deprecated="not deprecated">
  8847. <exception name="IOException" type="java.io.IOException"/>
  8848. </constructor>
  8849. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  8850. static="false" final="false" visibility="public"
  8851. deprecated="not deprecated">
  8852. <exception name="IOException" type="java.io.IOException"/>
  8853. </constructor>
  8854. <method name="probablyHasKey" return="boolean"
  8855. abstract="false" native="false" synchronized="false"
  8856. static="false" final="false" visibility="public"
  8857. deprecated="not deprecated">
  8858. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  8859. <exception name="IOException" type="java.io.IOException"/>
  8860. <doc>
  8861. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  8862. performed using a Bloom filter, so the result has always non-zero
  8863. probability of false positives.
  8864. @param key key to check
  8865. @return false iff key doesn't exist, true if key probably exists.
  8866. @throws IOException]]>
  8867. </doc>
  8868. </method>
  8869. <method name="get" return="org.apache.hadoop.io.Writable"
  8870. abstract="false" native="false" synchronized="true"
  8871. static="false" final="false" visibility="public"
  8872. deprecated="not deprecated">
  8873. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  8874. <param name="val" type="org.apache.hadoop.io.Writable"/>
  8875. <exception name="IOException" type="java.io.IOException"/>
  8876. <doc>
  8877. <![CDATA[Fast version of the
  8878. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  8879. it checks the Bloom filter for the existence of the key, and only if
  8880. present it performs the real get operation. This yields significant
  8881. performance improvements for get operations on sparsely populated files.]]>
  8882. </doc>
  8883. </method>
  8884. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  8885. abstract="false" native="false" synchronized="false"
  8886. static="false" final="false" visibility="public"
  8887. deprecated="not deprecated">
  8888. <doc>
  8889. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  8890. @return a Bloom filter (see {@link Filter})]]>
  8891. </doc>
  8892. </method>
  8893. </class>
  8894. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  8895. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  8896. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  8897. abstract="false"
  8898. static="true" final="false" visibility="public"
  8899. deprecated="not deprecated">
  8900. <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"
  8901. static="false" final="false" visibility="public"
  8902. deprecated="not deprecated">
  8903. <exception name="IOException" type="java.io.IOException"/>
  8904. </constructor>
  8905. <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"
  8906. static="false" final="false" visibility="public"
  8907. deprecated="not deprecated">
  8908. <exception name="IOException" type="java.io.IOException"/>
  8909. </constructor>
  8910. <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"
  8911. static="false" final="false" visibility="public"
  8912. deprecated="not deprecated">
  8913. <exception name="IOException" type="java.io.IOException"/>
  8914. </constructor>
  8915. <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"
  8916. static="false" final="false" visibility="public"
  8917. deprecated="not deprecated">
  8918. <exception name="IOException" type="java.io.IOException"/>
  8919. </constructor>
  8920. <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"
  8921. static="false" final="false" visibility="public"
  8922. deprecated="not deprecated">
  8923. <exception name="IOException" type="java.io.IOException"/>
  8924. </constructor>
  8925. <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"
  8926. static="false" final="false" visibility="public"
  8927. deprecated="not deprecated">
  8928. <exception name="IOException" type="java.io.IOException"/>
  8929. </constructor>
  8930. <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"
  8931. static="false" final="false" visibility="public"
  8932. deprecated="not deprecated">
  8933. <exception name="IOException" type="java.io.IOException"/>
  8934. </constructor>
  8935. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  8936. static="false" final="false" visibility="public"
  8937. deprecated="not deprecated">
  8938. <exception name="IOException" type="java.io.IOException"/>
  8939. </constructor>
  8940. <method name="append"
  8941. abstract="false" native="false" synchronized="true"
  8942. static="false" final="false" visibility="public"
  8943. deprecated="not deprecated">
  8944. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  8945. <param name="val" type="org.apache.hadoop.io.Writable"/>
  8946. <exception name="IOException" type="java.io.IOException"/>
  8947. </method>
  8948. <method name="close"
  8949. abstract="false" native="false" synchronized="true"
  8950. static="false" final="false" visibility="public"
  8951. deprecated="not deprecated">
  8952. <exception name="IOException" type="java.io.IOException"/>
  8953. </method>
  8954. </class>
  8955. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  8956. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  8957. <class name="BooleanWritable" extends="java.lang.Object"
  8958. abstract="false"
  8959. static="false" final="false" visibility="public"
  8960. deprecated="not deprecated">
  8961. <implements name="org.apache.hadoop.io.WritableComparable"/>
  8962. <constructor name="BooleanWritable"
  8963. static="false" final="false" visibility="public"
  8964. deprecated="not deprecated">
  8965. </constructor>
  8966. <constructor name="BooleanWritable" type="boolean"
  8967. static="false" final="false" visibility="public"
  8968. deprecated="not deprecated">
  8969. </constructor>
  8970. <method name="set"
  8971. abstract="false" native="false" synchronized="false"
  8972. static="false" final="false" visibility="public"
  8973. deprecated="not deprecated">
  8974. <param name="value" type="boolean"/>
  8975. <doc>
  8976. <![CDATA[Set the value of the BooleanWritable]]>
  8977. </doc>
  8978. </method>
  8979. <method name="get" return="boolean"
  8980. abstract="false" native="false" synchronized="false"
  8981. static="false" final="false" visibility="public"
  8982. deprecated="not deprecated">
  8983. <doc>
  8984. <![CDATA[Returns the value of the BooleanWritable]]>
  8985. </doc>
  8986. </method>
  8987. <method name="readFields"
  8988. abstract="false" native="false" synchronized="false"
  8989. static="false" final="false" visibility="public"
  8990. deprecated="not deprecated">
  8991. <param name="in" type="java.io.DataInput"/>
  8992. <exception name="IOException" type="java.io.IOException"/>
  8993. </method>
  8994. <method name="write"
  8995. abstract="false" native="false" synchronized="false"
  8996. static="false" final="false" visibility="public"
  8997. deprecated="not deprecated">
  8998. <param name="out" type="java.io.DataOutput"/>
  8999. <exception name="IOException" type="java.io.IOException"/>
  9000. </method>
  9001. <method name="equals" return="boolean"
  9002. abstract="false" native="false" synchronized="false"
  9003. static="false" final="false" visibility="public"
  9004. deprecated="not deprecated">
  9005. <param name="o" type="java.lang.Object"/>
  9006. </method>
  9007. <method name="hashCode" return="int"
  9008. abstract="false" native="false" synchronized="false"
  9009. static="false" final="false" visibility="public"
  9010. deprecated="not deprecated">
  9011. </method>
  9012. <method name="compareTo" return="int"
  9013. abstract="false" native="false" synchronized="false"
  9014. static="false" final="false" visibility="public"
  9015. deprecated="not deprecated">
  9016. <param name="o" type="java.lang.Object"/>
  9017. </method>
  9018. <method name="toString" return="java.lang.String"
  9019. abstract="false" native="false" synchronized="false"
  9020. static="false" final="false" visibility="public"
  9021. deprecated="not deprecated">
  9022. </method>
  9023. <doc>
  9024. <![CDATA[A WritableComparable for booleans.]]>
  9025. </doc>
  9026. </class>
  9027. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  9028. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9029. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9030. abstract="false"
  9031. static="true" final="false" visibility="public"
  9032. deprecated="not deprecated">
  9033. <constructor name="BooleanWritable.Comparator"
  9034. static="false" final="false" visibility="public"
  9035. deprecated="not deprecated">
  9036. </constructor>
  9037. <method name="compare" return="int"
  9038. abstract="false" native="false" synchronized="false"
  9039. static="false" final="false" visibility="public"
  9040. deprecated="not deprecated">
  9041. <param name="b1" type="byte[]"/>
  9042. <param name="s1" type="int"/>
  9043. <param name="l1" type="int"/>
  9044. <param name="b2" type="byte[]"/>
  9045. <param name="s2" type="int"/>
  9046. <param name="l2" type="int"/>
  9047. </method>
  9048. <doc>
  9049. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  9050. </doc>
  9051. </class>
  9052. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9053. <!-- start class org.apache.hadoop.io.BytesWritable -->
  9054. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  9055. abstract="false"
  9056. static="false" final="false" visibility="public"
  9057. deprecated="not deprecated">
  9058. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9059. <constructor name="BytesWritable"
  9060. static="false" final="false" visibility="public"
  9061. deprecated="not deprecated">
  9062. <doc>
  9063. <![CDATA[Create a zero-size sequence.]]>
  9064. </doc>
  9065. </constructor>
  9066. <constructor name="BytesWritable" type="byte[]"
  9067. static="false" final="false" visibility="public"
  9068. deprecated="not deprecated">
  9069. <doc>
  9070. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  9071. @param bytes This array becomes the backing storage for the object.]]>
  9072. </doc>
  9073. </constructor>
  9074. <method name="getBytes" return="byte[]"
  9075. abstract="false" native="false" synchronized="false"
  9076. static="false" final="false" visibility="public"
  9077. deprecated="not deprecated">
  9078. <doc>
  9079. <![CDATA[Get the data from the BytesWritable.
  9080. @return The data is only valid between 0 and getLength() - 1.]]>
  9081. </doc>
  9082. </method>
  9083. <method name="get" return="byte[]"
  9084. abstract="false" native="false" synchronized="false"
  9085. static="false" final="false" visibility="public"
  9086. deprecated="Use {@link #getBytes()} instead.">
  9087. <doc>
  9088. <![CDATA[Get the data from the BytesWritable.
  9089. @deprecated Use {@link #getBytes()} instead.]]>
  9090. </doc>
  9091. </method>
  9092. <method name="getLength" return="int"
  9093. abstract="false" native="false" synchronized="false"
  9094. static="false" final="false" visibility="public"
  9095. deprecated="not deprecated">
  9096. <doc>
  9097. <![CDATA[Get the current size of the buffer.]]>
  9098. </doc>
  9099. </method>
  9100. <method name="getSize" return="int"
  9101. abstract="false" native="false" synchronized="false"
  9102. static="false" final="false" visibility="public"
  9103. deprecated="Use {@link #getLength()} instead.">
  9104. <doc>
  9105. <![CDATA[Get the current size of the buffer.
  9106. @deprecated Use {@link #getLength()} instead.]]>
  9107. </doc>
  9108. </method>
  9109. <method name="setSize"
  9110. abstract="false" native="false" synchronized="false"
  9111. static="false" final="false" visibility="public"
  9112. deprecated="not deprecated">
  9113. <param name="size" type="int"/>
  9114. <doc>
  9115. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  9116. and any new values are undefined. The capacity is changed if it is
  9117. necessary.
  9118. @param size The new number of bytes]]>
  9119. </doc>
  9120. </method>
  9121. <method name="getCapacity" return="int"
  9122. abstract="false" native="false" synchronized="false"
  9123. static="false" final="false" visibility="public"
  9124. deprecated="not deprecated">
  9125. <doc>
  9126. <![CDATA[Get the capacity, which is the maximum size that could handled without
  9127. resizing the backing storage.
  9128. @return The number of bytes]]>
  9129. </doc>
  9130. </method>
  9131. <method name="setCapacity"
  9132. abstract="false" native="false" synchronized="false"
  9133. static="false" final="false" visibility="public"
  9134. deprecated="not deprecated">
  9135. <param name="new_cap" type="int"/>
  9136. <doc>
  9137. <![CDATA[Change the capacity of the backing storage.
  9138. The data is preserved.
  9139. @param new_cap The new capacity in bytes.]]>
  9140. </doc>
  9141. </method>
  9142. <method name="set"
  9143. abstract="false" native="false" synchronized="false"
  9144. static="false" final="false" visibility="public"
  9145. deprecated="not deprecated">
  9146. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  9147. <doc>
  9148. <![CDATA[Set the BytesWritable to the contents of the given newData.
  9149. @param newData the value to set this BytesWritable to.]]>
  9150. </doc>
  9151. </method>
  9152. <method name="set"
  9153. abstract="false" native="false" synchronized="false"
  9154. static="false" final="false" visibility="public"
  9155. deprecated="not deprecated">
  9156. <param name="newData" type="byte[]"/>
  9157. <param name="offset" type="int"/>
  9158. <param name="length" type="int"/>
  9159. <doc>
  9160. <![CDATA[Set the value to a copy of the given byte range
  9161. @param newData the new values to copy in
  9162. @param offset the offset in newData to start at
  9163. @param length the number of bytes to copy]]>
  9164. </doc>
  9165. </method>
  9166. <method name="readFields"
  9167. abstract="false" native="false" synchronized="false"
  9168. static="false" final="false" visibility="public"
  9169. deprecated="not deprecated">
  9170. <param name="in" type="java.io.DataInput"/>
  9171. <exception name="IOException" type="java.io.IOException"/>
  9172. </method>
  9173. <method name="write"
  9174. abstract="false" native="false" synchronized="false"
  9175. static="false" final="false" visibility="public"
  9176. deprecated="not deprecated">
  9177. <param name="out" type="java.io.DataOutput"/>
  9178. <exception name="IOException" type="java.io.IOException"/>
  9179. </method>
  9180. <method name="hashCode" return="int"
  9181. abstract="false" native="false" synchronized="false"
  9182. static="false" final="false" visibility="public"
  9183. deprecated="not deprecated">
  9184. </method>
  9185. <method name="equals" return="boolean"
  9186. abstract="false" native="false" synchronized="false"
  9187. static="false" final="false" visibility="public"
  9188. deprecated="not deprecated">
  9189. <param name="right_obj" type="java.lang.Object"/>
  9190. <doc>
  9191. <![CDATA[Are the two byte sequences equal?]]>
  9192. </doc>
  9193. </method>
  9194. <method name="toString" return="java.lang.String"
  9195. abstract="false" native="false" synchronized="false"
  9196. static="false" final="false" visibility="public"
  9197. deprecated="not deprecated">
  9198. <doc>
  9199. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  9200. </doc>
  9201. </method>
  9202. <doc>
  9203. <![CDATA[A byte sequence that is usable as a key or value.
  9204. It is resizable and distinguishes between the size of the seqeunce and
  9205. the current capacity. The hash function is the front of the md5 of the
  9206. buffer. The sort order is the same as memcmp.]]>
  9207. </doc>
  9208. </class>
  9209. <!-- end class org.apache.hadoop.io.BytesWritable -->
  9210. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  9211. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9212. abstract="false"
  9213. static="true" final="false" visibility="public"
  9214. deprecated="not deprecated">
  9215. <constructor name="BytesWritable.Comparator"
  9216. static="false" final="false" visibility="public"
  9217. deprecated="not deprecated">
  9218. </constructor>
  9219. <method name="compare" return="int"
  9220. abstract="false" native="false" synchronized="false"
  9221. static="false" final="false" visibility="public"
  9222. deprecated="not deprecated">
  9223. <param name="b1" type="byte[]"/>
  9224. <param name="s1" type="int"/>
  9225. <param name="l1" type="int"/>
  9226. <param name="b2" type="byte[]"/>
  9227. <param name="s2" type="int"/>
  9228. <param name="l2" type="int"/>
  9229. <doc>
  9230. <![CDATA[Compare the buffers in serialized form.]]>
  9231. </doc>
  9232. </method>
  9233. <doc>
  9234. <![CDATA[A Comparator optimized for BytesWritable.]]>
  9235. </doc>
  9236. </class>
  9237. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  9238. <!-- start class org.apache.hadoop.io.ByteWritable -->
  9239. <class name="ByteWritable" extends="java.lang.Object"
  9240. abstract="false"
  9241. static="false" final="false" visibility="public"
  9242. deprecated="not deprecated">
  9243. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9244. <constructor name="ByteWritable"
  9245. static="false" final="false" visibility="public"
  9246. deprecated="not deprecated">
  9247. </constructor>
  9248. <constructor name="ByteWritable" type="byte"
  9249. static="false" final="false" visibility="public"
  9250. deprecated="not deprecated">
  9251. </constructor>
  9252. <method name="set"
  9253. abstract="false" native="false" synchronized="false"
  9254. static="false" final="false" visibility="public"
  9255. deprecated="not deprecated">
  9256. <param name="value" type="byte"/>
  9257. <doc>
  9258. <![CDATA[Set the value of this ByteWritable.]]>
  9259. </doc>
  9260. </method>
  9261. <method name="get" return="byte"
  9262. abstract="false" native="false" synchronized="false"
  9263. static="false" final="false" visibility="public"
  9264. deprecated="not deprecated">
  9265. <doc>
  9266. <![CDATA[Return the value of this ByteWritable.]]>
  9267. </doc>
  9268. </method>
  9269. <method name="readFields"
  9270. abstract="false" native="false" synchronized="false"
  9271. static="false" final="false" visibility="public"
  9272. deprecated="not deprecated">
  9273. <param name="in" type="java.io.DataInput"/>
  9274. <exception name="IOException" type="java.io.IOException"/>
  9275. </method>
  9276. <method name="write"
  9277. abstract="false" native="false" synchronized="false"
  9278. static="false" final="false" visibility="public"
  9279. deprecated="not deprecated">
  9280. <param name="out" type="java.io.DataOutput"/>
  9281. <exception name="IOException" type="java.io.IOException"/>
  9282. </method>
  9283. <method name="equals" return="boolean"
  9284. abstract="false" native="false" synchronized="false"
  9285. static="false" final="false" visibility="public"
  9286. deprecated="not deprecated">
  9287. <param name="o" type="java.lang.Object"/>
  9288. <doc>
  9289. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  9290. </doc>
  9291. </method>
  9292. <method name="hashCode" return="int"
  9293. abstract="false" native="false" synchronized="false"
  9294. static="false" final="false" visibility="public"
  9295. deprecated="not deprecated">
  9296. </method>
  9297. <method name="compareTo" return="int"
  9298. abstract="false" native="false" synchronized="false"
  9299. static="false" final="false" visibility="public"
  9300. deprecated="not deprecated">
  9301. <param name="o" type="java.lang.Object"/>
  9302. <doc>
  9303. <![CDATA[Compares two ByteWritables.]]>
  9304. </doc>
  9305. </method>
  9306. <method name="toString" return="java.lang.String"
  9307. abstract="false" native="false" synchronized="false"
  9308. static="false" final="false" visibility="public"
  9309. deprecated="not deprecated">
  9310. </method>
  9311. <doc>
  9312. <![CDATA[A WritableComparable for a single byte.]]>
  9313. </doc>
  9314. </class>
  9315. <!-- end class org.apache.hadoop.io.ByteWritable -->
  9316. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  9317. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9318. abstract="false"
  9319. static="true" final="false" visibility="public"
  9320. deprecated="not deprecated">
  9321. <constructor name="ByteWritable.Comparator"
  9322. static="false" final="false" visibility="public"
  9323. deprecated="not deprecated">
  9324. </constructor>
  9325. <method name="compare" return="int"
  9326. abstract="false" native="false" synchronized="false"
  9327. static="false" final="false" visibility="public"
  9328. deprecated="not deprecated">
  9329. <param name="b1" type="byte[]"/>
  9330. <param name="s1" type="int"/>
  9331. <param name="l1" type="int"/>
  9332. <param name="b2" type="byte[]"/>
  9333. <param name="s2" type="int"/>
  9334. <param name="l2" type="int"/>
  9335. </method>
  9336. <doc>
  9337. <![CDATA[A Comparator optimized for ByteWritable.]]>
  9338. </doc>
  9339. </class>
  9340. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  9341. <!-- start interface org.apache.hadoop.io.Closeable -->
  9342. <interface name="Closeable" abstract="true"
  9343. static="false" final="false" visibility="public"
  9344. deprecated="use java.io.Closeable">
  9345. <implements name="java.io.Closeable"/>
  9346. <doc>
  9347. <![CDATA[@deprecated use java.io.Closeable]]>
  9348. </doc>
  9349. </interface>
  9350. <!-- end interface org.apache.hadoop.io.Closeable -->
  9351. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  9352. <class name="CompressedWritable" extends="java.lang.Object"
  9353. abstract="true"
  9354. static="false" final="false" visibility="public"
  9355. deprecated="not deprecated">
  9356. <implements name="org.apache.hadoop.io.Writable"/>
  9357. <constructor name="CompressedWritable"
  9358. static="false" final="false" visibility="public"
  9359. deprecated="not deprecated">
  9360. </constructor>
  9361. <method name="readFields"
  9362. abstract="false" native="false" synchronized="false"
  9363. static="false" final="true" visibility="public"
  9364. deprecated="not deprecated">
  9365. <param name="in" type="java.io.DataInput"/>
  9366. <exception name="IOException" type="java.io.IOException"/>
  9367. </method>
  9368. <method name="ensureInflated"
  9369. abstract="false" native="false" synchronized="false"
  9370. static="false" final="false" visibility="protected"
  9371. deprecated="not deprecated">
  9372. <doc>
  9373. <![CDATA[Must be called by all methods which access fields to ensure that the data
  9374. has been uncompressed.]]>
  9375. </doc>
  9376. </method>
  9377. <method name="readFieldsCompressed"
  9378. abstract="true" native="false" synchronized="false"
  9379. static="false" final="false" visibility="protected"
  9380. deprecated="not deprecated">
  9381. <param name="in" type="java.io.DataInput"/>
  9382. <exception name="IOException" type="java.io.IOException"/>
  9383. <doc>
  9384. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  9385. </doc>
  9386. </method>
  9387. <method name="write"
  9388. abstract="false" native="false" synchronized="false"
  9389. static="false" final="true" visibility="public"
  9390. deprecated="not deprecated">
  9391. <param name="out" type="java.io.DataOutput"/>
  9392. <exception name="IOException" type="java.io.IOException"/>
  9393. </method>
  9394. <method name="writeCompressed"
  9395. abstract="true" native="false" synchronized="false"
  9396. static="false" final="false" visibility="protected"
  9397. deprecated="not deprecated">
  9398. <param name="out" type="java.io.DataOutput"/>
  9399. <exception name="IOException" type="java.io.IOException"/>
  9400. <doc>
  9401. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  9402. </doc>
  9403. </method>
  9404. <doc>
  9405. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  9406. inflate on field access. This is useful for large objects whose fields are
  9407. not be altered during a map or reduce operation: leaving the field data
  9408. compressed makes copying the instance from one file to another much
  9409. faster.]]>
  9410. </doc>
  9411. </class>
  9412. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  9413. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  9414. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  9415. abstract="false"
  9416. static="false" final="false" visibility="public"
  9417. deprecated="not deprecated">
  9418. <constructor name="DataInputBuffer"
  9419. static="false" final="false" visibility="public"
  9420. deprecated="not deprecated">
  9421. <doc>
  9422. <![CDATA[Constructs a new empty buffer.]]>
  9423. </doc>
  9424. </constructor>
  9425. <method name="reset"
  9426. abstract="false" native="false" synchronized="false"
  9427. static="false" final="false" visibility="public"
  9428. deprecated="not deprecated">
  9429. <param name="input" type="byte[]"/>
  9430. <param name="length" type="int"/>
  9431. <doc>
  9432. <![CDATA[Resets the data that the buffer reads.]]>
  9433. </doc>
  9434. </method>
  9435. <method name="reset"
  9436. abstract="false" native="false" synchronized="false"
  9437. static="false" final="false" visibility="public"
  9438. deprecated="not deprecated">
  9439. <param name="input" type="byte[]"/>
  9440. <param name="start" type="int"/>
  9441. <param name="length" type="int"/>
  9442. <doc>
  9443. <![CDATA[Resets the data that the buffer reads.]]>
  9444. </doc>
  9445. </method>
  9446. <method name="getData" return="byte[]"
  9447. abstract="false" native="false" synchronized="false"
  9448. static="false" final="false" visibility="public"
  9449. deprecated="not deprecated">
  9450. </method>
  9451. <method name="getPosition" return="int"
  9452. abstract="false" native="false" synchronized="false"
  9453. static="false" final="false" visibility="public"
  9454. deprecated="not deprecated">
  9455. <doc>
  9456. <![CDATA[Returns the current position in the input.]]>
  9457. </doc>
  9458. </method>
  9459. <method name="getLength" return="int"
  9460. abstract="false" native="false" synchronized="false"
  9461. static="false" final="false" visibility="public"
  9462. deprecated="not deprecated">
  9463. <doc>
  9464. <![CDATA[Returns the length of the input.]]>
  9465. </doc>
  9466. </method>
  9467. <doc>
  9468. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  9469. buffer.
  9470. <p>This saves memory over creating a new DataInputStream and
  9471. ByteArrayInputStream each time data is read.
  9472. <p>Typical usage is something like the following:<pre>
  9473. DataInputBuffer buffer = new DataInputBuffer();
  9474. while (... loop condition ...) {
  9475. byte[] data = ... get data ...;
  9476. int dataLength = ... get data length ...;
  9477. buffer.reset(data, dataLength);
  9478. ... read buffer using DataInput methods ...
  9479. }
  9480. </pre>]]>
  9481. </doc>
  9482. </class>
  9483. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  9484. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  9485. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  9486. abstract="false"
  9487. static="false" final="false" visibility="public"
  9488. deprecated="not deprecated">
  9489. <constructor name="DataOutputBuffer"
  9490. static="false" final="false" visibility="public"
  9491. deprecated="not deprecated">
  9492. <doc>
  9493. <![CDATA[Constructs a new empty buffer.]]>
  9494. </doc>
  9495. </constructor>
  9496. <constructor name="DataOutputBuffer" type="int"
  9497. static="false" final="false" visibility="public"
  9498. deprecated="not deprecated">
  9499. </constructor>
  9500. <method name="getData" return="byte[]"
  9501. abstract="false" native="false" synchronized="false"
  9502. static="false" final="false" visibility="public"
  9503. deprecated="not deprecated">
  9504. <doc>
  9505. <![CDATA[Returns the current contents of the buffer.
  9506. Data is only valid to {@link #getLength()}.]]>
  9507. </doc>
  9508. </method>
  9509. <method name="getLength" return="int"
  9510. abstract="false" native="false" synchronized="false"
  9511. static="false" final="false" visibility="public"
  9512. deprecated="not deprecated">
  9513. <doc>
  9514. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  9515. </doc>
  9516. </method>
  9517. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  9518. abstract="false" native="false" synchronized="false"
  9519. static="false" final="false" visibility="public"
  9520. deprecated="not deprecated">
  9521. <doc>
  9522. <![CDATA[Resets the buffer to empty.]]>
  9523. </doc>
  9524. </method>
  9525. <method name="write"
  9526. abstract="false" native="false" synchronized="false"
  9527. static="false" final="false" visibility="public"
  9528. deprecated="not deprecated">
  9529. <param name="in" type="java.io.DataInput"/>
  9530. <param name="length" type="int"/>
  9531. <exception name="IOException" type="java.io.IOException"/>
  9532. <doc>
  9533. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  9534. </doc>
  9535. </method>
  9536. <method name="writeTo"
  9537. abstract="false" native="false" synchronized="false"
  9538. static="false" final="false" visibility="public"
  9539. deprecated="not deprecated">
  9540. <param name="out" type="java.io.OutputStream"/>
  9541. <exception name="IOException" type="java.io.IOException"/>
  9542. <doc>
  9543. <![CDATA[Write to a file stream]]>
  9544. </doc>
  9545. </method>
  9546. <doc>
  9547. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  9548. buffer.
  9549. <p>This saves memory over creating a new DataOutputStream and
  9550. ByteArrayOutputStream each time data is written.
  9551. <p>Typical usage is something like the following:<pre>
  9552. DataOutputBuffer buffer = new DataOutputBuffer();
  9553. while (... loop condition ...) {
  9554. buffer.reset();
  9555. ... write buffer using DataOutput methods ...
  9556. byte[] data = buffer.getData();
  9557. int dataLength = buffer.getLength();
  9558. ... write data to its ultimate destination ...
  9559. }
  9560. </pre>]]>
  9561. </doc>
  9562. </class>
  9563. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  9564. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  9565. <class name="DefaultStringifier" extends="java.lang.Object"
  9566. abstract="false"
  9567. static="false" final="false" visibility="public"
  9568. deprecated="not deprecated">
  9569. <implements name="org.apache.hadoop.io.Stringifier"/>
  9570. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  9571. static="false" final="false" visibility="public"
  9572. deprecated="not deprecated">
  9573. </constructor>
  9574. <method name="fromString" return="java.lang.Object"
  9575. abstract="false" native="false" synchronized="false"
  9576. static="false" final="false" visibility="public"
  9577. deprecated="not deprecated">
  9578. <param name="str" type="java.lang.String"/>
  9579. <exception name="IOException" type="java.io.IOException"/>
  9580. </method>
  9581. <method name="toString" return="java.lang.String"
  9582. abstract="false" native="false" synchronized="false"
  9583. static="false" final="false" visibility="public"
  9584. deprecated="not deprecated">
  9585. <param name="obj" type="java.lang.Object"/>
  9586. <exception name="IOException" type="java.io.IOException"/>
  9587. </method>
  9588. <method name="close"
  9589. abstract="false" native="false" synchronized="false"
  9590. static="false" final="false" visibility="public"
  9591. deprecated="not deprecated">
  9592. <exception name="IOException" type="java.io.IOException"/>
  9593. </method>
  9594. <method name="store"
  9595. abstract="false" native="false" synchronized="false"
  9596. static="true" final="false" visibility="public"
  9597. deprecated="not deprecated">
  9598. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9599. <param name="item" type="java.lang.Object"/>
  9600. <param name="keyName" type="java.lang.String"/>
  9601. <exception name="IOException" type="java.io.IOException"/>
  9602. <doc>
  9603. <![CDATA[Stores the item in the configuration with the given keyName.
  9604. @param <K> the class of the item
  9605. @param conf the configuration to store
  9606. @param item the object to be stored
  9607. @param keyName the name of the key to use
  9608. @throws IOException : forwards Exceptions from the underlying
  9609. {@link Serialization} classes.]]>
  9610. </doc>
  9611. </method>
  9612. <method name="load" return="java.lang.Object"
  9613. abstract="false" native="false" synchronized="false"
  9614. static="true" final="false" visibility="public"
  9615. deprecated="not deprecated">
  9616. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9617. <param name="keyName" type="java.lang.String"/>
  9618. <param name="itemClass" type="java.lang.Class"/>
  9619. <exception name="IOException" type="java.io.IOException"/>
  9620. <doc>
  9621. <![CDATA[Restores the object from the configuration.
  9622. @param <K> the class of the item
  9623. @param conf the configuration to use
  9624. @param keyName the name of the key to use
  9625. @param itemClass the class of the item
  9626. @return restored object
  9627. @throws IOException : forwards Exceptions from the underlying
  9628. {@link Serialization} classes.]]>
  9629. </doc>
  9630. </method>
  9631. <method name="storeArray"
  9632. abstract="false" native="false" synchronized="false"
  9633. static="true" final="false" visibility="public"
  9634. deprecated="not deprecated">
  9635. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9636. <param name="items" type="java.lang.Object[]"/>
  9637. <param name="keyName" type="java.lang.String"/>
  9638. <exception name="IOException" type="java.io.IOException"/>
  9639. <doc>
  9640. <![CDATA[Stores the array of items in the configuration with the given keyName.
  9641. @param <K> the class of the item
  9642. @param conf the configuration to use
  9643. @param items the objects to be stored
  9644. @param keyName the name of the key to use
  9645. @throws IndexOutOfBoundsException if the items array is empty
  9646. @throws IOException : forwards Exceptions from the underlying
  9647. {@link Serialization} classes.]]>
  9648. </doc>
  9649. </method>
  9650. <method name="loadArray" return="java.lang.Object[]"
  9651. abstract="false" native="false" synchronized="false"
  9652. static="true" final="false" visibility="public"
  9653. deprecated="not deprecated">
  9654. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9655. <param name="keyName" type="java.lang.String"/>
  9656. <param name="itemClass" type="java.lang.Class"/>
  9657. <exception name="IOException" type="java.io.IOException"/>
  9658. <doc>
  9659. <![CDATA[Restores the array of objects from the configuration.
  9660. @param <K> the class of the item
  9661. @param conf the configuration to use
  9662. @param keyName the name of the key to use
  9663. @param itemClass the class of the item
  9664. @return restored object
  9665. @throws IOException : forwards Exceptions from the underlying
  9666. {@link Serialization} classes.]]>
  9667. </doc>
  9668. </method>
  9669. <doc>
  9670. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  9671. interface which stringifies the objects using base64 encoding of the
  9672. serialized version of the objects. The {@link Serializer} and
  9673. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  9674. <br>
  9675. DefaultStringifier offers convenience methods to store/load objects to/from
  9676. the configuration.
  9677. @param <T> the class of the objects to stringify]]>
  9678. </doc>
  9679. </class>
  9680. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  9681. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  9682. <class name="DoubleWritable" extends="java.lang.Object"
  9683. abstract="false"
  9684. static="false" final="false" visibility="public"
  9685. deprecated="not deprecated">
  9686. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9687. <constructor name="DoubleWritable"
  9688. static="false" final="false" visibility="public"
  9689. deprecated="not deprecated">
  9690. </constructor>
  9691. <constructor name="DoubleWritable" type="double"
  9692. static="false" final="false" visibility="public"
  9693. deprecated="not deprecated">
  9694. </constructor>
  9695. <method name="readFields"
  9696. abstract="false" native="false" synchronized="false"
  9697. static="false" final="false" visibility="public"
  9698. deprecated="not deprecated">
  9699. <param name="in" type="java.io.DataInput"/>
  9700. <exception name="IOException" type="java.io.IOException"/>
  9701. </method>
  9702. <method name="write"
  9703. abstract="false" native="false" synchronized="false"
  9704. static="false" final="false" visibility="public"
  9705. deprecated="not deprecated">
  9706. <param name="out" type="java.io.DataOutput"/>
  9707. <exception name="IOException" type="java.io.IOException"/>
  9708. </method>
  9709. <method name="set"
  9710. abstract="false" native="false" synchronized="false"
  9711. static="false" final="false" visibility="public"
  9712. deprecated="not deprecated">
  9713. <param name="value" type="double"/>
  9714. </method>
  9715. <method name="get" return="double"
  9716. abstract="false" native="false" synchronized="false"
  9717. static="false" final="false" visibility="public"
  9718. deprecated="not deprecated">
  9719. </method>
  9720. <method name="equals" return="boolean"
  9721. abstract="false" native="false" synchronized="false"
  9722. static="false" final="false" visibility="public"
  9723. deprecated="not deprecated">
  9724. <param name="o" type="java.lang.Object"/>
  9725. <doc>
  9726. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  9727. </doc>
  9728. </method>
  9729. <method name="hashCode" return="int"
  9730. abstract="false" native="false" synchronized="false"
  9731. static="false" final="false" visibility="public"
  9732. deprecated="not deprecated">
  9733. </method>
  9734. <method name="compareTo" return="int"
  9735. abstract="false" native="false" synchronized="false"
  9736. static="false" final="false" visibility="public"
  9737. deprecated="not deprecated">
  9738. <param name="o" type="java.lang.Object"/>
  9739. </method>
  9740. <method name="toString" return="java.lang.String"
  9741. abstract="false" native="false" synchronized="false"
  9742. static="false" final="false" visibility="public"
  9743. deprecated="not deprecated">
  9744. </method>
  9745. <doc>
  9746. <![CDATA[Writable for Double values.]]>
  9747. </doc>
  9748. </class>
  9749. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  9750. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  9751. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9752. abstract="false"
  9753. static="true" final="false" visibility="public"
  9754. deprecated="not deprecated">
  9755. <constructor name="DoubleWritable.Comparator"
  9756. static="false" final="false" visibility="public"
  9757. deprecated="not deprecated">
  9758. </constructor>
  9759. <method name="compare" return="int"
  9760. abstract="false" native="false" synchronized="false"
  9761. static="false" final="false" visibility="public"
  9762. deprecated="not deprecated">
  9763. <param name="b1" type="byte[]"/>
  9764. <param name="s1" type="int"/>
  9765. <param name="l1" type="int"/>
  9766. <param name="b2" type="byte[]"/>
  9767. <param name="s2" type="int"/>
  9768. <param name="l2" type="int"/>
  9769. </method>
  9770. <doc>
  9771. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  9772. </doc>
  9773. </class>
  9774. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  9775. <!-- start class org.apache.hadoop.io.FloatWritable -->
  9776. <class name="FloatWritable" extends="java.lang.Object"
  9777. abstract="false"
  9778. static="false" final="false" visibility="public"
  9779. deprecated="not deprecated">
  9780. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9781. <constructor name="FloatWritable"
  9782. static="false" final="false" visibility="public"
  9783. deprecated="not deprecated">
  9784. </constructor>
  9785. <constructor name="FloatWritable" type="float"
  9786. static="false" final="false" visibility="public"
  9787. deprecated="not deprecated">
  9788. </constructor>
  9789. <method name="set"
  9790. abstract="false" native="false" synchronized="false"
  9791. static="false" final="false" visibility="public"
  9792. deprecated="not deprecated">
  9793. <param name="value" type="float"/>
  9794. <doc>
  9795. <![CDATA[Set the value of this FloatWritable.]]>
  9796. </doc>
  9797. </method>
  9798. <method name="get" return="float"
  9799. abstract="false" native="false" synchronized="false"
  9800. static="false" final="false" visibility="public"
  9801. deprecated="not deprecated">
  9802. <doc>
  9803. <![CDATA[Return the value of this FloatWritable.]]>
  9804. </doc>
  9805. </method>
  9806. <method name="readFields"
  9807. abstract="false" native="false" synchronized="false"
  9808. static="false" final="false" visibility="public"
  9809. deprecated="not deprecated">
  9810. <param name="in" type="java.io.DataInput"/>
  9811. <exception name="IOException" type="java.io.IOException"/>
  9812. </method>
  9813. <method name="write"
  9814. abstract="false" native="false" synchronized="false"
  9815. static="false" final="false" visibility="public"
  9816. deprecated="not deprecated">
  9817. <param name="out" type="java.io.DataOutput"/>
  9818. <exception name="IOException" type="java.io.IOException"/>
  9819. </method>
  9820. <method name="equals" return="boolean"
  9821. abstract="false" native="false" synchronized="false"
  9822. static="false" final="false" visibility="public"
  9823. deprecated="not deprecated">
  9824. <param name="o" type="java.lang.Object"/>
  9825. <doc>
  9826. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  9827. </doc>
  9828. </method>
  9829. <method name="hashCode" return="int"
  9830. abstract="false" native="false" synchronized="false"
  9831. static="false" final="false" visibility="public"
  9832. deprecated="not deprecated">
  9833. </method>
  9834. <method name="compareTo" return="int"
  9835. abstract="false" native="false" synchronized="false"
  9836. static="false" final="false" visibility="public"
  9837. deprecated="not deprecated">
  9838. <param name="o" type="java.lang.Object"/>
  9839. <doc>
  9840. <![CDATA[Compares two FloatWritables.]]>
  9841. </doc>
  9842. </method>
  9843. <method name="toString" return="java.lang.String"
  9844. abstract="false" native="false" synchronized="false"
  9845. static="false" final="false" visibility="public"
  9846. deprecated="not deprecated">
  9847. </method>
  9848. <doc>
  9849. <![CDATA[A WritableComparable for floats.]]>
  9850. </doc>
  9851. </class>
  9852. <!-- end class org.apache.hadoop.io.FloatWritable -->
  9853. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  9854. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9855. abstract="false"
  9856. static="true" final="false" visibility="public"
  9857. deprecated="not deprecated">
  9858. <constructor name="FloatWritable.Comparator"
  9859. static="false" final="false" visibility="public"
  9860. deprecated="not deprecated">
  9861. </constructor>
  9862. <method name="compare" return="int"
  9863. abstract="false" native="false" synchronized="false"
  9864. static="false" final="false" visibility="public"
  9865. deprecated="not deprecated">
  9866. <param name="b1" type="byte[]"/>
  9867. <param name="s1" type="int"/>
  9868. <param name="l1" type="int"/>
  9869. <param name="b2" type="byte[]"/>
  9870. <param name="s2" type="int"/>
  9871. <param name="l2" type="int"/>
  9872. </method>
  9873. <doc>
  9874. <![CDATA[A Comparator optimized for FloatWritable.]]>
  9875. </doc>
  9876. </class>
  9877. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  9878. <!-- start class org.apache.hadoop.io.GenericWritable -->
  9879. <class name="GenericWritable" extends="java.lang.Object"
  9880. abstract="true"
  9881. static="false" final="false" visibility="public"
  9882. deprecated="not deprecated">
  9883. <implements name="org.apache.hadoop.io.Writable"/>
  9884. <implements name="org.apache.hadoop.conf.Configurable"/>
  9885. <constructor name="GenericWritable"
  9886. static="false" final="false" visibility="public"
  9887. deprecated="not deprecated">
  9888. </constructor>
  9889. <method name="set"
  9890. abstract="false" native="false" synchronized="false"
  9891. static="false" final="false" visibility="public"
  9892. deprecated="not deprecated">
  9893. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  9894. <doc>
  9895. <![CDATA[Set the instance that is wrapped.
  9896. @param obj]]>
  9897. </doc>
  9898. </method>
  9899. <method name="get" return="org.apache.hadoop.io.Writable"
  9900. abstract="false" native="false" synchronized="false"
  9901. static="false" final="false" visibility="public"
  9902. deprecated="not deprecated">
  9903. <doc>
  9904. <![CDATA[Return the wrapped instance.]]>
  9905. </doc>
  9906. </method>
  9907. <method name="toString" return="java.lang.String"
  9908. abstract="false" native="false" synchronized="false"
  9909. static="false" final="false" visibility="public"
  9910. deprecated="not deprecated">
  9911. </method>
  9912. <method name="readFields"
  9913. abstract="false" native="false" synchronized="false"
  9914. static="false" final="false" visibility="public"
  9915. deprecated="not deprecated">
  9916. <param name="in" type="java.io.DataInput"/>
  9917. <exception name="IOException" type="java.io.IOException"/>
  9918. </method>
  9919. <method name="write"
  9920. abstract="false" native="false" synchronized="false"
  9921. static="false" final="false" visibility="public"
  9922. deprecated="not deprecated">
  9923. <param name="out" type="java.io.DataOutput"/>
  9924. <exception name="IOException" type="java.io.IOException"/>
  9925. </method>
  9926. <method name="getTypes" return="java.lang.Class[]"
  9927. abstract="true" native="false" synchronized="false"
  9928. static="false" final="false" visibility="protected"
  9929. deprecated="not deprecated">
  9930. <doc>
  9931. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  9932. to return a constant array of classes.]]>
  9933. </doc>
  9934. </method>
  9935. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9936. abstract="false" native="false" synchronized="false"
  9937. static="false" final="false" visibility="public"
  9938. deprecated="not deprecated">
  9939. </method>
  9940. <method name="setConf"
  9941. abstract="false" native="false" synchronized="false"
  9942. static="false" final="false" visibility="public"
  9943. deprecated="not deprecated">
  9944. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9945. </method>
  9946. <doc>
  9947. <![CDATA[A wrapper for Writable instances.
  9948. <p>
  9949. When two sequence files, which have same Key type but different Value
  9950. types, are mapped out to reduce, multiple Value types is not allowed.
  9951. In this case, this class can help you wrap instances with different types.
  9952. </p>
  9953. <p>
  9954. Compared with <code>ObjectWritable</code>, this class is much more effective,
  9955. because <code>ObjectWritable</code> will append the class declaration as a String
  9956. into the output file in every Key-Value pair.
  9957. </p>
  9958. <p>
  9959. Generic Writable implements {@link Configurable} interface, so that it will be
  9960. configured by the framework. The configuration is passed to the wrapped objects
  9961. implementing {@link Configurable} interface <i>before deserialization</i>.
  9962. </p>
  9963. how to use it: <br>
  9964. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  9965. 2. Implements the abstract method <code>getTypes()</code>, defines
  9966. the classes which will be wrapped in GenericObject in application.
  9967. Attention: this classes defined in <code>getTypes()</code> method, must
  9968. implement <code>Writable</code> interface.
  9969. <br><br>
  9970. The code looks like this:
  9971. <blockquote><pre>
  9972. public class GenericObject extends GenericWritable {
  9973. private static Class[] CLASSES = {
  9974. ClassType1.class,
  9975. ClassType2.class,
  9976. ClassType3.class,
  9977. };
  9978. protected Class[] getTypes() {
  9979. return CLASSES;
  9980. }
  9981. }
  9982. </pre></blockquote>
  9983. @since Nov 8, 2006]]>
  9984. </doc>
  9985. </class>
  9986. <!-- end class org.apache.hadoop.io.GenericWritable -->
  9987. <!-- start class org.apache.hadoop.io.InputBuffer -->
  9988. <class name="InputBuffer" extends="java.io.FilterInputStream"
  9989. abstract="false"
  9990. static="false" final="false" visibility="public"
  9991. deprecated="not deprecated">
  9992. <constructor name="InputBuffer"
  9993. static="false" final="false" visibility="public"
  9994. deprecated="not deprecated">
  9995. <doc>
  9996. <![CDATA[Constructs a new empty buffer.]]>
  9997. </doc>
  9998. </constructor>
  9999. <method name="reset"
  10000. abstract="false" native="false" synchronized="false"
  10001. static="false" final="false" visibility="public"
  10002. deprecated="not deprecated">
  10003. <param name="input" type="byte[]"/>
  10004. <param name="length" type="int"/>
  10005. <doc>
  10006. <![CDATA[Resets the data that the buffer reads.]]>
  10007. </doc>
  10008. </method>
  10009. <method name="reset"
  10010. abstract="false" native="false" synchronized="false"
  10011. static="false" final="false" visibility="public"
  10012. deprecated="not deprecated">
  10013. <param name="input" type="byte[]"/>
  10014. <param name="start" type="int"/>
  10015. <param name="length" type="int"/>
  10016. <doc>
  10017. <![CDATA[Resets the data that the buffer reads.]]>
  10018. </doc>
  10019. </method>
  10020. <method name="getPosition" return="int"
  10021. abstract="false" native="false" synchronized="false"
  10022. static="false" final="false" visibility="public"
  10023. deprecated="not deprecated">
  10024. <doc>
  10025. <![CDATA[Returns the current position in the input.]]>
  10026. </doc>
  10027. </method>
  10028. <method name="getLength" return="int"
  10029. abstract="false" native="false" synchronized="false"
  10030. static="false" final="false" visibility="public"
  10031. deprecated="not deprecated">
  10032. <doc>
  10033. <![CDATA[Returns the length of the input.]]>
  10034. </doc>
  10035. </method>
  10036. <doc>
  10037. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  10038. buffer.
  10039. <p>This saves memory over creating a new InputStream and
  10040. ByteArrayInputStream each time data is read.
  10041. <p>Typical usage is something like the following:<pre>
  10042. InputBuffer buffer = new InputBuffer();
  10043. while (... loop condition ...) {
  10044. byte[] data = ... get data ...;
  10045. int dataLength = ... get data length ...;
  10046. buffer.reset(data, dataLength);
  10047. ... read buffer using InputStream methods ...
  10048. }
  10049. </pre>
  10050. @see DataInputBuffer
  10051. @see DataOutput]]>
  10052. </doc>
  10053. </class>
  10054. <!-- end class org.apache.hadoop.io.InputBuffer -->
  10055. <!-- start class org.apache.hadoop.io.IntWritable -->
  10056. <class name="IntWritable" extends="java.lang.Object"
  10057. abstract="false"
  10058. static="false" final="false" visibility="public"
  10059. deprecated="not deprecated">
  10060. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10061. <constructor name="IntWritable"
  10062. static="false" final="false" visibility="public"
  10063. deprecated="not deprecated">
  10064. </constructor>
  10065. <constructor name="IntWritable" type="int"
  10066. static="false" final="false" visibility="public"
  10067. deprecated="not deprecated">
  10068. </constructor>
  10069. <method name="set"
  10070. abstract="false" native="false" synchronized="false"
  10071. static="false" final="false" visibility="public"
  10072. deprecated="not deprecated">
  10073. <param name="value" type="int"/>
  10074. <doc>
  10075. <![CDATA[Set the value of this IntWritable.]]>
  10076. </doc>
  10077. </method>
  10078. <method name="get" return="int"
  10079. abstract="false" native="false" synchronized="false"
  10080. static="false" final="false" visibility="public"
  10081. deprecated="not deprecated">
  10082. <doc>
  10083. <![CDATA[Return the value of this IntWritable.]]>
  10084. </doc>
  10085. </method>
  10086. <method name="readFields"
  10087. abstract="false" native="false" synchronized="false"
  10088. static="false" final="false" visibility="public"
  10089. deprecated="not deprecated">
  10090. <param name="in" type="java.io.DataInput"/>
  10091. <exception name="IOException" type="java.io.IOException"/>
  10092. </method>
  10093. <method name="write"
  10094. abstract="false" native="false" synchronized="false"
  10095. static="false" final="false" visibility="public"
  10096. deprecated="not deprecated">
  10097. <param name="out" type="java.io.DataOutput"/>
  10098. <exception name="IOException" type="java.io.IOException"/>
  10099. </method>
  10100. <method name="equals" return="boolean"
  10101. abstract="false" native="false" synchronized="false"
  10102. static="false" final="false" visibility="public"
  10103. deprecated="not deprecated">
  10104. <param name="o" type="java.lang.Object"/>
  10105. <doc>
  10106. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  10107. </doc>
  10108. </method>
  10109. <method name="hashCode" return="int"
  10110. abstract="false" native="false" synchronized="false"
  10111. static="false" final="false" visibility="public"
  10112. deprecated="not deprecated">
  10113. </method>
  10114. <method name="compareTo" return="int"
  10115. abstract="false" native="false" synchronized="false"
  10116. static="false" final="false" visibility="public"
  10117. deprecated="not deprecated">
  10118. <param name="o" type="java.lang.Object"/>
  10119. <doc>
  10120. <![CDATA[Compares two IntWritables.]]>
  10121. </doc>
  10122. </method>
  10123. <method name="toString" return="java.lang.String"
  10124. abstract="false" native="false" synchronized="false"
  10125. static="false" final="false" visibility="public"
  10126. deprecated="not deprecated">
  10127. </method>
  10128. <doc>
  10129. <![CDATA[A WritableComparable for ints.]]>
  10130. </doc>
  10131. </class>
  10132. <!-- end class org.apache.hadoop.io.IntWritable -->
  10133. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  10134. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10135. abstract="false"
  10136. static="true" final="false" visibility="public"
  10137. deprecated="not deprecated">
  10138. <constructor name="IntWritable.Comparator"
  10139. static="false" final="false" visibility="public"
  10140. deprecated="not deprecated">
  10141. </constructor>
  10142. <method name="compare" return="int"
  10143. abstract="false" native="false" synchronized="false"
  10144. static="false" final="false" visibility="public"
  10145. deprecated="not deprecated">
  10146. <param name="b1" type="byte[]"/>
  10147. <param name="s1" type="int"/>
  10148. <param name="l1" type="int"/>
  10149. <param name="b2" type="byte[]"/>
  10150. <param name="s2" type="int"/>
  10151. <param name="l2" type="int"/>
  10152. </method>
  10153. <doc>
  10154. <![CDATA[A Comparator optimized for IntWritable.]]>
  10155. </doc>
  10156. </class>
  10157. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  10158. <!-- start class org.apache.hadoop.io.IOUtils -->
  10159. <class name="IOUtils" extends="java.lang.Object"
  10160. abstract="false"
  10161. static="false" final="false" visibility="public"
  10162. deprecated="not deprecated">
  10163. <constructor name="IOUtils"
  10164. static="false" final="false" visibility="public"
  10165. deprecated="not deprecated">
  10166. </constructor>
  10167. <method name="copyBytes"
  10168. abstract="false" native="false" synchronized="false"
  10169. static="true" final="false" visibility="public"
  10170. deprecated="not deprecated">
  10171. <param name="in" type="java.io.InputStream"/>
  10172. <param name="out" type="java.io.OutputStream"/>
  10173. <param name="buffSize" type="int"/>
  10174. <param name="close" type="boolean"/>
  10175. <exception name="IOException" type="java.io.IOException"/>
  10176. <doc>
  10177. <![CDATA[Copies from one stream to another.
  10178. @param in InputStrem to read from
  10179. @param out OutputStream to write to
  10180. @param buffSize the size of the buffer
  10181. @param close whether or not close the InputStream and
  10182. OutputStream at the end. The streams are closed in the finally clause.]]>
  10183. </doc>
  10184. </method>
  10185. <method name="copyBytes"
  10186. abstract="false" native="false" synchronized="false"
  10187. static="true" final="false" visibility="public"
  10188. deprecated="not deprecated">
  10189. <param name="in" type="java.io.InputStream"/>
  10190. <param name="out" type="java.io.OutputStream"/>
  10191. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10192. <exception name="IOException" type="java.io.IOException"/>
  10193. <doc>
  10194. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  10195. at the end</strong>.
  10196. @param in InputStrem to read from
  10197. @param out OutputStream to write to
  10198. @param conf the Configuration object]]>
  10199. </doc>
  10200. </method>
  10201. <method name="copyBytes"
  10202. abstract="false" native="false" synchronized="false"
  10203. static="true" final="false" visibility="public"
  10204. deprecated="not deprecated">
  10205. <param name="in" type="java.io.InputStream"/>
  10206. <param name="out" type="java.io.OutputStream"/>
  10207. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10208. <param name="close" type="boolean"/>
  10209. <exception name="IOException" type="java.io.IOException"/>
  10210. <doc>
  10211. <![CDATA[Copies from one stream to another.
  10212. @param in InputStrem to read from
  10213. @param out OutputStream to write to
  10214. @param conf the Configuration object
  10215. @param close whether or not close the InputStream and
  10216. OutputStream at the end. The streams are closed in the finally clause.]]>
  10217. </doc>
  10218. </method>
  10219. <method name="readFully"
  10220. abstract="false" native="false" synchronized="false"
  10221. static="true" final="false" visibility="public"
  10222. deprecated="not deprecated">
  10223. <param name="in" type="java.io.InputStream"/>
  10224. <param name="buf" type="byte[]"/>
  10225. <param name="off" type="int"/>
  10226. <param name="len" type="int"/>
  10227. <exception name="IOException" type="java.io.IOException"/>
  10228. <doc>
  10229. <![CDATA[Reads len bytes in a loop.
  10230. @param in The InputStream to read from
  10231. @param buf The buffer to fill
  10232. @param off offset from the buffer
  10233. @param len the length of bytes to read
  10234. @throws IOException if it could not read requested number of bytes
  10235. for any reason (including EOF)]]>
  10236. </doc>
  10237. </method>
  10238. <method name="skipFully"
  10239. abstract="false" native="false" synchronized="false"
  10240. static="true" final="false" visibility="public"
  10241. deprecated="not deprecated">
  10242. <param name="in" type="java.io.InputStream"/>
  10243. <param name="len" type="long"/>
  10244. <exception name="IOException" type="java.io.IOException"/>
  10245. <doc>
  10246. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  10247. @param in The InputStream to skip bytes from
  10248. @param len number of bytes to skip.
  10249. @throws IOException if it could not skip requested number of bytes
  10250. for any reason (including EOF)]]>
  10251. </doc>
  10252. </method>
  10253. <method name="cleanup"
  10254. abstract="false" native="false" synchronized="false"
  10255. static="true" final="false" visibility="public"
  10256. deprecated="not deprecated">
  10257. <param name="log" type="org.apache.commons.logging.Log"/>
  10258. <param name="closeables" type="java.io.Closeable[]"/>
  10259. <doc>
  10260. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  10261. null pointers. Must only be used for cleanup in exception handlers.
  10262. @param log the log to record problems to at debug level. Can be null.
  10263. @param closeables the objects to close]]>
  10264. </doc>
  10265. </method>
  10266. <method name="closeStream"
  10267. abstract="false" native="false" synchronized="false"
  10268. static="true" final="false" visibility="public"
  10269. deprecated="not deprecated">
  10270. <param name="stream" type="java.io.Closeable"/>
  10271. <doc>
  10272. <![CDATA[Closes the stream ignoring {@link IOException}.
  10273. Must only be called in cleaning up from exception handlers.
  10274. @param stream the Stream to close]]>
  10275. </doc>
  10276. </method>
  10277. <method name="closeSocket"
  10278. abstract="false" native="false" synchronized="false"
  10279. static="true" final="false" visibility="public"
  10280. deprecated="not deprecated">
  10281. <param name="sock" type="java.net.Socket"/>
  10282. <doc>
  10283. <![CDATA[Closes the socket ignoring {@link IOException}
  10284. @param sock the Socket to close]]>
  10285. </doc>
  10286. </method>
  10287. <doc>
  10288. <![CDATA[An utility class for I/O related functionality.]]>
  10289. </doc>
  10290. </class>
  10291. <!-- end class org.apache.hadoop.io.IOUtils -->
  10292. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  10293. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  10294. abstract="false"
  10295. static="true" final="false" visibility="public"
  10296. deprecated="not deprecated">
  10297. <constructor name="IOUtils.NullOutputStream"
  10298. static="false" final="false" visibility="public"
  10299. deprecated="not deprecated">
  10300. </constructor>
  10301. <method name="write"
  10302. abstract="false" native="false" synchronized="false"
  10303. static="false" final="false" visibility="public"
  10304. deprecated="not deprecated">
  10305. <param name="b" type="byte[]"/>
  10306. <param name="off" type="int"/>
  10307. <param name="len" type="int"/>
  10308. <exception name="IOException" type="java.io.IOException"/>
  10309. </method>
  10310. <method name="write"
  10311. abstract="false" native="false" synchronized="false"
  10312. static="false" final="false" visibility="public"
  10313. deprecated="not deprecated">
  10314. <param name="b" type="int"/>
  10315. <exception name="IOException" type="java.io.IOException"/>
  10316. </method>
  10317. <doc>
  10318. <![CDATA[/dev/null of OutputStreams.]]>
  10319. </doc>
  10320. </class>
  10321. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  10322. <!-- start class org.apache.hadoop.io.LongWritable -->
  10323. <class name="LongWritable" extends="java.lang.Object"
  10324. abstract="false"
  10325. static="false" final="false" visibility="public"
  10326. deprecated="not deprecated">
  10327. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10328. <constructor name="LongWritable"
  10329. static="false" final="false" visibility="public"
  10330. deprecated="not deprecated">
  10331. </constructor>
  10332. <constructor name="LongWritable" type="long"
  10333. static="false" final="false" visibility="public"
  10334. deprecated="not deprecated">
  10335. </constructor>
  10336. <method name="set"
  10337. abstract="false" native="false" synchronized="false"
  10338. static="false" final="false" visibility="public"
  10339. deprecated="not deprecated">
  10340. <param name="value" type="long"/>
  10341. <doc>
  10342. <![CDATA[Set the value of this LongWritable.]]>
  10343. </doc>
  10344. </method>
  10345. <method name="get" return="long"
  10346. abstract="false" native="false" synchronized="false"
  10347. static="false" final="false" visibility="public"
  10348. deprecated="not deprecated">
  10349. <doc>
  10350. <![CDATA[Return the value of this LongWritable.]]>
  10351. </doc>
  10352. </method>
  10353. <method name="readFields"
  10354. abstract="false" native="false" synchronized="false"
  10355. static="false" final="false" visibility="public"
  10356. deprecated="not deprecated">
  10357. <param name="in" type="java.io.DataInput"/>
  10358. <exception name="IOException" type="java.io.IOException"/>
  10359. </method>
  10360. <method name="write"
  10361. abstract="false" native="false" synchronized="false"
  10362. static="false" final="false" visibility="public"
  10363. deprecated="not deprecated">
  10364. <param name="out" type="java.io.DataOutput"/>
  10365. <exception name="IOException" type="java.io.IOException"/>
  10366. </method>
  10367. <method name="equals" return="boolean"
  10368. abstract="false" native="false" synchronized="false"
  10369. static="false" final="false" visibility="public"
  10370. deprecated="not deprecated">
  10371. <param name="o" type="java.lang.Object"/>
  10372. <doc>
  10373. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  10374. </doc>
  10375. </method>
  10376. <method name="hashCode" return="int"
  10377. abstract="false" native="false" synchronized="false"
  10378. static="false" final="false" visibility="public"
  10379. deprecated="not deprecated">
  10380. </method>
  10381. <method name="compareTo" return="int"
  10382. abstract="false" native="false" synchronized="false"
  10383. static="false" final="false" visibility="public"
  10384. deprecated="not deprecated">
  10385. <param name="o" type="java.lang.Object"/>
  10386. <doc>
  10387. <![CDATA[Compares two LongWritables.]]>
  10388. </doc>
  10389. </method>
  10390. <method name="toString" return="java.lang.String"
  10391. abstract="false" native="false" synchronized="false"
  10392. static="false" final="false" visibility="public"
  10393. deprecated="not deprecated">
  10394. </method>
  10395. <doc>
  10396. <![CDATA[A WritableComparable for longs.]]>
  10397. </doc>
  10398. </class>
  10399. <!-- end class org.apache.hadoop.io.LongWritable -->
  10400. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  10401. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10402. abstract="false"
  10403. static="true" final="false" visibility="public"
  10404. deprecated="not deprecated">
  10405. <constructor name="LongWritable.Comparator"
  10406. static="false" final="false" visibility="public"
  10407. deprecated="not deprecated">
  10408. </constructor>
  10409. <method name="compare" return="int"
  10410. abstract="false" native="false" synchronized="false"
  10411. static="false" final="false" visibility="public"
  10412. deprecated="not deprecated">
  10413. <param name="b1" type="byte[]"/>
  10414. <param name="s1" type="int"/>
  10415. <param name="l1" type="int"/>
  10416. <param name="b2" type="byte[]"/>
  10417. <param name="s2" type="int"/>
  10418. <param name="l2" type="int"/>
  10419. </method>
  10420. <doc>
  10421. <![CDATA[A Comparator optimized for LongWritable.]]>
  10422. </doc>
  10423. </class>
  10424. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  10425. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  10426. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  10427. abstract="false"
  10428. static="true" final="false" visibility="public"
  10429. deprecated="not deprecated">
  10430. <constructor name="LongWritable.DecreasingComparator"
  10431. static="false" final="false" visibility="public"
  10432. deprecated="not deprecated">
  10433. </constructor>
  10434. <method name="compare" return="int"
  10435. abstract="false" native="false" synchronized="false"
  10436. static="false" final="false" visibility="public"
  10437. deprecated="not deprecated">
  10438. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  10439. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  10440. </method>
  10441. <method name="compare" return="int"
  10442. abstract="false" native="false" synchronized="false"
  10443. static="false" final="false" visibility="public"
  10444. deprecated="not deprecated">
  10445. <param name="b1" type="byte[]"/>
  10446. <param name="s1" type="int"/>
  10447. <param name="l1" type="int"/>
  10448. <param name="b2" type="byte[]"/>
  10449. <param name="s2" type="int"/>
  10450. <param name="l2" type="int"/>
  10451. </method>
  10452. <doc>
  10453. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  10454. </doc>
  10455. </class>
  10456. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  10457. <!-- start class org.apache.hadoop.io.MapFile -->
  10458. <class name="MapFile" extends="java.lang.Object"
  10459. abstract="false"
  10460. static="false" final="false" visibility="public"
  10461. deprecated="not deprecated">
  10462. <constructor name="MapFile"
  10463. static="false" final="false" visibility="protected"
  10464. deprecated="not deprecated">
  10465. </constructor>
  10466. <method name="rename"
  10467. abstract="false" native="false" synchronized="false"
  10468. static="true" final="false" visibility="public"
  10469. deprecated="not deprecated">
  10470. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10471. <param name="oldName" type="java.lang.String"/>
  10472. <param name="newName" type="java.lang.String"/>
  10473. <exception name="IOException" type="java.io.IOException"/>
  10474. <doc>
  10475. <![CDATA[Renames an existing map directory.]]>
  10476. </doc>
  10477. </method>
  10478. <method name="delete"
  10479. abstract="false" native="false" synchronized="false"
  10480. static="true" final="false" visibility="public"
  10481. deprecated="not deprecated">
  10482. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10483. <param name="name" type="java.lang.String"/>
  10484. <exception name="IOException" type="java.io.IOException"/>
  10485. <doc>
  10486. <![CDATA[Deletes the named map file.]]>
  10487. </doc>
  10488. </method>
  10489. <method name="fix" return="long"
  10490. abstract="false" native="false" synchronized="false"
  10491. static="true" final="false" visibility="public"
  10492. deprecated="not deprecated">
  10493. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10494. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  10495. <param name="keyClass" type="java.lang.Class"/>
  10496. <param name="valueClass" type="java.lang.Class"/>
  10497. <param name="dryrun" type="boolean"/>
  10498. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10499. <exception name="Exception" type="java.lang.Exception"/>
  10500. <doc>
  10501. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  10502. @param fs filesystem
  10503. @param dir directory containing the MapFile data and index
  10504. @param keyClass key class (has to be a subclass of Writable)
  10505. @param valueClass value class (has to be a subclass of Writable)
  10506. @param dryrun do not perform any changes, just report what needs to be done
  10507. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  10508. @throws Exception]]>
  10509. </doc>
  10510. </method>
  10511. <method name="main"
  10512. abstract="false" native="false" synchronized="false"
  10513. static="true" final="false" visibility="public"
  10514. deprecated="not deprecated">
  10515. <param name="args" type="java.lang.String[]"/>
  10516. <exception name="Exception" type="java.lang.Exception"/>
  10517. </method>
  10518. <field name="INDEX_FILE_NAME" type="java.lang.String"
  10519. transient="false" volatile="false"
  10520. static="true" final="true" visibility="public"
  10521. deprecated="not deprecated">
  10522. <doc>
  10523. <![CDATA[The name of the index file.]]>
  10524. </doc>
  10525. </field>
  10526. <field name="DATA_FILE_NAME" type="java.lang.String"
  10527. transient="false" volatile="false"
  10528. static="true" final="true" visibility="public"
  10529. deprecated="not deprecated">
  10530. <doc>
  10531. <![CDATA[The name of the data file.]]>
  10532. </doc>
  10533. </field>
  10534. <doc>
  10535. <![CDATA[A file-based map from keys to values.
  10536. <p>A map is a directory containing two files, the <code>data</code> file,
  10537. containing all keys and values in the map, and a smaller <code>index</code>
  10538. file, containing a fraction of the keys. The fraction is determined by
  10539. {@link Writer#getIndexInterval()}.
  10540. <p>The index file is read entirely into memory. Thus key implementations
  10541. should try to keep themselves small.
  10542. <p>Map files are created by adding entries in-order. To maintain a large
  10543. database, perform updates by copying the previous version of a database and
  10544. merging in a sorted change list, to create a new version of the database in
  10545. a new file. Sorting large change lists can be done with {@link
  10546. SequenceFile.Sorter}.]]>
  10547. </doc>
  10548. </class>
  10549. <!-- end class org.apache.hadoop.io.MapFile -->
  10550. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  10551. <class name="MapFile.Reader" extends="java.lang.Object"
  10552. abstract="false"
  10553. static="true" final="false" visibility="public"
  10554. deprecated="not deprecated">
  10555. <implements name="java.io.Closeable"/>
  10556. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  10557. static="false" final="false" visibility="public"
  10558. deprecated="not deprecated">
  10559. <exception name="IOException" type="java.io.IOException"/>
  10560. <doc>
  10561. <![CDATA[Construct a map reader for the named map.]]>
  10562. </doc>
  10563. </constructor>
  10564. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  10565. static="false" final="false" visibility="public"
  10566. deprecated="not deprecated">
  10567. <exception name="IOException" type="java.io.IOException"/>
  10568. <doc>
  10569. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  10570. </doc>
  10571. </constructor>
  10572. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  10573. static="false" final="false" visibility="protected"
  10574. deprecated="not deprecated">
  10575. <exception name="IOException" type="java.io.IOException"/>
  10576. <doc>
  10577. <![CDATA[Hook to allow subclasses to defer opening streams until further
  10578. initialization is complete.
  10579. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  10580. </doc>
  10581. </constructor>
  10582. <method name="getKeyClass" return="java.lang.Class"
  10583. abstract="false" native="false" synchronized="false"
  10584. static="false" final="false" visibility="public"
  10585. deprecated="not deprecated">
  10586. <doc>
  10587. <![CDATA[Returns the class of keys in this file.]]>
  10588. </doc>
  10589. </method>
  10590. <method name="getValueClass" return="java.lang.Class"
  10591. abstract="false" native="false" synchronized="false"
  10592. static="false" final="false" visibility="public"
  10593. deprecated="not deprecated">
  10594. <doc>
  10595. <![CDATA[Returns the class of values in this file.]]>
  10596. </doc>
  10597. </method>
  10598. <method name="open"
  10599. abstract="false" native="false" synchronized="true"
  10600. static="false" final="false" visibility="protected"
  10601. deprecated="not deprecated">
  10602. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10603. <param name="dirName" type="java.lang.String"/>
  10604. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  10605. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10606. <exception name="IOException" type="java.io.IOException"/>
  10607. </method>
  10608. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  10609. abstract="false" native="false" synchronized="false"
  10610. static="false" final="false" visibility="protected"
  10611. deprecated="not deprecated">
  10612. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10613. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  10614. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10615. <exception name="IOException" type="java.io.IOException"/>
  10616. <doc>
  10617. <![CDATA[Override this method to specialize the type of
  10618. {@link SequenceFile.Reader} returned.]]>
  10619. </doc>
  10620. </method>
  10621. <method name="reset"
  10622. abstract="false" native="false" synchronized="true"
  10623. static="false" final="false" visibility="public"
  10624. deprecated="not deprecated">
  10625. <exception name="IOException" type="java.io.IOException"/>
  10626. <doc>
  10627. <![CDATA[Re-positions the reader before its first key.]]>
  10628. </doc>
  10629. </method>
  10630. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  10631. abstract="false" native="false" synchronized="true"
  10632. static="false" final="false" visibility="public"
  10633. deprecated="not deprecated">
  10634. <exception name="IOException" type="java.io.IOException"/>
  10635. <doc>
  10636. <![CDATA[Get the key at approximately the middle of the file.
  10637. @throws IOException]]>
  10638. </doc>
  10639. </method>
  10640. <method name="finalKey"
  10641. abstract="false" native="false" synchronized="true"
  10642. static="false" final="false" visibility="public"
  10643. deprecated="not deprecated">
  10644. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10645. <exception name="IOException" type="java.io.IOException"/>
  10646. <doc>
  10647. <![CDATA[Reads the final key from the file.
  10648. @param key key to read into]]>
  10649. </doc>
  10650. </method>
  10651. <method name="seek" return="boolean"
  10652. abstract="false" native="false" synchronized="true"
  10653. static="false" final="false" visibility="public"
  10654. deprecated="not deprecated">
  10655. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10656. <exception name="IOException" type="java.io.IOException"/>
  10657. <doc>
  10658. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  10659. first entry after the named key. Returns true iff the named key exists
  10660. in this map.]]>
  10661. </doc>
  10662. </method>
  10663. <method name="next" return="boolean"
  10664. abstract="false" native="false" synchronized="true"
  10665. static="false" final="false" visibility="public"
  10666. deprecated="not deprecated">
  10667. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10668. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10669. <exception name="IOException" type="java.io.IOException"/>
  10670. <doc>
  10671. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  10672. <code>val</code>. Returns true if such a pair exists and false when at
  10673. the end of the map]]>
  10674. </doc>
  10675. </method>
  10676. <method name="get" return="org.apache.hadoop.io.Writable"
  10677. abstract="false" native="false" synchronized="true"
  10678. static="false" final="false" visibility="public"
  10679. deprecated="not deprecated">
  10680. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10681. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10682. <exception name="IOException" type="java.io.IOException"/>
  10683. <doc>
  10684. <![CDATA[Return the value for the named key, or null if none exists.]]>
  10685. </doc>
  10686. </method>
  10687. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  10688. abstract="false" native="false" synchronized="true"
  10689. static="false" final="false" visibility="public"
  10690. deprecated="not deprecated">
  10691. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10692. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10693. <exception name="IOException" type="java.io.IOException"/>
  10694. <doc>
  10695. <![CDATA[Finds the record that is the closest match to the specified key.
  10696. Returns <code>key</code> or if it does not exist, at the first entry
  10697. after the named key.
  10698. - * @param key - key that we're trying to find
  10699. - * @param val - data value if key is found
  10700. - * @return - the key that was the closest match or null if eof.]]>
  10701. </doc>
  10702. </method>
  10703. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  10704. abstract="false" native="false" synchronized="true"
  10705. static="false" final="false" visibility="public"
  10706. deprecated="not deprecated">
  10707. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10708. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10709. <param name="before" type="boolean"/>
  10710. <exception name="IOException" type="java.io.IOException"/>
  10711. <doc>
  10712. <![CDATA[Finds the record that is the closest match to the specified key.
  10713. @param key - key that we're trying to find
  10714. @param val - data value if key is found
  10715. @param before - IF true, and <code>key</code> does not exist, return
  10716. the first entry that falls just before the <code>key</code>. Otherwise,
  10717. return the record that sorts just after.
  10718. @return - the key that was the closest match or null if eof.]]>
  10719. </doc>
  10720. </method>
  10721. <method name="close"
  10722. abstract="false" native="false" synchronized="true"
  10723. static="false" final="false" visibility="public"
  10724. deprecated="not deprecated">
  10725. <exception name="IOException" type="java.io.IOException"/>
  10726. <doc>
  10727. <![CDATA[Close the map.]]>
  10728. </doc>
  10729. </method>
  10730. <doc>
  10731. <![CDATA[Provide access to an existing map.]]>
  10732. </doc>
  10733. </class>
  10734. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  10735. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  10736. <class name="MapFile.Writer" extends="java.lang.Object"
  10737. abstract="false"
  10738. static="true" final="false" visibility="public"
  10739. deprecated="not deprecated">
  10740. <implements name="java.io.Closeable"/>
  10741. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  10742. static="false" final="false" visibility="public"
  10743. deprecated="not deprecated">
  10744. <exception name="IOException" type="java.io.IOException"/>
  10745. <doc>
  10746. <![CDATA[Create the named map for keys of the named class.]]>
  10747. </doc>
  10748. </constructor>
  10749. <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"
  10750. static="false" final="false" visibility="public"
  10751. deprecated="not deprecated">
  10752. <exception name="IOException" type="java.io.IOException"/>
  10753. <doc>
  10754. <![CDATA[Create the named map for keys of the named class.]]>
  10755. </doc>
  10756. </constructor>
  10757. <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"
  10758. static="false" final="false" visibility="public"
  10759. deprecated="not deprecated">
  10760. <exception name="IOException" type="java.io.IOException"/>
  10761. <doc>
  10762. <![CDATA[Create the named map for keys of the named class.]]>
  10763. </doc>
  10764. </constructor>
  10765. <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"
  10766. static="false" final="false" visibility="public"
  10767. deprecated="not deprecated">
  10768. <exception name="IOException" type="java.io.IOException"/>
  10769. <doc>
  10770. <![CDATA[Create the named map for keys of the named class.]]>
  10771. </doc>
  10772. </constructor>
  10773. <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"
  10774. static="false" final="false" visibility="public"
  10775. deprecated="not deprecated">
  10776. <exception name="IOException" type="java.io.IOException"/>
  10777. <doc>
  10778. <![CDATA[Create the named map using the named key comparator.]]>
  10779. </doc>
  10780. </constructor>
  10781. <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"
  10782. static="false" final="false" visibility="public"
  10783. deprecated="not deprecated">
  10784. <exception name="IOException" type="java.io.IOException"/>
  10785. <doc>
  10786. <![CDATA[Create the named map using the named key comparator.]]>
  10787. </doc>
  10788. </constructor>
  10789. <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"
  10790. static="false" final="false" visibility="public"
  10791. deprecated="not deprecated">
  10792. <exception name="IOException" type="java.io.IOException"/>
  10793. <doc>
  10794. <![CDATA[Create the named map using the named key comparator.]]>
  10795. </doc>
  10796. </constructor>
  10797. <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"
  10798. static="false" final="false" visibility="public"
  10799. deprecated="not deprecated">
  10800. <exception name="IOException" type="java.io.IOException"/>
  10801. <doc>
  10802. <![CDATA[Create the named map using the named key comparator.]]>
  10803. </doc>
  10804. </constructor>
  10805. <method name="getIndexInterval" return="int"
  10806. abstract="false" native="false" synchronized="false"
  10807. static="false" final="false" visibility="public"
  10808. deprecated="not deprecated">
  10809. <doc>
  10810. <![CDATA[The number of entries that are added before an index entry is added.]]>
  10811. </doc>
  10812. </method>
  10813. <method name="setIndexInterval"
  10814. abstract="false" native="false" synchronized="false"
  10815. static="false" final="false" visibility="public"
  10816. deprecated="not deprecated">
  10817. <param name="interval" type="int"/>
  10818. <doc>
  10819. <![CDATA[Sets the index interval.
  10820. @see #getIndexInterval()]]>
  10821. </doc>
  10822. </method>
  10823. <method name="setIndexInterval"
  10824. abstract="false" native="false" synchronized="false"
  10825. static="true" final="false" visibility="public"
  10826. deprecated="not deprecated">
  10827. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10828. <param name="interval" type="int"/>
  10829. <doc>
  10830. <![CDATA[Sets the index interval and stores it in conf
  10831. @see #getIndexInterval()]]>
  10832. </doc>
  10833. </method>
  10834. <method name="close"
  10835. abstract="false" native="false" synchronized="true"
  10836. static="false" final="false" visibility="public"
  10837. deprecated="not deprecated">
  10838. <exception name="IOException" type="java.io.IOException"/>
  10839. <doc>
  10840. <![CDATA[Close the map.]]>
  10841. </doc>
  10842. </method>
  10843. <method name="append"
  10844. abstract="false" native="false" synchronized="true"
  10845. static="false" final="false" visibility="public"
  10846. deprecated="not deprecated">
  10847. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10848. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10849. <exception name="IOException" type="java.io.IOException"/>
  10850. <doc>
  10851. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  10852. to the previous key added to the map.]]>
  10853. </doc>
  10854. </method>
  10855. <doc>
  10856. <![CDATA[Writes a new map.]]>
  10857. </doc>
  10858. </class>
  10859. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  10860. <!-- start class org.apache.hadoop.io.MapWritable -->
  10861. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  10862. abstract="false"
  10863. static="false" final="false" visibility="public"
  10864. deprecated="not deprecated">
  10865. <implements name="java.util.Map"/>
  10866. <constructor name="MapWritable"
  10867. static="false" final="false" visibility="public"
  10868. deprecated="not deprecated">
  10869. <doc>
  10870. <![CDATA[Default constructor.]]>
  10871. </doc>
  10872. </constructor>
  10873. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  10874. static="false" final="false" visibility="public"
  10875. deprecated="not deprecated">
  10876. <doc>
  10877. <![CDATA[Copy constructor.
  10878. @param other the map to copy from]]>
  10879. </doc>
  10880. </constructor>
  10881. <method name="clear"
  10882. abstract="false" native="false" synchronized="false"
  10883. static="false" final="false" visibility="public"
  10884. deprecated="not deprecated">
  10885. <doc>
  10886. <![CDATA[{@inheritDoc}]]>
  10887. </doc>
  10888. </method>
  10889. <method name="containsKey" return="boolean"
  10890. abstract="false" native="false" synchronized="false"
  10891. static="false" final="false" visibility="public"
  10892. deprecated="not deprecated">
  10893. <param name="key" type="java.lang.Object"/>
  10894. <doc>
  10895. <![CDATA[{@inheritDoc}]]>
  10896. </doc>
  10897. </method>
  10898. <method name="containsValue" return="boolean"
  10899. abstract="false" native="false" synchronized="false"
  10900. static="false" final="false" visibility="public"
  10901. deprecated="not deprecated">
  10902. <param name="value" type="java.lang.Object"/>
  10903. <doc>
  10904. <![CDATA[{@inheritDoc}]]>
  10905. </doc>
  10906. </method>
  10907. <method name="entrySet" return="java.util.Set"
  10908. abstract="false" native="false" synchronized="false"
  10909. static="false" final="false" visibility="public"
  10910. deprecated="not deprecated">
  10911. <doc>
  10912. <![CDATA[{@inheritDoc}]]>
  10913. </doc>
  10914. </method>
  10915. <method name="get" return="org.apache.hadoop.io.Writable"
  10916. abstract="false" native="false" synchronized="false"
  10917. static="false" final="false" visibility="public"
  10918. deprecated="not deprecated">
  10919. <param name="key" type="java.lang.Object"/>
  10920. <doc>
  10921. <![CDATA[{@inheritDoc}]]>
  10922. </doc>
  10923. </method>
  10924. <method name="isEmpty" return="boolean"
  10925. abstract="false" native="false" synchronized="false"
  10926. static="false" final="false" visibility="public"
  10927. deprecated="not deprecated">
  10928. <doc>
  10929. <![CDATA[{@inheritDoc}]]>
  10930. </doc>
  10931. </method>
  10932. <method name="keySet" return="java.util.Set"
  10933. abstract="false" native="false" synchronized="false"
  10934. static="false" final="false" visibility="public"
  10935. deprecated="not deprecated">
  10936. <doc>
  10937. <![CDATA[{@inheritDoc}]]>
  10938. </doc>
  10939. </method>
  10940. <method name="put" return="org.apache.hadoop.io.Writable"
  10941. abstract="false" native="false" synchronized="false"
  10942. static="false" final="false" visibility="public"
  10943. deprecated="not deprecated">
  10944. <param name="key" type="org.apache.hadoop.io.Writable"/>
  10945. <param name="value" type="org.apache.hadoop.io.Writable"/>
  10946. <doc>
  10947. <![CDATA[{@inheritDoc}]]>
  10948. </doc>
  10949. </method>
  10950. <method name="putAll"
  10951. abstract="false" native="false" synchronized="false"
  10952. static="false" final="false" visibility="public"
  10953. deprecated="not deprecated">
  10954. <param name="t" type="java.util.Map"/>
  10955. <doc>
  10956. <![CDATA[{@inheritDoc}]]>
  10957. </doc>
  10958. </method>
  10959. <method name="remove" return="org.apache.hadoop.io.Writable"
  10960. abstract="false" native="false" synchronized="false"
  10961. static="false" final="false" visibility="public"
  10962. deprecated="not deprecated">
  10963. <param name="key" type="java.lang.Object"/>
  10964. <doc>
  10965. <![CDATA[{@inheritDoc}]]>
  10966. </doc>
  10967. </method>
  10968. <method name="size" return="int"
  10969. abstract="false" native="false" synchronized="false"
  10970. static="false" final="false" visibility="public"
  10971. deprecated="not deprecated">
  10972. <doc>
  10973. <![CDATA[{@inheritDoc}]]>
  10974. </doc>
  10975. </method>
  10976. <method name="values" return="java.util.Collection"
  10977. abstract="false" native="false" synchronized="false"
  10978. static="false" final="false" visibility="public"
  10979. deprecated="not deprecated">
  10980. <doc>
  10981. <![CDATA[{@inheritDoc}]]>
  10982. </doc>
  10983. </method>
  10984. <method name="write"
  10985. abstract="false" native="false" synchronized="false"
  10986. static="false" final="false" visibility="public"
  10987. deprecated="not deprecated">
  10988. <param name="out" type="java.io.DataOutput"/>
  10989. <exception name="IOException" type="java.io.IOException"/>
  10990. <doc>
  10991. <![CDATA[{@inheritDoc}]]>
  10992. </doc>
  10993. </method>
  10994. <method name="readFields"
  10995. abstract="false" native="false" synchronized="false"
  10996. static="false" final="false" visibility="public"
  10997. deprecated="not deprecated">
  10998. <param name="in" type="java.io.DataInput"/>
  10999. <exception name="IOException" type="java.io.IOException"/>
  11000. <doc>
  11001. <![CDATA[{@inheritDoc}]]>
  11002. </doc>
  11003. </method>
  11004. <doc>
  11005. <![CDATA[A Writable Map.]]>
  11006. </doc>
  11007. </class>
  11008. <!-- end class org.apache.hadoop.io.MapWritable -->
  11009. <!-- start class org.apache.hadoop.io.MD5Hash -->
  11010. <class name="MD5Hash" extends="java.lang.Object"
  11011. abstract="false"
  11012. static="false" final="false" visibility="public"
  11013. deprecated="not deprecated">
  11014. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11015. <constructor name="MD5Hash"
  11016. static="false" final="false" visibility="public"
  11017. deprecated="not deprecated">
  11018. <doc>
  11019. <![CDATA[Constructs an MD5Hash.]]>
  11020. </doc>
  11021. </constructor>
  11022. <constructor name="MD5Hash" type="java.lang.String"
  11023. static="false" final="false" visibility="public"
  11024. deprecated="not deprecated">
  11025. <doc>
  11026. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  11027. </doc>
  11028. </constructor>
  11029. <constructor name="MD5Hash" type="byte[]"
  11030. static="false" final="false" visibility="public"
  11031. deprecated="not deprecated">
  11032. <doc>
  11033. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  11034. </doc>
  11035. </constructor>
  11036. <method name="readFields"
  11037. abstract="false" native="false" synchronized="false"
  11038. static="false" final="false" visibility="public"
  11039. deprecated="not deprecated">
  11040. <param name="in" type="java.io.DataInput"/>
  11041. <exception name="IOException" type="java.io.IOException"/>
  11042. </method>
  11043. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  11044. abstract="false" native="false" synchronized="false"
  11045. static="true" final="false" visibility="public"
  11046. deprecated="not deprecated">
  11047. <param name="in" type="java.io.DataInput"/>
  11048. <exception name="IOException" type="java.io.IOException"/>
  11049. <doc>
  11050. <![CDATA[Constructs, reads and returns an instance.]]>
  11051. </doc>
  11052. </method>
  11053. <method name="write"
  11054. abstract="false" native="false" synchronized="false"
  11055. static="false" final="false" visibility="public"
  11056. deprecated="not deprecated">
  11057. <param name="out" type="java.io.DataOutput"/>
  11058. <exception name="IOException" type="java.io.IOException"/>
  11059. </method>
  11060. <method name="set"
  11061. abstract="false" native="false" synchronized="false"
  11062. static="false" final="false" visibility="public"
  11063. deprecated="not deprecated">
  11064. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  11065. <doc>
  11066. <![CDATA[Copy the contents of another instance into this instance.]]>
  11067. </doc>
  11068. </method>
  11069. <method name="getDigest" return="byte[]"
  11070. abstract="false" native="false" synchronized="false"
  11071. static="false" final="false" visibility="public"
  11072. deprecated="not deprecated">
  11073. <doc>
  11074. <![CDATA[Returns the digest bytes.]]>
  11075. </doc>
  11076. </method>
  11077. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11078. abstract="false" native="false" synchronized="false"
  11079. static="true" final="false" visibility="public"
  11080. deprecated="not deprecated">
  11081. <param name="data" type="byte[]"/>
  11082. <doc>
  11083. <![CDATA[Construct a hash value for a byte array.]]>
  11084. </doc>
  11085. </method>
  11086. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11087. abstract="false" native="false" synchronized="false"
  11088. static="true" final="false" visibility="public"
  11089. deprecated="not deprecated">
  11090. <param name="in" type="java.io.InputStream"/>
  11091. <exception name="IOException" type="java.io.IOException"/>
  11092. <doc>
  11093. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  11094. </doc>
  11095. </method>
  11096. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11097. abstract="false" native="false" synchronized="false"
  11098. static="true" final="false" visibility="public"
  11099. deprecated="not deprecated">
  11100. <param name="data" type="byte[]"/>
  11101. <param name="start" type="int"/>
  11102. <param name="len" type="int"/>
  11103. <doc>
  11104. <![CDATA[Construct a hash value for a byte array.]]>
  11105. </doc>
  11106. </method>
  11107. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11108. abstract="false" native="false" synchronized="false"
  11109. static="true" final="false" visibility="public"
  11110. deprecated="not deprecated">
  11111. <param name="string" type="java.lang.String"/>
  11112. <doc>
  11113. <![CDATA[Construct a hash value for a String.]]>
  11114. </doc>
  11115. </method>
  11116. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11117. abstract="false" native="false" synchronized="false"
  11118. static="true" final="false" visibility="public"
  11119. deprecated="not deprecated">
  11120. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  11121. <doc>
  11122. <![CDATA[Construct a hash value for a String.]]>
  11123. </doc>
  11124. </method>
  11125. <method name="halfDigest" return="long"
  11126. abstract="false" native="false" synchronized="false"
  11127. static="false" final="false" visibility="public"
  11128. deprecated="not deprecated">
  11129. <doc>
  11130. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  11131. </doc>
  11132. </method>
  11133. <method name="quarterDigest" return="int"
  11134. abstract="false" native="false" synchronized="false"
  11135. static="false" final="false" visibility="public"
  11136. deprecated="not deprecated">
  11137. <doc>
  11138. <![CDATA[Return a 32-bit digest of the MD5.
  11139. @return the first 4 bytes of the md5]]>
  11140. </doc>
  11141. </method>
  11142. <method name="equals" return="boolean"
  11143. abstract="false" native="false" synchronized="false"
  11144. static="false" final="false" visibility="public"
  11145. deprecated="not deprecated">
  11146. <param name="o" type="java.lang.Object"/>
  11147. <doc>
  11148. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  11149. same values.]]>
  11150. </doc>
  11151. </method>
  11152. <method name="hashCode" return="int"
  11153. abstract="false" native="false" synchronized="false"
  11154. static="false" final="false" visibility="public"
  11155. deprecated="not deprecated">
  11156. <doc>
  11157. <![CDATA[Returns a hash code value for this object.
  11158. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  11159. </doc>
  11160. </method>
  11161. <method name="compareTo" return="int"
  11162. abstract="false" native="false" synchronized="false"
  11163. static="false" final="false" visibility="public"
  11164. deprecated="not deprecated">
  11165. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  11166. <doc>
  11167. <![CDATA[Compares this object with the specified object for order.]]>
  11168. </doc>
  11169. </method>
  11170. <method name="toString" return="java.lang.String"
  11171. abstract="false" native="false" synchronized="false"
  11172. static="false" final="false" visibility="public"
  11173. deprecated="not deprecated">
  11174. <doc>
  11175. <![CDATA[Returns a string representation of this object.]]>
  11176. </doc>
  11177. </method>
  11178. <method name="setDigest"
  11179. abstract="false" native="false" synchronized="false"
  11180. static="false" final="false" visibility="public"
  11181. deprecated="not deprecated">
  11182. <param name="hex" type="java.lang.String"/>
  11183. <doc>
  11184. <![CDATA[Sets the digest value from a hex string.]]>
  11185. </doc>
  11186. </method>
  11187. <field name="MD5_LEN" type="int"
  11188. transient="false" volatile="false"
  11189. static="true" final="true" visibility="public"
  11190. deprecated="not deprecated">
  11191. </field>
  11192. <doc>
  11193. <![CDATA[A Writable for MD5 hash values.]]>
  11194. </doc>
  11195. </class>
  11196. <!-- end class org.apache.hadoop.io.MD5Hash -->
  11197. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  11198. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11199. abstract="false"
  11200. static="true" final="false" visibility="public"
  11201. deprecated="not deprecated">
  11202. <constructor name="MD5Hash.Comparator"
  11203. static="false" final="false" visibility="public"
  11204. deprecated="not deprecated">
  11205. </constructor>
  11206. <method name="compare" return="int"
  11207. abstract="false" native="false" synchronized="false"
  11208. static="false" final="false" visibility="public"
  11209. deprecated="not deprecated">
  11210. <param name="b1" type="byte[]"/>
  11211. <param name="s1" type="int"/>
  11212. <param name="l1" type="int"/>
  11213. <param name="b2" type="byte[]"/>
  11214. <param name="s2" type="int"/>
  11215. <param name="l2" type="int"/>
  11216. </method>
  11217. <doc>
  11218. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  11219. </doc>
  11220. </class>
  11221. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  11222. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  11223. <class name="MultipleIOException" extends="java.io.IOException"
  11224. abstract="false"
  11225. static="false" final="false" visibility="public"
  11226. deprecated="not deprecated">
  11227. <method name="getExceptions" return="java.util.List"
  11228. abstract="false" native="false" synchronized="false"
  11229. static="false" final="false" visibility="public"
  11230. deprecated="not deprecated">
  11231. <doc>
  11232. <![CDATA[@return the underlying exceptions]]>
  11233. </doc>
  11234. </method>
  11235. <method name="createIOException" return="java.io.IOException"
  11236. abstract="false" native="false" synchronized="false"
  11237. static="true" final="false" visibility="public"
  11238. deprecated="not deprecated">
  11239. <param name="exceptions" type="java.util.List"/>
  11240. <doc>
  11241. <![CDATA[A convenient method to create an {@link IOException}.]]>
  11242. </doc>
  11243. </method>
  11244. <doc>
  11245. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  11246. </doc>
  11247. </class>
  11248. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  11249. <!-- start class org.apache.hadoop.io.NullWritable -->
  11250. <class name="NullWritable" extends="java.lang.Object"
  11251. abstract="false"
  11252. static="false" final="false" visibility="public"
  11253. deprecated="not deprecated">
  11254. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11255. <method name="get" return="org.apache.hadoop.io.NullWritable"
  11256. abstract="false" native="false" synchronized="false"
  11257. static="true" final="false" visibility="public"
  11258. deprecated="not deprecated">
  11259. <doc>
  11260. <![CDATA[Returns the single instance of this class.]]>
  11261. </doc>
  11262. </method>
  11263. <method name="toString" return="java.lang.String"
  11264. abstract="false" native="false" synchronized="false"
  11265. static="false" final="false" visibility="public"
  11266. deprecated="not deprecated">
  11267. </method>
  11268. <method name="hashCode" return="int"
  11269. abstract="false" native="false" synchronized="false"
  11270. static="false" final="false" visibility="public"
  11271. deprecated="not deprecated">
  11272. </method>
  11273. <method name="compareTo" return="int"
  11274. abstract="false" native="false" synchronized="false"
  11275. static="false" final="false" visibility="public"
  11276. deprecated="not deprecated">
  11277. <param name="other" type="java.lang.Object"/>
  11278. </method>
  11279. <method name="equals" return="boolean"
  11280. abstract="false" native="false" synchronized="false"
  11281. static="false" final="false" visibility="public"
  11282. deprecated="not deprecated">
  11283. <param name="other" type="java.lang.Object"/>
  11284. </method>
  11285. <method name="readFields"
  11286. abstract="false" native="false" synchronized="false"
  11287. static="false" final="false" visibility="public"
  11288. deprecated="not deprecated">
  11289. <param name="in" type="java.io.DataInput"/>
  11290. <exception name="IOException" type="java.io.IOException"/>
  11291. </method>
  11292. <method name="write"
  11293. abstract="false" native="false" synchronized="false"
  11294. static="false" final="false" visibility="public"
  11295. deprecated="not deprecated">
  11296. <param name="out" type="java.io.DataOutput"/>
  11297. <exception name="IOException" type="java.io.IOException"/>
  11298. </method>
  11299. <doc>
  11300. <![CDATA[Singleton Writable with no data.]]>
  11301. </doc>
  11302. </class>
  11303. <!-- end class org.apache.hadoop.io.NullWritable -->
  11304. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  11305. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11306. abstract="false"
  11307. static="true" final="false" visibility="public"
  11308. deprecated="not deprecated">
  11309. <constructor name="NullWritable.Comparator"
  11310. static="false" final="false" visibility="public"
  11311. deprecated="not deprecated">
  11312. </constructor>
  11313. <method name="compare" return="int"
  11314. abstract="false" native="false" synchronized="false"
  11315. static="false" final="false" visibility="public"
  11316. deprecated="not deprecated">
  11317. <param name="b1" type="byte[]"/>
  11318. <param name="s1" type="int"/>
  11319. <param name="l1" type="int"/>
  11320. <param name="b2" type="byte[]"/>
  11321. <param name="s2" type="int"/>
  11322. <param name="l2" type="int"/>
  11323. <doc>
  11324. <![CDATA[Compare the buffers in serialized form.]]>
  11325. </doc>
  11326. </method>
  11327. <doc>
  11328. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  11329. </doc>
  11330. </class>
  11331. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  11332. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  11333. <class name="ObjectWritable" extends="java.lang.Object"
  11334. abstract="false"
  11335. static="false" final="false" visibility="public"
  11336. deprecated="not deprecated">
  11337. <implements name="org.apache.hadoop.io.Writable"/>
  11338. <implements name="org.apache.hadoop.conf.Configurable"/>
  11339. <constructor name="ObjectWritable"
  11340. static="false" final="false" visibility="public"
  11341. deprecated="not deprecated">
  11342. </constructor>
  11343. <constructor name="ObjectWritable" type="java.lang.Object"
  11344. static="false" final="false" visibility="public"
  11345. deprecated="not deprecated">
  11346. </constructor>
  11347. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  11348. static="false" final="false" visibility="public"
  11349. deprecated="not deprecated">
  11350. </constructor>
  11351. <method name="get" return="java.lang.Object"
  11352. abstract="false" native="false" synchronized="false"
  11353. static="false" final="false" visibility="public"
  11354. deprecated="not deprecated">
  11355. <doc>
  11356. <![CDATA[Return the instance, or null if none.]]>
  11357. </doc>
  11358. </method>
  11359. <method name="getDeclaredClass" return="java.lang.Class"
  11360. abstract="false" native="false" synchronized="false"
  11361. static="false" final="false" visibility="public"
  11362. deprecated="not deprecated">
  11363. <doc>
  11364. <![CDATA[Return the class this is meant to be.]]>
  11365. </doc>
  11366. </method>
  11367. <method name="set"
  11368. abstract="false" native="false" synchronized="false"
  11369. static="false" final="false" visibility="public"
  11370. deprecated="not deprecated">
  11371. <param name="instance" type="java.lang.Object"/>
  11372. <doc>
  11373. <![CDATA[Reset the instance.]]>
  11374. </doc>
  11375. </method>
  11376. <method name="toString" return="java.lang.String"
  11377. abstract="false" native="false" synchronized="false"
  11378. static="false" final="false" visibility="public"
  11379. deprecated="not deprecated">
  11380. </method>
  11381. <method name="readFields"
  11382. abstract="false" native="false" synchronized="false"
  11383. static="false" final="false" visibility="public"
  11384. deprecated="not deprecated">
  11385. <param name="in" type="java.io.DataInput"/>
  11386. <exception name="IOException" type="java.io.IOException"/>
  11387. </method>
  11388. <method name="write"
  11389. abstract="false" native="false" synchronized="false"
  11390. static="false" final="false" visibility="public"
  11391. deprecated="not deprecated">
  11392. <param name="out" type="java.io.DataOutput"/>
  11393. <exception name="IOException" type="java.io.IOException"/>
  11394. </method>
  11395. <method name="writeObject"
  11396. abstract="false" native="false" synchronized="false"
  11397. static="true" final="false" visibility="public"
  11398. deprecated="not deprecated">
  11399. <param name="out" type="java.io.DataOutput"/>
  11400. <param name="instance" type="java.lang.Object"/>
  11401. <param name="declaredClass" type="java.lang.Class"/>
  11402. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11403. <exception name="IOException" type="java.io.IOException"/>
  11404. <doc>
  11405. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  11406. the preceding.]]>
  11407. </doc>
  11408. </method>
  11409. <method name="readObject" return="java.lang.Object"
  11410. abstract="false" native="false" synchronized="false"
  11411. static="true" final="false" visibility="public"
  11412. deprecated="not deprecated">
  11413. <param name="in" type="java.io.DataInput"/>
  11414. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11415. <exception name="IOException" type="java.io.IOException"/>
  11416. <doc>
  11417. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  11418. the preceding.]]>
  11419. </doc>
  11420. </method>
  11421. <method name="readObject" return="java.lang.Object"
  11422. abstract="false" native="false" synchronized="false"
  11423. static="true" final="false" visibility="public"
  11424. deprecated="not deprecated">
  11425. <param name="in" type="java.io.DataInput"/>
  11426. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  11427. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11428. <exception name="IOException" type="java.io.IOException"/>
  11429. <doc>
  11430. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  11431. the preceding.]]>
  11432. </doc>
  11433. </method>
  11434. <method name="setConf"
  11435. abstract="false" native="false" synchronized="false"
  11436. static="false" final="false" visibility="public"
  11437. deprecated="not deprecated">
  11438. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11439. </method>
  11440. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  11441. abstract="false" native="false" synchronized="false"
  11442. static="false" final="false" visibility="public"
  11443. deprecated="not deprecated">
  11444. </method>
  11445. <doc>
  11446. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  11447. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  11448. </doc>
  11449. </class>
  11450. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  11451. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  11452. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  11453. abstract="false"
  11454. static="false" final="false" visibility="public"
  11455. deprecated="not deprecated">
  11456. <constructor name="OutputBuffer"
  11457. static="false" final="false" visibility="public"
  11458. deprecated="not deprecated">
  11459. <doc>
  11460. <![CDATA[Constructs a new empty buffer.]]>
  11461. </doc>
  11462. </constructor>
  11463. <method name="getData" return="byte[]"
  11464. abstract="false" native="false" synchronized="false"
  11465. static="false" final="false" visibility="public"
  11466. deprecated="not deprecated">
  11467. <doc>
  11468. <![CDATA[Returns the current contents of the buffer.
  11469. Data is only valid to {@link #getLength()}.]]>
  11470. </doc>
  11471. </method>
  11472. <method name="getLength" return="int"
  11473. abstract="false" native="false" synchronized="false"
  11474. static="false" final="false" visibility="public"
  11475. deprecated="not deprecated">
  11476. <doc>
  11477. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  11478. </doc>
  11479. </method>
  11480. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  11481. abstract="false" native="false" synchronized="false"
  11482. static="false" final="false" visibility="public"
  11483. deprecated="not deprecated">
  11484. <doc>
  11485. <![CDATA[Resets the buffer to empty.]]>
  11486. </doc>
  11487. </method>
  11488. <method name="write"
  11489. abstract="false" native="false" synchronized="false"
  11490. static="false" final="false" visibility="public"
  11491. deprecated="not deprecated">
  11492. <param name="in" type="java.io.InputStream"/>
  11493. <param name="length" type="int"/>
  11494. <exception name="IOException" type="java.io.IOException"/>
  11495. <doc>
  11496. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  11497. </doc>
  11498. </method>
  11499. <doc>
  11500. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  11501. buffer.
  11502. <p>This saves memory over creating a new OutputStream and
  11503. ByteArrayOutputStream each time data is written.
  11504. <p>Typical usage is something like the following:<pre>
  11505. OutputBuffer buffer = new OutputBuffer();
  11506. while (... loop condition ...) {
  11507. buffer.reset();
  11508. ... write buffer using OutputStream methods ...
  11509. byte[] data = buffer.getData();
  11510. int dataLength = buffer.getLength();
  11511. ... write data to its ultimate destination ...
  11512. }
  11513. </pre>
  11514. @see DataOutputBuffer
  11515. @see InputBuffer]]>
  11516. </doc>
  11517. </class>
  11518. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  11519. <!-- start interface org.apache.hadoop.io.RawComparator -->
  11520. <interface name="RawComparator" abstract="true"
  11521. static="false" final="false" visibility="public"
  11522. deprecated="not deprecated">
  11523. <implements name="java.util.Comparator"/>
  11524. <method name="compare" return="int"
  11525. abstract="false" native="false" synchronized="false"
  11526. static="false" final="false" visibility="public"
  11527. deprecated="not deprecated">
  11528. <param name="b1" type="byte[]"/>
  11529. <param name="s1" type="int"/>
  11530. <param name="l1" type="int"/>
  11531. <param name="b2" type="byte[]"/>
  11532. <param name="s2" type="int"/>
  11533. <param name="l2" type="int"/>
  11534. </method>
  11535. <doc>
  11536. <![CDATA[<p>
  11537. A {@link Comparator} that operates directly on byte representations of
  11538. objects.
  11539. </p>
  11540. @param <T>
  11541. @see DeserializerComparator]]>
  11542. </doc>
  11543. </interface>
  11544. <!-- end interface org.apache.hadoop.io.RawComparator -->
  11545. <!-- start class org.apache.hadoop.io.SequenceFile -->
  11546. <class name="SequenceFile" extends="java.lang.Object"
  11547. abstract="false"
  11548. static="false" final="false" visibility="public"
  11549. deprecated="not deprecated">
  11550. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  11551. abstract="false" native="false" synchronized="false"
  11552. static="true" final="false" visibility="public"
  11553. deprecated="Use
  11554. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  11555. to get {@link CompressionType} for job-outputs.">
  11556. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  11557. <doc>
  11558. <![CDATA[Get the compression type for the reduce outputs
  11559. @param job the job config to look in
  11560. @return the kind of compression to use
  11561. @deprecated Use
  11562. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  11563. to get {@link CompressionType} for job-outputs.]]>
  11564. </doc>
  11565. </method>
  11566. <method name="setCompressionType"
  11567. abstract="false" native="false" synchronized="false"
  11568. static="true" final="false" visibility="public"
  11569. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  11570. the {@link CompressionType} while creating the {@link SequenceFile} or
  11571. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  11572. to specify the {@link CompressionType} for job-outputs.
  11573. or">
  11574. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  11575. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11576. <doc>
  11577. <![CDATA[Set the compression type for sequence files.
  11578. @param job the configuration to modify
  11579. @param val the new compression type (none, block, record)
  11580. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  11581. the {@link CompressionType} while creating the {@link SequenceFile} or
  11582. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  11583. to specify the {@link CompressionType} for job-outputs.
  11584. or]]>
  11585. </doc>
  11586. </method>
  11587. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11588. abstract="false" native="false" synchronized="false"
  11589. static="true" final="false" visibility="public"
  11590. deprecated="not deprecated">
  11591. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11592. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11593. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11594. <param name="keyClass" type="java.lang.Class"/>
  11595. <param name="valClass" type="java.lang.Class"/>
  11596. <exception name="IOException" type="java.io.IOException"/>
  11597. <doc>
  11598. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11599. @param fs The configured filesystem.
  11600. @param conf The configuration.
  11601. @param name The name of the file.
  11602. @param keyClass The 'key' type.
  11603. @param valClass The 'value' type.
  11604. @return Returns the handle to the constructed SequenceFile Writer.
  11605. @throws IOException]]>
  11606. </doc>
  11607. </method>
  11608. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11609. abstract="false" native="false" synchronized="false"
  11610. static="true" final="false" visibility="public"
  11611. deprecated="not deprecated">
  11612. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11613. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11614. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11615. <param name="keyClass" type="java.lang.Class"/>
  11616. <param name="valClass" type="java.lang.Class"/>
  11617. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11618. <exception name="IOException" type="java.io.IOException"/>
  11619. <doc>
  11620. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11621. @param fs The configured filesystem.
  11622. @param conf The configuration.
  11623. @param name The name of the file.
  11624. @param keyClass The 'key' type.
  11625. @param valClass The 'value' type.
  11626. @param compressionType The compression type.
  11627. @return Returns the handle to the constructed SequenceFile Writer.
  11628. @throws IOException]]>
  11629. </doc>
  11630. </method>
  11631. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11632. abstract="false" native="false" synchronized="false"
  11633. static="true" final="false" visibility="public"
  11634. deprecated="not deprecated">
  11635. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11636. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11637. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11638. <param name="keyClass" type="java.lang.Class"/>
  11639. <param name="valClass" type="java.lang.Class"/>
  11640. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11641. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11642. <exception name="IOException" type="java.io.IOException"/>
  11643. <doc>
  11644. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11645. @param fs The configured filesystem.
  11646. @param conf The configuration.
  11647. @param name The name of the file.
  11648. @param keyClass The 'key' type.
  11649. @param valClass The 'value' type.
  11650. @param compressionType The compression type.
  11651. @param progress The Progressable object to track progress.
  11652. @return Returns the handle to the constructed SequenceFile Writer.
  11653. @throws IOException]]>
  11654. </doc>
  11655. </method>
  11656. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11657. abstract="false" native="false" synchronized="false"
  11658. static="true" final="false" visibility="public"
  11659. deprecated="not deprecated">
  11660. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11661. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11662. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11663. <param name="keyClass" type="java.lang.Class"/>
  11664. <param name="valClass" type="java.lang.Class"/>
  11665. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11666. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11667. <exception name="IOException" type="java.io.IOException"/>
  11668. <doc>
  11669. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11670. @param fs The configured filesystem.
  11671. @param conf The configuration.
  11672. @param name The name of the file.
  11673. @param keyClass The 'key' type.
  11674. @param valClass The 'value' type.
  11675. @param compressionType The compression type.
  11676. @param codec The compression codec.
  11677. @return Returns the handle to the constructed SequenceFile Writer.
  11678. @throws IOException]]>
  11679. </doc>
  11680. </method>
  11681. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11682. abstract="false" native="false" synchronized="false"
  11683. static="true" final="false" visibility="public"
  11684. deprecated="not deprecated">
  11685. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11686. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11687. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11688. <param name="keyClass" type="java.lang.Class"/>
  11689. <param name="valClass" type="java.lang.Class"/>
  11690. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11691. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11692. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11693. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11694. <exception name="IOException" type="java.io.IOException"/>
  11695. <doc>
  11696. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11697. @param fs The configured filesystem.
  11698. @param conf The configuration.
  11699. @param name The name of the file.
  11700. @param keyClass The 'key' type.
  11701. @param valClass The 'value' type.
  11702. @param compressionType The compression type.
  11703. @param codec The compression codec.
  11704. @param progress The Progressable object to track progress.
  11705. @param metadata The metadata of the file.
  11706. @return Returns the handle to the constructed SequenceFile Writer.
  11707. @throws IOException]]>
  11708. </doc>
  11709. </method>
  11710. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11711. abstract="false" native="false" synchronized="false"
  11712. static="true" final="false" visibility="public"
  11713. deprecated="not deprecated">
  11714. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11715. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11716. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11717. <param name="keyClass" type="java.lang.Class"/>
  11718. <param name="valClass" type="java.lang.Class"/>
  11719. <param name="bufferSize" type="int"/>
  11720. <param name="replication" type="short"/>
  11721. <param name="blockSize" type="long"/>
  11722. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11723. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11724. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11725. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11726. <exception name="IOException" type="java.io.IOException"/>
  11727. <doc>
  11728. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11729. @param fs The configured filesystem.
  11730. @param conf The configuration.
  11731. @param name The name of the file.
  11732. @param keyClass The 'key' type.
  11733. @param valClass The 'value' type.
  11734. @param bufferSize buffer size for the underlaying outputstream.
  11735. @param replication replication factor for the file.
  11736. @param blockSize block size for the file.
  11737. @param compressionType The compression type.
  11738. @param codec The compression codec.
  11739. @param progress The Progressable object to track progress.
  11740. @param metadata The metadata of the file.
  11741. @return Returns the handle to the constructed SequenceFile Writer.
  11742. @throws IOException]]>
  11743. </doc>
  11744. </method>
  11745. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11746. abstract="false" native="false" synchronized="false"
  11747. static="true" final="false" visibility="public"
  11748. deprecated="not deprecated">
  11749. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11750. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11751. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11752. <param name="keyClass" type="java.lang.Class"/>
  11753. <param name="valClass" type="java.lang.Class"/>
  11754. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11755. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11756. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11757. <exception name="IOException" type="java.io.IOException"/>
  11758. <doc>
  11759. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11760. @param fs The configured filesystem.
  11761. @param conf The configuration.
  11762. @param name The name of the file.
  11763. @param keyClass The 'key' type.
  11764. @param valClass The 'value' type.
  11765. @param compressionType The compression type.
  11766. @param codec The compression codec.
  11767. @param progress The Progressable object to track progress.
  11768. @return Returns the handle to the constructed SequenceFile Writer.
  11769. @throws IOException]]>
  11770. </doc>
  11771. </method>
  11772. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11773. abstract="false" native="false" synchronized="false"
  11774. static="true" final="false" visibility="public"
  11775. deprecated="not deprecated">
  11776. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11777. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  11778. <param name="keyClass" type="java.lang.Class"/>
  11779. <param name="valClass" type="java.lang.Class"/>
  11780. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11781. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11782. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11783. <exception name="IOException" type="java.io.IOException"/>
  11784. <doc>
  11785. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  11786. @param conf The configuration.
  11787. @param out The stream on top which the writer is to be constructed.
  11788. @param keyClass The 'key' type.
  11789. @param valClass The 'value' type.
  11790. @param compressionType The compression type.
  11791. @param codec The compression codec.
  11792. @param metadata The metadata of the file.
  11793. @return Returns the handle to the constructed SequenceFile Writer.
  11794. @throws IOException]]>
  11795. </doc>
  11796. </method>
  11797. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11798. abstract="false" native="false" synchronized="false"
  11799. static="true" final="false" visibility="public"
  11800. deprecated="not deprecated">
  11801. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11802. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  11803. <param name="keyClass" type="java.lang.Class"/>
  11804. <param name="valClass" type="java.lang.Class"/>
  11805. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11806. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11807. <exception name="IOException" type="java.io.IOException"/>
  11808. <doc>
  11809. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  11810. @param conf The configuration.
  11811. @param out The stream on top which the writer is to be constructed.
  11812. @param keyClass The 'key' type.
  11813. @param valClass The 'value' type.
  11814. @param compressionType The compression type.
  11815. @param codec The compression codec.
  11816. @return Returns the handle to the constructed SequenceFile Writer.
  11817. @throws IOException]]>
  11818. </doc>
  11819. </method>
  11820. <field name="SYNC_INTERVAL" type="int"
  11821. transient="false" volatile="false"
  11822. static="true" final="true" visibility="public"
  11823. deprecated="not deprecated">
  11824. <doc>
  11825. <![CDATA[The number of bytes between sync points.]]>
  11826. </doc>
  11827. </field>
  11828. <doc>
  11829. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  11830. pairs.
  11831. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  11832. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  11833. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  11834. {@link CompressionType} used to compress key/value pairs:
  11835. <ol>
  11836. <li>
  11837. <code>Writer</code> : Uncompressed records.
  11838. </li>
  11839. <li>
  11840. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  11841. values.
  11842. </li>
  11843. <li>
  11844. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  11845. values are collected in 'blocks'
  11846. separately and compressed. The size of
  11847. the 'block' is configurable.
  11848. </ol>
  11849. <p>The actual compression algorithm used to compress key and/or values can be
  11850. specified by using the appropriate {@link CompressionCodec}.</p>
  11851. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  11852. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  11853. <p>The {@link Reader} acts as the bridge and can read any of the above
  11854. <code>SequenceFile</code> formats.</p>
  11855. <h4 id="Formats">SequenceFile Formats</h4>
  11856. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  11857. depending on the <code>CompressionType</code> specified. All of them share a
  11858. <a href="#Header">common header</a> described below.
  11859. <h5 id="Header">SequenceFile Header</h5>
  11860. <ul>
  11861. <li>
  11862. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  11863. version number (e.g. SEQ4 or SEQ6)
  11864. </li>
  11865. <li>
  11866. keyClassName -key class
  11867. </li>
  11868. <li>
  11869. valueClassName - value class
  11870. </li>
  11871. <li>
  11872. compression - A boolean which specifies if compression is turned on for
  11873. keys/values in this file.
  11874. </li>
  11875. <li>
  11876. blockCompression - A boolean which specifies if block-compression is
  11877. turned on for keys/values in this file.
  11878. </li>
  11879. <li>
  11880. compression codec - <code>CompressionCodec</code> class which is used for
  11881. compression of keys and/or values (if compression is
  11882. enabled).
  11883. </li>
  11884. <li>
  11885. metadata - {@link Metadata} for this file.
  11886. </li>
  11887. <li>
  11888. sync - A sync marker to denote end of the header.
  11889. </li>
  11890. </ul>
  11891. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  11892. <ul>
  11893. <li>
  11894. <a href="#Header">Header</a>
  11895. </li>
  11896. <li>
  11897. Record
  11898. <ul>
  11899. <li>Record length</li>
  11900. <li>Key length</li>
  11901. <li>Key</li>
  11902. <li>Value</li>
  11903. </ul>
  11904. </li>
  11905. <li>
  11906. A sync-marker every few <code>100</code> bytes or so.
  11907. </li>
  11908. </ul>
  11909. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  11910. <ul>
  11911. <li>
  11912. <a href="#Header">Header</a>
  11913. </li>
  11914. <li>
  11915. Record
  11916. <ul>
  11917. <li>Record length</li>
  11918. <li>Key length</li>
  11919. <li>Key</li>
  11920. <li><i>Compressed</i> Value</li>
  11921. </ul>
  11922. </li>
  11923. <li>
  11924. A sync-marker every few <code>100</code> bytes or so.
  11925. </li>
  11926. </ul>
  11927. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  11928. <ul>
  11929. <li>
  11930. <a href="#Header">Header</a>
  11931. </li>
  11932. <li>
  11933. Record <i>Block</i>
  11934. <ul>
  11935. <li>Compressed key-lengths block-size</li>
  11936. <li>Compressed key-lengths block</li>
  11937. <li>Compressed keys block-size</li>
  11938. <li>Compressed keys block</li>
  11939. <li>Compressed value-lengths block-size</li>
  11940. <li>Compressed value-lengths block</li>
  11941. <li>Compressed values block-size</li>
  11942. <li>Compressed values block</li>
  11943. </ul>
  11944. </li>
  11945. <li>
  11946. A sync-marker every few <code>100</code> bytes or so.
  11947. </li>
  11948. </ul>
  11949. <p>The compressed blocks of key lengths and value lengths consist of the
  11950. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  11951. format.</p>
  11952. @see CompressionCodec]]>
  11953. </doc>
  11954. </class>
  11955. <!-- end class org.apache.hadoop.io.SequenceFile -->
  11956. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  11957. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  11958. abstract="false"
  11959. static="true" final="true" visibility="public"
  11960. deprecated="not deprecated">
  11961. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  11962. abstract="false" native="false" synchronized="false"
  11963. static="true" final="false" visibility="public"
  11964. deprecated="not deprecated">
  11965. </method>
  11966. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  11967. abstract="false" native="false" synchronized="false"
  11968. static="true" final="false" visibility="public"
  11969. deprecated="not deprecated">
  11970. <param name="name" type="java.lang.String"/>
  11971. </method>
  11972. <field name="NONE" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  11973. transient="false" volatile="false"
  11974. static="true" final="true" visibility="public"
  11975. deprecated="not deprecated">
  11976. <doc>
  11977. <![CDATA[Do not compress records.]]>
  11978. </doc>
  11979. </field>
  11980. <field name="RECORD" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  11981. transient="false" volatile="false"
  11982. static="true" final="true" visibility="public"
  11983. deprecated="not deprecated">
  11984. <doc>
  11985. <![CDATA[Compress values only, each separately.]]>
  11986. </doc>
  11987. </field>
  11988. <field name="BLOCK" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  11989. transient="false" volatile="false"
  11990. static="true" final="true" visibility="public"
  11991. deprecated="not deprecated">
  11992. <doc>
  11993. <![CDATA[Compress sequences of records together in blocks.]]>
  11994. </doc>
  11995. </field>
  11996. <doc>
  11997. <![CDATA[The compression type used to compress key/value pairs in the
  11998. {@link SequenceFile}.
  11999. @see SequenceFile.Writer]]>
  12000. </doc>
  12001. </class>
  12002. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  12003. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  12004. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  12005. abstract="false"
  12006. static="true" final="false" visibility="public"
  12007. deprecated="not deprecated">
  12008. <implements name="org.apache.hadoop.io.Writable"/>
  12009. <constructor name="SequenceFile.Metadata"
  12010. static="false" final="false" visibility="public"
  12011. deprecated="not deprecated">
  12012. </constructor>
  12013. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  12014. static="false" final="false" visibility="public"
  12015. deprecated="not deprecated">
  12016. </constructor>
  12017. <method name="get" return="org.apache.hadoop.io.Text"
  12018. abstract="false" native="false" synchronized="false"
  12019. static="false" final="false" visibility="public"
  12020. deprecated="not deprecated">
  12021. <param name="name" type="org.apache.hadoop.io.Text"/>
  12022. </method>
  12023. <method name="set"
  12024. abstract="false" native="false" synchronized="false"
  12025. static="false" final="false" visibility="public"
  12026. deprecated="not deprecated">
  12027. <param name="name" type="org.apache.hadoop.io.Text"/>
  12028. <param name="value" type="org.apache.hadoop.io.Text"/>
  12029. </method>
  12030. <method name="getMetadata" return="java.util.TreeMap"
  12031. abstract="false" native="false" synchronized="false"
  12032. static="false" final="false" visibility="public"
  12033. deprecated="not deprecated">
  12034. </method>
  12035. <method name="write"
  12036. abstract="false" native="false" synchronized="false"
  12037. static="false" final="false" visibility="public"
  12038. deprecated="not deprecated">
  12039. <param name="out" type="java.io.DataOutput"/>
  12040. <exception name="IOException" type="java.io.IOException"/>
  12041. </method>
  12042. <method name="readFields"
  12043. abstract="false" native="false" synchronized="false"
  12044. static="false" final="false" visibility="public"
  12045. deprecated="not deprecated">
  12046. <param name="in" type="java.io.DataInput"/>
  12047. <exception name="IOException" type="java.io.IOException"/>
  12048. </method>
  12049. <method name="equals" return="boolean"
  12050. abstract="false" native="false" synchronized="false"
  12051. static="false" final="false" visibility="public"
  12052. deprecated="not deprecated">
  12053. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12054. </method>
  12055. <method name="hashCode" return="int"
  12056. abstract="false" native="false" synchronized="false"
  12057. static="false" final="false" visibility="public"
  12058. deprecated="not deprecated">
  12059. </method>
  12060. <method name="toString" return="java.lang.String"
  12061. abstract="false" native="false" synchronized="false"
  12062. static="false" final="false" visibility="public"
  12063. deprecated="not deprecated">
  12064. </method>
  12065. <doc>
  12066. <![CDATA[The class encapsulating with the metadata of a file.
  12067. The metadata of a file is a list of attribute name/value
  12068. pairs of Text type.]]>
  12069. </doc>
  12070. </class>
  12071. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  12072. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  12073. <class name="SequenceFile.Reader" extends="java.lang.Object"
  12074. abstract="false"
  12075. static="true" final="false" visibility="public"
  12076. deprecated="not deprecated">
  12077. <implements name="java.io.Closeable"/>
  12078. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  12079. static="false" final="false" visibility="public"
  12080. deprecated="not deprecated">
  12081. <exception name="IOException" type="java.io.IOException"/>
  12082. <doc>
  12083. <![CDATA[Open the named file.]]>
  12084. </doc>
  12085. </constructor>
  12086. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  12087. abstract="false" native="false" synchronized="false"
  12088. static="false" final="false" visibility="protected"
  12089. deprecated="not deprecated">
  12090. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12091. <param name="file" type="org.apache.hadoop.fs.Path"/>
  12092. <param name="bufferSize" type="int"/>
  12093. <param name="length" type="long"/>
  12094. <exception name="IOException" type="java.io.IOException"/>
  12095. <doc>
  12096. <![CDATA[Override this method to specialize the type of
  12097. {@link FSDataInputStream} returned.]]>
  12098. </doc>
  12099. </method>
  12100. <method name="close"
  12101. abstract="false" native="false" synchronized="true"
  12102. static="false" final="false" visibility="public"
  12103. deprecated="not deprecated">
  12104. <exception name="IOException" type="java.io.IOException"/>
  12105. <doc>
  12106. <![CDATA[Close the file.]]>
  12107. </doc>
  12108. </method>
  12109. <method name="getKeyClassName" return="java.lang.String"
  12110. abstract="false" native="false" synchronized="false"
  12111. static="false" final="false" visibility="public"
  12112. deprecated="not deprecated">
  12113. <doc>
  12114. <![CDATA[Returns the name of the key class.]]>
  12115. </doc>
  12116. </method>
  12117. <method name="getKeyClass" return="java.lang.Class"
  12118. abstract="false" native="false" synchronized="true"
  12119. static="false" final="false" visibility="public"
  12120. deprecated="not deprecated">
  12121. <doc>
  12122. <![CDATA[Returns the class of keys in this file.]]>
  12123. </doc>
  12124. </method>
  12125. <method name="getValueClassName" return="java.lang.String"
  12126. abstract="false" native="false" synchronized="false"
  12127. static="false" final="false" visibility="public"
  12128. deprecated="not deprecated">
  12129. <doc>
  12130. <![CDATA[Returns the name of the value class.]]>
  12131. </doc>
  12132. </method>
  12133. <method name="getValueClass" return="java.lang.Class"
  12134. abstract="false" native="false" synchronized="true"
  12135. static="false" final="false" visibility="public"
  12136. deprecated="not deprecated">
  12137. <doc>
  12138. <![CDATA[Returns the class of values in this file.]]>
  12139. </doc>
  12140. </method>
  12141. <method name="isCompressed" return="boolean"
  12142. abstract="false" native="false" synchronized="false"
  12143. static="false" final="false" visibility="public"
  12144. deprecated="not deprecated">
  12145. <doc>
  12146. <![CDATA[Returns true if values are compressed.]]>
  12147. </doc>
  12148. </method>
  12149. <method name="isBlockCompressed" return="boolean"
  12150. abstract="false" native="false" synchronized="false"
  12151. static="false" final="false" visibility="public"
  12152. deprecated="not deprecated">
  12153. <doc>
  12154. <![CDATA[Returns true if records are block-compressed.]]>
  12155. </doc>
  12156. </method>
  12157. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  12158. abstract="false" native="false" synchronized="false"
  12159. static="false" final="false" visibility="public"
  12160. deprecated="not deprecated">
  12161. <doc>
  12162. <![CDATA[Returns the compression codec of data in this file.]]>
  12163. </doc>
  12164. </method>
  12165. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  12166. abstract="false" native="false" synchronized="false"
  12167. static="false" final="false" visibility="public"
  12168. deprecated="not deprecated">
  12169. <doc>
  12170. <![CDATA[Returns the metadata object of the file]]>
  12171. </doc>
  12172. </method>
  12173. <method name="getCurrentValue"
  12174. abstract="false" native="false" synchronized="true"
  12175. static="false" final="false" visibility="public"
  12176. deprecated="not deprecated">
  12177. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12178. <exception name="IOException" type="java.io.IOException"/>
  12179. <doc>
  12180. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  12181. @param val : The 'value' to be read.
  12182. @throws IOException]]>
  12183. </doc>
  12184. </method>
  12185. <method name="getCurrentValue" return="java.lang.Object"
  12186. abstract="false" native="false" synchronized="true"
  12187. static="false" final="false" visibility="public"
  12188. deprecated="not deprecated">
  12189. <param name="val" type="java.lang.Object"/>
  12190. <exception name="IOException" type="java.io.IOException"/>
  12191. <doc>
  12192. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  12193. @param val : The 'value' to be read.
  12194. @throws IOException]]>
  12195. </doc>
  12196. </method>
  12197. <method name="next" return="boolean"
  12198. abstract="false" native="false" synchronized="true"
  12199. static="false" final="false" visibility="public"
  12200. deprecated="not deprecated">
  12201. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12202. <exception name="IOException" type="java.io.IOException"/>
  12203. <doc>
  12204. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  12205. value. True if another entry exists, and false at end of file.]]>
  12206. </doc>
  12207. </method>
  12208. <method name="next" return="boolean"
  12209. abstract="false" native="false" synchronized="true"
  12210. static="false" final="false" visibility="public"
  12211. deprecated="not deprecated">
  12212. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12213. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12214. <exception name="IOException" type="java.io.IOException"/>
  12215. <doc>
  12216. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  12217. <code>val</code>. Returns true if such a pair exists and false when at
  12218. end of file]]>
  12219. </doc>
  12220. </method>
  12221. <method name="next" return="int"
  12222. abstract="false" native="false" synchronized="true"
  12223. static="false" final="false" visibility="public"
  12224. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  12225. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  12226. <exception name="IOException" type="java.io.IOException"/>
  12227. <doc>
  12228. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  12229. </doc>
  12230. </method>
  12231. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  12232. abstract="false" native="false" synchronized="false"
  12233. static="false" final="false" visibility="public"
  12234. deprecated="not deprecated">
  12235. </method>
  12236. <method name="nextRaw" return="int"
  12237. abstract="false" native="false" synchronized="true"
  12238. static="false" final="false" visibility="public"
  12239. deprecated="not deprecated">
  12240. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  12241. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12242. <exception name="IOException" type="java.io.IOException"/>
  12243. <doc>
  12244. <![CDATA[Read 'raw' records.
  12245. @param key - The buffer into which the key is read
  12246. @param val - The 'raw' value
  12247. @return Returns the total record length or -1 for end of file
  12248. @throws IOException]]>
  12249. </doc>
  12250. </method>
  12251. <method name="nextRawKey" return="int"
  12252. abstract="false" native="false" synchronized="false"
  12253. static="false" final="false" visibility="public"
  12254. deprecated="not deprecated">
  12255. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  12256. <exception name="IOException" type="java.io.IOException"/>
  12257. <doc>
  12258. <![CDATA[Read 'raw' keys.
  12259. @param key - The buffer into which the key is read
  12260. @return Returns the key length or -1 for end of file
  12261. @throws IOException]]>
  12262. </doc>
  12263. </method>
  12264. <method name="next" return="java.lang.Object"
  12265. abstract="false" native="false" synchronized="true"
  12266. static="false" final="false" visibility="public"
  12267. deprecated="not deprecated">
  12268. <param name="key" type="java.lang.Object"/>
  12269. <exception name="IOException" type="java.io.IOException"/>
  12270. <doc>
  12271. <![CDATA[Read the next key in the file, skipping its
  12272. value. Return null at end of file.]]>
  12273. </doc>
  12274. </method>
  12275. <method name="nextRawValue" return="int"
  12276. abstract="false" native="false" synchronized="true"
  12277. static="false" final="false" visibility="public"
  12278. deprecated="not deprecated">
  12279. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12280. <exception name="IOException" type="java.io.IOException"/>
  12281. <doc>
  12282. <![CDATA[Read 'raw' values.
  12283. @param val - The 'raw' value
  12284. @return Returns the value length
  12285. @throws IOException]]>
  12286. </doc>
  12287. </method>
  12288. <method name="seek"
  12289. abstract="false" native="false" synchronized="true"
  12290. static="false" final="false" visibility="public"
  12291. deprecated="not deprecated">
  12292. <param name="position" type="long"/>
  12293. <exception name="IOException" type="java.io.IOException"/>
  12294. <doc>
  12295. <![CDATA[Set the current byte position in the input file.
  12296. <p>The position passed must be a position returned by {@link
  12297. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  12298. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  12299. </doc>
  12300. </method>
  12301. <method name="sync"
  12302. abstract="false" native="false" synchronized="true"
  12303. static="false" final="false" visibility="public"
  12304. deprecated="not deprecated">
  12305. <param name="position" type="long"/>
  12306. <exception name="IOException" type="java.io.IOException"/>
  12307. <doc>
  12308. <![CDATA[Seek to the next sync mark past a given position.]]>
  12309. </doc>
  12310. </method>
  12311. <method name="syncSeen" return="boolean"
  12312. abstract="false" native="false" synchronized="false"
  12313. static="false" final="false" visibility="public"
  12314. deprecated="not deprecated">
  12315. <doc>
  12316. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  12317. </doc>
  12318. </method>
  12319. <method name="getPosition" return="long"
  12320. abstract="false" native="false" synchronized="true"
  12321. static="false" final="false" visibility="public"
  12322. deprecated="not deprecated">
  12323. <exception name="IOException" type="java.io.IOException"/>
  12324. <doc>
  12325. <![CDATA[Return the current byte position in the input file.]]>
  12326. </doc>
  12327. </method>
  12328. <method name="toString" return="java.lang.String"
  12329. abstract="false" native="false" synchronized="false"
  12330. static="false" final="false" visibility="public"
  12331. deprecated="not deprecated">
  12332. <doc>
  12333. <![CDATA[Returns the name of the file.]]>
  12334. </doc>
  12335. </method>
  12336. <doc>
  12337. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  12338. </doc>
  12339. </class>
  12340. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  12341. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  12342. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  12343. abstract="false"
  12344. static="true" final="false" visibility="public"
  12345. deprecated="not deprecated">
  12346. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  12347. static="false" final="false" visibility="public"
  12348. deprecated="not deprecated">
  12349. <doc>
  12350. <![CDATA[Sort and merge files containing the named classes.]]>
  12351. </doc>
  12352. </constructor>
  12353. <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"
  12354. static="false" final="false" visibility="public"
  12355. deprecated="not deprecated">
  12356. <doc>
  12357. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  12358. </doc>
  12359. </constructor>
  12360. <method name="setFactor"
  12361. abstract="false" native="false" synchronized="false"
  12362. static="false" final="false" visibility="public"
  12363. deprecated="not deprecated">
  12364. <param name="factor" type="int"/>
  12365. <doc>
  12366. <![CDATA[Set the number of streams to merge at once.]]>
  12367. </doc>
  12368. </method>
  12369. <method name="getFactor" return="int"
  12370. abstract="false" native="false" synchronized="false"
  12371. static="false" final="false" visibility="public"
  12372. deprecated="not deprecated">
  12373. <doc>
  12374. <![CDATA[Get the number of streams to merge at once.]]>
  12375. </doc>
  12376. </method>
  12377. <method name="setMemory"
  12378. abstract="false" native="false" synchronized="false"
  12379. static="false" final="false" visibility="public"
  12380. deprecated="not deprecated">
  12381. <param name="memory" type="int"/>
  12382. <doc>
  12383. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  12384. </doc>
  12385. </method>
  12386. <method name="getMemory" return="int"
  12387. abstract="false" native="false" synchronized="false"
  12388. static="false" final="false" visibility="public"
  12389. deprecated="not deprecated">
  12390. <doc>
  12391. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  12392. </doc>
  12393. </method>
  12394. <method name="setProgressable"
  12395. abstract="false" native="false" synchronized="false"
  12396. static="false" final="false" visibility="public"
  12397. deprecated="not deprecated">
  12398. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  12399. <doc>
  12400. <![CDATA[Set the progressable object in order to report progress.]]>
  12401. </doc>
  12402. </method>
  12403. <method name="sort"
  12404. abstract="false" native="false" synchronized="false"
  12405. static="false" final="false" visibility="public"
  12406. deprecated="not deprecated">
  12407. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  12408. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  12409. <param name="deleteInput" type="boolean"/>
  12410. <exception name="IOException" type="java.io.IOException"/>
  12411. <doc>
  12412. <![CDATA[Perform a file sort from a set of input files into an output file.
  12413. @param inFiles the files to be sorted
  12414. @param outFile the sorted output file
  12415. @param deleteInput should the input files be deleted as they are read?]]>
  12416. </doc>
  12417. </method>
  12418. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12419. abstract="false" native="false" synchronized="false"
  12420. static="false" final="false" visibility="public"
  12421. deprecated="not deprecated">
  12422. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  12423. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  12424. <param name="deleteInput" type="boolean"/>
  12425. <exception name="IOException" type="java.io.IOException"/>
  12426. <doc>
  12427. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  12428. @param inFiles the files to be sorted
  12429. @param tempDir the directory where temp files are created during sort
  12430. @param deleteInput should the input files be deleted as they are read?
  12431. @return iterator the RawKeyValueIterator]]>
  12432. </doc>
  12433. </method>
  12434. <method name="sort"
  12435. abstract="false" native="false" synchronized="false"
  12436. static="false" final="false" visibility="public"
  12437. deprecated="not deprecated">
  12438. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  12439. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  12440. <exception name="IOException" type="java.io.IOException"/>
  12441. <doc>
  12442. <![CDATA[The backwards compatible interface to sort.
  12443. @param inFile the input file to sort
  12444. @param outFile the sorted output file]]>
  12445. </doc>
  12446. </method>
  12447. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12448. abstract="false" native="false" synchronized="false"
  12449. static="false" final="false" visibility="public"
  12450. deprecated="not deprecated">
  12451. <param name="segments" type="java.util.List"/>
  12452. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  12453. <exception name="IOException" type="java.io.IOException"/>
  12454. <doc>
  12455. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  12456. @param segments the list of SegmentDescriptors
  12457. @param tmpDir the directory to write temporary files into
  12458. @return RawKeyValueIterator
  12459. @throws IOException]]>
  12460. </doc>
  12461. </method>
  12462. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12463. abstract="false" native="false" synchronized="false"
  12464. static="false" final="false" visibility="public"
  12465. deprecated="not deprecated">
  12466. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  12467. <param name="deleteInputs" type="boolean"/>
  12468. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  12469. <exception name="IOException" type="java.io.IOException"/>
  12470. <doc>
  12471. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  12472. that is already set
  12473. @param inNames the array of path names
  12474. @param deleteInputs true if the input files should be deleted when
  12475. unnecessary
  12476. @param tmpDir the directory to write temporary files into
  12477. @return RawKeyValueIteratorMergeQueue
  12478. @throws IOException]]>
  12479. </doc>
  12480. </method>
  12481. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12482. abstract="false" native="false" synchronized="false"
  12483. static="false" final="false" visibility="public"
  12484. deprecated="not deprecated">
  12485. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  12486. <param name="deleteInputs" type="boolean"/>
  12487. <param name="factor" type="int"/>
  12488. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  12489. <exception name="IOException" type="java.io.IOException"/>
  12490. <doc>
  12491. <![CDATA[Merges the contents of files passed in Path[]
  12492. @param inNames the array of path names
  12493. @param deleteInputs true if the input files should be deleted when
  12494. unnecessary
  12495. @param factor the factor that will be used as the maximum merge fan-in
  12496. @param tmpDir the directory to write temporary files into
  12497. @return RawKeyValueIteratorMergeQueue
  12498. @throws IOException]]>
  12499. </doc>
  12500. </method>
  12501. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12502. abstract="false" native="false" synchronized="false"
  12503. static="false" final="false" visibility="public"
  12504. deprecated="not deprecated">
  12505. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  12506. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  12507. <param name="deleteInputs" type="boolean"/>
  12508. <exception name="IOException" type="java.io.IOException"/>
  12509. <doc>
  12510. <![CDATA[Merges the contents of files passed in Path[]
  12511. @param inNames the array of path names
  12512. @param tempDir the directory for creating temp files during merge
  12513. @param deleteInputs true if the input files should be deleted when
  12514. unnecessary
  12515. @return RawKeyValueIteratorMergeQueue
  12516. @throws IOException]]>
  12517. </doc>
  12518. </method>
  12519. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  12520. abstract="false" native="false" synchronized="false"
  12521. static="false" final="false" visibility="public"
  12522. deprecated="not deprecated">
  12523. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  12524. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  12525. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  12526. <exception name="IOException" type="java.io.IOException"/>
  12527. <doc>
  12528. <![CDATA[Clones the attributes (like compression of the input file and creates a
  12529. corresponding Writer
  12530. @param inputFile the path of the input file whose attributes should be
  12531. cloned
  12532. @param outputFile the path of the output file
  12533. @param prog the Progressable to report status during the file write
  12534. @return Writer
  12535. @throws IOException]]>
  12536. </doc>
  12537. </method>
  12538. <method name="writeFile"
  12539. abstract="false" native="false" synchronized="false"
  12540. static="false" final="false" visibility="public"
  12541. deprecated="not deprecated">
  12542. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  12543. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  12544. <exception name="IOException" type="java.io.IOException"/>
  12545. <doc>
  12546. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  12547. passed writer
  12548. @param records the RawKeyValueIterator
  12549. @param writer the Writer created earlier
  12550. @throws IOException]]>
  12551. </doc>
  12552. </method>
  12553. <method name="merge"
  12554. abstract="false" native="false" synchronized="false"
  12555. static="false" final="false" visibility="public"
  12556. deprecated="not deprecated">
  12557. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  12558. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  12559. <exception name="IOException" type="java.io.IOException"/>
  12560. <doc>
  12561. <![CDATA[Merge the provided files.
  12562. @param inFiles the array of input path names
  12563. @param outFile the final output file
  12564. @throws IOException]]>
  12565. </doc>
  12566. </method>
  12567. <doc>
  12568. <![CDATA[Sorts key/value pairs in a sequence-format file.
  12569. <p>For best performance, applications should make sure that the {@link
  12570. Writable#readFields(DataInput)} implementation of their keys is
  12571. very efficient. In particular, it should avoid allocating memory.]]>
  12572. </doc>
  12573. </class>
  12574. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  12575. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  12576. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  12577. static="true" final="false" visibility="public"
  12578. deprecated="not deprecated">
  12579. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  12580. abstract="false" native="false" synchronized="false"
  12581. static="false" final="false" visibility="public"
  12582. deprecated="not deprecated">
  12583. <exception name="IOException" type="java.io.IOException"/>
  12584. <doc>
  12585. <![CDATA[Gets the current raw key
  12586. @return DataOutputBuffer
  12587. @throws IOException]]>
  12588. </doc>
  12589. </method>
  12590. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  12591. abstract="false" native="false" synchronized="false"
  12592. static="false" final="false" visibility="public"
  12593. deprecated="not deprecated">
  12594. <exception name="IOException" type="java.io.IOException"/>
  12595. <doc>
  12596. <![CDATA[Gets the current raw value
  12597. @return ValueBytes
  12598. @throws IOException]]>
  12599. </doc>
  12600. </method>
  12601. <method name="next" return="boolean"
  12602. abstract="false" native="false" synchronized="false"
  12603. static="false" final="false" visibility="public"
  12604. deprecated="not deprecated">
  12605. <exception name="IOException" type="java.io.IOException"/>
  12606. <doc>
  12607. <![CDATA[Sets up the current key and value (for getKey and getValue)
  12608. @return true if there exists a key/value, false otherwise
  12609. @throws IOException]]>
  12610. </doc>
  12611. </method>
  12612. <method name="close"
  12613. abstract="false" native="false" synchronized="false"
  12614. static="false" final="false" visibility="public"
  12615. deprecated="not deprecated">
  12616. <exception name="IOException" type="java.io.IOException"/>
  12617. <doc>
  12618. <![CDATA[closes the iterator so that the underlying streams can be closed
  12619. @throws IOException]]>
  12620. </doc>
  12621. </method>
  12622. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  12623. abstract="false" native="false" synchronized="false"
  12624. static="false" final="false" visibility="public"
  12625. deprecated="not deprecated">
  12626. <doc>
  12627. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  12628. indicating the bytes processed by the iterator so far]]>
  12629. </doc>
  12630. </method>
  12631. <doc>
  12632. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  12633. </doc>
  12634. </interface>
  12635. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  12636. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  12637. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  12638. abstract="false"
  12639. static="false" final="false" visibility="public"
  12640. deprecated="not deprecated">
  12641. <implements name="java.lang.Comparable"/>
  12642. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  12643. static="false" final="false" visibility="public"
  12644. deprecated="not deprecated">
  12645. <doc>
  12646. <![CDATA[Constructs a segment
  12647. @param segmentOffset the offset of the segment in the file
  12648. @param segmentLength the length of the segment
  12649. @param segmentPathName the path name of the file containing the segment]]>
  12650. </doc>
  12651. </constructor>
  12652. <method name="doSync"
  12653. abstract="false" native="false" synchronized="false"
  12654. static="false" final="false" visibility="public"
  12655. deprecated="not deprecated">
  12656. <doc>
  12657. <![CDATA[Do the sync checks]]>
  12658. </doc>
  12659. </method>
  12660. <method name="preserveInput"
  12661. abstract="false" native="false" synchronized="false"
  12662. static="false" final="false" visibility="public"
  12663. deprecated="not deprecated">
  12664. <param name="preserve" type="boolean"/>
  12665. <doc>
  12666. <![CDATA[Whether to delete the files when no longer needed]]>
  12667. </doc>
  12668. </method>
  12669. <method name="shouldPreserveInput" return="boolean"
  12670. abstract="false" native="false" synchronized="false"
  12671. static="false" final="false" visibility="public"
  12672. deprecated="not deprecated">
  12673. </method>
  12674. <method name="compareTo" return="int"
  12675. abstract="false" native="false" synchronized="false"
  12676. static="false" final="false" visibility="public"
  12677. deprecated="not deprecated">
  12678. <param name="o" type="java.lang.Object"/>
  12679. </method>
  12680. <method name="equals" return="boolean"
  12681. abstract="false" native="false" synchronized="false"
  12682. static="false" final="false" visibility="public"
  12683. deprecated="not deprecated">
  12684. <param name="o" type="java.lang.Object"/>
  12685. </method>
  12686. <method name="hashCode" return="int"
  12687. abstract="false" native="false" synchronized="false"
  12688. static="false" final="false" visibility="public"
  12689. deprecated="not deprecated">
  12690. </method>
  12691. <method name="nextRawKey" return="boolean"
  12692. abstract="false" native="false" synchronized="false"
  12693. static="false" final="false" visibility="public"
  12694. deprecated="not deprecated">
  12695. <exception name="IOException" type="java.io.IOException"/>
  12696. <doc>
  12697. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  12698. @return true if there is a key returned; false, otherwise
  12699. @throws IOException]]>
  12700. </doc>
  12701. </method>
  12702. <method name="nextRawValue" return="int"
  12703. abstract="false" native="false" synchronized="false"
  12704. static="false" final="false" visibility="public"
  12705. deprecated="not deprecated">
  12706. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12707. <exception name="IOException" type="java.io.IOException"/>
  12708. <doc>
  12709. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  12710. read earlier
  12711. @param rawValue
  12712. @return the length of the value
  12713. @throws IOException]]>
  12714. </doc>
  12715. </method>
  12716. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  12717. abstract="false" native="false" synchronized="false"
  12718. static="false" final="false" visibility="public"
  12719. deprecated="not deprecated">
  12720. <doc>
  12721. <![CDATA[Returns the stored rawKey]]>
  12722. </doc>
  12723. </method>
  12724. <method name="cleanup"
  12725. abstract="false" native="false" synchronized="false"
  12726. static="false" final="false" visibility="public"
  12727. deprecated="not deprecated">
  12728. <exception name="IOException" type="java.io.IOException"/>
  12729. <doc>
  12730. <![CDATA[The default cleanup. Subclasses can override this with a custom
  12731. cleanup]]>
  12732. </doc>
  12733. </method>
  12734. <doc>
  12735. <![CDATA[This class defines a merge segment. This class can be subclassed to
  12736. provide a customized cleanup method implementation. In this
  12737. implementation, cleanup closes the file handle and deletes the file]]>
  12738. </doc>
  12739. </class>
  12740. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  12741. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  12742. <interface name="SequenceFile.ValueBytes" abstract="true"
  12743. static="true" final="false" visibility="public"
  12744. deprecated="not deprecated">
  12745. <method name="writeUncompressedBytes"
  12746. abstract="false" native="false" synchronized="false"
  12747. static="false" final="false" visibility="public"
  12748. deprecated="not deprecated">
  12749. <param name="outStream" type="java.io.DataOutputStream"/>
  12750. <exception name="IOException" type="java.io.IOException"/>
  12751. <doc>
  12752. <![CDATA[Writes the uncompressed bytes to the outStream.
  12753. @param outStream : Stream to write uncompressed bytes into.
  12754. @throws IOException]]>
  12755. </doc>
  12756. </method>
  12757. <method name="writeCompressedBytes"
  12758. abstract="false" native="false" synchronized="false"
  12759. static="false" final="false" visibility="public"
  12760. deprecated="not deprecated">
  12761. <param name="outStream" type="java.io.DataOutputStream"/>
  12762. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  12763. <exception name="IOException" type="java.io.IOException"/>
  12764. <doc>
  12765. <![CDATA[Write compressed bytes to outStream.
  12766. Note: that it will NOT compress the bytes if they are not compressed.
  12767. @param outStream : Stream to write compressed bytes into.]]>
  12768. </doc>
  12769. </method>
  12770. <method name="getSize" return="int"
  12771. abstract="false" native="false" synchronized="false"
  12772. static="false" final="false" visibility="public"
  12773. deprecated="not deprecated">
  12774. <doc>
  12775. <![CDATA[Size of stored data.]]>
  12776. </doc>
  12777. </method>
  12778. <doc>
  12779. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  12780. </doc>
  12781. </interface>
  12782. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  12783. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  12784. <class name="SequenceFile.Writer" extends="java.lang.Object"
  12785. abstract="false"
  12786. static="true" final="false" visibility="public"
  12787. deprecated="not deprecated">
  12788. <implements name="java.io.Closeable"/>
  12789. <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"
  12790. static="false" final="false" visibility="public"
  12791. deprecated="not deprecated">
  12792. <exception name="IOException" type="java.io.IOException"/>
  12793. <doc>
  12794. <![CDATA[Create the named file.]]>
  12795. </doc>
  12796. </constructor>
  12797. <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"
  12798. static="false" final="false" visibility="public"
  12799. deprecated="not deprecated">
  12800. <exception name="IOException" type="java.io.IOException"/>
  12801. <doc>
  12802. <![CDATA[Create the named file with write-progress reporter.]]>
  12803. </doc>
  12804. </constructor>
  12805. <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"
  12806. static="false" final="false" visibility="public"
  12807. deprecated="not deprecated">
  12808. <exception name="IOException" type="java.io.IOException"/>
  12809. <doc>
  12810. <![CDATA[Create the named file with write-progress reporter.]]>
  12811. </doc>
  12812. </constructor>
  12813. <method name="getKeyClass" return="java.lang.Class"
  12814. abstract="false" native="false" synchronized="false"
  12815. static="false" final="false" visibility="public"
  12816. deprecated="not deprecated">
  12817. <doc>
  12818. <![CDATA[Returns the class of keys in this file.]]>
  12819. </doc>
  12820. </method>
  12821. <method name="getValueClass" return="java.lang.Class"
  12822. abstract="false" native="false" synchronized="false"
  12823. static="false" final="false" visibility="public"
  12824. deprecated="not deprecated">
  12825. <doc>
  12826. <![CDATA[Returns the class of values in this file.]]>
  12827. </doc>
  12828. </method>
  12829. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  12830. abstract="false" native="false" synchronized="false"
  12831. static="false" final="false" visibility="public"
  12832. deprecated="not deprecated">
  12833. <doc>
  12834. <![CDATA[Returns the compression codec of data in this file.]]>
  12835. </doc>
  12836. </method>
  12837. <method name="sync"
  12838. abstract="false" native="false" synchronized="false"
  12839. static="false" final="false" visibility="public"
  12840. deprecated="not deprecated">
  12841. <exception name="IOException" type="java.io.IOException"/>
  12842. <doc>
  12843. <![CDATA[create a sync point]]>
  12844. </doc>
  12845. </method>
  12846. <method name="close"
  12847. abstract="false" native="false" synchronized="true"
  12848. static="false" final="false" visibility="public"
  12849. deprecated="not deprecated">
  12850. <exception name="IOException" type="java.io.IOException"/>
  12851. <doc>
  12852. <![CDATA[Close the file.]]>
  12853. </doc>
  12854. </method>
  12855. <method name="append"
  12856. abstract="false" native="false" synchronized="true"
  12857. static="false" final="false" visibility="public"
  12858. deprecated="not deprecated">
  12859. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12860. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12861. <exception name="IOException" type="java.io.IOException"/>
  12862. <doc>
  12863. <![CDATA[Append a key/value pair.]]>
  12864. </doc>
  12865. </method>
  12866. <method name="append"
  12867. abstract="false" native="false" synchronized="true"
  12868. static="false" final="false" visibility="public"
  12869. deprecated="not deprecated">
  12870. <param name="key" type="java.lang.Object"/>
  12871. <param name="val" type="java.lang.Object"/>
  12872. <exception name="IOException" type="java.io.IOException"/>
  12873. <doc>
  12874. <![CDATA[Append a key/value pair.]]>
  12875. </doc>
  12876. </method>
  12877. <method name="appendRaw"
  12878. abstract="false" native="false" synchronized="true"
  12879. static="false" final="false" visibility="public"
  12880. deprecated="not deprecated">
  12881. <param name="keyData" type="byte[]"/>
  12882. <param name="keyOffset" type="int"/>
  12883. <param name="keyLength" type="int"/>
  12884. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12885. <exception name="IOException" type="java.io.IOException"/>
  12886. </method>
  12887. <method name="getLength" return="long"
  12888. abstract="false" native="false" synchronized="true"
  12889. static="false" final="false" visibility="public"
  12890. deprecated="not deprecated">
  12891. <exception name="IOException" type="java.io.IOException"/>
  12892. <doc>
  12893. <![CDATA[Returns the current length of the output file.
  12894. <p>This always returns a synchronized position. In other words,
  12895. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  12896. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  12897. the key may be earlier in the file than key last written when this
  12898. method was called (e.g., with block-compression, it may be the first key
  12899. in the block that was being written when this method was called).]]>
  12900. </doc>
  12901. </method>
  12902. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  12903. transient="false" volatile="false"
  12904. static="false" final="false" visibility="protected"
  12905. deprecated="not deprecated">
  12906. </field>
  12907. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  12908. transient="false" volatile="false"
  12909. static="false" final="false" visibility="protected"
  12910. deprecated="not deprecated">
  12911. </field>
  12912. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  12913. transient="false" volatile="false"
  12914. static="false" final="false" visibility="protected"
  12915. deprecated="not deprecated">
  12916. </field>
  12917. <doc>
  12918. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  12919. </doc>
  12920. </class>
  12921. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  12922. <!-- start class org.apache.hadoop.io.SetFile -->
  12923. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  12924. abstract="false"
  12925. static="false" final="false" visibility="public"
  12926. deprecated="not deprecated">
  12927. <constructor name="SetFile"
  12928. static="false" final="false" visibility="protected"
  12929. deprecated="not deprecated">
  12930. </constructor>
  12931. <doc>
  12932. <![CDATA[A file-based set of keys.]]>
  12933. </doc>
  12934. </class>
  12935. <!-- end class org.apache.hadoop.io.SetFile -->
  12936. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  12937. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  12938. abstract="false"
  12939. static="true" final="false" visibility="public"
  12940. deprecated="not deprecated">
  12941. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  12942. static="false" final="false" visibility="public"
  12943. deprecated="not deprecated">
  12944. <exception name="IOException" type="java.io.IOException"/>
  12945. <doc>
  12946. <![CDATA[Construct a set reader for the named set.]]>
  12947. </doc>
  12948. </constructor>
  12949. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  12950. static="false" final="false" visibility="public"
  12951. deprecated="not deprecated">
  12952. <exception name="IOException" type="java.io.IOException"/>
  12953. <doc>
  12954. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  12955. </doc>
  12956. </constructor>
  12957. <method name="seek" return="boolean"
  12958. abstract="false" native="false" synchronized="false"
  12959. static="false" final="false" visibility="public"
  12960. deprecated="not deprecated">
  12961. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12962. <exception name="IOException" type="java.io.IOException"/>
  12963. </method>
  12964. <method name="next" return="boolean"
  12965. abstract="false" native="false" synchronized="false"
  12966. static="false" final="false" visibility="public"
  12967. deprecated="not deprecated">
  12968. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12969. <exception name="IOException" type="java.io.IOException"/>
  12970. <doc>
  12971. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  12972. true if such a key exists and false when at the end of the set.]]>
  12973. </doc>
  12974. </method>
  12975. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  12976. abstract="false" native="false" synchronized="false"
  12977. static="false" final="false" visibility="public"
  12978. deprecated="not deprecated">
  12979. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12980. <exception name="IOException" type="java.io.IOException"/>
  12981. <doc>
  12982. <![CDATA[Read the matching key from a set into <code>key</code>.
  12983. Returns <code>key</code>, or null if no match exists.]]>
  12984. </doc>
  12985. </method>
  12986. <doc>
  12987. <![CDATA[Provide access to an existing set file.]]>
  12988. </doc>
  12989. </class>
  12990. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  12991. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  12992. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  12993. abstract="false"
  12994. static="true" final="false" visibility="public"
  12995. deprecated="not deprecated">
  12996. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  12997. static="false" final="false" visibility="public"
  12998. deprecated="pass a Configuration too">
  12999. <exception name="IOException" type="java.io.IOException"/>
  13000. <doc>
  13001. <![CDATA[Create the named set for keys of the named class.
  13002. @deprecated pass a Configuration too]]>
  13003. </doc>
  13004. </constructor>
  13005. <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"
  13006. static="false" final="false" visibility="public"
  13007. deprecated="not deprecated">
  13008. <exception name="IOException" type="java.io.IOException"/>
  13009. <doc>
  13010. <![CDATA[Create a set naming the element class and compression type.]]>
  13011. </doc>
  13012. </constructor>
  13013. <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"
  13014. static="false" final="false" visibility="public"
  13015. deprecated="not deprecated">
  13016. <exception name="IOException" type="java.io.IOException"/>
  13017. <doc>
  13018. <![CDATA[Create a set naming the element comparator and compression type.]]>
  13019. </doc>
  13020. </constructor>
  13021. <method name="append"
  13022. abstract="false" native="false" synchronized="false"
  13023. static="false" final="false" visibility="public"
  13024. deprecated="not deprecated">
  13025. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13026. <exception name="IOException" type="java.io.IOException"/>
  13027. <doc>
  13028. <![CDATA[Append a key to a set. The key must be strictly greater than the
  13029. previous key added to the set.]]>
  13030. </doc>
  13031. </method>
  13032. <doc>
  13033. <![CDATA[Write a new set file.]]>
  13034. </doc>
  13035. </class>
  13036. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  13037. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  13038. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  13039. abstract="false"
  13040. static="false" final="false" visibility="public"
  13041. deprecated="not deprecated">
  13042. <implements name="java.util.SortedMap"/>
  13043. <constructor name="SortedMapWritable"
  13044. static="false" final="false" visibility="public"
  13045. deprecated="not deprecated">
  13046. <doc>
  13047. <![CDATA[default constructor.]]>
  13048. </doc>
  13049. </constructor>
  13050. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  13051. static="false" final="false" visibility="public"
  13052. deprecated="not deprecated">
  13053. <doc>
  13054. <![CDATA[Copy constructor.
  13055. @param other the map to copy from]]>
  13056. </doc>
  13057. </constructor>
  13058. <method name="comparator" return="java.util.Comparator"
  13059. abstract="false" native="false" synchronized="false"
  13060. static="false" final="false" visibility="public"
  13061. deprecated="not deprecated">
  13062. <doc>
  13063. <![CDATA[{@inheritDoc}]]>
  13064. </doc>
  13065. </method>
  13066. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  13067. abstract="false" native="false" synchronized="false"
  13068. static="false" final="false" visibility="public"
  13069. deprecated="not deprecated">
  13070. <doc>
  13071. <![CDATA[{@inheritDoc}]]>
  13072. </doc>
  13073. </method>
  13074. <method name="headMap" return="java.util.SortedMap"
  13075. abstract="false" native="false" synchronized="false"
  13076. static="false" final="false" visibility="public"
  13077. deprecated="not deprecated">
  13078. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  13079. <doc>
  13080. <![CDATA[{@inheritDoc}]]>
  13081. </doc>
  13082. </method>
  13083. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  13084. abstract="false" native="false" synchronized="false"
  13085. static="false" final="false" visibility="public"
  13086. deprecated="not deprecated">
  13087. <doc>
  13088. <![CDATA[{@inheritDoc}]]>
  13089. </doc>
  13090. </method>
  13091. <method name="subMap" return="java.util.SortedMap"
  13092. abstract="false" native="false" synchronized="false"
  13093. static="false" final="false" visibility="public"
  13094. deprecated="not deprecated">
  13095. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  13096. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  13097. <doc>
  13098. <![CDATA[{@inheritDoc}]]>
  13099. </doc>
  13100. </method>
  13101. <method name="tailMap" return="java.util.SortedMap"
  13102. abstract="false" native="false" synchronized="false"
  13103. static="false" final="false" visibility="public"
  13104. deprecated="not deprecated">
  13105. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  13106. <doc>
  13107. <![CDATA[{@inheritDoc}]]>
  13108. </doc>
  13109. </method>
  13110. <method name="clear"
  13111. abstract="false" native="false" synchronized="false"
  13112. static="false" final="false" visibility="public"
  13113. deprecated="not deprecated">
  13114. <doc>
  13115. <![CDATA[{@inheritDoc}]]>
  13116. </doc>
  13117. </method>
  13118. <method name="containsKey" return="boolean"
  13119. abstract="false" native="false" synchronized="false"
  13120. static="false" final="false" visibility="public"
  13121. deprecated="not deprecated">
  13122. <param name="key" type="java.lang.Object"/>
  13123. <doc>
  13124. <![CDATA[{@inheritDoc}]]>
  13125. </doc>
  13126. </method>
  13127. <method name="containsValue" return="boolean"
  13128. abstract="false" native="false" synchronized="false"
  13129. static="false" final="false" visibility="public"
  13130. deprecated="not deprecated">
  13131. <param name="value" type="java.lang.Object"/>
  13132. <doc>
  13133. <![CDATA[{@inheritDoc}]]>
  13134. </doc>
  13135. </method>
  13136. <method name="entrySet" return="java.util.Set"
  13137. abstract="false" native="false" synchronized="false"
  13138. static="false" final="false" visibility="public"
  13139. deprecated="not deprecated">
  13140. <doc>
  13141. <![CDATA[{@inheritDoc}]]>
  13142. </doc>
  13143. </method>
  13144. <method name="get" return="org.apache.hadoop.io.Writable"
  13145. abstract="false" native="false" synchronized="false"
  13146. static="false" final="false" visibility="public"
  13147. deprecated="not deprecated">
  13148. <param name="key" type="java.lang.Object"/>
  13149. <doc>
  13150. <![CDATA[{@inheritDoc}]]>
  13151. </doc>
  13152. </method>
  13153. <method name="isEmpty" return="boolean"
  13154. abstract="false" native="false" synchronized="false"
  13155. static="false" final="false" visibility="public"
  13156. deprecated="not deprecated">
  13157. <doc>
  13158. <![CDATA[{@inheritDoc}]]>
  13159. </doc>
  13160. </method>
  13161. <method name="keySet" return="java.util.Set"
  13162. abstract="false" native="false" synchronized="false"
  13163. static="false" final="false" visibility="public"
  13164. deprecated="not deprecated">
  13165. <doc>
  13166. <![CDATA[{@inheritDoc}]]>
  13167. </doc>
  13168. </method>
  13169. <method name="put" return="org.apache.hadoop.io.Writable"
  13170. abstract="false" native="false" synchronized="false"
  13171. static="false" final="false" visibility="public"
  13172. deprecated="not deprecated">
  13173. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13174. <param name="value" type="org.apache.hadoop.io.Writable"/>
  13175. <doc>
  13176. <![CDATA[{@inheritDoc}]]>
  13177. </doc>
  13178. </method>
  13179. <method name="putAll"
  13180. abstract="false" native="false" synchronized="false"
  13181. static="false" final="false" visibility="public"
  13182. deprecated="not deprecated">
  13183. <param name="t" type="java.util.Map"/>
  13184. <doc>
  13185. <![CDATA[{@inheritDoc}]]>
  13186. </doc>
  13187. </method>
  13188. <method name="remove" return="org.apache.hadoop.io.Writable"
  13189. abstract="false" native="false" synchronized="false"
  13190. static="false" final="false" visibility="public"
  13191. deprecated="not deprecated">
  13192. <param name="key" type="java.lang.Object"/>
  13193. <doc>
  13194. <![CDATA[{@inheritDoc}]]>
  13195. </doc>
  13196. </method>
  13197. <method name="size" return="int"
  13198. abstract="false" native="false" synchronized="false"
  13199. static="false" final="false" visibility="public"
  13200. deprecated="not deprecated">
  13201. <doc>
  13202. <![CDATA[{@inheritDoc}]]>
  13203. </doc>
  13204. </method>
  13205. <method name="values" return="java.util.Collection"
  13206. abstract="false" native="false" synchronized="false"
  13207. static="false" final="false" visibility="public"
  13208. deprecated="not deprecated">
  13209. <doc>
  13210. <![CDATA[{@inheritDoc}]]>
  13211. </doc>
  13212. </method>
  13213. <method name="readFields"
  13214. abstract="false" native="false" synchronized="false"
  13215. static="false" final="false" visibility="public"
  13216. deprecated="not deprecated">
  13217. <param name="in" type="java.io.DataInput"/>
  13218. <exception name="IOException" type="java.io.IOException"/>
  13219. <doc>
  13220. <![CDATA[{@inheritDoc}]]>
  13221. </doc>
  13222. </method>
  13223. <method name="write"
  13224. abstract="false" native="false" synchronized="false"
  13225. static="false" final="false" visibility="public"
  13226. deprecated="not deprecated">
  13227. <param name="out" type="java.io.DataOutput"/>
  13228. <exception name="IOException" type="java.io.IOException"/>
  13229. <doc>
  13230. <![CDATA[{@inheritDoc}]]>
  13231. </doc>
  13232. </method>
  13233. <doc>
  13234. <![CDATA[A Writable SortedMap.]]>
  13235. </doc>
  13236. </class>
  13237. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  13238. <!-- start interface org.apache.hadoop.io.Stringifier -->
  13239. <interface name="Stringifier" abstract="true"
  13240. static="false" final="false" visibility="public"
  13241. deprecated="not deprecated">
  13242. <implements name="java.io.Closeable"/>
  13243. <method name="toString" return="java.lang.String"
  13244. abstract="false" native="false" synchronized="false"
  13245. static="false" final="false" visibility="public"
  13246. deprecated="not deprecated">
  13247. <param name="obj" type="java.lang.Object"/>
  13248. <exception name="IOException" type="java.io.IOException"/>
  13249. <doc>
  13250. <![CDATA[Converts the object to a string representation
  13251. @param obj the object to convert
  13252. @return the string representation of the object
  13253. @throws IOException if the object cannot be converted]]>
  13254. </doc>
  13255. </method>
  13256. <method name="fromString" return="java.lang.Object"
  13257. abstract="false" native="false" synchronized="false"
  13258. static="false" final="false" visibility="public"
  13259. deprecated="not deprecated">
  13260. <param name="str" type="java.lang.String"/>
  13261. <exception name="IOException" type="java.io.IOException"/>
  13262. <doc>
  13263. <![CDATA[Restores the object from its string representation.
  13264. @param str the string representation of the object
  13265. @return restored object
  13266. @throws IOException if the object cannot be restored]]>
  13267. </doc>
  13268. </method>
  13269. <method name="close"
  13270. abstract="false" native="false" synchronized="false"
  13271. static="false" final="false" visibility="public"
  13272. deprecated="not deprecated">
  13273. <exception name="IOException" type="java.io.IOException"/>
  13274. <doc>
  13275. <![CDATA[Closes this object.
  13276. @throws IOException if an I/O error occurs]]>
  13277. </doc>
  13278. </method>
  13279. <doc>
  13280. <![CDATA[Stringifier interface offers two methods to convert an object
  13281. to a string representation and restore the object given its
  13282. string representation.
  13283. @param <T> the class of the objects to stringify]]>
  13284. </doc>
  13285. </interface>
  13286. <!-- end interface org.apache.hadoop.io.Stringifier -->
  13287. <!-- start class org.apache.hadoop.io.Text -->
  13288. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  13289. abstract="false"
  13290. static="false" final="false" visibility="public"
  13291. deprecated="not deprecated">
  13292. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13293. <constructor name="Text"
  13294. static="false" final="false" visibility="public"
  13295. deprecated="not deprecated">
  13296. </constructor>
  13297. <constructor name="Text" type="java.lang.String"
  13298. static="false" final="false" visibility="public"
  13299. deprecated="not deprecated">
  13300. <doc>
  13301. <![CDATA[Construct from a string.]]>
  13302. </doc>
  13303. </constructor>
  13304. <constructor name="Text" type="org.apache.hadoop.io.Text"
  13305. static="false" final="false" visibility="public"
  13306. deprecated="not deprecated">
  13307. <doc>
  13308. <![CDATA[Construct from another text.]]>
  13309. </doc>
  13310. </constructor>
  13311. <constructor name="Text" type="byte[]"
  13312. static="false" final="false" visibility="public"
  13313. deprecated="not deprecated">
  13314. <doc>
  13315. <![CDATA[Construct from a byte array.]]>
  13316. </doc>
  13317. </constructor>
  13318. <method name="getBytes" return="byte[]"
  13319. abstract="false" native="false" synchronized="false"
  13320. static="false" final="false" visibility="public"
  13321. deprecated="not deprecated">
  13322. <doc>
  13323. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  13324. valid.]]>
  13325. </doc>
  13326. </method>
  13327. <method name="getLength" return="int"
  13328. abstract="false" native="false" synchronized="false"
  13329. static="false" final="false" visibility="public"
  13330. deprecated="not deprecated">
  13331. <doc>
  13332. <![CDATA[Returns the number of bytes in the byte array]]>
  13333. </doc>
  13334. </method>
  13335. <method name="charAt" return="int"
  13336. abstract="false" native="false" synchronized="false"
  13337. static="false" final="false" visibility="public"
  13338. deprecated="not deprecated">
  13339. <param name="position" type="int"/>
  13340. <doc>
  13341. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  13342. for the character at <code>position</code>. Note that this
  13343. method avoids using the converter or doing String instatiation
  13344. @return the Unicode scalar value at position or -1
  13345. if the position is invalid or points to a
  13346. trailing byte]]>
  13347. </doc>
  13348. </method>
  13349. <method name="find" return="int"
  13350. abstract="false" native="false" synchronized="false"
  13351. static="false" final="false" visibility="public"
  13352. deprecated="not deprecated">
  13353. <param name="what" type="java.lang.String"/>
  13354. </method>
  13355. <method name="find" return="int"
  13356. abstract="false" native="false" synchronized="false"
  13357. static="false" final="false" visibility="public"
  13358. deprecated="not deprecated">
  13359. <param name="what" type="java.lang.String"/>
  13360. <param name="start" type="int"/>
  13361. <doc>
  13362. <![CDATA[Finds any occurence of <code>what</code> in the backing
  13363. buffer, starting as position <code>start</code>. The starting
  13364. position is measured in bytes and the return value is in
  13365. terms of byte position in the buffer. The backing buffer is
  13366. not converted to a string for this operation.
  13367. @return byte position of the first occurence of the search
  13368. string in the UTF-8 buffer or -1 if not found]]>
  13369. </doc>
  13370. </method>
  13371. <method name="set"
  13372. abstract="false" native="false" synchronized="false"
  13373. static="false" final="false" visibility="public"
  13374. deprecated="not deprecated">
  13375. <param name="string" type="java.lang.String"/>
  13376. <doc>
  13377. <![CDATA[Set to contain the contents of a string.]]>
  13378. </doc>
  13379. </method>
  13380. <method name="set"
  13381. abstract="false" native="false" synchronized="false"
  13382. static="false" final="false" visibility="public"
  13383. deprecated="not deprecated">
  13384. <param name="utf8" type="byte[]"/>
  13385. <doc>
  13386. <![CDATA[Set to a utf8 byte array]]>
  13387. </doc>
  13388. </method>
  13389. <method name="set"
  13390. abstract="false" native="false" synchronized="false"
  13391. static="false" final="false" visibility="public"
  13392. deprecated="not deprecated">
  13393. <param name="other" type="org.apache.hadoop.io.Text"/>
  13394. <doc>
  13395. <![CDATA[copy a text.]]>
  13396. </doc>
  13397. </method>
  13398. <method name="set"
  13399. abstract="false" native="false" synchronized="false"
  13400. static="false" final="false" visibility="public"
  13401. deprecated="not deprecated">
  13402. <param name="utf8" type="byte[]"/>
  13403. <param name="start" type="int"/>
  13404. <param name="len" type="int"/>
  13405. <doc>
  13406. <![CDATA[Set the Text to range of bytes
  13407. @param utf8 the data to copy from
  13408. @param start the first position of the new string
  13409. @param len the number of bytes of the new string]]>
  13410. </doc>
  13411. </method>
  13412. <method name="append"
  13413. abstract="false" native="false" synchronized="false"
  13414. static="false" final="false" visibility="public"
  13415. deprecated="not deprecated">
  13416. <param name="utf8" type="byte[]"/>
  13417. <param name="start" type="int"/>
  13418. <param name="len" type="int"/>
  13419. <doc>
  13420. <![CDATA[Append a range of bytes to the end of the given text
  13421. @param utf8 the data to copy from
  13422. @param start the first position to append from utf8
  13423. @param len the number of bytes to append]]>
  13424. </doc>
  13425. </method>
  13426. <method name="clear"
  13427. abstract="false" native="false" synchronized="false"
  13428. static="false" final="false" visibility="public"
  13429. deprecated="not deprecated">
  13430. <doc>
  13431. <![CDATA[Clear the string to empty.]]>
  13432. </doc>
  13433. </method>
  13434. <method name="toString" return="java.lang.String"
  13435. abstract="false" native="false" synchronized="false"
  13436. static="false" final="false" visibility="public"
  13437. deprecated="not deprecated">
  13438. <doc>
  13439. <![CDATA[Convert text back to string
  13440. @see java.lang.Object#toString()]]>
  13441. </doc>
  13442. </method>
  13443. <method name="readFields"
  13444. abstract="false" native="false" synchronized="false"
  13445. static="false" final="false" visibility="public"
  13446. deprecated="not deprecated">
  13447. <param name="in" type="java.io.DataInput"/>
  13448. <exception name="IOException" type="java.io.IOException"/>
  13449. <doc>
  13450. <![CDATA[deserialize]]>
  13451. </doc>
  13452. </method>
  13453. <method name="skip"
  13454. abstract="false" native="false" synchronized="false"
  13455. static="true" final="false" visibility="public"
  13456. deprecated="not deprecated">
  13457. <param name="in" type="java.io.DataInput"/>
  13458. <exception name="IOException" type="java.io.IOException"/>
  13459. <doc>
  13460. <![CDATA[Skips over one Text in the input.]]>
  13461. </doc>
  13462. </method>
  13463. <method name="write"
  13464. abstract="false" native="false" synchronized="false"
  13465. static="false" final="false" visibility="public"
  13466. deprecated="not deprecated">
  13467. <param name="out" type="java.io.DataOutput"/>
  13468. <exception name="IOException" type="java.io.IOException"/>
  13469. <doc>
  13470. <![CDATA[serialize
  13471. write this object to out
  13472. length uses zero-compressed encoding
  13473. @see Writable#write(DataOutput)]]>
  13474. </doc>
  13475. </method>
  13476. <method name="equals" return="boolean"
  13477. abstract="false" native="false" synchronized="false"
  13478. static="false" final="false" visibility="public"
  13479. deprecated="not deprecated">
  13480. <param name="o" type="java.lang.Object"/>
  13481. <doc>
  13482. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  13483. </doc>
  13484. </method>
  13485. <method name="hashCode" return="int"
  13486. abstract="false" native="false" synchronized="false"
  13487. static="false" final="false" visibility="public"
  13488. deprecated="not deprecated">
  13489. </method>
  13490. <method name="decode" return="java.lang.String"
  13491. abstract="false" native="false" synchronized="false"
  13492. static="true" final="false" visibility="public"
  13493. deprecated="not deprecated">
  13494. <param name="utf8" type="byte[]"/>
  13495. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13496. <doc>
  13497. <![CDATA[Converts the provided byte array to a String using the
  13498. UTF-8 encoding. If the input is malformed,
  13499. replace by a default value.]]>
  13500. </doc>
  13501. </method>
  13502. <method name="decode" return="java.lang.String"
  13503. abstract="false" native="false" synchronized="false"
  13504. static="true" final="false" visibility="public"
  13505. deprecated="not deprecated">
  13506. <param name="utf8" type="byte[]"/>
  13507. <param name="start" type="int"/>
  13508. <param name="length" type="int"/>
  13509. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13510. </method>
  13511. <method name="decode" return="java.lang.String"
  13512. abstract="false" native="false" synchronized="false"
  13513. static="true" final="false" visibility="public"
  13514. deprecated="not deprecated">
  13515. <param name="utf8" type="byte[]"/>
  13516. <param name="start" type="int"/>
  13517. <param name="length" type="int"/>
  13518. <param name="replace" type="boolean"/>
  13519. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13520. <doc>
  13521. <![CDATA[Converts the provided byte array to a String using the
  13522. UTF-8 encoding. If <code>replace</code> is true, then
  13523. malformed input is replaced with the
  13524. substitution character, which is U+FFFD. Otherwise the
  13525. method throws a MalformedInputException.]]>
  13526. </doc>
  13527. </method>
  13528. <method name="encode" return="java.nio.ByteBuffer"
  13529. abstract="false" native="false" synchronized="false"
  13530. static="true" final="false" visibility="public"
  13531. deprecated="not deprecated">
  13532. <param name="string" type="java.lang.String"/>
  13533. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13534. <doc>
  13535. <![CDATA[Converts the provided String to bytes using the
  13536. UTF-8 encoding. If the input is malformed,
  13537. invalid chars are replaced by a default value.
  13538. @return ByteBuffer: bytes stores at ByteBuffer.array()
  13539. and length is ByteBuffer.limit()]]>
  13540. </doc>
  13541. </method>
  13542. <method name="encode" return="java.nio.ByteBuffer"
  13543. abstract="false" native="false" synchronized="false"
  13544. static="true" final="false" visibility="public"
  13545. deprecated="not deprecated">
  13546. <param name="string" type="java.lang.String"/>
  13547. <param name="replace" type="boolean"/>
  13548. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13549. <doc>
  13550. <![CDATA[Converts the provided String to bytes using the
  13551. UTF-8 encoding. If <code>replace</code> is true, then
  13552. malformed input is replaced with the
  13553. substitution character, which is U+FFFD. Otherwise the
  13554. method throws a MalformedInputException.
  13555. @return ByteBuffer: bytes stores at ByteBuffer.array()
  13556. and length is ByteBuffer.limit()]]>
  13557. </doc>
  13558. </method>
  13559. <method name="readString" return="java.lang.String"
  13560. abstract="false" native="false" synchronized="false"
  13561. static="true" final="false" visibility="public"
  13562. deprecated="not deprecated">
  13563. <param name="in" type="java.io.DataInput"/>
  13564. <exception name="IOException" type="java.io.IOException"/>
  13565. <doc>
  13566. <![CDATA[Read a UTF8 encoded string from in]]>
  13567. </doc>
  13568. </method>
  13569. <method name="writeString" return="int"
  13570. abstract="false" native="false" synchronized="false"
  13571. static="true" final="false" visibility="public"
  13572. deprecated="not deprecated">
  13573. <param name="out" type="java.io.DataOutput"/>
  13574. <param name="s" type="java.lang.String"/>
  13575. <exception name="IOException" type="java.io.IOException"/>
  13576. <doc>
  13577. <![CDATA[Write a UTF8 encoded string to out]]>
  13578. </doc>
  13579. </method>
  13580. <method name="validateUTF8"
  13581. abstract="false" native="false" synchronized="false"
  13582. static="true" final="false" visibility="public"
  13583. deprecated="not deprecated">
  13584. <param name="utf8" type="byte[]"/>
  13585. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  13586. <doc>
  13587. <![CDATA[Check if a byte array contains valid utf-8
  13588. @param utf8 byte array
  13589. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  13590. </doc>
  13591. </method>
  13592. <method name="validateUTF8"
  13593. abstract="false" native="false" synchronized="false"
  13594. static="true" final="false" visibility="public"
  13595. deprecated="not deprecated">
  13596. <param name="utf8" type="byte[]"/>
  13597. <param name="start" type="int"/>
  13598. <param name="len" type="int"/>
  13599. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  13600. <doc>
  13601. <![CDATA[Check to see if a byte array is valid utf-8
  13602. @param utf8 the array of bytes
  13603. @param start the offset of the first byte in the array
  13604. @param len the length of the byte sequence
  13605. @throws MalformedInputException if the byte array contains invalid bytes]]>
  13606. </doc>
  13607. </method>
  13608. <method name="bytesToCodePoint" return="int"
  13609. abstract="false" native="false" synchronized="false"
  13610. static="true" final="false" visibility="public"
  13611. deprecated="not deprecated">
  13612. <param name="bytes" type="java.nio.ByteBuffer"/>
  13613. <doc>
  13614. <![CDATA[Returns the next code point at the current position in
  13615. the buffer. The buffer's position will be incremented.
  13616. Any mark set on this buffer will be changed by this method!]]>
  13617. </doc>
  13618. </method>
  13619. <method name="utf8Length" return="int"
  13620. abstract="false" native="false" synchronized="false"
  13621. static="true" final="false" visibility="public"
  13622. deprecated="not deprecated">
  13623. <param name="string" type="java.lang.String"/>
  13624. <doc>
  13625. <![CDATA[For the given string, returns the number of UTF-8 bytes
  13626. required to encode the string.
  13627. @param string text to encode
  13628. @return number of UTF-8 bytes required to encode]]>
  13629. </doc>
  13630. </method>
  13631. <doc>
  13632. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  13633. to serialize, deserialize, and compare texts at byte level. The type of
  13634. length is integer and is serialized using zero-compressed format. <p>In
  13635. addition, it provides methods for string traversal without converting the
  13636. byte array to a string. <p>Also includes utilities for
  13637. serializing/deserialing a string, coding/decoding a string, checking if a
  13638. byte array contains valid UTF8 code, calculating the length of an encoded
  13639. string.]]>
  13640. </doc>
  13641. </class>
  13642. <!-- end class org.apache.hadoop.io.Text -->
  13643. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  13644. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  13645. abstract="false"
  13646. static="true" final="false" visibility="public"
  13647. deprecated="not deprecated">
  13648. <constructor name="Text.Comparator"
  13649. static="false" final="false" visibility="public"
  13650. deprecated="not deprecated">
  13651. </constructor>
  13652. <method name="compare" return="int"
  13653. abstract="false" native="false" synchronized="false"
  13654. static="false" final="false" visibility="public"
  13655. deprecated="not deprecated">
  13656. <param name="b1" type="byte[]"/>
  13657. <param name="s1" type="int"/>
  13658. <param name="l1" type="int"/>
  13659. <param name="b2" type="byte[]"/>
  13660. <param name="s2" type="int"/>
  13661. <param name="l2" type="int"/>
  13662. </method>
  13663. <doc>
  13664. <![CDATA[A WritableComparator optimized for Text keys.]]>
  13665. </doc>
  13666. </class>
  13667. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  13668. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  13669. <class name="TwoDArrayWritable" extends="java.lang.Object"
  13670. abstract="false"
  13671. static="false" final="false" visibility="public"
  13672. deprecated="not deprecated">
  13673. <implements name="org.apache.hadoop.io.Writable"/>
  13674. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  13675. static="false" final="false" visibility="public"
  13676. deprecated="not deprecated">
  13677. </constructor>
  13678. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  13679. static="false" final="false" visibility="public"
  13680. deprecated="not deprecated">
  13681. </constructor>
  13682. <method name="toArray" return="java.lang.Object"
  13683. abstract="false" native="false" synchronized="false"
  13684. static="false" final="false" visibility="public"
  13685. deprecated="not deprecated">
  13686. </method>
  13687. <method name="set"
  13688. abstract="false" native="false" synchronized="false"
  13689. static="false" final="false" visibility="public"
  13690. deprecated="not deprecated">
  13691. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  13692. </method>
  13693. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  13694. abstract="false" native="false" synchronized="false"
  13695. static="false" final="false" visibility="public"
  13696. deprecated="not deprecated">
  13697. </method>
  13698. <method name="readFields"
  13699. abstract="false" native="false" synchronized="false"
  13700. static="false" final="false" visibility="public"
  13701. deprecated="not deprecated">
  13702. <param name="in" type="java.io.DataInput"/>
  13703. <exception name="IOException" type="java.io.IOException"/>
  13704. </method>
  13705. <method name="write"
  13706. abstract="false" native="false" synchronized="false"
  13707. static="false" final="false" visibility="public"
  13708. deprecated="not deprecated">
  13709. <param name="out" type="java.io.DataOutput"/>
  13710. <exception name="IOException" type="java.io.IOException"/>
  13711. </method>
  13712. <doc>
  13713. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  13714. </doc>
  13715. </class>
  13716. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  13717. <!-- start class org.apache.hadoop.io.UTF8 -->
  13718. <class name="UTF8" extends="java.lang.Object"
  13719. abstract="false"
  13720. static="false" final="false" visibility="public"
  13721. deprecated="replaced by Text">
  13722. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13723. <constructor name="UTF8"
  13724. static="false" final="false" visibility="public"
  13725. deprecated="not deprecated">
  13726. </constructor>
  13727. <constructor name="UTF8" type="java.lang.String"
  13728. static="false" final="false" visibility="public"
  13729. deprecated="not deprecated">
  13730. <doc>
  13731. <![CDATA[Construct from a given string.]]>
  13732. </doc>
  13733. </constructor>
  13734. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  13735. static="false" final="false" visibility="public"
  13736. deprecated="not deprecated">
  13737. <doc>
  13738. <![CDATA[Construct from a given string.]]>
  13739. </doc>
  13740. </constructor>
  13741. <method name="getBytes" return="byte[]"
  13742. abstract="false" native="false" synchronized="false"
  13743. static="false" final="false" visibility="public"
  13744. deprecated="not deprecated">
  13745. <doc>
  13746. <![CDATA[The raw bytes.]]>
  13747. </doc>
  13748. </method>
  13749. <method name="getLength" return="int"
  13750. abstract="false" native="false" synchronized="false"
  13751. static="false" final="false" visibility="public"
  13752. deprecated="not deprecated">
  13753. <doc>
  13754. <![CDATA[The number of bytes in the encoded string.]]>
  13755. </doc>
  13756. </method>
  13757. <method name="set"
  13758. abstract="false" native="false" synchronized="false"
  13759. static="false" final="false" visibility="public"
  13760. deprecated="not deprecated">
  13761. <param name="string" type="java.lang.String"/>
  13762. <doc>
  13763. <![CDATA[Set to contain the contents of a string.]]>
  13764. </doc>
  13765. </method>
  13766. <method name="set"
  13767. abstract="false" native="false" synchronized="false"
  13768. static="false" final="false" visibility="public"
  13769. deprecated="not deprecated">
  13770. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  13771. <doc>
  13772. <![CDATA[Set to contain the contents of a string.]]>
  13773. </doc>
  13774. </method>
  13775. <method name="readFields"
  13776. abstract="false" native="false" synchronized="false"
  13777. static="false" final="false" visibility="public"
  13778. deprecated="not deprecated">
  13779. <param name="in" type="java.io.DataInput"/>
  13780. <exception name="IOException" type="java.io.IOException"/>
  13781. </method>
  13782. <method name="skip"
  13783. abstract="false" native="false" synchronized="false"
  13784. static="true" final="false" visibility="public"
  13785. deprecated="not deprecated">
  13786. <param name="in" type="java.io.DataInput"/>
  13787. <exception name="IOException" type="java.io.IOException"/>
  13788. <doc>
  13789. <![CDATA[Skips over one UTF8 in the input.]]>
  13790. </doc>
  13791. </method>
  13792. <method name="write"
  13793. abstract="false" native="false" synchronized="false"
  13794. static="false" final="false" visibility="public"
  13795. deprecated="not deprecated">
  13796. <param name="out" type="java.io.DataOutput"/>
  13797. <exception name="IOException" type="java.io.IOException"/>
  13798. </method>
  13799. <method name="compareTo" return="int"
  13800. abstract="false" native="false" synchronized="false"
  13801. static="false" final="false" visibility="public"
  13802. deprecated="not deprecated">
  13803. <param name="o" type="java.lang.Object"/>
  13804. <doc>
  13805. <![CDATA[Compare two UTF8s.]]>
  13806. </doc>
  13807. </method>
  13808. <method name="toString" return="java.lang.String"
  13809. abstract="false" native="false" synchronized="false"
  13810. static="false" final="false" visibility="public"
  13811. deprecated="not deprecated">
  13812. <doc>
  13813. <![CDATA[Convert to a String.]]>
  13814. </doc>
  13815. </method>
  13816. <method name="equals" return="boolean"
  13817. abstract="false" native="false" synchronized="false"
  13818. static="false" final="false" visibility="public"
  13819. deprecated="not deprecated">
  13820. <param name="o" type="java.lang.Object"/>
  13821. <doc>
  13822. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  13823. </doc>
  13824. </method>
  13825. <method name="hashCode" return="int"
  13826. abstract="false" native="false" synchronized="false"
  13827. static="false" final="false" visibility="public"
  13828. deprecated="not deprecated">
  13829. </method>
  13830. <method name="getBytes" return="byte[]"
  13831. abstract="false" native="false" synchronized="false"
  13832. static="true" final="false" visibility="public"
  13833. deprecated="not deprecated">
  13834. <param name="string" type="java.lang.String"/>
  13835. <doc>
  13836. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  13837. @see String#getBytes(String)]]>
  13838. </doc>
  13839. </method>
  13840. <method name="readString" return="java.lang.String"
  13841. abstract="false" native="false" synchronized="false"
  13842. static="true" final="false" visibility="public"
  13843. deprecated="not deprecated">
  13844. <param name="in" type="java.io.DataInput"/>
  13845. <exception name="IOException" type="java.io.IOException"/>
  13846. <doc>
  13847. <![CDATA[Read a UTF-8 encoded string.
  13848. @see DataInput#readUTF()]]>
  13849. </doc>
  13850. </method>
  13851. <method name="writeString" return="int"
  13852. abstract="false" native="false" synchronized="false"
  13853. static="true" final="false" visibility="public"
  13854. deprecated="not deprecated">
  13855. <param name="out" type="java.io.DataOutput"/>
  13856. <param name="s" type="java.lang.String"/>
  13857. <exception name="IOException" type="java.io.IOException"/>
  13858. <doc>
  13859. <![CDATA[Write a UTF-8 encoded string.
  13860. @see DataOutput#writeUTF(String)]]>
  13861. </doc>
  13862. </method>
  13863. <doc>
  13864. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  13865. <p>Also includes utilities for efficiently reading and writing UTF-8.
  13866. @deprecated replaced by Text]]>
  13867. </doc>
  13868. </class>
  13869. <!-- end class org.apache.hadoop.io.UTF8 -->
  13870. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  13871. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  13872. abstract="false"
  13873. static="true" final="false" visibility="public"
  13874. deprecated="not deprecated">
  13875. <constructor name="UTF8.Comparator"
  13876. static="false" final="false" visibility="public"
  13877. deprecated="not deprecated">
  13878. </constructor>
  13879. <method name="compare" return="int"
  13880. abstract="false" native="false" synchronized="false"
  13881. static="false" final="false" visibility="public"
  13882. deprecated="not deprecated">
  13883. <param name="b1" type="byte[]"/>
  13884. <param name="s1" type="int"/>
  13885. <param name="l1" type="int"/>
  13886. <param name="b2" type="byte[]"/>
  13887. <param name="s2" type="int"/>
  13888. <param name="l2" type="int"/>
  13889. </method>
  13890. <doc>
  13891. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  13892. </doc>
  13893. </class>
  13894. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  13895. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  13896. <class name="VersionedWritable" extends="java.lang.Object"
  13897. abstract="true"
  13898. static="false" final="false" visibility="public"
  13899. deprecated="not deprecated">
  13900. <implements name="org.apache.hadoop.io.Writable"/>
  13901. <constructor name="VersionedWritable"
  13902. static="false" final="false" visibility="public"
  13903. deprecated="not deprecated">
  13904. </constructor>
  13905. <method name="getVersion" return="byte"
  13906. abstract="true" native="false" synchronized="false"
  13907. static="false" final="false" visibility="public"
  13908. deprecated="not deprecated">
  13909. <doc>
  13910. <![CDATA[Return the version number of the current implementation.]]>
  13911. </doc>
  13912. </method>
  13913. <method name="write"
  13914. abstract="false" native="false" synchronized="false"
  13915. static="false" final="false" visibility="public"
  13916. deprecated="not deprecated">
  13917. <param name="out" type="java.io.DataOutput"/>
  13918. <exception name="IOException" type="java.io.IOException"/>
  13919. </method>
  13920. <method name="readFields"
  13921. abstract="false" native="false" synchronized="false"
  13922. static="false" final="false" visibility="public"
  13923. deprecated="not deprecated">
  13924. <param name="in" type="java.io.DataInput"/>
  13925. <exception name="IOException" type="java.io.IOException"/>
  13926. </method>
  13927. <doc>
  13928. <![CDATA[A base class for Writables that provides version checking.
  13929. <p>This is useful when a class may evolve, so that instances written by the
  13930. old version of the class may still be processed by the new version. To
  13931. handle this situation, {@link #readFields(DataInput)}
  13932. implementations should catch {@link VersionMismatchException}.]]>
  13933. </doc>
  13934. </class>
  13935. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  13936. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  13937. <class name="VersionMismatchException" extends="java.io.IOException"
  13938. abstract="false"
  13939. static="false" final="false" visibility="public"
  13940. deprecated="not deprecated">
  13941. <constructor name="VersionMismatchException" type="byte, byte"
  13942. static="false" final="false" visibility="public"
  13943. deprecated="not deprecated">
  13944. </constructor>
  13945. <method name="toString" return="java.lang.String"
  13946. abstract="false" native="false" synchronized="false"
  13947. static="false" final="false" visibility="public"
  13948. deprecated="not deprecated">
  13949. <doc>
  13950. <![CDATA[Returns a string representation of this object.]]>
  13951. </doc>
  13952. </method>
  13953. <doc>
  13954. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  13955. version of an object being read does not match the current implementation
  13956. version as returned by {@link VersionedWritable#getVersion()}.]]>
  13957. </doc>
  13958. </class>
  13959. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  13960. <!-- start class org.apache.hadoop.io.VIntWritable -->
  13961. <class name="VIntWritable" extends="java.lang.Object"
  13962. abstract="false"
  13963. static="false" final="false" visibility="public"
  13964. deprecated="not deprecated">
  13965. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13966. <constructor name="VIntWritable"
  13967. static="false" final="false" visibility="public"
  13968. deprecated="not deprecated">
  13969. </constructor>
  13970. <constructor name="VIntWritable" type="int"
  13971. static="false" final="false" visibility="public"
  13972. deprecated="not deprecated">
  13973. </constructor>
  13974. <method name="set"
  13975. abstract="false" native="false" synchronized="false"
  13976. static="false" final="false" visibility="public"
  13977. deprecated="not deprecated">
  13978. <param name="value" type="int"/>
  13979. <doc>
  13980. <![CDATA[Set the value of this VIntWritable.]]>
  13981. </doc>
  13982. </method>
  13983. <method name="get" return="int"
  13984. abstract="false" native="false" synchronized="false"
  13985. static="false" final="false" visibility="public"
  13986. deprecated="not deprecated">
  13987. <doc>
  13988. <![CDATA[Return the value of this VIntWritable.]]>
  13989. </doc>
  13990. </method>
  13991. <method name="readFields"
  13992. abstract="false" native="false" synchronized="false"
  13993. static="false" final="false" visibility="public"
  13994. deprecated="not deprecated">
  13995. <param name="in" type="java.io.DataInput"/>
  13996. <exception name="IOException" type="java.io.IOException"/>
  13997. </method>
  13998. <method name="write"
  13999. abstract="false" native="false" synchronized="false"
  14000. static="false" final="false" visibility="public"
  14001. deprecated="not deprecated">
  14002. <param name="out" type="java.io.DataOutput"/>
  14003. <exception name="IOException" type="java.io.IOException"/>
  14004. </method>
  14005. <method name="equals" return="boolean"
  14006. abstract="false" native="false" synchronized="false"
  14007. static="false" final="false" visibility="public"
  14008. deprecated="not deprecated">
  14009. <param name="o" type="java.lang.Object"/>
  14010. <doc>
  14011. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  14012. </doc>
  14013. </method>
  14014. <method name="hashCode" return="int"
  14015. abstract="false" native="false" synchronized="false"
  14016. static="false" final="false" visibility="public"
  14017. deprecated="not deprecated">
  14018. </method>
  14019. <method name="compareTo" return="int"
  14020. abstract="false" native="false" synchronized="false"
  14021. static="false" final="false" visibility="public"
  14022. deprecated="not deprecated">
  14023. <param name="o" type="java.lang.Object"/>
  14024. <doc>
  14025. <![CDATA[Compares two VIntWritables.]]>
  14026. </doc>
  14027. </method>
  14028. <method name="toString" return="java.lang.String"
  14029. abstract="false" native="false" synchronized="false"
  14030. static="false" final="false" visibility="public"
  14031. deprecated="not deprecated">
  14032. </method>
  14033. <doc>
  14034. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  14035. Such values take between one and five bytes. Smaller values take fewer bytes.
  14036. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  14037. </doc>
  14038. </class>
  14039. <!-- end class org.apache.hadoop.io.VIntWritable -->
  14040. <!-- start class org.apache.hadoop.io.VLongWritable -->
  14041. <class name="VLongWritable" extends="java.lang.Object"
  14042. abstract="false"
  14043. static="false" final="false" visibility="public"
  14044. deprecated="not deprecated">
  14045. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14046. <constructor name="VLongWritable"
  14047. static="false" final="false" visibility="public"
  14048. deprecated="not deprecated">
  14049. </constructor>
  14050. <constructor name="VLongWritable" type="long"
  14051. static="false" final="false" visibility="public"
  14052. deprecated="not deprecated">
  14053. </constructor>
  14054. <method name="set"
  14055. abstract="false" native="false" synchronized="false"
  14056. static="false" final="false" visibility="public"
  14057. deprecated="not deprecated">
  14058. <param name="value" type="long"/>
  14059. <doc>
  14060. <![CDATA[Set the value of this LongWritable.]]>
  14061. </doc>
  14062. </method>
  14063. <method name="get" return="long"
  14064. abstract="false" native="false" synchronized="false"
  14065. static="false" final="false" visibility="public"
  14066. deprecated="not deprecated">
  14067. <doc>
  14068. <![CDATA[Return the value of this LongWritable.]]>
  14069. </doc>
  14070. </method>
  14071. <method name="readFields"
  14072. abstract="false" native="false" synchronized="false"
  14073. static="false" final="false" visibility="public"
  14074. deprecated="not deprecated">
  14075. <param name="in" type="java.io.DataInput"/>
  14076. <exception name="IOException" type="java.io.IOException"/>
  14077. </method>
  14078. <method name="write"
  14079. abstract="false" native="false" synchronized="false"
  14080. static="false" final="false" visibility="public"
  14081. deprecated="not deprecated">
  14082. <param name="out" type="java.io.DataOutput"/>
  14083. <exception name="IOException" type="java.io.IOException"/>
  14084. </method>
  14085. <method name="equals" return="boolean"
  14086. abstract="false" native="false" synchronized="false"
  14087. static="false" final="false" visibility="public"
  14088. deprecated="not deprecated">
  14089. <param name="o" type="java.lang.Object"/>
  14090. <doc>
  14091. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  14092. </doc>
  14093. </method>
  14094. <method name="hashCode" return="int"
  14095. abstract="false" native="false" synchronized="false"
  14096. static="false" final="false" visibility="public"
  14097. deprecated="not deprecated">
  14098. </method>
  14099. <method name="compareTo" return="int"
  14100. abstract="false" native="false" synchronized="false"
  14101. static="false" final="false" visibility="public"
  14102. deprecated="not deprecated">
  14103. <param name="o" type="java.lang.Object"/>
  14104. <doc>
  14105. <![CDATA[Compares two VLongWritables.]]>
  14106. </doc>
  14107. </method>
  14108. <method name="toString" return="java.lang.String"
  14109. abstract="false" native="false" synchronized="false"
  14110. static="false" final="false" visibility="public"
  14111. deprecated="not deprecated">
  14112. </method>
  14113. <doc>
  14114. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  14115. between one and five bytes. Smaller values take fewer bytes.
  14116. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  14117. </doc>
  14118. </class>
  14119. <!-- end class org.apache.hadoop.io.VLongWritable -->
  14120. <!-- start interface org.apache.hadoop.io.Writable -->
  14121. <interface name="Writable" abstract="true"
  14122. static="false" final="false" visibility="public"
  14123. deprecated="not deprecated">
  14124. <method name="write"
  14125. abstract="false" native="false" synchronized="false"
  14126. static="false" final="false" visibility="public"
  14127. deprecated="not deprecated">
  14128. <param name="out" type="java.io.DataOutput"/>
  14129. <exception name="IOException" type="java.io.IOException"/>
  14130. <doc>
  14131. <![CDATA[Serialize the fields of this object to <code>out</code>.
  14132. @param out <code>DataOuput</code> to serialize this object into.
  14133. @throws IOException]]>
  14134. </doc>
  14135. </method>
  14136. <method name="readFields"
  14137. abstract="false" native="false" synchronized="false"
  14138. static="false" final="false" visibility="public"
  14139. deprecated="not deprecated">
  14140. <param name="in" type="java.io.DataInput"/>
  14141. <exception name="IOException" type="java.io.IOException"/>
  14142. <doc>
  14143. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  14144. <p>For efficiency, implementations should attempt to re-use storage in the
  14145. existing object where possible.</p>
  14146. @param in <code>DataInput</code> to deseriablize this object from.
  14147. @throws IOException]]>
  14148. </doc>
  14149. </method>
  14150. <doc>
  14151. <![CDATA[A serializable object which implements a simple, efficient, serialization
  14152. protocol, based on {@link DataInput} and {@link DataOutput}.
  14153. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  14154. framework implements this interface.</p>
  14155. <p>Implementations typically implement a static <code>read(DataInput)</code>
  14156. method which constructs a new instance, calls {@link #readFields(DataInput)}
  14157. and returns the instance.</p>
  14158. <p>Example:</p>
  14159. <p><blockquote><pre>
  14160. public class MyWritable implements Writable {
  14161. // Some data
  14162. private int counter;
  14163. private long timestamp;
  14164. public void write(DataOutput out) throws IOException {
  14165. out.writeInt(counter);
  14166. out.writeLong(timestamp);
  14167. }
  14168. public void readFields(DataInput in) throws IOException {
  14169. counter = in.readInt();
  14170. timestamp = in.readLong();
  14171. }
  14172. public static MyWritable read(DataInput in) throws IOException {
  14173. MyWritable w = new MyWritable();
  14174. w.readFields(in);
  14175. return w;
  14176. }
  14177. }
  14178. </pre></blockquote></p>]]>
  14179. </doc>
  14180. </interface>
  14181. <!-- end interface org.apache.hadoop.io.Writable -->
  14182. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  14183. <interface name="WritableComparable" abstract="true"
  14184. static="false" final="false" visibility="public"
  14185. deprecated="not deprecated">
  14186. <implements name="org.apache.hadoop.io.Writable"/>
  14187. <implements name="java.lang.Comparable"/>
  14188. <doc>
  14189. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  14190. <p><code>WritableComparable</code>s can be compared to each other, typically
  14191. via <code>Comparator</code>s. Any type which is to be used as a
  14192. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  14193. interface.</p>
  14194. <p>Example:</p>
  14195. <p><blockquote><pre>
  14196. public class MyWritableComparable implements WritableComparable {
  14197. // Some data
  14198. private int counter;
  14199. private long timestamp;
  14200. public void write(DataOutput out) throws IOException {
  14201. out.writeInt(counter);
  14202. out.writeLong(timestamp);
  14203. }
  14204. public void readFields(DataInput in) throws IOException {
  14205. counter = in.readInt();
  14206. timestamp = in.readLong();
  14207. }
  14208. public int compareTo(MyWritableComparable w) {
  14209. int thisValue = this.value;
  14210. int thatValue = ((IntWritable)o).value;
  14211. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  14212. }
  14213. }
  14214. </pre></blockquote></p>]]>
  14215. </doc>
  14216. </interface>
  14217. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  14218. <!-- start class org.apache.hadoop.io.WritableComparator -->
  14219. <class name="WritableComparator" extends="java.lang.Object"
  14220. abstract="false"
  14221. static="false" final="false" visibility="public"
  14222. deprecated="not deprecated">
  14223. <implements name="org.apache.hadoop.io.RawComparator"/>
  14224. <constructor name="WritableComparator" type="java.lang.Class"
  14225. static="false" final="false" visibility="protected"
  14226. deprecated="not deprecated">
  14227. <doc>
  14228. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  14229. </doc>
  14230. </constructor>
  14231. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  14232. static="false" final="false" visibility="protected"
  14233. deprecated="not deprecated">
  14234. </constructor>
  14235. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  14236. abstract="false" native="false" synchronized="true"
  14237. static="true" final="false" visibility="public"
  14238. deprecated="not deprecated">
  14239. <param name="c" type="java.lang.Class"/>
  14240. <doc>
  14241. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  14242. </doc>
  14243. </method>
  14244. <method name="define"
  14245. abstract="false" native="false" synchronized="true"
  14246. static="true" final="false" visibility="public"
  14247. deprecated="not deprecated">
  14248. <param name="c" type="java.lang.Class"/>
  14249. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  14250. <doc>
  14251. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  14252. implementation.]]>
  14253. </doc>
  14254. </method>
  14255. <method name="getKeyClass" return="java.lang.Class"
  14256. abstract="false" native="false" synchronized="false"
  14257. static="false" final="false" visibility="public"
  14258. deprecated="not deprecated">
  14259. <doc>
  14260. <![CDATA[Returns the WritableComparable implementation class.]]>
  14261. </doc>
  14262. </method>
  14263. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  14264. abstract="false" native="false" synchronized="false"
  14265. static="false" final="false" visibility="public"
  14266. deprecated="not deprecated">
  14267. <doc>
  14268. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  14269. </doc>
  14270. </method>
  14271. <method name="compare" return="int"
  14272. abstract="false" native="false" synchronized="false"
  14273. static="false" final="false" visibility="public"
  14274. deprecated="not deprecated">
  14275. <param name="b1" type="byte[]"/>
  14276. <param name="s1" type="int"/>
  14277. <param name="l1" type="int"/>
  14278. <param name="b2" type="byte[]"/>
  14279. <param name="s2" type="int"/>
  14280. <param name="l2" type="int"/>
  14281. <doc>
  14282. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  14283. <p>The default implementation reads the data into two {@link
  14284. WritableComparable}s (using {@link
  14285. Writable#readFields(DataInput)}, then calls {@link
  14286. #compare(WritableComparable,WritableComparable)}.]]>
  14287. </doc>
  14288. </method>
  14289. <method name="compare" return="int"
  14290. abstract="false" native="false" synchronized="false"
  14291. static="false" final="false" visibility="public"
  14292. deprecated="not deprecated">
  14293. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  14294. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  14295. <doc>
  14296. <![CDATA[Compare two WritableComparables.
  14297. <p> The default implementation uses the natural ordering, calling {@link
  14298. Comparable#compareTo(Object)}.]]>
  14299. </doc>
  14300. </method>
  14301. <method name="compare" return="int"
  14302. abstract="false" native="false" synchronized="false"
  14303. static="false" final="false" visibility="public"
  14304. deprecated="not deprecated">
  14305. <param name="a" type="java.lang.Object"/>
  14306. <param name="b" type="java.lang.Object"/>
  14307. </method>
  14308. <method name="compareBytes" return="int"
  14309. abstract="false" native="false" synchronized="false"
  14310. static="true" final="false" visibility="public"
  14311. deprecated="not deprecated">
  14312. <param name="b1" type="byte[]"/>
  14313. <param name="s1" type="int"/>
  14314. <param name="l1" type="int"/>
  14315. <param name="b2" type="byte[]"/>
  14316. <param name="s2" type="int"/>
  14317. <param name="l2" type="int"/>
  14318. <doc>
  14319. <![CDATA[Lexicographic order of binary data.]]>
  14320. </doc>
  14321. </method>
  14322. <method name="hashBytes" return="int"
  14323. abstract="false" native="false" synchronized="false"
  14324. static="true" final="false" visibility="public"
  14325. deprecated="not deprecated">
  14326. <param name="bytes" type="byte[]"/>
  14327. <param name="length" type="int"/>
  14328. <doc>
  14329. <![CDATA[Compute hash for binary data.]]>
  14330. </doc>
  14331. </method>
  14332. <method name="readUnsignedShort" return="int"
  14333. abstract="false" native="false" synchronized="false"
  14334. static="true" final="false" visibility="public"
  14335. deprecated="not deprecated">
  14336. <param name="bytes" type="byte[]"/>
  14337. <param name="start" type="int"/>
  14338. <doc>
  14339. <![CDATA[Parse an unsigned short from a byte array.]]>
  14340. </doc>
  14341. </method>
  14342. <method name="readInt" return="int"
  14343. abstract="false" native="false" synchronized="false"
  14344. static="true" final="false" visibility="public"
  14345. deprecated="not deprecated">
  14346. <param name="bytes" type="byte[]"/>
  14347. <param name="start" type="int"/>
  14348. <doc>
  14349. <![CDATA[Parse an integer from a byte array.]]>
  14350. </doc>
  14351. </method>
  14352. <method name="readFloat" return="float"
  14353. abstract="false" native="false" synchronized="false"
  14354. static="true" final="false" visibility="public"
  14355. deprecated="not deprecated">
  14356. <param name="bytes" type="byte[]"/>
  14357. <param name="start" type="int"/>
  14358. <doc>
  14359. <![CDATA[Parse a float from a byte array.]]>
  14360. </doc>
  14361. </method>
  14362. <method name="readLong" return="long"
  14363. abstract="false" native="false" synchronized="false"
  14364. static="true" final="false" visibility="public"
  14365. deprecated="not deprecated">
  14366. <param name="bytes" type="byte[]"/>
  14367. <param name="start" type="int"/>
  14368. <doc>
  14369. <![CDATA[Parse a long from a byte array.]]>
  14370. </doc>
  14371. </method>
  14372. <method name="readDouble" return="double"
  14373. abstract="false" native="false" synchronized="false"
  14374. static="true" final="false" visibility="public"
  14375. deprecated="not deprecated">
  14376. <param name="bytes" type="byte[]"/>
  14377. <param name="start" type="int"/>
  14378. <doc>
  14379. <![CDATA[Parse a double from a byte array.]]>
  14380. </doc>
  14381. </method>
  14382. <method name="readVLong" return="long"
  14383. abstract="false" native="false" synchronized="false"
  14384. static="true" final="false" visibility="public"
  14385. deprecated="not deprecated">
  14386. <param name="bytes" type="byte[]"/>
  14387. <param name="start" type="int"/>
  14388. <exception name="IOException" type="java.io.IOException"/>
  14389. <doc>
  14390. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  14391. @param bytes byte array with decode long
  14392. @param start starting index
  14393. @throws java.io.IOException
  14394. @return deserialized long]]>
  14395. </doc>
  14396. </method>
  14397. <method name="readVInt" return="int"
  14398. abstract="false" native="false" synchronized="false"
  14399. static="true" final="false" visibility="public"
  14400. deprecated="not deprecated">
  14401. <param name="bytes" type="byte[]"/>
  14402. <param name="start" type="int"/>
  14403. <exception name="IOException" type="java.io.IOException"/>
  14404. <doc>
  14405. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  14406. @param bytes byte array with the encoded integer
  14407. @param start start index
  14408. @throws java.io.IOException
  14409. @return deserialized integer]]>
  14410. </doc>
  14411. </method>
  14412. <doc>
  14413. <![CDATA[A Comparator for {@link WritableComparable}s.
  14414. <p>This base implemenation uses the natural ordering. To define alternate
  14415. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  14416. <p>One may optimize compare-intensive operations by overriding
  14417. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  14418. provided to assist in optimized implementations of this method.]]>
  14419. </doc>
  14420. </class>
  14421. <!-- end class org.apache.hadoop.io.WritableComparator -->
  14422. <!-- start class org.apache.hadoop.io.WritableFactories -->
  14423. <class name="WritableFactories" extends="java.lang.Object"
  14424. abstract="false"
  14425. static="false" final="false" visibility="public"
  14426. deprecated="not deprecated">
  14427. <method name="setFactory"
  14428. abstract="false" native="false" synchronized="true"
  14429. static="true" final="false" visibility="public"
  14430. deprecated="not deprecated">
  14431. <param name="c" type="java.lang.Class"/>
  14432. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  14433. <doc>
  14434. <![CDATA[Define a factory for a class.]]>
  14435. </doc>
  14436. </method>
  14437. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  14438. abstract="false" native="false" synchronized="true"
  14439. static="true" final="false" visibility="public"
  14440. deprecated="not deprecated">
  14441. <param name="c" type="java.lang.Class"/>
  14442. <doc>
  14443. <![CDATA[Define a factory for a class.]]>
  14444. </doc>
  14445. </method>
  14446. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  14447. abstract="false" native="false" synchronized="false"
  14448. static="true" final="false" visibility="public"
  14449. deprecated="not deprecated">
  14450. <param name="c" type="java.lang.Class"/>
  14451. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14452. <doc>
  14453. <![CDATA[Create a new instance of a class with a defined factory.]]>
  14454. </doc>
  14455. </method>
  14456. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  14457. abstract="false" native="false" synchronized="false"
  14458. static="true" final="false" visibility="public"
  14459. deprecated="not deprecated">
  14460. <param name="c" type="java.lang.Class"/>
  14461. <doc>
  14462. <![CDATA[Create a new instance of a class with a defined factory.]]>
  14463. </doc>
  14464. </method>
  14465. <doc>
  14466. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  14467. ObjectWritable} to be able to construct instances of non-public classes.]]>
  14468. </doc>
  14469. </class>
  14470. <!-- end class org.apache.hadoop.io.WritableFactories -->
  14471. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  14472. <interface name="WritableFactory" abstract="true"
  14473. static="false" final="false" visibility="public"
  14474. deprecated="not deprecated">
  14475. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  14476. abstract="false" native="false" synchronized="false"
  14477. static="false" final="false" visibility="public"
  14478. deprecated="not deprecated">
  14479. <doc>
  14480. <![CDATA[Return a new instance.]]>
  14481. </doc>
  14482. </method>
  14483. <doc>
  14484. <![CDATA[A factory for a class of Writable.
  14485. @see WritableFactories]]>
  14486. </doc>
  14487. </interface>
  14488. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  14489. <!-- start class org.apache.hadoop.io.WritableName -->
  14490. <class name="WritableName" extends="java.lang.Object"
  14491. abstract="false"
  14492. static="false" final="false" visibility="public"
  14493. deprecated="not deprecated">
  14494. <method name="setName"
  14495. abstract="false" native="false" synchronized="true"
  14496. static="true" final="false" visibility="public"
  14497. deprecated="not deprecated">
  14498. <param name="writableClass" type="java.lang.Class"/>
  14499. <param name="name" type="java.lang.String"/>
  14500. <doc>
  14501. <![CDATA[Set the name that a class should be known as to something other than the
  14502. class name.]]>
  14503. </doc>
  14504. </method>
  14505. <method name="addName"
  14506. abstract="false" native="false" synchronized="true"
  14507. static="true" final="false" visibility="public"
  14508. deprecated="not deprecated">
  14509. <param name="writableClass" type="java.lang.Class"/>
  14510. <param name="name" type="java.lang.String"/>
  14511. <doc>
  14512. <![CDATA[Add an alternate name for a class.]]>
  14513. </doc>
  14514. </method>
  14515. <method name="getName" return="java.lang.String"
  14516. abstract="false" native="false" synchronized="true"
  14517. static="true" final="false" visibility="public"
  14518. deprecated="not deprecated">
  14519. <param name="writableClass" type="java.lang.Class"/>
  14520. <doc>
  14521. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  14522. </doc>
  14523. </method>
  14524. <method name="getClass" return="java.lang.Class"
  14525. abstract="false" native="false" synchronized="true"
  14526. static="true" final="false" visibility="public"
  14527. deprecated="not deprecated">
  14528. <param name="name" type="java.lang.String"/>
  14529. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14530. <exception name="IOException" type="java.io.IOException"/>
  14531. <doc>
  14532. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  14533. </doc>
  14534. </method>
  14535. <doc>
  14536. <![CDATA[Utility to permit renaming of Writable implementation classes without
  14537. invalidiating files that contain their class name.]]>
  14538. </doc>
  14539. </class>
  14540. <!-- end class org.apache.hadoop.io.WritableName -->
  14541. <!-- start class org.apache.hadoop.io.WritableUtils -->
  14542. <class name="WritableUtils" extends="java.lang.Object"
  14543. abstract="false"
  14544. static="false" final="true" visibility="public"
  14545. deprecated="not deprecated">
  14546. <constructor name="WritableUtils"
  14547. static="false" final="false" visibility="public"
  14548. deprecated="not deprecated">
  14549. </constructor>
  14550. <method name="readCompressedByteArray" return="byte[]"
  14551. abstract="false" native="false" synchronized="false"
  14552. static="true" final="false" visibility="public"
  14553. deprecated="not deprecated">
  14554. <param name="in" type="java.io.DataInput"/>
  14555. <exception name="IOException" type="java.io.IOException"/>
  14556. </method>
  14557. <method name="skipCompressedByteArray"
  14558. abstract="false" native="false" synchronized="false"
  14559. static="true" final="false" visibility="public"
  14560. deprecated="not deprecated">
  14561. <param name="in" type="java.io.DataInput"/>
  14562. <exception name="IOException" type="java.io.IOException"/>
  14563. </method>
  14564. <method name="writeCompressedByteArray" return="int"
  14565. abstract="false" native="false" synchronized="false"
  14566. static="true" final="false" visibility="public"
  14567. deprecated="not deprecated">
  14568. <param name="out" type="java.io.DataOutput"/>
  14569. <param name="bytes" type="byte[]"/>
  14570. <exception name="IOException" type="java.io.IOException"/>
  14571. </method>
  14572. <method name="readCompressedString" return="java.lang.String"
  14573. abstract="false" native="false" synchronized="false"
  14574. static="true" final="false" visibility="public"
  14575. deprecated="not deprecated">
  14576. <param name="in" type="java.io.DataInput"/>
  14577. <exception name="IOException" type="java.io.IOException"/>
  14578. </method>
  14579. <method name="writeCompressedString" return="int"
  14580. abstract="false" native="false" synchronized="false"
  14581. static="true" final="false" visibility="public"
  14582. deprecated="not deprecated">
  14583. <param name="out" type="java.io.DataOutput"/>
  14584. <param name="s" type="java.lang.String"/>
  14585. <exception name="IOException" type="java.io.IOException"/>
  14586. </method>
  14587. <method name="writeString"
  14588. abstract="false" native="false" synchronized="false"
  14589. static="true" final="false" visibility="public"
  14590. deprecated="not deprecated">
  14591. <param name="out" type="java.io.DataOutput"/>
  14592. <param name="s" type="java.lang.String"/>
  14593. <exception name="IOException" type="java.io.IOException"/>
  14594. </method>
  14595. <method name="readString" return="java.lang.String"
  14596. abstract="false" native="false" synchronized="false"
  14597. static="true" final="false" visibility="public"
  14598. deprecated="not deprecated">
  14599. <param name="in" type="java.io.DataInput"/>
  14600. <exception name="IOException" type="java.io.IOException"/>
  14601. </method>
  14602. <method name="writeStringArray"
  14603. abstract="false" native="false" synchronized="false"
  14604. static="true" final="false" visibility="public"
  14605. deprecated="not deprecated">
  14606. <param name="out" type="java.io.DataOutput"/>
  14607. <param name="s" type="java.lang.String[]"/>
  14608. <exception name="IOException" type="java.io.IOException"/>
  14609. </method>
  14610. <method name="writeCompressedStringArray"
  14611. abstract="false" native="false" synchronized="false"
  14612. static="true" final="false" visibility="public"
  14613. deprecated="not deprecated">
  14614. <param name="out" type="java.io.DataOutput"/>
  14615. <param name="s" type="java.lang.String[]"/>
  14616. <exception name="IOException" type="java.io.IOException"/>
  14617. </method>
  14618. <method name="readStringArray" return="java.lang.String[]"
  14619. abstract="false" native="false" synchronized="false"
  14620. static="true" final="false" visibility="public"
  14621. deprecated="not deprecated">
  14622. <param name="in" type="java.io.DataInput"/>
  14623. <exception name="IOException" type="java.io.IOException"/>
  14624. </method>
  14625. <method name="readCompressedStringArray" return="java.lang.String[]"
  14626. abstract="false" native="false" synchronized="false"
  14627. static="true" final="false" visibility="public"
  14628. deprecated="not deprecated">
  14629. <param name="in" type="java.io.DataInput"/>
  14630. <exception name="IOException" type="java.io.IOException"/>
  14631. </method>
  14632. <method name="displayByteArray"
  14633. abstract="false" native="false" synchronized="false"
  14634. static="true" final="false" visibility="public"
  14635. deprecated="not deprecated">
  14636. <param name="record" type="byte[]"/>
  14637. </method>
  14638. <method name="clone" return="org.apache.hadoop.io.Writable"
  14639. abstract="false" native="false" synchronized="false"
  14640. static="true" final="false" visibility="public"
  14641. deprecated="not deprecated">
  14642. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  14643. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14644. <doc>
  14645. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  14646. @param orig The object to copy
  14647. @return The copied object]]>
  14648. </doc>
  14649. </method>
  14650. <method name="cloneInto"
  14651. abstract="false" native="false" synchronized="false"
  14652. static="true" final="false" visibility="public"
  14653. deprecated="use ReflectionUtils.cloneInto instead.">
  14654. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  14655. <param name="src" type="org.apache.hadoop.io.Writable"/>
  14656. <exception name="IOException" type="java.io.IOException"/>
  14657. <doc>
  14658. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  14659. @param dst the object to copy from
  14660. @param src the object to copy into, which is destroyed
  14661. @throws IOException
  14662. @deprecated use ReflectionUtils.cloneInto instead.]]>
  14663. </doc>
  14664. </method>
  14665. <method name="writeVInt"
  14666. abstract="false" native="false" synchronized="false"
  14667. static="true" final="false" visibility="public"
  14668. deprecated="not deprecated">
  14669. <param name="stream" type="java.io.DataOutput"/>
  14670. <param name="i" type="int"/>
  14671. <exception name="IOException" type="java.io.IOException"/>
  14672. <doc>
  14673. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  14674. For -120 <= i <= 127, only one byte is used with the actual value.
  14675. For other values of i, the first byte value indicates whether the
  14676. integer is positive or negative, and the number of bytes that follow.
  14677. If the first byte value v is between -121 and -124, the following integer
  14678. is positive, with number of bytes that follow are -(v+120).
  14679. If the first byte value v is between -125 and -128, the following integer
  14680. is negative, with number of bytes that follow are -(v+124). Bytes are
  14681. stored in the high-non-zero-byte-first order.
  14682. @param stream Binary output stream
  14683. @param i Integer to be serialized
  14684. @throws java.io.IOException]]>
  14685. </doc>
  14686. </method>
  14687. <method name="writeVLong"
  14688. abstract="false" native="false" synchronized="false"
  14689. static="true" final="false" visibility="public"
  14690. deprecated="not deprecated">
  14691. <param name="stream" type="java.io.DataOutput"/>
  14692. <param name="i" type="long"/>
  14693. <exception name="IOException" type="java.io.IOException"/>
  14694. <doc>
  14695. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  14696. For -112 <= i <= 127, only one byte is used with the actual value.
  14697. For other values of i, the first byte value indicates whether the
  14698. long is positive or negative, and the number of bytes that follow.
  14699. If the first byte value v is between -113 and -120, the following long
  14700. is positive, with number of bytes that follow are -(v+112).
  14701. If the first byte value v is between -121 and -128, the following long
  14702. is negative, with number of bytes that follow are -(v+120). Bytes are
  14703. stored in the high-non-zero-byte-first order.
  14704. @param stream Binary output stream
  14705. @param i Long to be serialized
  14706. @throws java.io.IOException]]>
  14707. </doc>
  14708. </method>
  14709. <method name="readVLong" return="long"
  14710. abstract="false" native="false" synchronized="false"
  14711. static="true" final="false" visibility="public"
  14712. deprecated="not deprecated">
  14713. <param name="stream" type="java.io.DataInput"/>
  14714. <exception name="IOException" type="java.io.IOException"/>
  14715. <doc>
  14716. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  14717. @param stream Binary input stream
  14718. @throws java.io.IOException
  14719. @return deserialized long from stream.]]>
  14720. </doc>
  14721. </method>
  14722. <method name="readVInt" return="int"
  14723. abstract="false" native="false" synchronized="false"
  14724. static="true" final="false" visibility="public"
  14725. deprecated="not deprecated">
  14726. <param name="stream" type="java.io.DataInput"/>
  14727. <exception name="IOException" type="java.io.IOException"/>
  14728. <doc>
  14729. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  14730. @param stream Binary input stream
  14731. @throws java.io.IOException
  14732. @return deserialized integer from stream.]]>
  14733. </doc>
  14734. </method>
  14735. <method name="isNegativeVInt" return="boolean"
  14736. abstract="false" native="false" synchronized="false"
  14737. static="true" final="false" visibility="public"
  14738. deprecated="not deprecated">
  14739. <param name="value" type="byte"/>
  14740. <doc>
  14741. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  14742. @param value the first byte
  14743. @return is the value negative]]>
  14744. </doc>
  14745. </method>
  14746. <method name="decodeVIntSize" return="int"
  14747. abstract="false" native="false" synchronized="false"
  14748. static="true" final="false" visibility="public"
  14749. deprecated="not deprecated">
  14750. <param name="value" type="byte"/>
  14751. <doc>
  14752. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  14753. @param value the first byte of the vint/vlong
  14754. @return the total number of bytes (1 to 9)]]>
  14755. </doc>
  14756. </method>
  14757. <method name="getVIntSize" return="int"
  14758. abstract="false" native="false" synchronized="false"
  14759. static="true" final="false" visibility="public"
  14760. deprecated="not deprecated">
  14761. <param name="i" type="long"/>
  14762. <doc>
  14763. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  14764. @return the encoded length]]>
  14765. </doc>
  14766. </method>
  14767. <method name="readEnum" return="java.lang.Enum"
  14768. abstract="false" native="false" synchronized="false"
  14769. static="true" final="false" visibility="public"
  14770. deprecated="not deprecated">
  14771. <param name="in" type="java.io.DataInput"/>
  14772. <param name="enumType" type="java.lang.Class"/>
  14773. <exception name="IOException" type="java.io.IOException"/>
  14774. <doc>
  14775. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  14776. using String values.
  14777. @param <T> Enum type
  14778. @param in DataInput to read from
  14779. @param enumType Class type of Enum
  14780. @return Enum represented by String read from DataInput
  14781. @throws IOException]]>
  14782. </doc>
  14783. </method>
  14784. <method name="writeEnum"
  14785. abstract="false" native="false" synchronized="false"
  14786. static="true" final="false" visibility="public"
  14787. deprecated="not deprecated">
  14788. <param name="out" type="java.io.DataOutput"/>
  14789. <param name="enumVal" type="java.lang.Enum"/>
  14790. <exception name="IOException" type="java.io.IOException"/>
  14791. <doc>
  14792. <![CDATA[writes String value of enum to DataOutput.
  14793. @param out Dataoutput stream
  14794. @param enumVal enum value
  14795. @throws IOException]]>
  14796. </doc>
  14797. </method>
  14798. <method name="skipFully"
  14799. abstract="false" native="false" synchronized="false"
  14800. static="true" final="false" visibility="public"
  14801. deprecated="not deprecated">
  14802. <param name="in" type="java.io.DataInput"/>
  14803. <param name="len" type="int"/>
  14804. <exception name="IOException" type="java.io.IOException"/>
  14805. <doc>
  14806. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  14807. @param in input stream
  14808. @param len number of bytes to skip
  14809. @throws IOException when skipped less number of bytes]]>
  14810. </doc>
  14811. </method>
  14812. <method name="toByteArray" return="byte[]"
  14813. abstract="false" native="false" synchronized="false"
  14814. static="true" final="false" visibility="public"
  14815. deprecated="not deprecated">
  14816. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  14817. <doc>
  14818. <![CDATA[Convert writables to a byte array]]>
  14819. </doc>
  14820. </method>
  14821. </class>
  14822. <!-- end class org.apache.hadoop.io.WritableUtils -->
  14823. </package>
  14824. <package name="org.apache.hadoop.io.compress">
  14825. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  14826. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  14827. abstract="false"
  14828. static="false" final="false" visibility="public"
  14829. deprecated="not deprecated">
  14830. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  14831. static="false" final="false" visibility="public"
  14832. deprecated="not deprecated">
  14833. <doc>
  14834. <![CDATA[Create a {@link BlockCompressorStream}.
  14835. @param out stream
  14836. @param compressor compressor to be used
  14837. @param bufferSize size of buffer
  14838. @param compressionOverhead maximum 'overhead' of the compression
  14839. algorithm with given bufferSize]]>
  14840. </doc>
  14841. </constructor>
  14842. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  14843. static="false" final="false" visibility="public"
  14844. deprecated="not deprecated">
  14845. <doc>
  14846. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  14847. compressor.
  14848. Use default of 512 as bufferSize and compressionOverhead of
  14849. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  14850. @param out stream
  14851. @param compressor compressor to be used]]>
  14852. </doc>
  14853. </constructor>
  14854. <method name="write"
  14855. abstract="false" native="false" synchronized="false"
  14856. static="false" final="false" visibility="public"
  14857. deprecated="not deprecated">
  14858. <param name="b" type="byte[]"/>
  14859. <param name="off" type="int"/>
  14860. <param name="len" type="int"/>
  14861. <exception name="IOException" type="java.io.IOException"/>
  14862. <doc>
  14863. <![CDATA[Write the data provided to the compression codec, compressing no more
  14864. than the buffer size less the compression overhead as specified during
  14865. construction for each block.
  14866. Each block contains the uncompressed length for the block, followed by
  14867. one or more length-prefixed blocks of compressed data.]]>
  14868. </doc>
  14869. </method>
  14870. <method name="finish"
  14871. abstract="false" native="false" synchronized="false"
  14872. static="false" final="false" visibility="public"
  14873. deprecated="not deprecated">
  14874. <exception name="IOException" type="java.io.IOException"/>
  14875. </method>
  14876. <method name="compress"
  14877. abstract="false" native="false" synchronized="false"
  14878. static="false" final="false" visibility="protected"
  14879. deprecated="not deprecated">
  14880. <exception name="IOException" type="java.io.IOException"/>
  14881. </method>
  14882. <doc>
  14883. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  14884. with 'block-based' based compression algorithms, as opposed to
  14885. 'stream-based' compression algorithms.
  14886. It should be noted that this wrapper does not guarantee that blocks will
  14887. be sized for the compressor. If the
  14888. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  14889. effect meaningful compression, it is responsible for it.]]>
  14890. </doc>
  14891. </class>
  14892. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  14893. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  14894. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  14895. abstract="false"
  14896. static="false" final="false" visibility="public"
  14897. deprecated="not deprecated">
  14898. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  14899. static="false" final="false" visibility="public"
  14900. deprecated="not deprecated">
  14901. <doc>
  14902. <![CDATA[Create a {@link BlockDecompressorStream}.
  14903. @param in input stream
  14904. @param decompressor decompressor to use
  14905. @param bufferSize size of buffer]]>
  14906. </doc>
  14907. </constructor>
  14908. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  14909. static="false" final="false" visibility="public"
  14910. deprecated="not deprecated">
  14911. <doc>
  14912. <![CDATA[Create a {@link BlockDecompressorStream}.
  14913. @param in input stream
  14914. @param decompressor decompressor to use]]>
  14915. </doc>
  14916. </constructor>
  14917. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  14918. static="false" final="false" visibility="protected"
  14919. deprecated="not deprecated">
  14920. </constructor>
  14921. <method name="decompress" return="int"
  14922. abstract="false" native="false" synchronized="false"
  14923. static="false" final="false" visibility="protected"
  14924. deprecated="not deprecated">
  14925. <param name="b" type="byte[]"/>
  14926. <param name="off" type="int"/>
  14927. <param name="len" type="int"/>
  14928. <exception name="IOException" type="java.io.IOException"/>
  14929. </method>
  14930. <method name="getCompressedData"
  14931. abstract="false" native="false" synchronized="false"
  14932. static="false" final="false" visibility="protected"
  14933. deprecated="not deprecated">
  14934. <exception name="IOException" type="java.io.IOException"/>
  14935. </method>
  14936. <method name="resetState"
  14937. abstract="false" native="false" synchronized="false"
  14938. static="false" final="false" visibility="public"
  14939. deprecated="not deprecated">
  14940. <exception name="IOException" type="java.io.IOException"/>
  14941. </method>
  14942. <doc>
  14943. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  14944. with 'block-based' based compression algorithms, as opposed to
  14945. 'stream-based' compression algorithms.]]>
  14946. </doc>
  14947. </class>
  14948. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  14949. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  14950. <class name="BZip2Codec" extends="java.lang.Object"
  14951. abstract="false"
  14952. static="false" final="false" visibility="public"
  14953. deprecated="not deprecated">
  14954. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  14955. <constructor name="BZip2Codec"
  14956. static="false" final="false" visibility="public"
  14957. deprecated="not deprecated">
  14958. <doc>
  14959. <![CDATA[Creates a new instance of BZip2Codec]]>
  14960. </doc>
  14961. </constructor>
  14962. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14963. abstract="false" native="false" synchronized="false"
  14964. static="false" final="false" visibility="public"
  14965. deprecated="not deprecated">
  14966. <param name="out" type="java.io.OutputStream"/>
  14967. <exception name="IOException" type="java.io.IOException"/>
  14968. <doc>
  14969. <![CDATA[Creates CompressionOutputStream for BZip2
  14970. @param out
  14971. The output Stream
  14972. @return The BZip2 CompressionOutputStream
  14973. @throws java.io.IOException
  14974. Throws IO exception]]>
  14975. </doc>
  14976. </method>
  14977. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14978. abstract="false" native="false" synchronized="false"
  14979. static="false" final="false" visibility="public"
  14980. deprecated="not deprecated">
  14981. <param name="out" type="java.io.OutputStream"/>
  14982. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  14983. <exception name="IOException" type="java.io.IOException"/>
  14984. <doc>
  14985. <![CDATA[This functionality is currently not supported.
  14986. @throws java.lang.UnsupportedOperationException
  14987. Throws UnsupportedOperationException]]>
  14988. </doc>
  14989. </method>
  14990. <method name="getCompressorType" return="java.lang.Class"
  14991. abstract="false" native="false" synchronized="false"
  14992. static="false" final="false" visibility="public"
  14993. deprecated="not deprecated">
  14994. <doc>
  14995. <![CDATA[This functionality is currently not supported.
  14996. @throws java.lang.UnsupportedOperationException
  14997. Throws UnsupportedOperationException]]>
  14998. </doc>
  14999. </method>
  15000. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15001. abstract="false" native="false" synchronized="false"
  15002. static="false" final="false" visibility="public"
  15003. deprecated="not deprecated">
  15004. <doc>
  15005. <![CDATA[This functionality is currently not supported.
  15006. @throws java.lang.UnsupportedOperationException
  15007. Throws UnsupportedOperationException]]>
  15008. </doc>
  15009. </method>
  15010. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15011. abstract="false" native="false" synchronized="false"
  15012. static="false" final="false" visibility="public"
  15013. deprecated="not deprecated">
  15014. <param name="in" type="java.io.InputStream"/>
  15015. <exception name="IOException" type="java.io.IOException"/>
  15016. <doc>
  15017. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  15018. @param in
  15019. The InputStream
  15020. @return Returns CompressionInputStream for BZip2
  15021. @throws java.io.IOException
  15022. Throws IOException]]>
  15023. </doc>
  15024. </method>
  15025. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15026. abstract="false" native="false" synchronized="false"
  15027. static="false" final="false" visibility="public"
  15028. deprecated="not deprecated">
  15029. <param name="in" type="java.io.InputStream"/>
  15030. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15031. <exception name="IOException" type="java.io.IOException"/>
  15032. <doc>
  15033. <![CDATA[This functionality is currently not supported.
  15034. @throws java.lang.UnsupportedOperationException
  15035. Throws UnsupportedOperationException]]>
  15036. </doc>
  15037. </method>
  15038. <method name="getDecompressorType" return="java.lang.Class"
  15039. abstract="false" native="false" synchronized="false"
  15040. static="false" final="false" visibility="public"
  15041. deprecated="not deprecated">
  15042. <doc>
  15043. <![CDATA[This functionality is currently not supported.
  15044. @throws java.lang.UnsupportedOperationException
  15045. Throws UnsupportedOperationException]]>
  15046. </doc>
  15047. </method>
  15048. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15049. abstract="false" native="false" synchronized="false"
  15050. static="false" final="false" visibility="public"
  15051. deprecated="not deprecated">
  15052. <doc>
  15053. <![CDATA[This functionality is currently not supported.
  15054. @throws java.lang.UnsupportedOperationException
  15055. Throws UnsupportedOperationException]]>
  15056. </doc>
  15057. </method>
  15058. <method name="getDefaultExtension" return="java.lang.String"
  15059. abstract="false" native="false" synchronized="false"
  15060. static="false" final="false" visibility="public"
  15061. deprecated="not deprecated">
  15062. <doc>
  15063. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  15064. @return A String telling the default bzip2 file extension]]>
  15065. </doc>
  15066. </method>
  15067. <doc>
  15068. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  15069. compression and decompression. Currently we dont have an implementation of
  15070. the Compressor and Decompressor interfaces, so those methods of
  15071. CompressionCodec which have a Compressor or Decompressor type argument, throw
  15072. UnsupportedOperationException.]]>
  15073. </doc>
  15074. </class>
  15075. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  15076. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  15077. <class name="CodecPool" extends="java.lang.Object"
  15078. abstract="false"
  15079. static="false" final="false" visibility="public"
  15080. deprecated="not deprecated">
  15081. <constructor name="CodecPool"
  15082. static="false" final="false" visibility="public"
  15083. deprecated="not deprecated">
  15084. </constructor>
  15085. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15086. abstract="false" native="false" synchronized="false"
  15087. static="true" final="false" visibility="public"
  15088. deprecated="not deprecated">
  15089. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  15090. <doc>
  15091. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  15092. pool or a new one.
  15093. @param codec the <code>CompressionCodec</code> for which to get the
  15094. <code>Compressor</code>
  15095. @return <code>Compressor</code> for the given
  15096. <code>CompressionCodec</code> from the pool or a new one]]>
  15097. </doc>
  15098. </method>
  15099. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15100. abstract="false" native="false" synchronized="false"
  15101. static="true" final="false" visibility="public"
  15102. deprecated="not deprecated">
  15103. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  15104. <doc>
  15105. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  15106. pool or a new one.
  15107. @param codec the <code>CompressionCodec</code> for which to get the
  15108. <code>Decompressor</code>
  15109. @return <code>Decompressor</code> for the given
  15110. <code>CompressionCodec</code> the pool or a new one]]>
  15111. </doc>
  15112. </method>
  15113. <method name="returnCompressor"
  15114. abstract="false" native="false" synchronized="false"
  15115. static="true" final="false" visibility="public"
  15116. deprecated="not deprecated">
  15117. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15118. <doc>
  15119. <![CDATA[Return the {@link Compressor} to the pool.
  15120. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  15121. </doc>
  15122. </method>
  15123. <method name="returnDecompressor"
  15124. abstract="false" native="false" synchronized="false"
  15125. static="true" final="false" visibility="public"
  15126. deprecated="not deprecated">
  15127. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15128. <doc>
  15129. <![CDATA[Return the {@link Decompressor} to the pool.
  15130. @param decompressor the <code>Decompressor</code> to be returned to the
  15131. pool]]>
  15132. </doc>
  15133. </method>
  15134. <doc>
  15135. <![CDATA[A global compressor/decompressor pool used to save and reuse
  15136. (possibly native) compression/decompression codecs.]]>
  15137. </doc>
  15138. </class>
  15139. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  15140. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  15141. <interface name="CompressionCodec" abstract="true"
  15142. static="false" final="false" visibility="public"
  15143. deprecated="not deprecated">
  15144. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15145. abstract="false" native="false" synchronized="false"
  15146. static="false" final="false" visibility="public"
  15147. deprecated="not deprecated">
  15148. <param name="out" type="java.io.OutputStream"/>
  15149. <exception name="IOException" type="java.io.IOException"/>
  15150. <doc>
  15151. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  15152. {@link OutputStream}.
  15153. @param out the location for the final output stream
  15154. @return a stream the user can write uncompressed data to have it compressed
  15155. @throws IOException]]>
  15156. </doc>
  15157. </method>
  15158. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15159. abstract="false" native="false" synchronized="false"
  15160. static="false" final="false" visibility="public"
  15161. deprecated="not deprecated">
  15162. <param name="out" type="java.io.OutputStream"/>
  15163. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15164. <exception name="IOException" type="java.io.IOException"/>
  15165. <doc>
  15166. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  15167. {@link OutputStream} with the given {@link Compressor}.
  15168. @param out the location for the final output stream
  15169. @param compressor compressor to use
  15170. @return a stream the user can write uncompressed data to have it compressed
  15171. @throws IOException]]>
  15172. </doc>
  15173. </method>
  15174. <method name="getCompressorType" return="java.lang.Class"
  15175. abstract="false" native="false" synchronized="false"
  15176. static="false" final="false" visibility="public"
  15177. deprecated="not deprecated">
  15178. <doc>
  15179. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  15180. @return the type of compressor needed by this codec.]]>
  15181. </doc>
  15182. </method>
  15183. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15184. abstract="false" native="false" synchronized="false"
  15185. static="false" final="false" visibility="public"
  15186. deprecated="not deprecated">
  15187. <doc>
  15188. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  15189. @return a new compressor for use by this codec]]>
  15190. </doc>
  15191. </method>
  15192. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15193. abstract="false" native="false" synchronized="false"
  15194. static="false" final="false" visibility="public"
  15195. deprecated="not deprecated">
  15196. <param name="in" type="java.io.InputStream"/>
  15197. <exception name="IOException" type="java.io.IOException"/>
  15198. <doc>
  15199. <![CDATA[Create a stream decompressor that will read from the given input stream.
  15200. @param in the stream to read compressed bytes from
  15201. @return a stream to read uncompressed bytes from
  15202. @throws IOException]]>
  15203. </doc>
  15204. </method>
  15205. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15206. abstract="false" native="false" synchronized="false"
  15207. static="false" final="false" visibility="public"
  15208. deprecated="not deprecated">
  15209. <param name="in" type="java.io.InputStream"/>
  15210. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15211. <exception name="IOException" type="java.io.IOException"/>
  15212. <doc>
  15213. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  15214. {@link InputStream} with the given {@link Decompressor}.
  15215. @param in the stream to read compressed bytes from
  15216. @param decompressor decompressor to use
  15217. @return a stream to read uncompressed bytes from
  15218. @throws IOException]]>
  15219. </doc>
  15220. </method>
  15221. <method name="getDecompressorType" return="java.lang.Class"
  15222. abstract="false" native="false" synchronized="false"
  15223. static="false" final="false" visibility="public"
  15224. deprecated="not deprecated">
  15225. <doc>
  15226. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  15227. @return the type of decompressor needed by this codec.]]>
  15228. </doc>
  15229. </method>
  15230. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15231. abstract="false" native="false" synchronized="false"
  15232. static="false" final="false" visibility="public"
  15233. deprecated="not deprecated">
  15234. <doc>
  15235. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  15236. @return a new decompressor for use by this codec]]>
  15237. </doc>
  15238. </method>
  15239. <method name="getDefaultExtension" return="java.lang.String"
  15240. abstract="false" native="false" synchronized="false"
  15241. static="false" final="false" visibility="public"
  15242. deprecated="not deprecated">
  15243. <doc>
  15244. <![CDATA[Get the default filename extension for this kind of compression.
  15245. @return the extension including the '.']]>
  15246. </doc>
  15247. </method>
  15248. <doc>
  15249. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  15250. </doc>
  15251. </interface>
  15252. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  15253. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  15254. <class name="CompressionCodecFactory" extends="java.lang.Object"
  15255. abstract="false"
  15256. static="false" final="false" visibility="public"
  15257. deprecated="not deprecated">
  15258. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  15259. static="false" final="false" visibility="public"
  15260. deprecated="not deprecated">
  15261. <doc>
  15262. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  15263. and register them. Defaults to gzip and zip.]]>
  15264. </doc>
  15265. </constructor>
  15266. <method name="toString" return="java.lang.String"
  15267. abstract="false" native="false" synchronized="false"
  15268. static="false" final="false" visibility="public"
  15269. deprecated="not deprecated">
  15270. <doc>
  15271. <![CDATA[Print the extension map out as a string.]]>
  15272. </doc>
  15273. </method>
  15274. <method name="getCodecClasses" return="java.util.List"
  15275. abstract="false" native="false" synchronized="false"
  15276. static="true" final="false" visibility="public"
  15277. deprecated="not deprecated">
  15278. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15279. <doc>
  15280. <![CDATA[Get the list of codecs listed in the configuration
  15281. @param conf the configuration to look in
  15282. @return a list of the Configuration classes or null if the attribute
  15283. was not set]]>
  15284. </doc>
  15285. </method>
  15286. <method name="setCodecClasses"
  15287. abstract="false" native="false" synchronized="false"
  15288. static="true" final="false" visibility="public"
  15289. deprecated="not deprecated">
  15290. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15291. <param name="classes" type="java.util.List"/>
  15292. <doc>
  15293. <![CDATA[Sets a list of codec classes in the configuration.
  15294. @param conf the configuration to modify
  15295. @param classes the list of classes to set]]>
  15296. </doc>
  15297. </method>
  15298. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  15299. abstract="false" native="false" synchronized="false"
  15300. static="false" final="false" visibility="public"
  15301. deprecated="not deprecated">
  15302. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15303. <doc>
  15304. <![CDATA[Find the relevant compression codec for the given file based on its
  15305. filename suffix.
  15306. @param file the filename to check
  15307. @return the codec object]]>
  15308. </doc>
  15309. </method>
  15310. <method name="removeSuffix" return="java.lang.String"
  15311. abstract="false" native="false" synchronized="false"
  15312. static="true" final="false" visibility="public"
  15313. deprecated="not deprecated">
  15314. <param name="filename" type="java.lang.String"/>
  15315. <param name="suffix" type="java.lang.String"/>
  15316. <doc>
  15317. <![CDATA[Removes a suffix from a filename, if it has it.
  15318. @param filename the filename to strip
  15319. @param suffix the suffix to remove
  15320. @return the shortened filename]]>
  15321. </doc>
  15322. </method>
  15323. <method name="main"
  15324. abstract="false" native="false" synchronized="false"
  15325. static="true" final="false" visibility="public"
  15326. deprecated="not deprecated">
  15327. <param name="args" type="java.lang.String[]"/>
  15328. <exception name="Exception" type="java.lang.Exception"/>
  15329. <doc>
  15330. <![CDATA[A little test program.
  15331. @param args]]>
  15332. </doc>
  15333. </method>
  15334. <field name="LOG" type="org.apache.commons.logging.Log"
  15335. transient="false" volatile="false"
  15336. static="true" final="true" visibility="public"
  15337. deprecated="not deprecated">
  15338. </field>
  15339. <doc>
  15340. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  15341. </doc>
  15342. </class>
  15343. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  15344. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  15345. <class name="CompressionInputStream" extends="java.io.InputStream"
  15346. abstract="true"
  15347. static="false" final="false" visibility="public"
  15348. deprecated="not deprecated">
  15349. <constructor name="CompressionInputStream" type="java.io.InputStream"
  15350. static="false" final="false" visibility="protected"
  15351. deprecated="not deprecated">
  15352. <doc>
  15353. <![CDATA[Create a compression input stream that reads
  15354. the decompressed bytes from the given stream.
  15355. @param in The input stream to be compressed.]]>
  15356. </doc>
  15357. </constructor>
  15358. <method name="close"
  15359. abstract="false" native="false" synchronized="false"
  15360. static="false" final="false" visibility="public"
  15361. deprecated="not deprecated">
  15362. <exception name="IOException" type="java.io.IOException"/>
  15363. </method>
  15364. <method name="read" return="int"
  15365. abstract="true" native="false" synchronized="false"
  15366. static="false" final="false" visibility="public"
  15367. deprecated="not deprecated">
  15368. <param name="b" type="byte[]"/>
  15369. <param name="off" type="int"/>
  15370. <param name="len" type="int"/>
  15371. <exception name="IOException" type="java.io.IOException"/>
  15372. <doc>
  15373. <![CDATA[Read bytes from the stream.
  15374. Made abstract to prevent leakage to underlying stream.]]>
  15375. </doc>
  15376. </method>
  15377. <method name="resetState"
  15378. abstract="true" native="false" synchronized="false"
  15379. static="false" final="false" visibility="public"
  15380. deprecated="not deprecated">
  15381. <exception name="IOException" type="java.io.IOException"/>
  15382. <doc>
  15383. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  15384. as the underlying stream may have been repositioned.]]>
  15385. </doc>
  15386. </method>
  15387. <field name="in" type="java.io.InputStream"
  15388. transient="false" volatile="false"
  15389. static="false" final="true" visibility="protected"
  15390. deprecated="not deprecated">
  15391. <doc>
  15392. <![CDATA[The input stream to be compressed.]]>
  15393. </doc>
  15394. </field>
  15395. <doc>
  15396. <![CDATA[A compression input stream.
  15397. <p>Implementations are assumed to be buffered. This permits clients to
  15398. reposition the underlying input stream then call {@link #resetState()},
  15399. without having to also synchronize client buffers.]]>
  15400. </doc>
  15401. </class>
  15402. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  15403. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  15404. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  15405. abstract="true"
  15406. static="false" final="false" visibility="public"
  15407. deprecated="not deprecated">
  15408. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  15409. static="false" final="false" visibility="protected"
  15410. deprecated="not deprecated">
  15411. <doc>
  15412. <![CDATA[Create a compression output stream that writes
  15413. the compressed bytes to the given stream.
  15414. @param out]]>
  15415. </doc>
  15416. </constructor>
  15417. <method name="close"
  15418. abstract="false" native="false" synchronized="false"
  15419. static="false" final="false" visibility="public"
  15420. deprecated="not deprecated">
  15421. <exception name="IOException" type="java.io.IOException"/>
  15422. </method>
  15423. <method name="flush"
  15424. abstract="false" native="false" synchronized="false"
  15425. static="false" final="false" visibility="public"
  15426. deprecated="not deprecated">
  15427. <exception name="IOException" type="java.io.IOException"/>
  15428. </method>
  15429. <method name="write"
  15430. abstract="true" native="false" synchronized="false"
  15431. static="false" final="false" visibility="public"
  15432. deprecated="not deprecated">
  15433. <param name="b" type="byte[]"/>
  15434. <param name="off" type="int"/>
  15435. <param name="len" type="int"/>
  15436. <exception name="IOException" type="java.io.IOException"/>
  15437. <doc>
  15438. <![CDATA[Write compressed bytes to the stream.
  15439. Made abstract to prevent leakage to underlying stream.]]>
  15440. </doc>
  15441. </method>
  15442. <method name="finish"
  15443. abstract="true" native="false" synchronized="false"
  15444. static="false" final="false" visibility="public"
  15445. deprecated="not deprecated">
  15446. <exception name="IOException" type="java.io.IOException"/>
  15447. <doc>
  15448. <![CDATA[Finishes writing compressed data to the output stream
  15449. without closing the underlying stream.]]>
  15450. </doc>
  15451. </method>
  15452. <method name="resetState"
  15453. abstract="true" native="false" synchronized="false"
  15454. static="false" final="false" visibility="public"
  15455. deprecated="not deprecated">
  15456. <exception name="IOException" type="java.io.IOException"/>
  15457. <doc>
  15458. <![CDATA[Reset the compression to the initial state.
  15459. Does not reset the underlying stream.]]>
  15460. </doc>
  15461. </method>
  15462. <field name="out" type="java.io.OutputStream"
  15463. transient="false" volatile="false"
  15464. static="false" final="true" visibility="protected"
  15465. deprecated="not deprecated">
  15466. <doc>
  15467. <![CDATA[The output stream to be compressed.]]>
  15468. </doc>
  15469. </field>
  15470. <doc>
  15471. <![CDATA[A compression output stream.]]>
  15472. </doc>
  15473. </class>
  15474. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  15475. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  15476. <interface name="Compressor" abstract="true"
  15477. static="false" final="false" visibility="public"
  15478. deprecated="not deprecated">
  15479. <method name="setInput"
  15480. abstract="false" native="false" synchronized="false"
  15481. static="false" final="false" visibility="public"
  15482. deprecated="not deprecated">
  15483. <param name="b" type="byte[]"/>
  15484. <param name="off" type="int"/>
  15485. <param name="len" type="int"/>
  15486. <doc>
  15487. <![CDATA[Sets input data for compression.
  15488. This should be called whenever #needsInput() returns
  15489. <code>true</code> indicating that more input data is required.
  15490. @param b Input data
  15491. @param off Start offset
  15492. @param len Length]]>
  15493. </doc>
  15494. </method>
  15495. <method name="needsInput" return="boolean"
  15496. abstract="false" native="false" synchronized="false"
  15497. static="false" final="false" visibility="public"
  15498. deprecated="not deprecated">
  15499. <doc>
  15500. <![CDATA[Returns true if the input data buffer is empty and
  15501. #setInput() should be called to provide more input.
  15502. @return <code>true</code> if the input data buffer is empty and
  15503. #setInput() should be called in order to provide more input.]]>
  15504. </doc>
  15505. </method>
  15506. <method name="setDictionary"
  15507. abstract="false" native="false" synchronized="false"
  15508. static="false" final="false" visibility="public"
  15509. deprecated="not deprecated">
  15510. <param name="b" type="byte[]"/>
  15511. <param name="off" type="int"/>
  15512. <param name="len" type="int"/>
  15513. <doc>
  15514. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  15515. is used when the history buffer can be predetermined.
  15516. @param b Dictionary data bytes
  15517. @param off Start offset
  15518. @param len Length]]>
  15519. </doc>
  15520. </method>
  15521. <method name="getBytesRead" return="long"
  15522. abstract="false" native="false" synchronized="false"
  15523. static="false" final="false" visibility="public"
  15524. deprecated="not deprecated">
  15525. <doc>
  15526. <![CDATA[Return number of uncompressed bytes input so far.]]>
  15527. </doc>
  15528. </method>
  15529. <method name="getBytesWritten" return="long"
  15530. abstract="false" native="false" synchronized="false"
  15531. static="false" final="false" visibility="public"
  15532. deprecated="not deprecated">
  15533. <doc>
  15534. <![CDATA[Return number of compressed bytes output so far.]]>
  15535. </doc>
  15536. </method>
  15537. <method name="finish"
  15538. abstract="false" native="false" synchronized="false"
  15539. static="false" final="false" visibility="public"
  15540. deprecated="not deprecated">
  15541. <doc>
  15542. <![CDATA[When called, indicates that compression should end
  15543. with the current contents of the input buffer.]]>
  15544. </doc>
  15545. </method>
  15546. <method name="finished" return="boolean"
  15547. abstract="false" native="false" synchronized="false"
  15548. static="false" final="false" visibility="public"
  15549. deprecated="not deprecated">
  15550. <doc>
  15551. <![CDATA[Returns true if the end of the compressed
  15552. data output stream has been reached.
  15553. @return <code>true</code> if the end of the compressed
  15554. data output stream has been reached.]]>
  15555. </doc>
  15556. </method>
  15557. <method name="compress" return="int"
  15558. abstract="false" native="false" synchronized="false"
  15559. static="false" final="false" visibility="public"
  15560. deprecated="not deprecated">
  15561. <param name="b" type="byte[]"/>
  15562. <param name="off" type="int"/>
  15563. <param name="len" type="int"/>
  15564. <exception name="IOException" type="java.io.IOException"/>
  15565. <doc>
  15566. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  15567. of bytes of compressed data. A return value of 0 indicates that
  15568. needsInput() should be called in order to determine if more input
  15569. data is required.
  15570. @param b Buffer for the compressed data
  15571. @param off Start offset of the data
  15572. @param len Size of the buffer
  15573. @return The actual number of bytes of compressed data.]]>
  15574. </doc>
  15575. </method>
  15576. <method name="reset"
  15577. abstract="false" native="false" synchronized="false"
  15578. static="false" final="false" visibility="public"
  15579. deprecated="not deprecated">
  15580. <doc>
  15581. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  15582. </doc>
  15583. </method>
  15584. <method name="end"
  15585. abstract="false" native="false" synchronized="false"
  15586. static="false" final="false" visibility="public"
  15587. deprecated="not deprecated">
  15588. <doc>
  15589. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  15590. </doc>
  15591. </method>
  15592. <doc>
  15593. <![CDATA[Specification of a stream-based 'compressor' which can be
  15594. plugged into a {@link CompressionOutputStream} to compress data.
  15595. This is modelled after {@link java.util.zip.Deflater}]]>
  15596. </doc>
  15597. </interface>
  15598. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  15599. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  15600. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  15601. abstract="false"
  15602. static="false" final="false" visibility="public"
  15603. deprecated="not deprecated">
  15604. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  15605. static="false" final="false" visibility="public"
  15606. deprecated="not deprecated">
  15607. </constructor>
  15608. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  15609. static="false" final="false" visibility="public"
  15610. deprecated="not deprecated">
  15611. </constructor>
  15612. <constructor name="CompressorStream" type="java.io.OutputStream"
  15613. static="false" final="false" visibility="protected"
  15614. deprecated="not deprecated">
  15615. <doc>
  15616. <![CDATA[Allow derived classes to directly set the underlying stream.
  15617. @param out Underlying output stream.]]>
  15618. </doc>
  15619. </constructor>
  15620. <method name="write"
  15621. abstract="false" native="false" synchronized="false"
  15622. static="false" final="false" visibility="public"
  15623. deprecated="not deprecated">
  15624. <param name="b" type="byte[]"/>
  15625. <param name="off" type="int"/>
  15626. <param name="len" type="int"/>
  15627. <exception name="IOException" type="java.io.IOException"/>
  15628. </method>
  15629. <method name="compress"
  15630. abstract="false" native="false" synchronized="false"
  15631. static="false" final="false" visibility="protected"
  15632. deprecated="not deprecated">
  15633. <exception name="IOException" type="java.io.IOException"/>
  15634. </method>
  15635. <method name="finish"
  15636. abstract="false" native="false" synchronized="false"
  15637. static="false" final="false" visibility="public"
  15638. deprecated="not deprecated">
  15639. <exception name="IOException" type="java.io.IOException"/>
  15640. </method>
  15641. <method name="resetState"
  15642. abstract="false" native="false" synchronized="false"
  15643. static="false" final="false" visibility="public"
  15644. deprecated="not deprecated">
  15645. <exception name="IOException" type="java.io.IOException"/>
  15646. </method>
  15647. <method name="close"
  15648. abstract="false" native="false" synchronized="false"
  15649. static="false" final="false" visibility="public"
  15650. deprecated="not deprecated">
  15651. <exception name="IOException" type="java.io.IOException"/>
  15652. </method>
  15653. <method name="write"
  15654. abstract="false" native="false" synchronized="false"
  15655. static="false" final="false" visibility="public"
  15656. deprecated="not deprecated">
  15657. <param name="b" type="int"/>
  15658. <exception name="IOException" type="java.io.IOException"/>
  15659. </method>
  15660. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  15661. transient="false" volatile="false"
  15662. static="false" final="false" visibility="protected"
  15663. deprecated="not deprecated">
  15664. </field>
  15665. <field name="buffer" type="byte[]"
  15666. transient="false" volatile="false"
  15667. static="false" final="false" visibility="protected"
  15668. deprecated="not deprecated">
  15669. </field>
  15670. <field name="closed" type="boolean"
  15671. transient="false" volatile="false"
  15672. static="false" final="false" visibility="protected"
  15673. deprecated="not deprecated">
  15674. </field>
  15675. </class>
  15676. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  15677. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  15678. <interface name="Decompressor" abstract="true"
  15679. static="false" final="false" visibility="public"
  15680. deprecated="not deprecated">
  15681. <method name="setInput"
  15682. abstract="false" native="false" synchronized="false"
  15683. static="false" final="false" visibility="public"
  15684. deprecated="not deprecated">
  15685. <param name="b" type="byte[]"/>
  15686. <param name="off" type="int"/>
  15687. <param name="len" type="int"/>
  15688. <doc>
  15689. <![CDATA[Sets input data for decompression.
  15690. This should be called whenever #needsInput() returns
  15691. <code>true</code> indicating that more input data is required.
  15692. @param b Input data
  15693. @param off Start offset
  15694. @param len Length]]>
  15695. </doc>
  15696. </method>
  15697. <method name="needsInput" return="boolean"
  15698. abstract="false" native="false" synchronized="false"
  15699. static="false" final="false" visibility="public"
  15700. deprecated="not deprecated">
  15701. <doc>
  15702. <![CDATA[Returns true if the input data buffer is empty and
  15703. #setInput() should be called to provide more input.
  15704. @return <code>true</code> if the input data buffer is empty and
  15705. #setInput() should be called in order to provide more input.]]>
  15706. </doc>
  15707. </method>
  15708. <method name="setDictionary"
  15709. abstract="false" native="false" synchronized="false"
  15710. static="false" final="false" visibility="public"
  15711. deprecated="not deprecated">
  15712. <param name="b" type="byte[]"/>
  15713. <param name="off" type="int"/>
  15714. <param name="len" type="int"/>
  15715. <doc>
  15716. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  15717. is used when the history buffer can be predetermined.
  15718. @param b Dictionary data bytes
  15719. @param off Start offset
  15720. @param len Length]]>
  15721. </doc>
  15722. </method>
  15723. <method name="needsDictionary" return="boolean"
  15724. abstract="false" native="false" synchronized="false"
  15725. static="false" final="false" visibility="public"
  15726. deprecated="not deprecated">
  15727. <doc>
  15728. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  15729. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  15730. </doc>
  15731. </method>
  15732. <method name="finished" return="boolean"
  15733. abstract="false" native="false" synchronized="false"
  15734. static="false" final="false" visibility="public"
  15735. deprecated="not deprecated">
  15736. <doc>
  15737. <![CDATA[Returns true if the end of the compressed
  15738. data output stream has been reached.
  15739. @return <code>true</code> if the end of the compressed
  15740. data output stream has been reached.]]>
  15741. </doc>
  15742. </method>
  15743. <method name="decompress" return="int"
  15744. abstract="false" native="false" synchronized="false"
  15745. static="false" final="false" visibility="public"
  15746. deprecated="not deprecated">
  15747. <param name="b" type="byte[]"/>
  15748. <param name="off" type="int"/>
  15749. <param name="len" type="int"/>
  15750. <exception name="IOException" type="java.io.IOException"/>
  15751. <doc>
  15752. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  15753. of bytes of uncompressed data. A return value of 0 indicates that
  15754. #needsInput() should be called in order to determine if more input
  15755. data is required.
  15756. @param b Buffer for the compressed data
  15757. @param off Start offset of the data
  15758. @param len Size of the buffer
  15759. @return The actual number of bytes of compressed data.
  15760. @throws IOException]]>
  15761. </doc>
  15762. </method>
  15763. <method name="reset"
  15764. abstract="false" native="false" synchronized="false"
  15765. static="false" final="false" visibility="public"
  15766. deprecated="not deprecated">
  15767. <doc>
  15768. <![CDATA[Resets decompressor so that a new set of input data can be processed.]]>
  15769. </doc>
  15770. </method>
  15771. <method name="end"
  15772. abstract="false" native="false" synchronized="false"
  15773. static="false" final="false" visibility="public"
  15774. deprecated="not deprecated">
  15775. <doc>
  15776. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  15777. </doc>
  15778. </method>
  15779. <doc>
  15780. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  15781. plugged into a {@link CompressionInputStream} to compress data.
  15782. This is modelled after {@link java.util.zip.Inflater}]]>
  15783. </doc>
  15784. </interface>
  15785. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  15786. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  15787. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  15788. abstract="false"
  15789. static="false" final="false" visibility="public"
  15790. deprecated="not deprecated">
  15791. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  15792. static="false" final="false" visibility="public"
  15793. deprecated="not deprecated">
  15794. </constructor>
  15795. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  15796. static="false" final="false" visibility="public"
  15797. deprecated="not deprecated">
  15798. </constructor>
  15799. <constructor name="DecompressorStream" type="java.io.InputStream"
  15800. static="false" final="false" visibility="protected"
  15801. deprecated="not deprecated">
  15802. <doc>
  15803. <![CDATA[Allow derived classes to directly set the underlying stream.
  15804. @param in Underlying input stream.]]>
  15805. </doc>
  15806. </constructor>
  15807. <method name="read" return="int"
  15808. abstract="false" native="false" synchronized="false"
  15809. static="false" final="false" visibility="public"
  15810. deprecated="not deprecated">
  15811. <exception name="IOException" type="java.io.IOException"/>
  15812. </method>
  15813. <method name="read" return="int"
  15814. abstract="false" native="false" synchronized="false"
  15815. static="false" final="false" visibility="public"
  15816. deprecated="not deprecated">
  15817. <param name="b" type="byte[]"/>
  15818. <param name="off" type="int"/>
  15819. <param name="len" type="int"/>
  15820. <exception name="IOException" type="java.io.IOException"/>
  15821. </method>
  15822. <method name="decompress" return="int"
  15823. abstract="false" native="false" synchronized="false"
  15824. static="false" final="false" visibility="protected"
  15825. deprecated="not deprecated">
  15826. <param name="b" type="byte[]"/>
  15827. <param name="off" type="int"/>
  15828. <param name="len" type="int"/>
  15829. <exception name="IOException" type="java.io.IOException"/>
  15830. </method>
  15831. <method name="getCompressedData"
  15832. abstract="false" native="false" synchronized="false"
  15833. static="false" final="false" visibility="protected"
  15834. deprecated="not deprecated">
  15835. <exception name="IOException" type="java.io.IOException"/>
  15836. </method>
  15837. <method name="checkStream"
  15838. abstract="false" native="false" synchronized="false"
  15839. static="false" final="false" visibility="protected"
  15840. deprecated="not deprecated">
  15841. <exception name="IOException" type="java.io.IOException"/>
  15842. </method>
  15843. <method name="resetState"
  15844. abstract="false" native="false" synchronized="false"
  15845. static="false" final="false" visibility="public"
  15846. deprecated="not deprecated">
  15847. <exception name="IOException" type="java.io.IOException"/>
  15848. </method>
  15849. <method name="skip" return="long"
  15850. abstract="false" native="false" synchronized="false"
  15851. static="false" final="false" visibility="public"
  15852. deprecated="not deprecated">
  15853. <param name="n" type="long"/>
  15854. <exception name="IOException" type="java.io.IOException"/>
  15855. </method>
  15856. <method name="available" return="int"
  15857. abstract="false" native="false" synchronized="false"
  15858. static="false" final="false" visibility="public"
  15859. deprecated="not deprecated">
  15860. <exception name="IOException" type="java.io.IOException"/>
  15861. </method>
  15862. <method name="close"
  15863. abstract="false" native="false" synchronized="false"
  15864. static="false" final="false" visibility="public"
  15865. deprecated="not deprecated">
  15866. <exception name="IOException" type="java.io.IOException"/>
  15867. </method>
  15868. <method name="markSupported" return="boolean"
  15869. abstract="false" native="false" synchronized="false"
  15870. static="false" final="false" visibility="public"
  15871. deprecated="not deprecated">
  15872. </method>
  15873. <method name="mark"
  15874. abstract="false" native="false" synchronized="true"
  15875. static="false" final="false" visibility="public"
  15876. deprecated="not deprecated">
  15877. <param name="readlimit" type="int"/>
  15878. </method>
  15879. <method name="reset"
  15880. abstract="false" native="false" synchronized="true"
  15881. static="false" final="false" visibility="public"
  15882. deprecated="not deprecated">
  15883. <exception name="IOException" type="java.io.IOException"/>
  15884. </method>
  15885. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  15886. transient="false" volatile="false"
  15887. static="false" final="false" visibility="protected"
  15888. deprecated="not deprecated">
  15889. </field>
  15890. <field name="buffer" type="byte[]"
  15891. transient="false" volatile="false"
  15892. static="false" final="false" visibility="protected"
  15893. deprecated="not deprecated">
  15894. </field>
  15895. <field name="eof" type="boolean"
  15896. transient="false" volatile="false"
  15897. static="false" final="false" visibility="protected"
  15898. deprecated="not deprecated">
  15899. </field>
  15900. <field name="closed" type="boolean"
  15901. transient="false" volatile="false"
  15902. static="false" final="false" visibility="protected"
  15903. deprecated="not deprecated">
  15904. </field>
  15905. </class>
  15906. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  15907. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  15908. <class name="DefaultCodec" extends="java.lang.Object"
  15909. abstract="false"
  15910. static="false" final="false" visibility="public"
  15911. deprecated="not deprecated">
  15912. <implements name="org.apache.hadoop.conf.Configurable"/>
  15913. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  15914. <constructor name="DefaultCodec"
  15915. static="false" final="false" visibility="public"
  15916. deprecated="not deprecated">
  15917. </constructor>
  15918. <method name="setConf"
  15919. abstract="false" native="false" synchronized="false"
  15920. static="false" final="false" visibility="public"
  15921. deprecated="not deprecated">
  15922. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15923. </method>
  15924. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  15925. abstract="false" native="false" synchronized="false"
  15926. static="false" final="false" visibility="public"
  15927. deprecated="not deprecated">
  15928. </method>
  15929. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15930. abstract="false" native="false" synchronized="false"
  15931. static="false" final="false" visibility="public"
  15932. deprecated="not deprecated">
  15933. <param name="out" type="java.io.OutputStream"/>
  15934. <exception name="IOException" type="java.io.IOException"/>
  15935. </method>
  15936. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15937. abstract="false" native="false" synchronized="false"
  15938. static="false" final="false" visibility="public"
  15939. deprecated="not deprecated">
  15940. <param name="out" type="java.io.OutputStream"/>
  15941. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15942. <exception name="IOException" type="java.io.IOException"/>
  15943. </method>
  15944. <method name="getCompressorType" return="java.lang.Class"
  15945. abstract="false" native="false" synchronized="false"
  15946. static="false" final="false" visibility="public"
  15947. deprecated="not deprecated">
  15948. </method>
  15949. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15950. abstract="false" native="false" synchronized="false"
  15951. static="false" final="false" visibility="public"
  15952. deprecated="not deprecated">
  15953. </method>
  15954. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15955. abstract="false" native="false" synchronized="false"
  15956. static="false" final="false" visibility="public"
  15957. deprecated="not deprecated">
  15958. <param name="in" type="java.io.InputStream"/>
  15959. <exception name="IOException" type="java.io.IOException"/>
  15960. </method>
  15961. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15962. abstract="false" native="false" synchronized="false"
  15963. static="false" final="false" visibility="public"
  15964. deprecated="not deprecated">
  15965. <param name="in" type="java.io.InputStream"/>
  15966. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15967. <exception name="IOException" type="java.io.IOException"/>
  15968. </method>
  15969. <method name="getDecompressorType" return="java.lang.Class"
  15970. abstract="false" native="false" synchronized="false"
  15971. static="false" final="false" visibility="public"
  15972. deprecated="not deprecated">
  15973. </method>
  15974. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15975. abstract="false" native="false" synchronized="false"
  15976. static="false" final="false" visibility="public"
  15977. deprecated="not deprecated">
  15978. </method>
  15979. <method name="getDefaultExtension" return="java.lang.String"
  15980. abstract="false" native="false" synchronized="false"
  15981. static="false" final="false" visibility="public"
  15982. deprecated="not deprecated">
  15983. </method>
  15984. </class>
  15985. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  15986. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  15987. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  15988. abstract="false"
  15989. static="false" final="false" visibility="public"
  15990. deprecated="not deprecated">
  15991. <constructor name="GzipCodec"
  15992. static="false" final="false" visibility="public"
  15993. deprecated="not deprecated">
  15994. </constructor>
  15995. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15996. abstract="false" native="false" synchronized="false"
  15997. static="false" final="false" visibility="public"
  15998. deprecated="not deprecated">
  15999. <param name="out" type="java.io.OutputStream"/>
  16000. <exception name="IOException" type="java.io.IOException"/>
  16001. </method>
  16002. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16003. abstract="false" native="false" synchronized="false"
  16004. static="false" final="false" visibility="public"
  16005. deprecated="not deprecated">
  16006. <param name="out" type="java.io.OutputStream"/>
  16007. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16008. <exception name="IOException" type="java.io.IOException"/>
  16009. </method>
  16010. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16011. abstract="false" native="false" synchronized="false"
  16012. static="false" final="false" visibility="public"
  16013. deprecated="not deprecated">
  16014. </method>
  16015. <method name="getCompressorType" return="java.lang.Class"
  16016. abstract="false" native="false" synchronized="false"
  16017. static="false" final="false" visibility="public"
  16018. deprecated="not deprecated">
  16019. </method>
  16020. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16021. abstract="false" native="false" synchronized="false"
  16022. static="false" final="false" visibility="public"
  16023. deprecated="not deprecated">
  16024. <param name="in" type="java.io.InputStream"/>
  16025. <exception name="IOException" type="java.io.IOException"/>
  16026. </method>
  16027. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16028. abstract="false" native="false" synchronized="false"
  16029. static="false" final="false" visibility="public"
  16030. deprecated="not deprecated">
  16031. <param name="in" type="java.io.InputStream"/>
  16032. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16033. <exception name="IOException" type="java.io.IOException"/>
  16034. </method>
  16035. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16036. abstract="false" native="false" synchronized="false"
  16037. static="false" final="false" visibility="public"
  16038. deprecated="not deprecated">
  16039. </method>
  16040. <method name="getDecompressorType" return="java.lang.Class"
  16041. abstract="false" native="false" synchronized="false"
  16042. static="false" final="false" visibility="public"
  16043. deprecated="not deprecated">
  16044. </method>
  16045. <method name="getDefaultExtension" return="java.lang.String"
  16046. abstract="false" native="false" synchronized="false"
  16047. static="false" final="false" visibility="public"
  16048. deprecated="not deprecated">
  16049. </method>
  16050. <doc>
  16051. <![CDATA[This class creates gzip compressors/decompressors.]]>
  16052. </doc>
  16053. </class>
  16054. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  16055. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  16056. <class name="GzipCodec.GzipInputStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  16057. abstract="false"
  16058. static="true" final="false" visibility="protected"
  16059. deprecated="not deprecated">
  16060. <constructor name="GzipCodec.GzipInputStream" type="java.io.InputStream"
  16061. static="false" final="false" visibility="public"
  16062. deprecated="not deprecated">
  16063. <exception name="IOException" type="java.io.IOException"/>
  16064. </constructor>
  16065. <constructor name="GzipCodec.GzipInputStream" type="org.apache.hadoop.io.compress.DecompressorStream"
  16066. static="false" final="false" visibility="protected"
  16067. deprecated="not deprecated">
  16068. <doc>
  16069. <![CDATA[Allow subclasses to directly set the inflater stream.]]>
  16070. </doc>
  16071. </constructor>
  16072. <method name="available" return="int"
  16073. abstract="false" native="false" synchronized="false"
  16074. static="false" final="false" visibility="public"
  16075. deprecated="not deprecated">
  16076. <exception name="IOException" type="java.io.IOException"/>
  16077. </method>
  16078. <method name="close"
  16079. abstract="false" native="false" synchronized="false"
  16080. static="false" final="false" visibility="public"
  16081. deprecated="not deprecated">
  16082. <exception name="IOException" type="java.io.IOException"/>
  16083. </method>
  16084. <method name="read" return="int"
  16085. abstract="false" native="false" synchronized="false"
  16086. static="false" final="false" visibility="public"
  16087. deprecated="not deprecated">
  16088. <exception name="IOException" type="java.io.IOException"/>
  16089. </method>
  16090. <method name="read" return="int"
  16091. abstract="false" native="false" synchronized="false"
  16092. static="false" final="false" visibility="public"
  16093. deprecated="not deprecated">
  16094. <param name="data" type="byte[]"/>
  16095. <param name="offset" type="int"/>
  16096. <param name="len" type="int"/>
  16097. <exception name="IOException" type="java.io.IOException"/>
  16098. </method>
  16099. <method name="skip" return="long"
  16100. abstract="false" native="false" synchronized="false"
  16101. static="false" final="false" visibility="public"
  16102. deprecated="not deprecated">
  16103. <param name="offset" type="long"/>
  16104. <exception name="IOException" type="java.io.IOException"/>
  16105. </method>
  16106. <method name="resetState"
  16107. abstract="false" native="false" synchronized="false"
  16108. static="false" final="false" visibility="public"
  16109. deprecated="not deprecated">
  16110. <exception name="IOException" type="java.io.IOException"/>
  16111. </method>
  16112. </class>
  16113. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  16114. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  16115. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  16116. abstract="false"
  16117. static="true" final="false" visibility="protected"
  16118. deprecated="not deprecated">
  16119. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  16120. static="false" final="false" visibility="public"
  16121. deprecated="not deprecated">
  16122. <exception name="IOException" type="java.io.IOException"/>
  16123. </constructor>
  16124. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  16125. static="false" final="false" visibility="protected"
  16126. deprecated="not deprecated">
  16127. <doc>
  16128. <![CDATA[Allow children types to put a different type in here.
  16129. @param out the Deflater stream to use]]>
  16130. </doc>
  16131. </constructor>
  16132. <method name="close"
  16133. abstract="false" native="false" synchronized="false"
  16134. static="false" final="false" visibility="public"
  16135. deprecated="not deprecated">
  16136. <exception name="IOException" type="java.io.IOException"/>
  16137. </method>
  16138. <method name="flush"
  16139. abstract="false" native="false" synchronized="false"
  16140. static="false" final="false" visibility="public"
  16141. deprecated="not deprecated">
  16142. <exception name="IOException" type="java.io.IOException"/>
  16143. </method>
  16144. <method name="write"
  16145. abstract="false" native="false" synchronized="false"
  16146. static="false" final="false" visibility="public"
  16147. deprecated="not deprecated">
  16148. <param name="b" type="int"/>
  16149. <exception name="IOException" type="java.io.IOException"/>
  16150. </method>
  16151. <method name="write"
  16152. abstract="false" native="false" synchronized="false"
  16153. static="false" final="false" visibility="public"
  16154. deprecated="not deprecated">
  16155. <param name="data" type="byte[]"/>
  16156. <param name="offset" type="int"/>
  16157. <param name="length" type="int"/>
  16158. <exception name="IOException" type="java.io.IOException"/>
  16159. </method>
  16160. <method name="finish"
  16161. abstract="false" native="false" synchronized="false"
  16162. static="false" final="false" visibility="public"
  16163. deprecated="not deprecated">
  16164. <exception name="IOException" type="java.io.IOException"/>
  16165. </method>
  16166. <method name="resetState"
  16167. abstract="false" native="false" synchronized="false"
  16168. static="false" final="false" visibility="public"
  16169. deprecated="not deprecated">
  16170. <exception name="IOException" type="java.io.IOException"/>
  16171. </method>
  16172. <doc>
  16173. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  16174. a CompressionOutputStream.]]>
  16175. </doc>
  16176. </class>
  16177. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  16178. </package>
  16179. <package name="org.apache.hadoop.io.compress.bzip2">
  16180. <!-- start interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  16181. <interface name="BZip2Constants" abstract="true"
  16182. static="false" final="false" visibility="public"
  16183. deprecated="not deprecated">
  16184. <field name="baseBlockSize" type="int"
  16185. transient="false" volatile="false"
  16186. static="true" final="true" visibility="public"
  16187. deprecated="not deprecated">
  16188. </field>
  16189. <field name="MAX_ALPHA_SIZE" type="int"
  16190. transient="false" volatile="false"
  16191. static="true" final="true" visibility="public"
  16192. deprecated="not deprecated">
  16193. </field>
  16194. <field name="MAX_CODE_LEN" type="int"
  16195. transient="false" volatile="false"
  16196. static="true" final="true" visibility="public"
  16197. deprecated="not deprecated">
  16198. </field>
  16199. <field name="RUNA" type="int"
  16200. transient="false" volatile="false"
  16201. static="true" final="true" visibility="public"
  16202. deprecated="not deprecated">
  16203. </field>
  16204. <field name="RUNB" type="int"
  16205. transient="false" volatile="false"
  16206. static="true" final="true" visibility="public"
  16207. deprecated="not deprecated">
  16208. </field>
  16209. <field name="N_GROUPS" type="int"
  16210. transient="false" volatile="false"
  16211. static="true" final="true" visibility="public"
  16212. deprecated="not deprecated">
  16213. </field>
  16214. <field name="G_SIZE" type="int"
  16215. transient="false" volatile="false"
  16216. static="true" final="true" visibility="public"
  16217. deprecated="not deprecated">
  16218. </field>
  16219. <field name="N_ITERS" type="int"
  16220. transient="false" volatile="false"
  16221. static="true" final="true" visibility="public"
  16222. deprecated="not deprecated">
  16223. </field>
  16224. <field name="MAX_SELECTORS" type="int"
  16225. transient="false" volatile="false"
  16226. static="true" final="true" visibility="public"
  16227. deprecated="not deprecated">
  16228. </field>
  16229. <field name="NUM_OVERSHOOT_BYTES" type="int"
  16230. transient="false" volatile="false"
  16231. static="true" final="true" visibility="public"
  16232. deprecated="not deprecated">
  16233. </field>
  16234. <field name="rNums" type="int[]"
  16235. transient="false" volatile="false"
  16236. static="true" final="true" visibility="public"
  16237. deprecated="not deprecated">
  16238. <doc>
  16239. <![CDATA[This array really shouldn't be here. Again, for historical purposes it
  16240. is.
  16241. <p>
  16242. FIXME: This array should be in a private or package private location,
  16243. since it could be modified by malicious code.
  16244. </p>]]>
  16245. </doc>
  16246. </field>
  16247. <doc>
  16248. <![CDATA[Base class for both the compress and decompress classes. Holds common arrays,
  16249. and static data.
  16250. <p>
  16251. This interface is public for historical purposes. You should have no need to
  16252. use it.
  16253. </p>]]>
  16254. </doc>
  16255. </interface>
  16256. <!-- end interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  16257. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  16258. <class name="BZip2DummyCompressor" extends="java.lang.Object"
  16259. abstract="false"
  16260. static="false" final="false" visibility="public"
  16261. deprecated="not deprecated">
  16262. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  16263. <constructor name="BZip2DummyCompressor"
  16264. static="false" final="false" visibility="public"
  16265. deprecated="not deprecated">
  16266. </constructor>
  16267. <method name="compress" return="int"
  16268. abstract="false" native="false" synchronized="false"
  16269. static="false" final="false" visibility="public"
  16270. deprecated="not deprecated">
  16271. <param name="b" type="byte[]"/>
  16272. <param name="off" type="int"/>
  16273. <param name="len" type="int"/>
  16274. <exception name="IOException" type="java.io.IOException"/>
  16275. </method>
  16276. <method name="end"
  16277. abstract="false" native="false" synchronized="false"
  16278. static="false" final="false" visibility="public"
  16279. deprecated="not deprecated">
  16280. </method>
  16281. <method name="finish"
  16282. abstract="false" native="false" synchronized="false"
  16283. static="false" final="false" visibility="public"
  16284. deprecated="not deprecated">
  16285. </method>
  16286. <method name="finished" return="boolean"
  16287. abstract="false" native="false" synchronized="false"
  16288. static="false" final="false" visibility="public"
  16289. deprecated="not deprecated">
  16290. </method>
  16291. <method name="getBytesRead" return="long"
  16292. abstract="false" native="false" synchronized="false"
  16293. static="false" final="false" visibility="public"
  16294. deprecated="not deprecated">
  16295. </method>
  16296. <method name="getBytesWritten" return="long"
  16297. abstract="false" native="false" synchronized="false"
  16298. static="false" final="false" visibility="public"
  16299. deprecated="not deprecated">
  16300. </method>
  16301. <method name="needsInput" return="boolean"
  16302. abstract="false" native="false" synchronized="false"
  16303. static="false" final="false" visibility="public"
  16304. deprecated="not deprecated">
  16305. </method>
  16306. <method name="reset"
  16307. abstract="false" native="false" synchronized="false"
  16308. static="false" final="false" visibility="public"
  16309. deprecated="not deprecated">
  16310. </method>
  16311. <method name="setDictionary"
  16312. abstract="false" native="false" synchronized="false"
  16313. static="false" final="false" visibility="public"
  16314. deprecated="not deprecated">
  16315. <param name="b" type="byte[]"/>
  16316. <param name="off" type="int"/>
  16317. <param name="len" type="int"/>
  16318. </method>
  16319. <method name="setInput"
  16320. abstract="false" native="false" synchronized="false"
  16321. static="false" final="false" visibility="public"
  16322. deprecated="not deprecated">
  16323. <param name="b" type="byte[]"/>
  16324. <param name="off" type="int"/>
  16325. <param name="len" type="int"/>
  16326. </method>
  16327. <doc>
  16328. <![CDATA[This is a dummy compressor for BZip2.]]>
  16329. </doc>
  16330. </class>
  16331. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  16332. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  16333. <class name="BZip2DummyDecompressor" extends="java.lang.Object"
  16334. abstract="false"
  16335. static="false" final="false" visibility="public"
  16336. deprecated="not deprecated">
  16337. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  16338. <constructor name="BZip2DummyDecompressor"
  16339. static="false" final="false" visibility="public"
  16340. deprecated="not deprecated">
  16341. </constructor>
  16342. <method name="decompress" return="int"
  16343. abstract="false" native="false" synchronized="false"
  16344. static="false" final="false" visibility="public"
  16345. deprecated="not deprecated">
  16346. <param name="b" type="byte[]"/>
  16347. <param name="off" type="int"/>
  16348. <param name="len" type="int"/>
  16349. <exception name="IOException" type="java.io.IOException"/>
  16350. </method>
  16351. <method name="end"
  16352. abstract="false" native="false" synchronized="false"
  16353. static="false" final="false" visibility="public"
  16354. deprecated="not deprecated">
  16355. </method>
  16356. <method name="finished" return="boolean"
  16357. abstract="false" native="false" synchronized="false"
  16358. static="false" final="false" visibility="public"
  16359. deprecated="not deprecated">
  16360. </method>
  16361. <method name="needsDictionary" return="boolean"
  16362. abstract="false" native="false" synchronized="false"
  16363. static="false" final="false" visibility="public"
  16364. deprecated="not deprecated">
  16365. </method>
  16366. <method name="needsInput" return="boolean"
  16367. abstract="false" native="false" synchronized="false"
  16368. static="false" final="false" visibility="public"
  16369. deprecated="not deprecated">
  16370. </method>
  16371. <method name="reset"
  16372. abstract="false" native="false" synchronized="false"
  16373. static="false" final="false" visibility="public"
  16374. deprecated="not deprecated">
  16375. </method>
  16376. <method name="setDictionary"
  16377. abstract="false" native="false" synchronized="false"
  16378. static="false" final="false" visibility="public"
  16379. deprecated="not deprecated">
  16380. <param name="b" type="byte[]"/>
  16381. <param name="off" type="int"/>
  16382. <param name="len" type="int"/>
  16383. </method>
  16384. <method name="setInput"
  16385. abstract="false" native="false" synchronized="false"
  16386. static="false" final="false" visibility="public"
  16387. deprecated="not deprecated">
  16388. <param name="b" type="byte[]"/>
  16389. <param name="off" type="int"/>
  16390. <param name="len" type="int"/>
  16391. </method>
  16392. <doc>
  16393. <![CDATA[This is a dummy decompressor for BZip2.]]>
  16394. </doc>
  16395. </class>
  16396. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  16397. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  16398. <class name="CBZip2InputStream" extends="java.io.InputStream"
  16399. abstract="false"
  16400. static="false" final="false" visibility="public"
  16401. deprecated="not deprecated">
  16402. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  16403. <constructor name="CBZip2InputStream" type="java.io.InputStream"
  16404. static="false" final="false" visibility="public"
  16405. deprecated="not deprecated">
  16406. <exception name="IOException" type="java.io.IOException"/>
  16407. <doc>
  16408. <![CDATA[Constructs a new CBZip2InputStream which decompresses bytes read from the
  16409. specified stream.
  16410. <p>
  16411. Although BZip2 headers are marked with the magic <tt>"Bz"</tt> this
  16412. constructor expects the next byte in the stream to be the first one after
  16413. the magic. Thus callers have to skip the first two bytes. Otherwise this
  16414. constructor will throw an exception.
  16415. </p>
  16416. @throws IOException
  16417. if the stream content is malformed or an I/O error occurs.
  16418. @throws NullPointerException
  16419. if <tt>in == null</tt>]]>
  16420. </doc>
  16421. </constructor>
  16422. <method name="read" return="int"
  16423. abstract="false" native="false" synchronized="false"
  16424. static="false" final="false" visibility="public"
  16425. deprecated="not deprecated">
  16426. <exception name="IOException" type="java.io.IOException"/>
  16427. </method>
  16428. <method name="read" return="int"
  16429. abstract="false" native="false" synchronized="false"
  16430. static="false" final="false" visibility="public"
  16431. deprecated="not deprecated">
  16432. <param name="dest" type="byte[]"/>
  16433. <param name="offs" type="int"/>
  16434. <param name="len" type="int"/>
  16435. <exception name="IOException" type="java.io.IOException"/>
  16436. </method>
  16437. <method name="close"
  16438. abstract="false" native="false" synchronized="false"
  16439. static="false" final="false" visibility="public"
  16440. deprecated="not deprecated">
  16441. <exception name="IOException" type="java.io.IOException"/>
  16442. </method>
  16443. <doc>
  16444. <![CDATA[An input stream that decompresses from the BZip2 format (without the file
  16445. header chars) to be read as any other stream.
  16446. <p>
  16447. The decompression requires large amounts of memory. Thus you should call the
  16448. {@link #close() close()} method as soon as possible, to force
  16449. <tt>CBZip2InputStream</tt> to release the allocated memory. See
  16450. {@link CBZip2OutputStream CBZip2OutputStream} for information about memory
  16451. usage.
  16452. </p>
  16453. <p>
  16454. <tt>CBZip2InputStream</tt> reads bytes from the compressed source stream via
  16455. the single byte {@link java.io.InputStream#read() read()} method exclusively.
  16456. Thus you should consider to use a buffered source stream.
  16457. </p>
  16458. <p>
  16459. Instances of this class are not threadsafe.
  16460. </p>]]>
  16461. </doc>
  16462. </class>
  16463. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  16464. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  16465. <class name="CBZip2OutputStream" extends="java.io.OutputStream"
  16466. abstract="false"
  16467. static="false" final="false" visibility="public"
  16468. deprecated="not deprecated">
  16469. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  16470. <constructor name="CBZip2OutputStream" type="java.io.OutputStream"
  16471. static="false" final="false" visibility="public"
  16472. deprecated="not deprecated">
  16473. <exception name="IOException" type="java.io.IOException"/>
  16474. <doc>
  16475. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with a blocksize of 900k.
  16476. <p>
  16477. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  16478. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  16479. constructor.
  16480. </p>
  16481. @param out *
  16482. the destination stream.
  16483. @throws IOException
  16484. if an I/O error occurs in the specified stream.
  16485. @throws NullPointerException
  16486. if <code>out == null</code>.]]>
  16487. </doc>
  16488. </constructor>
  16489. <constructor name="CBZip2OutputStream" type="java.io.OutputStream, int"
  16490. static="false" final="false" visibility="public"
  16491. deprecated="not deprecated">
  16492. <exception name="IOException" type="java.io.IOException"/>
  16493. <doc>
  16494. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with specified blocksize.
  16495. <p>
  16496. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  16497. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  16498. constructor.
  16499. </p>
  16500. @param out
  16501. the destination stream.
  16502. @param blockSize
  16503. the blockSize as 100k units.
  16504. @throws IOException
  16505. if an I/O error occurs in the specified stream.
  16506. @throws IllegalArgumentException
  16507. if <code>(blockSize < 1) || (blockSize > 9)</code>.
  16508. @throws NullPointerException
  16509. if <code>out == null</code>.
  16510. @see #MIN_BLOCKSIZE
  16511. @see #MAX_BLOCKSIZE]]>
  16512. </doc>
  16513. </constructor>
  16514. <method name="hbMakeCodeLengths"
  16515. abstract="false" native="false" synchronized="false"
  16516. static="true" final="false" visibility="protected"
  16517. deprecated="not deprecated">
  16518. <param name="len" type="char[]"/>
  16519. <param name="freq" type="int[]"/>
  16520. <param name="alphaSize" type="int"/>
  16521. <param name="maxLen" type="int"/>
  16522. <doc>
  16523. <![CDATA[This method is accessible by subclasses for historical purposes. If you
  16524. don't know what it does then you don't need it.]]>
  16525. </doc>
  16526. </method>
  16527. <method name="chooseBlockSize" return="int"
  16528. abstract="false" native="false" synchronized="false"
  16529. static="true" final="false" visibility="public"
  16530. deprecated="not deprecated">
  16531. <param name="inputLength" type="long"/>
  16532. <doc>
  16533. <![CDATA[Chooses a blocksize based on the given length of the data to compress.
  16534. @return The blocksize, between {@link #MIN_BLOCKSIZE} and
  16535. {@link #MAX_BLOCKSIZE} both inclusive. For a negative
  16536. <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
  16537. always.
  16538. @param inputLength
  16539. The length of the data which will be compressed by
  16540. <tt>CBZip2OutputStream</tt>.]]>
  16541. </doc>
  16542. </method>
  16543. <method name="write"
  16544. abstract="false" native="false" synchronized="false"
  16545. static="false" final="false" visibility="public"
  16546. deprecated="not deprecated">
  16547. <param name="b" type="int"/>
  16548. <exception name="IOException" type="java.io.IOException"/>
  16549. </method>
  16550. <method name="finalize"
  16551. abstract="false" native="false" synchronized="false"
  16552. static="false" final="false" visibility="protected"
  16553. deprecated="not deprecated">
  16554. <exception name="Throwable" type="java.lang.Throwable"/>
  16555. <doc>
  16556. <![CDATA[Overriden to close the stream.]]>
  16557. </doc>
  16558. </method>
  16559. <method name="finish"
  16560. abstract="false" native="false" synchronized="false"
  16561. static="false" final="false" visibility="public"
  16562. deprecated="not deprecated">
  16563. <exception name="IOException" type="java.io.IOException"/>
  16564. </method>
  16565. <method name="close"
  16566. abstract="false" native="false" synchronized="false"
  16567. static="false" final="false" visibility="public"
  16568. deprecated="not deprecated">
  16569. <exception name="IOException" type="java.io.IOException"/>
  16570. </method>
  16571. <method name="flush"
  16572. abstract="false" native="false" synchronized="false"
  16573. static="false" final="false" visibility="public"
  16574. deprecated="not deprecated">
  16575. <exception name="IOException" type="java.io.IOException"/>
  16576. </method>
  16577. <method name="getBlockSize" return="int"
  16578. abstract="false" native="false" synchronized="false"
  16579. static="false" final="true" visibility="public"
  16580. deprecated="not deprecated">
  16581. <doc>
  16582. <![CDATA[Returns the blocksize parameter specified at construction time.]]>
  16583. </doc>
  16584. </method>
  16585. <method name="write"
  16586. abstract="false" native="false" synchronized="false"
  16587. static="false" final="false" visibility="public"
  16588. deprecated="not deprecated">
  16589. <param name="buf" type="byte[]"/>
  16590. <param name="offs" type="int"/>
  16591. <param name="len" type="int"/>
  16592. <exception name="IOException" type="java.io.IOException"/>
  16593. </method>
  16594. <field name="MIN_BLOCKSIZE" type="int"
  16595. transient="false" volatile="false"
  16596. static="true" final="true" visibility="public"
  16597. deprecated="not deprecated">
  16598. <doc>
  16599. <![CDATA[The minimum supported blocksize <tt> == 1</tt>.]]>
  16600. </doc>
  16601. </field>
  16602. <field name="MAX_BLOCKSIZE" type="int"
  16603. transient="false" volatile="false"
  16604. static="true" final="true" visibility="public"
  16605. deprecated="not deprecated">
  16606. <doc>
  16607. <![CDATA[The maximum supported blocksize <tt> == 9</tt>.]]>
  16608. </doc>
  16609. </field>
  16610. <field name="SETMASK" type="int"
  16611. transient="false" volatile="false"
  16612. static="true" final="true" visibility="protected"
  16613. deprecated="not deprecated">
  16614. <doc>
  16615. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16616. don't know what it means then you don't need it.]]>
  16617. </doc>
  16618. </field>
  16619. <field name="CLEARMASK" type="int"
  16620. transient="false" volatile="false"
  16621. static="true" final="true" visibility="protected"
  16622. deprecated="not deprecated">
  16623. <doc>
  16624. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16625. don't know what it means then you don't need it.]]>
  16626. </doc>
  16627. </field>
  16628. <field name="GREATER_ICOST" type="int"
  16629. transient="false" volatile="false"
  16630. static="true" final="true" visibility="protected"
  16631. deprecated="not deprecated">
  16632. <doc>
  16633. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16634. don't know what it means then you don't need it.]]>
  16635. </doc>
  16636. </field>
  16637. <field name="LESSER_ICOST" type="int"
  16638. transient="false" volatile="false"
  16639. static="true" final="true" visibility="protected"
  16640. deprecated="not deprecated">
  16641. <doc>
  16642. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16643. don't know what it means then you don't need it.]]>
  16644. </doc>
  16645. </field>
  16646. <field name="SMALL_THRESH" type="int"
  16647. transient="false" volatile="false"
  16648. static="true" final="true" visibility="protected"
  16649. deprecated="not deprecated">
  16650. <doc>
  16651. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16652. don't know what it means then you don't need it.]]>
  16653. </doc>
  16654. </field>
  16655. <field name="DEPTH_THRESH" type="int"
  16656. transient="false" volatile="false"
  16657. static="true" final="true" visibility="protected"
  16658. deprecated="not deprecated">
  16659. <doc>
  16660. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16661. don't know what it means then you don't need it.]]>
  16662. </doc>
  16663. </field>
  16664. <field name="WORK_FACTOR" type="int"
  16665. transient="false" volatile="false"
  16666. static="true" final="true" visibility="protected"
  16667. deprecated="not deprecated">
  16668. <doc>
  16669. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16670. don't know what it means then you don't need it.]]>
  16671. </doc>
  16672. </field>
  16673. <field name="QSORT_STACK_SIZE" type="int"
  16674. transient="false" volatile="false"
  16675. static="true" final="true" visibility="protected"
  16676. deprecated="not deprecated">
  16677. <doc>
  16678. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16679. don't know what it means then you don't need it.
  16680. <p>
  16681. If you are ever unlucky/improbable enough to get a stack overflow whilst
  16682. sorting, increase the following constant and try again. In practice I
  16683. have never seen the stack go above 27 elems, so the following limit seems
  16684. very generous.
  16685. </p>]]>
  16686. </doc>
  16687. </field>
  16688. <doc>
  16689. <![CDATA[An output stream that compresses into the BZip2 format (without the file
  16690. header chars) into another stream.
  16691. <p>
  16692. The compression requires large amounts of memory. Thus you should call the
  16693. {@link #close() close()} method as soon as possible, to force
  16694. <tt>CBZip2OutputStream</tt> to release the allocated memory.
  16695. </p>
  16696. <p>
  16697. You can shrink the amount of allocated memory and maybe raise the compression
  16698. speed by choosing a lower blocksize, which in turn may cause a lower
  16699. compression ratio. You can avoid unnecessary memory allocation by avoiding
  16700. using a blocksize which is bigger than the size of the input.
  16701. </p>
  16702. <p>
  16703. You can compute the memory usage for compressing by the following formula:
  16704. </p>
  16705. <pre>
  16706. &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
  16707. </pre>
  16708. <p>
  16709. To get the memory required for decompression by {@link CBZip2InputStream
  16710. CBZip2InputStream} use
  16711. </p>
  16712. <pre>
  16713. &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
  16714. </pre>
  16715. <table width="100%" border="1">
  16716. <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
  16717. </colgroup>
  16718. <tr>
  16719. <th colspan="3">Memory usage by blocksize</th>
  16720. </tr>
  16721. <tr>
  16722. <th align="right">Blocksize</th> <th align="right">Compression<br>
  16723. memory usage</th> <th align="right">Decompression<br>
  16724. memory usage</th>
  16725. </tr>
  16726. <tr>
  16727. <td align="right">100k</td>
  16728. <td align="right">1300k</td>
  16729. <td align="right">565k</td>
  16730. </tr>
  16731. <tr>
  16732. <td align="right">200k</td>
  16733. <td align="right">2200k</td>
  16734. <td align="right">1065k</td>
  16735. </tr>
  16736. <tr>
  16737. <td align="right">300k</td>
  16738. <td align="right">3100k</td>
  16739. <td align="right">1565k</td>
  16740. </tr>
  16741. <tr>
  16742. <td align="right">400k</td>
  16743. <td align="right">4000k</td>
  16744. <td align="right">2065k</td>
  16745. </tr>
  16746. <tr>
  16747. <td align="right">500k</td>
  16748. <td align="right">4900k</td>
  16749. <td align="right">2565k</td>
  16750. </tr>
  16751. <tr>
  16752. <td align="right">600k</td>
  16753. <td align="right">5800k</td>
  16754. <td align="right">3065k</td>
  16755. </tr>
  16756. <tr>
  16757. <td align="right">700k</td>
  16758. <td align="right">6700k</td>
  16759. <td align="right">3565k</td>
  16760. </tr>
  16761. <tr>
  16762. <td align="right">800k</td>
  16763. <td align="right">7600k</td>
  16764. <td align="right">4065k</td>
  16765. </tr>
  16766. <tr>
  16767. <td align="right">900k</td>
  16768. <td align="right">8500k</td>
  16769. <td align="right">4565k</td>
  16770. </tr>
  16771. </table>
  16772. <p>
  16773. For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
  16774. bzipped input is smaller than one block.
  16775. </p>
  16776. <p>
  16777. Instances of this class are not threadsafe.
  16778. </p>
  16779. <p>
  16780. TODO: Update to BZip2 1.0.1
  16781. </p>]]>
  16782. </doc>
  16783. </class>
  16784. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  16785. </package>
  16786. <package name="org.apache.hadoop.io.compress.zlib">
  16787. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  16788. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  16789. abstract="false"
  16790. static="false" final="false" visibility="public"
  16791. deprecated="not deprecated">
  16792. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  16793. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  16794. static="false" final="false" visibility="public"
  16795. deprecated="not deprecated">
  16796. </constructor>
  16797. <constructor name="BuiltInZlibDeflater" type="int"
  16798. static="false" final="false" visibility="public"
  16799. deprecated="not deprecated">
  16800. </constructor>
  16801. <constructor name="BuiltInZlibDeflater"
  16802. static="false" final="false" visibility="public"
  16803. deprecated="not deprecated">
  16804. </constructor>
  16805. <method name="compress" return="int"
  16806. abstract="false" native="false" synchronized="true"
  16807. static="false" final="false" visibility="public"
  16808. deprecated="not deprecated">
  16809. <param name="b" type="byte[]"/>
  16810. <param name="off" type="int"/>
  16811. <param name="len" type="int"/>
  16812. <exception name="IOException" type="java.io.IOException"/>
  16813. </method>
  16814. <doc>
  16815. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  16816. to org.apache.hadoop.io.compress.Compressor interface.]]>
  16817. </doc>
  16818. </class>
  16819. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  16820. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  16821. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  16822. abstract="false"
  16823. static="false" final="false" visibility="public"
  16824. deprecated="not deprecated">
  16825. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  16826. <constructor name="BuiltInZlibInflater" type="boolean"
  16827. static="false" final="false" visibility="public"
  16828. deprecated="not deprecated">
  16829. </constructor>
  16830. <constructor name="BuiltInZlibInflater"
  16831. static="false" final="false" visibility="public"
  16832. deprecated="not deprecated">
  16833. </constructor>
  16834. <method name="decompress" return="int"
  16835. abstract="false" native="false" synchronized="true"
  16836. static="false" final="false" visibility="public"
  16837. deprecated="not deprecated">
  16838. <param name="b" type="byte[]"/>
  16839. <param name="off" type="int"/>
  16840. <param name="len" type="int"/>
  16841. <exception name="IOException" type="java.io.IOException"/>
  16842. </method>
  16843. <doc>
  16844. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  16845. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  16846. </doc>
  16847. </class>
  16848. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  16849. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  16850. <class name="ZlibCompressor" extends="java.lang.Object"
  16851. abstract="false"
  16852. static="false" final="false" visibility="public"
  16853. deprecated="not deprecated">
  16854. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  16855. <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"
  16856. static="false" final="false" visibility="public"
  16857. deprecated="not deprecated">
  16858. <doc>
  16859. <![CDATA[Creates a new compressor using the specified compression level.
  16860. Compressed data will be generated in ZLIB format.
  16861. @param level Compression level #CompressionLevel
  16862. @param strategy Compression strategy #CompressionStrategy
  16863. @param header Compression header #CompressionHeader
  16864. @param directBufferSize Size of the direct buffer to be used.]]>
  16865. </doc>
  16866. </constructor>
  16867. <constructor name="ZlibCompressor"
  16868. static="false" final="false" visibility="public"
  16869. deprecated="not deprecated">
  16870. <doc>
  16871. <![CDATA[Creates a new compressor with the default compression level.
  16872. Compressed data will be generated in ZLIB format.]]>
  16873. </doc>
  16874. </constructor>
  16875. <method name="setInput"
  16876. abstract="false" native="false" synchronized="true"
  16877. static="false" final="false" visibility="public"
  16878. deprecated="not deprecated">
  16879. <param name="b" type="byte[]"/>
  16880. <param name="off" type="int"/>
  16881. <param name="len" type="int"/>
  16882. </method>
  16883. <method name="setDictionary"
  16884. abstract="false" native="false" synchronized="true"
  16885. static="false" final="false" visibility="public"
  16886. deprecated="not deprecated">
  16887. <param name="b" type="byte[]"/>
  16888. <param name="off" type="int"/>
  16889. <param name="len" type="int"/>
  16890. </method>
  16891. <method name="needsInput" return="boolean"
  16892. abstract="false" native="false" synchronized="false"
  16893. static="false" final="false" visibility="public"
  16894. deprecated="not deprecated">
  16895. </method>
  16896. <method name="finish"
  16897. abstract="false" native="false" synchronized="true"
  16898. static="false" final="false" visibility="public"
  16899. deprecated="not deprecated">
  16900. </method>
  16901. <method name="finished" return="boolean"
  16902. abstract="false" native="false" synchronized="true"
  16903. static="false" final="false" visibility="public"
  16904. deprecated="not deprecated">
  16905. </method>
  16906. <method name="compress" return="int"
  16907. abstract="false" native="false" synchronized="true"
  16908. static="false" final="false" visibility="public"
  16909. deprecated="not deprecated">
  16910. <param name="b" type="byte[]"/>
  16911. <param name="off" type="int"/>
  16912. <param name="len" type="int"/>
  16913. <exception name="IOException" type="java.io.IOException"/>
  16914. </method>
  16915. <method name="getBytesWritten" return="long"
  16916. abstract="false" native="false" synchronized="true"
  16917. static="false" final="false" visibility="public"
  16918. deprecated="not deprecated">
  16919. <doc>
  16920. <![CDATA[Returns the total number of compressed bytes output so far.
  16921. @return the total (non-negative) number of compressed bytes output so far]]>
  16922. </doc>
  16923. </method>
  16924. <method name="getBytesRead" return="long"
  16925. abstract="false" native="false" synchronized="true"
  16926. static="false" final="false" visibility="public"
  16927. deprecated="not deprecated">
  16928. <doc>
  16929. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  16930. @return the total (non-negative) number of uncompressed bytes input so far]]>
  16931. </doc>
  16932. </method>
  16933. <method name="reset"
  16934. abstract="false" native="false" synchronized="true"
  16935. static="false" final="false" visibility="public"
  16936. deprecated="not deprecated">
  16937. </method>
  16938. <method name="end"
  16939. abstract="false" native="false" synchronized="true"
  16940. static="false" final="false" visibility="public"
  16941. deprecated="not deprecated">
  16942. </method>
  16943. <doc>
  16944. <![CDATA[A {@link Compressor} based on the popular
  16945. zlib compression algorithm.
  16946. http://www.zlib.net/]]>
  16947. </doc>
  16948. </class>
  16949. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  16950. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  16951. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum"
  16952. abstract="false"
  16953. static="true" final="true" visibility="public"
  16954. deprecated="not deprecated">
  16955. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  16956. abstract="false" native="false" synchronized="false"
  16957. static="true" final="false" visibility="public"
  16958. deprecated="not deprecated">
  16959. </method>
  16960. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  16961. abstract="false" native="false" synchronized="false"
  16962. static="true" final="false" visibility="public"
  16963. deprecated="not deprecated">
  16964. <param name="name" type="java.lang.String"/>
  16965. </method>
  16966. <method name="windowBits" return="int"
  16967. abstract="false" native="false" synchronized="false"
  16968. static="false" final="false" visibility="public"
  16969. deprecated="not deprecated">
  16970. </method>
  16971. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  16972. transient="false" volatile="false"
  16973. static="true" final="true" visibility="public"
  16974. deprecated="not deprecated">
  16975. <doc>
  16976. <![CDATA[No headers/trailers/checksums.]]>
  16977. </doc>
  16978. </field>
  16979. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  16980. transient="false" volatile="false"
  16981. static="true" final="true" visibility="public"
  16982. deprecated="not deprecated">
  16983. <doc>
  16984. <![CDATA[Default headers/trailers/checksums.]]>
  16985. </doc>
  16986. </field>
  16987. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  16988. transient="false" volatile="false"
  16989. static="true" final="true" visibility="public"
  16990. deprecated="not deprecated">
  16991. <doc>
  16992. <![CDATA[Simple gzip headers/trailers.]]>
  16993. </doc>
  16994. </field>
  16995. <doc>
  16996. <![CDATA[The type of header for compressed data.]]>
  16997. </doc>
  16998. </class>
  16999. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  17000. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  17001. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum"
  17002. abstract="false"
  17003. static="true" final="true" visibility="public"
  17004. deprecated="not deprecated">
  17005. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  17006. abstract="false" native="false" synchronized="false"
  17007. static="true" final="false" visibility="public"
  17008. deprecated="not deprecated">
  17009. </method>
  17010. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  17011. abstract="false" native="false" synchronized="false"
  17012. static="true" final="false" visibility="public"
  17013. deprecated="not deprecated">
  17014. <param name="name" type="java.lang.String"/>
  17015. </method>
  17016. <field name="NO_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  17017. transient="false" volatile="false"
  17018. static="true" final="true" visibility="public"
  17019. deprecated="not deprecated">
  17020. <doc>
  17021. <![CDATA[Compression level for no compression.]]>
  17022. </doc>
  17023. </field>
  17024. <field name="BEST_SPEED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  17025. transient="false" volatile="false"
  17026. static="true" final="true" visibility="public"
  17027. deprecated="not deprecated">
  17028. <doc>
  17029. <![CDATA[Compression level for fastest compression.]]>
  17030. </doc>
  17031. </field>
  17032. <field name="BEST_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  17033. transient="false" volatile="false"
  17034. static="true" final="true" visibility="public"
  17035. deprecated="not deprecated">
  17036. <doc>
  17037. <![CDATA[Compression level for best compression.]]>
  17038. </doc>
  17039. </field>
  17040. <field name="DEFAULT_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  17041. transient="false" volatile="false"
  17042. static="true" final="true" visibility="public"
  17043. deprecated="not deprecated">
  17044. <doc>
  17045. <![CDATA[Default compression level.]]>
  17046. </doc>
  17047. </field>
  17048. <doc>
  17049. <![CDATA[The compression level for zlib library.]]>
  17050. </doc>
  17051. </class>
  17052. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  17053. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  17054. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum"
  17055. abstract="false"
  17056. static="true" final="true" visibility="public"
  17057. deprecated="not deprecated">
  17058. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  17059. abstract="false" native="false" synchronized="false"
  17060. static="true" final="false" visibility="public"
  17061. deprecated="not deprecated">
  17062. </method>
  17063. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  17064. abstract="false" native="false" synchronized="false"
  17065. static="true" final="false" visibility="public"
  17066. deprecated="not deprecated">
  17067. <param name="name" type="java.lang.String"/>
  17068. </method>
  17069. <field name="FILTERED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  17070. transient="false" volatile="false"
  17071. static="true" final="true" visibility="public"
  17072. deprecated="not deprecated">
  17073. <doc>
  17074. <![CDATA[Compression strategy best used for data consisting mostly of small
  17075. values with a somewhat random distribution. Forces more Huffman coding
  17076. and less string matching.]]>
  17077. </doc>
  17078. </field>
  17079. <field name="HUFFMAN_ONLY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  17080. transient="false" volatile="false"
  17081. static="true" final="true" visibility="public"
  17082. deprecated="not deprecated">
  17083. <doc>
  17084. <![CDATA[Compression strategy for Huffman coding only.]]>
  17085. </doc>
  17086. </field>
  17087. <field name="RLE" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  17088. transient="false" volatile="false"
  17089. static="true" final="true" visibility="public"
  17090. deprecated="not deprecated">
  17091. <doc>
  17092. <![CDATA[Compression strategy to limit match distances to one
  17093. (run-length encoding).]]>
  17094. </doc>
  17095. </field>
  17096. <field name="FIXED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  17097. transient="false" volatile="false"
  17098. static="true" final="true" visibility="public"
  17099. deprecated="not deprecated">
  17100. <doc>
  17101. <![CDATA[Compression strategy to prevent the use of dynamic Huffman codes,
  17102. allowing for a simpler decoder for special applications.]]>
  17103. </doc>
  17104. </field>
  17105. <field name="DEFAULT_STRATEGY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  17106. transient="false" volatile="false"
  17107. static="true" final="true" visibility="public"
  17108. deprecated="not deprecated">
  17109. <doc>
  17110. <![CDATA[Default compression strategy.]]>
  17111. </doc>
  17112. </field>
  17113. <doc>
  17114. <![CDATA[The compression level for zlib library.]]>
  17115. </doc>
  17116. </class>
  17117. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  17118. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  17119. <class name="ZlibDecompressor" extends="java.lang.Object"
  17120. abstract="false"
  17121. static="false" final="false" visibility="public"
  17122. deprecated="not deprecated">
  17123. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17124. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  17125. static="false" final="false" visibility="public"
  17126. deprecated="not deprecated">
  17127. <doc>
  17128. <![CDATA[Creates a new decompressor.]]>
  17129. </doc>
  17130. </constructor>
  17131. <constructor name="ZlibDecompressor"
  17132. static="false" final="false" visibility="public"
  17133. deprecated="not deprecated">
  17134. </constructor>
  17135. <method name="setInput"
  17136. abstract="false" native="false" synchronized="true"
  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. </method>
  17143. <method name="setDictionary"
  17144. abstract="false" native="false" synchronized="true"
  17145. static="false" final="false" visibility="public"
  17146. deprecated="not deprecated">
  17147. <param name="b" type="byte[]"/>
  17148. <param name="off" type="int"/>
  17149. <param name="len" type="int"/>
  17150. </method>
  17151. <method name="needsInput" return="boolean"
  17152. abstract="false" native="false" synchronized="true"
  17153. static="false" final="false" visibility="public"
  17154. deprecated="not deprecated">
  17155. </method>
  17156. <method name="needsDictionary" return="boolean"
  17157. abstract="false" native="false" synchronized="true"
  17158. static="false" final="false" visibility="public"
  17159. deprecated="not deprecated">
  17160. </method>
  17161. <method name="finished" return="boolean"
  17162. abstract="false" native="false" synchronized="true"
  17163. static="false" final="false" visibility="public"
  17164. deprecated="not deprecated">
  17165. </method>
  17166. <method name="decompress" return="int"
  17167. abstract="false" native="false" synchronized="true"
  17168. static="false" final="false" visibility="public"
  17169. deprecated="not deprecated">
  17170. <param name="b" type="byte[]"/>
  17171. <param name="off" type="int"/>
  17172. <param name="len" type="int"/>
  17173. <exception name="IOException" type="java.io.IOException"/>
  17174. </method>
  17175. <method name="getBytesWritten" return="long"
  17176. abstract="false" native="false" synchronized="true"
  17177. static="false" final="false" visibility="public"
  17178. deprecated="not deprecated">
  17179. <doc>
  17180. <![CDATA[Returns the total number of compressed bytes output so far.
  17181. @return the total (non-negative) number of compressed bytes output so far]]>
  17182. </doc>
  17183. </method>
  17184. <method name="getBytesRead" return="long"
  17185. abstract="false" native="false" synchronized="true"
  17186. static="false" final="false" visibility="public"
  17187. deprecated="not deprecated">
  17188. <doc>
  17189. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  17190. @return the total (non-negative) number of uncompressed bytes input so far]]>
  17191. </doc>
  17192. </method>
  17193. <method name="reset"
  17194. abstract="false" native="false" synchronized="true"
  17195. static="false" final="false" visibility="public"
  17196. deprecated="not deprecated">
  17197. </method>
  17198. <method name="end"
  17199. abstract="false" native="false" synchronized="true"
  17200. static="false" final="false" visibility="public"
  17201. deprecated="not deprecated">
  17202. </method>
  17203. <method name="finalize"
  17204. abstract="false" native="false" synchronized="false"
  17205. static="false" final="false" visibility="protected"
  17206. deprecated="not deprecated">
  17207. </method>
  17208. <doc>
  17209. <![CDATA[A {@link Decompressor} based on the popular
  17210. zlib compression algorithm.
  17211. http://www.zlib.net/]]>
  17212. </doc>
  17213. </class>
  17214. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  17215. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  17216. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum"
  17217. abstract="false"
  17218. static="true" final="true" visibility="public"
  17219. deprecated="not deprecated">
  17220. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  17221. abstract="false" native="false" synchronized="false"
  17222. static="true" final="false" visibility="public"
  17223. deprecated="not deprecated">
  17224. </method>
  17225. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  17226. abstract="false" native="false" synchronized="false"
  17227. static="true" final="false" visibility="public"
  17228. deprecated="not deprecated">
  17229. <param name="name" type="java.lang.String"/>
  17230. </method>
  17231. <method name="windowBits" return="int"
  17232. abstract="false" native="false" synchronized="false"
  17233. static="false" final="false" visibility="public"
  17234. deprecated="not deprecated">
  17235. </method>
  17236. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  17237. transient="false" volatile="false"
  17238. static="true" final="true" visibility="public"
  17239. deprecated="not deprecated">
  17240. <doc>
  17241. <![CDATA[No headers/trailers/checksums.]]>
  17242. </doc>
  17243. </field>
  17244. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  17245. transient="false" volatile="false"
  17246. static="true" final="true" visibility="public"
  17247. deprecated="not deprecated">
  17248. <doc>
  17249. <![CDATA[Default headers/trailers/checksums.]]>
  17250. </doc>
  17251. </field>
  17252. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  17253. transient="false" volatile="false"
  17254. static="true" final="true" visibility="public"
  17255. deprecated="not deprecated">
  17256. <doc>
  17257. <![CDATA[Simple gzip headers/trailers.]]>
  17258. </doc>
  17259. </field>
  17260. <field name="AUTODETECT_GZIP_ZLIB" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  17261. transient="false" volatile="false"
  17262. static="true" final="true" visibility="public"
  17263. deprecated="not deprecated">
  17264. <doc>
  17265. <![CDATA[Autodetect gzip/zlib headers/trailers.]]>
  17266. </doc>
  17267. </field>
  17268. <doc>
  17269. <![CDATA[The headers to detect from compressed data.]]>
  17270. </doc>
  17271. </class>
  17272. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  17273. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  17274. <class name="ZlibFactory" extends="java.lang.Object"
  17275. abstract="false"
  17276. static="false" final="false" visibility="public"
  17277. deprecated="not deprecated">
  17278. <constructor name="ZlibFactory"
  17279. static="false" final="false" visibility="public"
  17280. deprecated="not deprecated">
  17281. </constructor>
  17282. <method name="isNativeZlibLoaded" return="boolean"
  17283. abstract="false" native="false" synchronized="false"
  17284. static="true" final="false" visibility="public"
  17285. deprecated="not deprecated">
  17286. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17287. <doc>
  17288. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  17289. can be loaded for this job.
  17290. @param conf configuration
  17291. @return <code>true</code> if native-zlib is loaded & initialized
  17292. and can be loaded for this job, else <code>false</code>]]>
  17293. </doc>
  17294. </method>
  17295. <method name="getZlibCompressorType" return="java.lang.Class"
  17296. abstract="false" native="false" synchronized="false"
  17297. static="true" final="false" visibility="public"
  17298. deprecated="not deprecated">
  17299. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17300. <doc>
  17301. <![CDATA[Return the appropriate type of the zlib compressor.
  17302. @param conf configuration
  17303. @return the appropriate type of the zlib compressor.]]>
  17304. </doc>
  17305. </method>
  17306. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17307. abstract="false" native="false" synchronized="false"
  17308. static="true" final="false" visibility="public"
  17309. deprecated="not deprecated">
  17310. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17311. <doc>
  17312. <![CDATA[Return the appropriate implementation of the zlib compressor.
  17313. @param conf configuration
  17314. @return the appropriate implementation of the zlib compressor.]]>
  17315. </doc>
  17316. </method>
  17317. <method name="getZlibDecompressorType" return="java.lang.Class"
  17318. abstract="false" native="false" synchronized="false"
  17319. static="true" final="false" visibility="public"
  17320. deprecated="not deprecated">
  17321. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17322. <doc>
  17323. <![CDATA[Return the appropriate type of the zlib decompressor.
  17324. @param conf configuration
  17325. @return the appropriate type of the zlib decompressor.]]>
  17326. </doc>
  17327. </method>
  17328. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17329. abstract="false" native="false" synchronized="false"
  17330. static="true" final="false" visibility="public"
  17331. deprecated="not deprecated">
  17332. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17333. <doc>
  17334. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  17335. @param conf configuration
  17336. @return the appropriate implementation of the zlib decompressor.]]>
  17337. </doc>
  17338. </method>
  17339. <doc>
  17340. <![CDATA[A collection of factories to create the right
  17341. zlib/gzip compressor/decompressor instances.]]>
  17342. </doc>
  17343. </class>
  17344. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  17345. </package>
  17346. <package name="org.apache.hadoop.io.retry">
  17347. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  17348. <class name="RetryPolicies" extends="java.lang.Object"
  17349. abstract="false"
  17350. static="false" final="false" visibility="public"
  17351. deprecated="not deprecated">
  17352. <constructor name="RetryPolicies"
  17353. static="false" final="false" visibility="public"
  17354. deprecated="not deprecated">
  17355. </constructor>
  17356. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  17357. abstract="false" native="false" synchronized="false"
  17358. static="true" final="true" visibility="public"
  17359. deprecated="not deprecated">
  17360. <param name="maxRetries" type="int"/>
  17361. <param name="sleepTime" type="long"/>
  17362. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  17363. <doc>
  17364. <![CDATA[<p>
  17365. Keep trying a limited number of times, waiting a fixed time between attempts,
  17366. and then fail by re-throwing the exception.
  17367. </p>]]>
  17368. </doc>
  17369. </method>
  17370. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  17371. abstract="false" native="false" synchronized="false"
  17372. static="true" final="true" visibility="public"
  17373. deprecated="not deprecated">
  17374. <param name="maxTime" type="long"/>
  17375. <param name="sleepTime" type="long"/>
  17376. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  17377. <doc>
  17378. <![CDATA[<p>
  17379. Keep trying for a maximum time, waiting a fixed time between attempts,
  17380. and then fail by re-throwing the exception.
  17381. </p>]]>
  17382. </doc>
  17383. </method>
  17384. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  17385. abstract="false" native="false" synchronized="false"
  17386. static="true" final="true" visibility="public"
  17387. deprecated="not deprecated">
  17388. <param name="maxRetries" type="int"/>
  17389. <param name="sleepTime" type="long"/>
  17390. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  17391. <doc>
  17392. <![CDATA[<p>
  17393. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  17394. and then fail by re-throwing the exception.
  17395. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  17396. </p>]]>
  17397. </doc>
  17398. </method>
  17399. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  17400. abstract="false" native="false" synchronized="false"
  17401. static="true" final="true" visibility="public"
  17402. deprecated="not deprecated">
  17403. <param name="maxRetries" type="int"/>
  17404. <param name="sleepTime" type="long"/>
  17405. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  17406. <doc>
  17407. <![CDATA[<p>
  17408. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  17409. and then fail by re-throwing the exception.
  17410. The time between attempts is <code>sleepTime</code> mutliplied by a random
  17411. number in the range of [0, 2 to the number of retries)
  17412. </p>]]>
  17413. </doc>
  17414. </method>
  17415. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  17416. abstract="false" native="false" synchronized="false"
  17417. static="true" final="true" visibility="public"
  17418. deprecated="not deprecated">
  17419. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  17420. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  17421. <doc>
  17422. <![CDATA[<p>
  17423. Set a default policy with some explicit handlers for specific exceptions.
  17424. </p>]]>
  17425. </doc>
  17426. </method>
  17427. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  17428. abstract="false" native="false" synchronized="false"
  17429. static="true" final="true" visibility="public"
  17430. deprecated="not deprecated">
  17431. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  17432. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  17433. <doc>
  17434. <![CDATA[<p>
  17435. A retry policy for RemoteException
  17436. Set a default policy with some explicit handlers for specific exceptions.
  17437. </p>]]>
  17438. </doc>
  17439. </method>
  17440. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  17441. transient="false" volatile="false"
  17442. static="true" final="true" visibility="public"
  17443. deprecated="not deprecated">
  17444. <doc>
  17445. <![CDATA[<p>
  17446. Try once, and fail by re-throwing the exception.
  17447. This corresponds to having no retry mechanism in place.
  17448. </p>]]>
  17449. </doc>
  17450. </field>
  17451. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  17452. transient="false" volatile="false"
  17453. static="true" final="true" visibility="public"
  17454. deprecated="not deprecated">
  17455. <doc>
  17456. <![CDATA[<p>
  17457. Try once, and fail silently for <code>void</code> methods, or by
  17458. re-throwing the exception for non-<code>void</code> methods.
  17459. </p>]]>
  17460. </doc>
  17461. </field>
  17462. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  17463. transient="false" volatile="false"
  17464. static="true" final="true" visibility="public"
  17465. deprecated="not deprecated">
  17466. <doc>
  17467. <![CDATA[<p>
  17468. Keep trying forever.
  17469. </p>]]>
  17470. </doc>
  17471. </field>
  17472. <doc>
  17473. <![CDATA[<p>
  17474. A collection of useful implementations of {@link RetryPolicy}.
  17475. </p>]]>
  17476. </doc>
  17477. </class>
  17478. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  17479. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  17480. <interface name="RetryPolicy" abstract="true"
  17481. static="false" final="false" visibility="public"
  17482. deprecated="not deprecated">
  17483. <method name="shouldRetry" return="boolean"
  17484. abstract="false" native="false" synchronized="false"
  17485. static="false" final="false" visibility="public"
  17486. deprecated="not deprecated">
  17487. <param name="e" type="java.lang.Exception"/>
  17488. <param name="retries" type="int"/>
  17489. <exception name="Exception" type="java.lang.Exception"/>
  17490. <doc>
  17491. <![CDATA[<p>
  17492. Determines whether the framework should retry a
  17493. method for the given exception, and the number
  17494. of retries that have been made for that operation
  17495. so far.
  17496. </p>
  17497. @param e The exception that caused the method to fail.
  17498. @param retries The number of times the method has been retried.
  17499. @return <code>true</code> if the method should be retried,
  17500. <code>false</code> if the method should not be retried
  17501. but shouldn't fail with an exception (only for void methods).
  17502. @throws Exception The re-thrown exception <code>e</code> indicating
  17503. that the method failed and should not be retried further.]]>
  17504. </doc>
  17505. </method>
  17506. <doc>
  17507. <![CDATA[<p>
  17508. Specifies a policy for retrying method failures.
  17509. Implementations of this interface should be immutable.
  17510. </p>]]>
  17511. </doc>
  17512. </interface>
  17513. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  17514. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  17515. <class name="RetryProxy" extends="java.lang.Object"
  17516. abstract="false"
  17517. static="false" final="false" visibility="public"
  17518. deprecated="not deprecated">
  17519. <constructor name="RetryProxy"
  17520. static="false" final="false" visibility="public"
  17521. deprecated="not deprecated">
  17522. </constructor>
  17523. <method name="create" return="java.lang.Object"
  17524. abstract="false" native="false" synchronized="false"
  17525. static="true" final="false" visibility="public"
  17526. deprecated="not deprecated">
  17527. <param name="iface" type="java.lang.Class"/>
  17528. <param name="implementation" type="java.lang.Object"/>
  17529. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  17530. <doc>
  17531. <![CDATA[<p>
  17532. Create a proxy for an interface of an implementation class
  17533. using the same retry policy for each method in the interface.
  17534. </p>
  17535. @param iface the interface that the retry will implement
  17536. @param implementation the instance whose methods should be retried
  17537. @param retryPolicy the policy for retirying method call failures
  17538. @return the retry proxy]]>
  17539. </doc>
  17540. </method>
  17541. <method name="create" return="java.lang.Object"
  17542. abstract="false" native="false" synchronized="false"
  17543. static="true" final="false" visibility="public"
  17544. deprecated="not deprecated">
  17545. <param name="iface" type="java.lang.Class"/>
  17546. <param name="implementation" type="java.lang.Object"/>
  17547. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  17548. <doc>
  17549. <![CDATA[<p>
  17550. Create a proxy for an interface of an implementation class
  17551. using the a set of retry policies specified by method name.
  17552. If no retry policy is defined for a method then a default of
  17553. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  17554. </p>
  17555. @param iface the interface that the retry will implement
  17556. @param implementation the instance whose methods should be retried
  17557. @param methodNameToPolicyMap a map of method names to retry policies
  17558. @return the retry proxy]]>
  17559. </doc>
  17560. </method>
  17561. <doc>
  17562. <![CDATA[<p>
  17563. A factory for creating retry proxies.
  17564. </p>]]>
  17565. </doc>
  17566. </class>
  17567. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  17568. </package>
  17569. <package name="org.apache.hadoop.io.serializer">
  17570. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  17571. <interface name="Deserializer" abstract="true"
  17572. static="false" final="false" visibility="public"
  17573. deprecated="not deprecated">
  17574. <method name="open"
  17575. abstract="false" native="false" synchronized="false"
  17576. static="false" final="false" visibility="public"
  17577. deprecated="not deprecated">
  17578. <param name="in" type="java.io.InputStream"/>
  17579. <exception name="IOException" type="java.io.IOException"/>
  17580. <doc>
  17581. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  17582. </doc>
  17583. </method>
  17584. <method name="deserialize" return="java.lang.Object"
  17585. abstract="false" native="false" synchronized="false"
  17586. static="false" final="false" visibility="public"
  17587. deprecated="not deprecated">
  17588. <param name="t" type="java.lang.Object"/>
  17589. <exception name="IOException" type="java.io.IOException"/>
  17590. <doc>
  17591. <![CDATA[<p>
  17592. Deserialize the next object from the underlying input stream.
  17593. If the object <code>t</code> is non-null then this deserializer
  17594. <i>may</i> set its internal state to the next object read from the input
  17595. stream. Otherwise, if the object <code>t</code> is null a new
  17596. deserialized object will be created.
  17597. </p>
  17598. @return the deserialized object]]>
  17599. </doc>
  17600. </method>
  17601. <method name="close"
  17602. abstract="false" native="false" synchronized="false"
  17603. static="false" final="false" visibility="public"
  17604. deprecated="not deprecated">
  17605. <exception name="IOException" type="java.io.IOException"/>
  17606. <doc>
  17607. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  17608. </doc>
  17609. </method>
  17610. <doc>
  17611. <![CDATA[<p>
  17612. Provides a facility for deserializing objects of type <T> from an
  17613. {@link InputStream}.
  17614. </p>
  17615. <p>
  17616. Deserializers are stateful, but must not buffer the input since
  17617. other producers may read from the input between calls to
  17618. {@link #deserialize(Object)}.
  17619. </p>
  17620. @param <T>]]>
  17621. </doc>
  17622. </interface>
  17623. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  17624. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  17625. <class name="DeserializerComparator" extends="java.lang.Object"
  17626. abstract="true"
  17627. static="false" final="false" visibility="public"
  17628. deprecated="not deprecated">
  17629. <implements name="org.apache.hadoop.io.RawComparator"/>
  17630. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer"
  17631. static="false" final="false" visibility="protected"
  17632. deprecated="not deprecated">
  17633. <exception name="IOException" type="java.io.IOException"/>
  17634. </constructor>
  17635. <method name="compare" return="int"
  17636. abstract="false" native="false" synchronized="false"
  17637. static="false" final="false" visibility="public"
  17638. deprecated="not deprecated">
  17639. <param name="b1" type="byte[]"/>
  17640. <param name="s1" type="int"/>
  17641. <param name="l1" type="int"/>
  17642. <param name="b2" type="byte[]"/>
  17643. <param name="s2" type="int"/>
  17644. <param name="l2" type="int"/>
  17645. </method>
  17646. <doc>
  17647. <![CDATA[<p>
  17648. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  17649. the objects to be compared so that the standard {@link Comparator} can
  17650. be used to compare them.
  17651. </p>
  17652. <p>
  17653. One may optimize compare-intensive operations by using a custom
  17654. implementation of {@link RawComparator} that operates directly
  17655. on byte representations.
  17656. </p>
  17657. @param <T>]]>
  17658. </doc>
  17659. </class>
  17660. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  17661. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  17662. <class name="JavaSerialization" extends="java.lang.Object"
  17663. abstract="false"
  17664. static="false" final="false" visibility="public"
  17665. deprecated="not deprecated">
  17666. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  17667. <constructor name="JavaSerialization"
  17668. static="false" final="false" visibility="public"
  17669. deprecated="not deprecated">
  17670. </constructor>
  17671. <method name="accept" return="boolean"
  17672. abstract="false" native="false" synchronized="false"
  17673. static="false" final="false" visibility="public"
  17674. deprecated="not deprecated">
  17675. <param name="c" type="java.lang.Class"/>
  17676. </method>
  17677. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  17678. abstract="false" native="false" synchronized="false"
  17679. static="false" final="false" visibility="public"
  17680. deprecated="not deprecated">
  17681. <param name="c" type="java.lang.Class"/>
  17682. </method>
  17683. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  17684. abstract="false" native="false" synchronized="false"
  17685. static="false" final="false" visibility="public"
  17686. deprecated="not deprecated">
  17687. <param name="c" type="java.lang.Class"/>
  17688. </method>
  17689. <doc>
  17690. <![CDATA[<p>
  17691. An experimental {@link Serialization} for Java {@link Serializable} classes.
  17692. </p>
  17693. @see JavaSerializationComparator]]>
  17694. </doc>
  17695. </class>
  17696. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  17697. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  17698. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  17699. abstract="false"
  17700. static="false" final="false" visibility="public"
  17701. deprecated="not deprecated">
  17702. <constructor name="JavaSerializationComparator"
  17703. static="false" final="false" visibility="public"
  17704. deprecated="not deprecated">
  17705. <exception name="IOException" type="java.io.IOException"/>
  17706. </constructor>
  17707. <method name="compare" return="int"
  17708. abstract="false" native="false" synchronized="false"
  17709. static="false" final="false" visibility="public"
  17710. deprecated="not deprecated">
  17711. <param name="o1" type="java.io.Serializable"/>
  17712. <param name="o2" type="java.io.Serializable"/>
  17713. </method>
  17714. <doc>
  17715. <![CDATA[<p>
  17716. A {@link RawComparator} that uses a {@link JavaSerialization}
  17717. {@link Deserializer} to deserialize objects that are then compared via
  17718. their {@link Comparable} interfaces.
  17719. </p>
  17720. @param <T>
  17721. @see JavaSerialization]]>
  17722. </doc>
  17723. </class>
  17724. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  17725. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  17726. <interface name="Serialization" abstract="true"
  17727. static="false" final="false" visibility="public"
  17728. deprecated="not deprecated">
  17729. <method name="accept" return="boolean"
  17730. abstract="false" native="false" synchronized="false"
  17731. static="false" final="false" visibility="public"
  17732. deprecated="not deprecated">
  17733. <param name="c" type="java.lang.Class"/>
  17734. <doc>
  17735. <![CDATA[Allows clients to test whether this {@link Serialization}
  17736. supports the given class.]]>
  17737. </doc>
  17738. </method>
  17739. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  17740. abstract="false" native="false" synchronized="false"
  17741. static="false" final="false" visibility="public"
  17742. deprecated="not deprecated">
  17743. <param name="c" type="java.lang.Class"/>
  17744. <doc>
  17745. <![CDATA[@return a {@link Serializer} for the given class.]]>
  17746. </doc>
  17747. </method>
  17748. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  17749. abstract="false" native="false" synchronized="false"
  17750. static="false" final="false" visibility="public"
  17751. deprecated="not deprecated">
  17752. <param name="c" type="java.lang.Class"/>
  17753. <doc>
  17754. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  17755. </doc>
  17756. </method>
  17757. <doc>
  17758. <![CDATA[<p>
  17759. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  17760. </p>
  17761. @param <T>]]>
  17762. </doc>
  17763. </interface>
  17764. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  17765. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  17766. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  17767. abstract="false"
  17768. static="false" final="false" visibility="public"
  17769. deprecated="not deprecated">
  17770. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  17771. static="false" final="false" visibility="public"
  17772. deprecated="not deprecated">
  17773. <doc>
  17774. <![CDATA[<p>
  17775. Serializations are found by reading the <code>io.serializations</code>
  17776. property from <code>conf</code>, which is a comma-delimited list of
  17777. classnames.
  17778. </p>]]>
  17779. </doc>
  17780. </constructor>
  17781. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  17782. abstract="false" native="false" synchronized="false"
  17783. static="false" final="false" visibility="public"
  17784. deprecated="not deprecated">
  17785. <param name="c" type="java.lang.Class"/>
  17786. </method>
  17787. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  17788. abstract="false" native="false" synchronized="false"
  17789. static="false" final="false" visibility="public"
  17790. deprecated="not deprecated">
  17791. <param name="c" type="java.lang.Class"/>
  17792. </method>
  17793. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization"
  17794. abstract="false" native="false" synchronized="false"
  17795. static="false" final="false" visibility="public"
  17796. deprecated="not deprecated">
  17797. <param name="c" type="java.lang.Class"/>
  17798. </method>
  17799. <doc>
  17800. <![CDATA[<p>
  17801. A factory for {@link Serialization}s.
  17802. </p>]]>
  17803. </doc>
  17804. </class>
  17805. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  17806. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  17807. <interface name="Serializer" abstract="true"
  17808. static="false" final="false" visibility="public"
  17809. deprecated="not deprecated">
  17810. <method name="open"
  17811. abstract="false" native="false" synchronized="false"
  17812. static="false" final="false" visibility="public"
  17813. deprecated="not deprecated">
  17814. <param name="out" type="java.io.OutputStream"/>
  17815. <exception name="IOException" type="java.io.IOException"/>
  17816. <doc>
  17817. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  17818. </doc>
  17819. </method>
  17820. <method name="serialize"
  17821. abstract="false" native="false" synchronized="false"
  17822. static="false" final="false" visibility="public"
  17823. deprecated="not deprecated">
  17824. <param name="t" type="java.lang.Object"/>
  17825. <exception name="IOException" type="java.io.IOException"/>
  17826. <doc>
  17827. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  17828. </doc>
  17829. </method>
  17830. <method name="close"
  17831. abstract="false" native="false" synchronized="false"
  17832. static="false" final="false" visibility="public"
  17833. deprecated="not deprecated">
  17834. <exception name="IOException" type="java.io.IOException"/>
  17835. <doc>
  17836. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  17837. </doc>
  17838. </method>
  17839. <doc>
  17840. <![CDATA[<p>
  17841. Provides a facility for serializing objects of type <T> to an
  17842. {@link OutputStream}.
  17843. </p>
  17844. <p>
  17845. Serializers are stateful, but must not buffer the output since
  17846. other producers may write to the output between calls to
  17847. {@link #serialize(Object)}.
  17848. </p>
  17849. @param <T>]]>
  17850. </doc>
  17851. </interface>
  17852. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  17853. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  17854. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  17855. abstract="false"
  17856. static="false" final="false" visibility="public"
  17857. deprecated="not deprecated">
  17858. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  17859. <constructor name="WritableSerialization"
  17860. static="false" final="false" visibility="public"
  17861. deprecated="not deprecated">
  17862. </constructor>
  17863. <method name="accept" return="boolean"
  17864. abstract="false" native="false" synchronized="false"
  17865. static="false" final="false" visibility="public"
  17866. deprecated="not deprecated">
  17867. <param name="c" type="java.lang.Class"/>
  17868. </method>
  17869. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  17870. abstract="false" native="false" synchronized="false"
  17871. static="false" final="false" visibility="public"
  17872. deprecated="not deprecated">
  17873. <param name="c" type="java.lang.Class"/>
  17874. </method>
  17875. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  17876. abstract="false" native="false" synchronized="false"
  17877. static="false" final="false" visibility="public"
  17878. deprecated="not deprecated">
  17879. <param name="c" type="java.lang.Class"/>
  17880. </method>
  17881. <doc>
  17882. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  17883. {@link Writable#write(java.io.DataOutput)} and
  17884. {@link Writable#readFields(java.io.DataInput)}.]]>
  17885. </doc>
  17886. </class>
  17887. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  17888. </package>
  17889. <package name="org.apache.hadoop.ipc">
  17890. <!-- start class org.apache.hadoop.ipc.Client -->
  17891. <class name="Client" extends="java.lang.Object"
  17892. abstract="false"
  17893. static="false" final="false" visibility="public"
  17894. deprecated="not deprecated">
  17895. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  17896. static="false" final="false" visibility="public"
  17897. deprecated="not deprecated">
  17898. <doc>
  17899. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  17900. class.]]>
  17901. </doc>
  17902. </constructor>
  17903. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration"
  17904. static="false" final="false" visibility="public"
  17905. deprecated="not deprecated">
  17906. <doc>
  17907. <![CDATA[Construct an IPC client with the default SocketFactory
  17908. @param valueClass
  17909. @param conf]]>
  17910. </doc>
  17911. </constructor>
  17912. <method name="setPingInterval"
  17913. abstract="false" native="false" synchronized="false"
  17914. static="true" final="true" visibility="public"
  17915. deprecated="not deprecated">
  17916. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17917. <param name="pingInterval" type="int"/>
  17918. <doc>
  17919. <![CDATA[set the ping interval value in configuration
  17920. @param conf Configuration
  17921. @param pingInterval the ping interval]]>
  17922. </doc>
  17923. </method>
  17924. <method name="stop"
  17925. abstract="false" native="false" synchronized="false"
  17926. static="false" final="false" visibility="public"
  17927. deprecated="not deprecated">
  17928. <doc>
  17929. <![CDATA[Stop all threads related to this client. No further calls may be made
  17930. using this client.]]>
  17931. </doc>
  17932. </method>
  17933. <method name="call" return="org.apache.hadoop.io.Writable"
  17934. abstract="false" native="false" synchronized="false"
  17935. static="false" final="false" visibility="public"
  17936. deprecated="Use {@link #call(Writable, InetSocketAddress, Class, UserGroupInformation)} instead">
  17937. <param name="param" type="org.apache.hadoop.io.Writable"/>
  17938. <param name="address" type="java.net.InetSocketAddress"/>
  17939. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  17940. <exception name="IOException" type="java.io.IOException"/>
  17941. <doc>
  17942. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  17943. <code>address</code>, returning the value. Throws exceptions if there are
  17944. network problems or if the remote code threw an exception.
  17945. @deprecated Use {@link #call(Writable, InetSocketAddress, Class, UserGroupInformation)} instead]]>
  17946. </doc>
  17947. </method>
  17948. <method name="call" return="org.apache.hadoop.io.Writable"
  17949. abstract="false" native="false" synchronized="false"
  17950. static="false" final="false" visibility="public"
  17951. deprecated="Use {@link #call(Writable, InetSocketAddress, Class, UserGroupInformation)} instead">
  17952. <param name="param" type="org.apache.hadoop.io.Writable"/>
  17953. <param name="addr" type="java.net.InetSocketAddress"/>
  17954. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  17955. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  17956. <exception name="IOException" type="java.io.IOException"/>
  17957. <doc>
  17958. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  17959. <code>address</code> with the <code>ticket</code> credentials, returning
  17960. the value.
  17961. Throws exceptions if there are network problems or if the remote code
  17962. threw an exception.
  17963. @deprecated Use {@link #call(Writable, InetSocketAddress, Class, UserGroupInformation)} instead]]>
  17964. </doc>
  17965. </method>
  17966. <method name="call" return="org.apache.hadoop.io.Writable"
  17967. abstract="false" native="false" synchronized="false"
  17968. static="false" final="false" visibility="public"
  17969. deprecated="not deprecated">
  17970. <param name="param" type="org.apache.hadoop.io.Writable"/>
  17971. <param name="addr" type="java.net.InetSocketAddress"/>
  17972. <param name="protocol" type="java.lang.Class"/>
  17973. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  17974. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  17975. <exception name="IOException" type="java.io.IOException"/>
  17976. <doc>
  17977. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  17978. <code>address</code> which is servicing the <code>protocol</code> protocol,
  17979. with the <code>ticket</code> credentials, returning the value.
  17980. Throws exceptions if there are network problems or if the remote code
  17981. threw an exception.]]>
  17982. </doc>
  17983. </method>
  17984. <method name="call" return="org.apache.hadoop.io.Writable[]"
  17985. abstract="false" native="false" synchronized="false"
  17986. static="false" final="false" visibility="public"
  17987. deprecated="Use {@link #call(Writable[], InetSocketAddress[], Class, UserGroupInformation)} instead">
  17988. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  17989. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  17990. <exception name="IOException" type="java.io.IOException"/>
  17991. <doc>
  17992. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  17993. corresponding address. When all values are available, or have timed out
  17994. or errored, the collected results are returned in an array. The array
  17995. contains nulls for calls that timed out or errored.
  17996. @deprecated Use {@link #call(Writable[], InetSocketAddress[], Class, UserGroupInformation)} instead]]>
  17997. </doc>
  17998. </method>
  17999. <method name="call" return="org.apache.hadoop.io.Writable[]"
  18000. abstract="false" native="false" synchronized="false"
  18001. static="false" final="false" visibility="public"
  18002. deprecated="not deprecated">
  18003. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  18004. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  18005. <param name="protocol" type="java.lang.Class"/>
  18006. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  18007. <exception name="IOException" type="java.io.IOException"/>
  18008. <doc>
  18009. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  18010. corresponding address. When all values are available, or have timed out
  18011. or errored, the collected results are returned in an array. The array
  18012. contains nulls for calls that timed out or errored.]]>
  18013. </doc>
  18014. </method>
  18015. <field name="LOG" type="org.apache.commons.logging.Log"
  18016. transient="false" volatile="false"
  18017. static="true" final="true" visibility="public"
  18018. deprecated="not deprecated">
  18019. </field>
  18020. <doc>
  18021. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  18022. parameter, and return a {@link Writable} as their value. A service runs on
  18023. a port and is defined by a parameter class and a value class.
  18024. @see Server]]>
  18025. </doc>
  18026. </class>
  18027. <!-- end class org.apache.hadoop.ipc.Client -->
  18028. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  18029. <class name="RemoteException" extends="java.io.IOException"
  18030. abstract="false"
  18031. static="false" final="false" visibility="public"
  18032. deprecated="not deprecated">
  18033. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  18034. static="false" final="false" visibility="public"
  18035. deprecated="not deprecated">
  18036. </constructor>
  18037. <method name="getClassName" return="java.lang.String"
  18038. abstract="false" native="false" synchronized="false"
  18039. static="false" final="false" visibility="public"
  18040. deprecated="not deprecated">
  18041. </method>
  18042. <method name="unwrapRemoteException" return="java.io.IOException"
  18043. abstract="false" native="false" synchronized="false"
  18044. static="false" final="false" visibility="public"
  18045. deprecated="not deprecated">
  18046. <param name="lookupTypes" type="java.lang.Class[]"/>
  18047. <doc>
  18048. <![CDATA[If this remote exception wraps up one of the lookupTypes
  18049. then return this exception.
  18050. <p>
  18051. Unwraps any IOException.
  18052. @param lookupTypes the desired exception class.
  18053. @return IOException, which is either the lookupClass exception or this.]]>
  18054. </doc>
  18055. </method>
  18056. <method name="unwrapRemoteException" return="java.io.IOException"
  18057. abstract="false" native="false" synchronized="false"
  18058. static="false" final="false" visibility="public"
  18059. deprecated="not deprecated">
  18060. <doc>
  18061. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  18062. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  18063. a <code>String</code> as a parameter.
  18064. Otherwise it returns this.
  18065. @return <code>Throwable]]>
  18066. </doc>
  18067. </method>
  18068. <method name="writeXml"
  18069. abstract="false" native="false" synchronized="false"
  18070. static="false" final="false" visibility="public"
  18071. deprecated="not deprecated">
  18072. <param name="path" type="java.lang.String"/>
  18073. <param name="doc" type="org.znerd.xmlenc.XMLOutputter"/>
  18074. <exception name="IOException" type="java.io.IOException"/>
  18075. <doc>
  18076. <![CDATA[Write the object to XML format]]>
  18077. </doc>
  18078. </method>
  18079. <method name="valueOf" return="org.apache.hadoop.ipc.RemoteException"
  18080. abstract="false" native="false" synchronized="false"
  18081. static="true" final="false" visibility="public"
  18082. deprecated="not deprecated">
  18083. <param name="attrs" type="org.xml.sax.Attributes"/>
  18084. <doc>
  18085. <![CDATA[Create RemoteException from attributes]]>
  18086. </doc>
  18087. </method>
  18088. </class>
  18089. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  18090. <!-- start class org.apache.hadoop.ipc.RPC -->
  18091. <class name="RPC" extends="java.lang.Object"
  18092. abstract="false"
  18093. static="false" final="false" visibility="public"
  18094. deprecated="not deprecated">
  18095. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  18096. abstract="false" native="false" synchronized="false"
  18097. static="true" final="false" visibility="public"
  18098. deprecated="not deprecated">
  18099. <param name="protocol" type="java.lang.Class"/>
  18100. <param name="clientVersion" type="long"/>
  18101. <param name="addr" type="java.net.InetSocketAddress"/>
  18102. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18103. <exception name="IOException" type="java.io.IOException"/>
  18104. </method>
  18105. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  18106. abstract="false" native="false" synchronized="false"
  18107. static="true" final="false" visibility="public"
  18108. deprecated="not deprecated">
  18109. <param name="protocol" type="java.lang.Class"/>
  18110. <param name="clientVersion" type="long"/>
  18111. <param name="addr" type="java.net.InetSocketAddress"/>
  18112. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18113. <param name="factory" type="javax.net.SocketFactory"/>
  18114. <exception name="IOException" type="java.io.IOException"/>
  18115. <doc>
  18116. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  18117. talking to a server at the named address.]]>
  18118. </doc>
  18119. </method>
  18120. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  18121. abstract="false" native="false" synchronized="false"
  18122. static="true" final="false" visibility="public"
  18123. deprecated="not deprecated">
  18124. <param name="protocol" type="java.lang.Class"/>
  18125. <param name="clientVersion" type="long"/>
  18126. <param name="addr" type="java.net.InetSocketAddress"/>
  18127. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  18128. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18129. <param name="factory" type="javax.net.SocketFactory"/>
  18130. <exception name="IOException" type="java.io.IOException"/>
  18131. <doc>
  18132. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  18133. talking to a server at the named address.]]>
  18134. </doc>
  18135. </method>
  18136. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  18137. abstract="false" native="false" synchronized="false"
  18138. static="true" final="false" visibility="public"
  18139. deprecated="not deprecated">
  18140. <param name="protocol" type="java.lang.Class"/>
  18141. <param name="clientVersion" type="long"/>
  18142. <param name="addr" type="java.net.InetSocketAddress"/>
  18143. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18144. <exception name="IOException" type="java.io.IOException"/>
  18145. <doc>
  18146. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  18147. @param protocol
  18148. @param clientVersion
  18149. @param addr
  18150. @param conf
  18151. @return a proxy instance
  18152. @throws IOException]]>
  18153. </doc>
  18154. </method>
  18155. <method name="stopProxy"
  18156. abstract="false" native="false" synchronized="false"
  18157. static="true" final="false" visibility="public"
  18158. deprecated="not deprecated">
  18159. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  18160. <doc>
  18161. <![CDATA[Stop this proxy and release its invoker's resource
  18162. @param proxy the proxy to be stopped]]>
  18163. </doc>
  18164. </method>
  18165. <method name="call" return="java.lang.Object[]"
  18166. abstract="false" native="false" synchronized="false"
  18167. static="true" final="false" visibility="public"
  18168. deprecated="Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead">
  18169. <param name="method" type="java.lang.reflect.Method"/>
  18170. <param name="params" type="java.lang.Object[][]"/>
  18171. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  18172. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18173. <exception name="IOException" type="java.io.IOException"/>
  18174. <doc>
  18175. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.
  18176. @deprecated Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead]]>
  18177. </doc>
  18178. </method>
  18179. <method name="call" return="java.lang.Object[]"
  18180. abstract="false" native="false" synchronized="false"
  18181. static="true" final="false" visibility="public"
  18182. deprecated="not deprecated">
  18183. <param name="method" type="java.lang.reflect.Method"/>
  18184. <param name="params" type="java.lang.Object[][]"/>
  18185. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  18186. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  18187. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18188. <exception name="IOException" type="java.io.IOException"/>
  18189. <doc>
  18190. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  18191. </doc>
  18192. </method>
  18193. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  18194. abstract="false" native="false" synchronized="false"
  18195. static="true" final="false" visibility="public"
  18196. deprecated="not deprecated">
  18197. <param name="instance" type="java.lang.Object"/>
  18198. <param name="bindAddress" type="java.lang.String"/>
  18199. <param name="port" type="int"/>
  18200. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18201. <exception name="IOException" type="java.io.IOException"/>
  18202. <doc>
  18203. <![CDATA[Construct a server for a protocol implementation instance listening on a
  18204. port and address.]]>
  18205. </doc>
  18206. </method>
  18207. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  18208. abstract="false" native="false" synchronized="false"
  18209. static="true" final="false" visibility="public"
  18210. deprecated="not deprecated">
  18211. <param name="instance" type="java.lang.Object"/>
  18212. <param name="bindAddress" type="java.lang.String"/>
  18213. <param name="port" type="int"/>
  18214. <param name="numHandlers" type="int"/>
  18215. <param name="verbose" type="boolean"/>
  18216. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18217. <exception name="IOException" type="java.io.IOException"/>
  18218. <doc>
  18219. <![CDATA[Construct a server for a protocol implementation instance listening on a
  18220. port and address.]]>
  18221. </doc>
  18222. </method>
  18223. <doc>
  18224. <![CDATA[A simple RPC mechanism.
  18225. A <i>protocol</i> is a Java interface. All parameters and return types must
  18226. be one of:
  18227. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  18228. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  18229. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  18230. <li>a {@link String}; or</li>
  18231. <li>a {@link Writable}; or</li>
  18232. <li>an array of the above types</li> </ul>
  18233. All methods in the protocol should throw only IOException. No field data of
  18234. the protocol instance is transmitted.]]>
  18235. </doc>
  18236. </class>
  18237. <!-- end class org.apache.hadoop.ipc.RPC -->
  18238. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  18239. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  18240. abstract="false"
  18241. static="true" final="false" visibility="public"
  18242. deprecated="not deprecated">
  18243. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  18244. static="false" final="false" visibility="public"
  18245. deprecated="not deprecated">
  18246. <exception name="IOException" type="java.io.IOException"/>
  18247. <doc>
  18248. <![CDATA[Construct an RPC server.
  18249. @param instance the instance whose methods will be called
  18250. @param conf the configuration to use
  18251. @param bindAddress the address to bind on to listen for connection
  18252. @param port the port to listen for connections on]]>
  18253. </doc>
  18254. </constructor>
  18255. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int, int, boolean"
  18256. static="false" final="false" visibility="public"
  18257. deprecated="not deprecated">
  18258. <exception name="IOException" type="java.io.IOException"/>
  18259. <doc>
  18260. <![CDATA[Construct an RPC server.
  18261. @param instance the instance whose methods will be called
  18262. @param conf the configuration to use
  18263. @param bindAddress the address to bind on to listen for connection
  18264. @param port the port to listen for connections on
  18265. @param numHandlers the number of method handler threads to run
  18266. @param verbose whether each call should be logged]]>
  18267. </doc>
  18268. </constructor>
  18269. <method name="call" return="org.apache.hadoop.io.Writable"
  18270. abstract="false" native="false" synchronized="false"
  18271. static="false" final="false" visibility="public"
  18272. deprecated="not deprecated">
  18273. <param name="protocol" type="java.lang.Class"/>
  18274. <param name="param" type="org.apache.hadoop.io.Writable"/>
  18275. <param name="receivedTime" type="long"/>
  18276. <exception name="IOException" type="java.io.IOException"/>
  18277. </method>
  18278. <method name="authorize"
  18279. abstract="false" native="false" synchronized="false"
  18280. static="false" final="false" visibility="public"
  18281. deprecated="not deprecated">
  18282. <param name="user" type="javax.security.auth.Subject"/>
  18283. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  18284. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  18285. </method>
  18286. <doc>
  18287. <![CDATA[An RPC Server.]]>
  18288. </doc>
  18289. </class>
  18290. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  18291. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  18292. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  18293. abstract="false"
  18294. static="true" final="false" visibility="public"
  18295. deprecated="not deprecated">
  18296. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  18297. static="false" final="false" visibility="public"
  18298. deprecated="not deprecated">
  18299. <doc>
  18300. <![CDATA[Create a version mismatch exception
  18301. @param interfaceName the name of the protocol mismatch
  18302. @param clientVersion the client's version of the protocol
  18303. @param serverVersion the server's version of the protocol]]>
  18304. </doc>
  18305. </constructor>
  18306. <method name="getInterfaceName" return="java.lang.String"
  18307. abstract="false" native="false" synchronized="false"
  18308. static="false" final="false" visibility="public"
  18309. deprecated="not deprecated">
  18310. <doc>
  18311. <![CDATA[Get the interface name
  18312. @return the java class name
  18313. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  18314. </doc>
  18315. </method>
  18316. <method name="getClientVersion" return="long"
  18317. abstract="false" native="false" synchronized="false"
  18318. static="false" final="false" visibility="public"
  18319. deprecated="not deprecated">
  18320. <doc>
  18321. <![CDATA[Get the client's preferred version]]>
  18322. </doc>
  18323. </method>
  18324. <method name="getServerVersion" return="long"
  18325. abstract="false" native="false" synchronized="false"
  18326. static="false" final="false" visibility="public"
  18327. deprecated="not deprecated">
  18328. <doc>
  18329. <![CDATA[Get the server's agreed to version.]]>
  18330. </doc>
  18331. </method>
  18332. <doc>
  18333. <![CDATA[A version mismatch for the RPC protocol.]]>
  18334. </doc>
  18335. </class>
  18336. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  18337. <!-- start class org.apache.hadoop.ipc.Server -->
  18338. <class name="Server" extends="java.lang.Object"
  18339. abstract="true"
  18340. static="false" final="false" visibility="public"
  18341. deprecated="not deprecated">
  18342. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  18343. static="false" final="false" visibility="protected"
  18344. deprecated="not deprecated">
  18345. <exception name="IOException" type="java.io.IOException"/>
  18346. </constructor>
  18347. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  18348. static="false" final="false" visibility="protected"
  18349. deprecated="not deprecated">
  18350. <exception name="IOException" type="java.io.IOException"/>
  18351. <doc>
  18352. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  18353. be of the named class. The <code>handlerCount</handlerCount> determines
  18354. the number of handler threads that will be used to process calls.]]>
  18355. </doc>
  18356. </constructor>
  18357. <method name="get" return="org.apache.hadoop.ipc.Server"
  18358. abstract="false" native="false" synchronized="false"
  18359. static="true" final="false" visibility="public"
  18360. deprecated="not deprecated">
  18361. <doc>
  18362. <![CDATA[Returns the server instance called under or null. May be called under
  18363. {@link #call(Writable, long)} implementations, and under {@link Writable}
  18364. methods of paramters and return values. Permits applications to access
  18365. the server context.]]>
  18366. </doc>
  18367. </method>
  18368. <method name="getRemoteIp" return="java.net.InetAddress"
  18369. abstract="false" native="false" synchronized="false"
  18370. static="true" final="false" visibility="public"
  18371. deprecated="not deprecated">
  18372. <doc>
  18373. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  18374. Returns null incase of an error.]]>
  18375. </doc>
  18376. </method>
  18377. <method name="getRemoteAddress" return="java.lang.String"
  18378. abstract="false" native="false" synchronized="false"
  18379. static="true" final="false" visibility="public"
  18380. deprecated="not deprecated">
  18381. <doc>
  18382. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  18383. Returns null in case of an error.]]>
  18384. </doc>
  18385. </method>
  18386. <method name="bind"
  18387. abstract="false" native="false" synchronized="false"
  18388. static="true" final="false" visibility="public"
  18389. deprecated="not deprecated">
  18390. <param name="socket" type="java.net.ServerSocket"/>
  18391. <param name="address" type="java.net.InetSocketAddress"/>
  18392. <param name="backlog" type="int"/>
  18393. <exception name="IOException" type="java.io.IOException"/>
  18394. <doc>
  18395. <![CDATA[A convenience method to bind to a given address and report
  18396. better exceptions if the address is not a valid host.
  18397. @param socket the socket to bind
  18398. @param address the address to bind to
  18399. @param backlog the number of connections allowed in the queue
  18400. @throws BindException if the address can't be bound
  18401. @throws UnknownHostException if the address isn't a valid host name
  18402. @throws IOException other random errors from bind]]>
  18403. </doc>
  18404. </method>
  18405. <method name="setSocketSendBufSize"
  18406. abstract="false" native="false" synchronized="false"
  18407. static="false" final="false" visibility="public"
  18408. deprecated="not deprecated">
  18409. <param name="size" type="int"/>
  18410. <doc>
  18411. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  18412. </doc>
  18413. </method>
  18414. <method name="start"
  18415. abstract="false" native="false" synchronized="true"
  18416. static="false" final="false" visibility="public"
  18417. deprecated="not deprecated">
  18418. <exception name="IOException" type="java.io.IOException"/>
  18419. <doc>
  18420. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  18421. </doc>
  18422. </method>
  18423. <method name="stop"
  18424. abstract="false" native="false" synchronized="true"
  18425. static="false" final="false" visibility="public"
  18426. deprecated="not deprecated">
  18427. <doc>
  18428. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  18429. </doc>
  18430. </method>
  18431. <method name="join"
  18432. abstract="false" native="false" synchronized="true"
  18433. static="false" final="false" visibility="public"
  18434. deprecated="not deprecated">
  18435. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  18436. <doc>
  18437. <![CDATA[Wait for the server to be stopped.
  18438. Does not wait for all subthreads to finish.
  18439. See {@link #stop()}.]]>
  18440. </doc>
  18441. </method>
  18442. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  18443. abstract="false" native="false" synchronized="true"
  18444. static="false" final="false" visibility="public"
  18445. deprecated="not deprecated">
  18446. <doc>
  18447. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  18448. @return the socket (ip+port) on which the RPC server is listening to.]]>
  18449. </doc>
  18450. </method>
  18451. <method name="call" return="org.apache.hadoop.io.Writable"
  18452. abstract="false" native="false" synchronized="false"
  18453. static="false" final="false" visibility="public"
  18454. deprecated="Use {@link #call(Class, Writable, long)} instead">
  18455. <param name="param" type="org.apache.hadoop.io.Writable"/>
  18456. <param name="receiveTime" type="long"/>
  18457. <exception name="IOException" type="java.io.IOException"/>
  18458. <doc>
  18459. <![CDATA[Called for each call.
  18460. @deprecated Use {@link #call(Class, Writable, long)} instead]]>
  18461. </doc>
  18462. </method>
  18463. <method name="call" return="org.apache.hadoop.io.Writable"
  18464. abstract="true" native="false" synchronized="false"
  18465. static="false" final="false" visibility="public"
  18466. deprecated="not deprecated">
  18467. <param name="protocol" type="java.lang.Class"/>
  18468. <param name="param" type="org.apache.hadoop.io.Writable"/>
  18469. <param name="receiveTime" type="long"/>
  18470. <exception name="IOException" type="java.io.IOException"/>
  18471. <doc>
  18472. <![CDATA[Called for each call.]]>
  18473. </doc>
  18474. </method>
  18475. <method name="authorize"
  18476. abstract="false" native="false" synchronized="false"
  18477. static="false" final="false" visibility="public"
  18478. deprecated="not deprecated">
  18479. <param name="user" type="javax.security.auth.Subject"/>
  18480. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  18481. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  18482. <doc>
  18483. <![CDATA[Authorize the incoming client connection.
  18484. @param user client user
  18485. @param connection incoming connection
  18486. @throws AuthorizationException when the client isn't authorized to talk the protocol]]>
  18487. </doc>
  18488. </method>
  18489. <method name="getNumOpenConnections" return="int"
  18490. abstract="false" native="false" synchronized="false"
  18491. static="false" final="false" visibility="public"
  18492. deprecated="not deprecated">
  18493. <doc>
  18494. <![CDATA[The number of open RPC conections
  18495. @return the number of open rpc connections]]>
  18496. </doc>
  18497. </method>
  18498. <method name="getCallQueueLen" return="int"
  18499. abstract="false" native="false" synchronized="false"
  18500. static="false" final="false" visibility="public"
  18501. deprecated="not deprecated">
  18502. <doc>
  18503. <![CDATA[The number of rpc calls in the queue.
  18504. @return The number of rpc calls in the queue.]]>
  18505. </doc>
  18506. </method>
  18507. <field name="HEADER" type="java.nio.ByteBuffer"
  18508. transient="false" volatile="false"
  18509. static="true" final="true" visibility="public"
  18510. deprecated="not deprecated">
  18511. <doc>
  18512. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  18513. </doc>
  18514. </field>
  18515. <field name="CURRENT_VERSION" type="byte"
  18516. transient="false" volatile="false"
  18517. static="true" final="true" visibility="public"
  18518. deprecated="not deprecated">
  18519. </field>
  18520. <field name="LOG" type="org.apache.commons.logging.Log"
  18521. transient="false" volatile="false"
  18522. static="true" final="true" visibility="public"
  18523. deprecated="not deprecated">
  18524. </field>
  18525. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcMetrics"
  18526. transient="false" volatile="false"
  18527. static="false" final="false" visibility="protected"
  18528. deprecated="not deprecated">
  18529. </field>
  18530. <doc>
  18531. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  18532. parameter, and return a {@link Writable} as their value. A service runs on
  18533. a port and is defined by a parameter class and a value class.
  18534. @see Client]]>
  18535. </doc>
  18536. </class>
  18537. <!-- end class org.apache.hadoop.ipc.Server -->
  18538. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  18539. <interface name="VersionedProtocol" abstract="true"
  18540. static="false" final="false" visibility="public"
  18541. deprecated="not deprecated">
  18542. <method name="getProtocolVersion" return="long"
  18543. abstract="false" native="false" synchronized="false"
  18544. static="false" final="false" visibility="public"
  18545. deprecated="not deprecated">
  18546. <param name="protocol" type="java.lang.String"/>
  18547. <param name="clientVersion" type="long"/>
  18548. <exception name="IOException" type="java.io.IOException"/>
  18549. <doc>
  18550. <![CDATA[Return protocol version corresponding to protocol interface.
  18551. @param protocol The classname of the protocol interface
  18552. @param clientVersion The version of the protocol that the client speaks
  18553. @return the version that the server will speak]]>
  18554. </doc>
  18555. </method>
  18556. <doc>
  18557. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  18558. Subclasses of this interface are also supposed to have
  18559. a static final long versionID field.]]>
  18560. </doc>
  18561. </interface>
  18562. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  18563. </package>
  18564. <package name="org.apache.hadoop.ipc.metrics">
  18565. <!-- start class org.apache.hadoop.ipc.metrics.RpcActivityMBean -->
  18566. <class name="RpcActivityMBean" extends="org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase"
  18567. abstract="false"
  18568. static="false" final="false" visibility="public"
  18569. deprecated="not deprecated">
  18570. <constructor name="RpcActivityMBean" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String, java.lang.String"
  18571. static="false" final="false" visibility="public"
  18572. deprecated="not deprecated">
  18573. <doc>
  18574. <![CDATA[@param mr - the metrics registry that has all the metrics
  18575. @param serviceName - the service name for the rpc service
  18576. @param port - the rpc port.]]>
  18577. </doc>
  18578. </constructor>
  18579. <method name="shutdown"
  18580. abstract="false" native="false" synchronized="false"
  18581. static="false" final="false" visibility="public"
  18582. deprecated="not deprecated">
  18583. </method>
  18584. <doc>
  18585. <![CDATA[This is the JMX MBean for reporting the RPC layer Activity.
  18586. The MBean is register using the name
  18587. "hadoop:service=<RpcServiceName>,name=RpcActivityForPort<port>"
  18588. Many of the activity metrics are sampled and averaged on an interval
  18589. which can be specified in the metrics config file.
  18590. <p>
  18591. For the metrics that are sampled and averaged, one must specify
  18592. a metrics context that does periodic update calls. Most metrics contexts do.
  18593. The default Null metrics context however does NOT. So if you aren't
  18594. using any other metrics context then you can turn on the viewing and averaging
  18595. of sampled metrics by specifying the following two lines
  18596. in the hadoop-meterics.properties file:
  18597. <pre>
  18598. rpc.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  18599. rpc.period=10
  18600. </pre>
  18601. <p>
  18602. Note that the metrics are collected regardless of the context used.
  18603. The context with the update thread is used to average the data periodically
  18604. Impl details: We use a dynamic mbean that gets the list of the metrics
  18605. from the metrics registry passed as an argument to the constructor]]>
  18606. </doc>
  18607. </class>
  18608. <!-- end class org.apache.hadoop.ipc.metrics.RpcActivityMBean -->
  18609. <!-- start class org.apache.hadoop.ipc.metrics.RpcMetrics -->
  18610. <class name="RpcMetrics" extends="java.lang.Object"
  18611. abstract="false"
  18612. static="false" final="false" visibility="public"
  18613. deprecated="not deprecated">
  18614. <implements name="org.apache.hadoop.metrics.Updater"/>
  18615. <constructor name="RpcMetrics" type="java.lang.String, java.lang.String, org.apache.hadoop.ipc.Server"
  18616. static="false" final="false" visibility="public"
  18617. deprecated="not deprecated">
  18618. </constructor>
  18619. <method name="doUpdates"
  18620. abstract="false" native="false" synchronized="false"
  18621. static="false" final="false" visibility="public"
  18622. deprecated="not deprecated">
  18623. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  18624. <doc>
  18625. <![CDATA[Push the metrics to the monitoring subsystem on doUpdate() call.]]>
  18626. </doc>
  18627. </method>
  18628. <method name="shutdown"
  18629. abstract="false" native="false" synchronized="false"
  18630. static="false" final="false" visibility="public"
  18631. deprecated="not deprecated">
  18632. </method>
  18633. <field name="registry" type="org.apache.hadoop.metrics.util.MetricsRegistry"
  18634. transient="false" volatile="false"
  18635. static="false" final="false" visibility="public"
  18636. deprecated="not deprecated">
  18637. </field>
  18638. <field name="rpcQueueTime" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  18639. transient="false" volatile="false"
  18640. static="false" final="false" visibility="public"
  18641. deprecated="not deprecated">
  18642. <doc>
  18643. <![CDATA[The metrics variables are public:
  18644. - they can be set directly by calling their set/inc methods
  18645. -they can also be read directly - e.g. JMX does this.]]>
  18646. </doc>
  18647. </field>
  18648. <field name="rpcProcessingTime" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  18649. transient="false" volatile="false"
  18650. static="false" final="false" visibility="public"
  18651. deprecated="not deprecated">
  18652. </field>
  18653. <field name="numOpenConnections" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  18654. transient="false" volatile="false"
  18655. static="false" final="false" visibility="public"
  18656. deprecated="not deprecated">
  18657. </field>
  18658. <field name="callQueueLen" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  18659. transient="false" volatile="false"
  18660. static="false" final="false" visibility="public"
  18661. deprecated="not deprecated">
  18662. </field>
  18663. <doc>
  18664. <![CDATA[This class is for maintaining the various RPC statistics
  18665. and publishing them through the metrics interfaces.
  18666. This also registers the JMX MBean for RPC.
  18667. <p>
  18668. This class has a number of metrics variables that are publicly accessible;
  18669. these variables (objects) have methods to update their values;
  18670. for example:
  18671. <p> {@link #rpcQueueTime}.inc(time)]]>
  18672. </doc>
  18673. </class>
  18674. <!-- end class org.apache.hadoop.ipc.metrics.RpcMetrics -->
  18675. <!-- start interface org.apache.hadoop.ipc.metrics.RpcMgtMBean -->
  18676. <interface name="RpcMgtMBean" abstract="true"
  18677. static="false" final="false" visibility="public"
  18678. deprecated="not deprecated">
  18679. <method name="getRpcOpsNumber" return="int"
  18680. abstract="false" native="false" synchronized="false"
  18681. static="false" final="false" visibility="public"
  18682. deprecated="not deprecated">
  18683. <doc>
  18684. <![CDATA[Number of RPC Operations in the last interval
  18685. @return number of operations]]>
  18686. </doc>
  18687. </method>
  18688. <method name="getRpcOpsAvgProcessingTime" return="long"
  18689. abstract="false" native="false" synchronized="false"
  18690. static="false" final="false" visibility="public"
  18691. deprecated="not deprecated">
  18692. <doc>
  18693. <![CDATA[Average time for RPC Operations in last interval
  18694. @return time in msec]]>
  18695. </doc>
  18696. </method>
  18697. <method name="getRpcOpsAvgProcessingTimeMin" return="long"
  18698. abstract="false" native="false" synchronized="false"
  18699. static="false" final="false" visibility="public"
  18700. deprecated="not deprecated">
  18701. <doc>
  18702. <![CDATA[The Minimum RPC Operation Processing Time since reset was called
  18703. @return time in msec]]>
  18704. </doc>
  18705. </method>
  18706. <method name="getRpcOpsAvgProcessingTimeMax" return="long"
  18707. abstract="false" native="false" synchronized="false"
  18708. static="false" final="false" visibility="public"
  18709. deprecated="not deprecated">
  18710. <doc>
  18711. <![CDATA[The Maximum RPC Operation Processing Time since reset was called
  18712. @return time in msec]]>
  18713. </doc>
  18714. </method>
  18715. <method name="getRpcOpsAvgQueueTime" return="long"
  18716. abstract="false" native="false" synchronized="false"
  18717. static="false" final="false" visibility="public"
  18718. deprecated="not deprecated">
  18719. <doc>
  18720. <![CDATA[The Average RPC Operation Queued Time in the last interval
  18721. @return time in msec]]>
  18722. </doc>
  18723. </method>
  18724. <method name="getRpcOpsAvgQueueTimeMin" return="long"
  18725. abstract="false" native="false" synchronized="false"
  18726. static="false" final="false" visibility="public"
  18727. deprecated="not deprecated">
  18728. <doc>
  18729. <![CDATA[The Minimum RPC Operation Queued Time since reset was called
  18730. @return time in msec]]>
  18731. </doc>
  18732. </method>
  18733. <method name="getRpcOpsAvgQueueTimeMax" return="long"
  18734. abstract="false" native="false" synchronized="false"
  18735. static="false" final="false" visibility="public"
  18736. deprecated="not deprecated">
  18737. <doc>
  18738. <![CDATA[The Maximum RPC Operation Queued Time since reset was called
  18739. @return time in msec]]>
  18740. </doc>
  18741. </method>
  18742. <method name="resetAllMinMax"
  18743. abstract="false" native="false" synchronized="false"
  18744. static="false" final="false" visibility="public"
  18745. deprecated="not deprecated">
  18746. <doc>
  18747. <![CDATA[Reset all min max times]]>
  18748. </doc>
  18749. </method>
  18750. <method name="getNumOpenConnections" return="int"
  18751. abstract="false" native="false" synchronized="false"
  18752. static="false" final="false" visibility="public"
  18753. deprecated="not deprecated">
  18754. <doc>
  18755. <![CDATA[The number of open RPC conections
  18756. @return the number of open rpc connections]]>
  18757. </doc>
  18758. </method>
  18759. <method name="getCallQueueLen" return="int"
  18760. abstract="false" native="false" synchronized="false"
  18761. static="false" final="false" visibility="public"
  18762. deprecated="not deprecated">
  18763. <doc>
  18764. <![CDATA[The number of rpc calls in the queue.
  18765. @return The number of rpc calls in the queue.]]>
  18766. </doc>
  18767. </method>
  18768. <doc>
  18769. <![CDATA[This is the JMX management interface for the RPC layer.
  18770. Many of the statistics are sampled and averaged on an interval
  18771. which can be specified in the metrics config file.
  18772. <p>
  18773. For the statistics that are sampled and averaged, one must specify
  18774. a metrics context that does periodic update calls. Most do.
  18775. The default Null metrics context however does NOT. So if you aren't
  18776. using any other metrics context then you can turn on the viewing and averaging
  18777. of sampled metrics by specifying the following two lines
  18778. in the hadoop-meterics.properties file:
  18779. <pre>
  18780. rpc.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  18781. rpc.period=10
  18782. </pre>
  18783. <p>
  18784. Note that the metrics are collected regardless of the context used.
  18785. The context with the update thread is used to average the data periodically]]>
  18786. </doc>
  18787. </interface>
  18788. <!-- end interface org.apache.hadoop.ipc.metrics.RpcMgtMBean -->
  18789. </package>
  18790. <package name="org.apache.hadoop.log">
  18791. <!-- start class org.apache.hadoop.log.LogLevel -->
  18792. <class name="LogLevel" extends="java.lang.Object"
  18793. abstract="false"
  18794. static="false" final="false" visibility="public"
  18795. deprecated="not deprecated">
  18796. <constructor name="LogLevel"
  18797. static="false" final="false" visibility="public"
  18798. deprecated="not deprecated">
  18799. </constructor>
  18800. <method name="main"
  18801. abstract="false" native="false" synchronized="false"
  18802. static="true" final="false" visibility="public"
  18803. deprecated="not deprecated">
  18804. <param name="args" type="java.lang.String[]"/>
  18805. <doc>
  18806. <![CDATA[A command line implementation]]>
  18807. </doc>
  18808. </method>
  18809. <field name="USAGES" type="java.lang.String"
  18810. transient="false" volatile="false"
  18811. static="true" final="true" visibility="public"
  18812. deprecated="not deprecated">
  18813. </field>
  18814. <doc>
  18815. <![CDATA[Change log level in runtime.]]>
  18816. </doc>
  18817. </class>
  18818. <!-- end class org.apache.hadoop.log.LogLevel -->
  18819. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  18820. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  18821. abstract="false"
  18822. static="true" final="false" visibility="public"
  18823. deprecated="not deprecated">
  18824. <constructor name="LogLevel.Servlet"
  18825. static="false" final="false" visibility="public"
  18826. deprecated="not deprecated">
  18827. </constructor>
  18828. <method name="doGet"
  18829. abstract="false" native="false" synchronized="false"
  18830. static="false" final="false" visibility="public"
  18831. deprecated="not deprecated">
  18832. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  18833. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  18834. <exception name="ServletException" type="javax.servlet.ServletException"/>
  18835. <exception name="IOException" type="java.io.IOException"/>
  18836. </method>
  18837. <doc>
  18838. <![CDATA[A servlet implementation]]>
  18839. </doc>
  18840. </class>
  18841. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  18842. </package>
  18843. <package name="org.apache.hadoop.metrics">
  18844. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  18845. <class name="ContextFactory" extends="java.lang.Object"
  18846. abstract="false"
  18847. static="false" final="false" visibility="public"
  18848. deprecated="not deprecated">
  18849. <constructor name="ContextFactory"
  18850. static="false" final="false" visibility="protected"
  18851. deprecated="not deprecated">
  18852. <doc>
  18853. <![CDATA[Creates a new instance of ContextFactory]]>
  18854. </doc>
  18855. </constructor>
  18856. <method name="getAttribute" return="java.lang.Object"
  18857. abstract="false" native="false" synchronized="false"
  18858. static="false" final="false" visibility="public"
  18859. deprecated="not deprecated">
  18860. <param name="attributeName" type="java.lang.String"/>
  18861. <doc>
  18862. <![CDATA[Returns the value of the named attribute, or null if there is no
  18863. attribute of that name.
  18864. @param attributeName the attribute name
  18865. @return the attribute value]]>
  18866. </doc>
  18867. </method>
  18868. <method name="getAttributeNames" return="java.lang.String[]"
  18869. abstract="false" native="false" synchronized="false"
  18870. static="false" final="false" visibility="public"
  18871. deprecated="not deprecated">
  18872. <doc>
  18873. <![CDATA[Returns the names of all the factory's attributes.
  18874. @return the attribute names]]>
  18875. </doc>
  18876. </method>
  18877. <method name="setAttribute"
  18878. abstract="false" native="false" synchronized="false"
  18879. static="false" final="false" visibility="public"
  18880. deprecated="not deprecated">
  18881. <param name="attributeName" type="java.lang.String"/>
  18882. <param name="value" type="java.lang.Object"/>
  18883. <doc>
  18884. <![CDATA[Sets the named factory attribute to the specified value, creating it
  18885. if it did not already exist. If the value is null, this is the same as
  18886. calling removeAttribute.
  18887. @param attributeName the attribute name
  18888. @param value the new attribute value]]>
  18889. </doc>
  18890. </method>
  18891. <method name="removeAttribute"
  18892. abstract="false" native="false" synchronized="false"
  18893. static="false" final="false" visibility="public"
  18894. deprecated="not deprecated">
  18895. <param name="attributeName" type="java.lang.String"/>
  18896. <doc>
  18897. <![CDATA[Removes the named attribute if it exists.
  18898. @param attributeName the attribute name]]>
  18899. </doc>
  18900. </method>
  18901. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  18902. abstract="false" native="false" synchronized="true"
  18903. static="false" final="false" visibility="public"
  18904. deprecated="not deprecated">
  18905. <param name="refName" type="java.lang.String"/>
  18906. <param name="contextName" type="java.lang.String"/>
  18907. <exception name="IOException" type="java.io.IOException"/>
  18908. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  18909. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  18910. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  18911. <doc>
  18912. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  18913. using the factory's current configuration attributes. <p/>
  18914. When constructing the instance, if the factory property
  18915. <i>contextName</i>.class</code> exists,
  18916. its value is taken to be the name of the class to instantiate. Otherwise,
  18917. the default is to create an instance of
  18918. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  18919. dummy "no-op" context which will cause all metric data to be discarded.
  18920. @param contextName the name of the context
  18921. @return the named MetricsContext]]>
  18922. </doc>
  18923. </method>
  18924. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  18925. abstract="false" native="false" synchronized="true"
  18926. static="false" final="false" visibility="public"
  18927. deprecated="not deprecated">
  18928. <param name="contextName" type="java.lang.String"/>
  18929. <exception name="IOException" type="java.io.IOException"/>
  18930. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  18931. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  18932. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  18933. </method>
  18934. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  18935. abstract="false" native="false" synchronized="true"
  18936. static="true" final="false" visibility="public"
  18937. deprecated="not deprecated">
  18938. <param name="contextName" type="java.lang.String"/>
  18939. <doc>
  18940. <![CDATA[Returns a "null" context - one which does nothing.]]>
  18941. </doc>
  18942. </method>
  18943. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  18944. abstract="false" native="false" synchronized="true"
  18945. static="true" final="false" visibility="public"
  18946. deprecated="not deprecated">
  18947. <exception name="IOException" type="java.io.IOException"/>
  18948. <doc>
  18949. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  18950. necessary. <p/>
  18951. When the instance is constructed, this method checks if the file
  18952. <code>hadoop-metrics.properties</code> exists on the class path. If it
  18953. exists, it must be in the format defined by java.util.Properties, and all
  18954. the properties in the file are set as attributes on the newly created
  18955. ContextFactory instance.
  18956. @return the singleton ContextFactory instance]]>
  18957. </doc>
  18958. </method>
  18959. <doc>
  18960. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  18961. of this class, use the static <code>getFactory()</code> method.]]>
  18962. </doc>
  18963. </class>
  18964. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  18965. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  18966. <interface name="MetricsContext" abstract="true"
  18967. static="false" final="false" visibility="public"
  18968. deprecated="not deprecated">
  18969. <method name="init"
  18970. abstract="false" native="false" synchronized="false"
  18971. static="false" final="false" visibility="public"
  18972. deprecated="not deprecated">
  18973. <param name="contextName" type="java.lang.String"/>
  18974. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  18975. <doc>
  18976. <![CDATA[Initialize this context.
  18977. @param contextName The given name for this context
  18978. @param factory The creator of this context]]>
  18979. </doc>
  18980. </method>
  18981. <method name="getContextName" return="java.lang.String"
  18982. abstract="false" native="false" synchronized="false"
  18983. static="false" final="false" visibility="public"
  18984. deprecated="not deprecated">
  18985. <doc>
  18986. <![CDATA[Returns the context name.
  18987. @return the context name]]>
  18988. </doc>
  18989. </method>
  18990. <method name="startMonitoring"
  18991. abstract="false" native="false" synchronized="false"
  18992. static="false" final="false" visibility="public"
  18993. deprecated="not deprecated">
  18994. <exception name="IOException" type="java.io.IOException"/>
  18995. <doc>
  18996. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  18997. updated.]]>
  18998. </doc>
  18999. </method>
  19000. <method name="stopMonitoring"
  19001. abstract="false" native="false" synchronized="false"
  19002. static="false" final="false" visibility="public"
  19003. deprecated="not deprecated">
  19004. <doc>
  19005. <![CDATA[Stops monitoring. This does not free any data that the implementation
  19006. may have buffered for sending at the next timer event. It
  19007. is OK to call <code>startMonitoring()</code> again after calling
  19008. this.
  19009. @see #close()]]>
  19010. </doc>
  19011. </method>
  19012. <method name="isMonitoring" return="boolean"
  19013. abstract="false" native="false" synchronized="false"
  19014. static="false" final="false" visibility="public"
  19015. deprecated="not deprecated">
  19016. <doc>
  19017. <![CDATA[Returns true if monitoring is currently in progress.]]>
  19018. </doc>
  19019. </method>
  19020. <method name="close"
  19021. abstract="false" native="false" synchronized="false"
  19022. static="false" final="false" visibility="public"
  19023. deprecated="not deprecated">
  19024. <doc>
  19025. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  19026. object to its initial state.]]>
  19027. </doc>
  19028. </method>
  19029. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  19030. abstract="false" native="false" synchronized="false"
  19031. static="false" final="false" visibility="public"
  19032. deprecated="not deprecated">
  19033. <param name="recordName" type="java.lang.String"/>
  19034. <doc>
  19035. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  19036. Throws an exception if the metrics implementation is configured with a fixed
  19037. set of record names and <code>recordName</code> is not in that set.
  19038. @param recordName the name of the record
  19039. @throws MetricsException if recordName conflicts with configuration data]]>
  19040. </doc>
  19041. </method>
  19042. <method name="registerUpdater"
  19043. abstract="false" native="false" synchronized="false"
  19044. static="false" final="false" visibility="public"
  19045. deprecated="not deprecated">
  19046. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  19047. <doc>
  19048. <![CDATA[Registers a callback to be called at regular time intervals, as
  19049. determined by the implementation-class specific configuration.
  19050. @param updater object to be run periodically; it should updated
  19051. some metrics records and then return]]>
  19052. </doc>
  19053. </method>
  19054. <method name="unregisterUpdater"
  19055. abstract="false" native="false" synchronized="false"
  19056. static="false" final="false" visibility="public"
  19057. deprecated="not deprecated">
  19058. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  19059. <doc>
  19060. <![CDATA[Removes a callback, if it exists.
  19061. @param updater object to be removed from the callback list]]>
  19062. </doc>
  19063. </method>
  19064. <method name="getPeriod" return="int"
  19065. abstract="false" native="false" synchronized="false"
  19066. static="false" final="false" visibility="public"
  19067. deprecated="not deprecated">
  19068. <doc>
  19069. <![CDATA[Returns the timer period.]]>
  19070. </doc>
  19071. </method>
  19072. <field name="DEFAULT_PERIOD" type="int"
  19073. transient="false" volatile="false"
  19074. static="true" final="true" visibility="public"
  19075. deprecated="not deprecated">
  19076. <doc>
  19077. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  19078. </doc>
  19079. </field>
  19080. <doc>
  19081. <![CDATA[The main interface to the metrics package.]]>
  19082. </doc>
  19083. </interface>
  19084. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  19085. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  19086. <class name="MetricsException" extends="java.lang.RuntimeException"
  19087. abstract="false"
  19088. static="false" final="false" visibility="public"
  19089. deprecated="not deprecated">
  19090. <constructor name="MetricsException"
  19091. static="false" final="false" visibility="public"
  19092. deprecated="not deprecated">
  19093. <doc>
  19094. <![CDATA[Creates a new instance of MetricsException]]>
  19095. </doc>
  19096. </constructor>
  19097. <constructor name="MetricsException" type="java.lang.String"
  19098. static="false" final="false" visibility="public"
  19099. deprecated="not deprecated">
  19100. <doc>
  19101. <![CDATA[Creates a new instance of MetricsException
  19102. @param message an error message]]>
  19103. </doc>
  19104. </constructor>
  19105. <doc>
  19106. <![CDATA[General-purpose, unchecked metrics exception.]]>
  19107. </doc>
  19108. </class>
  19109. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  19110. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  19111. <interface name="MetricsRecord" abstract="true"
  19112. static="false" final="false" visibility="public"
  19113. deprecated="not deprecated">
  19114. <method name="getRecordName" return="java.lang.String"
  19115. abstract="false" native="false" synchronized="false"
  19116. static="false" final="false" visibility="public"
  19117. deprecated="not deprecated">
  19118. <doc>
  19119. <![CDATA[Returns the record name.
  19120. @return the record name]]>
  19121. </doc>
  19122. </method>
  19123. <method name="setTag"
  19124. abstract="false" native="false" synchronized="false"
  19125. static="false" final="false" visibility="public"
  19126. deprecated="not deprecated">
  19127. <param name="tagName" type="java.lang.String"/>
  19128. <param name="tagValue" type="java.lang.String"/>
  19129. <doc>
  19130. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  19131. which is treated the same as an empty String.
  19132. @param tagName name of the tag
  19133. @param tagValue new value of the tag
  19134. @throws MetricsException if the tagName conflicts with the configuration]]>
  19135. </doc>
  19136. </method>
  19137. <method name="setTag"
  19138. abstract="false" native="false" synchronized="false"
  19139. static="false" final="false" visibility="public"
  19140. deprecated="not deprecated">
  19141. <param name="tagName" type="java.lang.String"/>
  19142. <param name="tagValue" type="int"/>
  19143. <doc>
  19144. <![CDATA[Sets the named tag to the specified value.
  19145. @param tagName name of the tag
  19146. @param tagValue new value of the tag
  19147. @throws MetricsException if the tagName conflicts with the configuration]]>
  19148. </doc>
  19149. </method>
  19150. <method name="setTag"
  19151. abstract="false" native="false" synchronized="false"
  19152. static="false" final="false" visibility="public"
  19153. deprecated="not deprecated">
  19154. <param name="tagName" type="java.lang.String"/>
  19155. <param name="tagValue" type="long"/>
  19156. <doc>
  19157. <![CDATA[Sets the named tag to the specified value.
  19158. @param tagName name of the tag
  19159. @param tagValue new value of the tag
  19160. @throws MetricsException if the tagName conflicts with the configuration]]>
  19161. </doc>
  19162. </method>
  19163. <method name="setTag"
  19164. abstract="false" native="false" synchronized="false"
  19165. static="false" final="false" visibility="public"
  19166. deprecated="not deprecated">
  19167. <param name="tagName" type="java.lang.String"/>
  19168. <param name="tagValue" type="short"/>
  19169. <doc>
  19170. <![CDATA[Sets the named tag to the specified value.
  19171. @param tagName name of the tag
  19172. @param tagValue new value of the tag
  19173. @throws MetricsException if the tagName conflicts with the configuration]]>
  19174. </doc>
  19175. </method>
  19176. <method name="setTag"
  19177. abstract="false" native="false" synchronized="false"
  19178. static="false" final="false" visibility="public"
  19179. deprecated="not deprecated">
  19180. <param name="tagName" type="java.lang.String"/>
  19181. <param name="tagValue" type="byte"/>
  19182. <doc>
  19183. <![CDATA[Sets the named tag to the specified value.
  19184. @param tagName name of the tag
  19185. @param tagValue new value of the tag
  19186. @throws MetricsException if the tagName conflicts with the configuration]]>
  19187. </doc>
  19188. </method>
  19189. <method name="removeTag"
  19190. abstract="false" native="false" synchronized="false"
  19191. static="false" final="false" visibility="public"
  19192. deprecated="not deprecated">
  19193. <param name="tagName" type="java.lang.String"/>
  19194. <doc>
  19195. <![CDATA[Removes any tag of the specified name.
  19196. @param tagName name of a tag]]>
  19197. </doc>
  19198. </method>
  19199. <method name="setMetric"
  19200. abstract="false" native="false" synchronized="false"
  19201. static="false" final="false" visibility="public"
  19202. deprecated="not deprecated">
  19203. <param name="metricName" type="java.lang.String"/>
  19204. <param name="metricValue" type="int"/>
  19205. <doc>
  19206. <![CDATA[Sets the named metric to the specified value.
  19207. @param metricName name of the metric
  19208. @param metricValue new value of the metric
  19209. @throws MetricsException if the metricName or the type of the metricValue
  19210. conflicts with the configuration]]>
  19211. </doc>
  19212. </method>
  19213. <method name="setMetric"
  19214. abstract="false" native="false" synchronized="false"
  19215. static="false" final="false" visibility="public"
  19216. deprecated="not deprecated">
  19217. <param name="metricName" type="java.lang.String"/>
  19218. <param name="metricValue" type="long"/>
  19219. <doc>
  19220. <![CDATA[Sets the named metric to the specified value.
  19221. @param metricName name of the metric
  19222. @param metricValue new value of the metric
  19223. @throws MetricsException if the metricName or the type of the metricValue
  19224. conflicts with the configuration]]>
  19225. </doc>
  19226. </method>
  19227. <method name="setMetric"
  19228. abstract="false" native="false" synchronized="false"
  19229. static="false" final="false" visibility="public"
  19230. deprecated="not deprecated">
  19231. <param name="metricName" type="java.lang.String"/>
  19232. <param name="metricValue" type="short"/>
  19233. <doc>
  19234. <![CDATA[Sets the named metric to the specified value.
  19235. @param metricName name of the metric
  19236. @param metricValue new value of the metric
  19237. @throws MetricsException if the metricName or the type of the metricValue
  19238. conflicts with the configuration]]>
  19239. </doc>
  19240. </method>
  19241. <method name="setMetric"
  19242. abstract="false" native="false" synchronized="false"
  19243. static="false" final="false" visibility="public"
  19244. deprecated="not deprecated">
  19245. <param name="metricName" type="java.lang.String"/>
  19246. <param name="metricValue" type="byte"/>
  19247. <doc>
  19248. <![CDATA[Sets the named metric to the specified value.
  19249. @param metricName name of the metric
  19250. @param metricValue new value of the metric
  19251. @throws MetricsException if the metricName or the type of the metricValue
  19252. conflicts with the configuration]]>
  19253. </doc>
  19254. </method>
  19255. <method name="setMetric"
  19256. abstract="false" native="false" synchronized="false"
  19257. static="false" final="false" visibility="public"
  19258. deprecated="not deprecated">
  19259. <param name="metricName" type="java.lang.String"/>
  19260. <param name="metricValue" type="float"/>
  19261. <doc>
  19262. <![CDATA[Sets the named metric to the specified value.
  19263. @param metricName name of the metric
  19264. @param metricValue new value of the metric
  19265. @throws MetricsException if the metricName or the type of the metricValue
  19266. conflicts with the configuration]]>
  19267. </doc>
  19268. </method>
  19269. <method name="incrMetric"
  19270. abstract="false" native="false" synchronized="false"
  19271. static="false" final="false" visibility="public"
  19272. deprecated="not deprecated">
  19273. <param name="metricName" type="java.lang.String"/>
  19274. <param name="metricValue" type="int"/>
  19275. <doc>
  19276. <![CDATA[Increments the named metric by the specified value.
  19277. @param metricName name of the metric
  19278. @param metricValue incremental value
  19279. @throws MetricsException if the metricName or the type of the metricValue
  19280. conflicts with the configuration]]>
  19281. </doc>
  19282. </method>
  19283. <method name="incrMetric"
  19284. abstract="false" native="false" synchronized="false"
  19285. static="false" final="false" visibility="public"
  19286. deprecated="not deprecated">
  19287. <param name="metricName" type="java.lang.String"/>
  19288. <param name="metricValue" type="long"/>
  19289. <doc>
  19290. <![CDATA[Increments the named metric by the specified value.
  19291. @param metricName name of the metric
  19292. @param metricValue incremental value
  19293. @throws MetricsException if the metricName or the type of the metricValue
  19294. conflicts with the configuration]]>
  19295. </doc>
  19296. </method>
  19297. <method name="incrMetric"
  19298. abstract="false" native="false" synchronized="false"
  19299. static="false" final="false" visibility="public"
  19300. deprecated="not deprecated">
  19301. <param name="metricName" type="java.lang.String"/>
  19302. <param name="metricValue" type="short"/>
  19303. <doc>
  19304. <![CDATA[Increments the named metric by the specified value.
  19305. @param metricName name of the metric
  19306. @param metricValue incremental value
  19307. @throws MetricsException if the metricName or the type of the metricValue
  19308. conflicts with the configuration]]>
  19309. </doc>
  19310. </method>
  19311. <method name="incrMetric"
  19312. abstract="false" native="false" synchronized="false"
  19313. static="false" final="false" visibility="public"
  19314. deprecated="not deprecated">
  19315. <param name="metricName" type="java.lang.String"/>
  19316. <param name="metricValue" type="byte"/>
  19317. <doc>
  19318. <![CDATA[Increments the named metric by the specified value.
  19319. @param metricName name of the metric
  19320. @param metricValue incremental value
  19321. @throws MetricsException if the metricName or the type of the metricValue
  19322. conflicts with the configuration]]>
  19323. </doc>
  19324. </method>
  19325. <method name="incrMetric"
  19326. abstract="false" native="false" synchronized="false"
  19327. static="false" final="false" visibility="public"
  19328. deprecated="not deprecated">
  19329. <param name="metricName" type="java.lang.String"/>
  19330. <param name="metricValue" type="float"/>
  19331. <doc>
  19332. <![CDATA[Increments the named metric by the specified value.
  19333. @param metricName name of the metric
  19334. @param metricValue incremental value
  19335. @throws MetricsException if the metricName or the type of the metricValue
  19336. conflicts with the configuration]]>
  19337. </doc>
  19338. </method>
  19339. <method name="update"
  19340. abstract="false" native="false" synchronized="false"
  19341. static="false" final="false" visibility="public"
  19342. deprecated="not deprecated">
  19343. <doc>
  19344. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  19345. If the tag values match an existing row, that row is updated;
  19346. otherwise, a new row is added.]]>
  19347. </doc>
  19348. </method>
  19349. <method name="remove"
  19350. abstract="false" native="false" synchronized="false"
  19351. static="false" final="false" visibility="public"
  19352. deprecated="not deprecated">
  19353. <doc>
  19354. <![CDATA[Removes, from the buffered data table, all rows having tags
  19355. that equal the tags that have been set on this record. For example,
  19356. if there are no tags on this record, all rows for this record name
  19357. would be removed. Or, if there is a single tag on this record, then
  19358. just rows containing a tag with the same name and value would be removed.]]>
  19359. </doc>
  19360. </method>
  19361. <doc>
  19362. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  19363. system. <p/>
  19364. A record name identifies the kind of data to be reported. For example, a
  19365. program reporting statistics relating to the disks on a computer might use
  19366. a record name "diskStats".<p/>
  19367. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  19368. continue the example, the "diskStats" record might use a tag named
  19369. "diskName" to identify a particular disk. Sometimes it is useful to have
  19370. more than one tag, so there might also be a "diskType" with value "ide" or
  19371. "scsi" or whatever.<p/>
  19372. A record also has zero or more <i>metrics</i>. These are the named
  19373. values that are to be reported to the metrics system. In the "diskStats"
  19374. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  19375. "kbReadPerSecond", etc.<p/>
  19376. The general procedure for using a MetricsRecord is to fill in its tag and
  19377. metric values, and then call <code>update()</code> to pass the record to the
  19378. client library.
  19379. Metric data is not immediately sent to the metrics system
  19380. each time that <code>update()</code> is called.
  19381. An internal table is maintained, identified by the record name. This
  19382. table has columns
  19383. corresponding to the tag and the metric names, and rows
  19384. corresponding to each unique set of tag values. An update
  19385. either modifies an existing row in the table, or adds a new row with a set of
  19386. tag values that are different from all the other rows. Note that if there
  19387. are no tags, then there can be at most one row in the table. <p/>
  19388. Once a row is added to the table, its data will be sent to the metrics system
  19389. on every timer period, whether or not it has been updated since the previous
  19390. timer period. If this is inappropriate, for example if metrics were being
  19391. reported by some transient object in an application, the <code>remove()</code>
  19392. method can be used to remove the row and thus stop the data from being
  19393. sent.<p/>
  19394. Note that the <code>update()</code> method is atomic. This means that it is
  19395. safe for different threads to be updating the same metric. More precisely,
  19396. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  19397. with the same set of tag names and tag values. Different threads should
  19398. <b>not</b> use the same MetricsRecord instance at the same time.]]>
  19399. </doc>
  19400. </interface>
  19401. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  19402. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  19403. <class name="MetricsUtil" extends="java.lang.Object"
  19404. abstract="false"
  19405. static="false" final="false" visibility="public"
  19406. deprecated="not deprecated">
  19407. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  19408. abstract="false" native="false" synchronized="false"
  19409. static="true" final="false" visibility="public"
  19410. deprecated="not deprecated">
  19411. <param name="contextName" type="java.lang.String"/>
  19412. </method>
  19413. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  19414. abstract="false" native="false" synchronized="false"
  19415. static="true" final="false" visibility="public"
  19416. deprecated="not deprecated">
  19417. <param name="refName" type="java.lang.String"/>
  19418. <param name="contextName" type="java.lang.String"/>
  19419. <doc>
  19420. <![CDATA[Utility method to return the named context.
  19421. If the desired context cannot be created for any reason, the exception
  19422. is logged, and a null context is returned.]]>
  19423. </doc>
  19424. </method>
  19425. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  19426. abstract="false" native="false" synchronized="false"
  19427. static="true" final="false" visibility="public"
  19428. deprecated="not deprecated">
  19429. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  19430. <param name="recordName" type="java.lang.String"/>
  19431. <doc>
  19432. <![CDATA[Utility method to create and return new metrics record instance within the
  19433. given context. This record is tagged with the host name.
  19434. @param context the context
  19435. @param recordName name of the record
  19436. @return newly created metrics record]]>
  19437. </doc>
  19438. </method>
  19439. <field name="LOG" type="org.apache.commons.logging.Log"
  19440. transient="false" volatile="false"
  19441. static="true" final="true" visibility="public"
  19442. deprecated="not deprecated">
  19443. </field>
  19444. <doc>
  19445. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  19446. For examples of usage, see NameNodeMetrics.
  19447. @see org.apache.hadoop.metrics.MetricsRecord
  19448. @see org.apache.hadoop.metrics.MetricsContext
  19449. @see org.apache.hadoop.metrics.ContextFactory]]>
  19450. </doc>
  19451. </class>
  19452. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  19453. <!-- start interface org.apache.hadoop.metrics.Updater -->
  19454. <interface name="Updater" abstract="true"
  19455. static="false" final="false" visibility="public"
  19456. deprecated="not deprecated">
  19457. <method name="doUpdates"
  19458. abstract="false" native="false" synchronized="false"
  19459. static="false" final="false" visibility="public"
  19460. deprecated="not deprecated">
  19461. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  19462. <doc>
  19463. <![CDATA[Timer-based call-back from the metric library.]]>
  19464. </doc>
  19465. </method>
  19466. <doc>
  19467. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.]]>
  19468. </doc>
  19469. </interface>
  19470. <!-- end interface org.apache.hadoop.metrics.Updater -->
  19471. </package>
  19472. <package name="org.apache.hadoop.metrics.file">
  19473. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  19474. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  19475. abstract="false"
  19476. static="false" final="false" visibility="public"
  19477. deprecated="not deprecated">
  19478. <constructor name="FileContext"
  19479. static="false" final="false" visibility="public"
  19480. deprecated="not deprecated">
  19481. <doc>
  19482. <![CDATA[Creates a new instance of FileContext]]>
  19483. </doc>
  19484. </constructor>
  19485. <method name="init"
  19486. abstract="false" native="false" synchronized="false"
  19487. static="false" final="false" visibility="public"
  19488. deprecated="not deprecated">
  19489. <param name="contextName" type="java.lang.String"/>
  19490. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  19491. </method>
  19492. <method name="getFileName" return="java.lang.String"
  19493. abstract="false" native="false" synchronized="false"
  19494. static="false" final="false" visibility="public"
  19495. deprecated="not deprecated">
  19496. <doc>
  19497. <![CDATA[Returns the configured file name, or null.]]>
  19498. </doc>
  19499. </method>
  19500. <method name="startMonitoring"
  19501. abstract="false" native="false" synchronized="false"
  19502. static="false" final="false" visibility="public"
  19503. deprecated="not deprecated">
  19504. <exception name="IOException" type="java.io.IOException"/>
  19505. <doc>
  19506. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  19507. file specified by the <code>fileName</code> attribute,
  19508. if specified. Otherwise the data will be written to standard
  19509. output.]]>
  19510. </doc>
  19511. </method>
  19512. <method name="stopMonitoring"
  19513. abstract="false" native="false" synchronized="false"
  19514. static="false" final="false" visibility="public"
  19515. deprecated="not deprecated">
  19516. <doc>
  19517. <![CDATA[Stops monitoring, closing the file.
  19518. @see #close()]]>
  19519. </doc>
  19520. </method>
  19521. <method name="emitRecord"
  19522. abstract="false" native="false" synchronized="false"
  19523. static="false" final="false" visibility="public"
  19524. deprecated="not deprecated">
  19525. <param name="contextName" type="java.lang.String"/>
  19526. <param name="recordName" type="java.lang.String"/>
  19527. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  19528. <doc>
  19529. <![CDATA[Emits a metrics record to a file.]]>
  19530. </doc>
  19531. </method>
  19532. <method name="flush"
  19533. abstract="false" native="false" synchronized="false"
  19534. static="false" final="false" visibility="public"
  19535. deprecated="not deprecated">
  19536. <doc>
  19537. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  19538. </doc>
  19539. </method>
  19540. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  19541. transient="false" volatile="false"
  19542. static="true" final="true" visibility="protected"
  19543. deprecated="not deprecated">
  19544. </field>
  19545. <field name="PERIOD_PROPERTY" type="java.lang.String"
  19546. transient="false" volatile="false"
  19547. static="true" final="true" visibility="protected"
  19548. deprecated="not deprecated">
  19549. </field>
  19550. <doc>
  19551. <![CDATA[Metrics context for writing metrics to a file.<p/>
  19552. This class is configured by setting ContextFactory attributes which in turn
  19553. are usually configured through a properties file. All the attributes are
  19554. prefixed by the contextName. For example, the properties file might contain:
  19555. <pre>
  19556. myContextName.fileName=/tmp/metrics.log
  19557. myContextName.period=5
  19558. </pre>]]>
  19559. </doc>
  19560. </class>
  19561. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  19562. </package>
  19563. <package name="org.apache.hadoop.metrics.ganglia">
  19564. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  19565. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  19566. abstract="false"
  19567. static="false" final="false" visibility="public"
  19568. deprecated="not deprecated">
  19569. <constructor name="GangliaContext"
  19570. static="false" final="false" visibility="public"
  19571. deprecated="not deprecated">
  19572. <doc>
  19573. <![CDATA[Creates a new instance of GangliaContext]]>
  19574. </doc>
  19575. </constructor>
  19576. <method name="init"
  19577. abstract="false" native="false" synchronized="false"
  19578. static="false" final="false" visibility="public"
  19579. deprecated="not deprecated">
  19580. <param name="contextName" type="java.lang.String"/>
  19581. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  19582. </method>
  19583. <method name="emitRecord"
  19584. abstract="false" native="false" synchronized="false"
  19585. static="false" final="false" visibility="public"
  19586. deprecated="not deprecated">
  19587. <param name="contextName" type="java.lang.String"/>
  19588. <param name="recordName" type="java.lang.String"/>
  19589. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  19590. <exception name="IOException" type="java.io.IOException"/>
  19591. </method>
  19592. <doc>
  19593. <![CDATA[Context for sending metrics to Ganglia.]]>
  19594. </doc>
  19595. </class>
  19596. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  19597. </package>
  19598. <package name="org.apache.hadoop.metrics.jvm">
  19599. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  19600. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  19601. abstract="false"
  19602. static="false" final="false" visibility="public"
  19603. deprecated="not deprecated">
  19604. <constructor name="EventCounter"
  19605. static="false" final="false" visibility="public"
  19606. deprecated="not deprecated">
  19607. </constructor>
  19608. <method name="getFatal" return="long"
  19609. abstract="false" native="false" synchronized="false"
  19610. static="true" final="false" visibility="public"
  19611. deprecated="not deprecated">
  19612. </method>
  19613. <method name="getError" return="long"
  19614. abstract="false" native="false" synchronized="false"
  19615. static="true" final="false" visibility="public"
  19616. deprecated="not deprecated">
  19617. </method>
  19618. <method name="getWarn" return="long"
  19619. abstract="false" native="false" synchronized="false"
  19620. static="true" final="false" visibility="public"
  19621. deprecated="not deprecated">
  19622. </method>
  19623. <method name="getInfo" return="long"
  19624. abstract="false" native="false" synchronized="false"
  19625. static="true" final="false" visibility="public"
  19626. deprecated="not deprecated">
  19627. </method>
  19628. <method name="append"
  19629. abstract="false" native="false" synchronized="false"
  19630. static="false" final="false" visibility="public"
  19631. deprecated="not deprecated">
  19632. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  19633. </method>
  19634. <method name="close"
  19635. abstract="false" native="false" synchronized="false"
  19636. static="false" final="false" visibility="public"
  19637. deprecated="not deprecated">
  19638. </method>
  19639. <method name="requiresLayout" return="boolean"
  19640. abstract="false" native="false" synchronized="false"
  19641. static="false" final="false" visibility="public"
  19642. deprecated="not deprecated">
  19643. </method>
  19644. <doc>
  19645. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  19646. fatal, error and warn.]]>
  19647. </doc>
  19648. </class>
  19649. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  19650. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  19651. <class name="JvmMetrics" extends="java.lang.Object"
  19652. abstract="false"
  19653. static="false" final="false" visibility="public"
  19654. deprecated="not deprecated">
  19655. <implements name="org.apache.hadoop.metrics.Updater"/>
  19656. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  19657. abstract="false" native="false" synchronized="true"
  19658. static="true" final="false" visibility="public"
  19659. deprecated="not deprecated">
  19660. <param name="processName" type="java.lang.String"/>
  19661. <param name="sessionId" type="java.lang.String"/>
  19662. </method>
  19663. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  19664. abstract="false" native="false" synchronized="true"
  19665. static="true" final="false" visibility="public"
  19666. deprecated="not deprecated">
  19667. <param name="processName" type="java.lang.String"/>
  19668. <param name="sessionId" type="java.lang.String"/>
  19669. <param name="recordName" type="java.lang.String"/>
  19670. </method>
  19671. <method name="doUpdates"
  19672. abstract="false" native="false" synchronized="false"
  19673. static="false" final="false" visibility="public"
  19674. deprecated="not deprecated">
  19675. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  19676. <doc>
  19677. <![CDATA[This will be called periodically (with the period being configuration
  19678. dependent).]]>
  19679. </doc>
  19680. </method>
  19681. <doc>
  19682. <![CDATA[Singleton class which reports Java Virtual Machine metrics to the metrics API.
  19683. Any application can create an instance of this class in order to emit
  19684. Java VM metrics.]]>
  19685. </doc>
  19686. </class>
  19687. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  19688. </package>
  19689. <package name="org.apache.hadoop.metrics.spi">
  19690. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  19691. <class name="AbstractMetricsContext" extends="java.lang.Object"
  19692. abstract="true"
  19693. static="false" final="false" visibility="public"
  19694. deprecated="not deprecated">
  19695. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  19696. <constructor name="AbstractMetricsContext"
  19697. static="false" final="false" visibility="protected"
  19698. deprecated="not deprecated">
  19699. <doc>
  19700. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  19701. </doc>
  19702. </constructor>
  19703. <method name="init"
  19704. abstract="false" native="false" synchronized="false"
  19705. static="false" final="false" visibility="public"
  19706. deprecated="not deprecated">
  19707. <param name="contextName" type="java.lang.String"/>
  19708. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  19709. <doc>
  19710. <![CDATA[Initializes the context.]]>
  19711. </doc>
  19712. </method>
  19713. <method name="getAttribute" return="java.lang.String"
  19714. abstract="false" native="false" synchronized="false"
  19715. static="false" final="false" visibility="protected"
  19716. deprecated="not deprecated">
  19717. <param name="attributeName" type="java.lang.String"/>
  19718. <doc>
  19719. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  19720. </doc>
  19721. </method>
  19722. <method name="getAttributeTable" return="java.util.Map"
  19723. abstract="false" native="false" synchronized="false"
  19724. static="false" final="false" visibility="protected"
  19725. deprecated="not deprecated">
  19726. <param name="tableName" type="java.lang.String"/>
  19727. <doc>
  19728. <![CDATA[Returns an attribute-value map derived from the factory attributes
  19729. by finding all factory attributes that begin with
  19730. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  19731. those attributes with the contextName and tableName stripped off.]]>
  19732. </doc>
  19733. </method>
  19734. <method name="getContextName" return="java.lang.String"
  19735. abstract="false" native="false" synchronized="false"
  19736. static="false" final="false" visibility="public"
  19737. deprecated="not deprecated">
  19738. <doc>
  19739. <![CDATA[Returns the context name.]]>
  19740. </doc>
  19741. </method>
  19742. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  19743. abstract="false" native="false" synchronized="false"
  19744. static="false" final="false" visibility="public"
  19745. deprecated="not deprecated">
  19746. <doc>
  19747. <![CDATA[Returns the factory by which this context was created.]]>
  19748. </doc>
  19749. </method>
  19750. <method name="startMonitoring"
  19751. abstract="false" native="false" synchronized="true"
  19752. static="false" final="false" visibility="public"
  19753. deprecated="not deprecated">
  19754. <exception name="IOException" type="java.io.IOException"/>
  19755. <doc>
  19756. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  19757. </doc>
  19758. </method>
  19759. <method name="stopMonitoring"
  19760. abstract="false" native="false" synchronized="true"
  19761. static="false" final="false" visibility="public"
  19762. deprecated="not deprecated">
  19763. <doc>
  19764. <![CDATA[Stops monitoring. This does not free buffered data.
  19765. @see #close()]]>
  19766. </doc>
  19767. </method>
  19768. <method name="isMonitoring" return="boolean"
  19769. abstract="false" native="false" synchronized="false"
  19770. static="false" final="false" visibility="public"
  19771. deprecated="not deprecated">
  19772. <doc>
  19773. <![CDATA[Returns true if monitoring is currently in progress.]]>
  19774. </doc>
  19775. </method>
  19776. <method name="close"
  19777. abstract="false" native="false" synchronized="true"
  19778. static="false" final="false" visibility="public"
  19779. deprecated="not deprecated">
  19780. <doc>
  19781. <![CDATA[Stops monitoring and frees buffered data, returning this
  19782. object to its initial state.]]>
  19783. </doc>
  19784. </method>
  19785. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  19786. abstract="false" native="false" synchronized="true"
  19787. static="false" final="true" visibility="public"
  19788. deprecated="not deprecated">
  19789. <param name="recordName" type="java.lang.String"/>
  19790. <doc>
  19791. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  19792. Throws an exception if the metrics implementation is configured with a fixed
  19793. set of record names and <code>recordName</code> is not in that set.
  19794. @param recordName the name of the record
  19795. @throws MetricsException if recordName conflicts with configuration data]]>
  19796. </doc>
  19797. </method>
  19798. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  19799. abstract="false" native="false" synchronized="false"
  19800. static="false" final="false" visibility="protected"
  19801. deprecated="not deprecated">
  19802. <param name="recordName" type="java.lang.String"/>
  19803. <doc>
  19804. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  19805. @param recordName the name of the record
  19806. @return newly created instance of MetricsRecordImpl or subclass]]>
  19807. </doc>
  19808. </method>
  19809. <method name="registerUpdater"
  19810. abstract="false" native="false" synchronized="true"
  19811. static="false" final="false" visibility="public"
  19812. deprecated="not deprecated">
  19813. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  19814. <doc>
  19815. <![CDATA[Registers a callback to be called at time intervals determined by
  19816. the configuration.
  19817. @param updater object to be run periodically; it should update
  19818. some metrics records]]>
  19819. </doc>
  19820. </method>
  19821. <method name="unregisterUpdater"
  19822. abstract="false" native="false" synchronized="true"
  19823. static="false" final="false" visibility="public"
  19824. deprecated="not deprecated">
  19825. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  19826. <doc>
  19827. <![CDATA[Removes a callback, if it exists.
  19828. @param updater object to be removed from the callback list]]>
  19829. </doc>
  19830. </method>
  19831. <method name="emitRecord"
  19832. abstract="true" native="false" synchronized="false"
  19833. static="false" final="false" visibility="protected"
  19834. deprecated="not deprecated">
  19835. <param name="contextName" type="java.lang.String"/>
  19836. <param name="recordName" type="java.lang.String"/>
  19837. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  19838. <exception name="IOException" type="java.io.IOException"/>
  19839. <doc>
  19840. <![CDATA[Sends a record to the metrics system.]]>
  19841. </doc>
  19842. </method>
  19843. <method name="flush"
  19844. abstract="false" native="false" synchronized="false"
  19845. static="false" final="false" visibility="protected"
  19846. deprecated="not deprecated">
  19847. <exception name="IOException" type="java.io.IOException"/>
  19848. <doc>
  19849. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  19850. Subclasses may override it in order to perform some kind of flush.]]>
  19851. </doc>
  19852. </method>
  19853. <method name="update"
  19854. abstract="false" native="false" synchronized="false"
  19855. static="false" final="false" visibility="protected"
  19856. deprecated="not deprecated">
  19857. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  19858. <doc>
  19859. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  19860. the internal table of metric data.]]>
  19861. </doc>
  19862. </method>
  19863. <method name="remove"
  19864. abstract="false" native="false" synchronized="false"
  19865. static="false" final="false" visibility="protected"
  19866. deprecated="not deprecated">
  19867. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  19868. <doc>
  19869. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  19870. the internal table of metric data. A row matches if it has the same
  19871. tag names and values as record, but it may also have additional
  19872. tags.]]>
  19873. </doc>
  19874. </method>
  19875. <method name="getPeriod" return="int"
  19876. abstract="false" native="false" synchronized="false"
  19877. static="false" final="false" visibility="public"
  19878. deprecated="not deprecated">
  19879. <doc>
  19880. <![CDATA[Returns the timer period.]]>
  19881. </doc>
  19882. </method>
  19883. <method name="setPeriod"
  19884. abstract="false" native="false" synchronized="false"
  19885. static="false" final="false" visibility="protected"
  19886. deprecated="not deprecated">
  19887. <param name="period" type="int"/>
  19888. <doc>
  19889. <![CDATA[Sets the timer period]]>
  19890. </doc>
  19891. </method>
  19892. <doc>
  19893. <![CDATA[The main class of the Service Provider Interface. This class should be
  19894. extended in order to integrate the Metrics API with a specific metrics
  19895. client library. <p/>
  19896. This class implements the internal table of metric data, and the timer
  19897. on which data is to be sent to the metrics system. Subclasses must
  19898. override the abstract <code>emitRecord</code> method in order to transmit
  19899. the data. <p/>]]>
  19900. </doc>
  19901. </class>
  19902. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  19903. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  19904. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  19905. abstract="false"
  19906. static="false" final="false" visibility="public"
  19907. deprecated="not deprecated">
  19908. <constructor name="CompositeContext"
  19909. static="false" final="false" visibility="public"
  19910. deprecated="not deprecated">
  19911. </constructor>
  19912. <method name="init"
  19913. abstract="false" native="false" synchronized="false"
  19914. static="false" final="false" visibility="public"
  19915. deprecated="not deprecated">
  19916. <param name="contextName" type="java.lang.String"/>
  19917. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  19918. </method>
  19919. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  19920. abstract="false" native="false" synchronized="false"
  19921. static="false" final="false" visibility="public"
  19922. deprecated="not deprecated">
  19923. <param name="recordName" type="java.lang.String"/>
  19924. </method>
  19925. <method name="emitRecord"
  19926. abstract="false" native="false" synchronized="false"
  19927. static="false" final="false" visibility="protected"
  19928. deprecated="not deprecated">
  19929. <param name="contextName" type="java.lang.String"/>
  19930. <param name="recordName" type="java.lang.String"/>
  19931. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  19932. <exception name="IOException" type="java.io.IOException"/>
  19933. </method>
  19934. <method name="flush"
  19935. abstract="false" native="false" synchronized="false"
  19936. static="false" final="false" visibility="protected"
  19937. deprecated="not deprecated">
  19938. <exception name="IOException" type="java.io.IOException"/>
  19939. </method>
  19940. <method name="startMonitoring"
  19941. abstract="false" native="false" synchronized="false"
  19942. static="false" final="false" visibility="public"
  19943. deprecated="not deprecated">
  19944. <exception name="IOException" type="java.io.IOException"/>
  19945. </method>
  19946. <method name="stopMonitoring"
  19947. abstract="false" native="false" synchronized="false"
  19948. static="false" final="false" visibility="public"
  19949. deprecated="not deprecated">
  19950. </method>
  19951. <method name="isMonitoring" return="boolean"
  19952. abstract="false" native="false" synchronized="false"
  19953. static="false" final="false" visibility="public"
  19954. deprecated="not deprecated">
  19955. <doc>
  19956. <![CDATA[Return true if all subcontexts are monitoring.]]>
  19957. </doc>
  19958. </method>
  19959. <method name="close"
  19960. abstract="false" native="false" synchronized="false"
  19961. static="false" final="false" visibility="public"
  19962. deprecated="not deprecated">
  19963. </method>
  19964. <method name="registerUpdater"
  19965. abstract="false" native="false" synchronized="false"
  19966. static="false" final="false" visibility="public"
  19967. deprecated="not deprecated">
  19968. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  19969. </method>
  19970. <method name="unregisterUpdater"
  19971. abstract="false" native="false" synchronized="false"
  19972. static="false" final="false" visibility="public"
  19973. deprecated="not deprecated">
  19974. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  19975. </method>
  19976. </class>
  19977. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  19978. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  19979. <class name="MetricsRecordImpl" extends="java.lang.Object"
  19980. abstract="false"
  19981. static="false" final="false" visibility="public"
  19982. deprecated="not deprecated">
  19983. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  19984. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  19985. static="false" final="false" visibility="protected"
  19986. deprecated="not deprecated">
  19987. <doc>
  19988. <![CDATA[Creates a new instance of FileRecord]]>
  19989. </doc>
  19990. </constructor>
  19991. <method name="getRecordName" return="java.lang.String"
  19992. abstract="false" native="false" synchronized="false"
  19993. static="false" final="false" visibility="public"
  19994. deprecated="not deprecated">
  19995. <doc>
  19996. <![CDATA[Returns the record name.
  19997. @return the record name]]>
  19998. </doc>
  19999. </method>
  20000. <method name="setTag"
  20001. abstract="false" native="false" synchronized="false"
  20002. static="false" final="false" visibility="public"
  20003. deprecated="not deprecated">
  20004. <param name="tagName" type="java.lang.String"/>
  20005. <param name="tagValue" type="java.lang.String"/>
  20006. <doc>
  20007. <![CDATA[Sets the named tag to the specified value.
  20008. @param tagName name of the tag
  20009. @param tagValue new value of the tag
  20010. @throws MetricsException if the tagName conflicts with the configuration]]>
  20011. </doc>
  20012. </method>
  20013. <method name="setTag"
  20014. abstract="false" native="false" synchronized="false"
  20015. static="false" final="false" visibility="public"
  20016. deprecated="not deprecated">
  20017. <param name="tagName" type="java.lang.String"/>
  20018. <param name="tagValue" type="int"/>
  20019. <doc>
  20020. <![CDATA[Sets the named tag to the specified value.
  20021. @param tagName name of the tag
  20022. @param tagValue new value of the tag
  20023. @throws MetricsException if the tagName conflicts with the configuration]]>
  20024. </doc>
  20025. </method>
  20026. <method name="setTag"
  20027. abstract="false" native="false" synchronized="false"
  20028. static="false" final="false" visibility="public"
  20029. deprecated="not deprecated">
  20030. <param name="tagName" type="java.lang.String"/>
  20031. <param name="tagValue" type="long"/>
  20032. <doc>
  20033. <![CDATA[Sets the named tag to the specified value.
  20034. @param tagName name of the tag
  20035. @param tagValue new value of the tag
  20036. @throws MetricsException if the tagName conflicts with the configuration]]>
  20037. </doc>
  20038. </method>
  20039. <method name="setTag"
  20040. abstract="false" native="false" synchronized="false"
  20041. static="false" final="false" visibility="public"
  20042. deprecated="not deprecated">
  20043. <param name="tagName" type="java.lang.String"/>
  20044. <param name="tagValue" type="short"/>
  20045. <doc>
  20046. <![CDATA[Sets the named tag to the specified value.
  20047. @param tagName name of the tag
  20048. @param tagValue new value of the tag
  20049. @throws MetricsException if the tagName conflicts with the configuration]]>
  20050. </doc>
  20051. </method>
  20052. <method name="setTag"
  20053. abstract="false" native="false" synchronized="false"
  20054. static="false" final="false" visibility="public"
  20055. deprecated="not deprecated">
  20056. <param name="tagName" type="java.lang.String"/>
  20057. <param name="tagValue" type="byte"/>
  20058. <doc>
  20059. <![CDATA[Sets the named tag to the specified value.
  20060. @param tagName name of the tag
  20061. @param tagValue new value of the tag
  20062. @throws MetricsException if the tagName conflicts with the configuration]]>
  20063. </doc>
  20064. </method>
  20065. <method name="removeTag"
  20066. abstract="false" native="false" synchronized="false"
  20067. static="false" final="false" visibility="public"
  20068. deprecated="not deprecated">
  20069. <param name="tagName" type="java.lang.String"/>
  20070. <doc>
  20071. <![CDATA[Removes any tag of the specified name.]]>
  20072. </doc>
  20073. </method>
  20074. <method name="setMetric"
  20075. abstract="false" native="false" synchronized="false"
  20076. static="false" final="false" visibility="public"
  20077. deprecated="not deprecated">
  20078. <param name="metricName" type="java.lang.String"/>
  20079. <param name="metricValue" type="int"/>
  20080. <doc>
  20081. <![CDATA[Sets the named metric to the specified value.
  20082. @param metricName name of the metric
  20083. @param metricValue new value of the metric
  20084. @throws MetricsException if the metricName or the type of the metricValue
  20085. conflicts with the configuration]]>
  20086. </doc>
  20087. </method>
  20088. <method name="setMetric"
  20089. abstract="false" native="false" synchronized="false"
  20090. static="false" final="false" visibility="public"
  20091. deprecated="not deprecated">
  20092. <param name="metricName" type="java.lang.String"/>
  20093. <param name="metricValue" type="long"/>
  20094. <doc>
  20095. <![CDATA[Sets the named metric to the specified value.
  20096. @param metricName name of the metric
  20097. @param metricValue new value of the metric
  20098. @throws MetricsException if the metricName or the type of the metricValue
  20099. conflicts with the configuration]]>
  20100. </doc>
  20101. </method>
  20102. <method name="setMetric"
  20103. abstract="false" native="false" synchronized="false"
  20104. static="false" final="false" visibility="public"
  20105. deprecated="not deprecated">
  20106. <param name="metricName" type="java.lang.String"/>
  20107. <param name="metricValue" type="short"/>
  20108. <doc>
  20109. <![CDATA[Sets the named metric to the specified value.
  20110. @param metricName name of the metric
  20111. @param metricValue new value of the metric
  20112. @throws MetricsException if the metricName or the type of the metricValue
  20113. conflicts with the configuration]]>
  20114. </doc>
  20115. </method>
  20116. <method name="setMetric"
  20117. abstract="false" native="false" synchronized="false"
  20118. static="false" final="false" visibility="public"
  20119. deprecated="not deprecated">
  20120. <param name="metricName" type="java.lang.String"/>
  20121. <param name="metricValue" type="byte"/>
  20122. <doc>
  20123. <![CDATA[Sets the named metric to the specified value.
  20124. @param metricName name of the metric
  20125. @param metricValue new value of the metric
  20126. @throws MetricsException if the metricName or the type of the metricValue
  20127. conflicts with the configuration]]>
  20128. </doc>
  20129. </method>
  20130. <method name="setMetric"
  20131. abstract="false" native="false" synchronized="false"
  20132. static="false" final="false" visibility="public"
  20133. deprecated="not deprecated">
  20134. <param name="metricName" type="java.lang.String"/>
  20135. <param name="metricValue" type="float"/>
  20136. <doc>
  20137. <![CDATA[Sets the named metric to the specified value.
  20138. @param metricName name of the metric
  20139. @param metricValue new value of the metric
  20140. @throws MetricsException if the metricName or the type of the metricValue
  20141. conflicts with the configuration]]>
  20142. </doc>
  20143. </method>
  20144. <method name="incrMetric"
  20145. abstract="false" native="false" synchronized="false"
  20146. static="false" final="false" visibility="public"
  20147. deprecated="not deprecated">
  20148. <param name="metricName" type="java.lang.String"/>
  20149. <param name="metricValue" type="int"/>
  20150. <doc>
  20151. <![CDATA[Increments the named metric by the specified value.
  20152. @param metricName name of the metric
  20153. @param metricValue incremental value
  20154. @throws MetricsException if the metricName or the type of the metricValue
  20155. conflicts with the configuration]]>
  20156. </doc>
  20157. </method>
  20158. <method name="incrMetric"
  20159. abstract="false" native="false" synchronized="false"
  20160. static="false" final="false" visibility="public"
  20161. deprecated="not deprecated">
  20162. <param name="metricName" type="java.lang.String"/>
  20163. <param name="metricValue" type="long"/>
  20164. <doc>
  20165. <![CDATA[Increments the named metric by the specified value.
  20166. @param metricName name of the metric
  20167. @param metricValue incremental value
  20168. @throws MetricsException if the metricName or the type of the metricValue
  20169. conflicts with the configuration]]>
  20170. </doc>
  20171. </method>
  20172. <method name="incrMetric"
  20173. abstract="false" native="false" synchronized="false"
  20174. static="false" final="false" visibility="public"
  20175. deprecated="not deprecated">
  20176. <param name="metricName" type="java.lang.String"/>
  20177. <param name="metricValue" type="short"/>
  20178. <doc>
  20179. <![CDATA[Increments the named metric by the specified value.
  20180. @param metricName name of the metric
  20181. @param metricValue incremental value
  20182. @throws MetricsException if the metricName or the type of the metricValue
  20183. conflicts with the configuration]]>
  20184. </doc>
  20185. </method>
  20186. <method name="incrMetric"
  20187. abstract="false" native="false" synchronized="false"
  20188. static="false" final="false" visibility="public"
  20189. deprecated="not deprecated">
  20190. <param name="metricName" type="java.lang.String"/>
  20191. <param name="metricValue" type="byte"/>
  20192. <doc>
  20193. <![CDATA[Increments the named metric by the specified value.
  20194. @param metricName name of the metric
  20195. @param metricValue incremental value
  20196. @throws MetricsException if the metricName or the type of the metricValue
  20197. conflicts with the configuration]]>
  20198. </doc>
  20199. </method>
  20200. <method name="incrMetric"
  20201. abstract="false" native="false" synchronized="false"
  20202. static="false" final="false" visibility="public"
  20203. deprecated="not deprecated">
  20204. <param name="metricName" type="java.lang.String"/>
  20205. <param name="metricValue" type="float"/>
  20206. <doc>
  20207. <![CDATA[Increments the named metric by the specified value.
  20208. @param metricName name of the metric
  20209. @param metricValue incremental value
  20210. @throws MetricsException if the metricName or the type of the metricValue
  20211. conflicts with the configuration]]>
  20212. </doc>
  20213. </method>
  20214. <method name="update"
  20215. abstract="false" native="false" synchronized="false"
  20216. static="false" final="false" visibility="public"
  20217. deprecated="not deprecated">
  20218. <doc>
  20219. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  20220. If the tag values match an existing row, that row is updated;
  20221. otherwise, a new row is added.]]>
  20222. </doc>
  20223. </method>
  20224. <method name="remove"
  20225. abstract="false" native="false" synchronized="false"
  20226. static="false" final="false" visibility="public"
  20227. deprecated="not deprecated">
  20228. <doc>
  20229. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  20230. that equal the tags that have been set on this record.]]>
  20231. </doc>
  20232. </method>
  20233. <doc>
  20234. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  20235. from which it was created, and delegates back to it on <code>update</code>
  20236. and <code>remove()</code>.]]>
  20237. </doc>
  20238. </class>
  20239. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  20240. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  20241. <class name="MetricValue" extends="java.lang.Object"
  20242. abstract="false"
  20243. static="false" final="false" visibility="public"
  20244. deprecated="not deprecated">
  20245. <constructor name="MetricValue" type="java.lang.Number, boolean"
  20246. static="false" final="false" visibility="public"
  20247. deprecated="not deprecated">
  20248. <doc>
  20249. <![CDATA[Creates a new instance of MetricValue]]>
  20250. </doc>
  20251. </constructor>
  20252. <method name="isIncrement" return="boolean"
  20253. abstract="false" native="false" synchronized="false"
  20254. static="false" final="false" visibility="public"
  20255. deprecated="not deprecated">
  20256. </method>
  20257. <method name="isAbsolute" return="boolean"
  20258. abstract="false" native="false" synchronized="false"
  20259. static="false" final="false" visibility="public"
  20260. deprecated="not deprecated">
  20261. </method>
  20262. <method name="getNumber" return="java.lang.Number"
  20263. abstract="false" native="false" synchronized="false"
  20264. static="false" final="false" visibility="public"
  20265. deprecated="not deprecated">
  20266. </method>
  20267. <field name="ABSOLUTE" type="boolean"
  20268. transient="false" volatile="false"
  20269. static="true" final="true" visibility="public"
  20270. deprecated="not deprecated">
  20271. </field>
  20272. <field name="INCREMENT" type="boolean"
  20273. transient="false" volatile="false"
  20274. static="true" final="true" visibility="public"
  20275. deprecated="not deprecated">
  20276. </field>
  20277. <doc>
  20278. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  20279. </doc>
  20280. </class>
  20281. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  20282. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  20283. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  20284. abstract="false"
  20285. static="false" final="false" visibility="public"
  20286. deprecated="not deprecated">
  20287. <constructor name="NullContext"
  20288. static="false" final="false" visibility="public"
  20289. deprecated="not deprecated">
  20290. <doc>
  20291. <![CDATA[Creates a new instance of NullContext]]>
  20292. </doc>
  20293. </constructor>
  20294. <method name="startMonitoring"
  20295. abstract="false" native="false" synchronized="false"
  20296. static="false" final="false" visibility="public"
  20297. deprecated="not deprecated">
  20298. <doc>
  20299. <![CDATA[Do-nothing version of startMonitoring]]>
  20300. </doc>
  20301. </method>
  20302. <method name="emitRecord"
  20303. abstract="false" native="false" synchronized="false"
  20304. static="false" final="false" visibility="protected"
  20305. deprecated="not deprecated">
  20306. <param name="contextName" type="java.lang.String"/>
  20307. <param name="recordName" type="java.lang.String"/>
  20308. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  20309. <doc>
  20310. <![CDATA[Do-nothing version of emitRecord]]>
  20311. </doc>
  20312. </method>
  20313. <method name="update"
  20314. abstract="false" native="false" synchronized="false"
  20315. static="false" final="false" visibility="protected"
  20316. deprecated="not deprecated">
  20317. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  20318. <doc>
  20319. <![CDATA[Do-nothing version of update]]>
  20320. </doc>
  20321. </method>
  20322. <method name="remove"
  20323. abstract="false" native="false" synchronized="false"
  20324. static="false" final="false" visibility="protected"
  20325. deprecated="not deprecated">
  20326. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  20327. <doc>
  20328. <![CDATA[Do-nothing version of remove]]>
  20329. </doc>
  20330. </method>
  20331. <doc>
  20332. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  20333. default context, so that no performance data is emitted if no configuration
  20334. data is found.]]>
  20335. </doc>
  20336. </class>
  20337. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  20338. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  20339. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  20340. abstract="false"
  20341. static="false" final="false" visibility="public"
  20342. deprecated="not deprecated">
  20343. <constructor name="NullContextWithUpdateThread"
  20344. static="false" final="false" visibility="public"
  20345. deprecated="not deprecated">
  20346. <doc>
  20347. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  20348. </doc>
  20349. </constructor>
  20350. <method name="init"
  20351. abstract="false" native="false" synchronized="false"
  20352. static="false" final="false" visibility="public"
  20353. deprecated="not deprecated">
  20354. <param name="contextName" type="java.lang.String"/>
  20355. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  20356. </method>
  20357. <method name="emitRecord"
  20358. abstract="false" native="false" synchronized="false"
  20359. static="false" final="false" visibility="protected"
  20360. deprecated="not deprecated">
  20361. <param name="contextName" type="java.lang.String"/>
  20362. <param name="recordName" type="java.lang.String"/>
  20363. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  20364. <doc>
  20365. <![CDATA[Do-nothing version of emitRecord]]>
  20366. </doc>
  20367. </method>
  20368. <method name="update"
  20369. abstract="false" native="false" synchronized="false"
  20370. static="false" final="false" visibility="protected"
  20371. deprecated="not deprecated">
  20372. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  20373. <doc>
  20374. <![CDATA[Do-nothing version of update]]>
  20375. </doc>
  20376. </method>
  20377. <method name="remove"
  20378. abstract="false" native="false" synchronized="false"
  20379. static="false" final="false" visibility="protected"
  20380. deprecated="not deprecated">
  20381. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  20382. <doc>
  20383. <![CDATA[Do-nothing version of remove]]>
  20384. </doc>
  20385. </method>
  20386. <doc>
  20387. <![CDATA[A null context which has a thread calling
  20388. periodically when monitoring is started. This keeps the data sampled
  20389. correctly.
  20390. In all other respects, this is like the NULL context: No data is emitted.
  20391. This is suitable for Monitoring systems like JMX which reads the metrics
  20392. when someone reads the data from JMX.
  20393. The default impl of start and stop monitoring:
  20394. is the AbstractMetricsContext is good enough.]]>
  20395. </doc>
  20396. </class>
  20397. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  20398. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  20399. <class name="OutputRecord" extends="java.lang.Object"
  20400. abstract="false"
  20401. static="false" final="false" visibility="public"
  20402. deprecated="not deprecated">
  20403. <method name="getTagNames" return="java.util.Set"
  20404. abstract="false" native="false" synchronized="false"
  20405. static="false" final="false" visibility="public"
  20406. deprecated="not deprecated">
  20407. <doc>
  20408. <![CDATA[Returns the set of tag names]]>
  20409. </doc>
  20410. </method>
  20411. <method name="getTag" return="java.lang.Object"
  20412. abstract="false" native="false" synchronized="false"
  20413. static="false" final="false" visibility="public"
  20414. deprecated="not deprecated">
  20415. <param name="name" type="java.lang.String"/>
  20416. <doc>
  20417. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  20418. @return the tag value, or null if there is no such tag]]>
  20419. </doc>
  20420. </method>
  20421. <method name="getMetricNames" return="java.util.Set"
  20422. abstract="false" native="false" synchronized="false"
  20423. static="false" final="false" visibility="public"
  20424. deprecated="not deprecated">
  20425. <doc>
  20426. <![CDATA[Returns the set of metric names.]]>
  20427. </doc>
  20428. </method>
  20429. <method name="getMetric" return="java.lang.Number"
  20430. abstract="false" native="false" synchronized="false"
  20431. static="false" final="false" visibility="public"
  20432. deprecated="not deprecated">
  20433. <param name="name" type="java.lang.String"/>
  20434. <doc>
  20435. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  20436. </doc>
  20437. </method>
  20438. <doc>
  20439. <![CDATA[Represents a record of metric data to be sent to a metrics system.]]>
  20440. </doc>
  20441. </class>
  20442. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  20443. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  20444. <class name="Util" extends="java.lang.Object"
  20445. abstract="false"
  20446. static="false" final="false" visibility="public"
  20447. deprecated="not deprecated">
  20448. <method name="parse" return="java.util.List"
  20449. abstract="false" native="false" synchronized="false"
  20450. static="true" final="false" visibility="public"
  20451. deprecated="not deprecated">
  20452. <param name="specs" type="java.lang.String"/>
  20453. <param name="defaultPort" type="int"/>
  20454. <doc>
  20455. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  20456. of the form <i>hostname</i> or <i>hostname:port</i>. If
  20457. the specs string is null, defaults to localhost:defaultPort.
  20458. @return a list of InetSocketAddress objects.]]>
  20459. </doc>
  20460. </method>
  20461. <doc>
  20462. <![CDATA[Static utility methods]]>
  20463. </doc>
  20464. </class>
  20465. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  20466. </package>
  20467. <package name="org.apache.hadoop.metrics.util">
  20468. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  20469. <class name="MBeanUtil" extends="java.lang.Object"
  20470. abstract="false"
  20471. static="false" final="false" visibility="public"
  20472. deprecated="not deprecated">
  20473. <constructor name="MBeanUtil"
  20474. static="false" final="false" visibility="public"
  20475. deprecated="not deprecated">
  20476. </constructor>
  20477. <method name="registerMBean" return="javax.management.ObjectName"
  20478. abstract="false" native="false" synchronized="false"
  20479. static="true" final="false" visibility="public"
  20480. deprecated="not deprecated">
  20481. <param name="serviceName" type="java.lang.String"/>
  20482. <param name="nameName" type="java.lang.String"/>
  20483. <param name="theMbean" type="java.lang.Object"/>
  20484. <doc>
  20485. <![CDATA[Register the MBean using our standard MBeanName format
  20486. "hadoop:service=<serviceName>,name=<nameName>"
  20487. Where the <serviceName> and <nameName> are the supplied parameters
  20488. @param serviceName
  20489. @param nameName
  20490. @param theMbean - the MBean to register
  20491. @return the named used to register the MBean]]>
  20492. </doc>
  20493. </method>
  20494. <method name="unregisterMBean"
  20495. abstract="false" native="false" synchronized="false"
  20496. static="true" final="false" visibility="public"
  20497. deprecated="not deprecated">
  20498. <param name="mbeanName" type="javax.management.ObjectName"/>
  20499. </method>
  20500. <doc>
  20501. <![CDATA[This util class provides a method to register an MBean using
  20502. our standard naming convention as described in the doc
  20503. for {link {@link #registerMBean(String, String, Object)}]]>
  20504. </doc>
  20505. </class>
  20506. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  20507. <!-- start class org.apache.hadoop.metrics.util.MetricsBase -->
  20508. <class name="MetricsBase" extends="java.lang.Object"
  20509. abstract="true"
  20510. static="false" final="false" visibility="public"
  20511. deprecated="not deprecated">
  20512. <constructor name="MetricsBase" type="java.lang.String"
  20513. static="false" final="false" visibility="protected"
  20514. deprecated="not deprecated">
  20515. </constructor>
  20516. <constructor name="MetricsBase" type="java.lang.String, java.lang.String"
  20517. static="false" final="false" visibility="protected"
  20518. deprecated="not deprecated">
  20519. </constructor>
  20520. <method name="pushMetric"
  20521. abstract="true" native="false" synchronized="false"
  20522. static="false" final="false" visibility="public"
  20523. deprecated="not deprecated">
  20524. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  20525. </method>
  20526. <method name="getName" return="java.lang.String"
  20527. abstract="false" native="false" synchronized="false"
  20528. static="false" final="false" visibility="public"
  20529. deprecated="not deprecated">
  20530. </method>
  20531. <method name="getDescription" return="java.lang.String"
  20532. abstract="false" native="false" synchronized="false"
  20533. static="false" final="false" visibility="public"
  20534. deprecated="not deprecated">
  20535. </method>
  20536. <field name="NO_DESCRIPTION" type="java.lang.String"
  20537. transient="false" volatile="false"
  20538. static="true" final="true" visibility="public"
  20539. deprecated="not deprecated">
  20540. </field>
  20541. <doc>
  20542. <![CDATA[This is base class for all metrics]]>
  20543. </doc>
  20544. </class>
  20545. <!-- end class org.apache.hadoop.metrics.util.MetricsBase -->
  20546. <!-- start class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  20547. <class name="MetricsDynamicMBeanBase" extends="java.lang.Object"
  20548. abstract="true"
  20549. static="false" final="false" visibility="public"
  20550. deprecated="not deprecated">
  20551. <implements name="javax.management.DynamicMBean"/>
  20552. <constructor name="MetricsDynamicMBeanBase" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  20553. static="false" final="false" visibility="protected"
  20554. deprecated="not deprecated">
  20555. </constructor>
  20556. <method name="getAttribute" return="java.lang.Object"
  20557. abstract="false" native="false" synchronized="false"
  20558. static="false" final="false" visibility="public"
  20559. deprecated="not deprecated">
  20560. <param name="attributeName" type="java.lang.String"/>
  20561. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  20562. <exception name="MBeanException" type="javax.management.MBeanException"/>
  20563. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  20564. </method>
  20565. <method name="getAttributes" return="javax.management.AttributeList"
  20566. abstract="false" native="false" synchronized="false"
  20567. static="false" final="false" visibility="public"
  20568. deprecated="not deprecated">
  20569. <param name="attributeNames" type="java.lang.String[]"/>
  20570. </method>
  20571. <method name="getMBeanInfo" return="javax.management.MBeanInfo"
  20572. abstract="false" native="false" synchronized="false"
  20573. static="false" final="false" visibility="public"
  20574. deprecated="not deprecated">
  20575. </method>
  20576. <method name="invoke" return="java.lang.Object"
  20577. abstract="false" native="false" synchronized="false"
  20578. static="false" final="false" visibility="public"
  20579. deprecated="not deprecated">
  20580. <param name="actionName" type="java.lang.String"/>
  20581. <param name="parms" type="java.lang.Object[]"/>
  20582. <param name="signature" type="java.lang.String[]"/>
  20583. <exception name="MBeanException" type="javax.management.MBeanException"/>
  20584. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  20585. </method>
  20586. <method name="setAttribute"
  20587. abstract="false" native="false" synchronized="false"
  20588. static="false" final="false" visibility="public"
  20589. deprecated="not deprecated">
  20590. <param name="attribute" type="javax.management.Attribute"/>
  20591. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  20592. <exception name="InvalidAttributeValueException" type="javax.management.InvalidAttributeValueException"/>
  20593. <exception name="MBeanException" type="javax.management.MBeanException"/>
  20594. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  20595. </method>
  20596. <method name="setAttributes" return="javax.management.AttributeList"
  20597. abstract="false" native="false" synchronized="false"
  20598. static="false" final="false" visibility="public"
  20599. deprecated="not deprecated">
  20600. <param name="attributes" type="javax.management.AttributeList"/>
  20601. </method>
  20602. <doc>
  20603. <![CDATA[This abstract base class facilitates creating dynamic mbeans automatically from
  20604. metrics.
  20605. The metrics constructors registers metrics in a registry.
  20606. Different categories of metrics should be in differnt classes with their own
  20607. registry (as in NameNodeMetrics and DataNodeMetrics).
  20608. Then the MBean can be created passing the registry to the constructor.
  20609. The MBean should be then registered using a mbean name (example):
  20610. MetricsHolder myMetrics = new MetricsHolder(); // has metrics and registry
  20611. MetricsTestMBean theMBean = new MetricsTestMBean(myMetrics.mregistry);
  20612. ObjectName mbeanName = MBeanUtil.registerMBean("ServiceFoo",
  20613. "TestStatistics", theMBean);]]>
  20614. </doc>
  20615. </class>
  20616. <!-- end class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  20617. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  20618. <class name="MetricsIntValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  20619. abstract="false"
  20620. static="false" final="false" visibility="public"
  20621. deprecated="not deprecated">
  20622. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  20623. static="false" final="false" visibility="public"
  20624. deprecated="not deprecated">
  20625. <doc>
  20626. <![CDATA[Constructor - create a new metric
  20627. @param nam the name of the metrics to be used to publish the metric
  20628. @param registry - where the metrics object will be registered]]>
  20629. </doc>
  20630. </constructor>
  20631. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  20632. static="false" final="false" visibility="public"
  20633. deprecated="not deprecated">
  20634. <doc>
  20635. <![CDATA[Constructor - create a new metric
  20636. @param nam the name of the metrics to be used to publish the metric
  20637. @param registry - where the metrics object will be registered
  20638. A description of {@link #NO_DESCRIPTION} is used]]>
  20639. </doc>
  20640. </constructor>
  20641. <method name="set"
  20642. abstract="false" native="false" synchronized="true"
  20643. static="false" final="false" visibility="public"
  20644. deprecated="not deprecated">
  20645. <param name="newValue" type="int"/>
  20646. <doc>
  20647. <![CDATA[Set the value
  20648. @param newValue]]>
  20649. </doc>
  20650. </method>
  20651. <method name="get" return="int"
  20652. abstract="false" native="false" synchronized="true"
  20653. static="false" final="false" visibility="public"
  20654. deprecated="not deprecated">
  20655. <doc>
  20656. <![CDATA[Get value
  20657. @return the value last set]]>
  20658. </doc>
  20659. </method>
  20660. <method name="pushMetric"
  20661. abstract="false" native="false" synchronized="true"
  20662. static="false" final="false" visibility="public"
  20663. deprecated="not deprecated">
  20664. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  20665. <doc>
  20666. <![CDATA[Push the metric to the mr.
  20667. The metric is pushed only if it was updated since last push
  20668. Note this does NOT push to JMX
  20669. (JMX gets the info via {@link #get()}
  20670. @param mr]]>
  20671. </doc>
  20672. </method>
  20673. <doc>
  20674. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  20675. but changes only when it is set.
  20676. Each time its value is set, it is published only *once* at the next update
  20677. call.]]>
  20678. </doc>
  20679. </class>
  20680. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  20681. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  20682. <class name="MetricsLongValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  20683. abstract="false"
  20684. static="false" final="false" visibility="public"
  20685. deprecated="not deprecated">
  20686. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  20687. static="false" final="false" visibility="public"
  20688. deprecated="not deprecated">
  20689. <doc>
  20690. <![CDATA[Constructor - create a new metric
  20691. @param nam the name of the metrics to be used to publish the metric
  20692. @param registry - where the metrics object will be registered]]>
  20693. </doc>
  20694. </constructor>
  20695. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  20696. static="false" final="false" visibility="public"
  20697. deprecated="not deprecated">
  20698. <doc>
  20699. <![CDATA[Constructor - create a new metric
  20700. @param nam the name of the metrics to be used to publish the metric
  20701. @param registry - where the metrics object will be registered
  20702. A description of {@link #NO_DESCRIPTION} is used]]>
  20703. </doc>
  20704. </constructor>
  20705. <method name="set"
  20706. abstract="false" native="false" synchronized="true"
  20707. static="false" final="false" visibility="public"
  20708. deprecated="not deprecated">
  20709. <param name="newValue" type="long"/>
  20710. <doc>
  20711. <![CDATA[Set the value
  20712. @param newValue]]>
  20713. </doc>
  20714. </method>
  20715. <method name="get" return="long"
  20716. abstract="false" native="false" synchronized="true"
  20717. static="false" final="false" visibility="public"
  20718. deprecated="not deprecated">
  20719. <doc>
  20720. <![CDATA[Get value
  20721. @return the value last set]]>
  20722. </doc>
  20723. </method>
  20724. <method name="pushMetric"
  20725. abstract="false" native="false" synchronized="true"
  20726. static="false" final="false" visibility="public"
  20727. deprecated="not deprecated">
  20728. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  20729. <doc>
  20730. <![CDATA[Push the metric to the mr.
  20731. The metric is pushed only if it was updated since last push
  20732. Note this does NOT push to JMX
  20733. (JMX gets the info via {@link #get()}
  20734. @param mr]]>
  20735. </doc>
  20736. </method>
  20737. <doc>
  20738. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  20739. but changes only when it is set.
  20740. Each time its value is set, it is published only *once* at the next update
  20741. call.]]>
  20742. </doc>
  20743. </class>
  20744. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  20745. <!-- start class org.apache.hadoop.metrics.util.MetricsRegistry -->
  20746. <class name="MetricsRegistry" extends="java.lang.Object"
  20747. abstract="false"
  20748. static="false" final="false" visibility="public"
  20749. deprecated="not deprecated">
  20750. <constructor name="MetricsRegistry"
  20751. static="false" final="false" visibility="public"
  20752. deprecated="not deprecated">
  20753. </constructor>
  20754. <method name="size" return="int"
  20755. abstract="false" native="false" synchronized="false"
  20756. static="false" final="false" visibility="public"
  20757. deprecated="not deprecated">
  20758. <doc>
  20759. <![CDATA[@return number of metrics in the registry]]>
  20760. </doc>
  20761. </method>
  20762. <method name="add"
  20763. abstract="false" native="false" synchronized="true"
  20764. static="false" final="false" visibility="public"
  20765. deprecated="not deprecated">
  20766. <param name="metricsName" type="java.lang.String"/>
  20767. <param name="theMetricsObj" type="org.apache.hadoop.metrics.util.MetricsBase"/>
  20768. <doc>
  20769. <![CDATA[Add a new metrics to the registry
  20770. @param metricsName - the name
  20771. @param theMetricsObj - the metrics
  20772. @throws IllegalArgumentException if a name is already registered]]>
  20773. </doc>
  20774. </method>
  20775. <method name="get" return="org.apache.hadoop.metrics.util.MetricsBase"
  20776. abstract="false" native="false" synchronized="true"
  20777. static="false" final="false" visibility="public"
  20778. deprecated="not deprecated">
  20779. <param name="metricsName" type="java.lang.String"/>
  20780. <doc>
  20781. <![CDATA[@param metricsName
  20782. @return the metrics if there is one registered by the supplied name.
  20783. Returns null if none is registered]]>
  20784. </doc>
  20785. </method>
  20786. <method name="getKeyList" return="java.util.Collection"
  20787. abstract="false" native="false" synchronized="true"
  20788. static="false" final="false" visibility="public"
  20789. deprecated="not deprecated">
  20790. <doc>
  20791. <![CDATA[@return the list of metrics names]]>
  20792. </doc>
  20793. </method>
  20794. <method name="getMetricsList" return="java.util.Collection"
  20795. abstract="false" native="false" synchronized="true"
  20796. static="false" final="false" visibility="public"
  20797. deprecated="not deprecated">
  20798. <doc>
  20799. <![CDATA[@return the list of metrics]]>
  20800. </doc>
  20801. </method>
  20802. <doc>
  20803. <![CDATA[This is the registry for metrics.
  20804. Related set of metrics should be declared in a holding class and registered
  20805. in a registry for those metrics which is also stored in the the holding class.]]>
  20806. </doc>
  20807. </class>
  20808. <!-- end class org.apache.hadoop.metrics.util.MetricsRegistry -->
  20809. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  20810. <class name="MetricsTimeVaryingInt" extends="org.apache.hadoop.metrics.util.MetricsBase"
  20811. abstract="false"
  20812. static="false" final="false" visibility="public"
  20813. deprecated="not deprecated">
  20814. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  20815. static="false" final="false" visibility="public"
  20816. deprecated="not deprecated">
  20817. <doc>
  20818. <![CDATA[Constructor - create a new metric
  20819. @param nam the name of the metrics to be used to publish the metric
  20820. @param registry - where the metrics object will be registered
  20821. @param description - the description]]>
  20822. </doc>
  20823. </constructor>
  20824. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  20825. static="false" final="false" visibility="public"
  20826. deprecated="not deprecated">
  20827. <doc>
  20828. <![CDATA[Constructor - create a new metric
  20829. @param nam the name of the metrics to be used to publish the metric
  20830. @param registry - where the metrics object will be registered
  20831. A description of {@link #NO_DESCRIPTION} is used]]>
  20832. </doc>
  20833. </constructor>
  20834. <method name="inc"
  20835. abstract="false" native="false" synchronized="true"
  20836. static="false" final="false" visibility="public"
  20837. deprecated="not deprecated">
  20838. <param name="incr" type="int"/>
  20839. <doc>
  20840. <![CDATA[Inc metrics for incr vlaue
  20841. @param incr - number of operations]]>
  20842. </doc>
  20843. </method>
  20844. <method name="inc"
  20845. abstract="false" native="false" synchronized="true"
  20846. static="false" final="false" visibility="public"
  20847. deprecated="not deprecated">
  20848. <doc>
  20849. <![CDATA[Inc metrics by one]]>
  20850. </doc>
  20851. </method>
  20852. <method name="pushMetric"
  20853. abstract="false" native="false" synchronized="true"
  20854. static="false" final="false" visibility="public"
  20855. deprecated="not deprecated">
  20856. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  20857. <doc>
  20858. <![CDATA[Push the delta metrics to the mr.
  20859. The delta is since the last push/interval.
  20860. Note this does NOT push to JMX
  20861. (JMX gets the info via {@link #previousIntervalValue}
  20862. @param mr]]>
  20863. </doc>
  20864. </method>
  20865. <method name="getPreviousIntervalValue" return="int"
  20866. abstract="false" native="false" synchronized="true"
  20867. static="false" final="false" visibility="public"
  20868. deprecated="not deprecated">
  20869. <doc>
  20870. <![CDATA[The Value at the Previous interval
  20871. @return prev interval value]]>
  20872. </doc>
  20873. </method>
  20874. <method name="getCurrentIntervalValue" return="int"
  20875. abstract="false" native="false" synchronized="true"
  20876. static="false" final="false" visibility="public"
  20877. deprecated="not deprecated">
  20878. <doc>
  20879. <![CDATA[The Value at the current interval
  20880. @return prev interval value]]>
  20881. </doc>
  20882. </method>
  20883. <doc>
  20884. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  20885. varies over time (e.g. number of files created). The metrics is accumulated
  20886. over an interval (set in the metrics config file); the metrics is
  20887. published at the end of each interval and then
  20888. reset to zero. Hence the counter has the value in the current interval.
  20889. Note if one wants a time associated with the metric then use
  20890. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate]]>
  20891. </doc>
  20892. </class>
  20893. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  20894. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  20895. <class name="MetricsTimeVaryingLong" extends="org.apache.hadoop.metrics.util.MetricsBase"
  20896. abstract="false"
  20897. static="false" final="false" visibility="public"
  20898. deprecated="not deprecated">
  20899. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  20900. static="false" final="false" visibility="public"
  20901. deprecated="not deprecated">
  20902. <doc>
  20903. <![CDATA[Constructor - create a new metric
  20904. @param nam the name of the metrics to be used to publish the metric
  20905. @param registry - where the metrics object will be registered]]>
  20906. </doc>
  20907. </constructor>
  20908. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  20909. static="false" final="false" visibility="public"
  20910. deprecated="not deprecated">
  20911. <doc>
  20912. <![CDATA[Constructor - create a new metric
  20913. @param nam the name of the metrics to be used to publish the metric
  20914. @param registry - where the metrics object will be registered
  20915. A description of {@link #NO_DESCRIPTION} is used]]>
  20916. </doc>
  20917. </constructor>
  20918. <method name="inc"
  20919. abstract="false" native="false" synchronized="true"
  20920. static="false" final="false" visibility="public"
  20921. deprecated="not deprecated">
  20922. <param name="incr" type="long"/>
  20923. <doc>
  20924. <![CDATA[Inc metrics for incr vlaue
  20925. @param incr - number of operations]]>
  20926. </doc>
  20927. </method>
  20928. <method name="inc"
  20929. abstract="false" native="false" synchronized="true"
  20930. static="false" final="false" visibility="public"
  20931. deprecated="not deprecated">
  20932. <doc>
  20933. <![CDATA[Inc metrics by one]]>
  20934. </doc>
  20935. </method>
  20936. <method name="pushMetric"
  20937. abstract="false" native="false" synchronized="true"
  20938. static="false" final="false" visibility="public"
  20939. deprecated="not deprecated">
  20940. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  20941. <doc>
  20942. <![CDATA[Push the delta metrics to the mr.
  20943. The delta is since the last push/interval.
  20944. Note this does NOT push to JMX
  20945. (JMX gets the info via {@link #previousIntervalValue}
  20946. @param mr]]>
  20947. </doc>
  20948. </method>
  20949. <method name="getPreviousIntervalValue" return="long"
  20950. abstract="false" native="false" synchronized="true"
  20951. static="false" final="false" visibility="public"
  20952. deprecated="not deprecated">
  20953. <doc>
  20954. <![CDATA[The Value at the Previous interval
  20955. @return prev interval value]]>
  20956. </doc>
  20957. </method>
  20958. <method name="getCurrentIntervalValue" return="long"
  20959. abstract="false" native="false" synchronized="true"
  20960. static="false" final="false" visibility="public"
  20961. deprecated="not deprecated">
  20962. <doc>
  20963. <![CDATA[The Value at the current interval
  20964. @return prev interval value]]>
  20965. </doc>
  20966. </method>
  20967. <doc>
  20968. <![CDATA[The MetricsTimeVaryingLong class is for a metric that naturally
  20969. varies over time (e.g. number of files created). The metrics is accumulated
  20970. over an interval (set in the metrics config file); the metrics is
  20971. published at the end of each interval and then
  20972. reset to zero. Hence the counter has the value in the current interval.
  20973. Note if one wants a time associated with the metric then use
  20974. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate]]>
  20975. </doc>
  20976. </class>
  20977. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  20978. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  20979. <class name="MetricsTimeVaryingRate" extends="org.apache.hadoop.metrics.util.MetricsBase"
  20980. abstract="false"
  20981. static="false" final="false" visibility="public"
  20982. deprecated="not deprecated">
  20983. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  20984. static="false" final="false" visibility="public"
  20985. deprecated="not deprecated">
  20986. <doc>
  20987. <![CDATA[Constructor - create a new metric
  20988. @param nam the name of the metrics to be used to publish the metric
  20989. @param registry - where the metrics object will be registered]]>
  20990. </doc>
  20991. </constructor>
  20992. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  20993. static="false" final="false" visibility="public"
  20994. deprecated="not deprecated">
  20995. <doc>
  20996. <![CDATA[Constructor - create a new metric
  20997. @param nam the name of the metrics to be used to publish the metric
  20998. @param registry - where the metrics object will be registered
  20999. A description of {@link #NO_DESCRIPTION} is used]]>
  21000. </doc>
  21001. </constructor>
  21002. <method name="inc"
  21003. abstract="false" native="false" synchronized="true"
  21004. static="false" final="false" visibility="public"
  21005. deprecated="not deprecated">
  21006. <param name="numOps" type="int"/>
  21007. <param name="time" type="long"/>
  21008. <doc>
  21009. <![CDATA[Increment the metrics for numOps operations
  21010. @param numOps - number of operations
  21011. @param time - time for numOps operations]]>
  21012. </doc>
  21013. </method>
  21014. <method name="inc"
  21015. abstract="false" native="false" synchronized="true"
  21016. static="false" final="false" visibility="public"
  21017. deprecated="not deprecated">
  21018. <param name="time" type="long"/>
  21019. <doc>
  21020. <![CDATA[Increment the metrics for one operation
  21021. @param time for one operation]]>
  21022. </doc>
  21023. </method>
  21024. <method name="pushMetric"
  21025. abstract="false" native="false" synchronized="true"
  21026. static="false" final="false" visibility="public"
  21027. deprecated="not deprecated">
  21028. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  21029. <doc>
  21030. <![CDATA[Push the delta metrics to the mr.
  21031. The delta is since the last push/interval.
  21032. Note this does NOT push to JMX
  21033. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  21034. {@link #getPreviousIntervalNumOps()}
  21035. @param mr]]>
  21036. </doc>
  21037. </method>
  21038. <method name="getPreviousIntervalNumOps" return="int"
  21039. abstract="false" native="false" synchronized="true"
  21040. static="false" final="false" visibility="public"
  21041. deprecated="not deprecated">
  21042. <doc>
  21043. <![CDATA[The number of operations in the previous interval
  21044. @return - ops in prev interval]]>
  21045. </doc>
  21046. </method>
  21047. <method name="getPreviousIntervalAverageTime" return="long"
  21048. abstract="false" native="false" synchronized="true"
  21049. static="false" final="false" visibility="public"
  21050. deprecated="not deprecated">
  21051. <doc>
  21052. <![CDATA[The average rate of an operation in the previous interval
  21053. @return - the average rate.]]>
  21054. </doc>
  21055. </method>
  21056. <method name="getMinTime" return="long"
  21057. abstract="false" native="false" synchronized="true"
  21058. static="false" final="false" visibility="public"
  21059. deprecated="not deprecated">
  21060. <doc>
  21061. <![CDATA[The min time for a single operation since the last reset
  21062. {@link #resetMinMax()}
  21063. @return min time for an operation]]>
  21064. </doc>
  21065. </method>
  21066. <method name="getMaxTime" return="long"
  21067. abstract="false" native="false" synchronized="true"
  21068. static="false" final="false" visibility="public"
  21069. deprecated="not deprecated">
  21070. <doc>
  21071. <![CDATA[The max time for a single operation since the last reset
  21072. {@link #resetMinMax()}
  21073. @return max time for an operation]]>
  21074. </doc>
  21075. </method>
  21076. <method name="resetMinMax"
  21077. abstract="false" native="false" synchronized="true"
  21078. static="false" final="false" visibility="public"
  21079. deprecated="not deprecated">
  21080. <doc>
  21081. <![CDATA[Reset the min max values]]>
  21082. </doc>
  21083. </method>
  21084. <doc>
  21085. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  21086. naturally varies over time (e.g. time taken to create a file).
  21087. The rate is averaged at each interval heart beat (the interval
  21088. is set in the metrics config file).
  21089. This class also keeps track of the min and max rates along with
  21090. a method to reset the min-max.]]>
  21091. </doc>
  21092. </class>
  21093. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  21094. </package>
  21095. <package name="org.apache.hadoop.net">
  21096. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  21097. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  21098. abstract="false"
  21099. static="false" final="false" visibility="public"
  21100. deprecated="not deprecated">
  21101. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  21102. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  21103. static="false" final="false" visibility="public"
  21104. deprecated="not deprecated">
  21105. </constructor>
  21106. <method name="resolve" return="java.util.List"
  21107. abstract="false" native="false" synchronized="false"
  21108. static="false" final="false" visibility="public"
  21109. deprecated="not deprecated">
  21110. <param name="names" type="java.util.List"/>
  21111. </method>
  21112. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  21113. transient="false" volatile="false"
  21114. static="false" final="false" visibility="protected"
  21115. deprecated="not deprecated">
  21116. </field>
  21117. <doc>
  21118. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  21119. raw DNSToSwitchMapping and stores the resolved network location in
  21120. a cache. The following calls to a resolved network location
  21121. will get its location from the cache.]]>
  21122. </doc>
  21123. </class>
  21124. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  21125. <!-- start class org.apache.hadoop.net.DNS -->
  21126. <class name="DNS" extends="java.lang.Object"
  21127. abstract="false"
  21128. static="false" final="false" visibility="public"
  21129. deprecated="not deprecated">
  21130. <constructor name="DNS"
  21131. static="false" final="false" visibility="public"
  21132. deprecated="not deprecated">
  21133. </constructor>
  21134. <method name="reverseDns" return="java.lang.String"
  21135. abstract="false" native="false" synchronized="false"
  21136. static="true" final="false" visibility="public"
  21137. deprecated="not deprecated">
  21138. <param name="hostIp" type="java.net.InetAddress"/>
  21139. <param name="ns" type="java.lang.String"/>
  21140. <exception name="NamingException" type="javax.naming.NamingException"/>
  21141. <doc>
  21142. <![CDATA[Returns the hostname associated with the specified IP address by the
  21143. provided nameserver.
  21144. @param hostIp
  21145. The address to reverse lookup
  21146. @param ns
  21147. The host name of a reachable DNS server
  21148. @return The host name associated with the provided IP
  21149. @throws NamingException
  21150. If a NamingException is encountered]]>
  21151. </doc>
  21152. </method>
  21153. <method name="getIPs" return="java.lang.String[]"
  21154. abstract="false" native="false" synchronized="false"
  21155. static="true" final="false" visibility="public"
  21156. deprecated="not deprecated">
  21157. <param name="strInterface" type="java.lang.String"/>
  21158. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21159. <doc>
  21160. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  21161. textual form.
  21162. @param strInterface
  21163. The name of the network interface to query (e.g. eth0)
  21164. @return A string vector of all the IPs associated with the provided
  21165. interface
  21166. @throws UnknownHostException
  21167. If an UnknownHostException is encountered in querying the
  21168. default interface]]>
  21169. </doc>
  21170. </method>
  21171. <method name="getDefaultIP" return="java.lang.String"
  21172. abstract="false" native="false" synchronized="false"
  21173. static="true" final="false" visibility="public"
  21174. deprecated="not deprecated">
  21175. <param name="strInterface" type="java.lang.String"/>
  21176. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21177. <doc>
  21178. <![CDATA[Returns the first available IP address associated with the provided
  21179. network interface
  21180. @param strInterface
  21181. The name of the network interface to query (e.g. eth0)
  21182. @return The IP address in text form
  21183. @throws UnknownHostException
  21184. If one is encountered in querying the default interface]]>
  21185. </doc>
  21186. </method>
  21187. <method name="getHosts" return="java.lang.String[]"
  21188. abstract="false" native="false" synchronized="false"
  21189. static="true" final="false" visibility="public"
  21190. deprecated="not deprecated">
  21191. <param name="strInterface" type="java.lang.String"/>
  21192. <param name="nameserver" type="java.lang.String"/>
  21193. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21194. <doc>
  21195. <![CDATA[Returns all the host names associated by the provided nameserver with the
  21196. address bound to the specified network interface
  21197. @param strInterface
  21198. The name of the network interface to query (e.g. eth0)
  21199. @param nameserver
  21200. The DNS host name
  21201. @return A string vector of all host names associated with the IPs tied to
  21202. the specified interface
  21203. @throws UnknownHostException]]>
  21204. </doc>
  21205. </method>
  21206. <method name="getHosts" return="java.lang.String[]"
  21207. abstract="false" native="false" synchronized="false"
  21208. static="true" final="false" visibility="public"
  21209. deprecated="not deprecated">
  21210. <param name="strInterface" type="java.lang.String"/>
  21211. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21212. <doc>
  21213. <![CDATA[Returns all the host names associated by the default nameserver with the
  21214. address bound to the specified network interface
  21215. @param strInterface
  21216. The name of the network interface to query (e.g. eth0)
  21217. @return The list of host names associated with IPs bound to the network
  21218. interface
  21219. @throws UnknownHostException
  21220. If one is encountered while querying the deault interface]]>
  21221. </doc>
  21222. </method>
  21223. <method name="getDefaultHost" return="java.lang.String"
  21224. abstract="false" native="false" synchronized="false"
  21225. static="true" final="false" visibility="public"
  21226. deprecated="not deprecated">
  21227. <param name="strInterface" type="java.lang.String"/>
  21228. <param name="nameserver" type="java.lang.String"/>
  21229. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21230. <doc>
  21231. <![CDATA[Returns the default (first) host name associated by the provided
  21232. nameserver with the address bound to the specified network interface
  21233. @param strInterface
  21234. The name of the network interface to query (e.g. eth0)
  21235. @param nameserver
  21236. The DNS host name
  21237. @return The default host names associated with IPs bound to the network
  21238. interface
  21239. @throws UnknownHostException
  21240. If one is encountered while querying the deault interface]]>
  21241. </doc>
  21242. </method>
  21243. <method name="getDefaultHost" return="java.lang.String"
  21244. abstract="false" native="false" synchronized="false"
  21245. static="true" final="false" visibility="public"
  21246. deprecated="not deprecated">
  21247. <param name="strInterface" type="java.lang.String"/>
  21248. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21249. <doc>
  21250. <![CDATA[Returns the default (first) host name associated by the default
  21251. nameserver with the address bound to the specified network interface
  21252. @param strInterface
  21253. The name of the network interface to query (e.g. eth0)
  21254. @return The default host name associated with IPs bound to the network
  21255. interface
  21256. @throws UnknownHostException
  21257. If one is encountered while querying the deault interface]]>
  21258. </doc>
  21259. </method>
  21260. <doc>
  21261. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  21262. the querying of specific network interfaces or nameservers.]]>
  21263. </doc>
  21264. </class>
  21265. <!-- end class org.apache.hadoop.net.DNS -->
  21266. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  21267. <interface name="DNSToSwitchMapping" abstract="true"
  21268. static="false" final="false" visibility="public"
  21269. deprecated="not deprecated">
  21270. <method name="resolve" return="java.util.List"
  21271. abstract="false" native="false" synchronized="false"
  21272. static="false" final="false" visibility="public"
  21273. deprecated="not deprecated">
  21274. <param name="names" type="java.util.List"/>
  21275. <doc>
  21276. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  21277. switch information (network paths). One-to-one correspondence must be
  21278. maintained between the elements in the lists.
  21279. Consider an element in the argument list - x.y.com. The switch information
  21280. that is returned must be a network path of the form /foo/rack,
  21281. where / is the root, and 'foo' is the switch where 'rack' is connected.
  21282. Note the hostname/ip-address is not part of the returned path.
  21283. The network topology of the cluster would determine the number of
  21284. components in the network path.
  21285. @param names
  21286. @return list of resolved network paths]]>
  21287. </doc>
  21288. </method>
  21289. <doc>
  21290. <![CDATA[An interface that should be implemented to allow pluggable
  21291. DNS-name/IP-address to RackID resolvers.]]>
  21292. </doc>
  21293. </interface>
  21294. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  21295. <!-- start class org.apache.hadoop.net.NetUtils -->
  21296. <class name="NetUtils" extends="java.lang.Object"
  21297. abstract="false"
  21298. static="false" final="false" visibility="public"
  21299. deprecated="not deprecated">
  21300. <constructor name="NetUtils"
  21301. static="false" final="false" visibility="public"
  21302. deprecated="not deprecated">
  21303. </constructor>
  21304. <method name="getSocketFactory" return="javax.net.SocketFactory"
  21305. abstract="false" native="false" synchronized="false"
  21306. static="true" final="false" visibility="public"
  21307. deprecated="not deprecated">
  21308. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21309. <param name="clazz" type="java.lang.Class"/>
  21310. <doc>
  21311. <![CDATA[Get the socket factory for the given class according to its
  21312. configuration parameter
  21313. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  21314. such parameter exists then fall back on the default socket factory as
  21315. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  21316. this default socket factory is not configured, then fall back on the JVM
  21317. default socket factory.
  21318. @param conf the configuration
  21319. @param clazz the class (usually a {@link VersionedProtocol})
  21320. @return a socket factory]]>
  21321. </doc>
  21322. </method>
  21323. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  21324. abstract="false" native="false" synchronized="false"
  21325. static="true" final="false" visibility="public"
  21326. deprecated="not deprecated">
  21327. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21328. <doc>
  21329. <![CDATA[Get the default socket factory as specified by the configuration
  21330. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  21331. @param conf the configuration
  21332. @return the default socket factory as specified in the configuration or
  21333. the JVM default socket factory if the configuration does not
  21334. contain a default socket factory property.]]>
  21335. </doc>
  21336. </method>
  21337. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  21338. abstract="false" native="false" synchronized="false"
  21339. static="true" final="false" visibility="public"
  21340. deprecated="not deprecated">
  21341. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21342. <param name="propValue" type="java.lang.String"/>
  21343. <doc>
  21344. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  21345. given proxy URI corresponds to an absence of configuration parameter,
  21346. returns null. If the URI is malformed raises an exception.
  21347. @param propValue the property which is the class name of the
  21348. SocketFactory to instantiate; assumed non null and non empty.
  21349. @return a socket factory as defined in the property value.]]>
  21350. </doc>
  21351. </method>
  21352. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  21353. abstract="false" native="false" synchronized="false"
  21354. static="true" final="false" visibility="public"
  21355. deprecated="not deprecated">
  21356. <param name="target" type="java.lang.String"/>
  21357. <doc>
  21358. <![CDATA[Util method to build socket addr from either:
  21359. <host>:<post>
  21360. <fs>://<host>:<port>/<path>]]>
  21361. </doc>
  21362. </method>
  21363. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  21364. abstract="false" native="false" synchronized="false"
  21365. static="true" final="false" visibility="public"
  21366. deprecated="not deprecated">
  21367. <param name="target" type="java.lang.String"/>
  21368. <param name="defaultPort" type="int"/>
  21369. <doc>
  21370. <![CDATA[Util method to build socket addr from either:
  21371. <host>
  21372. <host>:<post>
  21373. <fs>://<host>:<port>/<path>]]>
  21374. </doc>
  21375. </method>
  21376. <method name="getServerAddress" return="java.lang.String"
  21377. abstract="false" native="false" synchronized="false"
  21378. static="true" final="false" visibility="public"
  21379. deprecated="not deprecated">
  21380. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21381. <param name="oldBindAddressName" type="java.lang.String"/>
  21382. <param name="oldPortName" type="java.lang.String"/>
  21383. <param name="newBindAddressName" type="java.lang.String"/>
  21384. <doc>
  21385. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  21386. to a single colon separated one.
  21387. @param conf the configuration to check
  21388. @param oldBindAddressName the old address attribute name
  21389. @param oldPortName the old port attribute name
  21390. @param newBindAddressName the new combined name
  21391. @return the complete address from the configuration]]>
  21392. </doc>
  21393. </method>
  21394. <method name="addStaticResolution"
  21395. abstract="false" native="false" synchronized="false"
  21396. static="true" final="false" visibility="public"
  21397. deprecated="not deprecated">
  21398. <param name="host" type="java.lang.String"/>
  21399. <param name="resolvedName" type="java.lang.String"/>
  21400. <doc>
  21401. <![CDATA[Adds a static resolution for host. This can be used for setting up
  21402. hostnames with names that are fake to point to a well known host. For e.g.
  21403. in some testcases we require to have daemons with different hostnames
  21404. running on the same machine. In order to create connections to these
  21405. daemons, one can set up mappings from those hostnames to "localhost".
  21406. {@link NetUtils#getStaticResolution(String)} can be used to query for
  21407. the actual hostname.
  21408. @param host
  21409. @param resolvedName]]>
  21410. </doc>
  21411. </method>
  21412. <method name="getStaticResolution" return="java.lang.String"
  21413. abstract="false" native="false" synchronized="false"
  21414. static="true" final="false" visibility="public"
  21415. deprecated="not deprecated">
  21416. <param name="host" type="java.lang.String"/>
  21417. <doc>
  21418. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  21419. have been set earlier using
  21420. {@link NetUtils#addStaticResolution(String, String)}
  21421. @param host
  21422. @return the resolution]]>
  21423. </doc>
  21424. </method>
  21425. <method name="getAllStaticResolutions" return="java.util.List"
  21426. abstract="false" native="false" synchronized="false"
  21427. static="true" final="false" visibility="public"
  21428. deprecated="not deprecated">
  21429. <doc>
  21430. <![CDATA[This is used to get all the resolutions that were added using
  21431. {@link NetUtils#addStaticResolution(String, String)}. The return
  21432. value is a List each element of which contains an array of String
  21433. of the form String[0]=hostname, String[1]=resolved-hostname
  21434. @return the list of resolutions]]>
  21435. </doc>
  21436. </method>
  21437. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  21438. abstract="false" native="false" synchronized="false"
  21439. static="true" final="false" visibility="public"
  21440. deprecated="not deprecated">
  21441. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  21442. <doc>
  21443. <![CDATA[Returns InetSocketAddress that a client can use to
  21444. connect to the server. Server.getListenerAddress() is not correct when
  21445. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  21446. the getListenerAddress() returns "0.0.0.0:port".
  21447. @param server
  21448. @return socket address that a client can use to connect to the server.]]>
  21449. </doc>
  21450. </method>
  21451. <method name="getInputStream" return="java.io.InputStream"
  21452. abstract="false" native="false" synchronized="false"
  21453. static="true" final="false" visibility="public"
  21454. deprecated="not deprecated">
  21455. <param name="socket" type="java.net.Socket"/>
  21456. <exception name="IOException" type="java.io.IOException"/>
  21457. <doc>
  21458. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  21459. From documentation for {@link #getInputStream(Socket, long)}:<br>
  21460. Returns InputStream for the socket. If the socket has an associated
  21461. SocketChannel then it returns a
  21462. {@link SocketInputStream} with the given timeout. If the socket does not
  21463. have a channel, {@link Socket#getInputStream()} is returned. In the later
  21464. case, the timeout argument is ignored and the timeout set with
  21465. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  21466. Any socket created using socket factories returned by {@link #NetUtils},
  21467. must use this interface instead of {@link Socket#getInputStream()}.
  21468. @see #getInputStream(Socket, long)
  21469. @param socket
  21470. @return InputStream for reading from the socket.
  21471. @throws IOException]]>
  21472. </doc>
  21473. </method>
  21474. <method name="getInputStream" return="java.io.InputStream"
  21475. abstract="false" native="false" synchronized="false"
  21476. static="true" final="false" visibility="public"
  21477. deprecated="not deprecated">
  21478. <param name="socket" type="java.net.Socket"/>
  21479. <param name="timeout" type="long"/>
  21480. <exception name="IOException" type="java.io.IOException"/>
  21481. <doc>
  21482. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  21483. SocketChannel then it returns a
  21484. {@link SocketInputStream} with the given timeout. If the socket does not
  21485. have a channel, {@link Socket#getInputStream()} is returned. In the later
  21486. case, the timeout argument is ignored and the timeout set with
  21487. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  21488. Any socket created using socket factories returned by {@link #NetUtils},
  21489. must use this interface instead of {@link Socket#getInputStream()}.
  21490. @see Socket#getChannel()
  21491. @param socket
  21492. @param timeout timeout in milliseconds. This may not always apply. zero
  21493. for waiting as long as necessary.
  21494. @return InputStream for reading from the socket.
  21495. @throws IOException]]>
  21496. </doc>
  21497. </method>
  21498. <method name="getOutputStream" return="java.io.OutputStream"
  21499. abstract="false" native="false" synchronized="false"
  21500. static="true" final="false" visibility="public"
  21501. deprecated="not deprecated">
  21502. <param name="socket" type="java.net.Socket"/>
  21503. <exception name="IOException" type="java.io.IOException"/>
  21504. <doc>
  21505. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  21506. wait until data is available.<br><br>
  21507. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  21508. Returns OutputStream for the socket. If the socket has an associated
  21509. SocketChannel then it returns a
  21510. {@link SocketOutputStream} with the given timeout. If the socket does not
  21511. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  21512. case, the timeout argument is ignored and the write will wait until
  21513. data is available.<br><br>
  21514. Any socket created using socket factories returned by {@link #NetUtils},
  21515. must use this interface instead of {@link Socket#getOutputStream()}.
  21516. @see #getOutputStream(Socket, long)
  21517. @param socket
  21518. @return OutputStream for writing to the socket.
  21519. @throws IOException]]>
  21520. </doc>
  21521. </method>
  21522. <method name="getOutputStream" return="java.io.OutputStream"
  21523. abstract="false" native="false" synchronized="false"
  21524. static="true" final="false" visibility="public"
  21525. deprecated="not deprecated">
  21526. <param name="socket" type="java.net.Socket"/>
  21527. <param name="timeout" type="long"/>
  21528. <exception name="IOException" type="java.io.IOException"/>
  21529. <doc>
  21530. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  21531. SocketChannel then it returns a
  21532. {@link SocketOutputStream} with the given timeout. If the socket does not
  21533. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  21534. case, the timeout argument is ignored and the write will wait until
  21535. data is available.<br><br>
  21536. Any socket created using socket factories returned by {@link #NetUtils},
  21537. must use this interface instead of {@link Socket#getOutputStream()}.
  21538. @see Socket#getChannel()
  21539. @param socket
  21540. @param timeout timeout in milliseconds. This may not always apply. zero
  21541. for waiting as long as necessary.
  21542. @return OutputStream for writing to the socket.
  21543. @throws IOException]]>
  21544. </doc>
  21545. </method>
  21546. <method name="connect"
  21547. abstract="false" native="false" synchronized="false"
  21548. static="true" final="false" visibility="public"
  21549. deprecated="not deprecated">
  21550. <param name="socket" type="java.net.Socket"/>
  21551. <param name="endpoint" type="java.net.SocketAddress"/>
  21552. <param name="timeout" type="int"/>
  21553. <exception name="IOException" type="java.io.IOException"/>
  21554. <doc>
  21555. <![CDATA[This is a drop-in replacement for
  21556. {@link Socket#connect(SocketAddress, int)}.
  21557. In the case of normal sockets that don't have associated channels, this
  21558. just invokes <code>socket.connect(endpoint, timeout)</code>. If
  21559. <code>socket.getChannel()</code> returns a non-null channel,
  21560. connect is implemented using Hadoop's selectors. This is done mainly
  21561. to avoid Sun's connect implementation from creating thread-local
  21562. selectors, since Hadoop does not have control on when these are closed
  21563. and could end up taking all the available file descriptors.
  21564. @see java.net.Socket#connect(java.net.SocketAddress, int)
  21565. @param socket
  21566. @param endpoint
  21567. @param timeout - timeout in milliseconds]]>
  21568. </doc>
  21569. </method>
  21570. <method name="normalizeHostName" return="java.lang.String"
  21571. abstract="false" native="false" synchronized="false"
  21572. static="true" final="false" visibility="public"
  21573. deprecated="not deprecated">
  21574. <param name="name" type="java.lang.String"/>
  21575. <doc>
  21576. <![CDATA[Given a string representation of a host, return its ip address
  21577. in textual presentation.
  21578. @param name a string representation of a host:
  21579. either a textual representation its IP address or its host name
  21580. @return its IP address in the string format]]>
  21581. </doc>
  21582. </method>
  21583. <method name="normalizeHostNames" return="java.util.List"
  21584. abstract="false" native="false" synchronized="false"
  21585. static="true" final="false" visibility="public"
  21586. deprecated="not deprecated">
  21587. <param name="names" type="java.util.Collection"/>
  21588. <doc>
  21589. <![CDATA[Given a collection of string representation of hosts, return a list of
  21590. corresponding IP addresses in the textual representation.
  21591. @param names a collection of string representations of hosts
  21592. @return a list of corresponding IP addresses in the string format
  21593. @see #normalizeHostName(String)]]>
  21594. </doc>
  21595. </method>
  21596. </class>
  21597. <!-- end class org.apache.hadoop.net.NetUtils -->
  21598. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  21599. <class name="NetworkTopology" extends="java.lang.Object"
  21600. abstract="false"
  21601. static="false" final="false" visibility="public"
  21602. deprecated="not deprecated">
  21603. <constructor name="NetworkTopology"
  21604. static="false" final="false" visibility="public"
  21605. deprecated="not deprecated">
  21606. </constructor>
  21607. <method name="add"
  21608. abstract="false" native="false" synchronized="false"
  21609. static="false" final="false" visibility="public"
  21610. deprecated="not deprecated">
  21611. <param name="node" type="org.apache.hadoop.net.Node"/>
  21612. <doc>
  21613. <![CDATA[Add a leaf node
  21614. Update node counter & rack counter if neccessary
  21615. @param node
  21616. node to be added
  21617. @exception IllegalArgumentException if add a node to a leave
  21618. or node to be added is not a leaf]]>
  21619. </doc>
  21620. </method>
  21621. <method name="remove"
  21622. abstract="false" native="false" synchronized="false"
  21623. static="false" final="false" visibility="public"
  21624. deprecated="not deprecated">
  21625. <param name="node" type="org.apache.hadoop.net.Node"/>
  21626. <doc>
  21627. <![CDATA[Remove a node
  21628. Update node counter & rack counter if neccessary
  21629. @param node
  21630. node to be removed]]>
  21631. </doc>
  21632. </method>
  21633. <method name="contains" return="boolean"
  21634. abstract="false" native="false" synchronized="false"
  21635. static="false" final="false" visibility="public"
  21636. deprecated="not deprecated">
  21637. <param name="node" type="org.apache.hadoop.net.Node"/>
  21638. <doc>
  21639. <![CDATA[Check if the tree contains node <i>node</i>
  21640. @param node
  21641. a node
  21642. @return true if <i>node</i> is already in the tree; false otherwise]]>
  21643. </doc>
  21644. </method>
  21645. <method name="getNode" return="org.apache.hadoop.net.Node"
  21646. abstract="false" native="false" synchronized="false"
  21647. static="false" final="false" visibility="public"
  21648. deprecated="not deprecated">
  21649. <param name="loc" type="java.lang.String"/>
  21650. <doc>
  21651. <![CDATA[Given a string representation of a node, return its reference
  21652. @param loc
  21653. a path-like string representation of a node
  21654. @return a reference to the node; null if the node is not in the tree]]>
  21655. </doc>
  21656. </method>
  21657. <method name="getNumOfRacks" return="int"
  21658. abstract="false" native="false" synchronized="false"
  21659. static="false" final="false" visibility="public"
  21660. deprecated="not deprecated">
  21661. <doc>
  21662. <![CDATA[Return the total number of racks]]>
  21663. </doc>
  21664. </method>
  21665. <method name="getNumOfLeaves" return="int"
  21666. abstract="false" native="false" synchronized="false"
  21667. static="false" final="false" visibility="public"
  21668. deprecated="not deprecated">
  21669. <doc>
  21670. <![CDATA[Return the total number of nodes]]>
  21671. </doc>
  21672. </method>
  21673. <method name="getDistance" return="int"
  21674. abstract="false" native="false" synchronized="false"
  21675. static="false" final="false" visibility="public"
  21676. deprecated="not deprecated">
  21677. <param name="node1" type="org.apache.hadoop.net.Node"/>
  21678. <param name="node2" type="org.apache.hadoop.net.Node"/>
  21679. <doc>
  21680. <![CDATA[Return the distance between two nodes
  21681. It is assumed that the distance from one node to its parent is 1
  21682. The distance between two nodes is calculated by summing up their distances
  21683. to their closest common ancestor.
  21684. @param node1 one node
  21685. @param node2 another node
  21686. @return the distance between node1 and node2
  21687. node1 or node2 do not belong to the cluster]]>
  21688. </doc>
  21689. </method>
  21690. <method name="isOnSameRack" return="boolean"
  21691. abstract="false" native="false" synchronized="false"
  21692. static="false" final="false" visibility="public"
  21693. deprecated="not deprecated">
  21694. <param name="node1" type="org.apache.hadoop.net.Node"/>
  21695. <param name="node2" type="org.apache.hadoop.net.Node"/>
  21696. <doc>
  21697. <![CDATA[Check if two nodes are on the same rack
  21698. @param node1 one node
  21699. @param node2 another node
  21700. @return true if node1 and node2 are pm the same rack; false otherwise
  21701. @exception IllegalArgumentException when either node1 or node2 is null, or
  21702. node1 or node2 do not belong to the cluster]]>
  21703. </doc>
  21704. </method>
  21705. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  21706. abstract="false" native="false" synchronized="false"
  21707. static="false" final="false" visibility="public"
  21708. deprecated="not deprecated">
  21709. <param name="scope" type="java.lang.String"/>
  21710. <doc>
  21711. <![CDATA[randomly choose one node from <i>scope</i>
  21712. if scope starts with ~, choose one from the all nodes except for the
  21713. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  21714. @param scope range of nodes from which a node will be choosen
  21715. @return the choosen node]]>
  21716. </doc>
  21717. </method>
  21718. <method name="countNumOfAvailableNodes" return="int"
  21719. abstract="false" native="false" synchronized="false"
  21720. static="false" final="false" visibility="public"
  21721. deprecated="not deprecated">
  21722. <param name="scope" type="java.lang.String"/>
  21723. <param name="excludedNodes" type="java.util.List"/>
  21724. <doc>
  21725. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  21726. if scope starts with ~, return the number of nodes that are not
  21727. in <i>scope</i> and <i>excludedNodes</i>;
  21728. @param scope a path string that may start with ~
  21729. @param excludedNodes a list of nodes
  21730. @return number of available nodes]]>
  21731. </doc>
  21732. </method>
  21733. <method name="toString" return="java.lang.String"
  21734. abstract="false" native="false" synchronized="false"
  21735. static="false" final="false" visibility="public"
  21736. deprecated="not deprecated">
  21737. <doc>
  21738. <![CDATA[convert a network tree to a string]]>
  21739. </doc>
  21740. </method>
  21741. <method name="pseudoSortByDistance"
  21742. abstract="false" native="false" synchronized="false"
  21743. static="false" final="false" visibility="public"
  21744. deprecated="not deprecated">
  21745. <param name="reader" type="org.apache.hadoop.net.Node"/>
  21746. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  21747. <doc>
  21748. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  21749. It linearly scans the array, if a local node is found, swap it with
  21750. the first element of the array.
  21751. If a local rack node is found, swap it with the first element following
  21752. the local node.
  21753. If neither local node or local rack node is found, put a random replica
  21754. location at postion 0.
  21755. It leaves the rest nodes untouched.]]>
  21756. </doc>
  21757. </method>
  21758. <field name="DEFAULT_RACK" type="java.lang.String"
  21759. transient="false" volatile="false"
  21760. static="true" final="true" visibility="public"
  21761. deprecated="not deprecated">
  21762. </field>
  21763. <field name="DEFAULT_HOST_LEVEL" type="int"
  21764. transient="false" volatile="false"
  21765. static="true" final="true" visibility="public"
  21766. deprecated="not deprecated">
  21767. </field>
  21768. <field name="LOG" type="org.apache.commons.logging.Log"
  21769. transient="false" volatile="false"
  21770. static="true" final="true" visibility="public"
  21771. deprecated="not deprecated">
  21772. </field>
  21773. <doc>
  21774. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  21775. network topology.
  21776. For example, a cluster may be consists of many data centers filled
  21777. with racks of computers.
  21778. In a network topology, leaves represent data nodes (computers) and inner
  21779. nodes represent switches/routers that manage traffic in/out of data centers
  21780. or racks.]]>
  21781. </doc>
  21782. </class>
  21783. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  21784. <!-- start interface org.apache.hadoop.net.Node -->
  21785. <interface name="Node" abstract="true"
  21786. static="false" final="false" visibility="public"
  21787. deprecated="not deprecated">
  21788. <method name="getNetworkLocation" return="java.lang.String"
  21789. abstract="false" native="false" synchronized="false"
  21790. static="false" final="false" visibility="public"
  21791. deprecated="not deprecated">
  21792. <doc>
  21793. <![CDATA[Return the string representation of this node's network location]]>
  21794. </doc>
  21795. </method>
  21796. <method name="setNetworkLocation"
  21797. abstract="false" native="false" synchronized="false"
  21798. static="false" final="false" visibility="public"
  21799. deprecated="not deprecated">
  21800. <param name="location" type="java.lang.String"/>
  21801. <doc>
  21802. <![CDATA[Set the node's network location]]>
  21803. </doc>
  21804. </method>
  21805. <method name="getName" return="java.lang.String"
  21806. abstract="false" native="false" synchronized="false"
  21807. static="false" final="false" visibility="public"
  21808. deprecated="not deprecated">
  21809. <doc>
  21810. <![CDATA[Return this node's name]]>
  21811. </doc>
  21812. </method>
  21813. <method name="getParent" return="org.apache.hadoop.net.Node"
  21814. abstract="false" native="false" synchronized="false"
  21815. static="false" final="false" visibility="public"
  21816. deprecated="not deprecated">
  21817. <doc>
  21818. <![CDATA[Return this node's parent]]>
  21819. </doc>
  21820. </method>
  21821. <method name="setParent"
  21822. abstract="false" native="false" synchronized="false"
  21823. static="false" final="false" visibility="public"
  21824. deprecated="not deprecated">
  21825. <param name="parent" type="org.apache.hadoop.net.Node"/>
  21826. <doc>
  21827. <![CDATA[Set this node's parent]]>
  21828. </doc>
  21829. </method>
  21830. <method name="getLevel" return="int"
  21831. abstract="false" native="false" synchronized="false"
  21832. static="false" final="false" visibility="public"
  21833. deprecated="not deprecated">
  21834. <doc>
  21835. <![CDATA[Return this node's level in the tree.
  21836. E.g. the root of a tree returns 0 and its children return 1]]>
  21837. </doc>
  21838. </method>
  21839. <method name="setLevel"
  21840. abstract="false" native="false" synchronized="false"
  21841. static="false" final="false" visibility="public"
  21842. deprecated="not deprecated">
  21843. <param name="i" type="int"/>
  21844. <doc>
  21845. <![CDATA[Set this node's level in the tree.]]>
  21846. </doc>
  21847. </method>
  21848. <doc>
  21849. <![CDATA[The interface defines a node in a network topology.
  21850. A node may be a leave representing a data node or an inner
  21851. node representing a datacenter or rack.
  21852. Each data has a name and its location in the network is
  21853. decided by a string with syntax similar to a file name.
  21854. For example, a data node's name is hostname:port# and if it's located at
  21855. rack "orange" in datacenter "dog", the string representation of its
  21856. network location is /dog/orange]]>
  21857. </doc>
  21858. </interface>
  21859. <!-- end interface org.apache.hadoop.net.Node -->
  21860. <!-- start class org.apache.hadoop.net.NodeBase -->
  21861. <class name="NodeBase" extends="java.lang.Object"
  21862. abstract="false"
  21863. static="false" final="false" visibility="public"
  21864. deprecated="not deprecated">
  21865. <implements name="org.apache.hadoop.net.Node"/>
  21866. <constructor name="NodeBase"
  21867. static="false" final="false" visibility="public"
  21868. deprecated="not deprecated">
  21869. <doc>
  21870. <![CDATA[Default constructor]]>
  21871. </doc>
  21872. </constructor>
  21873. <constructor name="NodeBase" type="java.lang.String"
  21874. static="false" final="false" visibility="public"
  21875. deprecated="not deprecated">
  21876. <doc>
  21877. <![CDATA[Construct a node from its path
  21878. @param path
  21879. a concatenation of this node's location, the path seperator, and its name]]>
  21880. </doc>
  21881. </constructor>
  21882. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  21883. static="false" final="false" visibility="public"
  21884. deprecated="not deprecated">
  21885. <doc>
  21886. <![CDATA[Construct a node from its name and its location
  21887. @param name this node's name
  21888. @param location this node's location]]>
  21889. </doc>
  21890. </constructor>
  21891. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  21892. static="false" final="false" visibility="public"
  21893. deprecated="not deprecated">
  21894. <doc>
  21895. <![CDATA[Construct a node from its name and its location
  21896. @param name this node's name
  21897. @param location this node's location
  21898. @param parent this node's parent node
  21899. @param level this node's level in the tree]]>
  21900. </doc>
  21901. </constructor>
  21902. <method name="getName" return="java.lang.String"
  21903. abstract="false" native="false" synchronized="false"
  21904. static="false" final="false" visibility="public"
  21905. deprecated="not deprecated">
  21906. <doc>
  21907. <![CDATA[Return this node's name]]>
  21908. </doc>
  21909. </method>
  21910. <method name="getNetworkLocation" return="java.lang.String"
  21911. abstract="false" native="false" synchronized="false"
  21912. static="false" final="false" visibility="public"
  21913. deprecated="not deprecated">
  21914. <doc>
  21915. <![CDATA[Return this node's network location]]>
  21916. </doc>
  21917. </method>
  21918. <method name="setNetworkLocation"
  21919. abstract="false" native="false" synchronized="false"
  21920. static="false" final="false" visibility="public"
  21921. deprecated="not deprecated">
  21922. <param name="location" type="java.lang.String"/>
  21923. <doc>
  21924. <![CDATA[Set this node's network location]]>
  21925. </doc>
  21926. </method>
  21927. <method name="getPath" return="java.lang.String"
  21928. abstract="false" native="false" synchronized="false"
  21929. static="true" final="false" visibility="public"
  21930. deprecated="not deprecated">
  21931. <param name="node" type="org.apache.hadoop.net.Node"/>
  21932. <doc>
  21933. <![CDATA[Return this node's path]]>
  21934. </doc>
  21935. </method>
  21936. <method name="toString" return="java.lang.String"
  21937. abstract="false" native="false" synchronized="false"
  21938. static="false" final="false" visibility="public"
  21939. deprecated="not deprecated">
  21940. <doc>
  21941. <![CDATA[Return this node's string representation]]>
  21942. </doc>
  21943. </method>
  21944. <method name="normalize" return="java.lang.String"
  21945. abstract="false" native="false" synchronized="false"
  21946. static="true" final="false" visibility="public"
  21947. deprecated="not deprecated">
  21948. <param name="path" type="java.lang.String"/>
  21949. <doc>
  21950. <![CDATA[Normalize a path]]>
  21951. </doc>
  21952. </method>
  21953. <method name="getParent" return="org.apache.hadoop.net.Node"
  21954. abstract="false" native="false" synchronized="false"
  21955. static="false" final="false" visibility="public"
  21956. deprecated="not deprecated">
  21957. <doc>
  21958. <![CDATA[Return this node's parent]]>
  21959. </doc>
  21960. </method>
  21961. <method name="setParent"
  21962. abstract="false" native="false" synchronized="false"
  21963. static="false" final="false" visibility="public"
  21964. deprecated="not deprecated">
  21965. <param name="parent" type="org.apache.hadoop.net.Node"/>
  21966. <doc>
  21967. <![CDATA[Set this node's parent]]>
  21968. </doc>
  21969. </method>
  21970. <method name="getLevel" return="int"
  21971. abstract="false" native="false" synchronized="false"
  21972. static="false" final="false" visibility="public"
  21973. deprecated="not deprecated">
  21974. <doc>
  21975. <![CDATA[Return this node's level in the tree.
  21976. E.g. the root of a tree returns 0 and its children return 1]]>
  21977. </doc>
  21978. </method>
  21979. <method name="setLevel"
  21980. abstract="false" native="false" synchronized="false"
  21981. static="false" final="false" visibility="public"
  21982. deprecated="not deprecated">
  21983. <param name="level" type="int"/>
  21984. <doc>
  21985. <![CDATA[Set this node's level in the tree]]>
  21986. </doc>
  21987. </method>
  21988. <field name="PATH_SEPARATOR" type="char"
  21989. transient="false" volatile="false"
  21990. static="true" final="true" visibility="public"
  21991. deprecated="not deprecated">
  21992. </field>
  21993. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  21994. transient="false" volatile="false"
  21995. static="true" final="true" visibility="public"
  21996. deprecated="not deprecated">
  21997. </field>
  21998. <field name="ROOT" type="java.lang.String"
  21999. transient="false" volatile="false"
  22000. static="true" final="true" visibility="public"
  22001. deprecated="not deprecated">
  22002. </field>
  22003. <field name="name" type="java.lang.String"
  22004. transient="false" volatile="false"
  22005. static="false" final="false" visibility="protected"
  22006. deprecated="not deprecated">
  22007. </field>
  22008. <field name="location" type="java.lang.String"
  22009. transient="false" volatile="false"
  22010. static="false" final="false" visibility="protected"
  22011. deprecated="not deprecated">
  22012. </field>
  22013. <field name="level" type="int"
  22014. transient="false" volatile="false"
  22015. static="false" final="false" visibility="protected"
  22016. deprecated="not deprecated">
  22017. </field>
  22018. <field name="parent" type="org.apache.hadoop.net.Node"
  22019. transient="false" volatile="false"
  22020. static="false" final="false" visibility="protected"
  22021. deprecated="not deprecated">
  22022. </field>
  22023. <doc>
  22024. <![CDATA[A base class that implements interface Node]]>
  22025. </doc>
  22026. </class>
  22027. <!-- end class org.apache.hadoop.net.NodeBase -->
  22028. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  22029. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  22030. abstract="false"
  22031. static="false" final="true" visibility="public"
  22032. deprecated="not deprecated">
  22033. <implements name="org.apache.hadoop.conf.Configurable"/>
  22034. <constructor name="ScriptBasedMapping"
  22035. static="false" final="false" visibility="public"
  22036. deprecated="not deprecated">
  22037. </constructor>
  22038. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  22039. static="false" final="false" visibility="public"
  22040. deprecated="not deprecated">
  22041. </constructor>
  22042. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22043. abstract="false" native="false" synchronized="false"
  22044. static="false" final="false" visibility="public"
  22045. deprecated="not deprecated">
  22046. </method>
  22047. <method name="setConf"
  22048. abstract="false" native="false" synchronized="false"
  22049. static="false" final="false" visibility="public"
  22050. deprecated="not deprecated">
  22051. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22052. </method>
  22053. <doc>
  22054. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  22055. script configured via topology.script.file.name .]]>
  22056. </doc>
  22057. </class>
  22058. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  22059. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  22060. <class name="SocketInputStream" extends="java.io.InputStream"
  22061. abstract="false"
  22062. static="false" final="false" visibility="public"
  22063. deprecated="not deprecated">
  22064. <implements name="java.nio.channels.ReadableByteChannel"/>
  22065. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  22066. static="false" final="false" visibility="public"
  22067. deprecated="not deprecated">
  22068. <exception name="IOException" type="java.io.IOException"/>
  22069. <doc>
  22070. <![CDATA[Create a new input stream with the given timeout. If the timeout
  22071. is zero, it will be treated as infinite timeout. The socket's
  22072. channel will be configured to be non-blocking.
  22073. @param channel
  22074. Channel for reading, should also be a {@link SelectableChannel}.
  22075. The channel will be configured to be non-blocking.
  22076. @param timeout timeout in milliseconds. must not be negative.
  22077. @throws IOException]]>
  22078. </doc>
  22079. </constructor>
  22080. <constructor name="SocketInputStream" type="java.net.Socket, long"
  22081. static="false" final="false" visibility="public"
  22082. deprecated="not deprecated">
  22083. <exception name="IOException" type="java.io.IOException"/>
  22084. <doc>
  22085. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  22086. Create a new input stream with the given timeout. If the timeout
  22087. is zero, it will be treated as infinite timeout. The socket's
  22088. channel will be configured to be non-blocking.
  22089. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  22090. @param socket should have a channel associated with it.
  22091. @param timeout timeout timeout in milliseconds. must not be negative.
  22092. @throws IOException]]>
  22093. </doc>
  22094. </constructor>
  22095. <constructor name="SocketInputStream" type="java.net.Socket"
  22096. static="false" final="false" visibility="public"
  22097. deprecated="not deprecated">
  22098. <exception name="IOException" type="java.io.IOException"/>
  22099. <doc>
  22100. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  22101. :<br><br>
  22102. Create a new input stream with the given timeout. If the timeout
  22103. is zero, it will be treated as infinite timeout. The socket's
  22104. channel will be configured to be non-blocking.
  22105. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  22106. @param socket should have a channel associated with it.
  22107. @throws IOException]]>
  22108. </doc>
  22109. </constructor>
  22110. <method name="read" return="int"
  22111. abstract="false" native="false" synchronized="false"
  22112. static="false" final="false" visibility="public"
  22113. deprecated="not deprecated">
  22114. <exception name="IOException" type="java.io.IOException"/>
  22115. </method>
  22116. <method name="read" return="int"
  22117. abstract="false" native="false" synchronized="false"
  22118. static="false" final="false" visibility="public"
  22119. deprecated="not deprecated">
  22120. <param name="b" type="byte[]"/>
  22121. <param name="off" type="int"/>
  22122. <param name="len" type="int"/>
  22123. <exception name="IOException" type="java.io.IOException"/>
  22124. </method>
  22125. <method name="close"
  22126. abstract="false" native="false" synchronized="true"
  22127. static="false" final="false" visibility="public"
  22128. deprecated="not deprecated">
  22129. <exception name="IOException" type="java.io.IOException"/>
  22130. </method>
  22131. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  22132. abstract="false" native="false" synchronized="false"
  22133. static="false" final="false" visibility="public"
  22134. deprecated="not deprecated">
  22135. <doc>
  22136. <![CDATA[Returns underlying channel used by inputstream.
  22137. This is useful in certain cases like channel for
  22138. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  22139. </doc>
  22140. </method>
  22141. <method name="isOpen" return="boolean"
  22142. abstract="false" native="false" synchronized="false"
  22143. static="false" final="false" visibility="public"
  22144. deprecated="not deprecated">
  22145. </method>
  22146. <method name="read" return="int"
  22147. abstract="false" native="false" synchronized="false"
  22148. static="false" final="false" visibility="public"
  22149. deprecated="not deprecated">
  22150. <param name="dst" type="java.nio.ByteBuffer"/>
  22151. <exception name="IOException" type="java.io.IOException"/>
  22152. </method>
  22153. <method name="waitForReadable"
  22154. abstract="false" native="false" synchronized="false"
  22155. static="false" final="false" visibility="public"
  22156. deprecated="not deprecated">
  22157. <exception name="IOException" type="java.io.IOException"/>
  22158. <doc>
  22159. <![CDATA[waits for the underlying channel to be ready for reading.
  22160. The timeout specified for this stream applies to this wait.
  22161. @throws SocketTimeoutException
  22162. if select on the channel times out.
  22163. @throws IOException
  22164. if any other I/O error occurs.]]>
  22165. </doc>
  22166. </method>
  22167. <doc>
  22168. <![CDATA[This implements an input stream that can have a timeout while reading.
  22169. This sets non-blocking flag on the socket channel.
  22170. So after create this object, read() on
  22171. {@link Socket#getInputStream()} and write() on
  22172. {@link Socket#getOutputStream()} for the associated socket will throw
  22173. IllegalBlockingModeException.
  22174. Please use {@link SocketOutputStream} for writing.]]>
  22175. </doc>
  22176. </class>
  22177. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  22178. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  22179. <class name="SocketOutputStream" extends="java.io.OutputStream"
  22180. abstract="false"
  22181. static="false" final="false" visibility="public"
  22182. deprecated="not deprecated">
  22183. <implements name="java.nio.channels.WritableByteChannel"/>
  22184. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  22185. static="false" final="false" visibility="public"
  22186. deprecated="not deprecated">
  22187. <exception name="IOException" type="java.io.IOException"/>
  22188. <doc>
  22189. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  22190. is zero, it will be treated as infinite timeout. The socket's
  22191. channel will be configured to be non-blocking.
  22192. @param channel
  22193. Channel for writing, should also be a {@link SelectableChannel}.
  22194. The channel will be configured to be non-blocking.
  22195. @param timeout timeout in milliseconds. must not be negative.
  22196. @throws IOException]]>
  22197. </doc>
  22198. </constructor>
  22199. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  22200. static="false" final="false" visibility="public"
  22201. deprecated="not deprecated">
  22202. <exception name="IOException" type="java.io.IOException"/>
  22203. <doc>
  22204. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  22205. Create a new ouput stream with the given timeout. If the timeout
  22206. is zero, it will be treated as infinite timeout. The socket's
  22207. channel will be configured to be non-blocking.
  22208. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  22209. @param socket should have a channel associated with it.
  22210. @param timeout timeout timeout in milliseconds. must not be negative.
  22211. @throws IOException]]>
  22212. </doc>
  22213. </constructor>
  22214. <method name="write"
  22215. abstract="false" native="false" synchronized="false"
  22216. static="false" final="false" visibility="public"
  22217. deprecated="not deprecated">
  22218. <param name="b" type="int"/>
  22219. <exception name="IOException" type="java.io.IOException"/>
  22220. </method>
  22221. <method name="write"
  22222. abstract="false" native="false" synchronized="false"
  22223. static="false" final="false" visibility="public"
  22224. deprecated="not deprecated">
  22225. <param name="b" type="byte[]"/>
  22226. <param name="off" type="int"/>
  22227. <param name="len" type="int"/>
  22228. <exception name="IOException" type="java.io.IOException"/>
  22229. </method>
  22230. <method name="close"
  22231. abstract="false" native="false" synchronized="true"
  22232. static="false" final="false" visibility="public"
  22233. deprecated="not deprecated">
  22234. <exception name="IOException" type="java.io.IOException"/>
  22235. </method>
  22236. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  22237. abstract="false" native="false" synchronized="false"
  22238. static="false" final="false" visibility="public"
  22239. deprecated="not deprecated">
  22240. <doc>
  22241. <![CDATA[Returns underlying channel used by this stream.
  22242. This is useful in certain cases like channel for
  22243. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  22244. </doc>
  22245. </method>
  22246. <method name="isOpen" return="boolean"
  22247. abstract="false" native="false" synchronized="false"
  22248. static="false" final="false" visibility="public"
  22249. deprecated="not deprecated">
  22250. </method>
  22251. <method name="write" return="int"
  22252. abstract="false" native="false" synchronized="false"
  22253. static="false" final="false" visibility="public"
  22254. deprecated="not deprecated">
  22255. <param name="src" type="java.nio.ByteBuffer"/>
  22256. <exception name="IOException" type="java.io.IOException"/>
  22257. </method>
  22258. <method name="waitForWritable"
  22259. abstract="false" native="false" synchronized="false"
  22260. static="false" final="false" visibility="public"
  22261. deprecated="not deprecated">
  22262. <exception name="IOException" type="java.io.IOException"/>
  22263. <doc>
  22264. <![CDATA[waits for the underlying channel to be ready for writing.
  22265. The timeout specified for this stream applies to this wait.
  22266. @throws SocketTimeoutException
  22267. if select on the channel times out.
  22268. @throws IOException
  22269. if any other I/O error occurs.]]>
  22270. </doc>
  22271. </method>
  22272. <method name="transferToFully"
  22273. abstract="false" native="false" synchronized="false"
  22274. static="false" final="false" visibility="public"
  22275. deprecated="not deprecated">
  22276. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  22277. <param name="position" type="long"/>
  22278. <param name="count" type="int"/>
  22279. <exception name="IOException" type="java.io.IOException"/>
  22280. <doc>
  22281. <![CDATA[Transfers data from FileChannel using
  22282. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  22283. Similar to readFully(), this waits till requested amount of
  22284. data is transfered.
  22285. @param fileCh FileChannel to transfer data from.
  22286. @param position position within the channel where the transfer begins
  22287. @param count number of bytes to transfer.
  22288. @throws EOFException
  22289. If end of input file is reached before requested number of
  22290. bytes are transfered.
  22291. @throws SocketTimeoutException
  22292. If this channel blocks transfer longer than timeout for
  22293. this stream.
  22294. @throws IOException Includes any exception thrown by
  22295. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  22296. </doc>
  22297. </method>
  22298. <doc>
  22299. <![CDATA[This implements an output stream that can have a timeout while writing.
  22300. This sets non-blocking flag on the socket channel.
  22301. So after creating this object , read() on
  22302. {@link Socket#getInputStream()} and write() on
  22303. {@link Socket#getOutputStream()} on the associated socket will throw
  22304. llegalBlockingModeException.
  22305. Please use {@link SocketInputStream} for reading.]]>
  22306. </doc>
  22307. </class>
  22308. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  22309. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  22310. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  22311. abstract="false"
  22312. static="false" final="false" visibility="public"
  22313. deprecated="not deprecated">
  22314. <implements name="org.apache.hadoop.conf.Configurable"/>
  22315. <constructor name="SocksSocketFactory"
  22316. static="false" final="false" visibility="public"
  22317. deprecated="not deprecated">
  22318. <doc>
  22319. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  22320. </doc>
  22321. </constructor>
  22322. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  22323. static="false" final="false" visibility="public"
  22324. deprecated="not deprecated">
  22325. <doc>
  22326. <![CDATA[Constructor with a supplied Proxy
  22327. @param proxy the proxy to use to create sockets]]>
  22328. </doc>
  22329. </constructor>
  22330. <method name="createSocket" return="java.net.Socket"
  22331. abstract="false" native="false" synchronized="false"
  22332. static="false" final="false" visibility="public"
  22333. deprecated="not deprecated">
  22334. <exception name="IOException" type="java.io.IOException"/>
  22335. </method>
  22336. <method name="createSocket" return="java.net.Socket"
  22337. abstract="false" native="false" synchronized="false"
  22338. static="false" final="false" visibility="public"
  22339. deprecated="not deprecated">
  22340. <param name="addr" type="java.net.InetAddress"/>
  22341. <param name="port" type="int"/>
  22342. <exception name="IOException" type="java.io.IOException"/>
  22343. </method>
  22344. <method name="createSocket" return="java.net.Socket"
  22345. abstract="false" native="false" synchronized="false"
  22346. static="false" final="false" visibility="public"
  22347. deprecated="not deprecated">
  22348. <param name="addr" type="java.net.InetAddress"/>
  22349. <param name="port" type="int"/>
  22350. <param name="localHostAddr" type="java.net.InetAddress"/>
  22351. <param name="localPort" type="int"/>
  22352. <exception name="IOException" type="java.io.IOException"/>
  22353. </method>
  22354. <method name="createSocket" return="java.net.Socket"
  22355. abstract="false" native="false" synchronized="false"
  22356. static="false" final="false" visibility="public"
  22357. deprecated="not deprecated">
  22358. <param name="host" type="java.lang.String"/>
  22359. <param name="port" type="int"/>
  22360. <exception name="IOException" type="java.io.IOException"/>
  22361. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  22362. </method>
  22363. <method name="createSocket" return="java.net.Socket"
  22364. abstract="false" native="false" synchronized="false"
  22365. static="false" final="false" visibility="public"
  22366. deprecated="not deprecated">
  22367. <param name="host" type="java.lang.String"/>
  22368. <param name="port" type="int"/>
  22369. <param name="localHostAddr" type="java.net.InetAddress"/>
  22370. <param name="localPort" type="int"/>
  22371. <exception name="IOException" type="java.io.IOException"/>
  22372. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  22373. </method>
  22374. <method name="hashCode" return="int"
  22375. abstract="false" native="false" synchronized="false"
  22376. static="false" final="false" visibility="public"
  22377. deprecated="not deprecated">
  22378. </method>
  22379. <method name="equals" return="boolean"
  22380. abstract="false" native="false" synchronized="false"
  22381. static="false" final="false" visibility="public"
  22382. deprecated="not deprecated">
  22383. <param name="obj" type="java.lang.Object"/>
  22384. </method>
  22385. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22386. abstract="false" native="false" synchronized="false"
  22387. static="false" final="false" visibility="public"
  22388. deprecated="not deprecated">
  22389. </method>
  22390. <method name="setConf"
  22391. abstract="false" native="false" synchronized="false"
  22392. static="false" final="false" visibility="public"
  22393. deprecated="not deprecated">
  22394. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22395. </method>
  22396. <doc>
  22397. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  22398. </doc>
  22399. </class>
  22400. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  22401. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  22402. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  22403. abstract="false"
  22404. static="false" final="false" visibility="public"
  22405. deprecated="not deprecated">
  22406. <constructor name="StandardSocketFactory"
  22407. static="false" final="false" visibility="public"
  22408. deprecated="not deprecated">
  22409. <doc>
  22410. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  22411. </doc>
  22412. </constructor>
  22413. <method name="createSocket" return="java.net.Socket"
  22414. abstract="false" native="false" synchronized="false"
  22415. static="false" final="false" visibility="public"
  22416. deprecated="not deprecated">
  22417. <exception name="IOException" type="java.io.IOException"/>
  22418. </method>
  22419. <method name="createSocket" return="java.net.Socket"
  22420. abstract="false" native="false" synchronized="false"
  22421. static="false" final="false" visibility="public"
  22422. deprecated="not deprecated">
  22423. <param name="addr" type="java.net.InetAddress"/>
  22424. <param name="port" type="int"/>
  22425. <exception name="IOException" type="java.io.IOException"/>
  22426. </method>
  22427. <method name="createSocket" return="java.net.Socket"
  22428. abstract="false" native="false" synchronized="false"
  22429. static="false" final="false" visibility="public"
  22430. deprecated="not deprecated">
  22431. <param name="addr" type="java.net.InetAddress"/>
  22432. <param name="port" type="int"/>
  22433. <param name="localHostAddr" type="java.net.InetAddress"/>
  22434. <param name="localPort" type="int"/>
  22435. <exception name="IOException" type="java.io.IOException"/>
  22436. </method>
  22437. <method name="createSocket" return="java.net.Socket"
  22438. abstract="false" native="false" synchronized="false"
  22439. static="false" final="false" visibility="public"
  22440. deprecated="not deprecated">
  22441. <param name="host" type="java.lang.String"/>
  22442. <param name="port" type="int"/>
  22443. <exception name="IOException" type="java.io.IOException"/>
  22444. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  22445. </method>
  22446. <method name="createSocket" return="java.net.Socket"
  22447. abstract="false" native="false" synchronized="false"
  22448. static="false" final="false" visibility="public"
  22449. deprecated="not deprecated">
  22450. <param name="host" type="java.lang.String"/>
  22451. <param name="port" type="int"/>
  22452. <param name="localHostAddr" type="java.net.InetAddress"/>
  22453. <param name="localPort" type="int"/>
  22454. <exception name="IOException" type="java.io.IOException"/>
  22455. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  22456. </method>
  22457. <method name="equals" return="boolean"
  22458. abstract="false" native="false" synchronized="false"
  22459. static="false" final="false" visibility="public"
  22460. deprecated="not deprecated">
  22461. <param name="obj" type="java.lang.Object"/>
  22462. </method>
  22463. <method name="hashCode" return="int"
  22464. abstract="false" native="false" synchronized="false"
  22465. static="false" final="false" visibility="public"
  22466. deprecated="not deprecated">
  22467. </method>
  22468. <doc>
  22469. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  22470. </doc>
  22471. </class>
  22472. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  22473. </package>
  22474. <package name="org.apache.hadoop.record">
  22475. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  22476. <class name="BinaryRecordInput" extends="java.lang.Object"
  22477. abstract="false"
  22478. static="false" final="false" visibility="public"
  22479. deprecated="not deprecated">
  22480. <implements name="org.apache.hadoop.record.RecordInput"/>
  22481. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  22482. static="false" final="false" visibility="public"
  22483. deprecated="not deprecated">
  22484. <doc>
  22485. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  22486. </doc>
  22487. </constructor>
  22488. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  22489. static="false" final="false" visibility="public"
  22490. deprecated="not deprecated">
  22491. <doc>
  22492. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  22493. </doc>
  22494. </constructor>
  22495. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  22496. abstract="false" native="false" synchronized="false"
  22497. static="true" final="false" visibility="public"
  22498. deprecated="not deprecated">
  22499. <param name="inp" type="java.io.DataInput"/>
  22500. <doc>
  22501. <![CDATA[Get a thread-local record input for the supplied DataInput.
  22502. @param inp data input stream
  22503. @return binary record input corresponding to the supplied DataInput.]]>
  22504. </doc>
  22505. </method>
  22506. <method name="readByte" return="byte"
  22507. abstract="false" native="false" synchronized="false"
  22508. static="false" final="false" visibility="public"
  22509. deprecated="not deprecated">
  22510. <param name="tag" type="java.lang.String"/>
  22511. <exception name="IOException" type="java.io.IOException"/>
  22512. </method>
  22513. <method name="readBool" return="boolean"
  22514. abstract="false" native="false" synchronized="false"
  22515. static="false" final="false" visibility="public"
  22516. deprecated="not deprecated">
  22517. <param name="tag" type="java.lang.String"/>
  22518. <exception name="IOException" type="java.io.IOException"/>
  22519. </method>
  22520. <method name="readInt" return="int"
  22521. abstract="false" native="false" synchronized="false"
  22522. static="false" final="false" visibility="public"
  22523. deprecated="not deprecated">
  22524. <param name="tag" type="java.lang.String"/>
  22525. <exception name="IOException" type="java.io.IOException"/>
  22526. </method>
  22527. <method name="readLong" return="long"
  22528. abstract="false" native="false" synchronized="false"
  22529. static="false" final="false" visibility="public"
  22530. deprecated="not deprecated">
  22531. <param name="tag" type="java.lang.String"/>
  22532. <exception name="IOException" type="java.io.IOException"/>
  22533. </method>
  22534. <method name="readFloat" return="float"
  22535. abstract="false" native="false" synchronized="false"
  22536. static="false" final="false" visibility="public"
  22537. deprecated="not deprecated">
  22538. <param name="tag" type="java.lang.String"/>
  22539. <exception name="IOException" type="java.io.IOException"/>
  22540. </method>
  22541. <method name="readDouble" return="double"
  22542. abstract="false" native="false" synchronized="false"
  22543. static="false" final="false" visibility="public"
  22544. deprecated="not deprecated">
  22545. <param name="tag" type="java.lang.String"/>
  22546. <exception name="IOException" type="java.io.IOException"/>
  22547. </method>
  22548. <method name="readString" return="java.lang.String"
  22549. abstract="false" native="false" synchronized="false"
  22550. static="false" final="false" visibility="public"
  22551. deprecated="not deprecated">
  22552. <param name="tag" type="java.lang.String"/>
  22553. <exception name="IOException" type="java.io.IOException"/>
  22554. </method>
  22555. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  22556. abstract="false" native="false" synchronized="false"
  22557. static="false" final="false" visibility="public"
  22558. deprecated="not deprecated">
  22559. <param name="tag" type="java.lang.String"/>
  22560. <exception name="IOException" type="java.io.IOException"/>
  22561. </method>
  22562. <method name="startRecord"
  22563. abstract="false" native="false" synchronized="false"
  22564. static="false" final="false" visibility="public"
  22565. deprecated="not deprecated">
  22566. <param name="tag" type="java.lang.String"/>
  22567. <exception name="IOException" type="java.io.IOException"/>
  22568. </method>
  22569. <method name="endRecord"
  22570. abstract="false" native="false" synchronized="false"
  22571. static="false" final="false" visibility="public"
  22572. deprecated="not deprecated">
  22573. <param name="tag" type="java.lang.String"/>
  22574. <exception name="IOException" type="java.io.IOException"/>
  22575. </method>
  22576. <method name="startVector" return="org.apache.hadoop.record.Index"
  22577. abstract="false" native="false" synchronized="false"
  22578. static="false" final="false" visibility="public"
  22579. deprecated="not deprecated">
  22580. <param name="tag" type="java.lang.String"/>
  22581. <exception name="IOException" type="java.io.IOException"/>
  22582. </method>
  22583. <method name="endVector"
  22584. abstract="false" native="false" synchronized="false"
  22585. static="false" final="false" visibility="public"
  22586. deprecated="not deprecated">
  22587. <param name="tag" type="java.lang.String"/>
  22588. <exception name="IOException" type="java.io.IOException"/>
  22589. </method>
  22590. <method name="startMap" return="org.apache.hadoop.record.Index"
  22591. abstract="false" native="false" synchronized="false"
  22592. static="false" final="false" visibility="public"
  22593. deprecated="not deprecated">
  22594. <param name="tag" type="java.lang.String"/>
  22595. <exception name="IOException" type="java.io.IOException"/>
  22596. </method>
  22597. <method name="endMap"
  22598. abstract="false" native="false" synchronized="false"
  22599. static="false" final="false" visibility="public"
  22600. deprecated="not deprecated">
  22601. <param name="tag" type="java.lang.String"/>
  22602. <exception name="IOException" type="java.io.IOException"/>
  22603. </method>
  22604. </class>
  22605. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  22606. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  22607. <class name="BinaryRecordOutput" extends="java.lang.Object"
  22608. abstract="false"
  22609. static="false" final="false" visibility="public"
  22610. deprecated="not deprecated">
  22611. <implements name="org.apache.hadoop.record.RecordOutput"/>
  22612. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  22613. static="false" final="false" visibility="public"
  22614. deprecated="not deprecated">
  22615. <doc>
  22616. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  22617. </doc>
  22618. </constructor>
  22619. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  22620. static="false" final="false" visibility="public"
  22621. deprecated="not deprecated">
  22622. <doc>
  22623. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  22624. </doc>
  22625. </constructor>
  22626. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  22627. abstract="false" native="false" synchronized="false"
  22628. static="true" final="false" visibility="public"
  22629. deprecated="not deprecated">
  22630. <param name="out" type="java.io.DataOutput"/>
  22631. <doc>
  22632. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  22633. @param out data output stream
  22634. @return binary record output corresponding to the supplied DataOutput.]]>
  22635. </doc>
  22636. </method>
  22637. <method name="writeByte"
  22638. abstract="false" native="false" synchronized="false"
  22639. static="false" final="false" visibility="public"
  22640. deprecated="not deprecated">
  22641. <param name="b" type="byte"/>
  22642. <param name="tag" type="java.lang.String"/>
  22643. <exception name="IOException" type="java.io.IOException"/>
  22644. </method>
  22645. <method name="writeBool"
  22646. abstract="false" native="false" synchronized="false"
  22647. static="false" final="false" visibility="public"
  22648. deprecated="not deprecated">
  22649. <param name="b" type="boolean"/>
  22650. <param name="tag" type="java.lang.String"/>
  22651. <exception name="IOException" type="java.io.IOException"/>
  22652. </method>
  22653. <method name="writeInt"
  22654. abstract="false" native="false" synchronized="false"
  22655. static="false" final="false" visibility="public"
  22656. deprecated="not deprecated">
  22657. <param name="i" type="int"/>
  22658. <param name="tag" type="java.lang.String"/>
  22659. <exception name="IOException" type="java.io.IOException"/>
  22660. </method>
  22661. <method name="writeLong"
  22662. abstract="false" native="false" synchronized="false"
  22663. static="false" final="false" visibility="public"
  22664. deprecated="not deprecated">
  22665. <param name="l" type="long"/>
  22666. <param name="tag" type="java.lang.String"/>
  22667. <exception name="IOException" type="java.io.IOException"/>
  22668. </method>
  22669. <method name="writeFloat"
  22670. abstract="false" native="false" synchronized="false"
  22671. static="false" final="false" visibility="public"
  22672. deprecated="not deprecated">
  22673. <param name="f" type="float"/>
  22674. <param name="tag" type="java.lang.String"/>
  22675. <exception name="IOException" type="java.io.IOException"/>
  22676. </method>
  22677. <method name="writeDouble"
  22678. abstract="false" native="false" synchronized="false"
  22679. static="false" final="false" visibility="public"
  22680. deprecated="not deprecated">
  22681. <param name="d" type="double"/>
  22682. <param name="tag" type="java.lang.String"/>
  22683. <exception name="IOException" type="java.io.IOException"/>
  22684. </method>
  22685. <method name="writeString"
  22686. abstract="false" native="false" synchronized="false"
  22687. static="false" final="false" visibility="public"
  22688. deprecated="not deprecated">
  22689. <param name="s" type="java.lang.String"/>
  22690. <param name="tag" type="java.lang.String"/>
  22691. <exception name="IOException" type="java.io.IOException"/>
  22692. </method>
  22693. <method name="writeBuffer"
  22694. abstract="false" native="false" synchronized="false"
  22695. static="false" final="false" visibility="public"
  22696. deprecated="not deprecated">
  22697. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  22698. <param name="tag" type="java.lang.String"/>
  22699. <exception name="IOException" type="java.io.IOException"/>
  22700. </method>
  22701. <method name="startRecord"
  22702. abstract="false" native="false" synchronized="false"
  22703. static="false" final="false" visibility="public"
  22704. deprecated="not deprecated">
  22705. <param name="r" type="org.apache.hadoop.record.Record"/>
  22706. <param name="tag" type="java.lang.String"/>
  22707. <exception name="IOException" type="java.io.IOException"/>
  22708. </method>
  22709. <method name="endRecord"
  22710. abstract="false" native="false" synchronized="false"
  22711. static="false" final="false" visibility="public"
  22712. deprecated="not deprecated">
  22713. <param name="r" type="org.apache.hadoop.record.Record"/>
  22714. <param name="tag" type="java.lang.String"/>
  22715. <exception name="IOException" type="java.io.IOException"/>
  22716. </method>
  22717. <method name="startVector"
  22718. abstract="false" native="false" synchronized="false"
  22719. static="false" final="false" visibility="public"
  22720. deprecated="not deprecated">
  22721. <param name="v" type="java.util.ArrayList"/>
  22722. <param name="tag" type="java.lang.String"/>
  22723. <exception name="IOException" type="java.io.IOException"/>
  22724. </method>
  22725. <method name="endVector"
  22726. abstract="false" native="false" synchronized="false"
  22727. static="false" final="false" visibility="public"
  22728. deprecated="not deprecated">
  22729. <param name="v" type="java.util.ArrayList"/>
  22730. <param name="tag" type="java.lang.String"/>
  22731. <exception name="IOException" type="java.io.IOException"/>
  22732. </method>
  22733. <method name="startMap"
  22734. abstract="false" native="false" synchronized="false"
  22735. static="false" final="false" visibility="public"
  22736. deprecated="not deprecated">
  22737. <param name="v" type="java.util.TreeMap"/>
  22738. <param name="tag" type="java.lang.String"/>
  22739. <exception name="IOException" type="java.io.IOException"/>
  22740. </method>
  22741. <method name="endMap"
  22742. abstract="false" native="false" synchronized="false"
  22743. static="false" final="false" visibility="public"
  22744. deprecated="not deprecated">
  22745. <param name="v" type="java.util.TreeMap"/>
  22746. <param name="tag" type="java.lang.String"/>
  22747. <exception name="IOException" type="java.io.IOException"/>
  22748. </method>
  22749. </class>
  22750. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  22751. <!-- start class org.apache.hadoop.record.Buffer -->
  22752. <class name="Buffer" extends="java.lang.Object"
  22753. abstract="false"
  22754. static="false" final="false" visibility="public"
  22755. deprecated="not deprecated">
  22756. <implements name="java.lang.Comparable"/>
  22757. <implements name="java.lang.Cloneable"/>
  22758. <constructor name="Buffer"
  22759. static="false" final="false" visibility="public"
  22760. deprecated="not deprecated">
  22761. <doc>
  22762. <![CDATA[Create a zero-count sequence.]]>
  22763. </doc>
  22764. </constructor>
  22765. <constructor name="Buffer" type="byte[]"
  22766. static="false" final="false" visibility="public"
  22767. deprecated="not deprecated">
  22768. <doc>
  22769. <![CDATA[Create a Buffer using the byte array as the initial value.
  22770. @param bytes This array becomes the backing storage for the object.]]>
  22771. </doc>
  22772. </constructor>
  22773. <constructor name="Buffer" type="byte[], int, int"
  22774. static="false" final="false" visibility="public"
  22775. deprecated="not deprecated">
  22776. <doc>
  22777. <![CDATA[Create a Buffer using the byte range as the initial value.
  22778. @param bytes Copy of this array becomes the backing storage for the object.
  22779. @param offset offset into byte array
  22780. @param length length of data]]>
  22781. </doc>
  22782. </constructor>
  22783. <method name="set"
  22784. abstract="false" native="false" synchronized="false"
  22785. static="false" final="false" visibility="public"
  22786. deprecated="not deprecated">
  22787. <param name="bytes" type="byte[]"/>
  22788. <doc>
  22789. <![CDATA[Use the specified bytes array as underlying sequence.
  22790. @param bytes byte sequence]]>
  22791. </doc>
  22792. </method>
  22793. <method name="copy"
  22794. abstract="false" native="false" synchronized="false"
  22795. static="false" final="true" visibility="public"
  22796. deprecated="not deprecated">
  22797. <param name="bytes" type="byte[]"/>
  22798. <param name="offset" type="int"/>
  22799. <param name="length" type="int"/>
  22800. <doc>
  22801. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  22802. @param bytes byte array to be assigned
  22803. @param offset offset into byte array
  22804. @param length length of data]]>
  22805. </doc>
  22806. </method>
  22807. <method name="get" return="byte[]"
  22808. abstract="false" native="false" synchronized="false"
  22809. static="false" final="false" visibility="public"
  22810. deprecated="not deprecated">
  22811. <doc>
  22812. <![CDATA[Get the data from the Buffer.
  22813. @return The data is only valid between 0 and getCount() - 1.]]>
  22814. </doc>
  22815. </method>
  22816. <method name="getCount" return="int"
  22817. abstract="false" native="false" synchronized="false"
  22818. static="false" final="false" visibility="public"
  22819. deprecated="not deprecated">
  22820. <doc>
  22821. <![CDATA[Get the current count of the buffer.]]>
  22822. </doc>
  22823. </method>
  22824. <method name="getCapacity" return="int"
  22825. abstract="false" native="false" synchronized="false"
  22826. static="false" final="false" visibility="public"
  22827. deprecated="not deprecated">
  22828. <doc>
  22829. <![CDATA[Get the capacity, which is the maximum count that could handled without
  22830. resizing the backing storage.
  22831. @return The number of bytes]]>
  22832. </doc>
  22833. </method>
  22834. <method name="setCapacity"
  22835. abstract="false" native="false" synchronized="false"
  22836. static="false" final="false" visibility="public"
  22837. deprecated="not deprecated">
  22838. <param name="newCapacity" type="int"/>
  22839. <doc>
  22840. <![CDATA[Change the capacity of the backing storage.
  22841. The data is preserved if newCapacity >= getCount().
  22842. @param newCapacity The new capacity in bytes.]]>
  22843. </doc>
  22844. </method>
  22845. <method name="reset"
  22846. abstract="false" native="false" synchronized="false"
  22847. static="false" final="false" visibility="public"
  22848. deprecated="not deprecated">
  22849. <doc>
  22850. <![CDATA[Reset the buffer to 0 size]]>
  22851. </doc>
  22852. </method>
  22853. <method name="truncate"
  22854. abstract="false" native="false" synchronized="false"
  22855. static="false" final="false" visibility="public"
  22856. deprecated="not deprecated">
  22857. <doc>
  22858. <![CDATA[Change the capacity of the backing store to be the same as the current
  22859. count of buffer.]]>
  22860. </doc>
  22861. </method>
  22862. <method name="append"
  22863. abstract="false" native="false" synchronized="false"
  22864. static="false" final="false" visibility="public"
  22865. deprecated="not deprecated">
  22866. <param name="bytes" type="byte[]"/>
  22867. <param name="offset" type="int"/>
  22868. <param name="length" type="int"/>
  22869. <doc>
  22870. <![CDATA[Append specified bytes to the buffer.
  22871. @param bytes byte array to be appended
  22872. @param offset offset into byte array
  22873. @param length length of data]]>
  22874. </doc>
  22875. </method>
  22876. <method name="append"
  22877. abstract="false" native="false" synchronized="false"
  22878. static="false" final="false" visibility="public"
  22879. deprecated="not deprecated">
  22880. <param name="bytes" type="byte[]"/>
  22881. <doc>
  22882. <![CDATA[Append specified bytes to the buffer
  22883. @param bytes byte array to be appended]]>
  22884. </doc>
  22885. </method>
  22886. <method name="hashCode" return="int"
  22887. abstract="false" native="false" synchronized="false"
  22888. static="false" final="false" visibility="public"
  22889. deprecated="not deprecated">
  22890. </method>
  22891. <method name="compareTo" return="int"
  22892. abstract="false" native="false" synchronized="false"
  22893. static="false" final="false" visibility="public"
  22894. deprecated="not deprecated">
  22895. <param name="other" type="java.lang.Object"/>
  22896. <doc>
  22897. <![CDATA[Define the sort order of the Buffer.
  22898. @param other The other buffer
  22899. @return Positive if this is bigger than other, 0 if they are equal, and
  22900. negative if this is smaller than other.]]>
  22901. </doc>
  22902. </method>
  22903. <method name="equals" return="boolean"
  22904. abstract="false" native="false" synchronized="false"
  22905. static="false" final="false" visibility="public"
  22906. deprecated="not deprecated">
  22907. <param name="other" type="java.lang.Object"/>
  22908. </method>
  22909. <method name="toString" return="java.lang.String"
  22910. abstract="false" native="false" synchronized="false"
  22911. static="false" final="false" visibility="public"
  22912. deprecated="not deprecated">
  22913. </method>
  22914. <method name="toString" return="java.lang.String"
  22915. abstract="false" native="false" synchronized="false"
  22916. static="false" final="false" visibility="public"
  22917. deprecated="not deprecated">
  22918. <param name="charsetName" type="java.lang.String"/>
  22919. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  22920. <doc>
  22921. <![CDATA[Convert the byte buffer to a string an specific character encoding
  22922. @param charsetName Valid Java Character Set Name]]>
  22923. </doc>
  22924. </method>
  22925. <method name="clone" return="java.lang.Object"
  22926. abstract="false" native="false" synchronized="false"
  22927. static="false" final="false" visibility="public"
  22928. deprecated="not deprecated">
  22929. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  22930. </method>
  22931. <doc>
  22932. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  22933. It is resizable and distinguishes between the count of the seqeunce and
  22934. the current capacity.]]>
  22935. </doc>
  22936. </class>
  22937. <!-- end class org.apache.hadoop.record.Buffer -->
  22938. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  22939. <class name="CsvRecordInput" extends="java.lang.Object"
  22940. abstract="false"
  22941. static="false" final="false" visibility="public"
  22942. deprecated="not deprecated">
  22943. <implements name="org.apache.hadoop.record.RecordInput"/>
  22944. <constructor name="CsvRecordInput" type="java.io.InputStream"
  22945. static="false" final="false" visibility="public"
  22946. deprecated="not deprecated">
  22947. <doc>
  22948. <![CDATA[Creates a new instance of CsvRecordInput]]>
  22949. </doc>
  22950. </constructor>
  22951. <method name="readByte" return="byte"
  22952. abstract="false" native="false" synchronized="false"
  22953. static="false" final="false" visibility="public"
  22954. deprecated="not deprecated">
  22955. <param name="tag" type="java.lang.String"/>
  22956. <exception name="IOException" type="java.io.IOException"/>
  22957. </method>
  22958. <method name="readBool" return="boolean"
  22959. abstract="false" native="false" synchronized="false"
  22960. static="false" final="false" visibility="public"
  22961. deprecated="not deprecated">
  22962. <param name="tag" type="java.lang.String"/>
  22963. <exception name="IOException" type="java.io.IOException"/>
  22964. </method>
  22965. <method name="readInt" return="int"
  22966. abstract="false" native="false" synchronized="false"
  22967. static="false" final="false" visibility="public"
  22968. deprecated="not deprecated">
  22969. <param name="tag" type="java.lang.String"/>
  22970. <exception name="IOException" type="java.io.IOException"/>
  22971. </method>
  22972. <method name="readLong" return="long"
  22973. abstract="false" native="false" synchronized="false"
  22974. static="false" final="false" visibility="public"
  22975. deprecated="not deprecated">
  22976. <param name="tag" type="java.lang.String"/>
  22977. <exception name="IOException" type="java.io.IOException"/>
  22978. </method>
  22979. <method name="readFloat" return="float"
  22980. abstract="false" native="false" synchronized="false"
  22981. static="false" final="false" visibility="public"
  22982. deprecated="not deprecated">
  22983. <param name="tag" type="java.lang.String"/>
  22984. <exception name="IOException" type="java.io.IOException"/>
  22985. </method>
  22986. <method name="readDouble" return="double"
  22987. abstract="false" native="false" synchronized="false"
  22988. static="false" final="false" visibility="public"
  22989. deprecated="not deprecated">
  22990. <param name="tag" type="java.lang.String"/>
  22991. <exception name="IOException" type="java.io.IOException"/>
  22992. </method>
  22993. <method name="readString" return="java.lang.String"
  22994. abstract="false" native="false" synchronized="false"
  22995. static="false" final="false" visibility="public"
  22996. deprecated="not deprecated">
  22997. <param name="tag" type="java.lang.String"/>
  22998. <exception name="IOException" type="java.io.IOException"/>
  22999. </method>
  23000. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  23001. abstract="false" native="false" synchronized="false"
  23002. static="false" final="false" visibility="public"
  23003. deprecated="not deprecated">
  23004. <param name="tag" type="java.lang.String"/>
  23005. <exception name="IOException" type="java.io.IOException"/>
  23006. </method>
  23007. <method name="startRecord"
  23008. abstract="false" native="false" synchronized="false"
  23009. static="false" final="false" visibility="public"
  23010. deprecated="not deprecated">
  23011. <param name="tag" type="java.lang.String"/>
  23012. <exception name="IOException" type="java.io.IOException"/>
  23013. </method>
  23014. <method name="endRecord"
  23015. abstract="false" native="false" synchronized="false"
  23016. static="false" final="false" visibility="public"
  23017. deprecated="not deprecated">
  23018. <param name="tag" type="java.lang.String"/>
  23019. <exception name="IOException" type="java.io.IOException"/>
  23020. </method>
  23021. <method name="startVector" return="org.apache.hadoop.record.Index"
  23022. abstract="false" native="false" synchronized="false"
  23023. static="false" final="false" visibility="public"
  23024. deprecated="not deprecated">
  23025. <param name="tag" type="java.lang.String"/>
  23026. <exception name="IOException" type="java.io.IOException"/>
  23027. </method>
  23028. <method name="endVector"
  23029. abstract="false" native="false" synchronized="false"
  23030. static="false" final="false" visibility="public"
  23031. deprecated="not deprecated">
  23032. <param name="tag" type="java.lang.String"/>
  23033. <exception name="IOException" type="java.io.IOException"/>
  23034. </method>
  23035. <method name="startMap" return="org.apache.hadoop.record.Index"
  23036. abstract="false" native="false" synchronized="false"
  23037. static="false" final="false" visibility="public"
  23038. deprecated="not deprecated">
  23039. <param name="tag" type="java.lang.String"/>
  23040. <exception name="IOException" type="java.io.IOException"/>
  23041. </method>
  23042. <method name="endMap"
  23043. abstract="false" native="false" synchronized="false"
  23044. static="false" final="false" visibility="public"
  23045. deprecated="not deprecated">
  23046. <param name="tag" type="java.lang.String"/>
  23047. <exception name="IOException" type="java.io.IOException"/>
  23048. </method>
  23049. </class>
  23050. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  23051. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  23052. <class name="CsvRecordOutput" extends="java.lang.Object"
  23053. abstract="false"
  23054. static="false" final="false" visibility="public"
  23055. deprecated="not deprecated">
  23056. <implements name="org.apache.hadoop.record.RecordOutput"/>
  23057. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  23058. static="false" final="false" visibility="public"
  23059. deprecated="not deprecated">
  23060. <doc>
  23061. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  23062. </doc>
  23063. </constructor>
  23064. <method name="writeByte"
  23065. abstract="false" native="false" synchronized="false"
  23066. static="false" final="false" visibility="public"
  23067. deprecated="not deprecated">
  23068. <param name="b" type="byte"/>
  23069. <param name="tag" type="java.lang.String"/>
  23070. <exception name="IOException" type="java.io.IOException"/>
  23071. </method>
  23072. <method name="writeBool"
  23073. abstract="false" native="false" synchronized="false"
  23074. static="false" final="false" visibility="public"
  23075. deprecated="not deprecated">
  23076. <param name="b" type="boolean"/>
  23077. <param name="tag" type="java.lang.String"/>
  23078. <exception name="IOException" type="java.io.IOException"/>
  23079. </method>
  23080. <method name="writeInt"
  23081. abstract="false" native="false" synchronized="false"
  23082. static="false" final="false" visibility="public"
  23083. deprecated="not deprecated">
  23084. <param name="i" type="int"/>
  23085. <param name="tag" type="java.lang.String"/>
  23086. <exception name="IOException" type="java.io.IOException"/>
  23087. </method>
  23088. <method name="writeLong"
  23089. abstract="false" native="false" synchronized="false"
  23090. static="false" final="false" visibility="public"
  23091. deprecated="not deprecated">
  23092. <param name="l" type="long"/>
  23093. <param name="tag" type="java.lang.String"/>
  23094. <exception name="IOException" type="java.io.IOException"/>
  23095. </method>
  23096. <method name="writeFloat"
  23097. abstract="false" native="false" synchronized="false"
  23098. static="false" final="false" visibility="public"
  23099. deprecated="not deprecated">
  23100. <param name="f" type="float"/>
  23101. <param name="tag" type="java.lang.String"/>
  23102. <exception name="IOException" type="java.io.IOException"/>
  23103. </method>
  23104. <method name="writeDouble"
  23105. abstract="false" native="false" synchronized="false"
  23106. static="false" final="false" visibility="public"
  23107. deprecated="not deprecated">
  23108. <param name="d" type="double"/>
  23109. <param name="tag" type="java.lang.String"/>
  23110. <exception name="IOException" type="java.io.IOException"/>
  23111. </method>
  23112. <method name="writeString"
  23113. abstract="false" native="false" synchronized="false"
  23114. static="false" final="false" visibility="public"
  23115. deprecated="not deprecated">
  23116. <param name="s" type="java.lang.String"/>
  23117. <param name="tag" type="java.lang.String"/>
  23118. <exception name="IOException" type="java.io.IOException"/>
  23119. </method>
  23120. <method name="writeBuffer"
  23121. abstract="false" native="false" synchronized="false"
  23122. static="false" final="false" visibility="public"
  23123. deprecated="not deprecated">
  23124. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  23125. <param name="tag" type="java.lang.String"/>
  23126. <exception name="IOException" type="java.io.IOException"/>
  23127. </method>
  23128. <method name="startRecord"
  23129. abstract="false" native="false" synchronized="false"
  23130. static="false" final="false" visibility="public"
  23131. deprecated="not deprecated">
  23132. <param name="r" type="org.apache.hadoop.record.Record"/>
  23133. <param name="tag" type="java.lang.String"/>
  23134. <exception name="IOException" type="java.io.IOException"/>
  23135. </method>
  23136. <method name="endRecord"
  23137. abstract="false" native="false" synchronized="false"
  23138. static="false" final="false" visibility="public"
  23139. deprecated="not deprecated">
  23140. <param name="r" type="org.apache.hadoop.record.Record"/>
  23141. <param name="tag" type="java.lang.String"/>
  23142. <exception name="IOException" type="java.io.IOException"/>
  23143. </method>
  23144. <method name="startVector"
  23145. abstract="false" native="false" synchronized="false"
  23146. static="false" final="false" visibility="public"
  23147. deprecated="not deprecated">
  23148. <param name="v" type="java.util.ArrayList"/>
  23149. <param name="tag" type="java.lang.String"/>
  23150. <exception name="IOException" type="java.io.IOException"/>
  23151. </method>
  23152. <method name="endVector"
  23153. abstract="false" native="false" synchronized="false"
  23154. static="false" final="false" visibility="public"
  23155. deprecated="not deprecated">
  23156. <param name="v" type="java.util.ArrayList"/>
  23157. <param name="tag" type="java.lang.String"/>
  23158. <exception name="IOException" type="java.io.IOException"/>
  23159. </method>
  23160. <method name="startMap"
  23161. abstract="false" native="false" synchronized="false"
  23162. static="false" final="false" visibility="public"
  23163. deprecated="not deprecated">
  23164. <param name="v" type="java.util.TreeMap"/>
  23165. <param name="tag" type="java.lang.String"/>
  23166. <exception name="IOException" type="java.io.IOException"/>
  23167. </method>
  23168. <method name="endMap"
  23169. abstract="false" native="false" synchronized="false"
  23170. static="false" final="false" visibility="public"
  23171. deprecated="not deprecated">
  23172. <param name="v" type="java.util.TreeMap"/>
  23173. <param name="tag" type="java.lang.String"/>
  23174. <exception name="IOException" type="java.io.IOException"/>
  23175. </method>
  23176. </class>
  23177. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  23178. <!-- start interface org.apache.hadoop.record.Index -->
  23179. <interface name="Index" abstract="true"
  23180. static="false" final="false" visibility="public"
  23181. deprecated="not deprecated">
  23182. <method name="done" return="boolean"
  23183. abstract="false" native="false" synchronized="false"
  23184. static="false" final="false" visibility="public"
  23185. deprecated="not deprecated">
  23186. </method>
  23187. <method name="incr"
  23188. abstract="false" native="false" synchronized="false"
  23189. static="false" final="false" visibility="public"
  23190. deprecated="not deprecated">
  23191. </method>
  23192. <doc>
  23193. <![CDATA[Interface that acts as an iterator for deserializing maps.
  23194. The deserializer returns an instance that the record uses to
  23195. read vectors and maps. An example of usage is as follows:
  23196. <code>
  23197. Index idx = startVector(...);
  23198. while (!idx.done()) {
  23199. .... // read element of a vector
  23200. idx.incr();
  23201. }
  23202. </code>]]>
  23203. </doc>
  23204. </interface>
  23205. <!-- end interface org.apache.hadoop.record.Index -->
  23206. <!-- start class org.apache.hadoop.record.Record -->
  23207. <class name="Record" extends="java.lang.Object"
  23208. abstract="true"
  23209. static="false" final="false" visibility="public"
  23210. deprecated="not deprecated">
  23211. <implements name="org.apache.hadoop.io.WritableComparable"/>
  23212. <implements name="java.lang.Cloneable"/>
  23213. <constructor name="Record"
  23214. static="false" final="false" visibility="public"
  23215. deprecated="not deprecated">
  23216. </constructor>
  23217. <method name="serialize"
  23218. abstract="true" native="false" synchronized="false"
  23219. static="false" final="false" visibility="public"
  23220. deprecated="not deprecated">
  23221. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  23222. <param name="tag" type="java.lang.String"/>
  23223. <exception name="IOException" type="java.io.IOException"/>
  23224. <doc>
  23225. <![CDATA[Serialize a record with tag (ususally field name)
  23226. @param rout Record output destination
  23227. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  23228. </doc>
  23229. </method>
  23230. <method name="deserialize"
  23231. abstract="true" native="false" synchronized="false"
  23232. static="false" final="false" visibility="public"
  23233. deprecated="not deprecated">
  23234. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  23235. <param name="tag" type="java.lang.String"/>
  23236. <exception name="IOException" type="java.io.IOException"/>
  23237. <doc>
  23238. <![CDATA[Deserialize a record with a tag (usually field name)
  23239. @param rin Record input source
  23240. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  23241. </doc>
  23242. </method>
  23243. <method name="compareTo" return="int"
  23244. abstract="true" native="false" synchronized="false"
  23245. static="false" final="false" visibility="public"
  23246. deprecated="not deprecated">
  23247. <param name="peer" type="java.lang.Object"/>
  23248. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  23249. </method>
  23250. <method name="serialize"
  23251. abstract="false" native="false" synchronized="false"
  23252. static="false" final="false" visibility="public"
  23253. deprecated="not deprecated">
  23254. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  23255. <exception name="IOException" type="java.io.IOException"/>
  23256. <doc>
  23257. <![CDATA[Serialize a record without a tag
  23258. @param rout Record output destination]]>
  23259. </doc>
  23260. </method>
  23261. <method name="deserialize"
  23262. abstract="false" native="false" synchronized="false"
  23263. static="false" final="false" visibility="public"
  23264. deprecated="not deprecated">
  23265. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  23266. <exception name="IOException" type="java.io.IOException"/>
  23267. <doc>
  23268. <![CDATA[Deserialize a record without a tag
  23269. @param rin Record input source]]>
  23270. </doc>
  23271. </method>
  23272. <method name="write"
  23273. abstract="false" native="false" synchronized="false"
  23274. static="false" final="false" visibility="public"
  23275. deprecated="not deprecated">
  23276. <param name="out" type="java.io.DataOutput"/>
  23277. <exception name="IOException" type="java.io.IOException"/>
  23278. </method>
  23279. <method name="readFields"
  23280. abstract="false" native="false" synchronized="false"
  23281. static="false" final="false" visibility="public"
  23282. deprecated="not deprecated">
  23283. <param name="din" type="java.io.DataInput"/>
  23284. <exception name="IOException" type="java.io.IOException"/>
  23285. </method>
  23286. <method name="toString" return="java.lang.String"
  23287. abstract="false" native="false" synchronized="false"
  23288. static="false" final="false" visibility="public"
  23289. deprecated="not deprecated">
  23290. </method>
  23291. <doc>
  23292. <![CDATA[Abstract class that is extended by generated classes.]]>
  23293. </doc>
  23294. </class>
  23295. <!-- end class org.apache.hadoop.record.Record -->
  23296. <!-- start class org.apache.hadoop.record.RecordComparator -->
  23297. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  23298. abstract="true"
  23299. static="false" final="false" visibility="public"
  23300. deprecated="not deprecated">
  23301. <constructor name="RecordComparator" type="java.lang.Class"
  23302. static="false" final="false" visibility="protected"
  23303. deprecated="not deprecated">
  23304. <doc>
  23305. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  23306. </doc>
  23307. </constructor>
  23308. <method name="compare" return="int"
  23309. abstract="true" native="false" synchronized="false"
  23310. static="false" final="false" visibility="public"
  23311. deprecated="not deprecated">
  23312. <param name="b1" type="byte[]"/>
  23313. <param name="s1" type="int"/>
  23314. <param name="l1" type="int"/>
  23315. <param name="b2" type="byte[]"/>
  23316. <param name="s2" type="int"/>
  23317. <param name="l2" type="int"/>
  23318. </method>
  23319. <method name="define"
  23320. abstract="false" native="false" synchronized="true"
  23321. static="true" final="false" visibility="public"
  23322. deprecated="not deprecated">
  23323. <param name="c" type="java.lang.Class"/>
  23324. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  23325. <doc>
  23326. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  23327. @param c record classs for which a raw comparator is provided
  23328. @param comparator Raw comparator instance for class c]]>
  23329. </doc>
  23330. </method>
  23331. <doc>
  23332. <![CDATA[A raw record comparator base class]]>
  23333. </doc>
  23334. </class>
  23335. <!-- end class org.apache.hadoop.record.RecordComparator -->
  23336. <!-- start interface org.apache.hadoop.record.RecordInput -->
  23337. <interface name="RecordInput" abstract="true"
  23338. static="false" final="false" visibility="public"
  23339. deprecated="not deprecated">
  23340. <method name="readByte" return="byte"
  23341. abstract="false" native="false" synchronized="false"
  23342. static="false" final="false" visibility="public"
  23343. deprecated="not deprecated">
  23344. <param name="tag" type="java.lang.String"/>
  23345. <exception name="IOException" type="java.io.IOException"/>
  23346. <doc>
  23347. <![CDATA[Read a byte from serialized record.
  23348. @param tag Used by tagged serialization formats (such as XML)
  23349. @return value read from serialized record.]]>
  23350. </doc>
  23351. </method>
  23352. <method name="readBool" return="boolean"
  23353. abstract="false" native="false" synchronized="false"
  23354. static="false" final="false" visibility="public"
  23355. deprecated="not deprecated">
  23356. <param name="tag" type="java.lang.String"/>
  23357. <exception name="IOException" type="java.io.IOException"/>
  23358. <doc>
  23359. <![CDATA[Read a boolean from serialized record.
  23360. @param tag Used by tagged serialization formats (such as XML)
  23361. @return value read from serialized record.]]>
  23362. </doc>
  23363. </method>
  23364. <method name="readInt" return="int"
  23365. abstract="false" native="false" synchronized="false"
  23366. static="false" final="false" visibility="public"
  23367. deprecated="not deprecated">
  23368. <param name="tag" type="java.lang.String"/>
  23369. <exception name="IOException" type="java.io.IOException"/>
  23370. <doc>
  23371. <![CDATA[Read an integer from serialized record.
  23372. @param tag Used by tagged serialization formats (such as XML)
  23373. @return value read from serialized record.]]>
  23374. </doc>
  23375. </method>
  23376. <method name="readLong" return="long"
  23377. abstract="false" native="false" synchronized="false"
  23378. static="false" final="false" visibility="public"
  23379. deprecated="not deprecated">
  23380. <param name="tag" type="java.lang.String"/>
  23381. <exception name="IOException" type="java.io.IOException"/>
  23382. <doc>
  23383. <![CDATA[Read a long integer from serialized record.
  23384. @param tag Used by tagged serialization formats (such as XML)
  23385. @return value read from serialized record.]]>
  23386. </doc>
  23387. </method>
  23388. <method name="readFloat" return="float"
  23389. abstract="false" native="false" synchronized="false"
  23390. static="false" final="false" visibility="public"
  23391. deprecated="not deprecated">
  23392. <param name="tag" type="java.lang.String"/>
  23393. <exception name="IOException" type="java.io.IOException"/>
  23394. <doc>
  23395. <![CDATA[Read a single-precision float from serialized record.
  23396. @param tag Used by tagged serialization formats (such as XML)
  23397. @return value read from serialized record.]]>
  23398. </doc>
  23399. </method>
  23400. <method name="readDouble" return="double"
  23401. abstract="false" native="false" synchronized="false"
  23402. static="false" final="false" visibility="public"
  23403. deprecated="not deprecated">
  23404. <param name="tag" type="java.lang.String"/>
  23405. <exception name="IOException" type="java.io.IOException"/>
  23406. <doc>
  23407. <![CDATA[Read a double-precision number from serialized record.
  23408. @param tag Used by tagged serialization formats (such as XML)
  23409. @return value read from serialized record.]]>
  23410. </doc>
  23411. </method>
  23412. <method name="readString" return="java.lang.String"
  23413. abstract="false" native="false" synchronized="false"
  23414. static="false" final="false" visibility="public"
  23415. deprecated="not deprecated">
  23416. <param name="tag" type="java.lang.String"/>
  23417. <exception name="IOException" type="java.io.IOException"/>
  23418. <doc>
  23419. <![CDATA[Read a UTF-8 encoded string from serialized record.
  23420. @param tag Used by tagged serialization formats (such as XML)
  23421. @return value read from serialized record.]]>
  23422. </doc>
  23423. </method>
  23424. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  23425. abstract="false" native="false" synchronized="false"
  23426. static="false" final="false" visibility="public"
  23427. deprecated="not deprecated">
  23428. <param name="tag" type="java.lang.String"/>
  23429. <exception name="IOException" type="java.io.IOException"/>
  23430. <doc>
  23431. <![CDATA[Read byte array from serialized record.
  23432. @param tag Used by tagged serialization formats (such as XML)
  23433. @return value read from serialized record.]]>
  23434. </doc>
  23435. </method>
  23436. <method name="startRecord"
  23437. abstract="false" native="false" synchronized="false"
  23438. static="false" final="false" visibility="public"
  23439. deprecated="not deprecated">
  23440. <param name="tag" type="java.lang.String"/>
  23441. <exception name="IOException" type="java.io.IOException"/>
  23442. <doc>
  23443. <![CDATA[Check the mark for start of the serialized record.
  23444. @param tag Used by tagged serialization formats (such as XML)]]>
  23445. </doc>
  23446. </method>
  23447. <method name="endRecord"
  23448. abstract="false" native="false" synchronized="false"
  23449. static="false" final="false" visibility="public"
  23450. deprecated="not deprecated">
  23451. <param name="tag" type="java.lang.String"/>
  23452. <exception name="IOException" type="java.io.IOException"/>
  23453. <doc>
  23454. <![CDATA[Check the mark for end of the serialized record.
  23455. @param tag Used by tagged serialization formats (such as XML)]]>
  23456. </doc>
  23457. </method>
  23458. <method name="startVector" return="org.apache.hadoop.record.Index"
  23459. abstract="false" native="false" synchronized="false"
  23460. static="false" final="false" visibility="public"
  23461. deprecated="not deprecated">
  23462. <param name="tag" type="java.lang.String"/>
  23463. <exception name="IOException" type="java.io.IOException"/>
  23464. <doc>
  23465. <![CDATA[Check the mark for start of the serialized vector.
  23466. @param tag Used by tagged serialization formats (such as XML)
  23467. @return Index that is used to count the number of elements.]]>
  23468. </doc>
  23469. </method>
  23470. <method name="endVector"
  23471. abstract="false" native="false" synchronized="false"
  23472. static="false" final="false" visibility="public"
  23473. deprecated="not deprecated">
  23474. <param name="tag" type="java.lang.String"/>
  23475. <exception name="IOException" type="java.io.IOException"/>
  23476. <doc>
  23477. <![CDATA[Check the mark for end of the serialized vector.
  23478. @param tag Used by tagged serialization formats (such as XML)]]>
  23479. </doc>
  23480. </method>
  23481. <method name="startMap" return="org.apache.hadoop.record.Index"
  23482. abstract="false" native="false" synchronized="false"
  23483. static="false" final="false" visibility="public"
  23484. deprecated="not deprecated">
  23485. <param name="tag" type="java.lang.String"/>
  23486. <exception name="IOException" type="java.io.IOException"/>
  23487. <doc>
  23488. <![CDATA[Check the mark for start of the serialized map.
  23489. @param tag Used by tagged serialization formats (such as XML)
  23490. @return Index that is used to count the number of map entries.]]>
  23491. </doc>
  23492. </method>
  23493. <method name="endMap"
  23494. abstract="false" native="false" synchronized="false"
  23495. static="false" final="false" visibility="public"
  23496. deprecated="not deprecated">
  23497. <param name="tag" type="java.lang.String"/>
  23498. <exception name="IOException" type="java.io.IOException"/>
  23499. <doc>
  23500. <![CDATA[Check the mark for end of the serialized map.
  23501. @param tag Used by tagged serialization formats (such as XML)]]>
  23502. </doc>
  23503. </method>
  23504. <doc>
  23505. <![CDATA[Interface that all the Deserializers have to implement.]]>
  23506. </doc>
  23507. </interface>
  23508. <!-- end interface org.apache.hadoop.record.RecordInput -->
  23509. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  23510. <interface name="RecordOutput" abstract="true"
  23511. static="false" final="false" visibility="public"
  23512. deprecated="not deprecated">
  23513. <method name="writeByte"
  23514. abstract="false" native="false" synchronized="false"
  23515. static="false" final="false" visibility="public"
  23516. deprecated="not deprecated">
  23517. <param name="b" type="byte"/>
  23518. <param name="tag" type="java.lang.String"/>
  23519. <exception name="IOException" type="java.io.IOException"/>
  23520. <doc>
  23521. <![CDATA[Write a byte to serialized record.
  23522. @param b Byte to be serialized
  23523. @param tag Used by tagged serialization formats (such as XML)
  23524. @throws IOException Indicates error in serialization]]>
  23525. </doc>
  23526. </method>
  23527. <method name="writeBool"
  23528. abstract="false" native="false" synchronized="false"
  23529. static="false" final="false" visibility="public"
  23530. deprecated="not deprecated">
  23531. <param name="b" type="boolean"/>
  23532. <param name="tag" type="java.lang.String"/>
  23533. <exception name="IOException" type="java.io.IOException"/>
  23534. <doc>
  23535. <![CDATA[Write a boolean to serialized record.
  23536. @param b Boolean to be serialized
  23537. @param tag Used by tagged serialization formats (such as XML)
  23538. @throws IOException Indicates error in serialization]]>
  23539. </doc>
  23540. </method>
  23541. <method name="writeInt"
  23542. abstract="false" native="false" synchronized="false"
  23543. static="false" final="false" visibility="public"
  23544. deprecated="not deprecated">
  23545. <param name="i" type="int"/>
  23546. <param name="tag" type="java.lang.String"/>
  23547. <exception name="IOException" type="java.io.IOException"/>
  23548. <doc>
  23549. <![CDATA[Write an integer to serialized record.
  23550. @param i Integer to be serialized
  23551. @param tag Used by tagged serialization formats (such as XML)
  23552. @throws IOException Indicates error in serialization]]>
  23553. </doc>
  23554. </method>
  23555. <method name="writeLong"
  23556. abstract="false" native="false" synchronized="false"
  23557. static="false" final="false" visibility="public"
  23558. deprecated="not deprecated">
  23559. <param name="l" type="long"/>
  23560. <param name="tag" type="java.lang.String"/>
  23561. <exception name="IOException" type="java.io.IOException"/>
  23562. <doc>
  23563. <![CDATA[Write a long integer to serialized record.
  23564. @param l Long to be serialized
  23565. @param tag Used by tagged serialization formats (such as XML)
  23566. @throws IOException Indicates error in serialization]]>
  23567. </doc>
  23568. </method>
  23569. <method name="writeFloat"
  23570. abstract="false" native="false" synchronized="false"
  23571. static="false" final="false" visibility="public"
  23572. deprecated="not deprecated">
  23573. <param name="f" type="float"/>
  23574. <param name="tag" type="java.lang.String"/>
  23575. <exception name="IOException" type="java.io.IOException"/>
  23576. <doc>
  23577. <![CDATA[Write a single-precision float to serialized record.
  23578. @param f Float to be serialized
  23579. @param tag Used by tagged serialization formats (such as XML)
  23580. @throws IOException Indicates error in serialization]]>
  23581. </doc>
  23582. </method>
  23583. <method name="writeDouble"
  23584. abstract="false" native="false" synchronized="false"
  23585. static="false" final="false" visibility="public"
  23586. deprecated="not deprecated">
  23587. <param name="d" type="double"/>
  23588. <param name="tag" type="java.lang.String"/>
  23589. <exception name="IOException" type="java.io.IOException"/>
  23590. <doc>
  23591. <![CDATA[Write a double precision floating point number to serialized record.
  23592. @param d Double to be serialized
  23593. @param tag Used by tagged serialization formats (such as XML)
  23594. @throws IOException Indicates error in serialization]]>
  23595. </doc>
  23596. </method>
  23597. <method name="writeString"
  23598. abstract="false" native="false" synchronized="false"
  23599. static="false" final="false" visibility="public"
  23600. deprecated="not deprecated">
  23601. <param name="s" type="java.lang.String"/>
  23602. <param name="tag" type="java.lang.String"/>
  23603. <exception name="IOException" type="java.io.IOException"/>
  23604. <doc>
  23605. <![CDATA[Write a unicode string to serialized record.
  23606. @param s String to be serialized
  23607. @param tag Used by tagged serialization formats (such as XML)
  23608. @throws IOException Indicates error in serialization]]>
  23609. </doc>
  23610. </method>
  23611. <method name="writeBuffer"
  23612. abstract="false" native="false" synchronized="false"
  23613. static="false" final="false" visibility="public"
  23614. deprecated="not deprecated">
  23615. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  23616. <param name="tag" type="java.lang.String"/>
  23617. <exception name="IOException" type="java.io.IOException"/>
  23618. <doc>
  23619. <![CDATA[Write a buffer to serialized record.
  23620. @param buf Buffer to be serialized
  23621. @param tag Used by tagged serialization formats (such as XML)
  23622. @throws IOException Indicates error in serialization]]>
  23623. </doc>
  23624. </method>
  23625. <method name="startRecord"
  23626. abstract="false" native="false" synchronized="false"
  23627. static="false" final="false" visibility="public"
  23628. deprecated="not deprecated">
  23629. <param name="r" type="org.apache.hadoop.record.Record"/>
  23630. <param name="tag" type="java.lang.String"/>
  23631. <exception name="IOException" type="java.io.IOException"/>
  23632. <doc>
  23633. <![CDATA[Mark the start of a record to be serialized.
  23634. @param r Record to be serialized
  23635. @param tag Used by tagged serialization formats (such as XML)
  23636. @throws IOException Indicates error in serialization]]>
  23637. </doc>
  23638. </method>
  23639. <method name="endRecord"
  23640. abstract="false" native="false" synchronized="false"
  23641. static="false" final="false" visibility="public"
  23642. deprecated="not deprecated">
  23643. <param name="r" type="org.apache.hadoop.record.Record"/>
  23644. <param name="tag" type="java.lang.String"/>
  23645. <exception name="IOException" type="java.io.IOException"/>
  23646. <doc>
  23647. <![CDATA[Mark the end of a serialized record.
  23648. @param r Record to be serialized
  23649. @param tag Used by tagged serialization formats (such as XML)
  23650. @throws IOException Indicates error in serialization]]>
  23651. </doc>
  23652. </method>
  23653. <method name="startVector"
  23654. abstract="false" native="false" synchronized="false"
  23655. static="false" final="false" visibility="public"
  23656. deprecated="not deprecated">
  23657. <param name="v" type="java.util.ArrayList"/>
  23658. <param name="tag" type="java.lang.String"/>
  23659. <exception name="IOException" type="java.io.IOException"/>
  23660. <doc>
  23661. <![CDATA[Mark the start of a vector to be serialized.
  23662. @param v Vector to be serialized
  23663. @param tag Used by tagged serialization formats (such as XML)
  23664. @throws IOException Indicates error in serialization]]>
  23665. </doc>
  23666. </method>
  23667. <method name="endVector"
  23668. abstract="false" native="false" synchronized="false"
  23669. static="false" final="false" visibility="public"
  23670. deprecated="not deprecated">
  23671. <param name="v" type="java.util.ArrayList"/>
  23672. <param name="tag" type="java.lang.String"/>
  23673. <exception name="IOException" type="java.io.IOException"/>
  23674. <doc>
  23675. <![CDATA[Mark the end of a serialized vector.
  23676. @param v Vector to be serialized
  23677. @param tag Used by tagged serialization formats (such as XML)
  23678. @throws IOException Indicates error in serialization]]>
  23679. </doc>
  23680. </method>
  23681. <method name="startMap"
  23682. abstract="false" native="false" synchronized="false"
  23683. static="false" final="false" visibility="public"
  23684. deprecated="not deprecated">
  23685. <param name="m" type="java.util.TreeMap"/>
  23686. <param name="tag" type="java.lang.String"/>
  23687. <exception name="IOException" type="java.io.IOException"/>
  23688. <doc>
  23689. <![CDATA[Mark the start of a map to be serialized.
  23690. @param m Map to be serialized
  23691. @param tag Used by tagged serialization formats (such as XML)
  23692. @throws IOException Indicates error in serialization]]>
  23693. </doc>
  23694. </method>
  23695. <method name="endMap"
  23696. abstract="false" native="false" synchronized="false"
  23697. static="false" final="false" visibility="public"
  23698. deprecated="not deprecated">
  23699. <param name="m" type="java.util.TreeMap"/>
  23700. <param name="tag" type="java.lang.String"/>
  23701. <exception name="IOException" type="java.io.IOException"/>
  23702. <doc>
  23703. <![CDATA[Mark the end of a serialized map.
  23704. @param m Map to be serialized
  23705. @param tag Used by tagged serialization formats (such as XML)
  23706. @throws IOException Indicates error in serialization]]>
  23707. </doc>
  23708. </method>
  23709. <doc>
  23710. <![CDATA[Interface that alll the serializers have to implement.]]>
  23711. </doc>
  23712. </interface>
  23713. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  23714. <!-- start class org.apache.hadoop.record.Utils -->
  23715. <class name="Utils" extends="java.lang.Object"
  23716. abstract="false"
  23717. static="false" final="false" visibility="public"
  23718. deprecated="not deprecated">
  23719. <method name="readFloat" return="float"
  23720. abstract="false" native="false" synchronized="false"
  23721. static="true" final="false" visibility="public"
  23722. deprecated="not deprecated">
  23723. <param name="bytes" type="byte[]"/>
  23724. <param name="start" type="int"/>
  23725. <doc>
  23726. <![CDATA[Parse a float from a byte array.]]>
  23727. </doc>
  23728. </method>
  23729. <method name="readDouble" return="double"
  23730. abstract="false" native="false" synchronized="false"
  23731. static="true" final="false" visibility="public"
  23732. deprecated="not deprecated">
  23733. <param name="bytes" type="byte[]"/>
  23734. <param name="start" type="int"/>
  23735. <doc>
  23736. <![CDATA[Parse a double from a byte array.]]>
  23737. </doc>
  23738. </method>
  23739. <method name="readVLong" return="long"
  23740. abstract="false" native="false" synchronized="false"
  23741. static="true" final="false" visibility="public"
  23742. deprecated="not deprecated">
  23743. <param name="bytes" type="byte[]"/>
  23744. <param name="start" type="int"/>
  23745. <exception name="IOException" type="java.io.IOException"/>
  23746. <doc>
  23747. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  23748. @param bytes byte array with decode long
  23749. @param start starting index
  23750. @throws java.io.IOException
  23751. @return deserialized long]]>
  23752. </doc>
  23753. </method>
  23754. <method name="readVInt" return="int"
  23755. abstract="false" native="false" synchronized="false"
  23756. static="true" final="false" visibility="public"
  23757. deprecated="not deprecated">
  23758. <param name="bytes" type="byte[]"/>
  23759. <param name="start" type="int"/>
  23760. <exception name="IOException" type="java.io.IOException"/>
  23761. <doc>
  23762. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  23763. @param bytes byte array with the encoded integer
  23764. @param start start index
  23765. @throws java.io.IOException
  23766. @return deserialized integer]]>
  23767. </doc>
  23768. </method>
  23769. <method name="readVLong" return="long"
  23770. abstract="false" native="false" synchronized="false"
  23771. static="true" final="false" visibility="public"
  23772. deprecated="not deprecated">
  23773. <param name="in" type="java.io.DataInput"/>
  23774. <exception name="IOException" type="java.io.IOException"/>
  23775. <doc>
  23776. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  23777. @param in input stream
  23778. @throws java.io.IOException
  23779. @return deserialized long]]>
  23780. </doc>
  23781. </method>
  23782. <method name="readVInt" return="int"
  23783. abstract="false" native="false" synchronized="false"
  23784. static="true" final="false" visibility="public"
  23785. deprecated="not deprecated">
  23786. <param name="in" type="java.io.DataInput"/>
  23787. <exception name="IOException" type="java.io.IOException"/>
  23788. <doc>
  23789. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  23790. @param in input stream
  23791. @throws java.io.IOException
  23792. @return deserialized integer]]>
  23793. </doc>
  23794. </method>
  23795. <method name="getVIntSize" return="int"
  23796. abstract="false" native="false" synchronized="false"
  23797. static="true" final="false" visibility="public"
  23798. deprecated="not deprecated">
  23799. <param name="i" type="long"/>
  23800. <doc>
  23801. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  23802. @return the encoded length]]>
  23803. </doc>
  23804. </method>
  23805. <method name="writeVLong"
  23806. abstract="false" native="false" synchronized="false"
  23807. static="true" final="false" visibility="public"
  23808. deprecated="not deprecated">
  23809. <param name="stream" type="java.io.DataOutput"/>
  23810. <param name="i" type="long"/>
  23811. <exception name="IOException" type="java.io.IOException"/>
  23812. <doc>
  23813. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  23814. For -112 <= i <= 127, only one byte is used with the actual value.
  23815. For other values of i, the first byte value indicates whether the
  23816. long is positive or negative, and the number of bytes that follow.
  23817. If the first byte value v is between -113 and -120, the following long
  23818. is positive, with number of bytes that follow are -(v+112).
  23819. If the first byte value v is between -121 and -128, the following long
  23820. is negative, with number of bytes that follow are -(v+120). Bytes are
  23821. stored in the high-non-zero-byte-first order.
  23822. @param stream Binary output stream
  23823. @param i Long to be serialized
  23824. @throws java.io.IOException]]>
  23825. </doc>
  23826. </method>
  23827. <method name="writeVInt"
  23828. abstract="false" native="false" synchronized="false"
  23829. static="true" final="false" visibility="public"
  23830. deprecated="not deprecated">
  23831. <param name="stream" type="java.io.DataOutput"/>
  23832. <param name="i" type="int"/>
  23833. <exception name="IOException" type="java.io.IOException"/>
  23834. <doc>
  23835. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  23836. @param stream Binary output stream
  23837. @param i int to be serialized
  23838. @throws java.io.IOException]]>
  23839. </doc>
  23840. </method>
  23841. <method name="compareBytes" return="int"
  23842. abstract="false" native="false" synchronized="false"
  23843. static="true" final="false" visibility="public"
  23844. deprecated="not deprecated">
  23845. <param name="b1" type="byte[]"/>
  23846. <param name="s1" type="int"/>
  23847. <param name="l1" type="int"/>
  23848. <param name="b2" type="byte[]"/>
  23849. <param name="s2" type="int"/>
  23850. <param name="l2" type="int"/>
  23851. <doc>
  23852. <![CDATA[Lexicographic order of binary data.]]>
  23853. </doc>
  23854. </method>
  23855. <field name="hexchars" type="char[]"
  23856. transient="false" volatile="false"
  23857. static="true" final="true" visibility="public"
  23858. deprecated="not deprecated">
  23859. </field>
  23860. <doc>
  23861. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  23862. </doc>
  23863. </class>
  23864. <!-- end class org.apache.hadoop.record.Utils -->
  23865. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  23866. <class name="XmlRecordInput" extends="java.lang.Object"
  23867. abstract="false"
  23868. static="false" final="false" visibility="public"
  23869. deprecated="not deprecated">
  23870. <implements name="org.apache.hadoop.record.RecordInput"/>
  23871. <constructor name="XmlRecordInput" type="java.io.InputStream"
  23872. static="false" final="false" visibility="public"
  23873. deprecated="not deprecated">
  23874. <doc>
  23875. <![CDATA[Creates a new instance of XmlRecordInput]]>
  23876. </doc>
  23877. </constructor>
  23878. <method name="readByte" return="byte"
  23879. abstract="false" native="false" synchronized="false"
  23880. static="false" final="false" visibility="public"
  23881. deprecated="not deprecated">
  23882. <param name="tag" type="java.lang.String"/>
  23883. <exception name="IOException" type="java.io.IOException"/>
  23884. </method>
  23885. <method name="readBool" return="boolean"
  23886. abstract="false" native="false" synchronized="false"
  23887. static="false" final="false" visibility="public"
  23888. deprecated="not deprecated">
  23889. <param name="tag" type="java.lang.String"/>
  23890. <exception name="IOException" type="java.io.IOException"/>
  23891. </method>
  23892. <method name="readInt" return="int"
  23893. abstract="false" native="false" synchronized="false"
  23894. static="false" final="false" visibility="public"
  23895. deprecated="not deprecated">
  23896. <param name="tag" type="java.lang.String"/>
  23897. <exception name="IOException" type="java.io.IOException"/>
  23898. </method>
  23899. <method name="readLong" return="long"
  23900. abstract="false" native="false" synchronized="false"
  23901. static="false" final="false" visibility="public"
  23902. deprecated="not deprecated">
  23903. <param name="tag" type="java.lang.String"/>
  23904. <exception name="IOException" type="java.io.IOException"/>
  23905. </method>
  23906. <method name="readFloat" return="float"
  23907. abstract="false" native="false" synchronized="false"
  23908. static="false" final="false" visibility="public"
  23909. deprecated="not deprecated">
  23910. <param name="tag" type="java.lang.String"/>
  23911. <exception name="IOException" type="java.io.IOException"/>
  23912. </method>
  23913. <method name="readDouble" return="double"
  23914. abstract="false" native="false" synchronized="false"
  23915. static="false" final="false" visibility="public"
  23916. deprecated="not deprecated">
  23917. <param name="tag" type="java.lang.String"/>
  23918. <exception name="IOException" type="java.io.IOException"/>
  23919. </method>
  23920. <method name="readString" return="java.lang.String"
  23921. abstract="false" native="false" synchronized="false"
  23922. static="false" final="false" visibility="public"
  23923. deprecated="not deprecated">
  23924. <param name="tag" type="java.lang.String"/>
  23925. <exception name="IOException" type="java.io.IOException"/>
  23926. </method>
  23927. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  23928. abstract="false" native="false" synchronized="false"
  23929. static="false" final="false" visibility="public"
  23930. deprecated="not deprecated">
  23931. <param name="tag" type="java.lang.String"/>
  23932. <exception name="IOException" type="java.io.IOException"/>
  23933. </method>
  23934. <method name="startRecord"
  23935. abstract="false" native="false" synchronized="false"
  23936. static="false" final="false" visibility="public"
  23937. deprecated="not deprecated">
  23938. <param name="tag" type="java.lang.String"/>
  23939. <exception name="IOException" type="java.io.IOException"/>
  23940. </method>
  23941. <method name="endRecord"
  23942. abstract="false" native="false" synchronized="false"
  23943. static="false" final="false" visibility="public"
  23944. deprecated="not deprecated">
  23945. <param name="tag" type="java.lang.String"/>
  23946. <exception name="IOException" type="java.io.IOException"/>
  23947. </method>
  23948. <method name="startVector" return="org.apache.hadoop.record.Index"
  23949. abstract="false" native="false" synchronized="false"
  23950. static="false" final="false" visibility="public"
  23951. deprecated="not deprecated">
  23952. <param name="tag" type="java.lang.String"/>
  23953. <exception name="IOException" type="java.io.IOException"/>
  23954. </method>
  23955. <method name="endVector"
  23956. abstract="false" native="false" synchronized="false"
  23957. static="false" final="false" visibility="public"
  23958. deprecated="not deprecated">
  23959. <param name="tag" type="java.lang.String"/>
  23960. <exception name="IOException" type="java.io.IOException"/>
  23961. </method>
  23962. <method name="startMap" return="org.apache.hadoop.record.Index"
  23963. abstract="false" native="false" synchronized="false"
  23964. static="false" final="false" visibility="public"
  23965. deprecated="not deprecated">
  23966. <param name="tag" type="java.lang.String"/>
  23967. <exception name="IOException" type="java.io.IOException"/>
  23968. </method>
  23969. <method name="endMap"
  23970. abstract="false" native="false" synchronized="false"
  23971. static="false" final="false" visibility="public"
  23972. deprecated="not deprecated">
  23973. <param name="tag" type="java.lang.String"/>
  23974. <exception name="IOException" type="java.io.IOException"/>
  23975. </method>
  23976. <doc>
  23977. <![CDATA[XML Deserializer.]]>
  23978. </doc>
  23979. </class>
  23980. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  23981. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  23982. <class name="XmlRecordOutput" extends="java.lang.Object"
  23983. abstract="false"
  23984. static="false" final="false" visibility="public"
  23985. deprecated="not deprecated">
  23986. <implements name="org.apache.hadoop.record.RecordOutput"/>
  23987. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  23988. static="false" final="false" visibility="public"
  23989. deprecated="not deprecated">
  23990. <doc>
  23991. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  23992. </doc>
  23993. </constructor>
  23994. <method name="writeByte"
  23995. abstract="false" native="false" synchronized="false"
  23996. static="false" final="false" visibility="public"
  23997. deprecated="not deprecated">
  23998. <param name="b" type="byte"/>
  23999. <param name="tag" type="java.lang.String"/>
  24000. <exception name="IOException" type="java.io.IOException"/>
  24001. </method>
  24002. <method name="writeBool"
  24003. abstract="false" native="false" synchronized="false"
  24004. static="false" final="false" visibility="public"
  24005. deprecated="not deprecated">
  24006. <param name="b" type="boolean"/>
  24007. <param name="tag" type="java.lang.String"/>
  24008. <exception name="IOException" type="java.io.IOException"/>
  24009. </method>
  24010. <method name="writeInt"
  24011. abstract="false" native="false" synchronized="false"
  24012. static="false" final="false" visibility="public"
  24013. deprecated="not deprecated">
  24014. <param name="i" type="int"/>
  24015. <param name="tag" type="java.lang.String"/>
  24016. <exception name="IOException" type="java.io.IOException"/>
  24017. </method>
  24018. <method name="writeLong"
  24019. abstract="false" native="false" synchronized="false"
  24020. static="false" final="false" visibility="public"
  24021. deprecated="not deprecated">
  24022. <param name="l" type="long"/>
  24023. <param name="tag" type="java.lang.String"/>
  24024. <exception name="IOException" type="java.io.IOException"/>
  24025. </method>
  24026. <method name="writeFloat"
  24027. abstract="false" native="false" synchronized="false"
  24028. static="false" final="false" visibility="public"
  24029. deprecated="not deprecated">
  24030. <param name="f" type="float"/>
  24031. <param name="tag" type="java.lang.String"/>
  24032. <exception name="IOException" type="java.io.IOException"/>
  24033. </method>
  24034. <method name="writeDouble"
  24035. abstract="false" native="false" synchronized="false"
  24036. static="false" final="false" visibility="public"
  24037. deprecated="not deprecated">
  24038. <param name="d" type="double"/>
  24039. <param name="tag" type="java.lang.String"/>
  24040. <exception name="IOException" type="java.io.IOException"/>
  24041. </method>
  24042. <method name="writeString"
  24043. abstract="false" native="false" synchronized="false"
  24044. static="false" final="false" visibility="public"
  24045. deprecated="not deprecated">
  24046. <param name="s" type="java.lang.String"/>
  24047. <param name="tag" type="java.lang.String"/>
  24048. <exception name="IOException" type="java.io.IOException"/>
  24049. </method>
  24050. <method name="writeBuffer"
  24051. abstract="false" native="false" synchronized="false"
  24052. static="false" final="false" visibility="public"
  24053. deprecated="not deprecated">
  24054. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  24055. <param name="tag" type="java.lang.String"/>
  24056. <exception name="IOException" type="java.io.IOException"/>
  24057. </method>
  24058. <method name="startRecord"
  24059. abstract="false" native="false" synchronized="false"
  24060. static="false" final="false" visibility="public"
  24061. deprecated="not deprecated">
  24062. <param name="r" type="org.apache.hadoop.record.Record"/>
  24063. <param name="tag" type="java.lang.String"/>
  24064. <exception name="IOException" type="java.io.IOException"/>
  24065. </method>
  24066. <method name="endRecord"
  24067. abstract="false" native="false" synchronized="false"
  24068. static="false" final="false" visibility="public"
  24069. deprecated="not deprecated">
  24070. <param name="r" type="org.apache.hadoop.record.Record"/>
  24071. <param name="tag" type="java.lang.String"/>
  24072. <exception name="IOException" type="java.io.IOException"/>
  24073. </method>
  24074. <method name="startVector"
  24075. abstract="false" native="false" synchronized="false"
  24076. static="false" final="false" visibility="public"
  24077. deprecated="not deprecated">
  24078. <param name="v" type="java.util.ArrayList"/>
  24079. <param name="tag" type="java.lang.String"/>
  24080. <exception name="IOException" type="java.io.IOException"/>
  24081. </method>
  24082. <method name="endVector"
  24083. abstract="false" native="false" synchronized="false"
  24084. static="false" final="false" visibility="public"
  24085. deprecated="not deprecated">
  24086. <param name="v" type="java.util.ArrayList"/>
  24087. <param name="tag" type="java.lang.String"/>
  24088. <exception name="IOException" type="java.io.IOException"/>
  24089. </method>
  24090. <method name="startMap"
  24091. abstract="false" native="false" synchronized="false"
  24092. static="false" final="false" visibility="public"
  24093. deprecated="not deprecated">
  24094. <param name="v" type="java.util.TreeMap"/>
  24095. <param name="tag" type="java.lang.String"/>
  24096. <exception name="IOException" type="java.io.IOException"/>
  24097. </method>
  24098. <method name="endMap"
  24099. abstract="false" native="false" synchronized="false"
  24100. static="false" final="false" visibility="public"
  24101. deprecated="not deprecated">
  24102. <param name="v" type="java.util.TreeMap"/>
  24103. <param name="tag" type="java.lang.String"/>
  24104. <exception name="IOException" type="java.io.IOException"/>
  24105. </method>
  24106. <doc>
  24107. <![CDATA[XML Serializer.]]>
  24108. </doc>
  24109. </class>
  24110. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  24111. </package>
  24112. <package name="org.apache.hadoop.record.compiler">
  24113. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  24114. <class name="CodeBuffer" extends="java.lang.Object"
  24115. abstract="false"
  24116. static="false" final="false" visibility="public"
  24117. deprecated="not deprecated">
  24118. <method name="toString" return="java.lang.String"
  24119. abstract="false" native="false" synchronized="false"
  24120. static="false" final="false" visibility="public"
  24121. deprecated="not deprecated">
  24122. </method>
  24123. <doc>
  24124. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  24125. </doc>
  24126. </class>
  24127. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  24128. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  24129. <class name="Consts" extends="java.lang.Object"
  24130. abstract="false"
  24131. static="false" final="false" visibility="public"
  24132. deprecated="not deprecated">
  24133. <field name="RIO_PREFIX" type="java.lang.String"
  24134. transient="false" volatile="false"
  24135. static="true" final="true" visibility="public"
  24136. deprecated="not deprecated">
  24137. </field>
  24138. <field name="RTI_VAR" type="java.lang.String"
  24139. transient="false" volatile="false"
  24140. static="true" final="true" visibility="public"
  24141. deprecated="not deprecated">
  24142. </field>
  24143. <field name="RTI_FILTER" type="java.lang.String"
  24144. transient="false" volatile="false"
  24145. static="true" final="true" visibility="public"
  24146. deprecated="not deprecated">
  24147. </field>
  24148. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  24149. transient="false" volatile="false"
  24150. static="true" final="true" visibility="public"
  24151. deprecated="not deprecated">
  24152. </field>
  24153. <field name="RECORD_OUTPUT" type="java.lang.String"
  24154. transient="false" volatile="false"
  24155. static="true" final="true" visibility="public"
  24156. deprecated="not deprecated">
  24157. </field>
  24158. <field name="RECORD_INPUT" type="java.lang.String"
  24159. transient="false" volatile="false"
  24160. static="true" final="true" visibility="public"
  24161. deprecated="not deprecated">
  24162. </field>
  24163. <field name="TAG" type="java.lang.String"
  24164. transient="false" volatile="false"
  24165. static="true" final="true" visibility="public"
  24166. deprecated="not deprecated">
  24167. </field>
  24168. <doc>
  24169. <![CDATA[const definitions for Record I/O compiler]]>
  24170. </doc>
  24171. </class>
  24172. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  24173. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  24174. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  24175. abstract="false"
  24176. static="false" final="false" visibility="public"
  24177. deprecated="not deprecated">
  24178. <constructor name="JBoolean"
  24179. static="false" final="false" visibility="public"
  24180. deprecated="not deprecated">
  24181. <doc>
  24182. <![CDATA[Creates a new instance of JBoolean]]>
  24183. </doc>
  24184. </constructor>
  24185. </class>
  24186. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  24187. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  24188. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  24189. abstract="false"
  24190. static="false" final="false" visibility="public"
  24191. deprecated="not deprecated">
  24192. <constructor name="JBuffer"
  24193. static="false" final="false" visibility="public"
  24194. deprecated="not deprecated">
  24195. <doc>
  24196. <![CDATA[Creates a new instance of JBuffer]]>
  24197. </doc>
  24198. </constructor>
  24199. <doc>
  24200. <![CDATA[Code generator for "buffer" type.]]>
  24201. </doc>
  24202. </class>
  24203. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  24204. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  24205. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  24206. abstract="false"
  24207. static="false" final="false" visibility="public"
  24208. deprecated="not deprecated">
  24209. <constructor name="JByte"
  24210. static="false" final="false" visibility="public"
  24211. deprecated="not deprecated">
  24212. </constructor>
  24213. <doc>
  24214. <![CDATA[Code generator for "byte" type.]]>
  24215. </doc>
  24216. </class>
  24217. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  24218. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  24219. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  24220. abstract="false"
  24221. static="false" final="false" visibility="public"
  24222. deprecated="not deprecated">
  24223. <constructor name="JDouble"
  24224. static="false" final="false" visibility="public"
  24225. deprecated="not deprecated">
  24226. <doc>
  24227. <![CDATA[Creates a new instance of JDouble]]>
  24228. </doc>
  24229. </constructor>
  24230. </class>
  24231. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  24232. <!-- start class org.apache.hadoop.record.compiler.JField -->
  24233. <class name="JField" extends="java.lang.Object"
  24234. abstract="false"
  24235. static="false" final="false" visibility="public"
  24236. deprecated="not deprecated">
  24237. <constructor name="JField" type="java.lang.String, java.lang.Object"
  24238. static="false" final="false" visibility="public"
  24239. deprecated="not deprecated">
  24240. <doc>
  24241. <![CDATA[Creates a new instance of JField]]>
  24242. </doc>
  24243. </constructor>
  24244. <doc>
  24245. <![CDATA[A thin wrappper around record field.]]>
  24246. </doc>
  24247. </class>
  24248. <!-- end class org.apache.hadoop.record.compiler.JField -->
  24249. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  24250. <class name="JFile" extends="java.lang.Object"
  24251. abstract="false"
  24252. static="false" final="false" visibility="public"
  24253. deprecated="not deprecated">
  24254. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  24255. static="false" final="false" visibility="public"
  24256. deprecated="not deprecated">
  24257. <doc>
  24258. <![CDATA[Creates a new instance of JFile
  24259. @param name possibly full pathname to the file
  24260. @param inclFiles included files (as JFile)
  24261. @param recList List of records defined within this file]]>
  24262. </doc>
  24263. </constructor>
  24264. <method name="genCode" return="int"
  24265. abstract="false" native="false" synchronized="false"
  24266. static="false" final="false" visibility="public"
  24267. deprecated="not deprecated">
  24268. <param name="language" type="java.lang.String"/>
  24269. <param name="destDir" type="java.lang.String"/>
  24270. <param name="options" type="java.util.ArrayList"/>
  24271. <exception name="IOException" type="java.io.IOException"/>
  24272. <doc>
  24273. <![CDATA[Generate record code in given language. Language should be all
  24274. lowercase.]]>
  24275. </doc>
  24276. </method>
  24277. <doc>
  24278. <![CDATA[Container for the Hadoop Record DDL.
  24279. The main components of the file are filename, list of included files,
  24280. and records defined in that file.]]>
  24281. </doc>
  24282. </class>
  24283. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  24284. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  24285. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  24286. abstract="false"
  24287. static="false" final="false" visibility="public"
  24288. deprecated="not deprecated">
  24289. <constructor name="JFloat"
  24290. static="false" final="false" visibility="public"
  24291. deprecated="not deprecated">
  24292. <doc>
  24293. <![CDATA[Creates a new instance of JFloat]]>
  24294. </doc>
  24295. </constructor>
  24296. </class>
  24297. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  24298. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  24299. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  24300. abstract="false"
  24301. static="false" final="false" visibility="public"
  24302. deprecated="not deprecated">
  24303. <constructor name="JInt"
  24304. static="false" final="false" visibility="public"
  24305. deprecated="not deprecated">
  24306. <doc>
  24307. <![CDATA[Creates a new instance of JInt]]>
  24308. </doc>
  24309. </constructor>
  24310. <doc>
  24311. <![CDATA[Code generator for "int" type]]>
  24312. </doc>
  24313. </class>
  24314. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  24315. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  24316. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  24317. abstract="false"
  24318. static="false" final="false" visibility="public"
  24319. deprecated="not deprecated">
  24320. <constructor name="JLong"
  24321. static="false" final="false" visibility="public"
  24322. deprecated="not deprecated">
  24323. <doc>
  24324. <![CDATA[Creates a new instance of JLong]]>
  24325. </doc>
  24326. </constructor>
  24327. <doc>
  24328. <![CDATA[Code generator for "long" type]]>
  24329. </doc>
  24330. </class>
  24331. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  24332. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  24333. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  24334. abstract="false"
  24335. static="false" final="false" visibility="public"
  24336. deprecated="not deprecated">
  24337. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  24338. static="false" final="false" visibility="public"
  24339. deprecated="not deprecated">
  24340. <doc>
  24341. <![CDATA[Creates a new instance of JMap]]>
  24342. </doc>
  24343. </constructor>
  24344. </class>
  24345. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  24346. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  24347. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  24348. abstract="false"
  24349. static="false" final="false" visibility="public"
  24350. deprecated="not deprecated">
  24351. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  24352. static="false" final="false" visibility="public"
  24353. deprecated="not deprecated">
  24354. <doc>
  24355. <![CDATA[Creates a new instance of JRecord]]>
  24356. </doc>
  24357. </constructor>
  24358. </class>
  24359. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  24360. <!-- start class org.apache.hadoop.record.compiler.JString -->
  24361. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  24362. abstract="false"
  24363. static="false" final="false" visibility="public"
  24364. deprecated="not deprecated">
  24365. <constructor name="JString"
  24366. static="false" final="false" visibility="public"
  24367. deprecated="not deprecated">
  24368. <doc>
  24369. <![CDATA[Creates a new instance of JString]]>
  24370. </doc>
  24371. </constructor>
  24372. </class>
  24373. <!-- end class org.apache.hadoop.record.compiler.JString -->
  24374. <!-- start class org.apache.hadoop.record.compiler.JType -->
  24375. <class name="JType" extends="java.lang.Object"
  24376. abstract="true"
  24377. static="false" final="false" visibility="public"
  24378. deprecated="not deprecated">
  24379. <constructor name="JType"
  24380. static="false" final="false" visibility="public"
  24381. deprecated="not deprecated">
  24382. </constructor>
  24383. <doc>
  24384. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  24385. </doc>
  24386. </class>
  24387. <!-- end class org.apache.hadoop.record.compiler.JType -->
  24388. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  24389. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  24390. abstract="false"
  24391. static="false" final="false" visibility="public"
  24392. deprecated="not deprecated">
  24393. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  24394. static="false" final="false" visibility="public"
  24395. deprecated="not deprecated">
  24396. <doc>
  24397. <![CDATA[Creates a new instance of JVector]]>
  24398. </doc>
  24399. </constructor>
  24400. </class>
  24401. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  24402. </package>
  24403. <package name="org.apache.hadoop.record.compiler.ant">
  24404. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  24405. <class name="RccTask" extends="org.apache.tools.ant.Task"
  24406. abstract="false"
  24407. static="false" final="false" visibility="public"
  24408. deprecated="not deprecated">
  24409. <constructor name="RccTask"
  24410. static="false" final="false" visibility="public"
  24411. deprecated="not deprecated">
  24412. <doc>
  24413. <![CDATA[Creates a new instance of RccTask]]>
  24414. </doc>
  24415. </constructor>
  24416. <method name="setLanguage"
  24417. abstract="false" native="false" synchronized="false"
  24418. static="false" final="false" visibility="public"
  24419. deprecated="not deprecated">
  24420. <param name="language" type="java.lang.String"/>
  24421. <doc>
  24422. <![CDATA[Sets the output language option
  24423. @param language "java"/"c++"]]>
  24424. </doc>
  24425. </method>
  24426. <method name="setFile"
  24427. abstract="false" native="false" synchronized="false"
  24428. static="false" final="false" visibility="public"
  24429. deprecated="not deprecated">
  24430. <param name="file" type="java.io.File"/>
  24431. <doc>
  24432. <![CDATA[Sets the record definition file attribute
  24433. @param file record definition file]]>
  24434. </doc>
  24435. </method>
  24436. <method name="setFailonerror"
  24437. abstract="false" native="false" synchronized="false"
  24438. static="false" final="false" visibility="public"
  24439. deprecated="not deprecated">
  24440. <param name="flag" type="boolean"/>
  24441. <doc>
  24442. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  24443. @param flag true will throw build exception in case of failure (default)]]>
  24444. </doc>
  24445. </method>
  24446. <method name="setDestdir"
  24447. abstract="false" native="false" synchronized="false"
  24448. static="false" final="false" visibility="public"
  24449. deprecated="not deprecated">
  24450. <param name="dir" type="java.io.File"/>
  24451. <doc>
  24452. <![CDATA[Sets directory where output files will be generated
  24453. @param dir output directory]]>
  24454. </doc>
  24455. </method>
  24456. <method name="addFileset"
  24457. abstract="false" native="false" synchronized="false"
  24458. static="false" final="false" visibility="public"
  24459. deprecated="not deprecated">
  24460. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  24461. <doc>
  24462. <![CDATA[Adds a fileset that can consist of one or more files
  24463. @param set Set of record definition files]]>
  24464. </doc>
  24465. </method>
  24466. <method name="execute"
  24467. abstract="false" native="false" synchronized="false"
  24468. static="false" final="false" visibility="public"
  24469. deprecated="not deprecated">
  24470. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  24471. <doc>
  24472. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  24473. </doc>
  24474. </method>
  24475. <doc>
  24476. <![CDATA[Hadoop record compiler ant Task
  24477. <p> This task takes the given record definition files and compiles them into
  24478. java or c++
  24479. files. It is then up to the user to compile the generated files.
  24480. <p> The task requires the <code>file</code> or the nested fileset element to be
  24481. specified. Optional attributes are <code>language</code> (set the output
  24482. language, default is "java"),
  24483. <code>destdir</code> (name of the destination directory for generated java/c++
  24484. code, default is ".") and <code>failonerror</code> (specifies error handling
  24485. behavior. default is true).
  24486. <p><h4>Usage</h4>
  24487. <pre>
  24488. &lt;recordcc
  24489. destdir="${basedir}/gensrc"
  24490. language="java"&gt;
  24491. &lt;fileset include="**\/*.jr" /&gt;
  24492. &lt;/recordcc&gt;
  24493. </pre>]]>
  24494. </doc>
  24495. </class>
  24496. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  24497. </package>
  24498. <package name="org.apache.hadoop.record.compiler.generated">
  24499. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  24500. <class name="ParseException" extends="java.lang.Exception"
  24501. abstract="false"
  24502. static="false" final="false" visibility="public"
  24503. deprecated="not deprecated">
  24504. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  24505. static="false" final="false" visibility="public"
  24506. deprecated="not deprecated">
  24507. <doc>
  24508. <![CDATA[This constructor is used by the method "generateParseException"
  24509. in the generated parser. Calling this constructor generates
  24510. a new object of this type with the fields "currentToken",
  24511. "expectedTokenSequences", and "tokenImage" set. The boolean
  24512. flag "specialConstructor" is also set to true to indicate that
  24513. this constructor was used to create this object.
  24514. This constructor calls its super class with the empty string
  24515. to force the "toString" method of parent class "Throwable" to
  24516. print the error message in the form:
  24517. ParseException: <result of getMessage>]]>
  24518. </doc>
  24519. </constructor>
  24520. <constructor name="ParseException"
  24521. static="false" final="false" visibility="public"
  24522. deprecated="not deprecated">
  24523. <doc>
  24524. <![CDATA[The following constructors are for use by you for whatever
  24525. purpose you can think of. Constructing the exception in this
  24526. manner makes the exception behave in the normal way - i.e., as
  24527. documented in the class "Throwable". The fields "errorToken",
  24528. "expectedTokenSequences", and "tokenImage" do not contain
  24529. relevant information. The JavaCC generated code does not use
  24530. these constructors.]]>
  24531. </doc>
  24532. </constructor>
  24533. <constructor name="ParseException" type="java.lang.String"
  24534. static="false" final="false" visibility="public"
  24535. deprecated="not deprecated">
  24536. </constructor>
  24537. <method name="getMessage" return="java.lang.String"
  24538. abstract="false" native="false" synchronized="false"
  24539. static="false" final="false" visibility="public"
  24540. deprecated="not deprecated">
  24541. <doc>
  24542. <![CDATA[This method has the standard behavior when this object has been
  24543. created using the standard constructors. Otherwise, it uses
  24544. "currentToken" and "expectedTokenSequences" to generate a parse
  24545. error message and returns it. If this object has been created
  24546. due to a parse error, and you do not catch it (it gets thrown
  24547. from the parser), then this method is called during the printing
  24548. of the final stack trace, and hence the correct error message
  24549. gets displayed.]]>
  24550. </doc>
  24551. </method>
  24552. <method name="add_escapes" return="java.lang.String"
  24553. abstract="false" native="false" synchronized="false"
  24554. static="false" final="false" visibility="protected"
  24555. deprecated="not deprecated">
  24556. <param name="str" type="java.lang.String"/>
  24557. <doc>
  24558. <![CDATA[Used to convert raw characters to their escaped version
  24559. when these raw version cannot be used as part of an ASCII
  24560. string literal.]]>
  24561. </doc>
  24562. </method>
  24563. <field name="specialConstructor" type="boolean"
  24564. transient="false" volatile="false"
  24565. static="false" final="false" visibility="protected"
  24566. deprecated="not deprecated">
  24567. <doc>
  24568. <![CDATA[This variable determines which constructor was used to create
  24569. this object and thereby affects the semantics of the
  24570. "getMessage" method (see below).]]>
  24571. </doc>
  24572. </field>
  24573. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  24574. transient="false" volatile="false"
  24575. static="false" final="false" visibility="public"
  24576. deprecated="not deprecated">
  24577. <doc>
  24578. <![CDATA[This is the last token that has been consumed successfully. If
  24579. this object has been created due to a parse error, the token
  24580. followng this token will (therefore) be the first error token.]]>
  24581. </doc>
  24582. </field>
  24583. <field name="expectedTokenSequences" type="int[][]"
  24584. transient="false" volatile="false"
  24585. static="false" final="false" visibility="public"
  24586. deprecated="not deprecated">
  24587. <doc>
  24588. <![CDATA[Each entry in this array is an array of integers. Each array
  24589. of integers represents a sequence of tokens (by their ordinal
  24590. values) that is expected at this point of the parse.]]>
  24591. </doc>
  24592. </field>
  24593. <field name="tokenImage" type="java.lang.String[]"
  24594. transient="false" volatile="false"
  24595. static="false" final="false" visibility="public"
  24596. deprecated="not deprecated">
  24597. <doc>
  24598. <![CDATA[This is a reference to the "tokenImage" array of the generated
  24599. parser within which the parse error occurred. This array is
  24600. defined in the generated ...Constants interface.]]>
  24601. </doc>
  24602. </field>
  24603. <field name="eol" type="java.lang.String"
  24604. transient="false" volatile="false"
  24605. static="false" final="false" visibility="protected"
  24606. deprecated="not deprecated">
  24607. <doc>
  24608. <![CDATA[The end of line string for this machine.]]>
  24609. </doc>
  24610. </field>
  24611. <doc>
  24612. <![CDATA[This exception is thrown when parse errors are encountered.
  24613. You can explicitly create objects of this exception type by
  24614. calling the method generateParseException in the generated
  24615. parser.
  24616. You can modify this class to customize your error reporting
  24617. mechanisms so long as you retain the public fields.]]>
  24618. </doc>
  24619. </class>
  24620. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  24621. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  24622. <class name="Rcc" extends="java.lang.Object"
  24623. abstract="false"
  24624. static="false" final="false" visibility="public"
  24625. deprecated="not deprecated">
  24626. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  24627. <constructor name="Rcc" type="java.io.InputStream"
  24628. static="false" final="false" visibility="public"
  24629. deprecated="not deprecated">
  24630. </constructor>
  24631. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  24632. static="false" final="false" visibility="public"
  24633. deprecated="not deprecated">
  24634. </constructor>
  24635. <constructor name="Rcc" type="java.io.Reader"
  24636. static="false" final="false" visibility="public"
  24637. deprecated="not deprecated">
  24638. </constructor>
  24639. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  24640. static="false" final="false" visibility="public"
  24641. deprecated="not deprecated">
  24642. </constructor>
  24643. <method name="main"
  24644. abstract="false" native="false" synchronized="false"
  24645. static="true" final="false" visibility="public"
  24646. deprecated="not deprecated">
  24647. <param name="args" type="java.lang.String[]"/>
  24648. </method>
  24649. <method name="usage"
  24650. abstract="false" native="false" synchronized="false"
  24651. static="true" final="false" visibility="public"
  24652. deprecated="not deprecated">
  24653. </method>
  24654. <method name="driver" return="int"
  24655. abstract="false" native="false" synchronized="false"
  24656. static="true" final="false" visibility="public"
  24657. deprecated="not deprecated">
  24658. <param name="args" type="java.lang.String[]"/>
  24659. </method>
  24660. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  24661. abstract="false" native="false" synchronized="false"
  24662. static="false" final="true" visibility="public"
  24663. deprecated="not deprecated">
  24664. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24665. </method>
  24666. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  24667. abstract="false" native="false" synchronized="false"
  24668. static="false" final="true" visibility="public"
  24669. deprecated="not deprecated">
  24670. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24671. </method>
  24672. <method name="Module" return="java.util.ArrayList"
  24673. abstract="false" native="false" synchronized="false"
  24674. static="false" final="true" visibility="public"
  24675. deprecated="not deprecated">
  24676. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24677. </method>
  24678. <method name="ModuleName" return="java.lang.String"
  24679. abstract="false" native="false" synchronized="false"
  24680. static="false" final="true" visibility="public"
  24681. deprecated="not deprecated">
  24682. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24683. </method>
  24684. <method name="RecordList" return="java.util.ArrayList"
  24685. abstract="false" native="false" synchronized="false"
  24686. static="false" final="true" visibility="public"
  24687. deprecated="not deprecated">
  24688. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24689. </method>
  24690. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  24691. abstract="false" native="false" synchronized="false"
  24692. static="false" final="true" visibility="public"
  24693. deprecated="not deprecated">
  24694. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24695. </method>
  24696. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  24697. abstract="false" native="false" synchronized="false"
  24698. static="false" final="true" visibility="public"
  24699. deprecated="not deprecated">
  24700. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24701. </method>
  24702. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  24703. abstract="false" native="false" synchronized="false"
  24704. static="false" final="true" visibility="public"
  24705. deprecated="not deprecated">
  24706. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24707. </method>
  24708. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  24709. abstract="false" native="false" synchronized="false"
  24710. static="false" final="true" visibility="public"
  24711. deprecated="not deprecated">
  24712. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24713. </method>
  24714. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  24715. abstract="false" native="false" synchronized="false"
  24716. static="false" final="true" visibility="public"
  24717. deprecated="not deprecated">
  24718. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24719. </method>
  24720. <method name="ReInit"
  24721. abstract="false" native="false" synchronized="false"
  24722. static="false" final="false" visibility="public"
  24723. deprecated="not deprecated">
  24724. <param name="stream" type="java.io.InputStream"/>
  24725. </method>
  24726. <method name="ReInit"
  24727. abstract="false" native="false" synchronized="false"
  24728. static="false" final="false" visibility="public"
  24729. deprecated="not deprecated">
  24730. <param name="stream" type="java.io.InputStream"/>
  24731. <param name="encoding" type="java.lang.String"/>
  24732. </method>
  24733. <method name="ReInit"
  24734. abstract="false" native="false" synchronized="false"
  24735. static="false" final="false" visibility="public"
  24736. deprecated="not deprecated">
  24737. <param name="stream" type="java.io.Reader"/>
  24738. </method>
  24739. <method name="ReInit"
  24740. abstract="false" native="false" synchronized="false"
  24741. static="false" final="false" visibility="public"
  24742. deprecated="not deprecated">
  24743. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  24744. </method>
  24745. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  24746. abstract="false" native="false" synchronized="false"
  24747. static="false" final="true" visibility="public"
  24748. deprecated="not deprecated">
  24749. </method>
  24750. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  24751. abstract="false" native="false" synchronized="false"
  24752. static="false" final="true" visibility="public"
  24753. deprecated="not deprecated">
  24754. <param name="index" type="int"/>
  24755. </method>
  24756. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  24757. abstract="false" native="false" synchronized="false"
  24758. static="false" final="false" visibility="public"
  24759. deprecated="not deprecated">
  24760. </method>
  24761. <method name="enable_tracing"
  24762. abstract="false" native="false" synchronized="false"
  24763. static="false" final="true" visibility="public"
  24764. deprecated="not deprecated">
  24765. </method>
  24766. <method name="disable_tracing"
  24767. abstract="false" native="false" synchronized="false"
  24768. static="false" final="true" visibility="public"
  24769. deprecated="not deprecated">
  24770. </method>
  24771. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  24772. transient="false" volatile="false"
  24773. static="false" final="false" visibility="public"
  24774. deprecated="not deprecated">
  24775. </field>
  24776. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  24777. transient="false" volatile="false"
  24778. static="false" final="false" visibility="public"
  24779. deprecated="not deprecated">
  24780. </field>
  24781. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  24782. transient="false" volatile="false"
  24783. static="false" final="false" visibility="public"
  24784. deprecated="not deprecated">
  24785. </field>
  24786. </class>
  24787. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  24788. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  24789. <interface name="RccConstants" abstract="true"
  24790. static="false" final="false" visibility="public"
  24791. deprecated="not deprecated">
  24792. <field name="EOF" type="int"
  24793. transient="false" volatile="false"
  24794. static="true" final="true" visibility="public"
  24795. deprecated="not deprecated">
  24796. </field>
  24797. <field name="MODULE_TKN" type="int"
  24798. transient="false" volatile="false"
  24799. static="true" final="true" visibility="public"
  24800. deprecated="not deprecated">
  24801. </field>
  24802. <field name="RECORD_TKN" type="int"
  24803. transient="false" volatile="false"
  24804. static="true" final="true" visibility="public"
  24805. deprecated="not deprecated">
  24806. </field>
  24807. <field name="INCLUDE_TKN" type="int"
  24808. transient="false" volatile="false"
  24809. static="true" final="true" visibility="public"
  24810. deprecated="not deprecated">
  24811. </field>
  24812. <field name="BYTE_TKN" type="int"
  24813. transient="false" volatile="false"
  24814. static="true" final="true" visibility="public"
  24815. deprecated="not deprecated">
  24816. </field>
  24817. <field name="BOOLEAN_TKN" type="int"
  24818. transient="false" volatile="false"
  24819. static="true" final="true" visibility="public"
  24820. deprecated="not deprecated">
  24821. </field>
  24822. <field name="INT_TKN" type="int"
  24823. transient="false" volatile="false"
  24824. static="true" final="true" visibility="public"
  24825. deprecated="not deprecated">
  24826. </field>
  24827. <field name="LONG_TKN" type="int"
  24828. transient="false" volatile="false"
  24829. static="true" final="true" visibility="public"
  24830. deprecated="not deprecated">
  24831. </field>
  24832. <field name="FLOAT_TKN" type="int"
  24833. transient="false" volatile="false"
  24834. static="true" final="true" visibility="public"
  24835. deprecated="not deprecated">
  24836. </field>
  24837. <field name="DOUBLE_TKN" type="int"
  24838. transient="false" volatile="false"
  24839. static="true" final="true" visibility="public"
  24840. deprecated="not deprecated">
  24841. </field>
  24842. <field name="USTRING_TKN" type="int"
  24843. transient="false" volatile="false"
  24844. static="true" final="true" visibility="public"
  24845. deprecated="not deprecated">
  24846. </field>
  24847. <field name="BUFFER_TKN" type="int"
  24848. transient="false" volatile="false"
  24849. static="true" final="true" visibility="public"
  24850. deprecated="not deprecated">
  24851. </field>
  24852. <field name="VECTOR_TKN" type="int"
  24853. transient="false" volatile="false"
  24854. static="true" final="true" visibility="public"
  24855. deprecated="not deprecated">
  24856. </field>
  24857. <field name="MAP_TKN" type="int"
  24858. transient="false" volatile="false"
  24859. static="true" final="true" visibility="public"
  24860. deprecated="not deprecated">
  24861. </field>
  24862. <field name="LBRACE_TKN" type="int"
  24863. transient="false" volatile="false"
  24864. static="true" final="true" visibility="public"
  24865. deprecated="not deprecated">
  24866. </field>
  24867. <field name="RBRACE_TKN" type="int"
  24868. transient="false" volatile="false"
  24869. static="true" final="true" visibility="public"
  24870. deprecated="not deprecated">
  24871. </field>
  24872. <field name="LT_TKN" type="int"
  24873. transient="false" volatile="false"
  24874. static="true" final="true" visibility="public"
  24875. deprecated="not deprecated">
  24876. </field>
  24877. <field name="GT_TKN" type="int"
  24878. transient="false" volatile="false"
  24879. static="true" final="true" visibility="public"
  24880. deprecated="not deprecated">
  24881. </field>
  24882. <field name="SEMICOLON_TKN" type="int"
  24883. transient="false" volatile="false"
  24884. static="true" final="true" visibility="public"
  24885. deprecated="not deprecated">
  24886. </field>
  24887. <field name="COMMA_TKN" type="int"
  24888. transient="false" volatile="false"
  24889. static="true" final="true" visibility="public"
  24890. deprecated="not deprecated">
  24891. </field>
  24892. <field name="DOT_TKN" type="int"
  24893. transient="false" volatile="false"
  24894. static="true" final="true" visibility="public"
  24895. deprecated="not deprecated">
  24896. </field>
  24897. <field name="CSTRING_TKN" type="int"
  24898. transient="false" volatile="false"
  24899. static="true" final="true" visibility="public"
  24900. deprecated="not deprecated">
  24901. </field>
  24902. <field name="IDENT_TKN" type="int"
  24903. transient="false" volatile="false"
  24904. static="true" final="true" visibility="public"
  24905. deprecated="not deprecated">
  24906. </field>
  24907. <field name="DEFAULT" type="int"
  24908. transient="false" volatile="false"
  24909. static="true" final="true" visibility="public"
  24910. deprecated="not deprecated">
  24911. </field>
  24912. <field name="WithinOneLineComment" type="int"
  24913. transient="false" volatile="false"
  24914. static="true" final="true" visibility="public"
  24915. deprecated="not deprecated">
  24916. </field>
  24917. <field name="WithinMultiLineComment" type="int"
  24918. transient="false" volatile="false"
  24919. static="true" final="true" visibility="public"
  24920. deprecated="not deprecated">
  24921. </field>
  24922. <field name="tokenImage" type="java.lang.String[]"
  24923. transient="false" volatile="false"
  24924. static="true" final="true" visibility="public"
  24925. deprecated="not deprecated">
  24926. </field>
  24927. </interface>
  24928. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  24929. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  24930. <class name="RccTokenManager" extends="java.lang.Object"
  24931. abstract="false"
  24932. static="false" final="false" visibility="public"
  24933. deprecated="not deprecated">
  24934. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  24935. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  24936. static="false" final="false" visibility="public"
  24937. deprecated="not deprecated">
  24938. </constructor>
  24939. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  24940. static="false" final="false" visibility="public"
  24941. deprecated="not deprecated">
  24942. </constructor>
  24943. <method name="setDebugStream"
  24944. abstract="false" native="false" synchronized="false"
  24945. static="false" final="false" visibility="public"
  24946. deprecated="not deprecated">
  24947. <param name="ds" type="java.io.PrintStream"/>
  24948. </method>
  24949. <method name="ReInit"
  24950. abstract="false" native="false" synchronized="false"
  24951. static="false" final="false" visibility="public"
  24952. deprecated="not deprecated">
  24953. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  24954. </method>
  24955. <method name="ReInit"
  24956. abstract="false" native="false" synchronized="false"
  24957. static="false" final="false" visibility="public"
  24958. deprecated="not deprecated">
  24959. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  24960. <param name="lexState" type="int"/>
  24961. </method>
  24962. <method name="SwitchTo"
  24963. abstract="false" native="false" synchronized="false"
  24964. static="false" final="false" visibility="public"
  24965. deprecated="not deprecated">
  24966. <param name="lexState" type="int"/>
  24967. </method>
  24968. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  24969. abstract="false" native="false" synchronized="false"
  24970. static="false" final="false" visibility="protected"
  24971. deprecated="not deprecated">
  24972. </method>
  24973. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  24974. abstract="false" native="false" synchronized="false"
  24975. static="false" final="false" visibility="public"
  24976. deprecated="not deprecated">
  24977. </method>
  24978. <field name="debugStream" type="java.io.PrintStream"
  24979. transient="false" volatile="false"
  24980. static="false" final="false" visibility="public"
  24981. deprecated="not deprecated">
  24982. </field>
  24983. <field name="jjstrLiteralImages" type="java.lang.String[]"
  24984. transient="false" volatile="false"
  24985. static="true" final="true" visibility="public"
  24986. deprecated="not deprecated">
  24987. </field>
  24988. <field name="lexStateNames" type="java.lang.String[]"
  24989. transient="false" volatile="false"
  24990. static="true" final="true" visibility="public"
  24991. deprecated="not deprecated">
  24992. </field>
  24993. <field name="jjnewLexState" type="int[]"
  24994. transient="false" volatile="false"
  24995. static="true" final="true" visibility="public"
  24996. deprecated="not deprecated">
  24997. </field>
  24998. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  24999. transient="false" volatile="false"
  25000. static="false" final="false" visibility="protected"
  25001. deprecated="not deprecated">
  25002. </field>
  25003. <field name="curChar" type="char"
  25004. transient="false" volatile="false"
  25005. static="false" final="false" visibility="protected"
  25006. deprecated="not deprecated">
  25007. </field>
  25008. </class>
  25009. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  25010. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  25011. <class name="SimpleCharStream" extends="java.lang.Object"
  25012. abstract="false"
  25013. static="false" final="false" visibility="public"
  25014. deprecated="not deprecated">
  25015. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  25016. static="false" final="false" visibility="public"
  25017. deprecated="not deprecated">
  25018. </constructor>
  25019. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  25020. static="false" final="false" visibility="public"
  25021. deprecated="not deprecated">
  25022. </constructor>
  25023. <constructor name="SimpleCharStream" type="java.io.Reader"
  25024. static="false" final="false" visibility="public"
  25025. deprecated="not deprecated">
  25026. </constructor>
  25027. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  25028. static="false" final="false" visibility="public"
  25029. deprecated="not deprecated">
  25030. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  25031. </constructor>
  25032. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  25033. static="false" final="false" visibility="public"
  25034. deprecated="not deprecated">
  25035. </constructor>
  25036. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  25037. static="false" final="false" visibility="public"
  25038. deprecated="not deprecated">
  25039. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  25040. </constructor>
  25041. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  25042. static="false" final="false" visibility="public"
  25043. deprecated="not deprecated">
  25044. </constructor>
  25045. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  25046. static="false" final="false" visibility="public"
  25047. deprecated="not deprecated">
  25048. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  25049. </constructor>
  25050. <constructor name="SimpleCharStream" type="java.io.InputStream"
  25051. static="false" final="false" visibility="public"
  25052. deprecated="not deprecated">
  25053. </constructor>
  25054. <method name="setTabSize"
  25055. abstract="false" native="false" synchronized="false"
  25056. static="false" final="false" visibility="protected"
  25057. deprecated="not deprecated">
  25058. <param name="i" type="int"/>
  25059. </method>
  25060. <method name="getTabSize" return="int"
  25061. abstract="false" native="false" synchronized="false"
  25062. static="false" final="false" visibility="protected"
  25063. deprecated="not deprecated">
  25064. <param name="i" type="int"/>
  25065. </method>
  25066. <method name="ExpandBuff"
  25067. abstract="false" native="false" synchronized="false"
  25068. static="false" final="false" visibility="protected"
  25069. deprecated="not deprecated">
  25070. <param name="wrapAround" type="boolean"/>
  25071. </method>
  25072. <method name="FillBuff"
  25073. abstract="false" native="false" synchronized="false"
  25074. static="false" final="false" visibility="protected"
  25075. deprecated="not deprecated">
  25076. <exception name="IOException" type="java.io.IOException"/>
  25077. </method>
  25078. <method name="BeginToken" return="char"
  25079. abstract="false" native="false" synchronized="false"
  25080. static="false" final="false" visibility="public"
  25081. deprecated="not deprecated">
  25082. <exception name="IOException" type="java.io.IOException"/>
  25083. </method>
  25084. <method name="UpdateLineColumn"
  25085. abstract="false" native="false" synchronized="false"
  25086. static="false" final="false" visibility="protected"
  25087. deprecated="not deprecated">
  25088. <param name="c" type="char"/>
  25089. </method>
  25090. <method name="readChar" return="char"
  25091. abstract="false" native="false" synchronized="false"
  25092. static="false" final="false" visibility="public"
  25093. deprecated="not deprecated">
  25094. <exception name="IOException" type="java.io.IOException"/>
  25095. </method>
  25096. <method name="getEndColumn" return="int"
  25097. abstract="false" native="false" synchronized="false"
  25098. static="false" final="false" visibility="public"
  25099. deprecated="not deprecated">
  25100. </method>
  25101. <method name="getEndLine" return="int"
  25102. abstract="false" native="false" synchronized="false"
  25103. static="false" final="false" visibility="public"
  25104. deprecated="not deprecated">
  25105. </method>
  25106. <method name="getBeginColumn" return="int"
  25107. abstract="false" native="false" synchronized="false"
  25108. static="false" final="false" visibility="public"
  25109. deprecated="not deprecated">
  25110. </method>
  25111. <method name="getBeginLine" return="int"
  25112. abstract="false" native="false" synchronized="false"
  25113. static="false" final="false" visibility="public"
  25114. deprecated="not deprecated">
  25115. </method>
  25116. <method name="backup"
  25117. abstract="false" native="false" synchronized="false"
  25118. static="false" final="false" visibility="public"
  25119. deprecated="not deprecated">
  25120. <param name="amount" type="int"/>
  25121. </method>
  25122. <method name="ReInit"
  25123. abstract="false" native="false" synchronized="false"
  25124. static="false" final="false" visibility="public"
  25125. deprecated="not deprecated">
  25126. <param name="dstream" type="java.io.Reader"/>
  25127. <param name="startline" type="int"/>
  25128. <param name="startcolumn" type="int"/>
  25129. <param name="buffersize" type="int"/>
  25130. </method>
  25131. <method name="ReInit"
  25132. abstract="false" native="false" synchronized="false"
  25133. static="false" final="false" visibility="public"
  25134. deprecated="not deprecated">
  25135. <param name="dstream" type="java.io.Reader"/>
  25136. <param name="startline" type="int"/>
  25137. <param name="startcolumn" type="int"/>
  25138. </method>
  25139. <method name="ReInit"
  25140. abstract="false" native="false" synchronized="false"
  25141. static="false" final="false" visibility="public"
  25142. deprecated="not deprecated">
  25143. <param name="dstream" type="java.io.Reader"/>
  25144. </method>
  25145. <method name="ReInit"
  25146. abstract="false" native="false" synchronized="false"
  25147. static="false" final="false" visibility="public"
  25148. deprecated="not deprecated">
  25149. <param name="dstream" type="java.io.InputStream"/>
  25150. <param name="encoding" type="java.lang.String"/>
  25151. <param name="startline" type="int"/>
  25152. <param name="startcolumn" type="int"/>
  25153. <param name="buffersize" type="int"/>
  25154. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  25155. </method>
  25156. <method name="ReInit"
  25157. abstract="false" native="false" synchronized="false"
  25158. static="false" final="false" visibility="public"
  25159. deprecated="not deprecated">
  25160. <param name="dstream" type="java.io.InputStream"/>
  25161. <param name="startline" type="int"/>
  25162. <param name="startcolumn" type="int"/>
  25163. <param name="buffersize" type="int"/>
  25164. </method>
  25165. <method name="ReInit"
  25166. abstract="false" native="false" synchronized="false"
  25167. static="false" final="false" visibility="public"
  25168. deprecated="not deprecated">
  25169. <param name="dstream" type="java.io.InputStream"/>
  25170. <param name="encoding" type="java.lang.String"/>
  25171. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  25172. </method>
  25173. <method name="ReInit"
  25174. abstract="false" native="false" synchronized="false"
  25175. static="false" final="false" visibility="public"
  25176. deprecated="not deprecated">
  25177. <param name="dstream" type="java.io.InputStream"/>
  25178. </method>
  25179. <method name="ReInit"
  25180. abstract="false" native="false" synchronized="false"
  25181. static="false" final="false" visibility="public"
  25182. deprecated="not deprecated">
  25183. <param name="dstream" type="java.io.InputStream"/>
  25184. <param name="encoding" type="java.lang.String"/>
  25185. <param name="startline" type="int"/>
  25186. <param name="startcolumn" type="int"/>
  25187. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  25188. </method>
  25189. <method name="ReInit"
  25190. abstract="false" native="false" synchronized="false"
  25191. static="false" final="false" visibility="public"
  25192. deprecated="not deprecated">
  25193. <param name="dstream" type="java.io.InputStream"/>
  25194. <param name="startline" type="int"/>
  25195. <param name="startcolumn" type="int"/>
  25196. </method>
  25197. <method name="GetImage" return="java.lang.String"
  25198. abstract="false" native="false" synchronized="false"
  25199. static="false" final="false" visibility="public"
  25200. deprecated="not deprecated">
  25201. </method>
  25202. <method name="GetSuffix" return="char[]"
  25203. abstract="false" native="false" synchronized="false"
  25204. static="false" final="false" visibility="public"
  25205. deprecated="not deprecated">
  25206. <param name="len" type="int"/>
  25207. </method>
  25208. <method name="Done"
  25209. abstract="false" native="false" synchronized="false"
  25210. static="false" final="false" visibility="public"
  25211. deprecated="not deprecated">
  25212. </method>
  25213. <method name="adjustBeginLineColumn"
  25214. abstract="false" native="false" synchronized="false"
  25215. static="false" final="false" visibility="public"
  25216. deprecated="not deprecated">
  25217. <param name="newLine" type="int"/>
  25218. <param name="newCol" type="int"/>
  25219. <doc>
  25220. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  25221. </doc>
  25222. </method>
  25223. <field name="staticFlag" type="boolean"
  25224. transient="false" volatile="false"
  25225. static="true" final="true" visibility="public"
  25226. deprecated="not deprecated">
  25227. </field>
  25228. <field name="bufpos" type="int"
  25229. transient="false" volatile="false"
  25230. static="false" final="false" visibility="public"
  25231. deprecated="not deprecated">
  25232. </field>
  25233. <field name="bufline" type="int[]"
  25234. transient="false" volatile="false"
  25235. static="false" final="false" visibility="protected"
  25236. deprecated="not deprecated">
  25237. </field>
  25238. <field name="bufcolumn" type="int[]"
  25239. transient="false" volatile="false"
  25240. static="false" final="false" visibility="protected"
  25241. deprecated="not deprecated">
  25242. </field>
  25243. <field name="column" type="int"
  25244. transient="false" volatile="false"
  25245. static="false" final="false" visibility="protected"
  25246. deprecated="not deprecated">
  25247. </field>
  25248. <field name="line" type="int"
  25249. transient="false" volatile="false"
  25250. static="false" final="false" visibility="protected"
  25251. deprecated="not deprecated">
  25252. </field>
  25253. <field name="prevCharIsCR" type="boolean"
  25254. transient="false" volatile="false"
  25255. static="false" final="false" visibility="protected"
  25256. deprecated="not deprecated">
  25257. </field>
  25258. <field name="prevCharIsLF" type="boolean"
  25259. transient="false" volatile="false"
  25260. static="false" final="false" visibility="protected"
  25261. deprecated="not deprecated">
  25262. </field>
  25263. <field name="inputStream" type="java.io.Reader"
  25264. transient="false" volatile="false"
  25265. static="false" final="false" visibility="protected"
  25266. deprecated="not deprecated">
  25267. </field>
  25268. <field name="buffer" type="char[]"
  25269. transient="false" volatile="false"
  25270. static="false" final="false" visibility="protected"
  25271. deprecated="not deprecated">
  25272. </field>
  25273. <field name="maxNextCharInd" type="int"
  25274. transient="false" volatile="false"
  25275. static="false" final="false" visibility="protected"
  25276. deprecated="not deprecated">
  25277. </field>
  25278. <field name="inBuf" type="int"
  25279. transient="false" volatile="false"
  25280. static="false" final="false" visibility="protected"
  25281. deprecated="not deprecated">
  25282. </field>
  25283. <field name="tabSize" type="int"
  25284. transient="false" volatile="false"
  25285. static="false" final="false" visibility="protected"
  25286. deprecated="not deprecated">
  25287. </field>
  25288. <doc>
  25289. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  25290. contain only ASCII characters (without unicode processing).]]>
  25291. </doc>
  25292. </class>
  25293. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  25294. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  25295. <class name="Token" extends="java.lang.Object"
  25296. abstract="false"
  25297. static="false" final="false" visibility="public"
  25298. deprecated="not deprecated">
  25299. <constructor name="Token"
  25300. static="false" final="false" visibility="public"
  25301. deprecated="not deprecated">
  25302. </constructor>
  25303. <method name="toString" return="java.lang.String"
  25304. abstract="false" native="false" synchronized="false"
  25305. static="false" final="false" visibility="public"
  25306. deprecated="not deprecated">
  25307. <doc>
  25308. <![CDATA[Returns the image.]]>
  25309. </doc>
  25310. </method>
  25311. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  25312. abstract="false" native="false" synchronized="false"
  25313. static="true" final="true" visibility="public"
  25314. deprecated="not deprecated">
  25315. <param name="ofKind" type="int"/>
  25316. <doc>
  25317. <![CDATA[Returns a new Token object, by default. However, if you want, you
  25318. can create and return subclass objects based on the value of ofKind.
  25319. Simply add the cases to the switch for all those special cases.
  25320. For example, if you have a subclass of Token called IDToken that
  25321. you want to create if ofKind is ID, simlpy add something like :
  25322. case MyParserConstants.ID : return new IDToken();
  25323. to the following switch statement. Then you can cast matchedToken
  25324. variable to the appropriate type and use it in your lexical actions.]]>
  25325. </doc>
  25326. </method>
  25327. <field name="kind" type="int"
  25328. transient="false" volatile="false"
  25329. static="false" final="false" visibility="public"
  25330. deprecated="not deprecated">
  25331. <doc>
  25332. <![CDATA[An integer that describes the kind of this token. This numbering
  25333. system is determined by JavaCCParser, and a table of these numbers is
  25334. stored in the file ...Constants.java.]]>
  25335. </doc>
  25336. </field>
  25337. <field name="beginLine" type="int"
  25338. transient="false" volatile="false"
  25339. static="false" final="false" visibility="public"
  25340. deprecated="not deprecated">
  25341. <doc>
  25342. <![CDATA[beginLine and beginColumn describe the position of the first character
  25343. of this token; endLine and endColumn describe the position of the
  25344. last character of this token.]]>
  25345. </doc>
  25346. </field>
  25347. <field name="beginColumn" type="int"
  25348. transient="false" volatile="false"
  25349. static="false" final="false" visibility="public"
  25350. deprecated="not deprecated">
  25351. <doc>
  25352. <![CDATA[beginLine and beginColumn describe the position of the first character
  25353. of this token; endLine and endColumn describe the position of the
  25354. last character of this token.]]>
  25355. </doc>
  25356. </field>
  25357. <field name="endLine" type="int"
  25358. transient="false" volatile="false"
  25359. static="false" final="false" visibility="public"
  25360. deprecated="not deprecated">
  25361. <doc>
  25362. <![CDATA[beginLine and beginColumn describe the position of the first character
  25363. of this token; endLine and endColumn describe the position of the
  25364. last character of this token.]]>
  25365. </doc>
  25366. </field>
  25367. <field name="endColumn" type="int"
  25368. transient="false" volatile="false"
  25369. static="false" final="false" visibility="public"
  25370. deprecated="not deprecated">
  25371. <doc>
  25372. <![CDATA[beginLine and beginColumn describe the position of the first character
  25373. of this token; endLine and endColumn describe the position of the
  25374. last character of this token.]]>
  25375. </doc>
  25376. </field>
  25377. <field name="image" type="java.lang.String"
  25378. transient="false" volatile="false"
  25379. static="false" final="false" visibility="public"
  25380. deprecated="not deprecated">
  25381. <doc>
  25382. <![CDATA[The string image of the token.]]>
  25383. </doc>
  25384. </field>
  25385. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  25386. transient="false" volatile="false"
  25387. static="false" final="false" visibility="public"
  25388. deprecated="not deprecated">
  25389. <doc>
  25390. <![CDATA[A reference to the next regular (non-special) token from the input
  25391. stream. If this is the last token from the input stream, or if the
  25392. token manager has not read tokens beyond this one, this field is
  25393. set to null. This is true only if this token is also a regular
  25394. token. Otherwise, see below for a description of the contents of
  25395. this field.]]>
  25396. </doc>
  25397. </field>
  25398. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  25399. transient="false" volatile="false"
  25400. static="false" final="false" visibility="public"
  25401. deprecated="not deprecated">
  25402. <doc>
  25403. <![CDATA[This field is used to access special tokens that occur prior to this
  25404. token, but after the immediately preceding regular (non-special) token.
  25405. If there are no such special tokens, this field is set to null.
  25406. When there are more than one such special token, this field refers
  25407. to the last of these special tokens, which in turn refers to the next
  25408. previous special token through its specialToken field, and so on
  25409. until the first special token (whose specialToken field is null).
  25410. The next fields of special tokens refer to other special tokens that
  25411. immediately follow it (without an intervening regular token). If there
  25412. is no such token, this field is null.]]>
  25413. </doc>
  25414. </field>
  25415. <doc>
  25416. <![CDATA[Describes the input token stream.]]>
  25417. </doc>
  25418. </class>
  25419. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  25420. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  25421. <class name="TokenMgrError" extends="java.lang.Error"
  25422. abstract="false"
  25423. static="false" final="false" visibility="public"
  25424. deprecated="not deprecated">
  25425. <constructor name="TokenMgrError"
  25426. static="false" final="false" visibility="public"
  25427. deprecated="not deprecated">
  25428. </constructor>
  25429. <constructor name="TokenMgrError" type="java.lang.String, int"
  25430. static="false" final="false" visibility="public"
  25431. deprecated="not deprecated">
  25432. </constructor>
  25433. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  25434. static="false" final="false" visibility="public"
  25435. deprecated="not deprecated">
  25436. </constructor>
  25437. <method name="addEscapes" return="java.lang.String"
  25438. abstract="false" native="false" synchronized="false"
  25439. static="true" final="true" visibility="protected"
  25440. deprecated="not deprecated">
  25441. <param name="str" type="java.lang.String"/>
  25442. <doc>
  25443. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  25444. equivalents in the given string]]>
  25445. </doc>
  25446. </method>
  25447. <method name="LexicalError" return="java.lang.String"
  25448. abstract="false" native="false" synchronized="false"
  25449. static="true" final="false" visibility="protected"
  25450. deprecated="not deprecated">
  25451. <param name="EOFSeen" type="boolean"/>
  25452. <param name="lexState" type="int"/>
  25453. <param name="errorLine" type="int"/>
  25454. <param name="errorColumn" type="int"/>
  25455. <param name="errorAfter" type="java.lang.String"/>
  25456. <param name="curChar" type="char"/>
  25457. <doc>
  25458. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  25459. token manager to indicate a lexical error.
  25460. Parameters :
  25461. EOFSeen : indicates if EOF caused the lexicl error
  25462. curLexState : lexical state in which this error occured
  25463. errorLine : line number when the error occured
  25464. errorColumn : column number when the error occured
  25465. errorAfter : prefix that was seen before this error occured
  25466. curchar : the offending character
  25467. Note: You can customize the lexical error message by modifying this method.]]>
  25468. </doc>
  25469. </method>
  25470. <method name="getMessage" return="java.lang.String"
  25471. abstract="false" native="false" synchronized="false"
  25472. static="false" final="false" visibility="public"
  25473. deprecated="not deprecated">
  25474. <doc>
  25475. <![CDATA[You can also modify the body of this method to customize your error messages.
  25476. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  25477. of end-users concern, so you can return something like :
  25478. "Internal Error : Please file a bug report .... "
  25479. from this method for such cases in the release version of your parser.]]>
  25480. </doc>
  25481. </method>
  25482. </class>
  25483. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  25484. </package>
  25485. <package name="org.apache.hadoop.record.meta">
  25486. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  25487. <class name="FieldTypeInfo" extends="java.lang.Object"
  25488. abstract="false"
  25489. static="false" final="false" visibility="public"
  25490. deprecated="not deprecated">
  25491. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  25492. abstract="false" native="false" synchronized="false"
  25493. static="false" final="false" visibility="public"
  25494. deprecated="not deprecated">
  25495. <doc>
  25496. <![CDATA[get the field's TypeID object]]>
  25497. </doc>
  25498. </method>
  25499. <method name="getFieldID" return="java.lang.String"
  25500. abstract="false" native="false" synchronized="false"
  25501. static="false" final="false" visibility="public"
  25502. deprecated="not deprecated">
  25503. <doc>
  25504. <![CDATA[get the field's id (name)]]>
  25505. </doc>
  25506. </method>
  25507. <method name="equals" return="boolean"
  25508. abstract="false" native="false" synchronized="false"
  25509. static="false" final="false" visibility="public"
  25510. deprecated="not deprecated">
  25511. <param name="o" type="java.lang.Object"/>
  25512. <doc>
  25513. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  25514. </doc>
  25515. </method>
  25516. <method name="hashCode" return="int"
  25517. abstract="false" native="false" synchronized="false"
  25518. static="false" final="false" visibility="public"
  25519. deprecated="not deprecated">
  25520. <doc>
  25521. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  25522. be used as a hashmap key]]>
  25523. </doc>
  25524. </method>
  25525. <method name="equals" return="boolean"
  25526. abstract="false" native="false" synchronized="false"
  25527. static="false" final="false" visibility="public"
  25528. deprecated="not deprecated">
  25529. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  25530. </method>
  25531. <doc>
  25532. <![CDATA[Represents a type information for a field, which is made up of its
  25533. ID (name) and its type (a TypeID object).]]>
  25534. </doc>
  25535. </class>
  25536. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  25537. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  25538. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  25539. abstract="false"
  25540. static="false" final="false" visibility="public"
  25541. deprecated="not deprecated">
  25542. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  25543. static="false" final="false" visibility="public"
  25544. deprecated="not deprecated">
  25545. </constructor>
  25546. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  25547. abstract="false" native="false" synchronized="false"
  25548. static="false" final="false" visibility="public"
  25549. deprecated="not deprecated">
  25550. <doc>
  25551. <![CDATA[get the TypeID of the map's key element]]>
  25552. </doc>
  25553. </method>
  25554. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  25555. abstract="false" native="false" synchronized="false"
  25556. static="false" final="false" visibility="public"
  25557. deprecated="not deprecated">
  25558. <doc>
  25559. <![CDATA[get the TypeID of the map's value element]]>
  25560. </doc>
  25561. </method>
  25562. <method name="equals" return="boolean"
  25563. abstract="false" native="false" synchronized="false"
  25564. static="false" final="false" visibility="public"
  25565. deprecated="not deprecated">
  25566. <param name="o" type="java.lang.Object"/>
  25567. <doc>
  25568. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  25569. same type]]>
  25570. </doc>
  25571. </method>
  25572. <method name="hashCode" return="int"
  25573. abstract="false" native="false" synchronized="false"
  25574. static="false" final="false" visibility="public"
  25575. deprecated="not deprecated">
  25576. <doc>
  25577. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  25578. be used as a hashmap key]]>
  25579. </doc>
  25580. </method>
  25581. <doc>
  25582. <![CDATA[Represents typeID for a Map]]>
  25583. </doc>
  25584. </class>
  25585. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  25586. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  25587. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  25588. abstract="false"
  25589. static="false" final="false" visibility="public"
  25590. deprecated="not deprecated">
  25591. <constructor name="RecordTypeInfo"
  25592. static="false" final="false" visibility="public"
  25593. deprecated="not deprecated">
  25594. <doc>
  25595. <![CDATA[Create an empty RecordTypeInfo object.]]>
  25596. </doc>
  25597. </constructor>
  25598. <constructor name="RecordTypeInfo" type="java.lang.String"
  25599. static="false" final="false" visibility="public"
  25600. deprecated="not deprecated">
  25601. <doc>
  25602. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  25603. @param name Name of the record]]>
  25604. </doc>
  25605. </constructor>
  25606. <method name="getName" return="java.lang.String"
  25607. abstract="false" native="false" synchronized="false"
  25608. static="false" final="false" visibility="public"
  25609. deprecated="not deprecated">
  25610. <doc>
  25611. <![CDATA[return the name of the record]]>
  25612. </doc>
  25613. </method>
  25614. <method name="setName"
  25615. abstract="false" native="false" synchronized="false"
  25616. static="false" final="false" visibility="public"
  25617. deprecated="not deprecated">
  25618. <param name="name" type="java.lang.String"/>
  25619. <doc>
  25620. <![CDATA[set the name of the record]]>
  25621. </doc>
  25622. </method>
  25623. <method name="addField"
  25624. abstract="false" native="false" synchronized="false"
  25625. static="false" final="false" visibility="public"
  25626. deprecated="not deprecated">
  25627. <param name="fieldName" type="java.lang.String"/>
  25628. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  25629. <doc>
  25630. <![CDATA[Add a field.
  25631. @param fieldName Name of the field
  25632. @param tid Type ID of the field]]>
  25633. </doc>
  25634. </method>
  25635. <method name="getFieldTypeInfos" return="java.util.Collection"
  25636. abstract="false" native="false" synchronized="false"
  25637. static="false" final="false" visibility="public"
  25638. deprecated="not deprecated">
  25639. <doc>
  25640. <![CDATA[Return a collection of field type infos]]>
  25641. </doc>
  25642. </method>
  25643. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  25644. abstract="false" native="false" synchronized="false"
  25645. static="false" final="false" visibility="public"
  25646. deprecated="not deprecated">
  25647. <param name="name" type="java.lang.String"/>
  25648. <doc>
  25649. <![CDATA[Return the type info of a nested record. We only consider nesting
  25650. to one level.
  25651. @param name Name of the nested record]]>
  25652. </doc>
  25653. </method>
  25654. <method name="serialize"
  25655. abstract="false" native="false" synchronized="false"
  25656. static="false" final="false" visibility="public"
  25657. deprecated="not deprecated">
  25658. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  25659. <param name="tag" type="java.lang.String"/>
  25660. <exception name="IOException" type="java.io.IOException"/>
  25661. <doc>
  25662. <![CDATA[Serialize the type information for a record]]>
  25663. </doc>
  25664. </method>
  25665. <method name="deserialize"
  25666. abstract="false" native="false" synchronized="false"
  25667. static="false" final="false" visibility="public"
  25668. deprecated="not deprecated">
  25669. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  25670. <param name="tag" type="java.lang.String"/>
  25671. <exception name="IOException" type="java.io.IOException"/>
  25672. <doc>
  25673. <![CDATA[Deserialize the type information for a record]]>
  25674. </doc>
  25675. </method>
  25676. <method name="compareTo" return="int"
  25677. abstract="false" native="false" synchronized="false"
  25678. static="false" final="false" visibility="public"
  25679. deprecated="not deprecated">
  25680. <param name="peer_" type="java.lang.Object"/>
  25681. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  25682. <doc>
  25683. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  25684. for anything besides de/serializing.
  25685. So we always throw an exception.
  25686. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  25687. </doc>
  25688. </method>
  25689. <doc>
  25690. <![CDATA[A record's Type Information object which can read/write itself.
  25691. Type information for a record comprises metadata about the record,
  25692. as well as a collection of type information for each field in the record.]]>
  25693. </doc>
  25694. </class>
  25695. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  25696. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  25697. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  25698. abstract="false"
  25699. static="false" final="false" visibility="public"
  25700. deprecated="not deprecated">
  25701. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  25702. static="false" final="false" visibility="public"
  25703. deprecated="not deprecated">
  25704. <doc>
  25705. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  25706. </doc>
  25707. </constructor>
  25708. <method name="getFieldTypeInfos" return="java.util.Collection"
  25709. abstract="false" native="false" synchronized="false"
  25710. static="false" final="false" visibility="public"
  25711. deprecated="not deprecated">
  25712. </method>
  25713. <doc>
  25714. <![CDATA[Represents typeID for a struct]]>
  25715. </doc>
  25716. </class>
  25717. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  25718. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  25719. <class name="TypeID" extends="java.lang.Object"
  25720. abstract="false"
  25721. static="false" final="false" visibility="public"
  25722. deprecated="not deprecated">
  25723. <method name="getTypeVal" return="byte"
  25724. abstract="false" native="false" synchronized="false"
  25725. static="false" final="false" visibility="public"
  25726. deprecated="not deprecated">
  25727. <doc>
  25728. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  25729. </doc>
  25730. </method>
  25731. <method name="equals" return="boolean"
  25732. abstract="false" native="false" synchronized="false"
  25733. static="false" final="false" visibility="public"
  25734. deprecated="not deprecated">
  25735. <param name="o" type="java.lang.Object"/>
  25736. <doc>
  25737. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  25738. </doc>
  25739. </method>
  25740. <method name="hashCode" return="int"
  25741. abstract="false" native="false" synchronized="false"
  25742. static="false" final="false" visibility="public"
  25743. deprecated="not deprecated">
  25744. <doc>
  25745. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  25746. be used as a hashmap key]]>
  25747. </doc>
  25748. </method>
  25749. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25750. transient="false" volatile="false"
  25751. static="true" final="true" visibility="public"
  25752. deprecated="not deprecated">
  25753. <doc>
  25754. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  25755. </doc>
  25756. </field>
  25757. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25758. transient="false" volatile="false"
  25759. static="true" final="true" visibility="public"
  25760. deprecated="not deprecated">
  25761. </field>
  25762. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25763. transient="false" volatile="false"
  25764. static="true" final="true" visibility="public"
  25765. deprecated="not deprecated">
  25766. </field>
  25767. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25768. transient="false" volatile="false"
  25769. static="true" final="true" visibility="public"
  25770. deprecated="not deprecated">
  25771. </field>
  25772. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25773. transient="false" volatile="false"
  25774. static="true" final="true" visibility="public"
  25775. deprecated="not deprecated">
  25776. </field>
  25777. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25778. transient="false" volatile="false"
  25779. static="true" final="true" visibility="public"
  25780. deprecated="not deprecated">
  25781. </field>
  25782. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25783. transient="false" volatile="false"
  25784. static="true" final="true" visibility="public"
  25785. deprecated="not deprecated">
  25786. </field>
  25787. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25788. transient="false" volatile="false"
  25789. static="true" final="true" visibility="public"
  25790. deprecated="not deprecated">
  25791. </field>
  25792. <field name="typeVal" type="byte"
  25793. transient="false" volatile="false"
  25794. static="false" final="false" visibility="protected"
  25795. deprecated="not deprecated">
  25796. </field>
  25797. <doc>
  25798. <![CDATA[Represents typeID for basic types.]]>
  25799. </doc>
  25800. </class>
  25801. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  25802. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  25803. <class name="TypeID.RIOType" extends="java.lang.Object"
  25804. abstract="false"
  25805. static="true" final="true" visibility="public"
  25806. deprecated="not deprecated">
  25807. <constructor name="TypeID.RIOType"
  25808. static="false" final="false" visibility="public"
  25809. deprecated="not deprecated">
  25810. </constructor>
  25811. <field name="BOOL" type="byte"
  25812. transient="false" volatile="false"
  25813. static="true" final="true" visibility="public"
  25814. deprecated="not deprecated">
  25815. </field>
  25816. <field name="BUFFER" type="byte"
  25817. transient="false" volatile="false"
  25818. static="true" final="true" visibility="public"
  25819. deprecated="not deprecated">
  25820. </field>
  25821. <field name="BYTE" type="byte"
  25822. transient="false" volatile="false"
  25823. static="true" final="true" visibility="public"
  25824. deprecated="not deprecated">
  25825. </field>
  25826. <field name="DOUBLE" type="byte"
  25827. transient="false" volatile="false"
  25828. static="true" final="true" visibility="public"
  25829. deprecated="not deprecated">
  25830. </field>
  25831. <field name="FLOAT" type="byte"
  25832. transient="false" volatile="false"
  25833. static="true" final="true" visibility="public"
  25834. deprecated="not deprecated">
  25835. </field>
  25836. <field name="INT" type="byte"
  25837. transient="false" volatile="false"
  25838. static="true" final="true" visibility="public"
  25839. deprecated="not deprecated">
  25840. </field>
  25841. <field name="LONG" type="byte"
  25842. transient="false" volatile="false"
  25843. static="true" final="true" visibility="public"
  25844. deprecated="not deprecated">
  25845. </field>
  25846. <field name="MAP" type="byte"
  25847. transient="false" volatile="false"
  25848. static="true" final="true" visibility="public"
  25849. deprecated="not deprecated">
  25850. </field>
  25851. <field name="STRING" type="byte"
  25852. transient="false" volatile="false"
  25853. static="true" final="true" visibility="public"
  25854. deprecated="not deprecated">
  25855. </field>
  25856. <field name="STRUCT" type="byte"
  25857. transient="false" volatile="false"
  25858. static="true" final="true" visibility="public"
  25859. deprecated="not deprecated">
  25860. </field>
  25861. <field name="VECTOR" type="byte"
  25862. transient="false" volatile="false"
  25863. static="true" final="true" visibility="public"
  25864. deprecated="not deprecated">
  25865. </field>
  25866. <doc>
  25867. <![CDATA[constants representing the IDL types we support]]>
  25868. </doc>
  25869. </class>
  25870. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  25871. <!-- start class org.apache.hadoop.record.meta.Utils -->
  25872. <class name="Utils" extends="java.lang.Object"
  25873. abstract="false"
  25874. static="false" final="false" visibility="public"
  25875. deprecated="not deprecated">
  25876. <method name="skip"
  25877. abstract="false" native="false" synchronized="false"
  25878. static="true" final="false" visibility="public"
  25879. deprecated="not deprecated">
  25880. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  25881. <param name="tag" type="java.lang.String"/>
  25882. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  25883. <exception name="IOException" type="java.io.IOException"/>
  25884. <doc>
  25885. <![CDATA[read/skip bytes from stream based on a type]]>
  25886. </doc>
  25887. </method>
  25888. <doc>
  25889. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  25890. </doc>
  25891. </class>
  25892. <!-- end class org.apache.hadoop.record.meta.Utils -->
  25893. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  25894. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  25895. abstract="false"
  25896. static="false" final="false" visibility="public"
  25897. deprecated="not deprecated">
  25898. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25899. static="false" final="false" visibility="public"
  25900. deprecated="not deprecated">
  25901. </constructor>
  25902. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  25903. abstract="false" native="false" synchronized="false"
  25904. static="false" final="false" visibility="public"
  25905. deprecated="not deprecated">
  25906. </method>
  25907. <method name="equals" return="boolean"
  25908. abstract="false" native="false" synchronized="false"
  25909. static="false" final="false" visibility="public"
  25910. deprecated="not deprecated">
  25911. <param name="o" type="java.lang.Object"/>
  25912. <doc>
  25913. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  25914. same type]]>
  25915. </doc>
  25916. </method>
  25917. <method name="hashCode" return="int"
  25918. abstract="false" native="false" synchronized="false"
  25919. static="false" final="false" visibility="public"
  25920. deprecated="not deprecated">
  25921. <doc>
  25922. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  25923. be used as a hashmap key]]>
  25924. </doc>
  25925. </method>
  25926. <doc>
  25927. <![CDATA[Represents typeID for vector.]]>
  25928. </doc>
  25929. </class>
  25930. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  25931. </package>
  25932. <package name="org.apache.hadoop.security">
  25933. <!-- start class org.apache.hadoop.security.AccessControlException -->
  25934. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  25935. abstract="false"
  25936. static="false" final="false" visibility="public"
  25937. deprecated="not deprecated">
  25938. <constructor name="AccessControlException"
  25939. static="false" final="false" visibility="public"
  25940. deprecated="not deprecated">
  25941. <doc>
  25942. <![CDATA[Default constructor is needed for unwrapping from
  25943. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  25944. </doc>
  25945. </constructor>
  25946. <constructor name="AccessControlException" type="java.lang.String"
  25947. static="false" final="false" visibility="public"
  25948. deprecated="not deprecated">
  25949. <doc>
  25950. <![CDATA[Constructs an {@link AccessControlException}
  25951. with the specified detail message.
  25952. @param s the detail message.]]>
  25953. </doc>
  25954. </constructor>
  25955. <constructor name="AccessControlException" type="java.lang.Throwable"
  25956. static="false" final="false" visibility="public"
  25957. deprecated="not deprecated">
  25958. <doc>
  25959. <![CDATA[Constructs a new exception with the specified cause and a detail
  25960. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  25961. typically contains the class and detail message of <tt>cause</tt>).
  25962. @param cause the cause (which is saved for later retrieval by the
  25963. {@link #getCause()} method). (A <tt>null</tt> value is
  25964. permitted, and indicates that the cause is nonexistent or
  25965. unknown.)]]>
  25966. </doc>
  25967. </constructor>
  25968. <doc>
  25969. <![CDATA[An exception class for access control related issues.]]>
  25970. </doc>
  25971. </class>
  25972. <!-- end class org.apache.hadoop.security.AccessControlException -->
  25973. <!-- start class org.apache.hadoop.security.Group -->
  25974. <class name="Group" extends="java.lang.Object"
  25975. abstract="false"
  25976. static="false" final="false" visibility="public"
  25977. deprecated="not deprecated">
  25978. <implements name="java.security.Principal"/>
  25979. <constructor name="Group" type="java.lang.String"
  25980. static="false" final="false" visibility="public"
  25981. deprecated="not deprecated">
  25982. <doc>
  25983. <![CDATA[Create a new <code>Group</code> with the given groupname.
  25984. @param group group name]]>
  25985. </doc>
  25986. </constructor>
  25987. <method name="getName" return="java.lang.String"
  25988. abstract="false" native="false" synchronized="false"
  25989. static="false" final="false" visibility="public"
  25990. deprecated="not deprecated">
  25991. </method>
  25992. <method name="toString" 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="hashCode" return="int"
  25998. abstract="false" native="false" synchronized="false"
  25999. static="false" final="false" visibility="public"
  26000. deprecated="not deprecated">
  26001. </method>
  26002. <method name="equals" return="boolean"
  26003. abstract="false" native="false" synchronized="false"
  26004. static="false" final="false" visibility="public"
  26005. deprecated="not deprecated">
  26006. <param name="obj" type="java.lang.Object"/>
  26007. </method>
  26008. <doc>
  26009. <![CDATA[A group to which a user belongs to.]]>
  26010. </doc>
  26011. </class>
  26012. <!-- end class org.apache.hadoop.security.Group -->
  26013. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  26014. <class name="SecurityUtil" extends="java.lang.Object"
  26015. abstract="false"
  26016. static="false" final="false" visibility="public"
  26017. deprecated="not deprecated">
  26018. <constructor name="SecurityUtil"
  26019. static="false" final="false" visibility="public"
  26020. deprecated="not deprecated">
  26021. </constructor>
  26022. <method name="setPolicy"
  26023. abstract="false" native="false" synchronized="false"
  26024. static="true" final="false" visibility="public"
  26025. deprecated="not deprecated">
  26026. <param name="policy" type="java.security.Policy"/>
  26027. <doc>
  26028. <![CDATA[Set the global security policy for Hadoop.
  26029. @param policy {@link Policy} used for authorization.]]>
  26030. </doc>
  26031. </method>
  26032. <method name="getPolicy" return="java.security.Policy"
  26033. abstract="false" native="false" synchronized="false"
  26034. static="true" final="false" visibility="public"
  26035. deprecated="not deprecated">
  26036. <doc>
  26037. <![CDATA[Get the current global security policy for Hadoop.
  26038. @return the current {@link Policy}]]>
  26039. </doc>
  26040. </method>
  26041. <method name="getSubject" return="javax.security.auth.Subject"
  26042. abstract="false" native="false" synchronized="false"
  26043. static="true" final="false" visibility="public"
  26044. deprecated="not deprecated">
  26045. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  26046. <doc>
  26047. <![CDATA[Get the {@link Subject} for the user identified by <code>ugi</code>.
  26048. @param ugi user
  26049. @return the {@link Subject} for the user identified by <code>ugi</code>]]>
  26050. </doc>
  26051. </method>
  26052. </class>
  26053. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  26054. <!-- start class org.apache.hadoop.security.SecurityUtil.AccessControlList -->
  26055. <class name="SecurityUtil.AccessControlList" extends="java.lang.Object"
  26056. abstract="false"
  26057. static="true" final="false" visibility="public"
  26058. deprecated="not deprecated">
  26059. <constructor name="SecurityUtil.AccessControlList" type="java.lang.String"
  26060. static="false" final="false" visibility="public"
  26061. deprecated="not deprecated">
  26062. <doc>
  26063. <![CDATA[Construct a new ACL from a String representation of the same.
  26064. The String is a a comma separated list of users and groups.
  26065. The user list comes first and is separated by a space followed
  26066. by the group list. For e.g. "user1,user2 group1,group2"
  26067. @param aclString String representation of the ACL]]>
  26068. </doc>
  26069. </constructor>
  26070. <method name="allAllowed" return="boolean"
  26071. abstract="false" native="false" synchronized="false"
  26072. static="false" final="false" visibility="public"
  26073. deprecated="not deprecated">
  26074. </method>
  26075. <method name="getUsers" return="java.util.Set"
  26076. abstract="false" native="false" synchronized="false"
  26077. static="false" final="false" visibility="public"
  26078. deprecated="not deprecated">
  26079. </method>
  26080. <method name="getGroups" return="java.util.Set"
  26081. abstract="false" native="false" synchronized="false"
  26082. static="false" final="false" visibility="public"
  26083. deprecated="not deprecated">
  26084. </method>
  26085. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  26086. transient="false" volatile="false"
  26087. static="true" final="true" visibility="public"
  26088. deprecated="not deprecated">
  26089. </field>
  26090. <doc>
  26091. <![CDATA[Class representing a configured access control list.]]>
  26092. </doc>
  26093. </class>
  26094. <!-- end class org.apache.hadoop.security.SecurityUtil.AccessControlList -->
  26095. <!-- start class org.apache.hadoop.security.UnixUserGroupInformation -->
  26096. <class name="UnixUserGroupInformation" extends="org.apache.hadoop.security.UserGroupInformation"
  26097. abstract="false"
  26098. static="false" final="false" visibility="public"
  26099. deprecated="not deprecated">
  26100. <constructor name="UnixUserGroupInformation"
  26101. static="false" final="false" visibility="public"
  26102. deprecated="not deprecated">
  26103. <doc>
  26104. <![CDATA[Default constructor]]>
  26105. </doc>
  26106. </constructor>
  26107. <constructor name="UnixUserGroupInformation" type="java.lang.String, java.lang.String[]"
  26108. static="false" final="false" visibility="public"
  26109. deprecated="not deprecated">
  26110. <doc>
  26111. <![CDATA[Constructor with parameters user name and its group names.
  26112. The first entry in the groups list is the default group.
  26113. @param userName a user's name
  26114. @param groupNames groups list, first of which is the default group
  26115. @exception IllegalArgumentException if any argument is null]]>
  26116. </doc>
  26117. </constructor>
  26118. <constructor name="UnixUserGroupInformation" type="java.lang.String[]"
  26119. static="false" final="false" visibility="public"
  26120. deprecated="not deprecated">
  26121. <doc>
  26122. <![CDATA[Constructor with parameter user/group names
  26123. @param ugi an array containing user/group names, the first
  26124. element of which is the user name, the second of
  26125. which is the default group name.
  26126. @exception IllegalArgumentException if the array size is less than 2
  26127. or any element is null.]]>
  26128. </doc>
  26129. </constructor>
  26130. <method name="createImmutable" return="org.apache.hadoop.security.UnixUserGroupInformation"
  26131. abstract="false" native="false" synchronized="false"
  26132. static="true" final="false" visibility="public"
  26133. deprecated="not deprecated">
  26134. <param name="ugi" type="java.lang.String[]"/>
  26135. <doc>
  26136. <![CDATA[Create an immutable {@link UnixUserGroupInformation} object.]]>
  26137. </doc>
  26138. </method>
  26139. <method name="getGroupNames" return="java.lang.String[]"
  26140. abstract="false" native="false" synchronized="false"
  26141. static="false" final="false" visibility="public"
  26142. deprecated="not deprecated">
  26143. <doc>
  26144. <![CDATA[Return an array of group names]]>
  26145. </doc>
  26146. </method>
  26147. <method name="getUserName" return="java.lang.String"
  26148. abstract="false" native="false" synchronized="false"
  26149. static="false" final="false" visibility="public"
  26150. deprecated="not deprecated">
  26151. <doc>
  26152. <![CDATA[Return the user's name]]>
  26153. </doc>
  26154. </method>
  26155. <method name="readFields"
  26156. abstract="false" native="false" synchronized="false"
  26157. static="false" final="false" visibility="public"
  26158. deprecated="not deprecated">
  26159. <param name="in" type="java.io.DataInput"/>
  26160. <exception name="IOException" type="java.io.IOException"/>
  26161. <doc>
  26162. <![CDATA[Deserialize this object
  26163. First check if this is a UGI in the string format.
  26164. If no, throw an IOException; otherwise
  26165. set this object's fields by reading them from the given data input
  26166. @param in input stream
  26167. @exception IOException is thrown if encounter any error when reading]]>
  26168. </doc>
  26169. </method>
  26170. <method name="write"
  26171. abstract="false" native="false" synchronized="false"
  26172. static="false" final="false" visibility="public"
  26173. deprecated="not deprecated">
  26174. <param name="out" type="java.io.DataOutput"/>
  26175. <exception name="IOException" type="java.io.IOException"/>
  26176. <doc>
  26177. <![CDATA[Serialize this object
  26178. First write a string marking that this is a UGI in the string format,
  26179. then write this object's serialized form to the given data output
  26180. @param out output stream
  26181. @exception IOException if encounter any error during writing]]>
  26182. </doc>
  26183. </method>
  26184. <method name="saveToConf"
  26185. abstract="false" native="false" synchronized="false"
  26186. static="true" final="false" visibility="public"
  26187. deprecated="not deprecated">
  26188. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26189. <param name="attr" type="java.lang.String"/>
  26190. <param name="ugi" type="org.apache.hadoop.security.UnixUserGroupInformation"/>
  26191. <doc>
  26192. <![CDATA[Store the given <code>ugi</code> as a comma separated string in
  26193. <code>conf</code> as a property <code>attr</code>
  26194. The String starts with the user name followed by the default group names,
  26195. and other group names.
  26196. @param conf configuration
  26197. @param attr property name
  26198. @param ugi a UnixUserGroupInformation]]>
  26199. </doc>
  26200. </method>
  26201. <method name="readFromConf" return="org.apache.hadoop.security.UnixUserGroupInformation"
  26202. abstract="false" native="false" synchronized="false"
  26203. static="true" final="false" visibility="public"
  26204. deprecated="not deprecated">
  26205. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26206. <param name="attr" type="java.lang.String"/>
  26207. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  26208. <doc>
  26209. <![CDATA[Read a UGI from the given <code>conf</code>
  26210. The object is expected to store with the property name <code>attr</code>
  26211. as a comma separated string that starts
  26212. with the user name followed by group names.
  26213. If the property name is not defined, return null.
  26214. It's assumed that there is only one UGI per user. If this user already
  26215. has a UGI in the ugi map, return the ugi in the map.
  26216. Otherwise, construct a UGI from the configuration, store it in the
  26217. ugi map and return it.
  26218. @param conf configuration
  26219. @param attr property name
  26220. @return a UnixUGI
  26221. @throws LoginException if the stored string is ill-formatted.]]>
  26222. </doc>
  26223. </method>
  26224. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  26225. abstract="false" native="false" synchronized="false"
  26226. static="true" final="false" visibility="public"
  26227. deprecated="not deprecated">
  26228. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  26229. <doc>
  26230. <![CDATA[Get current user's name and the names of all its groups from Unix.
  26231. It's assumed that there is only one UGI per user. If this user already
  26232. has a UGI in the ugi map, return the ugi in the map.
  26233. Otherwise get the current user's information from Unix, store it
  26234. in the map, and return it.
  26235. If the current user's UNIX username or groups are configured in such a way
  26236. to throw an Exception, for example if the user uses LDAP, then this method
  26237. will use a the {@link #DEFAULT_USERNAME} and {@link #DEFAULT_GROUP}
  26238. constants.]]>
  26239. </doc>
  26240. </method>
  26241. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  26242. abstract="false" native="false" synchronized="false"
  26243. static="true" final="false" visibility="public"
  26244. deprecated="not deprecated">
  26245. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26246. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  26247. <doc>
  26248. <![CDATA[Equivalent to login(conf, false).]]>
  26249. </doc>
  26250. </method>
  26251. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  26252. abstract="false" native="false" synchronized="false"
  26253. static="true" final="false" visibility="public"
  26254. deprecated="not deprecated">
  26255. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26256. <param name="save" type="boolean"/>
  26257. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  26258. <doc>
  26259. <![CDATA[Get a user's name & its group names from the given configuration;
  26260. If it is not defined in the configuration, get the current user's
  26261. information from Unix.
  26262. If the user has a UGI in the ugi map, return the one in
  26263. the UGI map.
  26264. @param conf either a job configuration or client's configuration
  26265. @param save saving it to conf?
  26266. @return UnixUserGroupInformation a user/group information
  26267. @exception LoginException if not able to get the user/group information]]>
  26268. </doc>
  26269. </method>
  26270. <method name="equals" return="boolean"
  26271. abstract="false" native="false" synchronized="false"
  26272. static="false" final="false" visibility="public"
  26273. deprecated="not deprecated">
  26274. <param name="other" type="java.lang.Object"/>
  26275. <doc>
  26276. <![CDATA[Decide if two UGIs are the same
  26277. @param other other object
  26278. @return true if they are the same; false otherwise.]]>
  26279. </doc>
  26280. </method>
  26281. <method name="hashCode" return="int"
  26282. abstract="false" native="false" synchronized="false"
  26283. static="false" final="false" visibility="public"
  26284. deprecated="not deprecated">
  26285. <doc>
  26286. <![CDATA[Returns a hash code for this UGI.
  26287. The hash code for a UGI is the hash code of its user name string.
  26288. @return a hash code value for this UGI.]]>
  26289. </doc>
  26290. </method>
  26291. <method name="toString" return="java.lang.String"
  26292. abstract="false" native="false" synchronized="false"
  26293. static="false" final="false" visibility="public"
  26294. deprecated="not deprecated">
  26295. <doc>
  26296. <![CDATA[Convert this object to a string
  26297. @return a comma separated string containing the user name and group names]]>
  26298. </doc>
  26299. </method>
  26300. <method name="getName" return="java.lang.String"
  26301. abstract="false" native="false" synchronized="false"
  26302. static="false" final="false" visibility="public"
  26303. deprecated="not deprecated">
  26304. </method>
  26305. <field name="DEFAULT_USERNAME" type="java.lang.String"
  26306. transient="false" volatile="false"
  26307. static="true" final="true" visibility="public"
  26308. deprecated="not deprecated">
  26309. </field>
  26310. <field name="DEFAULT_GROUP" type="java.lang.String"
  26311. transient="false" volatile="false"
  26312. static="true" final="true" visibility="public"
  26313. deprecated="not deprecated">
  26314. </field>
  26315. <field name="UGI_PROPERTY_NAME" type="java.lang.String"
  26316. transient="false" volatile="false"
  26317. static="true" final="true" visibility="public"
  26318. deprecated="not deprecated">
  26319. </field>
  26320. <doc>
  26321. <![CDATA[An implementation of UserGroupInformation in the Unix system]]>
  26322. </doc>
  26323. </class>
  26324. <!-- end class org.apache.hadoop.security.UnixUserGroupInformation -->
  26325. <!-- start class org.apache.hadoop.security.User -->
  26326. <class name="User" extends="java.lang.Object"
  26327. abstract="false"
  26328. static="false" final="false" visibility="public"
  26329. deprecated="not deprecated">
  26330. <implements name="java.security.Principal"/>
  26331. <constructor name="User" type="java.lang.String"
  26332. static="false" final="false" visibility="public"
  26333. deprecated="not deprecated">
  26334. <doc>
  26335. <![CDATA[Create a new <code>User</code> with the given username.
  26336. @param user user name]]>
  26337. </doc>
  26338. </constructor>
  26339. <method name="getName" return="java.lang.String"
  26340. abstract="false" native="false" synchronized="false"
  26341. static="false" final="false" visibility="public"
  26342. deprecated="not deprecated">
  26343. </method>
  26344. <method name="toString" return="java.lang.String"
  26345. abstract="false" native="false" synchronized="false"
  26346. static="false" final="false" visibility="public"
  26347. deprecated="not deprecated">
  26348. </method>
  26349. <method name="hashCode" return="int"
  26350. abstract="false" native="false" synchronized="false"
  26351. static="false" final="false" visibility="public"
  26352. deprecated="not deprecated">
  26353. </method>
  26354. <method name="equals" return="boolean"
  26355. abstract="false" native="false" synchronized="false"
  26356. static="false" final="false" visibility="public"
  26357. deprecated="not deprecated">
  26358. <param name="obj" type="java.lang.Object"/>
  26359. </method>
  26360. <doc>
  26361. <![CDATA[The username of a user.]]>
  26362. </doc>
  26363. </class>
  26364. <!-- end class org.apache.hadoop.security.User -->
  26365. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  26366. <class name="UserGroupInformation" extends="java.lang.Object"
  26367. abstract="true"
  26368. static="false" final="false" visibility="public"
  26369. deprecated="not deprecated">
  26370. <implements name="org.apache.hadoop.io.Writable"/>
  26371. <implements name="java.security.Principal"/>
  26372. <constructor name="UserGroupInformation"
  26373. static="false" final="false" visibility="public"
  26374. deprecated="not deprecated">
  26375. </constructor>
  26376. <method name="getCurrentUGI" return="org.apache.hadoop.security.UserGroupInformation"
  26377. abstract="false" native="false" synchronized="false"
  26378. static="true" final="false" visibility="public"
  26379. deprecated="not deprecated">
  26380. <doc>
  26381. <![CDATA[@return the {@link UserGroupInformation} for the current thread]]>
  26382. </doc>
  26383. </method>
  26384. <method name="setCurrentUGI"
  26385. abstract="false" native="false" synchronized="false"
  26386. static="true" final="false" visibility="public"
  26387. deprecated="Use {@link #setCurrentUser(UserGroupInformation)}">
  26388. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  26389. <doc>
  26390. <![CDATA[Set the {@link UserGroupInformation} for the current thread
  26391. @deprecated Use {@link #setCurrentUser(UserGroupInformation)}]]>
  26392. </doc>
  26393. </method>
  26394. <method name="setCurrentUser"
  26395. abstract="false" native="false" synchronized="false"
  26396. static="true" final="false" visibility="public"
  26397. deprecated="not deprecated">
  26398. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  26399. <doc>
  26400. <![CDATA[Set the {@link UserGroupInformation} for the current thread
  26401. WARNING - This method should be used only in test cases and other exceptional
  26402. cases!
  26403. @param ugi {@link UserGroupInformation} for the current thread]]>
  26404. </doc>
  26405. </method>
  26406. <method name="getUserName" return="java.lang.String"
  26407. abstract="true" native="false" synchronized="false"
  26408. static="false" final="false" visibility="public"
  26409. deprecated="not deprecated">
  26410. <doc>
  26411. <![CDATA[Get username
  26412. @return the user's name]]>
  26413. </doc>
  26414. </method>
  26415. <method name="getGroupNames" return="java.lang.String[]"
  26416. abstract="true" native="false" synchronized="false"
  26417. static="false" final="false" visibility="public"
  26418. deprecated="not deprecated">
  26419. <doc>
  26420. <![CDATA[Get the name of the groups that the user belong to
  26421. @return an array of group names]]>
  26422. </doc>
  26423. </method>
  26424. <method name="login" return="org.apache.hadoop.security.UserGroupInformation"
  26425. abstract="false" native="false" synchronized="false"
  26426. static="true" final="false" visibility="public"
  26427. deprecated="not deprecated">
  26428. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26429. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  26430. <doc>
  26431. <![CDATA[Login and return a UserGroupInformation object.]]>
  26432. </doc>
  26433. </method>
  26434. <method name="readFrom" return="org.apache.hadoop.security.UserGroupInformation"
  26435. abstract="false" native="false" synchronized="false"
  26436. static="true" final="false" visibility="public"
  26437. deprecated="not deprecated">
  26438. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26439. <exception name="IOException" type="java.io.IOException"/>
  26440. <doc>
  26441. <![CDATA[Read a {@link UserGroupInformation} from conf]]>
  26442. </doc>
  26443. </method>
  26444. <field name="LOG" type="org.apache.commons.logging.Log"
  26445. transient="false" volatile="false"
  26446. static="true" final="true" visibility="public"
  26447. deprecated="not deprecated">
  26448. </field>
  26449. <doc>
  26450. <![CDATA[A {@link Writable} abstract class for storing user and groups information.]]>
  26451. </doc>
  26452. </class>
  26453. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  26454. </package>
  26455. <package name="org.apache.hadoop.security.authorize">
  26456. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  26457. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  26458. abstract="false"
  26459. static="false" final="false" visibility="public"
  26460. deprecated="not deprecated">
  26461. <constructor name="AuthorizationException"
  26462. static="false" final="false" visibility="public"
  26463. deprecated="not deprecated">
  26464. </constructor>
  26465. <constructor name="AuthorizationException" type="java.lang.String"
  26466. static="false" final="false" visibility="public"
  26467. deprecated="not deprecated">
  26468. </constructor>
  26469. <constructor name="AuthorizationException" type="java.lang.Throwable"
  26470. static="false" final="false" visibility="public"
  26471. deprecated="not deprecated">
  26472. <doc>
  26473. <![CDATA[Constructs a new exception with the specified cause and a detail
  26474. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  26475. typically contains the class and detail message of <tt>cause</tt>).
  26476. @param cause the cause (which is saved for later retrieval by the
  26477. {@link #getCause()} method). (A <tt>null</tt> value is
  26478. permitted, and indicates that the cause is nonexistent or
  26479. unknown.)]]>
  26480. </doc>
  26481. </constructor>
  26482. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  26483. abstract="false" native="false" synchronized="false"
  26484. static="false" final="false" visibility="public"
  26485. deprecated="not deprecated">
  26486. </method>
  26487. <method name="printStackTrace"
  26488. abstract="false" native="false" synchronized="false"
  26489. static="false" final="false" visibility="public"
  26490. deprecated="not deprecated">
  26491. </method>
  26492. <method name="printStackTrace"
  26493. abstract="false" native="false" synchronized="false"
  26494. static="false" final="false" visibility="public"
  26495. deprecated="not deprecated">
  26496. <param name="s" type="java.io.PrintStream"/>
  26497. </method>
  26498. <method name="printStackTrace"
  26499. abstract="false" native="false" synchronized="false"
  26500. static="false" final="false" visibility="public"
  26501. deprecated="not deprecated">
  26502. <param name="s" type="java.io.PrintWriter"/>
  26503. </method>
  26504. <doc>
  26505. <![CDATA[An exception class for authorization-related issues.
  26506. This class <em>does not</em> provide the stack trace for security purposes.]]>
  26507. </doc>
  26508. </class>
  26509. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  26510. <!-- start class org.apache.hadoop.security.authorize.ConfiguredPolicy -->
  26511. <class name="ConfiguredPolicy" extends="java.security.Policy"
  26512. abstract="false"
  26513. static="false" final="false" visibility="public"
  26514. deprecated="not deprecated">
  26515. <implements name="org.apache.hadoop.conf.Configurable"/>
  26516. <constructor name="ConfiguredPolicy" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.PolicyProvider"
  26517. static="false" final="false" visibility="public"
  26518. deprecated="not deprecated">
  26519. </constructor>
  26520. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26521. abstract="false" native="false" synchronized="false"
  26522. static="false" final="false" visibility="public"
  26523. deprecated="not deprecated">
  26524. </method>
  26525. <method name="setConf"
  26526. abstract="false" native="false" synchronized="false"
  26527. static="false" final="false" visibility="public"
  26528. deprecated="not deprecated">
  26529. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26530. </method>
  26531. <method name="implies" return="boolean"
  26532. abstract="false" native="false" synchronized="false"
  26533. static="false" final="false" visibility="public"
  26534. deprecated="not deprecated">
  26535. <param name="domain" type="java.security.ProtectionDomain"/>
  26536. <param name="permission" type="java.security.Permission"/>
  26537. </method>
  26538. <method name="getPermissions" return="java.security.PermissionCollection"
  26539. abstract="false" native="false" synchronized="false"
  26540. static="false" final="false" visibility="public"
  26541. deprecated="not deprecated">
  26542. <param name="domain" type="java.security.ProtectionDomain"/>
  26543. </method>
  26544. <method name="refresh"
  26545. abstract="false" native="false" synchronized="false"
  26546. static="false" final="false" visibility="public"
  26547. deprecated="not deprecated">
  26548. </method>
  26549. <field name="HADOOP_POLICY_FILE" type="java.lang.String"
  26550. transient="false" volatile="false"
  26551. static="true" final="true" visibility="public"
  26552. deprecated="not deprecated">
  26553. </field>
  26554. <doc>
  26555. <![CDATA[A {@link Configuration} based security {@link Policy} for Hadoop.
  26556. {@link ConfiguredPolicy} works in conjunction with a {@link PolicyProvider}
  26557. for providing service-level authorization for Hadoop.]]>
  26558. </doc>
  26559. </class>
  26560. <!-- end class org.apache.hadoop.security.authorize.ConfiguredPolicy -->
  26561. <!-- start class org.apache.hadoop.security.authorize.ConnectionPermission -->
  26562. <class name="ConnectionPermission" extends="java.security.Permission"
  26563. abstract="false"
  26564. static="false" final="false" visibility="public"
  26565. deprecated="not deprecated">
  26566. <constructor name="ConnectionPermission" type="java.lang.Class"
  26567. static="false" final="false" visibility="public"
  26568. deprecated="not deprecated">
  26569. <doc>
  26570. <![CDATA[{@link ConnectionPermission} for a given service.
  26571. @param protocol service to be accessed]]>
  26572. </doc>
  26573. </constructor>
  26574. <method name="equals" return="boolean"
  26575. abstract="false" native="false" synchronized="false"
  26576. static="false" final="false" visibility="public"
  26577. deprecated="not deprecated">
  26578. <param name="obj" type="java.lang.Object"/>
  26579. </method>
  26580. <method name="getActions" return="java.lang.String"
  26581. abstract="false" native="false" synchronized="false"
  26582. static="false" final="false" visibility="public"
  26583. deprecated="not deprecated">
  26584. </method>
  26585. <method name="hashCode" return="int"
  26586. abstract="false" native="false" synchronized="false"
  26587. static="false" final="false" visibility="public"
  26588. deprecated="not deprecated">
  26589. </method>
  26590. <method name="implies" return="boolean"
  26591. abstract="false" native="false" synchronized="false"
  26592. static="false" final="false" visibility="public"
  26593. deprecated="not deprecated">
  26594. <param name="permission" type="java.security.Permission"/>
  26595. </method>
  26596. <method name="toString" return="java.lang.String"
  26597. abstract="false" native="false" synchronized="false"
  26598. static="false" final="false" visibility="public"
  26599. deprecated="not deprecated">
  26600. </method>
  26601. <doc>
  26602. <![CDATA[{@link Permission} to initiate a connection to a given service.]]>
  26603. </doc>
  26604. </class>
  26605. <!-- end class org.apache.hadoop.security.authorize.ConnectionPermission -->
  26606. <!-- start class org.apache.hadoop.security.authorize.PolicyProvider -->
  26607. <class name="PolicyProvider" extends="java.lang.Object"
  26608. abstract="true"
  26609. static="false" final="false" visibility="public"
  26610. deprecated="not deprecated">
  26611. <constructor name="PolicyProvider"
  26612. static="false" final="false" visibility="public"
  26613. deprecated="not deprecated">
  26614. </constructor>
  26615. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  26616. abstract="true" native="false" synchronized="false"
  26617. static="false" final="false" visibility="public"
  26618. deprecated="not deprecated">
  26619. <doc>
  26620. <![CDATA[Get the {@link Service} definitions from the {@link PolicyProvider}.
  26621. @return the {@link Service} definitions]]>
  26622. </doc>
  26623. </method>
  26624. <field name="POLICY_PROVIDER_CONFIG" type="java.lang.String"
  26625. transient="false" volatile="false"
  26626. static="true" final="true" visibility="public"
  26627. deprecated="not deprecated">
  26628. <doc>
  26629. <![CDATA[Configuration key for the {@link PolicyProvider} implementation.]]>
  26630. </doc>
  26631. </field>
  26632. <field name="DEFAULT_POLICY_PROVIDER" type="org.apache.hadoop.security.authorize.PolicyProvider"
  26633. transient="false" volatile="false"
  26634. static="true" final="true" visibility="public"
  26635. deprecated="not deprecated">
  26636. <doc>
  26637. <![CDATA[A default {@link PolicyProvider} without any defined services.]]>
  26638. </doc>
  26639. </field>
  26640. <doc>
  26641. <![CDATA[{@link PolicyProvider} provides the {@link Service} definitions to the
  26642. security {@link Policy} in effect for Hadoop.]]>
  26643. </doc>
  26644. </class>
  26645. <!-- end class org.apache.hadoop.security.authorize.PolicyProvider -->
  26646. <!-- start interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  26647. <interface name="RefreshAuthorizationPolicyProtocol" abstract="true"
  26648. static="false" final="false" visibility="public"
  26649. deprecated="not deprecated">
  26650. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  26651. <method name="refreshServiceAcl"
  26652. abstract="false" native="false" synchronized="false"
  26653. static="false" final="false" visibility="public"
  26654. deprecated="not deprecated">
  26655. <exception name="IOException" type="java.io.IOException"/>
  26656. <doc>
  26657. <![CDATA[Refresh the service-level authorization policy in-effect.
  26658. @throws IOException]]>
  26659. </doc>
  26660. </method>
  26661. <field name="versionID" type="long"
  26662. transient="false" volatile="false"
  26663. static="true" final="true" visibility="public"
  26664. deprecated="not deprecated">
  26665. <doc>
  26666. <![CDATA[Version 1: Initial version]]>
  26667. </doc>
  26668. </field>
  26669. <doc>
  26670. <![CDATA[Protocol which is used to refresh the authorization policy in use currently.]]>
  26671. </doc>
  26672. </interface>
  26673. <!-- end interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  26674. <!-- start class org.apache.hadoop.security.authorize.Service -->
  26675. <class name="Service" extends="java.lang.Object"
  26676. abstract="false"
  26677. static="false" final="false" visibility="public"
  26678. deprecated="not deprecated">
  26679. <constructor name="Service" type="java.lang.String, java.lang.Class"
  26680. static="false" final="false" visibility="public"
  26681. deprecated="not deprecated">
  26682. </constructor>
  26683. <method name="getServiceKey" return="java.lang.String"
  26684. abstract="false" native="false" synchronized="false"
  26685. static="false" final="false" visibility="public"
  26686. deprecated="not deprecated">
  26687. <doc>
  26688. <![CDATA[Get the configuration key for the service.
  26689. @return the configuration key for the service]]>
  26690. </doc>
  26691. </method>
  26692. <method name="getPermission" return="java.security.Permission"
  26693. abstract="false" native="false" synchronized="false"
  26694. static="false" final="false" visibility="public"
  26695. deprecated="not deprecated">
  26696. <doc>
  26697. <![CDATA[Get the {@link Permission} required to access the service.
  26698. @return the {@link Permission} required to access the service]]>
  26699. </doc>
  26700. </method>
  26701. <doc>
  26702. <![CDATA[An abstract definition of <em>service</em> as related to
  26703. Service Level Authorization for Hadoop.
  26704. Each service defines it's configuration key and also the necessary
  26705. {@link Permission} required to access the service.]]>
  26706. </doc>
  26707. </class>
  26708. <!-- end class org.apache.hadoop.security.authorize.Service -->
  26709. <!-- start class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  26710. <class name="ServiceAuthorizationManager" extends="java.lang.Object"
  26711. abstract="false"
  26712. static="false" final="false" visibility="public"
  26713. deprecated="not deprecated">
  26714. <constructor name="ServiceAuthorizationManager"
  26715. static="false" final="false" visibility="public"
  26716. deprecated="not deprecated">
  26717. </constructor>
  26718. <method name="authorize"
  26719. abstract="false" native="false" synchronized="false"
  26720. static="true" final="false" visibility="public"
  26721. deprecated="not deprecated">
  26722. <param name="user" type="javax.security.auth.Subject"/>
  26723. <param name="protocol" type="java.lang.Class"/>
  26724. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  26725. <doc>
  26726. <![CDATA[Authorize the user to access the protocol being used.
  26727. @param user user accessing the service
  26728. @param protocol service being accessed
  26729. @throws AuthorizationException on authorization failure]]>
  26730. </doc>
  26731. </method>
  26732. <field name="SERVICE_AUTHORIZATION_CONFIG" type="java.lang.String"
  26733. transient="false" volatile="false"
  26734. static="true" final="true" visibility="public"
  26735. deprecated="not deprecated">
  26736. <doc>
  26737. <![CDATA[Configuration key for controlling service-level authorization for Hadoop.]]>
  26738. </doc>
  26739. </field>
  26740. <doc>
  26741. <![CDATA[An authorization manager which handles service-level authorization
  26742. for incoming service requests.]]>
  26743. </doc>
  26744. </class>
  26745. <!-- end class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  26746. </package>
  26747. <package name="org.apache.hadoop.util">
  26748. <!-- start class org.apache.hadoop.util.CyclicIteration -->
  26749. <class name="CyclicIteration" extends="java.lang.Object"
  26750. abstract="false"
  26751. static="false" final="false" visibility="public"
  26752. deprecated="not deprecated">
  26753. <implements name="java.lang.Iterable"/>
  26754. <constructor name="CyclicIteration" type="java.util.NavigableMap, java.lang.Object"
  26755. static="false" final="false" visibility="public"
  26756. deprecated="not deprecated">
  26757. <doc>
  26758. <![CDATA[Construct an {@link Iterable} object,
  26759. so that an {@link Iterator} can be created
  26760. for iterating the given {@link NavigableMap}.
  26761. The iteration begins from the starting key exclusively.]]>
  26762. </doc>
  26763. </constructor>
  26764. <method name="iterator" return="java.util.Iterator"
  26765. abstract="false" native="false" synchronized="false"
  26766. static="false" final="false" visibility="public"
  26767. deprecated="not deprecated">
  26768. <doc>
  26769. <![CDATA[{@inheritDoc}]]>
  26770. </doc>
  26771. </method>
  26772. <doc>
  26773. <![CDATA[Provide an cyclic {@link Iterator} for a {@link NavigableMap}.
  26774. The {@link Iterator} navigates the entries of the map
  26775. according to the map's ordering.
  26776. If the {@link Iterator} hits the last entry of the map,
  26777. it will then continue from the first entry.]]>
  26778. </doc>
  26779. </class>
  26780. <!-- end class org.apache.hadoop.util.CyclicIteration -->
  26781. <!-- start class org.apache.hadoop.util.Daemon -->
  26782. <class name="Daemon" extends="java.lang.Thread"
  26783. abstract="false"
  26784. static="false" final="false" visibility="public"
  26785. deprecated="not deprecated">
  26786. <constructor name="Daemon"
  26787. static="false" final="false" visibility="public"
  26788. deprecated="not deprecated">
  26789. <doc>
  26790. <![CDATA[Construct a daemon thread.]]>
  26791. </doc>
  26792. </constructor>
  26793. <constructor name="Daemon" type="java.lang.Runnable"
  26794. static="false" final="false" visibility="public"
  26795. deprecated="not deprecated">
  26796. <doc>
  26797. <![CDATA[Construct a daemon thread.]]>
  26798. </doc>
  26799. </constructor>
  26800. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  26801. static="false" final="false" visibility="public"
  26802. deprecated="not deprecated">
  26803. <doc>
  26804. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  26805. </doc>
  26806. </constructor>
  26807. <method name="getRunnable" return="java.lang.Runnable"
  26808. abstract="false" native="false" synchronized="false"
  26809. static="false" final="false" visibility="public"
  26810. deprecated="not deprecated">
  26811. </method>
  26812. <doc>
  26813. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  26814. </doc>
  26815. </class>
  26816. <!-- end class org.apache.hadoop.util.Daemon -->
  26817. <!-- start class org.apache.hadoop.util.DataChecksum -->
  26818. <class name="DataChecksum" extends="java.lang.Object"
  26819. abstract="false"
  26820. static="false" final="false" visibility="public"
  26821. deprecated="not deprecated">
  26822. <implements name="java.util.zip.Checksum"/>
  26823. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  26824. abstract="false" native="false" synchronized="false"
  26825. static="true" final="false" visibility="public"
  26826. deprecated="not deprecated">
  26827. <param name="type" type="int"/>
  26828. <param name="bytesPerChecksum" type="int"/>
  26829. </method>
  26830. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  26831. abstract="false" native="false" synchronized="false"
  26832. static="true" final="false" visibility="public"
  26833. deprecated="not deprecated">
  26834. <param name="bytes" type="byte[]"/>
  26835. <param name="offset" type="int"/>
  26836. <doc>
  26837. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  26838. @return DataChecksum of the type in the array or null in case of an error.]]>
  26839. </doc>
  26840. </method>
  26841. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  26842. abstract="false" native="false" synchronized="false"
  26843. static="true" final="false" visibility="public"
  26844. deprecated="not deprecated">
  26845. <param name="in" type="java.io.DataInputStream"/>
  26846. <exception name="IOException" type="java.io.IOException"/>
  26847. <doc>
  26848. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  26849. input stream <i>in</i>]]>
  26850. </doc>
  26851. </method>
  26852. <method name="writeHeader"
  26853. abstract="false" native="false" synchronized="false"
  26854. static="false" final="false" visibility="public"
  26855. deprecated="not deprecated">
  26856. <param name="out" type="java.io.DataOutputStream"/>
  26857. <exception name="IOException" type="java.io.IOException"/>
  26858. <doc>
  26859. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  26860. </doc>
  26861. </method>
  26862. <method name="getHeader" return="byte[]"
  26863. abstract="false" native="false" synchronized="false"
  26864. static="false" final="false" visibility="public"
  26865. deprecated="not deprecated">
  26866. </method>
  26867. <method name="writeValue" return="int"
  26868. abstract="false" native="false" synchronized="false"
  26869. static="false" final="false" visibility="public"
  26870. deprecated="not deprecated">
  26871. <param name="out" type="java.io.DataOutputStream"/>
  26872. <param name="reset" type="boolean"/>
  26873. <exception name="IOException" type="java.io.IOException"/>
  26874. <doc>
  26875. <![CDATA[Writes the current checksum to the stream.
  26876. If <i>reset</i> is true, then resets the checksum.
  26877. @return number of bytes written. Will be equal to getChecksumSize();]]>
  26878. </doc>
  26879. </method>
  26880. <method name="writeValue" return="int"
  26881. abstract="false" native="false" synchronized="false"
  26882. static="false" final="false" visibility="public"
  26883. deprecated="not deprecated">
  26884. <param name="buf" type="byte[]"/>
  26885. <param name="offset" type="int"/>
  26886. <param name="reset" type="boolean"/>
  26887. <exception name="IOException" type="java.io.IOException"/>
  26888. <doc>
  26889. <![CDATA[Writes the current checksum to a buffer.
  26890. If <i>reset</i> is true, then resets the checksum.
  26891. @return number of bytes written. Will be equal to getChecksumSize();]]>
  26892. </doc>
  26893. </method>
  26894. <method name="compare" return="boolean"
  26895. abstract="false" native="false" synchronized="false"
  26896. static="false" final="false" visibility="public"
  26897. deprecated="not deprecated">
  26898. <param name="buf" type="byte[]"/>
  26899. <param name="offset" type="int"/>
  26900. <doc>
  26901. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  26902. @return true if the checksum matches and false otherwise.]]>
  26903. </doc>
  26904. </method>
  26905. <method name="getChecksumType" return="int"
  26906. abstract="false" native="false" synchronized="false"
  26907. static="false" final="false" visibility="public"
  26908. deprecated="not deprecated">
  26909. </method>
  26910. <method name="getChecksumSize" return="int"
  26911. abstract="false" native="false" synchronized="false"
  26912. static="false" final="false" visibility="public"
  26913. deprecated="not deprecated">
  26914. </method>
  26915. <method name="getBytesPerChecksum" return="int"
  26916. abstract="false" native="false" synchronized="false"
  26917. static="false" final="false" visibility="public"
  26918. deprecated="not deprecated">
  26919. </method>
  26920. <method name="getNumBytesInSum" return="int"
  26921. abstract="false" native="false" synchronized="false"
  26922. static="false" final="false" visibility="public"
  26923. deprecated="not deprecated">
  26924. </method>
  26925. <method name="getChecksumHeaderSize" return="int"
  26926. abstract="false" native="false" synchronized="false"
  26927. static="true" final="false" visibility="public"
  26928. deprecated="not deprecated">
  26929. </method>
  26930. <method name="getValue" return="long"
  26931. abstract="false" native="false" synchronized="false"
  26932. static="false" final="false" visibility="public"
  26933. deprecated="not deprecated">
  26934. </method>
  26935. <method name="reset"
  26936. abstract="false" native="false" synchronized="false"
  26937. static="false" final="false" visibility="public"
  26938. deprecated="not deprecated">
  26939. </method>
  26940. <method name="update"
  26941. abstract="false" native="false" synchronized="false"
  26942. static="false" final="false" visibility="public"
  26943. deprecated="not deprecated">
  26944. <param name="b" type="byte[]"/>
  26945. <param name="off" type="int"/>
  26946. <param name="len" type="int"/>
  26947. </method>
  26948. <method name="update"
  26949. abstract="false" native="false" synchronized="false"
  26950. static="false" final="false" visibility="public"
  26951. deprecated="not deprecated">
  26952. <param name="b" type="int"/>
  26953. </method>
  26954. <field name="HEADER_LEN" type="int"
  26955. transient="false" volatile="false"
  26956. static="true" final="true" visibility="public"
  26957. deprecated="not deprecated">
  26958. </field>
  26959. <field name="CHECKSUM_NULL" type="int"
  26960. transient="false" volatile="false"
  26961. static="true" final="true" visibility="public"
  26962. deprecated="not deprecated">
  26963. </field>
  26964. <field name="CHECKSUM_CRC32" type="int"
  26965. transient="false" volatile="false"
  26966. static="true" final="true" visibility="public"
  26967. deprecated="not deprecated">
  26968. </field>
  26969. <field name="SIZE_OF_INTEGER" type="int"
  26970. transient="false" volatile="false"
  26971. static="true" final="true" visibility="public"
  26972. deprecated="not deprecated">
  26973. </field>
  26974. <doc>
  26975. <![CDATA[This class provides inteface and utilities for processing checksums for
  26976. DFS data transfers.]]>
  26977. </doc>
  26978. </class>
  26979. <!-- end class org.apache.hadoop.util.DataChecksum -->
  26980. <!-- start class org.apache.hadoop.util.DiskChecker -->
  26981. <class name="DiskChecker" extends="java.lang.Object"
  26982. abstract="false"
  26983. static="false" final="false" visibility="public"
  26984. deprecated="not deprecated">
  26985. <constructor name="DiskChecker"
  26986. static="false" final="false" visibility="public"
  26987. deprecated="not deprecated">
  26988. </constructor>
  26989. <method name="mkdirsWithExistsCheck" return="boolean"
  26990. abstract="false" native="false" synchronized="false"
  26991. static="true" final="false" visibility="public"
  26992. deprecated="not deprecated">
  26993. <param name="dir" type="java.io.File"/>
  26994. <doc>
  26995. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  26996. method provided in the Sun's java.io.File class in the following way:
  26997. While creating the non-existent parent directories, this method checks for
  26998. the existence of those directories if the mkdir fails at any point (since
  26999. that directory might have just been created by some other process).
  27000. If both mkdir() and the exists() check fails for any seemingly
  27001. non-existent directory, then we signal an error; Sun's mkdir would signal
  27002. an error (return false) if a directory it is attempting to create already
  27003. exists or the mkdir fails.
  27004. @param dir
  27005. @return true on success, false on failure]]>
  27006. </doc>
  27007. </method>
  27008. <method name="checkDir"
  27009. abstract="false" native="false" synchronized="false"
  27010. static="true" final="false" visibility="public"
  27011. deprecated="not deprecated">
  27012. <param name="dir" type="java.io.File"/>
  27013. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  27014. </method>
  27015. <doc>
  27016. <![CDATA[Class that provides utility functions for checking disk problem]]>
  27017. </doc>
  27018. </class>
  27019. <!-- end class org.apache.hadoop.util.DiskChecker -->
  27020. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  27021. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  27022. abstract="false"
  27023. static="true" final="false" visibility="public"
  27024. deprecated="not deprecated">
  27025. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  27026. static="false" final="false" visibility="public"
  27027. deprecated="not deprecated">
  27028. </constructor>
  27029. </class>
  27030. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  27031. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  27032. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  27033. abstract="false"
  27034. static="true" final="false" visibility="public"
  27035. deprecated="not deprecated">
  27036. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  27037. static="false" final="false" visibility="public"
  27038. deprecated="not deprecated">
  27039. </constructor>
  27040. </class>
  27041. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  27042. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  27043. <class name="GenericOptionsParser" extends="java.lang.Object"
  27044. abstract="false"
  27045. static="false" final="false" visibility="public"
  27046. deprecated="not deprecated">
  27047. <constructor name="GenericOptionsParser" type="org.apache.commons.cli.Options, java.lang.String[]"
  27048. static="false" final="false" visibility="public"
  27049. deprecated="not deprecated">
  27050. <doc>
  27051. <![CDATA[Create an options parser with the given options to parse the args.
  27052. @param opts the options
  27053. @param args the command line arguments]]>
  27054. </doc>
  27055. </constructor>
  27056. <constructor name="GenericOptionsParser" type="java.lang.String[]"
  27057. static="false" final="false" visibility="public"
  27058. deprecated="not deprecated">
  27059. <doc>
  27060. <![CDATA[Create an options parser to parse the args.
  27061. @param args the command line arguments]]>
  27062. </doc>
  27063. </constructor>
  27064. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  27065. static="false" final="false" visibility="public"
  27066. deprecated="not deprecated">
  27067. <doc>
  27068. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  27069. arguments.
  27070. The array of string arguments other than the generic arguments can be
  27071. obtained by {@link #getRemainingArgs()}.
  27072. @param conf the <code>Configuration</code> to modify.
  27073. @param args command-line arguments.]]>
  27074. </doc>
  27075. </constructor>
  27076. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  27077. static="false" final="false" visibility="public"
  27078. deprecated="not deprecated">
  27079. <doc>
  27080. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  27081. as generic Hadoop options.
  27082. The resulting <code>CommandLine</code> object can be obtained by
  27083. {@link #getCommandLine()}.
  27084. @param conf the configuration to modify
  27085. @param options options built by the caller
  27086. @param args User-specified arguments]]>
  27087. </doc>
  27088. </constructor>
  27089. <method name="getRemainingArgs" return="java.lang.String[]"
  27090. abstract="false" native="false" synchronized="false"
  27091. static="false" final="false" visibility="public"
  27092. deprecated="not deprecated">
  27093. <doc>
  27094. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  27095. @return array of <code>String</code>s containing the un-parsed arguments
  27096. or <strong>empty array</strong> if commandLine was not defined.]]>
  27097. </doc>
  27098. </method>
  27099. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  27100. abstract="false" native="false" synchronized="false"
  27101. static="false" final="false" visibility="public"
  27102. deprecated="not deprecated">
  27103. <doc>
  27104. <![CDATA[Get the modified configuration
  27105. @return the configuration that has the modified parameters.]]>
  27106. </doc>
  27107. </method>
  27108. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  27109. abstract="false" native="false" synchronized="false"
  27110. static="false" final="false" visibility="public"
  27111. deprecated="not deprecated">
  27112. <doc>
  27113. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  27114. to process the parsed arguments.
  27115. Note: If the object is created with
  27116. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  27117. object will only contain parsed generic options.
  27118. @return <code>CommandLine</code> representing list of arguments
  27119. parsed against Options descriptor.]]>
  27120. </doc>
  27121. </method>
  27122. <method name="getLibJars" return="java.net.URL[]"
  27123. abstract="false" native="false" synchronized="false"
  27124. static="true" final="false" visibility="public"
  27125. deprecated="not deprecated">
  27126. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27127. <exception name="IOException" type="java.io.IOException"/>
  27128. <doc>
  27129. <![CDATA[If libjars are set in the conf, parse the libjars.
  27130. @param conf
  27131. @return libjar urls
  27132. @throws IOException]]>
  27133. </doc>
  27134. </method>
  27135. <method name="printGenericCommandUsage"
  27136. abstract="false" native="false" synchronized="false"
  27137. static="true" final="false" visibility="public"
  27138. deprecated="not deprecated">
  27139. <param name="out" type="java.io.PrintStream"/>
  27140. <doc>
  27141. <![CDATA[Print the usage message for generic command-line options supported.
  27142. @param out stream to print the usage message to.]]>
  27143. </doc>
  27144. </method>
  27145. <doc>
  27146. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  27147. arguments generic to the Hadoop framework.
  27148. <code>GenericOptionsParser</code> recognizes several standarad command
  27149. line arguments, enabling applications to easily specify a namenode, a
  27150. jobtracker, additional configuration resources etc.
  27151. <h4 id="GenericOptions">Generic Options</h4>
  27152. <p>The supported generic options are:</p>
  27153. <p><blockquote><pre>
  27154. -conf &lt;configuration file&gt; specify a configuration file
  27155. -D &lt;property=value&gt; use value for given property
  27156. -fs &lt;local|namenode:port&gt; specify a namenode
  27157. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  27158. -files &lt;comma separated list of files&gt; specify comma separated
  27159. files to be copied to the map reduce cluster
  27160. -libjars &lt;comma separated list of jars&gt; specify comma separated
  27161. jar files to include in the classpath.
  27162. -archives &lt;comma separated list of archives&gt; specify comma
  27163. separated archives to be unarchived on the compute machines.
  27164. </pre></blockquote></p>
  27165. <p>The general command line syntax is:</p>
  27166. <p><tt><pre>
  27167. bin/hadoop command [genericOptions] [commandOptions]
  27168. </pre></tt></p>
  27169. <p>Generic command line arguments <strong>might</strong> modify
  27170. <code>Configuration </code> objects, given to constructors.</p>
  27171. <p>The functionality is implemented using Commons CLI.</p>
  27172. <p>Examples:</p>
  27173. <p><blockquote><pre>
  27174. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  27175. list /data directory in dfs with namenode darwin:8020
  27176. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  27177. list /data directory in dfs with namenode darwin:8020
  27178. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  27179. list /data directory in dfs with conf specified in hadoop-site.xml
  27180. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  27181. submit a job to job tracker darwin:50020
  27182. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  27183. submit a job to job tracker darwin:50020
  27184. $ bin/hadoop job -jt local -submit job.xml
  27185. submit a job to local runner
  27186. $ bin/hadoop jar -libjars testlib.jar
  27187. -archives test.tgz -files file.txt inputjar args
  27188. job submission with libjars, files and archives
  27189. </pre></blockquote></p>
  27190. @see Tool
  27191. @see ToolRunner]]>
  27192. </doc>
  27193. </class>
  27194. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  27195. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  27196. <class name="GenericsUtil" extends="java.lang.Object"
  27197. abstract="false"
  27198. static="false" final="false" visibility="public"
  27199. deprecated="not deprecated">
  27200. <constructor name="GenericsUtil"
  27201. static="false" final="false" visibility="public"
  27202. deprecated="not deprecated">
  27203. </constructor>
  27204. <method name="getClass" return="java.lang.Class"
  27205. abstract="false" native="false" synchronized="false"
  27206. static="true" final="false" visibility="public"
  27207. deprecated="not deprecated">
  27208. <param name="t" type="java.lang.Object"/>
  27209. <doc>
  27210. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  27211. argument of type <code>T</code>.
  27212. @param <T> The type of the argument
  27213. @param t the object to get it class
  27214. @return <code>Class&lt;T&gt;</code>]]>
  27215. </doc>
  27216. </method>
  27217. <method name="toArray" return="java.lang.Object[]"
  27218. abstract="false" native="false" synchronized="false"
  27219. static="true" final="false" visibility="public"
  27220. deprecated="not deprecated">
  27221. <param name="c" type="java.lang.Class"/>
  27222. <param name="list" type="java.util.List"/>
  27223. <doc>
  27224. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  27225. <code>T[]</code>.
  27226. @param c the Class object of the items in the list
  27227. @param list the list to convert]]>
  27228. </doc>
  27229. </method>
  27230. <method name="toArray" return="java.lang.Object[]"
  27231. abstract="false" native="false" synchronized="false"
  27232. static="true" final="false" visibility="public"
  27233. deprecated="not deprecated">
  27234. <param name="list" type="java.util.List"/>
  27235. <doc>
  27236. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  27237. <code>T[]</code>.
  27238. @param list the list to convert
  27239. @throws ArrayIndexOutOfBoundsException if the list is empty.
  27240. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  27241. </doc>
  27242. </method>
  27243. <doc>
  27244. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  27245. </doc>
  27246. </class>
  27247. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  27248. <!-- start class org.apache.hadoop.util.HeapSort -->
  27249. <class name="HeapSort" extends="java.lang.Object"
  27250. abstract="false"
  27251. static="false" final="true" visibility="public"
  27252. deprecated="not deprecated">
  27253. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  27254. <constructor name="HeapSort"
  27255. static="false" final="false" visibility="public"
  27256. deprecated="not deprecated">
  27257. </constructor>
  27258. <method name="sort"
  27259. abstract="false" native="false" synchronized="false"
  27260. static="false" final="false" visibility="public"
  27261. deprecated="not deprecated">
  27262. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  27263. <param name="p" type="int"/>
  27264. <param name="r" type="int"/>
  27265. <doc>
  27266. <![CDATA[Sort the given range of items using heap sort.
  27267. {@inheritDoc}]]>
  27268. </doc>
  27269. </method>
  27270. <method name="sort"
  27271. abstract="false" native="false" synchronized="false"
  27272. static="false" final="false" visibility="public"
  27273. deprecated="not deprecated">
  27274. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  27275. <param name="p" type="int"/>
  27276. <param name="r" type="int"/>
  27277. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  27278. <doc>
  27279. <![CDATA[{@inheritDoc}]]>
  27280. </doc>
  27281. </method>
  27282. <doc>
  27283. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  27284. </doc>
  27285. </class>
  27286. <!-- end class org.apache.hadoop.util.HeapSort -->
  27287. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  27288. <class name="HostsFileReader" extends="java.lang.Object"
  27289. abstract="false"
  27290. static="false" final="false" visibility="public"
  27291. deprecated="not deprecated">
  27292. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  27293. static="false" final="false" visibility="public"
  27294. deprecated="not deprecated">
  27295. <exception name="IOException" type="java.io.IOException"/>
  27296. </constructor>
  27297. <method name="refresh"
  27298. abstract="false" native="false" synchronized="true"
  27299. static="false" final="false" visibility="public"
  27300. deprecated="not deprecated">
  27301. <exception name="IOException" type="java.io.IOException"/>
  27302. </method>
  27303. <method name="getHosts" return="java.util.Set"
  27304. abstract="false" native="false" synchronized="false"
  27305. static="false" final="false" visibility="public"
  27306. deprecated="not deprecated">
  27307. </method>
  27308. <method name="getExcludedHosts" return="java.util.Set"
  27309. abstract="false" native="false" synchronized="false"
  27310. static="false" final="false" visibility="public"
  27311. deprecated="not deprecated">
  27312. </method>
  27313. <method name="setIncludesFile"
  27314. abstract="false" native="false" synchronized="true"
  27315. static="false" final="false" visibility="public"
  27316. deprecated="not deprecated">
  27317. <param name="includesFile" type="java.lang.String"/>
  27318. </method>
  27319. <method name="setExcludesFile"
  27320. abstract="false" native="false" synchronized="true"
  27321. static="false" final="false" visibility="public"
  27322. deprecated="not deprecated">
  27323. <param name="excludesFile" type="java.lang.String"/>
  27324. </method>
  27325. <method name="updateFileNames"
  27326. abstract="false" native="false" synchronized="true"
  27327. static="false" final="false" visibility="public"
  27328. deprecated="not deprecated">
  27329. <param name="includesFile" type="java.lang.String"/>
  27330. <param name="excludesFile" type="java.lang.String"/>
  27331. <exception name="IOException" type="java.io.IOException"/>
  27332. </method>
  27333. </class>
  27334. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  27335. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  27336. <interface name="IndexedSortable" abstract="true"
  27337. static="false" final="false" visibility="public"
  27338. deprecated="not deprecated">
  27339. <method name="compare" return="int"
  27340. abstract="false" native="false" synchronized="false"
  27341. static="false" final="false" visibility="public"
  27342. deprecated="not deprecated">
  27343. <param name="i" type="int"/>
  27344. <param name="j" type="int"/>
  27345. <doc>
  27346. <![CDATA[Compare items at the given addresses consistent with the semantics of
  27347. {@link java.util.Comparator#compare(Object, Object)}.]]>
  27348. </doc>
  27349. </method>
  27350. <method name="swap"
  27351. abstract="false" native="false" synchronized="false"
  27352. static="false" final="false" visibility="public"
  27353. deprecated="not deprecated">
  27354. <param name="i" type="int"/>
  27355. <param name="j" type="int"/>
  27356. <doc>
  27357. <![CDATA[Swap items at the given addresses.]]>
  27358. </doc>
  27359. </method>
  27360. <doc>
  27361. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  27362. algorithms.]]>
  27363. </doc>
  27364. </interface>
  27365. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  27366. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  27367. <interface name="IndexedSorter" abstract="true"
  27368. static="false" final="false" visibility="public"
  27369. deprecated="not deprecated">
  27370. <method name="sort"
  27371. abstract="false" native="false" synchronized="false"
  27372. static="false" final="false" visibility="public"
  27373. deprecated="not deprecated">
  27374. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  27375. <param name="l" type="int"/>
  27376. <param name="r" type="int"/>
  27377. <doc>
  27378. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  27379. range of logical indices. From the perspective of the sort algorithm,
  27380. each index between l (inclusive) and r (exclusive) is an addressable
  27381. entry.
  27382. @see IndexedSortable#compare
  27383. @see IndexedSortable#swap]]>
  27384. </doc>
  27385. </method>
  27386. <method name="sort"
  27387. abstract="false" native="false" synchronized="false"
  27388. static="false" final="false" visibility="public"
  27389. deprecated="not deprecated">
  27390. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  27391. <param name="l" type="int"/>
  27392. <param name="r" type="int"/>
  27393. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  27394. <doc>
  27395. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  27396. periodically.
  27397. @see #sort(IndexedSortable,int,int)]]>
  27398. </doc>
  27399. </method>
  27400. <doc>
  27401. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  27402. A sort algorithm implementing this interface may only
  27403. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  27404. for a range of indices to effect a sort across that range.]]>
  27405. </doc>
  27406. </interface>
  27407. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  27408. <!-- start class org.apache.hadoop.util.LineReader -->
  27409. <class name="LineReader" extends="java.lang.Object"
  27410. abstract="false"
  27411. static="false" final="false" visibility="public"
  27412. deprecated="not deprecated">
  27413. <constructor name="LineReader" type="java.io.InputStream"
  27414. static="false" final="false" visibility="public"
  27415. deprecated="not deprecated">
  27416. <doc>
  27417. <![CDATA[Create a line reader that reads from the given stream using the
  27418. default buffer-size (64k).
  27419. @param in The input stream
  27420. @throws IOException]]>
  27421. </doc>
  27422. </constructor>
  27423. <constructor name="LineReader" type="java.io.InputStream, int"
  27424. static="false" final="false" visibility="public"
  27425. deprecated="not deprecated">
  27426. <doc>
  27427. <![CDATA[Create a line reader that reads from the given stream using the
  27428. given buffer-size.
  27429. @param in The input stream
  27430. @param bufferSize Size of the read buffer
  27431. @throws IOException]]>
  27432. </doc>
  27433. </constructor>
  27434. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  27435. static="false" final="false" visibility="public"
  27436. deprecated="not deprecated">
  27437. <exception name="IOException" type="java.io.IOException"/>
  27438. <doc>
  27439. <![CDATA[Create a line reader that reads from the given stream using the
  27440. <code>io.file.buffer.size</code> specified in the given
  27441. <code>Configuration</code>.
  27442. @param in input stream
  27443. @param conf configuration
  27444. @throws IOException]]>
  27445. </doc>
  27446. </constructor>
  27447. <method name="close"
  27448. abstract="false" native="false" synchronized="false"
  27449. static="false" final="false" visibility="public"
  27450. deprecated="not deprecated">
  27451. <exception name="IOException" type="java.io.IOException"/>
  27452. <doc>
  27453. <![CDATA[Close the underlying stream.
  27454. @throws IOException]]>
  27455. </doc>
  27456. </method>
  27457. <method name="readLine" return="int"
  27458. abstract="false" native="false" synchronized="false"
  27459. static="false" final="false" visibility="public"
  27460. deprecated="not deprecated">
  27461. <param name="str" type="org.apache.hadoop.io.Text"/>
  27462. <param name="maxLineLength" type="int"/>
  27463. <param name="maxBytesToConsume" type="int"/>
  27464. <exception name="IOException" type="java.io.IOException"/>
  27465. <doc>
  27466. <![CDATA[Read one line from the InputStream into the given Text. A line
  27467. can be terminated by one of the following: '\n' (LF) , '\r' (CR),
  27468. or '\r\n' (CR+LF). EOF also terminates an otherwise unterminated
  27469. line.
  27470. @param str the object to store the given line (without newline)
  27471. @param maxLineLength the maximum number of bytes to store into str;
  27472. the rest of the line is silently discarded.
  27473. @param maxBytesToConsume the maximum number of bytes to consume
  27474. in this call. This is only a hint, because if the line cross
  27475. this threshold, we allow it to happen. It can overshoot
  27476. potentially by as much as one buffer length.
  27477. @return the number of bytes read including the (longest) newline
  27478. found.
  27479. @throws IOException if the underlying stream throws]]>
  27480. </doc>
  27481. </method>
  27482. <method name="readLine" return="int"
  27483. abstract="false" native="false" synchronized="false"
  27484. static="false" final="false" visibility="public"
  27485. deprecated="not deprecated">
  27486. <param name="str" type="org.apache.hadoop.io.Text"/>
  27487. <param name="maxLineLength" type="int"/>
  27488. <exception name="IOException" type="java.io.IOException"/>
  27489. <doc>
  27490. <![CDATA[Read from the InputStream into the given Text.
  27491. @param str the object to store the given line
  27492. @param maxLineLength the maximum number of bytes to store into str.
  27493. @return the number of bytes read including the newline
  27494. @throws IOException if the underlying stream throws]]>
  27495. </doc>
  27496. </method>
  27497. <method name="readLine" return="int"
  27498. abstract="false" native="false" synchronized="false"
  27499. static="false" final="false" visibility="public"
  27500. deprecated="not deprecated">
  27501. <param name="str" type="org.apache.hadoop.io.Text"/>
  27502. <exception name="IOException" type="java.io.IOException"/>
  27503. <doc>
  27504. <![CDATA[Read from the InputStream into the given Text.
  27505. @param str the object to store the given line
  27506. @return the number of bytes read including the newline
  27507. @throws IOException if the underlying stream throws]]>
  27508. </doc>
  27509. </method>
  27510. <doc>
  27511. <![CDATA[A class that provides a line reader from an input stream.]]>
  27512. </doc>
  27513. </class>
  27514. <!-- end class org.apache.hadoop.util.LineReader -->
  27515. <!-- start class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  27516. <class name="LinuxMemoryCalculatorPlugin" extends="org.apache.hadoop.util.MemoryCalculatorPlugin"
  27517. abstract="false"
  27518. static="false" final="false" visibility="public"
  27519. deprecated="not deprecated">
  27520. <constructor name="LinuxMemoryCalculatorPlugin"
  27521. static="false" final="false" visibility="public"
  27522. deprecated="not deprecated">
  27523. </constructor>
  27524. <method name="getPhysicalMemorySize" return="long"
  27525. abstract="false" native="false" synchronized="false"
  27526. static="false" final="false" visibility="public"
  27527. deprecated="not deprecated">
  27528. <doc>
  27529. <![CDATA[{@inheritDoc}]]>
  27530. </doc>
  27531. </method>
  27532. <method name="getVirtualMemorySize" return="long"
  27533. abstract="false" native="false" synchronized="false"
  27534. static="false" final="false" visibility="public"
  27535. deprecated="not deprecated">
  27536. <doc>
  27537. <![CDATA[{@inheritDoc}]]>
  27538. </doc>
  27539. </method>
  27540. <method name="main"
  27541. abstract="false" native="false" synchronized="false"
  27542. static="true" final="false" visibility="public"
  27543. deprecated="not deprecated">
  27544. <param name="args" type="java.lang.String[]"/>
  27545. <doc>
  27546. <![CDATA[Test the {@link LinuxMemoryCalculatorPlugin}
  27547. @param args]]>
  27548. </doc>
  27549. </method>
  27550. <doc>
  27551. <![CDATA[Plugin to calculate virtual and physical memories on Linux systems.]]>
  27552. </doc>
  27553. </class>
  27554. <!-- end class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  27555. <!-- start class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  27556. <class name="MemoryCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  27557. abstract="true"
  27558. static="false" final="false" visibility="public"
  27559. deprecated="not deprecated">
  27560. <constructor name="MemoryCalculatorPlugin"
  27561. static="false" final="false" visibility="public"
  27562. deprecated="not deprecated">
  27563. </constructor>
  27564. <method name="getVirtualMemorySize" return="long"
  27565. abstract="true" native="false" synchronized="false"
  27566. static="false" final="false" visibility="public"
  27567. deprecated="not deprecated">
  27568. <doc>
  27569. <![CDATA[Obtain the total size of the virtual memory present in the system.
  27570. @return virtual memory size in bytes.]]>
  27571. </doc>
  27572. </method>
  27573. <method name="getPhysicalMemorySize" return="long"
  27574. abstract="true" native="false" synchronized="false"
  27575. static="false" final="false" visibility="public"
  27576. deprecated="not deprecated">
  27577. <doc>
  27578. <![CDATA[Obtain the total size of the physical memory present in the system.
  27579. @return physical memory size bytes.]]>
  27580. </doc>
  27581. </method>
  27582. <method name="getMemoryCalculatorPlugin" return="org.apache.hadoop.util.MemoryCalculatorPlugin"
  27583. abstract="false" native="false" synchronized="false"
  27584. static="true" final="false" visibility="public"
  27585. deprecated="not deprecated">
  27586. <param name="clazz" type="java.lang.Class"/>
  27587. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27588. <doc>
  27589. <![CDATA[Get the MemoryCalculatorPlugin from the class name and configure it. If
  27590. class name is null, this method will try and return a memory calculator
  27591. plugin available for this system.
  27592. @param clazz class-name
  27593. @param conf configure the plugin with this.
  27594. @return MemoryCalculatorPlugin]]>
  27595. </doc>
  27596. </method>
  27597. <doc>
  27598. <![CDATA[Plugin to calculate virtual and physical memories on the system.]]>
  27599. </doc>
  27600. </class>
  27601. <!-- end class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  27602. <!-- start class org.apache.hadoop.util.MergeSort -->
  27603. <class name="MergeSort" extends="java.lang.Object"
  27604. abstract="false"
  27605. static="false" final="false" visibility="public"
  27606. deprecated="not deprecated">
  27607. <constructor name="MergeSort" type="java.util.Comparator"
  27608. static="false" final="false" visibility="public"
  27609. deprecated="not deprecated">
  27610. </constructor>
  27611. <method name="mergeSort"
  27612. abstract="false" native="false" synchronized="false"
  27613. static="false" final="false" visibility="public"
  27614. deprecated="not deprecated">
  27615. <param name="src" type="int[]"/>
  27616. <param name="dest" type="int[]"/>
  27617. <param name="low" type="int"/>
  27618. <param name="high" type="int"/>
  27619. </method>
  27620. <doc>
  27621. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  27622. </doc>
  27623. </class>
  27624. <!-- end class org.apache.hadoop.util.MergeSort -->
  27625. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  27626. <class name="NativeCodeLoader" extends="java.lang.Object"
  27627. abstract="false"
  27628. static="false" final="false" visibility="public"
  27629. deprecated="not deprecated">
  27630. <constructor name="NativeCodeLoader"
  27631. static="false" final="false" visibility="public"
  27632. deprecated="not deprecated">
  27633. </constructor>
  27634. <method name="isNativeCodeLoaded" return="boolean"
  27635. abstract="false" native="false" synchronized="false"
  27636. static="true" final="false" visibility="public"
  27637. deprecated="not deprecated">
  27638. <doc>
  27639. <![CDATA[Check if native-hadoop code is loaded for this platform.
  27640. @return <code>true</code> if native-hadoop is loaded,
  27641. else <code>false</code>]]>
  27642. </doc>
  27643. </method>
  27644. <method name="getLoadNativeLibraries" return="boolean"
  27645. abstract="false" native="false" synchronized="false"
  27646. static="false" final="false" visibility="public"
  27647. deprecated="not deprecated">
  27648. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27649. <doc>
  27650. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  27651. @param conf configuration
  27652. @return <code>true</code> if native hadoop libraries, if present, can be
  27653. used for this job; <code>false</code> otherwise.]]>
  27654. </doc>
  27655. </method>
  27656. <method name="setLoadNativeLibraries"
  27657. abstract="false" native="false" synchronized="false"
  27658. static="false" final="false" visibility="public"
  27659. deprecated="not deprecated">
  27660. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27661. <param name="loadNativeLibraries" type="boolean"/>
  27662. <doc>
  27663. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  27664. @param conf configuration
  27665. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  27666. </doc>
  27667. </method>
  27668. <doc>
  27669. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  27670. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  27671. or the default java implementations where appropriate.]]>
  27672. </doc>
  27673. </class>
  27674. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  27675. <!-- start class org.apache.hadoop.util.PlatformName -->
  27676. <class name="PlatformName" extends="java.lang.Object"
  27677. abstract="false"
  27678. static="false" final="false" visibility="public"
  27679. deprecated="not deprecated">
  27680. <constructor name="PlatformName"
  27681. static="false" final="false" visibility="public"
  27682. deprecated="not deprecated">
  27683. </constructor>
  27684. <method name="getPlatformName" return="java.lang.String"
  27685. abstract="false" native="false" synchronized="false"
  27686. static="true" final="false" visibility="public"
  27687. deprecated="not deprecated">
  27688. <doc>
  27689. <![CDATA[Get the complete platform as per the java-vm.
  27690. @return returns the complete platform as per the java-vm.]]>
  27691. </doc>
  27692. </method>
  27693. <method name="main"
  27694. abstract="false" native="false" synchronized="false"
  27695. static="true" final="false" visibility="public"
  27696. deprecated="not deprecated">
  27697. <param name="args" type="java.lang.String[]"/>
  27698. </method>
  27699. <doc>
  27700. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  27701. </doc>
  27702. </class>
  27703. <!-- end class org.apache.hadoop.util.PlatformName -->
  27704. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  27705. <class name="PrintJarMainClass" extends="java.lang.Object"
  27706. abstract="false"
  27707. static="false" final="false" visibility="public"
  27708. deprecated="not deprecated">
  27709. <constructor name="PrintJarMainClass"
  27710. static="false" final="false" visibility="public"
  27711. deprecated="not deprecated">
  27712. </constructor>
  27713. <method name="main"
  27714. abstract="false" native="false" synchronized="false"
  27715. static="true" final="false" visibility="public"
  27716. deprecated="not deprecated">
  27717. <param name="args" type="java.lang.String[]"/>
  27718. <doc>
  27719. <![CDATA[@param args]]>
  27720. </doc>
  27721. </method>
  27722. <doc>
  27723. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  27724. </doc>
  27725. </class>
  27726. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  27727. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  27728. <class name="PriorityQueue" extends="java.lang.Object"
  27729. abstract="true"
  27730. static="false" final="false" visibility="public"
  27731. deprecated="not deprecated">
  27732. <constructor name="PriorityQueue"
  27733. static="false" final="false" visibility="public"
  27734. deprecated="not deprecated">
  27735. </constructor>
  27736. <method name="lessThan" return="boolean"
  27737. abstract="true" native="false" synchronized="false"
  27738. static="false" final="false" visibility="protected"
  27739. deprecated="not deprecated">
  27740. <param name="a" type="java.lang.Object"/>
  27741. <param name="b" type="java.lang.Object"/>
  27742. <doc>
  27743. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  27744. must define this one method.]]>
  27745. </doc>
  27746. </method>
  27747. <method name="initialize"
  27748. abstract="false" native="false" synchronized="false"
  27749. static="false" final="true" visibility="protected"
  27750. deprecated="not deprecated">
  27751. <param name="maxSize" type="int"/>
  27752. <doc>
  27753. <![CDATA[Subclass constructors must call this.]]>
  27754. </doc>
  27755. </method>
  27756. <method name="put"
  27757. abstract="false" native="false" synchronized="false"
  27758. static="false" final="true" visibility="public"
  27759. deprecated="not deprecated">
  27760. <param name="element" type="java.lang.Object"/>
  27761. <doc>
  27762. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  27763. If one tries to add more objects than maxSize from initialize
  27764. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  27765. </doc>
  27766. </method>
  27767. <method name="insert" return="boolean"
  27768. abstract="false" native="false" synchronized="false"
  27769. static="false" final="false" visibility="public"
  27770. deprecated="not deprecated">
  27771. <param name="element" type="java.lang.Object"/>
  27772. <doc>
  27773. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  27774. the PriorityQueue is not full, or not lessThan(element, top()).
  27775. @param element
  27776. @return true if element is added, false otherwise.]]>
  27777. </doc>
  27778. </method>
  27779. <method name="top" return="java.lang.Object"
  27780. abstract="false" native="false" synchronized="false"
  27781. static="false" final="true" visibility="public"
  27782. deprecated="not deprecated">
  27783. <doc>
  27784. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  27785. </doc>
  27786. </method>
  27787. <method name="pop" return="java.lang.Object"
  27788. abstract="false" native="false" synchronized="false"
  27789. static="false" final="true" visibility="public"
  27790. deprecated="not deprecated">
  27791. <doc>
  27792. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  27793. time.]]>
  27794. </doc>
  27795. </method>
  27796. <method name="adjustTop"
  27797. abstract="false" native="false" synchronized="false"
  27798. static="false" final="true" visibility="public"
  27799. deprecated="not deprecated">
  27800. <doc>
  27801. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  27802. worst case, but it's at least twice as fast to <pre>
  27803. { pq.top().change(); pq.adjustTop(); }
  27804. </pre> instead of <pre>
  27805. { o = pq.pop(); o.change(); pq.push(o); }
  27806. </pre>]]>
  27807. </doc>
  27808. </method>
  27809. <method name="size" return="int"
  27810. abstract="false" native="false" synchronized="false"
  27811. static="false" final="true" visibility="public"
  27812. deprecated="not deprecated">
  27813. <doc>
  27814. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  27815. </doc>
  27816. </method>
  27817. <method name="clear"
  27818. abstract="false" native="false" synchronized="false"
  27819. static="false" final="true" visibility="public"
  27820. deprecated="not deprecated">
  27821. <doc>
  27822. <![CDATA[Removes all entries from the PriorityQueue.]]>
  27823. </doc>
  27824. </method>
  27825. <doc>
  27826. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  27827. least element can always be found in constant time. Put()'s and pop()'s
  27828. require log(size) time.]]>
  27829. </doc>
  27830. </class>
  27831. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  27832. <!-- start class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  27833. <class name="ProcfsBasedProcessTree" extends="java.lang.Object"
  27834. abstract="false"
  27835. static="false" final="false" visibility="public"
  27836. deprecated="not deprecated">
  27837. <constructor name="ProcfsBasedProcessTree" type="java.lang.String"
  27838. static="false" final="false" visibility="public"
  27839. deprecated="not deprecated">
  27840. </constructor>
  27841. <method name="setSigKillInterval"
  27842. abstract="false" native="false" synchronized="false"
  27843. static="false" final="false" visibility="public"
  27844. deprecated="not deprecated">
  27845. <param name="interval" type="long"/>
  27846. </method>
  27847. <method name="isAvailable" return="boolean"
  27848. abstract="false" native="false" synchronized="false"
  27849. static="true" final="false" visibility="public"
  27850. deprecated="not deprecated">
  27851. <doc>
  27852. <![CDATA[Checks if the ProcfsBasedProcessTree is available on this system.
  27853. @return true if ProcfsBasedProcessTree is available. False otherwise.]]>
  27854. </doc>
  27855. </method>
  27856. <method name="getProcessTree" return="org.apache.hadoop.util.ProcfsBasedProcessTree"
  27857. abstract="false" native="false" synchronized="false"
  27858. static="false" final="false" visibility="public"
  27859. deprecated="not deprecated">
  27860. <doc>
  27861. <![CDATA[Get the process-tree with latest state. If the root-process is not alive,
  27862. an empty tree will be returned.
  27863. @return the process-tree with latest state.]]>
  27864. </doc>
  27865. </method>
  27866. <method name="isAlive" return="boolean"
  27867. abstract="false" native="false" synchronized="false"
  27868. static="false" final="false" visibility="public"
  27869. deprecated="not deprecated">
  27870. <doc>
  27871. <![CDATA[Is the process-tree alive? Currently we care only about the status of the
  27872. root-process.
  27873. @return true if the process-true is alive, false otherwise.]]>
  27874. </doc>
  27875. </method>
  27876. <method name="destroy"
  27877. abstract="false" native="false" synchronized="false"
  27878. static="false" final="false" visibility="public"
  27879. deprecated="not deprecated">
  27880. <doc>
  27881. <![CDATA[Destroy the process-tree. Currently we only make sure the root process is
  27882. gone. It is the responsibility of the root process to make sure that all
  27883. its descendants are cleaned up.]]>
  27884. </doc>
  27885. </method>
  27886. <method name="getCumulativeVmem" return="long"
  27887. abstract="false" native="false" synchronized="false"
  27888. static="false" final="false" visibility="public"
  27889. deprecated="not deprecated">
  27890. <doc>
  27891. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  27892. process-tree.
  27893. @return cumulative virtual memory used by the process-tree in bytes.]]>
  27894. </doc>
  27895. </method>
  27896. <method name="getPidFromPidFile" return="java.lang.String"
  27897. abstract="false" native="false" synchronized="false"
  27898. static="true" final="false" visibility="public"
  27899. deprecated="not deprecated">
  27900. <param name="pidFileName" type="java.lang.String"/>
  27901. <doc>
  27902. <![CDATA[Get PID from a pid-file.
  27903. @param pidFileName
  27904. Name of the pid-file.
  27905. @return the PID string read from the pid-file. Returns null if the
  27906. pidFileName points to a non-existing file or if read fails from the
  27907. file.]]>
  27908. </doc>
  27909. </method>
  27910. <method name="toString" return="java.lang.String"
  27911. abstract="false" native="false" synchronized="false"
  27912. static="false" final="false" visibility="public"
  27913. deprecated="not deprecated">
  27914. <doc>
  27915. <![CDATA[Returns a string printing PIDs of process present in the
  27916. ProcfsBasedProcessTree. Output format : [pid pid ..]]]>
  27917. </doc>
  27918. </method>
  27919. <field name="DEFAULT_SLEEPTIME_BEFORE_SIGKILL" type="long"
  27920. transient="false" volatile="false"
  27921. static="true" final="true" visibility="public"
  27922. deprecated="not deprecated">
  27923. </field>
  27924. <doc>
  27925. <![CDATA[A Proc file-system based ProcessTree. Works only on Linux.]]>
  27926. </doc>
  27927. </class>
  27928. <!-- end class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  27929. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  27930. <class name="ProgramDriver" extends="java.lang.Object"
  27931. abstract="false"
  27932. static="false" final="false" visibility="public"
  27933. deprecated="not deprecated">
  27934. <constructor name="ProgramDriver"
  27935. static="false" final="false" visibility="public"
  27936. deprecated="not deprecated">
  27937. </constructor>
  27938. <method name="addClass"
  27939. abstract="false" native="false" synchronized="false"
  27940. static="false" final="false" visibility="public"
  27941. deprecated="not deprecated">
  27942. <param name="name" type="java.lang.String"/>
  27943. <param name="mainClass" type="java.lang.Class"/>
  27944. <param name="description" type="java.lang.String"/>
  27945. <exception name="Throwable" type="java.lang.Throwable"/>
  27946. <doc>
  27947. <![CDATA[This is the method that adds the classed to the repository
  27948. @param name The name of the string you want the class instance to be called with
  27949. @param mainClass The class that you want to add to the repository
  27950. @param description The description of the class
  27951. @throws NoSuchMethodException
  27952. @throws SecurityException]]>
  27953. </doc>
  27954. </method>
  27955. <method name="driver"
  27956. abstract="false" native="false" synchronized="false"
  27957. static="false" final="false" visibility="public"
  27958. deprecated="not deprecated">
  27959. <param name="args" type="java.lang.String[]"/>
  27960. <exception name="Throwable" type="java.lang.Throwable"/>
  27961. <doc>
  27962. <![CDATA[This is a driver for the example programs.
  27963. It looks at the first command line argument and tries to find an
  27964. example program with that name.
  27965. If it is found, it calls the main method in that class with the rest
  27966. of the command line arguments.
  27967. @param args The argument from the user. args[0] is the command to run.
  27968. @throws NoSuchMethodException
  27969. @throws SecurityException
  27970. @throws IllegalAccessException
  27971. @throws IllegalArgumentException
  27972. @throws Throwable Anything thrown by the example program's main]]>
  27973. </doc>
  27974. </method>
  27975. <doc>
  27976. <![CDATA[A driver that is used to run programs added to it]]>
  27977. </doc>
  27978. </class>
  27979. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  27980. <!-- start class org.apache.hadoop.util.Progress -->
  27981. <class name="Progress" extends="java.lang.Object"
  27982. abstract="false"
  27983. static="false" final="false" visibility="public"
  27984. deprecated="not deprecated">
  27985. <constructor name="Progress"
  27986. static="false" final="false" visibility="public"
  27987. deprecated="not deprecated">
  27988. <doc>
  27989. <![CDATA[Creates a new root node.]]>
  27990. </doc>
  27991. </constructor>
  27992. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  27993. abstract="false" native="false" synchronized="false"
  27994. static="false" final="false" visibility="public"
  27995. deprecated="not deprecated">
  27996. <param name="status" type="java.lang.String"/>
  27997. <doc>
  27998. <![CDATA[Adds a named node to the tree.]]>
  27999. </doc>
  28000. </method>
  28001. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  28002. abstract="false" native="false" synchronized="true"
  28003. static="false" final="false" visibility="public"
  28004. deprecated="not deprecated">
  28005. <doc>
  28006. <![CDATA[Adds a node to the tree.]]>
  28007. </doc>
  28008. </method>
  28009. <method name="startNextPhase"
  28010. abstract="false" native="false" synchronized="true"
  28011. static="false" final="false" visibility="public"
  28012. deprecated="not deprecated">
  28013. <doc>
  28014. <![CDATA[Called during execution to move to the next phase at this level in the
  28015. tree.]]>
  28016. </doc>
  28017. </method>
  28018. <method name="phase" return="org.apache.hadoop.util.Progress"
  28019. abstract="false" native="false" synchronized="true"
  28020. static="false" final="false" visibility="public"
  28021. deprecated="not deprecated">
  28022. <doc>
  28023. <![CDATA[Returns the current sub-node executing.]]>
  28024. </doc>
  28025. </method>
  28026. <method name="complete"
  28027. abstract="false" native="false" synchronized="false"
  28028. static="false" final="false" visibility="public"
  28029. deprecated="not deprecated">
  28030. <doc>
  28031. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  28032. </doc>
  28033. </method>
  28034. <method name="set"
  28035. abstract="false" native="false" synchronized="true"
  28036. static="false" final="false" visibility="public"
  28037. deprecated="not deprecated">
  28038. <param name="progress" type="float"/>
  28039. <doc>
  28040. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  28041. </doc>
  28042. </method>
  28043. <method name="get" return="float"
  28044. abstract="false" native="false" synchronized="true"
  28045. static="false" final="false" visibility="public"
  28046. deprecated="not deprecated">
  28047. <doc>
  28048. <![CDATA[Returns the overall progress of the root.]]>
  28049. </doc>
  28050. </method>
  28051. <method name="setStatus"
  28052. abstract="false" native="false" synchronized="true"
  28053. static="false" final="false" visibility="public"
  28054. deprecated="not deprecated">
  28055. <param name="status" type="java.lang.String"/>
  28056. </method>
  28057. <method name="toString" return="java.lang.String"
  28058. abstract="false" native="false" synchronized="false"
  28059. static="false" final="false" visibility="public"
  28060. deprecated="not deprecated">
  28061. </method>
  28062. <doc>
  28063. <![CDATA[Utility to assist with generation of progress reports. Applications build
  28064. a hierarchy of {@link Progress} instances, each modelling a phase of
  28065. execution. The root is constructed with {@link #Progress()}. Nodes for
  28066. sub-phases are created by calling {@link #addPhase()}.]]>
  28067. </doc>
  28068. </class>
  28069. <!-- end class org.apache.hadoop.util.Progress -->
  28070. <!-- start interface org.apache.hadoop.util.Progressable -->
  28071. <interface name="Progressable" abstract="true"
  28072. static="false" final="false" visibility="public"
  28073. deprecated="not deprecated">
  28074. <method name="progress"
  28075. abstract="false" native="false" synchronized="false"
  28076. static="false" final="false" visibility="public"
  28077. deprecated="not deprecated">
  28078. <doc>
  28079. <![CDATA[Report progress to the Hadoop framework.]]>
  28080. </doc>
  28081. </method>
  28082. <doc>
  28083. <![CDATA[A facility for reporting progress.
  28084. <p>Clients and/or applications can use the provided <code>Progressable</code>
  28085. to explicitly report progress to the Hadoop framework. This is especially
  28086. important for operations which take an insignificant amount of time since,
  28087. in-lieu of the reported progress, the framework has to assume that an error
  28088. has occured and time-out the operation.</p>]]>
  28089. </doc>
  28090. </interface>
  28091. <!-- end interface org.apache.hadoop.util.Progressable -->
  28092. <!-- start class org.apache.hadoop.util.QuickSort -->
  28093. <class name="QuickSort" extends="java.lang.Object"
  28094. abstract="false"
  28095. static="false" final="true" visibility="public"
  28096. deprecated="not deprecated">
  28097. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  28098. <constructor name="QuickSort"
  28099. static="false" final="false" visibility="public"
  28100. deprecated="not deprecated">
  28101. </constructor>
  28102. <method name="getMaxDepth" return="int"
  28103. abstract="false" native="false" synchronized="false"
  28104. static="true" final="false" visibility="protected"
  28105. deprecated="not deprecated">
  28106. <param name="x" type="int"/>
  28107. <doc>
  28108. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  28109. Returns 2 * ceil(log(n)).]]>
  28110. </doc>
  28111. </method>
  28112. <method name="sort"
  28113. abstract="false" native="false" synchronized="false"
  28114. static="false" final="false" visibility="public"
  28115. deprecated="not deprecated">
  28116. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  28117. <param name="p" type="int"/>
  28118. <param name="r" type="int"/>
  28119. <doc>
  28120. <![CDATA[Sort the given range of items using quick sort.
  28121. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  28122. then switch to {@link HeapSort}.]]>
  28123. </doc>
  28124. </method>
  28125. <method name="sort"
  28126. abstract="false" native="false" synchronized="false"
  28127. static="false" final="false" visibility="public"
  28128. deprecated="not deprecated">
  28129. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  28130. <param name="p" type="int"/>
  28131. <param name="r" type="int"/>
  28132. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  28133. <doc>
  28134. <![CDATA[{@inheritDoc}]]>
  28135. </doc>
  28136. </method>
  28137. <doc>
  28138. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  28139. </doc>
  28140. </class>
  28141. <!-- end class org.apache.hadoop.util.QuickSort -->
  28142. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  28143. <class name="ReflectionUtils" extends="java.lang.Object"
  28144. abstract="false"
  28145. static="false" final="false" visibility="public"
  28146. deprecated="not deprecated">
  28147. <constructor name="ReflectionUtils"
  28148. static="false" final="false" visibility="public"
  28149. deprecated="not deprecated">
  28150. </constructor>
  28151. <method name="setConf"
  28152. abstract="false" native="false" synchronized="false"
  28153. static="true" final="false" visibility="public"
  28154. deprecated="not deprecated">
  28155. <param name="theObject" type="java.lang.Object"/>
  28156. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28157. <doc>
  28158. <![CDATA[Check and set 'configuration' if necessary.
  28159. @param theObject object for which to set configuration
  28160. @param conf Configuration]]>
  28161. </doc>
  28162. </method>
  28163. <method name="newInstance" return="java.lang.Object"
  28164. abstract="false" native="false" synchronized="false"
  28165. static="true" final="false" visibility="public"
  28166. deprecated="not deprecated">
  28167. <param name="theClass" type="java.lang.Class"/>
  28168. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28169. <doc>
  28170. <![CDATA[Create an object for the given class and initialize it from conf
  28171. @param theClass class of which an object is created
  28172. @param conf Configuration
  28173. @return a new object]]>
  28174. </doc>
  28175. </method>
  28176. <method name="setContentionTracing"
  28177. abstract="false" native="false" synchronized="false"
  28178. static="true" final="false" visibility="public"
  28179. deprecated="not deprecated">
  28180. <param name="val" type="boolean"/>
  28181. </method>
  28182. <method name="printThreadInfo"
  28183. abstract="false" native="false" synchronized="false"
  28184. static="true" final="false" visibility="public"
  28185. deprecated="not deprecated">
  28186. <param name="stream" type="java.io.PrintWriter"/>
  28187. <param name="title" type="java.lang.String"/>
  28188. <doc>
  28189. <![CDATA[Print all of the thread's information and stack traces.
  28190. @param stream the stream to
  28191. @param title a string title for the stack trace]]>
  28192. </doc>
  28193. </method>
  28194. <method name="logThreadInfo"
  28195. abstract="false" native="false" synchronized="false"
  28196. static="true" final="false" visibility="public"
  28197. deprecated="not deprecated">
  28198. <param name="log" type="org.apache.commons.logging.Log"/>
  28199. <param name="title" type="java.lang.String"/>
  28200. <param name="minInterval" type="long"/>
  28201. <doc>
  28202. <![CDATA[Log the current thread stacks at INFO level.
  28203. @param log the logger that logs the stack trace
  28204. @param title a descriptive title for the call stacks
  28205. @param minInterval the minimum time from the last]]>
  28206. </doc>
  28207. </method>
  28208. <method name="getClass" return="java.lang.Class"
  28209. abstract="false" native="false" synchronized="false"
  28210. static="true" final="false" visibility="public"
  28211. deprecated="not deprecated">
  28212. <param name="o" type="java.lang.Object"/>
  28213. <doc>
  28214. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  28215. @param o object whose correctly-typed <code>Class</code> is to be obtained
  28216. @return the correctly typed <code>Class</code> of the given object.]]>
  28217. </doc>
  28218. </method>
  28219. <method name="copy" return="java.lang.Object"
  28220. abstract="false" native="false" synchronized="false"
  28221. static="true" final="false" visibility="public"
  28222. deprecated="not deprecated">
  28223. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28224. <param name="src" type="java.lang.Object"/>
  28225. <param name="dst" type="java.lang.Object"/>
  28226. <exception name="IOException" type="java.io.IOException"/>
  28227. <doc>
  28228. <![CDATA[Make a copy of the writable object using serialization to a buffer
  28229. @param dst the object to copy from
  28230. @param src the object to copy into, which is destroyed
  28231. @throws IOException]]>
  28232. </doc>
  28233. </method>
  28234. <method name="cloneWritableInto"
  28235. abstract="false" native="false" synchronized="false"
  28236. static="true" final="false" visibility="public"
  28237. deprecated="not deprecated">
  28238. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  28239. <param name="src" type="org.apache.hadoop.io.Writable"/>
  28240. <exception name="IOException" type="java.io.IOException"/>
  28241. </method>
  28242. <doc>
  28243. <![CDATA[General reflection utils]]>
  28244. </doc>
  28245. </class>
  28246. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  28247. <!-- start class org.apache.hadoop.util.RunJar -->
  28248. <class name="RunJar" extends="java.lang.Object"
  28249. abstract="false"
  28250. static="false" final="false" visibility="public"
  28251. deprecated="not deprecated">
  28252. <constructor name="RunJar"
  28253. static="false" final="false" visibility="public"
  28254. deprecated="not deprecated">
  28255. </constructor>
  28256. <method name="unJar"
  28257. abstract="false" native="false" synchronized="false"
  28258. static="true" final="false" visibility="public"
  28259. deprecated="not deprecated">
  28260. <param name="jarFile" type="java.io.File"/>
  28261. <param name="toDir" type="java.io.File"/>
  28262. <exception name="IOException" type="java.io.IOException"/>
  28263. <doc>
  28264. <![CDATA[Unpack a jar file into a directory.]]>
  28265. </doc>
  28266. </method>
  28267. <method name="main"
  28268. abstract="false" native="false" synchronized="false"
  28269. static="true" final="false" visibility="public"
  28270. deprecated="not deprecated">
  28271. <param name="args" type="java.lang.String[]"/>
  28272. <exception name="Throwable" type="java.lang.Throwable"/>
  28273. <doc>
  28274. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  28275. then it must be provided on the command line.]]>
  28276. </doc>
  28277. </method>
  28278. <doc>
  28279. <![CDATA[Run a Hadoop job jar.]]>
  28280. </doc>
  28281. </class>
  28282. <!-- end class org.apache.hadoop.util.RunJar -->
  28283. <!-- start class org.apache.hadoop.util.ServletUtil -->
  28284. <class name="ServletUtil" extends="java.lang.Object"
  28285. abstract="false"
  28286. static="false" final="false" visibility="public"
  28287. deprecated="not deprecated">
  28288. <constructor name="ServletUtil"
  28289. static="false" final="false" visibility="public"
  28290. deprecated="not deprecated">
  28291. </constructor>
  28292. <method name="initHTML" return="java.io.PrintWriter"
  28293. abstract="false" native="false" synchronized="false"
  28294. static="true" final="false" visibility="public"
  28295. deprecated="not deprecated">
  28296. <param name="response" type="javax.servlet.ServletResponse"/>
  28297. <param name="title" type="java.lang.String"/>
  28298. <exception name="IOException" type="java.io.IOException"/>
  28299. <doc>
  28300. <![CDATA[Initial HTML header]]>
  28301. </doc>
  28302. </method>
  28303. <method name="getParameter" return="java.lang.String"
  28304. abstract="false" native="false" synchronized="false"
  28305. static="true" final="false" visibility="public"
  28306. deprecated="not deprecated">
  28307. <param name="request" type="javax.servlet.ServletRequest"/>
  28308. <param name="name" type="java.lang.String"/>
  28309. <doc>
  28310. <![CDATA[Get a parameter from a ServletRequest.
  28311. Return null if the parameter contains only white spaces.]]>
  28312. </doc>
  28313. </method>
  28314. <method name="htmlFooter" return="java.lang.String"
  28315. abstract="false" native="false" synchronized="false"
  28316. static="true" final="false" visibility="public"
  28317. deprecated="not deprecated">
  28318. <doc>
  28319. <![CDATA[HTML footer to be added in the jsps.
  28320. @return the HTML footer.]]>
  28321. </doc>
  28322. </method>
  28323. <method name="percentageGraph" return="java.lang.String"
  28324. abstract="false" native="false" synchronized="false"
  28325. static="true" final="false" visibility="public"
  28326. deprecated="not deprecated">
  28327. <param name="perc" type="int"/>
  28328. <param name="width" type="int"/>
  28329. <exception name="IOException" type="java.io.IOException"/>
  28330. <doc>
  28331. <![CDATA[Generate the percentage graph and returns HTML representation string
  28332. of the same.
  28333. @param perc The percentage value for which graph is to be generated
  28334. @param width The width of the display table
  28335. @return HTML String representation of the percentage graph
  28336. @throws IOException]]>
  28337. </doc>
  28338. </method>
  28339. <method name="percentageGraph" return="java.lang.String"
  28340. abstract="false" native="false" synchronized="false"
  28341. static="true" final="false" visibility="public"
  28342. deprecated="not deprecated">
  28343. <param name="perc" type="float"/>
  28344. <param name="width" type="int"/>
  28345. <exception name="IOException" type="java.io.IOException"/>
  28346. <doc>
  28347. <![CDATA[Generate the percentage graph and returns HTML representation string
  28348. of the same.
  28349. @param perc The percentage value for which graph is to be generated
  28350. @param width The width of the display table
  28351. @return HTML String representation of the percentage graph
  28352. @throws IOException]]>
  28353. </doc>
  28354. </method>
  28355. <field name="HTML_TAIL" type="java.lang.String"
  28356. transient="false" volatile="false"
  28357. static="true" final="true" visibility="public"
  28358. deprecated="not deprecated">
  28359. </field>
  28360. </class>
  28361. <!-- end class org.apache.hadoop.util.ServletUtil -->
  28362. <!-- start class org.apache.hadoop.util.Shell -->
  28363. <class name="Shell" extends="java.lang.Object"
  28364. abstract="true"
  28365. static="false" final="false" visibility="public"
  28366. deprecated="not deprecated">
  28367. <constructor name="Shell"
  28368. static="false" final="false" visibility="public"
  28369. deprecated="not deprecated">
  28370. </constructor>
  28371. <constructor name="Shell" type="long"
  28372. static="false" final="false" visibility="public"
  28373. deprecated="not deprecated">
  28374. <doc>
  28375. <![CDATA[@param interval the minimum duration to wait before re-executing the
  28376. command.]]>
  28377. </doc>
  28378. </constructor>
  28379. <method name="getGROUPS_COMMAND" return="java.lang.String[]"
  28380. abstract="false" native="false" synchronized="false"
  28381. static="true" final="false" visibility="public"
  28382. deprecated="not deprecated">
  28383. <doc>
  28384. <![CDATA[a Unix command to get the current user's groups list]]>
  28385. </doc>
  28386. </method>
  28387. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  28388. abstract="false" native="false" synchronized="false"
  28389. static="true" final="false" visibility="public"
  28390. deprecated="not deprecated">
  28391. <doc>
  28392. <![CDATA[Return a Unix command to get permission information.]]>
  28393. </doc>
  28394. </method>
  28395. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  28396. abstract="false" native="false" synchronized="false"
  28397. static="true" final="false" visibility="public"
  28398. deprecated="not deprecated">
  28399. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28400. <doc>
  28401. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  28402. to a given child process. This is only relevant when we are forking a
  28403. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  28404. {@link org.apache.hadoop.mapred.Reducer} implementations
  28405. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  28406. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  28407. It also checks to ensure that we are running on a *nix platform else
  28408. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  28409. @param conf configuration
  28410. @return a <code>String[]</code> with the ulimit command arguments or
  28411. <code>null</code> if we are running on a non *nix platform or
  28412. if the limit is unspecified.]]>
  28413. </doc>
  28414. </method>
  28415. <method name="setEnvironment"
  28416. abstract="false" native="false" synchronized="false"
  28417. static="false" final="false" visibility="protected"
  28418. deprecated="not deprecated">
  28419. <param name="env" type="java.util.Map"/>
  28420. <doc>
  28421. <![CDATA[set the environment for the command
  28422. @param env Mapping of environment variables]]>
  28423. </doc>
  28424. </method>
  28425. <method name="setWorkingDirectory"
  28426. abstract="false" native="false" synchronized="false"
  28427. static="false" final="false" visibility="protected"
  28428. deprecated="not deprecated">
  28429. <param name="dir" type="java.io.File"/>
  28430. <doc>
  28431. <![CDATA[set the working directory
  28432. @param dir The directory where the command would be executed]]>
  28433. </doc>
  28434. </method>
  28435. <method name="run"
  28436. abstract="false" native="false" synchronized="false"
  28437. static="false" final="false" visibility="protected"
  28438. deprecated="not deprecated">
  28439. <exception name="IOException" type="java.io.IOException"/>
  28440. <doc>
  28441. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  28442. </doc>
  28443. </method>
  28444. <method name="getExecString" return="java.lang.String[]"
  28445. abstract="true" native="false" synchronized="false"
  28446. static="false" final="false" visibility="protected"
  28447. deprecated="not deprecated">
  28448. <doc>
  28449. <![CDATA[return an array containing the command name & its parameters]]>
  28450. </doc>
  28451. </method>
  28452. <method name="parseExecResult"
  28453. abstract="true" native="false" synchronized="false"
  28454. static="false" final="false" visibility="protected"
  28455. deprecated="not deprecated">
  28456. <param name="lines" type="java.io.BufferedReader"/>
  28457. <exception name="IOException" type="java.io.IOException"/>
  28458. <doc>
  28459. <![CDATA[Parse the execution result]]>
  28460. </doc>
  28461. </method>
  28462. <method name="getProcess" return="java.lang.Process"
  28463. abstract="false" native="false" synchronized="false"
  28464. static="false" final="false" visibility="public"
  28465. deprecated="not deprecated">
  28466. <doc>
  28467. <![CDATA[get the current sub-process executing the given command
  28468. @return process executing the command]]>
  28469. </doc>
  28470. </method>
  28471. <method name="getExitCode" return="int"
  28472. abstract="false" native="false" synchronized="false"
  28473. static="false" final="false" visibility="public"
  28474. deprecated="not deprecated">
  28475. <doc>
  28476. <![CDATA[get the exit code
  28477. @return the exit code of the process]]>
  28478. </doc>
  28479. </method>
  28480. <method name="execCommand" return="java.lang.String"
  28481. abstract="false" native="false" synchronized="false"
  28482. static="true" final="false" visibility="public"
  28483. deprecated="not deprecated">
  28484. <param name="cmd" type="java.lang.String[]"/>
  28485. <exception name="IOException" type="java.io.IOException"/>
  28486. <doc>
  28487. <![CDATA[Static method to execute a shell command.
  28488. Covers most of the simple cases without requiring the user to implement
  28489. the <code>Shell</code> interface.
  28490. @param cmd shell command to execute.
  28491. @return the output of the executed command.]]>
  28492. </doc>
  28493. </method>
  28494. <method name="execCommand" return="java.lang.String"
  28495. abstract="false" native="false" synchronized="false"
  28496. static="true" final="false" visibility="public"
  28497. deprecated="not deprecated">
  28498. <param name="env" type="java.util.Map"/>
  28499. <param name="cmd" type="java.lang.String[]"/>
  28500. <exception name="IOException" type="java.io.IOException"/>
  28501. <doc>
  28502. <![CDATA[Static method to execute a shell command.
  28503. Covers most of the simple cases without requiring the user to implement
  28504. the <code>Shell</code> interface.
  28505. @param env the map of environment key=value
  28506. @param cmd shell command to execute.
  28507. @return the output of the executed command.]]>
  28508. </doc>
  28509. </method>
  28510. <field name="LOG" type="org.apache.commons.logging.Log"
  28511. transient="false" volatile="false"
  28512. static="true" final="true" visibility="public"
  28513. deprecated="not deprecated">
  28514. </field>
  28515. <field name="USER_NAME_COMMAND" type="java.lang.String"
  28516. transient="false" volatile="false"
  28517. static="true" final="true" visibility="public"
  28518. deprecated="not deprecated">
  28519. <doc>
  28520. <![CDATA[a Unix command to get the current user's name]]>
  28521. </doc>
  28522. </field>
  28523. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  28524. transient="false" volatile="false"
  28525. static="true" final="true" visibility="public"
  28526. deprecated="not deprecated">
  28527. <doc>
  28528. <![CDATA[a Unix command to set permission]]>
  28529. </doc>
  28530. </field>
  28531. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  28532. transient="false" volatile="false"
  28533. static="true" final="true" visibility="public"
  28534. deprecated="not deprecated">
  28535. <doc>
  28536. <![CDATA[a Unix command to set owner]]>
  28537. </doc>
  28538. </field>
  28539. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  28540. transient="false" volatile="false"
  28541. static="true" final="true" visibility="public"
  28542. deprecated="not deprecated">
  28543. </field>
  28544. <field name="WINDOWS" type="boolean"
  28545. transient="false" volatile="false"
  28546. static="true" final="true" visibility="public"
  28547. deprecated="not deprecated">
  28548. <doc>
  28549. <![CDATA[Set to true on Windows platforms]]>
  28550. </doc>
  28551. </field>
  28552. <doc>
  28553. <![CDATA[A base class for running a Unix command.
  28554. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  28555. <code>df</code>. It also offers facilities to gate commands by
  28556. time-intervals.]]>
  28557. </doc>
  28558. </class>
  28559. <!-- end class org.apache.hadoop.util.Shell -->
  28560. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  28561. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  28562. abstract="false"
  28563. static="true" final="false" visibility="public"
  28564. deprecated="not deprecated">
  28565. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  28566. static="false" final="false" visibility="public"
  28567. deprecated="not deprecated">
  28568. </constructor>
  28569. <method name="getExitCode" return="int"
  28570. abstract="false" native="false" synchronized="false"
  28571. static="false" final="false" visibility="public"
  28572. deprecated="not deprecated">
  28573. </method>
  28574. <doc>
  28575. <![CDATA[This is an IOException with exit code added.]]>
  28576. </doc>
  28577. </class>
  28578. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  28579. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  28580. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  28581. abstract="false"
  28582. static="true" final="false" visibility="public"
  28583. deprecated="not deprecated">
  28584. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  28585. static="false" final="false" visibility="public"
  28586. deprecated="not deprecated">
  28587. </constructor>
  28588. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  28589. static="false" final="false" visibility="public"
  28590. deprecated="not deprecated">
  28591. </constructor>
  28592. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  28593. static="false" final="false" visibility="public"
  28594. deprecated="not deprecated">
  28595. </constructor>
  28596. <method name="execute"
  28597. abstract="false" native="false" synchronized="false"
  28598. static="false" final="false" visibility="public"
  28599. deprecated="not deprecated">
  28600. <exception name="IOException" type="java.io.IOException"/>
  28601. <doc>
  28602. <![CDATA[Execute the shell command.]]>
  28603. </doc>
  28604. </method>
  28605. <method name="getExecString" return="java.lang.String[]"
  28606. abstract="false" native="false" synchronized="false"
  28607. static="false" final="false" visibility="protected"
  28608. deprecated="not deprecated">
  28609. </method>
  28610. <method name="parseExecResult"
  28611. abstract="false" native="false" synchronized="false"
  28612. static="false" final="false" visibility="protected"
  28613. deprecated="not deprecated">
  28614. <param name="lines" type="java.io.BufferedReader"/>
  28615. <exception name="IOException" type="java.io.IOException"/>
  28616. </method>
  28617. <method name="getOutput" return="java.lang.String"
  28618. abstract="false" native="false" synchronized="false"
  28619. static="false" final="false" visibility="public"
  28620. deprecated="not deprecated">
  28621. <doc>
  28622. <![CDATA[Get the output of the shell command.]]>
  28623. </doc>
  28624. </method>
  28625. <method name="toString" return="java.lang.String"
  28626. abstract="false" native="false" synchronized="false"
  28627. static="false" final="false" visibility="public"
  28628. deprecated="not deprecated">
  28629. <doc>
  28630. <![CDATA[Returns the commands of this instance.
  28631. Arguments with spaces in are presented with quotes round; other
  28632. arguments are presented raw
  28633. @return a string representation of the object.]]>
  28634. </doc>
  28635. </method>
  28636. <doc>
  28637. <![CDATA[A simple shell command executor.
  28638. <code>ShellCommandExecutor</code>should be used in cases where the output
  28639. of the command needs no explicit parsing and where the command, working
  28640. directory and the environment remains unchanged. The output of the command
  28641. is stored as-is and is expected to be small.]]>
  28642. </doc>
  28643. </class>
  28644. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  28645. <!-- start class org.apache.hadoop.util.StringUtils -->
  28646. <class name="StringUtils" extends="java.lang.Object"
  28647. abstract="false"
  28648. static="false" final="false" visibility="public"
  28649. deprecated="not deprecated">
  28650. <constructor name="StringUtils"
  28651. static="false" final="false" visibility="public"
  28652. deprecated="not deprecated">
  28653. </constructor>
  28654. <method name="stringifyException" return="java.lang.String"
  28655. abstract="false" native="false" synchronized="false"
  28656. static="true" final="false" visibility="public"
  28657. deprecated="not deprecated">
  28658. <param name="e" type="java.lang.Throwable"/>
  28659. <doc>
  28660. <![CDATA[Make a string representation of the exception.
  28661. @param e The exception to stringify
  28662. @return A string with exception name and call stack.]]>
  28663. </doc>
  28664. </method>
  28665. <method name="simpleHostname" return="java.lang.String"
  28666. abstract="false" native="false" synchronized="false"
  28667. static="true" final="false" visibility="public"
  28668. deprecated="not deprecated">
  28669. <param name="fullHostname" type="java.lang.String"/>
  28670. <doc>
  28671. <![CDATA[Given a full hostname, return the word upto the first dot.
  28672. @param fullHostname the full hostname
  28673. @return the hostname to the first dot]]>
  28674. </doc>
  28675. </method>
  28676. <method name="humanReadableInt" return="java.lang.String"
  28677. abstract="false" native="false" synchronized="false"
  28678. static="true" final="false" visibility="public"
  28679. deprecated="not deprecated">
  28680. <param name="number" type="long"/>
  28681. <doc>
  28682. <![CDATA[Given an integer, return a string that is in an approximate, but human
  28683. readable format.
  28684. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  28685. @param number the number to format
  28686. @return a human readable form of the integer]]>
  28687. </doc>
  28688. </method>
  28689. <method name="formatPercent" return="java.lang.String"
  28690. abstract="false" native="false" synchronized="false"
  28691. static="true" final="false" visibility="public"
  28692. deprecated="not deprecated">
  28693. <param name="done" type="double"/>
  28694. <param name="digits" type="int"/>
  28695. <doc>
  28696. <![CDATA[Format a percentage for presentation to the user.
  28697. @param done the percentage to format (0.0 to 1.0)
  28698. @param digits the number of digits past the decimal point
  28699. @return a string representation of the percentage]]>
  28700. </doc>
  28701. </method>
  28702. <method name="arrayToString" return="java.lang.String"
  28703. abstract="false" native="false" synchronized="false"
  28704. static="true" final="false" visibility="public"
  28705. deprecated="not deprecated">
  28706. <param name="strs" type="java.lang.String[]"/>
  28707. <doc>
  28708. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  28709. @param strs Array of strings
  28710. @return Empty string if strs.length is 0, comma separated list of strings
  28711. otherwise]]>
  28712. </doc>
  28713. </method>
  28714. <method name="byteToHexString" return="java.lang.String"
  28715. abstract="false" native="false" synchronized="false"
  28716. static="true" final="false" visibility="public"
  28717. deprecated="not deprecated">
  28718. <param name="bytes" type="byte[]"/>
  28719. <param name="start" type="int"/>
  28720. <param name="end" type="int"/>
  28721. <doc>
  28722. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  28723. representation of the bytes
  28724. @param bytes
  28725. @param start start index, inclusively
  28726. @param end end index, exclusively
  28727. @return hex string representation of the byte array]]>
  28728. </doc>
  28729. </method>
  28730. <method name="byteToHexString" return="java.lang.String"
  28731. abstract="false" native="false" synchronized="false"
  28732. static="true" final="false" visibility="public"
  28733. deprecated="not deprecated">
  28734. <param name="bytes" type="byte[]"/>
  28735. <doc>
  28736. <![CDATA[Same as byteToHexString(bytes, 0, bytes.length).]]>
  28737. </doc>
  28738. </method>
  28739. <method name="hexStringToByte" return="byte[]"
  28740. abstract="false" native="false" synchronized="false"
  28741. static="true" final="false" visibility="public"
  28742. deprecated="not deprecated">
  28743. <param name="hex" type="java.lang.String"/>
  28744. <doc>
  28745. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  28746. string
  28747. @param hex the hex String array
  28748. @return a byte array that is a hex string representation of the given
  28749. string. The size of the byte array is therefore hex.length/2]]>
  28750. </doc>
  28751. </method>
  28752. <method name="uriToString" return="java.lang.String"
  28753. abstract="false" native="false" synchronized="false"
  28754. static="true" final="false" visibility="public"
  28755. deprecated="not deprecated">
  28756. <param name="uris" type="java.net.URI[]"/>
  28757. <doc>
  28758. <![CDATA[@param uris]]>
  28759. </doc>
  28760. </method>
  28761. <method name="stringToURI" return="java.net.URI[]"
  28762. abstract="false" native="false" synchronized="false"
  28763. static="true" final="false" visibility="public"
  28764. deprecated="not deprecated">
  28765. <param name="str" type="java.lang.String[]"/>
  28766. <doc>
  28767. <![CDATA[@param str]]>
  28768. </doc>
  28769. </method>
  28770. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  28771. abstract="false" native="false" synchronized="false"
  28772. static="true" final="false" visibility="public"
  28773. deprecated="not deprecated">
  28774. <param name="str" type="java.lang.String[]"/>
  28775. <doc>
  28776. <![CDATA[@param str]]>
  28777. </doc>
  28778. </method>
  28779. <method name="formatTimeDiff" return="java.lang.String"
  28780. abstract="false" native="false" synchronized="false"
  28781. static="true" final="false" visibility="public"
  28782. deprecated="not deprecated">
  28783. <param name="finishTime" type="long"/>
  28784. <param name="startTime" type="long"/>
  28785. <doc>
  28786. <![CDATA[Given a finish and start time in long milliseconds, returns a
  28787. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  28788. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  28789. @param finishTime finish time
  28790. @param startTime start time]]>
  28791. </doc>
  28792. </method>
  28793. <method name="formatTime" return="java.lang.String"
  28794. abstract="false" native="false" synchronized="false"
  28795. static="true" final="false" visibility="public"
  28796. deprecated="not deprecated">
  28797. <param name="timeDiff" type="long"/>
  28798. <doc>
  28799. <![CDATA[Given the time in long milliseconds, returns a
  28800. String in the format Xhrs, Ymins, Z sec.
  28801. @param timeDiff The time difference to format]]>
  28802. </doc>
  28803. </method>
  28804. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  28805. abstract="false" native="false" synchronized="false"
  28806. static="true" final="false" visibility="public"
  28807. deprecated="not deprecated">
  28808. <param name="dateFormat" type="java.text.DateFormat"/>
  28809. <param name="finishTime" type="long"/>
  28810. <param name="startTime" type="long"/>
  28811. <doc>
  28812. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  28813. as returned by formatTimeDiff().
  28814. If finish time is 0, empty string is returned, if start time is 0
  28815. then difference is not appended to return value.
  28816. @param dateFormat date format to use
  28817. @param finishTime fnish time
  28818. @param startTime start time
  28819. @return formatted value.]]>
  28820. </doc>
  28821. </method>
  28822. <method name="getStrings" return="java.lang.String[]"
  28823. abstract="false" native="false" synchronized="false"
  28824. static="true" final="false" visibility="public"
  28825. deprecated="not deprecated">
  28826. <param name="str" type="java.lang.String"/>
  28827. <doc>
  28828. <![CDATA[Returns an arraylist of strings.
  28829. @param str the comma seperated string values
  28830. @return the arraylist of the comma seperated string values]]>
  28831. </doc>
  28832. </method>
  28833. <method name="getStringCollection" return="java.util.Collection"
  28834. abstract="false" native="false" synchronized="false"
  28835. static="true" final="false" visibility="public"
  28836. deprecated="not deprecated">
  28837. <param name="str" type="java.lang.String"/>
  28838. <doc>
  28839. <![CDATA[Returns a collection of strings.
  28840. @param str comma seperated string values
  28841. @return an <code>ArrayList</code> of string values]]>
  28842. </doc>
  28843. </method>
  28844. <method name="split" return="java.lang.String[]"
  28845. abstract="false" native="false" synchronized="false"
  28846. static="true" final="false" visibility="public"
  28847. deprecated="not deprecated">
  28848. <param name="str" type="java.lang.String"/>
  28849. <doc>
  28850. <![CDATA[Split a string using the default separator
  28851. @param str a string that may have escaped separator
  28852. @return an array of strings]]>
  28853. </doc>
  28854. </method>
  28855. <method name="split" return="java.lang.String[]"
  28856. abstract="false" native="false" synchronized="false"
  28857. static="true" final="false" visibility="public"
  28858. deprecated="not deprecated">
  28859. <param name="str" type="java.lang.String"/>
  28860. <param name="escapeChar" type="char"/>
  28861. <param name="separator" type="char"/>
  28862. <doc>
  28863. <![CDATA[Split a string using the given separator
  28864. @param str a string that may have escaped separator
  28865. @param escapeChar a char that be used to escape the separator
  28866. @param separator a separator char
  28867. @return an array of strings]]>
  28868. </doc>
  28869. </method>
  28870. <method name="findNext" return="int"
  28871. abstract="false" native="false" synchronized="false"
  28872. static="true" final="false" visibility="public"
  28873. deprecated="not deprecated">
  28874. <param name="str" type="java.lang.String"/>
  28875. <param name="separator" type="char"/>
  28876. <param name="escapeChar" type="char"/>
  28877. <param name="start" type="int"/>
  28878. <param name="split" type="java.lang.StringBuilder"/>
  28879. <doc>
  28880. <![CDATA[Finds the first occurrence of the separator character ignoring the escaped
  28881. separators starting from the index. Note the substring between the index
  28882. and the position of the separator is passed.
  28883. @param str the source string
  28884. @param separator the character to find
  28885. @param escapeChar character used to escape
  28886. @param start from where to search
  28887. @param split used to pass back the extracted string]]>
  28888. </doc>
  28889. </method>
  28890. <method name="escapeString" return="java.lang.String"
  28891. abstract="false" native="false" synchronized="false"
  28892. static="true" final="false" visibility="public"
  28893. deprecated="not deprecated">
  28894. <param name="str" type="java.lang.String"/>
  28895. <doc>
  28896. <![CDATA[Escape commas in the string using the default escape char
  28897. @param str a string
  28898. @return an escaped string]]>
  28899. </doc>
  28900. </method>
  28901. <method name="escapeString" return="java.lang.String"
  28902. abstract="false" native="false" synchronized="false"
  28903. static="true" final="false" visibility="public"
  28904. deprecated="not deprecated">
  28905. <param name="str" type="java.lang.String"/>
  28906. <param name="escapeChar" type="char"/>
  28907. <param name="charToEscape" type="char"/>
  28908. <doc>
  28909. <![CDATA[Escape <code>charToEscape</code> in the string
  28910. with the escape char <code>escapeChar</code>
  28911. @param str string
  28912. @param escapeChar escape char
  28913. @param charToEscape the char to be escaped
  28914. @return an escaped string]]>
  28915. </doc>
  28916. </method>
  28917. <method name="escapeString" return="java.lang.String"
  28918. abstract="false" native="false" synchronized="false"
  28919. static="true" final="false" visibility="public"
  28920. deprecated="not deprecated">
  28921. <param name="str" type="java.lang.String"/>
  28922. <param name="escapeChar" type="char"/>
  28923. <param name="charsToEscape" type="char[]"/>
  28924. <doc>
  28925. <![CDATA[@param charsToEscape array of characters to be escaped]]>
  28926. </doc>
  28927. </method>
  28928. <method name="unEscapeString" return="java.lang.String"
  28929. abstract="false" native="false" synchronized="false"
  28930. static="true" final="false" visibility="public"
  28931. deprecated="not deprecated">
  28932. <param name="str" type="java.lang.String"/>
  28933. <doc>
  28934. <![CDATA[Unescape commas in the string using the default escape char
  28935. @param str a string
  28936. @return an unescaped string]]>
  28937. </doc>
  28938. </method>
  28939. <method name="unEscapeString" return="java.lang.String"
  28940. abstract="false" native="false" synchronized="false"
  28941. static="true" final="false" visibility="public"
  28942. deprecated="not deprecated">
  28943. <param name="str" type="java.lang.String"/>
  28944. <param name="escapeChar" type="char"/>
  28945. <param name="charToEscape" type="char"/>
  28946. <doc>
  28947. <![CDATA[Unescape <code>charToEscape</code> in the string
  28948. with the escape char <code>escapeChar</code>
  28949. @param str string
  28950. @param escapeChar escape char
  28951. @param charToEscape the escaped char
  28952. @return an unescaped string]]>
  28953. </doc>
  28954. </method>
  28955. <method name="unEscapeString" return="java.lang.String"
  28956. abstract="false" native="false" synchronized="false"
  28957. static="true" final="false" visibility="public"
  28958. deprecated="not deprecated">
  28959. <param name="str" type="java.lang.String"/>
  28960. <param name="escapeChar" type="char"/>
  28961. <param name="charsToEscape" type="char[]"/>
  28962. <doc>
  28963. <![CDATA[@param charsToEscape array of characters to unescape]]>
  28964. </doc>
  28965. </method>
  28966. <method name="getHostname" return="java.lang.String"
  28967. abstract="false" native="false" synchronized="false"
  28968. static="true" final="false" visibility="public"
  28969. deprecated="not deprecated">
  28970. <doc>
  28971. <![CDATA[Return hostname without throwing exception.
  28972. @return hostname]]>
  28973. </doc>
  28974. </method>
  28975. <method name="startupShutdownMessage"
  28976. abstract="false" native="false" synchronized="false"
  28977. static="true" final="false" visibility="public"
  28978. deprecated="not deprecated">
  28979. <param name="clazz" type="java.lang.Class"/>
  28980. <param name="args" type="java.lang.String[]"/>
  28981. <param name="LOG" type="org.apache.commons.logging.Log"/>
  28982. <doc>
  28983. <![CDATA[Print a log message for starting up and shutting down
  28984. @param clazz the class of the server
  28985. @param args arguments
  28986. @param LOG the target log object]]>
  28987. </doc>
  28988. </method>
  28989. <method name="escapeHTML" return="java.lang.String"
  28990. abstract="false" native="false" synchronized="false"
  28991. static="true" final="false" visibility="public"
  28992. deprecated="not deprecated">
  28993. <param name="string" type="java.lang.String"/>
  28994. <doc>
  28995. <![CDATA[Escapes HTML Special characters present in the string.
  28996. @param string
  28997. @return HTML Escaped String representation]]>
  28998. </doc>
  28999. </method>
  29000. <method name="byteDesc" return="java.lang.String"
  29001. abstract="false" native="false" synchronized="false"
  29002. static="true" final="false" visibility="public"
  29003. deprecated="not deprecated">
  29004. <param name="len" type="long"/>
  29005. <doc>
  29006. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  29007. </doc>
  29008. </method>
  29009. <method name="limitDecimalTo2" return="java.lang.String"
  29010. abstract="false" native="false" synchronized="true"
  29011. static="true" final="false" visibility="public"
  29012. deprecated="not deprecated">
  29013. <param name="d" type="double"/>
  29014. </method>
  29015. <field name="COMMA" type="char"
  29016. transient="false" volatile="false"
  29017. static="true" final="true" visibility="public"
  29018. deprecated="not deprecated">
  29019. </field>
  29020. <field name="COMMA_STR" type="java.lang.String"
  29021. transient="false" volatile="false"
  29022. static="true" final="true" visibility="public"
  29023. deprecated="not deprecated">
  29024. </field>
  29025. <field name="ESCAPE_CHAR" type="char"
  29026. transient="false" volatile="false"
  29027. static="true" final="true" visibility="public"
  29028. deprecated="not deprecated">
  29029. </field>
  29030. <doc>
  29031. <![CDATA[General string utils]]>
  29032. </doc>
  29033. </class>
  29034. <!-- end class org.apache.hadoop.util.StringUtils -->
  29035. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  29036. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  29037. abstract="false"
  29038. static="true" final="true" visibility="public"
  29039. deprecated="not deprecated">
  29040. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  29041. abstract="false" native="false" synchronized="false"
  29042. static="true" final="false" visibility="public"
  29043. deprecated="not deprecated">
  29044. </method>
  29045. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  29046. abstract="false" native="false" synchronized="false"
  29047. static="true" final="false" visibility="public"
  29048. deprecated="not deprecated">
  29049. <param name="name" type="java.lang.String"/>
  29050. </method>
  29051. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  29052. abstract="false" native="false" synchronized="false"
  29053. static="true" final="false" visibility="public"
  29054. deprecated="not deprecated">
  29055. <param name="symbol" type="char"/>
  29056. <doc>
  29057. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  29058. </doc>
  29059. </method>
  29060. <method name="string2long" return="long"
  29061. abstract="false" native="false" synchronized="false"
  29062. static="true" final="false" visibility="public"
  29063. deprecated="not deprecated">
  29064. <param name="s" type="java.lang.String"/>
  29065. <doc>
  29066. <![CDATA[Convert a string to long.
  29067. The input string is first be trimmed
  29068. and then it is parsed with traditional binary prefix.
  29069. For example,
  29070. "-1230k" will be converted to -1230 * 1024 = -1259520;
  29071. "891g" will be converted to 891 * 1024^3 = 956703965184;
  29072. @param s input string
  29073. @return a long value represented by the input string.]]>
  29074. </doc>
  29075. </method>
  29076. <field name="KILO" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  29077. transient="false" volatile="false"
  29078. static="true" final="true" visibility="public"
  29079. deprecated="not deprecated">
  29080. </field>
  29081. <field name="MEGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  29082. transient="false" volatile="false"
  29083. static="true" final="true" visibility="public"
  29084. deprecated="not deprecated">
  29085. </field>
  29086. <field name="GIGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  29087. transient="false" volatile="false"
  29088. static="true" final="true" visibility="public"
  29089. deprecated="not deprecated">
  29090. </field>
  29091. <field name="TERA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  29092. transient="false" volatile="false"
  29093. static="true" final="true" visibility="public"
  29094. deprecated="not deprecated">
  29095. </field>
  29096. <field name="PETA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  29097. transient="false" volatile="false"
  29098. static="true" final="true" visibility="public"
  29099. deprecated="not deprecated">
  29100. </field>
  29101. <field name="EXA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  29102. transient="false" volatile="false"
  29103. static="true" final="true" visibility="public"
  29104. deprecated="not deprecated">
  29105. </field>
  29106. <field name="value" type="long"
  29107. transient="false" volatile="false"
  29108. static="false" final="true" visibility="public"
  29109. deprecated="not deprecated">
  29110. </field>
  29111. <field name="symbol" type="char"
  29112. transient="false" volatile="false"
  29113. static="false" final="true" visibility="public"
  29114. deprecated="not deprecated">
  29115. </field>
  29116. <doc>
  29117. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  29118. which can be represented by a 64-bit integer.
  29119. TraditionalBinaryPrefix symbol are case insensitive.]]>
  29120. </doc>
  29121. </class>
  29122. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  29123. <!-- start interface org.apache.hadoop.util.Tool -->
  29124. <interface name="Tool" abstract="true"
  29125. static="false" final="false" visibility="public"
  29126. deprecated="not deprecated">
  29127. <implements name="org.apache.hadoop.conf.Configurable"/>
  29128. <method name="run" return="int"
  29129. abstract="false" native="false" synchronized="false"
  29130. static="false" final="false" visibility="public"
  29131. deprecated="not deprecated">
  29132. <param name="args" type="java.lang.String[]"/>
  29133. <exception name="Exception" type="java.lang.Exception"/>
  29134. <doc>
  29135. <![CDATA[Execute the command with the given arguments.
  29136. @param args command specific arguments.
  29137. @return exit code.
  29138. @throws Exception]]>
  29139. </doc>
  29140. </method>
  29141. <doc>
  29142. <![CDATA[A tool interface that supports handling of generic command-line options.
  29143. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  29144. The tool/application should delegate the handling of
  29145. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  29146. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  29147. and only handle its custom arguments.</p>
  29148. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  29149. <p><blockquote><pre>
  29150. public class MyApp extends Configured implements Tool {
  29151. public int run(String[] args) throws Exception {
  29152. // <code>Configuration</code> processed by <code>ToolRunner</code>
  29153. Configuration conf = getConf();
  29154. // Create a JobConf using the processed <code>conf</code>
  29155. JobConf job = new JobConf(conf, MyApp.class);
  29156. // Process custom command-line options
  29157. Path in = new Path(args[1]);
  29158. Path out = new Path(args[2]);
  29159. // Specify various job-specific parameters
  29160. job.setJobName("my-app");
  29161. job.setInputPath(in);
  29162. job.setOutputPath(out);
  29163. job.setMapperClass(MyApp.MyMapper.class);
  29164. job.setReducerClass(MyApp.MyReducer.class);
  29165. // Submit the job, then poll for progress until the job is complete
  29166. JobClient.runJob(job);
  29167. }
  29168. public static void main(String[] args) throws Exception {
  29169. // Let <code>ToolRunner</code> handle generic command-line options
  29170. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  29171. System.exit(res);
  29172. }
  29173. }
  29174. </pre></blockquote></p>
  29175. @see GenericOptionsParser
  29176. @see ToolRunner]]>
  29177. </doc>
  29178. </interface>
  29179. <!-- end interface org.apache.hadoop.util.Tool -->
  29180. <!-- start class org.apache.hadoop.util.ToolRunner -->
  29181. <class name="ToolRunner" extends="java.lang.Object"
  29182. abstract="false"
  29183. static="false" final="false" visibility="public"
  29184. deprecated="not deprecated">
  29185. <constructor name="ToolRunner"
  29186. static="false" final="false" visibility="public"
  29187. deprecated="not deprecated">
  29188. </constructor>
  29189. <method name="run" return="int"
  29190. abstract="false" native="false" synchronized="false"
  29191. static="true" final="false" visibility="public"
  29192. deprecated="not deprecated">
  29193. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29194. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  29195. <param name="args" type="java.lang.String[]"/>
  29196. <exception name="Exception" type="java.lang.Exception"/>
  29197. <doc>
  29198. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  29199. parsing with the given generic arguments. Uses the given
  29200. <code>Configuration</code>, or builds one if null.
  29201. Sets the <code>Tool</code>'s configuration with the possibly modified
  29202. version of the <code>conf</code>.
  29203. @param conf <code>Configuration</code> for the <code>Tool</code>.
  29204. @param tool <code>Tool</code> to run.
  29205. @param args command-line arguments to the tool.
  29206. @return exit code of the {@link Tool#run(String[])} method.]]>
  29207. </doc>
  29208. </method>
  29209. <method name="run" return="int"
  29210. abstract="false" native="false" synchronized="false"
  29211. static="true" final="false" visibility="public"
  29212. deprecated="not deprecated">
  29213. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  29214. <param name="args" type="java.lang.String[]"/>
  29215. <exception name="Exception" type="java.lang.Exception"/>
  29216. <doc>
  29217. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  29218. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  29219. @param tool <code>Tool</code> to run.
  29220. @param args command-line arguments to the tool.
  29221. @return exit code of the {@link Tool#run(String[])} method.]]>
  29222. </doc>
  29223. </method>
  29224. <method name="printGenericCommandUsage"
  29225. abstract="false" native="false" synchronized="false"
  29226. static="true" final="false" visibility="public"
  29227. deprecated="not deprecated">
  29228. <param name="out" type="java.io.PrintStream"/>
  29229. <doc>
  29230. <![CDATA[Prints generic command-line argurments and usage information.
  29231. @param out stream to write usage information to.]]>
  29232. </doc>
  29233. </method>
  29234. <doc>
  29235. <![CDATA[A utility to help run {@link Tool}s.
  29236. <p><code>ToolRunner</code> can be used to run classes implementing
  29237. <code>Tool</code> interface. It works in conjunction with
  29238. {@link GenericOptionsParser} to parse the
  29239. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  29240. generic hadoop command line arguments</a> and modifies the
  29241. <code>Configuration</code> of the <code>Tool</code>. The
  29242. application-specific options are passed along without being modified.
  29243. </p>
  29244. @see Tool
  29245. @see GenericOptionsParser]]>
  29246. </doc>
  29247. </class>
  29248. <!-- end class org.apache.hadoop.util.ToolRunner -->
  29249. <!-- start class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  29250. <class name="UTF8ByteArrayUtils" extends="java.lang.Object"
  29251. abstract="false"
  29252. static="false" final="false" visibility="public"
  29253. deprecated="not deprecated">
  29254. <constructor name="UTF8ByteArrayUtils"
  29255. static="false" final="false" visibility="public"
  29256. deprecated="not deprecated">
  29257. </constructor>
  29258. <method name="findByte" return="int"
  29259. abstract="false" native="false" synchronized="false"
  29260. static="true" final="false" visibility="public"
  29261. deprecated="not deprecated">
  29262. <param name="utf" type="byte[]"/>
  29263. <param name="start" type="int"/>
  29264. <param name="end" type="int"/>
  29265. <param name="b" type="byte"/>
  29266. <doc>
  29267. <![CDATA[Find the first occurrence of the given byte b in a UTF-8 encoded string
  29268. @param utf a byte array containing a UTF-8 encoded string
  29269. @param start starting offset
  29270. @param end ending position
  29271. @param b the byte to find
  29272. @return position that first byte occures otherwise -1]]>
  29273. </doc>
  29274. </method>
  29275. <method name="findBytes" return="int"
  29276. abstract="false" native="false" synchronized="false"
  29277. static="true" final="false" visibility="public"
  29278. deprecated="not deprecated">
  29279. <param name="utf" type="byte[]"/>
  29280. <param name="start" type="int"/>
  29281. <param name="end" type="int"/>
  29282. <param name="b" type="byte[]"/>
  29283. <doc>
  29284. <![CDATA[Find the first occurrence of the given bytes b in a UTF-8 encoded string
  29285. @param utf a byte array containing a UTF-8 encoded string
  29286. @param start starting offset
  29287. @param end ending position
  29288. @param b the bytes to find
  29289. @return position that first byte occures otherwise -1]]>
  29290. </doc>
  29291. </method>
  29292. <method name="findNthByte" return="int"
  29293. abstract="false" native="false" synchronized="false"
  29294. static="true" final="false" visibility="public"
  29295. deprecated="not deprecated">
  29296. <param name="utf" type="byte[]"/>
  29297. <param name="start" type="int"/>
  29298. <param name="length" type="int"/>
  29299. <param name="b" type="byte"/>
  29300. <param name="n" type="int"/>
  29301. <doc>
  29302. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  29303. @param utf a byte array containing a UTF-8 encoded string
  29304. @param start starting offset
  29305. @param length the length of byte array
  29306. @param b the byte to find
  29307. @param n the desired occurrence of the given byte
  29308. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  29309. </doc>
  29310. </method>
  29311. <method name="findNthByte" return="int"
  29312. abstract="false" native="false" synchronized="false"
  29313. static="true" final="false" visibility="public"
  29314. deprecated="not deprecated">
  29315. <param name="utf" type="byte[]"/>
  29316. <param name="b" type="byte"/>
  29317. <param name="n" type="int"/>
  29318. <doc>
  29319. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  29320. @param utf a byte array containing a UTF-8 encoded string
  29321. @param b the byte to find
  29322. @param n the desired occurrence of the given byte
  29323. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  29324. </doc>
  29325. </method>
  29326. </class>
  29327. <!-- end class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  29328. <!-- start class org.apache.hadoop.util.VersionInfo -->
  29329. <class name="VersionInfo" extends="java.lang.Object"
  29330. abstract="false"
  29331. static="false" final="false" visibility="public"
  29332. deprecated="not deprecated">
  29333. <constructor name="VersionInfo"
  29334. static="false" final="false" visibility="public"
  29335. deprecated="not deprecated">
  29336. </constructor>
  29337. <method name="getVersion" return="java.lang.String"
  29338. abstract="false" native="false" synchronized="false"
  29339. static="true" final="false" visibility="public"
  29340. deprecated="not deprecated">
  29341. <doc>
  29342. <![CDATA[Get the Hadoop version.
  29343. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  29344. </doc>
  29345. </method>
  29346. <method name="getRevision" return="java.lang.String"
  29347. abstract="false" native="false" synchronized="false"
  29348. static="true" final="false" visibility="public"
  29349. deprecated="not deprecated">
  29350. <doc>
  29351. <![CDATA[Get the subversion revision number for the root directory
  29352. @return the revision number, eg. "451451"]]>
  29353. </doc>
  29354. </method>
  29355. <method name="getDate" return="java.lang.String"
  29356. abstract="false" native="false" synchronized="false"
  29357. static="true" final="false" visibility="public"
  29358. deprecated="not deprecated">
  29359. <doc>
  29360. <![CDATA[The date that Hadoop was compiled.
  29361. @return the compilation date in unix date format]]>
  29362. </doc>
  29363. </method>
  29364. <method name="getUser" return="java.lang.String"
  29365. abstract="false" native="false" synchronized="false"
  29366. static="true" final="false" visibility="public"
  29367. deprecated="not deprecated">
  29368. <doc>
  29369. <![CDATA[The user that compiled Hadoop.
  29370. @return the username of the user]]>
  29371. </doc>
  29372. </method>
  29373. <method name="getUrl" return="java.lang.String"
  29374. abstract="false" native="false" synchronized="false"
  29375. static="true" final="false" visibility="public"
  29376. deprecated="not deprecated">
  29377. <doc>
  29378. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  29379. </doc>
  29380. </method>
  29381. <method name="getBuildVersion" return="java.lang.String"
  29382. abstract="false" native="false" synchronized="false"
  29383. static="true" final="false" visibility="public"
  29384. deprecated="not deprecated">
  29385. <doc>
  29386. <![CDATA[Returns the buildVersion which includes version,
  29387. revision, user and date.]]>
  29388. </doc>
  29389. </method>
  29390. <method name="main"
  29391. abstract="false" native="false" synchronized="false"
  29392. static="true" final="false" visibility="public"
  29393. deprecated="not deprecated">
  29394. <param name="args" type="java.lang.String[]"/>
  29395. </method>
  29396. <doc>
  29397. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  29398. information.]]>
  29399. </doc>
  29400. </class>
  29401. <!-- end class org.apache.hadoop.util.VersionInfo -->
  29402. <!-- start class org.apache.hadoop.util.XMLUtils -->
  29403. <class name="XMLUtils" extends="java.lang.Object"
  29404. abstract="false"
  29405. static="false" final="false" visibility="public"
  29406. deprecated="not deprecated">
  29407. <constructor name="XMLUtils"
  29408. static="false" final="false" visibility="public"
  29409. deprecated="not deprecated">
  29410. </constructor>
  29411. <method name="transform"
  29412. abstract="false" native="false" synchronized="false"
  29413. static="true" final="false" visibility="public"
  29414. deprecated="not deprecated">
  29415. <param name="styleSheet" type="java.io.InputStream"/>
  29416. <param name="xml" type="java.io.InputStream"/>
  29417. <param name="out" type="java.io.Writer"/>
  29418. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  29419. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  29420. <doc>
  29421. <![CDATA[Transform input xml given a stylesheet.
  29422. @param styleSheet the style-sheet
  29423. @param xml input xml data
  29424. @param out output
  29425. @throws TransformerConfigurationException
  29426. @throws TransformerException]]>
  29427. </doc>
  29428. </method>
  29429. <doc>
  29430. <![CDATA[General xml utilities.]]>
  29431. </doc>
  29432. </class>
  29433. <!-- end class org.apache.hadoop.util.XMLUtils -->
  29434. </package>
  29435. <package name="org.apache.hadoop.util.bloom">
  29436. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  29437. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  29438. abstract="false"
  29439. static="false" final="false" visibility="public"
  29440. deprecated="not deprecated">
  29441. <constructor name="BloomFilter"
  29442. static="false" final="false" visibility="public"
  29443. deprecated="not deprecated">
  29444. <doc>
  29445. <![CDATA[Default constructor - use with readFields]]>
  29446. </doc>
  29447. </constructor>
  29448. <constructor name="BloomFilter" type="int, int, int"
  29449. static="false" final="false" visibility="public"
  29450. deprecated="not deprecated">
  29451. <doc>
  29452. <![CDATA[Constructor
  29453. @param vectorSize The vector size of <i>this</i> filter.
  29454. @param nbHash The number of hash function to consider.
  29455. @param hashType type of the hashing function (see
  29456. {@link org.apache.hadoop.util.hash.Hash}).]]>
  29457. </doc>
  29458. </constructor>
  29459. <method name="add"
  29460. abstract="false" native="false" synchronized="false"
  29461. static="false" final="false" visibility="public"
  29462. deprecated="not deprecated">
  29463. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  29464. </method>
  29465. <method name="and"
  29466. abstract="false" native="false" synchronized="false"
  29467. static="false" final="false" visibility="public"
  29468. deprecated="not deprecated">
  29469. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  29470. </method>
  29471. <method name="membershipTest" return="boolean"
  29472. abstract="false" native="false" synchronized="false"
  29473. static="false" final="false" visibility="public"
  29474. deprecated="not deprecated">
  29475. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  29476. </method>
  29477. <method name="not"
  29478. abstract="false" native="false" synchronized="false"
  29479. static="false" final="false" visibility="public"
  29480. deprecated="not deprecated">
  29481. </method>
  29482. <method name="or"
  29483. abstract="false" native="false" synchronized="false"
  29484. static="false" final="false" visibility="public"
  29485. deprecated="not deprecated">
  29486. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  29487. </method>
  29488. <method name="xor"
  29489. abstract="false" native="false" synchronized="false"
  29490. static="false" final="false" visibility="public"
  29491. deprecated="not deprecated">
  29492. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  29493. </method>
  29494. <method name="toString" return="java.lang.String"
  29495. abstract="false" native="false" synchronized="false"
  29496. static="false" final="false" visibility="public"
  29497. deprecated="not deprecated">
  29498. </method>
  29499. <method name="getVectorSize" return="int"
  29500. abstract="false" native="false" synchronized="false"
  29501. static="false" final="false" visibility="public"
  29502. deprecated="not deprecated">
  29503. <doc>
  29504. <![CDATA[@return size of the the bloomfilter]]>
  29505. </doc>
  29506. </method>
  29507. <method name="write"
  29508. abstract="false" native="false" synchronized="false"
  29509. static="false" final="false" visibility="public"
  29510. deprecated="not deprecated">
  29511. <param name="out" type="java.io.DataOutput"/>
  29512. <exception name="IOException" type="java.io.IOException"/>
  29513. </method>
  29514. <method name="readFields"
  29515. abstract="false" native="false" synchronized="false"
  29516. static="false" final="false" visibility="public"
  29517. deprecated="not deprecated">
  29518. <param name="in" type="java.io.DataInput"/>
  29519. <exception name="IOException" type="java.io.IOException"/>
  29520. </method>
  29521. <doc>
  29522. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  29523. <p>
  29524. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  29525. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  29526. offers for the transmission of set membership information between networked hosts. A sender encodes
  29527. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  29528. representation. Computation and space costs for construction are linear in the number of elements.
  29529. The receiver uses the filter to test whether various elements are members of the set. Though the
  29530. filter will occasionally return a false positive, it will never return a false negative. When creating
  29531. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  29532. <p>
  29533. Originally created by
  29534. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  29535. @see Filter The general behavior of a filter
  29536. @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>]]>
  29537. </doc>
  29538. </class>
  29539. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  29540. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  29541. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  29542. abstract="false"
  29543. static="false" final="true" visibility="public"
  29544. deprecated="not deprecated">
  29545. <constructor name="CountingBloomFilter"
  29546. static="false" final="false" visibility="public"
  29547. deprecated="not deprecated">
  29548. <doc>
  29549. <![CDATA[Default constructor - use with readFields]]>
  29550. </doc>
  29551. </constructor>
  29552. <constructor name="CountingBloomFilter" type="int, int, int"
  29553. static="false" final="false" visibility="public"
  29554. deprecated="not deprecated">
  29555. <doc>
  29556. <![CDATA[Constructor
  29557. @param vectorSize The vector size of <i>this</i> filter.
  29558. @param nbHash The number of hash function to consider.
  29559. @param hashType type of the hashing function (see
  29560. {@link org.apache.hadoop.util.hash.Hash}).]]>
  29561. </doc>
  29562. </constructor>
  29563. <method name="add"
  29564. abstract="false" native="false" synchronized="false"
  29565. static="false" final="false" visibility="public"
  29566. deprecated="not deprecated">
  29567. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  29568. </method>
  29569. <method name="delete"
  29570. abstract="false" native="false" synchronized="false"
  29571. static="false" final="false" visibility="public"
  29572. deprecated="not deprecated">
  29573. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  29574. <doc>
  29575. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  29576. <p>
  29577. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  29578. @param key The key to remove.]]>
  29579. </doc>
  29580. </method>
  29581. <method name="and"
  29582. abstract="false" native="false" synchronized="false"
  29583. static="false" final="false" visibility="public"
  29584. deprecated="not deprecated">
  29585. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  29586. </method>
  29587. <method name="membershipTest" return="boolean"
  29588. abstract="false" native="false" synchronized="false"
  29589. static="false" final="false" visibility="public"
  29590. deprecated="not deprecated">
  29591. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  29592. </method>
  29593. <method name="approximateCount" return="int"
  29594. abstract="false" native="false" synchronized="false"
  29595. static="false" final="false" visibility="public"
  29596. deprecated="not deprecated">
  29597. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  29598. <doc>
  29599. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  29600. times the key was added to the filter. This allows the filter to be
  29601. used as an approximate <code>key -&gt; count</code> map.
  29602. <p>NOTE: due to the bucket size of this filter, inserting the same
  29603. key more than 15 times will cause an overflow at all filter positions
  29604. associated with this key, and it will significantly increase the error
  29605. rate for this and other keys. For this reason the filter can only be
  29606. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  29607. @param key key to be tested
  29608. @return 0 if the key is not present. Otherwise, a positive value v will
  29609. be returned such that <code>v == count</code> with probability equal to the
  29610. error rate of this filter, and <code>v &gt; count</code> otherwise.
  29611. Additionally, if the filter experienced an underflow as a result of
  29612. {@link #delete(Key)} operation, the return value may be lower than the
  29613. <code>count</code> with the probability of the false negative rate of such
  29614. filter.]]>
  29615. </doc>
  29616. </method>
  29617. <method name="not"
  29618. abstract="false" native="false" synchronized="false"
  29619. static="false" final="false" visibility="public"
  29620. deprecated="not deprecated">
  29621. </method>
  29622. <method name="or"
  29623. abstract="false" native="false" synchronized="false"
  29624. static="false" final="false" visibility="public"
  29625. deprecated="not deprecated">
  29626. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  29627. </method>
  29628. <method name="xor"
  29629. abstract="false" native="false" synchronized="false"
  29630. static="false" final="false" visibility="public"
  29631. deprecated="not deprecated">
  29632. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  29633. </method>
  29634. <method name="toString" return="java.lang.String"
  29635. abstract="false" native="false" synchronized="false"
  29636. static="false" final="false" visibility="public"
  29637. deprecated="not deprecated">
  29638. </method>
  29639. <method name="write"
  29640. abstract="false" native="false" synchronized="false"
  29641. static="false" final="false" visibility="public"
  29642. deprecated="not deprecated">
  29643. <param name="out" type="java.io.DataOutput"/>
  29644. <exception name="IOException" type="java.io.IOException"/>
  29645. </method>
  29646. <method name="readFields"
  29647. abstract="false" native="false" synchronized="false"
  29648. static="false" final="false" visibility="public"
  29649. deprecated="not deprecated">
  29650. <param name="in" type="java.io.DataInput"/>
  29651. <exception name="IOException" type="java.io.IOException"/>
  29652. </method>
  29653. <doc>
  29654. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  29655. 2000 paper.
  29656. <p>
  29657. A counting Bloom filter is an improvement to standard a Bloom filter as it
  29658. allows dynamic additions and deletions of set membership information. This
  29659. is achieved through the use of a counting vector instead of a bit vector.
  29660. <p>
  29661. Originally created by
  29662. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  29663. @see Filter The general behavior of a filter
  29664. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  29665. </doc>
  29666. </class>
  29667. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  29668. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  29669. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  29670. abstract="false"
  29671. static="false" final="false" visibility="public"
  29672. deprecated="not deprecated">
  29673. <constructor name="DynamicBloomFilter"
  29674. static="false" final="false" visibility="public"
  29675. deprecated="not deprecated">
  29676. <doc>
  29677. <![CDATA[Zero-args constructor for the serialization.]]>
  29678. </doc>
  29679. </constructor>
  29680. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  29681. static="false" final="false" visibility="public"
  29682. deprecated="not deprecated">
  29683. <doc>
  29684. <![CDATA[Constructor.
  29685. <p>
  29686. Builds an empty Dynamic Bloom filter.
  29687. @param vectorSize The number of bits in the vector.
  29688. @param nbHash The number of hash function to consider.
  29689. @param hashType type of the hashing function (see
  29690. {@link org.apache.hadoop.util.hash.Hash}).
  29691. @param nr The threshold for the maximum number of keys to record in a
  29692. dynamic Bloom filter row.]]>
  29693. </doc>
  29694. </constructor>
  29695. <method name="add"
  29696. abstract="false" native="false" synchronized="false"
  29697. static="false" final="false" visibility="public"
  29698. deprecated="not deprecated">
  29699. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  29700. </method>
  29701. <method name="and"
  29702. abstract="false" native="false" synchronized="false"
  29703. static="false" final="false" visibility="public"
  29704. deprecated="not deprecated">
  29705. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  29706. </method>
  29707. <method name="membershipTest" return="boolean"
  29708. abstract="false" native="false" synchronized="false"
  29709. static="false" final="false" visibility="public"
  29710. deprecated="not deprecated">
  29711. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  29712. </method>
  29713. <method name="not"
  29714. abstract="false" native="false" synchronized="false"
  29715. static="false" final="false" visibility="public"
  29716. deprecated="not deprecated">
  29717. </method>
  29718. <method name="or"
  29719. abstract="false" native="false" synchronized="false"
  29720. static="false" final="false" visibility="public"
  29721. deprecated="not deprecated">
  29722. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  29723. </method>
  29724. <method name="xor"
  29725. abstract="false" native="false" synchronized="false"
  29726. static="false" final="false" visibility="public"
  29727. deprecated="not deprecated">
  29728. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  29729. </method>
  29730. <method name="toString" return="java.lang.String"
  29731. abstract="false" native="false" synchronized="false"
  29732. static="false" final="false" visibility="public"
  29733. deprecated="not deprecated">
  29734. </method>
  29735. <method name="write"
  29736. abstract="false" native="false" synchronized="false"
  29737. static="false" final="false" visibility="public"
  29738. deprecated="not deprecated">
  29739. <param name="out" type="java.io.DataOutput"/>
  29740. <exception name="IOException" type="java.io.IOException"/>
  29741. </method>
  29742. <method name="readFields"
  29743. abstract="false" native="false" synchronized="false"
  29744. static="false" final="false" visibility="public"
  29745. deprecated="not deprecated">
  29746. <param name="in" type="java.io.DataInput"/>
  29747. <exception name="IOException" type="java.io.IOException"/>
  29748. </method>
  29749. <doc>
  29750. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  29751. <p>
  29752. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  29753. each of the <code>s</code> rows is a standard Bloom filter. The creation
  29754. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  29755. bit matrix, i.e., it is composed of a single standard Bloom filter.
  29756. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  29757. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  29758. the cardinality of the set <code>A</code> to record in the filter).
  29759. <p>
  29760. As the size of <code>A</code> grows during the execution of the application,
  29761. several keys must be inserted in the DBF. When inserting a key into the DBF,
  29762. one must first get an active Bloom filter in the matrix. A Bloom filter is
  29763. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  29764. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  29765. If an active Bloom filter is found, the key is inserted and
  29766. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  29767. is no active Bloom filter, a new one is created (i.e., a new row is added to
  29768. the matrix) according to the current size of <code>A</code> and the element
  29769. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  29770. this new Bloom filter is set to one. A given key is said to belong to the
  29771. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  29772. <p>
  29773. Originally created by
  29774. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  29775. @see Filter The general behavior of a filter
  29776. @see BloomFilter A Bloom filter
  29777. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  29778. </doc>
  29779. </class>
  29780. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  29781. <!-- start class org.apache.hadoop.util.bloom.Filter -->
  29782. <class name="Filter" extends="java.lang.Object"
  29783. abstract="true"
  29784. static="false" final="false" visibility="public"
  29785. deprecated="not deprecated">
  29786. <implements name="org.apache.hadoop.io.Writable"/>
  29787. <constructor name="Filter"
  29788. static="false" final="false" visibility="protected"
  29789. deprecated="not deprecated">
  29790. </constructor>
  29791. <constructor name="Filter" type="int, int, int"
  29792. static="false" final="false" visibility="protected"
  29793. deprecated="not deprecated">
  29794. <doc>
  29795. <![CDATA[Constructor.
  29796. @param vectorSize The vector size of <i>this</i> filter.
  29797. @param nbHash The number of hash functions to consider.
  29798. @param hashType type of the hashing function (see {@link Hash}).]]>
  29799. </doc>
  29800. </constructor>
  29801. <method name="add"
  29802. abstract="true" native="false" synchronized="false"
  29803. static="false" final="false" visibility="public"
  29804. deprecated="not deprecated">
  29805. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  29806. <doc>
  29807. <![CDATA[Adds a key to <i>this</i> filter.
  29808. @param key The key to add.]]>
  29809. </doc>
  29810. </method>
  29811. <method name="membershipTest" return="boolean"
  29812. abstract="true" native="false" synchronized="false"
  29813. static="false" final="false" visibility="public"
  29814. deprecated="not deprecated">
  29815. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  29816. <doc>
  29817. <![CDATA[Determines wether a specified key belongs to <i>this</i> filter.
  29818. @param key The key to test.
  29819. @return boolean True if the specified key belongs to <i>this</i> filter.
  29820. False otherwise.]]>
  29821. </doc>
  29822. </method>
  29823. <method name="and"
  29824. abstract="true" native="false" synchronized="false"
  29825. static="false" final="false" visibility="public"
  29826. deprecated="not deprecated">
  29827. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  29828. <doc>
  29829. <![CDATA[Peforms a logical AND between <i>this</i> filter and a specified filter.
  29830. <p>
  29831. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  29832. @param filter The filter to AND with.]]>
  29833. </doc>
  29834. </method>
  29835. <method name="or"
  29836. abstract="true" native="false" synchronized="false"
  29837. static="false" final="false" visibility="public"
  29838. deprecated="not deprecated">
  29839. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  29840. <doc>
  29841. <![CDATA[Peforms a logical OR between <i>this</i> filter and a specified filter.
  29842. <p>
  29843. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  29844. @param filter The filter to OR with.]]>
  29845. </doc>
  29846. </method>
  29847. <method name="xor"
  29848. abstract="true" native="false" synchronized="false"
  29849. static="false" final="false" visibility="public"
  29850. deprecated="not deprecated">
  29851. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  29852. <doc>
  29853. <![CDATA[Peforms a logical XOR between <i>this</i> filter and a specified filter.
  29854. <p>
  29855. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  29856. @param filter The filter to XOR with.]]>
  29857. </doc>
  29858. </method>
  29859. <method name="not"
  29860. abstract="true" native="false" synchronized="false"
  29861. static="false" final="false" visibility="public"
  29862. deprecated="not deprecated">
  29863. <doc>
  29864. <![CDATA[Performs a logical NOT on <i>this</i> filter.
  29865. <p>
  29866. The result is assigned to <i>this</i> filter.]]>
  29867. </doc>
  29868. </method>
  29869. <method name="add"
  29870. abstract="false" native="false" synchronized="false"
  29871. static="false" final="false" visibility="public"
  29872. deprecated="not deprecated">
  29873. <param name="keys" type="java.util.List"/>
  29874. <doc>
  29875. <![CDATA[Adds a list of keys to <i>this</i> filter.
  29876. @param keys The list of keys.]]>
  29877. </doc>
  29878. </method>
  29879. <method name="add"
  29880. abstract="false" native="false" synchronized="false"
  29881. static="false" final="false" visibility="public"
  29882. deprecated="not deprecated">
  29883. <param name="keys" type="java.util.Collection"/>
  29884. <doc>
  29885. <![CDATA[Adds a collection of keys to <i>this</i> filter.
  29886. @param keys The collection of keys.]]>
  29887. </doc>
  29888. </method>
  29889. <method name="add"
  29890. abstract="false" native="false" synchronized="false"
  29891. static="false" final="false" visibility="public"
  29892. deprecated="not deprecated">
  29893. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  29894. <doc>
  29895. <![CDATA[Adds an array of keys to <i>this</i> filter.
  29896. @param keys The array of keys.]]>
  29897. </doc>
  29898. </method>
  29899. <method name="write"
  29900. abstract="false" native="false" synchronized="false"
  29901. static="false" final="false" visibility="public"
  29902. deprecated="not deprecated">
  29903. <param name="out" type="java.io.DataOutput"/>
  29904. <exception name="IOException" type="java.io.IOException"/>
  29905. </method>
  29906. <method name="readFields"
  29907. abstract="false" native="false" synchronized="false"
  29908. static="false" final="false" visibility="public"
  29909. deprecated="not deprecated">
  29910. <param name="in" type="java.io.DataInput"/>
  29911. <exception name="IOException" type="java.io.IOException"/>
  29912. </method>
  29913. <field name="vectorSize" type="int"
  29914. transient="false" volatile="false"
  29915. static="false" final="false" visibility="protected"
  29916. deprecated="not deprecated">
  29917. <doc>
  29918. <![CDATA[The vector size of <i>this</i> filter.]]>
  29919. </doc>
  29920. </field>
  29921. <field name="hash" type="org.apache.hadoop.util.bloom.HashFunction"
  29922. transient="false" volatile="false"
  29923. static="false" final="false" visibility="protected"
  29924. deprecated="not deprecated">
  29925. <doc>
  29926. <![CDATA[The hash function used to map a key to several positions in the vector.]]>
  29927. </doc>
  29928. </field>
  29929. <field name="nbHash" type="int"
  29930. transient="false" volatile="false"
  29931. static="false" final="false" visibility="protected"
  29932. deprecated="not deprecated">
  29933. <doc>
  29934. <![CDATA[The number of hash function to consider.]]>
  29935. </doc>
  29936. </field>
  29937. <field name="hashType" type="int"
  29938. transient="false" volatile="false"
  29939. static="false" final="false" visibility="protected"
  29940. deprecated="not deprecated">
  29941. <doc>
  29942. <![CDATA[Type of hashing function to use.]]>
  29943. </doc>
  29944. </field>
  29945. <doc>
  29946. <![CDATA[Defines the general behavior of a filter.
  29947. <p>
  29948. A filter is a data structure which aims at offering a lossy summary of a set <code>A</code>. The
  29949. key idea is to map entries of <code>A</code> (also called <i>keys</i>) into several positions
  29950. in a vector through the use of several hash functions.
  29951. <p>
  29952. Typically, a filter will be implemented as a Bloom filter (or a Bloom filter extension).
  29953. <p>
  29954. It must be extended in order to define the real behavior.
  29955. @see Key The general behavior of a key
  29956. @see HashFunction A hash function]]>
  29957. </doc>
  29958. </class>
  29959. <!-- end class org.apache.hadoop.util.bloom.Filter -->
  29960. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  29961. <class name="HashFunction" extends="java.lang.Object"
  29962. abstract="false"
  29963. static="false" final="true" visibility="public"
  29964. deprecated="not deprecated">
  29965. <constructor name="HashFunction" type="int, int, int"
  29966. static="false" final="false" visibility="public"
  29967. deprecated="not deprecated">
  29968. <doc>
  29969. <![CDATA[Constructor.
  29970. <p>
  29971. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  29972. @param maxValue The maximum highest returned value.
  29973. @param nbHash The number of resulting hashed values.
  29974. @param hashType type of the hashing function (see {@link Hash}).]]>
  29975. </doc>
  29976. </constructor>
  29977. <method name="clear"
  29978. abstract="false" native="false" synchronized="false"
  29979. static="false" final="false" visibility="public"
  29980. deprecated="not deprecated">
  29981. <doc>
  29982. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  29983. </doc>
  29984. </method>
  29985. <method name="hash" return="int[]"
  29986. abstract="false" native="false" synchronized="false"
  29987. static="false" final="false" visibility="public"
  29988. deprecated="not deprecated">
  29989. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  29990. <doc>
  29991. <![CDATA[Hashes a specified key into several integers.
  29992. @param k The specified key.
  29993. @return The array of hashed values.]]>
  29994. </doc>
  29995. </method>
  29996. <doc>
  29997. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  29998. @see Key The general behavior of a key being stored in a filter
  29999. @see Filter The general behavior of a filter]]>
  30000. </doc>
  30001. </class>
  30002. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  30003. <!-- start class org.apache.hadoop.util.bloom.Key -->
  30004. <class name="Key" extends="java.lang.Object"
  30005. abstract="false"
  30006. static="false" final="false" visibility="public"
  30007. deprecated="not deprecated">
  30008. <implements name="org.apache.hadoop.io.WritableComparable"/>
  30009. <constructor name="Key"
  30010. static="false" final="false" visibility="public"
  30011. deprecated="not deprecated">
  30012. <doc>
  30013. <![CDATA[default constructor - use with readFields]]>
  30014. </doc>
  30015. </constructor>
  30016. <constructor name="Key" type="byte[]"
  30017. static="false" final="false" visibility="public"
  30018. deprecated="not deprecated">
  30019. <doc>
  30020. <![CDATA[Constructor.
  30021. <p>
  30022. Builds a key with a default weight.
  30023. @param value The byte value of <i>this</i> key.]]>
  30024. </doc>
  30025. </constructor>
  30026. <constructor name="Key" type="byte[], double"
  30027. static="false" final="false" visibility="public"
  30028. deprecated="not deprecated">
  30029. <doc>
  30030. <![CDATA[Constructor.
  30031. <p>
  30032. Builds a key with a specified weight.
  30033. @param value The value of <i>this</i> key.
  30034. @param weight The weight associated to <i>this</i> key.]]>
  30035. </doc>
  30036. </constructor>
  30037. <method name="set"
  30038. abstract="false" native="false" synchronized="false"
  30039. static="false" final="false" visibility="public"
  30040. deprecated="not deprecated">
  30041. <param name="value" type="byte[]"/>
  30042. <param name="weight" type="double"/>
  30043. <doc>
  30044. <![CDATA[@param value
  30045. @param weight]]>
  30046. </doc>
  30047. </method>
  30048. <method name="getBytes" return="byte[]"
  30049. abstract="false" native="false" synchronized="false"
  30050. static="false" final="false" visibility="public"
  30051. deprecated="not deprecated">
  30052. <doc>
  30053. <![CDATA[@return byte[] The value of <i>this</i> key.]]>
  30054. </doc>
  30055. </method>
  30056. <method name="getWeight" return="double"
  30057. abstract="false" native="false" synchronized="false"
  30058. static="false" final="false" visibility="public"
  30059. deprecated="not deprecated">
  30060. <doc>
  30061. <![CDATA[@return Returns the weight associated to <i>this</i> key.]]>
  30062. </doc>
  30063. </method>
  30064. <method name="incrementWeight"
  30065. abstract="false" native="false" synchronized="false"
  30066. static="false" final="false" visibility="public"
  30067. deprecated="not deprecated">
  30068. <param name="weight" type="double"/>
  30069. <doc>
  30070. <![CDATA[Increments the weight of <i>this</i> key with a specified value.
  30071. @param weight The increment.]]>
  30072. </doc>
  30073. </method>
  30074. <method name="incrementWeight"
  30075. abstract="false" native="false" synchronized="false"
  30076. static="false" final="false" visibility="public"
  30077. deprecated="not deprecated">
  30078. <doc>
  30079. <![CDATA[Increments the weight of <i>this</i> key by one.]]>
  30080. </doc>
  30081. </method>
  30082. <method name="equals" return="boolean"
  30083. abstract="false" native="false" synchronized="false"
  30084. static="false" final="false" visibility="public"
  30085. deprecated="not deprecated">
  30086. <param name="o" type="java.lang.Object"/>
  30087. </method>
  30088. <method name="hashCode" return="int"
  30089. abstract="false" native="false" synchronized="false"
  30090. static="false" final="false" visibility="public"
  30091. deprecated="not deprecated">
  30092. </method>
  30093. <method name="write"
  30094. abstract="false" native="false" synchronized="false"
  30095. static="false" final="false" visibility="public"
  30096. deprecated="not deprecated">
  30097. <param name="out" type="java.io.DataOutput"/>
  30098. <exception name="IOException" type="java.io.IOException"/>
  30099. </method>
  30100. <method name="readFields"
  30101. abstract="false" native="false" synchronized="false"
  30102. static="false" final="false" visibility="public"
  30103. deprecated="not deprecated">
  30104. <param name="in" type="java.io.DataInput"/>
  30105. <exception name="IOException" type="java.io.IOException"/>
  30106. </method>
  30107. <method name="compareTo" return="int"
  30108. abstract="false" native="false" synchronized="false"
  30109. static="false" final="false" visibility="public"
  30110. deprecated="not deprecated">
  30111. <param name="other" type="org.apache.hadoop.util.bloom.Key"/>
  30112. </method>
  30113. <doc>
  30114. <![CDATA[The general behavior of a key that must be stored in a filter.
  30115. @see Filter The general behavior of a filter]]>
  30116. </doc>
  30117. </class>
  30118. <!-- end class org.apache.hadoop.util.bloom.Key -->
  30119. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  30120. <interface name="RemoveScheme" abstract="true"
  30121. static="false" final="false" visibility="public"
  30122. deprecated="not deprecated">
  30123. <field name="RANDOM" type="short"
  30124. transient="false" volatile="false"
  30125. static="true" final="true" visibility="public"
  30126. deprecated="not deprecated">
  30127. <doc>
  30128. <![CDATA[Random selection.
  30129. <p>
  30130. The idea is to randomly select a bit to reset.]]>
  30131. </doc>
  30132. </field>
  30133. <field name="MINIMUM_FN" type="short"
  30134. transient="false" volatile="false"
  30135. static="true" final="true" visibility="public"
  30136. deprecated="not deprecated">
  30137. <doc>
  30138. <![CDATA[MinimumFN Selection.
  30139. <p>
  30140. The idea is to select the bit to reset that will generate the minimum
  30141. number of false negative.]]>
  30142. </doc>
  30143. </field>
  30144. <field name="MAXIMUM_FP" type="short"
  30145. transient="false" volatile="false"
  30146. static="true" final="true" visibility="public"
  30147. deprecated="not deprecated">
  30148. <doc>
  30149. <![CDATA[MaximumFP Selection.
  30150. <p>
  30151. The idea is to select the bit to reset that will remove the maximum number
  30152. of false positive.]]>
  30153. </doc>
  30154. </field>
  30155. <field name="RATIO" type="short"
  30156. transient="false" volatile="false"
  30157. static="true" final="true" visibility="public"
  30158. deprecated="not deprecated">
  30159. <doc>
  30160. <![CDATA[Ratio Selection.
  30161. <p>
  30162. The idea is to select the bit to reset that will, at the same time, remove
  30163. the maximum number of false positve while minimizing the amount of false
  30164. negative generated.]]>
  30165. </doc>
  30166. </field>
  30167. <doc>
  30168. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  30169. <p>
  30170. Originally created by
  30171. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  30172. </doc>
  30173. </interface>
  30174. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  30175. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  30176. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  30177. abstract="false"
  30178. static="false" final="true" visibility="public"
  30179. deprecated="not deprecated">
  30180. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  30181. <constructor name="RetouchedBloomFilter"
  30182. static="false" final="false" visibility="public"
  30183. deprecated="not deprecated">
  30184. <doc>
  30185. <![CDATA[Default constructor - use with readFields]]>
  30186. </doc>
  30187. </constructor>
  30188. <constructor name="RetouchedBloomFilter" type="int, int, int"
  30189. static="false" final="false" visibility="public"
  30190. deprecated="not deprecated">
  30191. <doc>
  30192. <![CDATA[Constructor
  30193. @param vectorSize The vector size of <i>this</i> filter.
  30194. @param nbHash The number of hash function to consider.
  30195. @param hashType type of the hashing function (see
  30196. {@link org.apache.hadoop.util.hash.Hash}).]]>
  30197. </doc>
  30198. </constructor>
  30199. <method name="add"
  30200. abstract="false" native="false" synchronized="false"
  30201. static="false" final="false" visibility="public"
  30202. deprecated="not deprecated">
  30203. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  30204. </method>
  30205. <method name="addFalsePositive"
  30206. abstract="false" native="false" synchronized="false"
  30207. static="false" final="false" visibility="public"
  30208. deprecated="not deprecated">
  30209. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  30210. <doc>
  30211. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  30212. <p>
  30213. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  30214. @param key The false positive key to add.]]>
  30215. </doc>
  30216. </method>
  30217. <method name="addFalsePositive"
  30218. abstract="false" native="false" synchronized="false"
  30219. static="false" final="false" visibility="public"
  30220. deprecated="not deprecated">
  30221. <param name="coll" type="java.util.Collection"/>
  30222. <doc>
  30223. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  30224. @param coll The collection of false positive.]]>
  30225. </doc>
  30226. </method>
  30227. <method name="addFalsePositive"
  30228. abstract="false" native="false" synchronized="false"
  30229. static="false" final="false" visibility="public"
  30230. deprecated="not deprecated">
  30231. <param name="keys" type="java.util.List"/>
  30232. <doc>
  30233. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  30234. @param keys The list of false positive.]]>
  30235. </doc>
  30236. </method>
  30237. <method name="addFalsePositive"
  30238. abstract="false" native="false" synchronized="false"
  30239. static="false" final="false" visibility="public"
  30240. deprecated="not deprecated">
  30241. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  30242. <doc>
  30243. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  30244. @param keys The array of false positive.]]>
  30245. </doc>
  30246. </method>
  30247. <method name="selectiveClearing"
  30248. abstract="false" native="false" synchronized="false"
  30249. static="false" final="false" visibility="public"
  30250. deprecated="not deprecated">
  30251. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  30252. <param name="scheme" type="short"/>
  30253. <doc>
  30254. <![CDATA[Performs the selective clearing for a given key.
  30255. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  30256. @param scheme The selective clearing scheme to apply.]]>
  30257. </doc>
  30258. </method>
  30259. <method name="write"
  30260. abstract="false" native="false" synchronized="false"
  30261. static="false" final="false" visibility="public"
  30262. deprecated="not deprecated">
  30263. <param name="out" type="java.io.DataOutput"/>
  30264. <exception name="IOException" type="java.io.IOException"/>
  30265. </method>
  30266. <method name="readFields"
  30267. abstract="false" native="false" synchronized="false"
  30268. static="false" final="false" visibility="public"
  30269. deprecated="not deprecated">
  30270. <param name="in" type="java.io.DataInput"/>
  30271. <exception name="IOException" type="java.io.IOException"/>
  30272. </method>
  30273. <doc>
  30274. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  30275. <p>
  30276. It allows the removal of selected false positives at the cost of introducing
  30277. random false negatives, and with the benefit of eliminating some random false
  30278. positives at the same time.
  30279. <p>
  30280. Originally created by
  30281. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  30282. @see Filter The general behavior of a filter
  30283. @see BloomFilter A Bloom filter
  30284. @see RemoveScheme The different selective clearing algorithms
  30285. @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>]]>
  30286. </doc>
  30287. </class>
  30288. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  30289. </package>
  30290. <package name="org.apache.hadoop.util.hash">
  30291. <!-- start class org.apache.hadoop.util.hash.Hash -->
  30292. <class name="Hash" extends="java.lang.Object"
  30293. abstract="true"
  30294. static="false" final="false" visibility="public"
  30295. deprecated="not deprecated">
  30296. <constructor name="Hash"
  30297. static="false" final="false" visibility="public"
  30298. deprecated="not deprecated">
  30299. </constructor>
  30300. <method name="parseHashType" return="int"
  30301. abstract="false" native="false" synchronized="false"
  30302. static="true" final="false" visibility="public"
  30303. deprecated="not deprecated">
  30304. <param name="name" type="java.lang.String"/>
  30305. <doc>
  30306. <![CDATA[This utility method converts String representation of hash function name
  30307. to a symbolic constant. Currently two function types are supported,
  30308. "jenkins" and "murmur".
  30309. @param name hash function name
  30310. @return one of the predefined constants]]>
  30311. </doc>
  30312. </method>
  30313. <method name="getHashType" return="int"
  30314. abstract="false" native="false" synchronized="false"
  30315. static="true" final="false" visibility="public"
  30316. deprecated="not deprecated">
  30317. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30318. <doc>
  30319. <![CDATA[This utility method converts the name of the configured
  30320. hash type to a symbolic constant.
  30321. @param conf configuration
  30322. @return one of the predefined constants]]>
  30323. </doc>
  30324. </method>
  30325. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  30326. abstract="false" native="false" synchronized="false"
  30327. static="true" final="false" visibility="public"
  30328. deprecated="not deprecated">
  30329. <param name="type" type="int"/>
  30330. <doc>
  30331. <![CDATA[Get a singleton instance of hash function of a given type.
  30332. @param type predefined hash type
  30333. @return hash function instance, or null if type is invalid]]>
  30334. </doc>
  30335. </method>
  30336. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  30337. abstract="false" native="false" synchronized="false"
  30338. static="true" final="false" visibility="public"
  30339. deprecated="not deprecated">
  30340. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30341. <doc>
  30342. <![CDATA[Get a singleton instance of hash function of a type
  30343. defined in the configuration.
  30344. @param conf current configuration
  30345. @return defined hash type, or null if type is invalid]]>
  30346. </doc>
  30347. </method>
  30348. <method name="hash" return="int"
  30349. abstract="false" native="false" synchronized="false"
  30350. static="false" final="false" visibility="public"
  30351. deprecated="not deprecated">
  30352. <param name="bytes" type="byte[]"/>
  30353. <doc>
  30354. <![CDATA[Calculate a hash using all bytes from the input argument, and
  30355. a seed of -1.
  30356. @param bytes input bytes
  30357. @return hash value]]>
  30358. </doc>
  30359. </method>
  30360. <method name="hash" return="int"
  30361. abstract="false" native="false" synchronized="false"
  30362. static="false" final="false" visibility="public"
  30363. deprecated="not deprecated">
  30364. <param name="bytes" type="byte[]"/>
  30365. <param name="initval" type="int"/>
  30366. <doc>
  30367. <![CDATA[Calculate a hash using all bytes from the input argument,
  30368. and a provided seed value.
  30369. @param bytes input bytes
  30370. @param initval seed value
  30371. @return hash value]]>
  30372. </doc>
  30373. </method>
  30374. <method name="hash" return="int"
  30375. abstract="true" native="false" synchronized="false"
  30376. static="false" final="false" visibility="public"
  30377. deprecated="not deprecated">
  30378. <param name="bytes" type="byte[]"/>
  30379. <param name="length" type="int"/>
  30380. <param name="initval" type="int"/>
  30381. <doc>
  30382. <![CDATA[Calculate a hash using bytes from 0 to <code>length</code>, and
  30383. the provided seed value
  30384. @param bytes input bytes
  30385. @param length length of the valid bytes to consider
  30386. @param initval seed value
  30387. @return hash value]]>
  30388. </doc>
  30389. </method>
  30390. <field name="INVALID_HASH" type="int"
  30391. transient="false" volatile="false"
  30392. static="true" final="true" visibility="public"
  30393. deprecated="not deprecated">
  30394. <doc>
  30395. <![CDATA[Constant to denote invalid hash type.]]>
  30396. </doc>
  30397. </field>
  30398. <field name="JENKINS_HASH" type="int"
  30399. transient="false" volatile="false"
  30400. static="true" final="true" visibility="public"
  30401. deprecated="not deprecated">
  30402. <doc>
  30403. <![CDATA[Constant to denote {@link JenkinsHash}.]]>
  30404. </doc>
  30405. </field>
  30406. <field name="MURMUR_HASH" type="int"
  30407. transient="false" volatile="false"
  30408. static="true" final="true" visibility="public"
  30409. deprecated="not deprecated">
  30410. <doc>
  30411. <![CDATA[Constant to denote {@link MurmurHash}.]]>
  30412. </doc>
  30413. </field>
  30414. <doc>
  30415. <![CDATA[This class represents a common API for hashing functions.]]>
  30416. </doc>
  30417. </class>
  30418. <!-- end class org.apache.hadoop.util.hash.Hash -->
  30419. <!-- start class org.apache.hadoop.util.hash.JenkinsHash -->
  30420. <class name="JenkinsHash" extends="org.apache.hadoop.util.hash.Hash"
  30421. abstract="false"
  30422. static="false" final="false" visibility="public"
  30423. deprecated="not deprecated">
  30424. <constructor name="JenkinsHash"
  30425. static="false" final="false" visibility="public"
  30426. deprecated="not deprecated">
  30427. </constructor>
  30428. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  30429. abstract="false" native="false" synchronized="false"
  30430. static="true" final="false" visibility="public"
  30431. deprecated="not deprecated">
  30432. </method>
  30433. <method name="hash" return="int"
  30434. abstract="false" native="false" synchronized="false"
  30435. static="false" final="false" visibility="public"
  30436. deprecated="not deprecated">
  30437. <param name="key" type="byte[]"/>
  30438. <param name="nbytes" type="int"/>
  30439. <param name="initval" type="int"/>
  30440. <doc>
  30441. <![CDATA[taken from hashlittle() -- hash a variable-length key into a 32-bit value
  30442. @param key the key (the unaligned variable-length array of bytes)
  30443. @param nbytes number of bytes to include in hash
  30444. @param initval can be any integer value
  30445. @return a 32-bit value. Every bit of the key affects every bit of the
  30446. return value. Two keys differing by one or two bits will have totally
  30447. different hash values.
  30448. <p>The best hash table sizes are powers of 2. There is no need to do mod
  30449. a prime (mod is sooo slow!). If you need less than 32 bits, use a bitmask.
  30450. For example, if you need only 10 bits, do
  30451. <code>h = (h & hashmask(10));</code>
  30452. In which case, the hash table should have hashsize(10) elements.
  30453. <p>If you are hashing n strings byte[][] k, do it like this:
  30454. for (int i = 0, h = 0; i < n; ++i) h = hash( k[i], h);
  30455. <p>By Bob Jenkins, 2006. bob_jenkins@burtleburtle.net. You may use this
  30456. code any way you wish, private, educational, or commercial. It's free.
  30457. <p>Use for hash table lookup, or anything where one collision in 2^^32 is
  30458. acceptable. Do NOT use for cryptographic purposes.]]>
  30459. </doc>
  30460. </method>
  30461. <method name="main"
  30462. abstract="false" native="false" synchronized="false"
  30463. static="true" final="false" visibility="public"
  30464. deprecated="not deprecated">
  30465. <param name="args" type="java.lang.String[]"/>
  30466. <exception name="IOException" type="java.io.IOException"/>
  30467. <doc>
  30468. <![CDATA[Compute the hash of the specified file
  30469. @param args name of file to compute hash of.
  30470. @throws IOException]]>
  30471. </doc>
  30472. </method>
  30473. <doc>
  30474. <![CDATA[Produces 32-bit hash for hash table lookup.
  30475. <pre>lookup3.c, by Bob Jenkins, May 2006, Public Domain.
  30476. You can use this free for any purpose. It's in the public domain.
  30477. It has no warranty.
  30478. </pre>
  30479. @see <a href="http://burtleburtle.net/bob/c/lookup3.c">lookup3.c</a>
  30480. @see <a href="http://www.ddj.com/184410284">Hash Functions (and how this
  30481. function compares to others such as CRC, MD?, etc</a>
  30482. @see <a href="http://burtleburtle.net/bob/hash/doobs.html">Has update on the
  30483. Dr. Dobbs Article</a>]]>
  30484. </doc>
  30485. </class>
  30486. <!-- end class org.apache.hadoop.util.hash.JenkinsHash -->
  30487. <!-- start class org.apache.hadoop.util.hash.MurmurHash -->
  30488. <class name="MurmurHash" extends="org.apache.hadoop.util.hash.Hash"
  30489. abstract="false"
  30490. static="false" final="false" visibility="public"
  30491. deprecated="not deprecated">
  30492. <constructor name="MurmurHash"
  30493. static="false" final="false" visibility="public"
  30494. deprecated="not deprecated">
  30495. </constructor>
  30496. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  30497. abstract="false" native="false" synchronized="false"
  30498. static="true" final="false" visibility="public"
  30499. deprecated="not deprecated">
  30500. </method>
  30501. <method name="hash" return="int"
  30502. abstract="false" native="false" synchronized="false"
  30503. static="false" final="false" visibility="public"
  30504. deprecated="not deprecated">
  30505. <param name="data" type="byte[]"/>
  30506. <param name="length" type="int"/>
  30507. <param name="seed" type="int"/>
  30508. </method>
  30509. <doc>
  30510. <![CDATA[This is a very fast, non-cryptographic hash suitable for general hash-based
  30511. lookup. See http://murmurhash.googlepages.com/ for more details.
  30512. <p>The C version of MurmurHash 2.0 found at that site was ported
  30513. to Java by Andrzej Bialecki (ab at getopt org).</p>]]>
  30514. </doc>
  30515. </class>
  30516. <!-- end class org.apache.hadoop.util.hash.MurmurHash -->
  30517. </package>
  30518. <package name="org.apache.hadoop.mapred">
  30519. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  30520. <class name="ClusterStatus" extends="java.lang.Object"
  30521. abstract="false"
  30522. static="false" final="false" visibility="public"
  30523. deprecated="not deprecated">
  30524. <implements name="org.apache.hadoop.io.Writable"/>
  30525. <method name="getTaskTrackers" return="int"
  30526. abstract="false" native="false" synchronized="false"
  30527. static="false" final="false" visibility="public"
  30528. deprecated="not deprecated">
  30529. <doc>
  30530. <![CDATA[Get the number of task trackers in the cluster.
  30531. @return the number of task trackers in the cluster.]]>
  30532. </doc>
  30533. </method>
  30534. <method name="getActiveTrackerNames" return="java.util.Collection"
  30535. abstract="false" native="false" synchronized="false"
  30536. static="false" final="false" visibility="public"
  30537. deprecated="not deprecated">
  30538. <doc>
  30539. <![CDATA[Get the names of task trackers in the cluster.
  30540. @return the active task trackers in the cluster.]]>
  30541. </doc>
  30542. </method>
  30543. <method name="getBlacklistedTrackerNames" return="java.util.Collection"
  30544. abstract="false" native="false" synchronized="false"
  30545. static="false" final="false" visibility="public"
  30546. deprecated="not deprecated">
  30547. <doc>
  30548. <![CDATA[Get the names of task trackers in the cluster.
  30549. @return the blacklisted task trackers in the cluster.]]>
  30550. </doc>
  30551. </method>
  30552. <method name="getBlacklistedTrackers" return="int"
  30553. abstract="false" native="false" synchronized="false"
  30554. static="false" final="false" visibility="public"
  30555. deprecated="not deprecated">
  30556. <doc>
  30557. <![CDATA[Get the number of blacklisted task trackers in the cluster.
  30558. @return the number of blacklisted task trackers in the cluster.]]>
  30559. </doc>
  30560. </method>
  30561. <method name="getTTExpiryInterval" return="long"
  30562. abstract="false" native="false" synchronized="false"
  30563. static="false" final="false" visibility="public"
  30564. deprecated="not deprecated">
  30565. <doc>
  30566. <![CDATA[Get the tasktracker expiry interval for the cluster
  30567. @return the expiry interval in msec]]>
  30568. </doc>
  30569. </method>
  30570. <method name="getMapTasks" return="int"
  30571. abstract="false" native="false" synchronized="false"
  30572. static="false" final="false" visibility="public"
  30573. deprecated="not deprecated">
  30574. <doc>
  30575. <![CDATA[Get the number of currently running map tasks in the cluster.
  30576. @return the number of currently running map tasks in the cluster.]]>
  30577. </doc>
  30578. </method>
  30579. <method name="getReduceTasks" return="int"
  30580. abstract="false" native="false" synchronized="false"
  30581. static="false" final="false" visibility="public"
  30582. deprecated="not deprecated">
  30583. <doc>
  30584. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  30585. @return the number of currently running reduce tasks in the cluster.]]>
  30586. </doc>
  30587. </method>
  30588. <method name="getMaxMapTasks" return="int"
  30589. abstract="false" native="false" synchronized="false"
  30590. static="false" final="false" visibility="public"
  30591. deprecated="not deprecated">
  30592. <doc>
  30593. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  30594. @return the maximum capacity for running map tasks in the cluster.]]>
  30595. </doc>
  30596. </method>
  30597. <method name="getMaxReduceTasks" return="int"
  30598. abstract="false" native="false" synchronized="false"
  30599. static="false" final="false" visibility="public"
  30600. deprecated="not deprecated">
  30601. <doc>
  30602. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  30603. @return the maximum capacity for running reduce tasks in the cluster.]]>
  30604. </doc>
  30605. </method>
  30606. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  30607. abstract="false" native="false" synchronized="false"
  30608. static="false" final="false" visibility="public"
  30609. deprecated="not deprecated">
  30610. <doc>
  30611. <![CDATA[Get the current state of the <code>JobTracker</code>,
  30612. as {@link JobTracker.State}
  30613. @return the current state of the <code>JobTracker</code>.]]>
  30614. </doc>
  30615. </method>
  30616. <method name="getUsedMemory" return="long"
  30617. abstract="false" native="false" synchronized="false"
  30618. static="false" final="false" visibility="public"
  30619. deprecated="not deprecated">
  30620. <doc>
  30621. <![CDATA[Get the total heap memory used by the <code>JobTracker</code>
  30622. @return the size of heap memory used by the <code>JobTracker</code>]]>
  30623. </doc>
  30624. </method>
  30625. <method name="getMaxMemory" return="long"
  30626. abstract="false" native="false" synchronized="false"
  30627. static="false" final="false" visibility="public"
  30628. deprecated="not deprecated">
  30629. <doc>
  30630. <![CDATA[Get the maximum configured heap memory that can be used by the <code>JobTracker</code>
  30631. @return the configured size of max heap memory that can be used by the <code>JobTracker</code>]]>
  30632. </doc>
  30633. </method>
  30634. <method name="write"
  30635. abstract="false" native="false" synchronized="false"
  30636. static="false" final="false" visibility="public"
  30637. deprecated="not deprecated">
  30638. <param name="out" type="java.io.DataOutput"/>
  30639. <exception name="IOException" type="java.io.IOException"/>
  30640. </method>
  30641. <method name="readFields"
  30642. abstract="false" native="false" synchronized="false"
  30643. static="false" final="false" visibility="public"
  30644. deprecated="not deprecated">
  30645. <param name="in" type="java.io.DataInput"/>
  30646. <exception name="IOException" type="java.io.IOException"/>
  30647. </method>
  30648. <doc>
  30649. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  30650. <p><code>ClusterStatus</code> provides clients with information such as:
  30651. <ol>
  30652. <li>
  30653. Size of the cluster.
  30654. </li>
  30655. <li>
  30656. Name of the trackers.
  30657. </li>
  30658. <li>
  30659. Task capacity of the cluster.
  30660. </li>
  30661. <li>
  30662. The number of currently running map & reduce tasks.
  30663. </li>
  30664. <li>
  30665. State of the <code>JobTracker</code>.
  30666. </li>
  30667. </ol></p>
  30668. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  30669. {@link JobClient#getClusterStatus()}.</p>
  30670. @see JobClient]]>
  30671. </doc>
  30672. </class>
  30673. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  30674. <!-- start class org.apache.hadoop.mapred.Counters -->
  30675. <class name="Counters" extends="java.lang.Object"
  30676. abstract="false"
  30677. static="false" final="false" visibility="public"
  30678. deprecated="Use {@link org.apache.hadoop.mapreduce.Counters} instead.">
  30679. <implements name="org.apache.hadoop.io.Writable"/>
  30680. <implements name="java.lang.Iterable"/>
  30681. <constructor name="Counters"
  30682. static="false" final="false" visibility="public"
  30683. deprecated="not deprecated">
  30684. </constructor>
  30685. <method name="getGroupNames" return="java.util.Collection"
  30686. abstract="false" native="false" synchronized="true"
  30687. static="false" final="false" visibility="public"
  30688. deprecated="not deprecated">
  30689. <doc>
  30690. <![CDATA[Returns the names of all counter classes.
  30691. @return Set of counter names.]]>
  30692. </doc>
  30693. </method>
  30694. <method name="iterator" return="java.util.Iterator"
  30695. abstract="false" native="false" synchronized="true"
  30696. static="false" final="false" visibility="public"
  30697. deprecated="not deprecated">
  30698. </method>
  30699. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  30700. abstract="false" native="false" synchronized="true"
  30701. static="false" final="false" visibility="public"
  30702. deprecated="not deprecated">
  30703. <param name="groupName" type="java.lang.String"/>
  30704. <doc>
  30705. <![CDATA[Returns the named counter group, or an empty group if there is none
  30706. with the specified name.]]>
  30707. </doc>
  30708. </method>
  30709. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  30710. abstract="false" native="false" synchronized="true"
  30711. static="false" final="false" visibility="public"
  30712. deprecated="not deprecated">
  30713. <param name="key" type="java.lang.Enum"/>
  30714. <doc>
  30715. <![CDATA[Find the counter for the given enum. The same enum will always return the
  30716. same counter.
  30717. @param key the counter key
  30718. @return the matching counter object]]>
  30719. </doc>
  30720. </method>
  30721. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  30722. abstract="false" native="false" synchronized="true"
  30723. static="false" final="false" visibility="public"
  30724. deprecated="not deprecated">
  30725. <param name="group" type="java.lang.String"/>
  30726. <param name="name" type="java.lang.String"/>
  30727. <doc>
  30728. <![CDATA[Find a counter given the group and the name.
  30729. @param group the name of the group
  30730. @param name the internal name of the counter
  30731. @return the counter for that name]]>
  30732. </doc>
  30733. </method>
  30734. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  30735. abstract="false" native="false" synchronized="true"
  30736. static="false" final="false" visibility="public"
  30737. deprecated="deprecated, no comment">
  30738. <param name="group" type="java.lang.String"/>
  30739. <param name="id" type="int"/>
  30740. <param name="name" type="java.lang.String"/>
  30741. <doc>
  30742. <![CDATA[Find a counter by using strings
  30743. @param group the name of the group
  30744. @param id the id of the counter within the group (0 to N-1)
  30745. @param name the internal name of the counter
  30746. @return the counter for that name
  30747. @deprecated]]>
  30748. </doc>
  30749. </method>
  30750. <method name="incrCounter"
  30751. abstract="false" native="false" synchronized="true"
  30752. static="false" final="false" visibility="public"
  30753. deprecated="not deprecated">
  30754. <param name="key" type="java.lang.Enum"/>
  30755. <param name="amount" type="long"/>
  30756. <doc>
  30757. <![CDATA[Increments the specified counter by the specified amount, creating it if
  30758. it didn't already exist.
  30759. @param key identifies a counter
  30760. @param amount amount by which counter is to be incremented]]>
  30761. </doc>
  30762. </method>
  30763. <method name="incrCounter"
  30764. abstract="false" native="false" synchronized="true"
  30765. static="false" final="false" visibility="public"
  30766. deprecated="not deprecated">
  30767. <param name="group" type="java.lang.String"/>
  30768. <param name="counter" type="java.lang.String"/>
  30769. <param name="amount" type="long"/>
  30770. <doc>
  30771. <![CDATA[Increments the specified counter by the specified amount, creating it if
  30772. it didn't already exist.
  30773. @param group the name of the group
  30774. @param counter the internal name of the counter
  30775. @param amount amount by which counter is to be incremented]]>
  30776. </doc>
  30777. </method>
  30778. <method name="getCounter" return="long"
  30779. abstract="false" native="false" synchronized="true"
  30780. static="false" final="false" visibility="public"
  30781. deprecated="not deprecated">
  30782. <param name="key" type="java.lang.Enum"/>
  30783. <doc>
  30784. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  30785. does not exist.]]>
  30786. </doc>
  30787. </method>
  30788. <method name="incrAllCounters"
  30789. abstract="false" native="false" synchronized="true"
  30790. static="false" final="false" visibility="public"
  30791. deprecated="not deprecated">
  30792. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  30793. <doc>
  30794. <![CDATA[Increments multiple counters by their amounts in another Counters
  30795. instance.
  30796. @param other the other Counters instance]]>
  30797. </doc>
  30798. </method>
  30799. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  30800. abstract="false" native="false" synchronized="false"
  30801. static="true" final="false" visibility="public"
  30802. deprecated="not deprecated">
  30803. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  30804. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  30805. <doc>
  30806. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  30807. </doc>
  30808. </method>
  30809. <method name="size" return="int"
  30810. abstract="false" native="false" synchronized="true"
  30811. static="false" final="false" visibility="public"
  30812. deprecated="not deprecated">
  30813. <doc>
  30814. <![CDATA[Returns the total number of counters, by summing the number of counters
  30815. in each group.]]>
  30816. </doc>
  30817. </method>
  30818. <method name="write"
  30819. abstract="false" native="false" synchronized="true"
  30820. static="false" final="false" visibility="public"
  30821. deprecated="not deprecated">
  30822. <param name="out" type="java.io.DataOutput"/>
  30823. <exception name="IOException" type="java.io.IOException"/>
  30824. <doc>
  30825. <![CDATA[Write the set of groups.
  30826. The external format is:
  30827. #groups (groupName group)*
  30828. i.e. the number of groups followed by 0 or more groups, where each
  30829. group is of the form:
  30830. groupDisplayName #counters (false | true counter)*
  30831. where each counter is of the form:
  30832. name (false | true displayName) value]]>
  30833. </doc>
  30834. </method>
  30835. <method name="readFields"
  30836. abstract="false" native="false" synchronized="true"
  30837. static="false" final="false" visibility="public"
  30838. deprecated="not deprecated">
  30839. <param name="in" type="java.io.DataInput"/>
  30840. <exception name="IOException" type="java.io.IOException"/>
  30841. <doc>
  30842. <![CDATA[Read a set of groups.]]>
  30843. </doc>
  30844. </method>
  30845. <method name="log"
  30846. abstract="false" native="false" synchronized="false"
  30847. static="false" final="false" visibility="public"
  30848. deprecated="not deprecated">
  30849. <param name="log" type="org.apache.commons.logging.Log"/>
  30850. <doc>
  30851. <![CDATA[Logs the current counter values.
  30852. @param log The log to use.]]>
  30853. </doc>
  30854. </method>
  30855. <method name="toString" return="java.lang.String"
  30856. abstract="false" native="false" synchronized="true"
  30857. static="false" final="false" visibility="public"
  30858. deprecated="not deprecated">
  30859. <doc>
  30860. <![CDATA[Return textual representation of the counter values.]]>
  30861. </doc>
  30862. </method>
  30863. <method name="makeCompactString" return="java.lang.String"
  30864. abstract="false" native="false" synchronized="true"
  30865. static="false" final="false" visibility="public"
  30866. deprecated="not deprecated">
  30867. <doc>
  30868. <![CDATA[Convert a counters object into a single line that is easy to parse.
  30869. @return the string with "name=value" for each counter and separated by ","]]>
  30870. </doc>
  30871. </method>
  30872. <method name="makeEscapedCompactString" return="java.lang.String"
  30873. abstract="false" native="false" synchronized="true"
  30874. static="false" final="false" visibility="public"
  30875. deprecated="not deprecated">
  30876. <doc>
  30877. <![CDATA[Represent the counter in a textual format that can be converted back to
  30878. its object form
  30879. @return the string in the following format
  30880. {(groupname)(group-displayname)[(countername)(displayname)(value)][][]}{}{}]]>
  30881. </doc>
  30882. </method>
  30883. <method name="fromEscapedCompactString" return="org.apache.hadoop.mapred.Counters"
  30884. abstract="false" native="false" synchronized="false"
  30885. static="true" final="false" visibility="public"
  30886. deprecated="not deprecated">
  30887. <param name="compactString" type="java.lang.String"/>
  30888. <exception name="ParseException" type="java.text.ParseException"/>
  30889. <doc>
  30890. <![CDATA[Convert a stringified counter representation into a counter object. Note
  30891. that the counter can be recovered if its stringified using
  30892. {@link #makeEscapedCompactString()}.
  30893. @return a Counter]]>
  30894. </doc>
  30895. </method>
  30896. <method name="hashCode" return="int"
  30897. abstract="false" native="false" synchronized="true"
  30898. static="false" final="false" visibility="public"
  30899. deprecated="not deprecated">
  30900. </method>
  30901. <method name="equals" return="boolean"
  30902. abstract="false" native="false" synchronized="true"
  30903. static="false" final="false" visibility="public"
  30904. deprecated="not deprecated">
  30905. <param name="obj" type="java.lang.Object"/>
  30906. </method>
  30907. <doc>
  30908. <![CDATA[A set of named counters.
  30909. <p><code>Counters</code> represent global counters, defined either by the
  30910. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  30911. any {@link Enum} type.</p>
  30912. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  30913. counters from a particular <code>Enum</code> class.
  30914. @deprecated Use {@link org.apache.hadoop.mapreduce.Counters} instead.]]>
  30915. </doc>
  30916. </class>
  30917. <!-- end class org.apache.hadoop.mapred.Counters -->
  30918. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  30919. <class name="Counters.Counter" extends="org.apache.hadoop.mapreduce.Counter"
  30920. abstract="false"
  30921. static="true" final="false" visibility="public"
  30922. deprecated="not deprecated">
  30923. <method name="setDisplayName"
  30924. abstract="false" native="false" synchronized="false"
  30925. static="false" final="false" visibility="public"
  30926. deprecated="not deprecated">
  30927. <param name="newName" type="java.lang.String"/>
  30928. </method>
  30929. <method name="makeEscapedCompactString" return="java.lang.String"
  30930. abstract="false" native="false" synchronized="true"
  30931. static="false" final="false" visibility="public"
  30932. deprecated="not deprecated">
  30933. <doc>
  30934. <![CDATA[Returns the compact stringified version of the counter in the format
  30935. [(actual-name)(display-name)(value)]]]>
  30936. </doc>
  30937. </method>
  30938. <method name="getCounter" return="long"
  30939. abstract="false" native="false" synchronized="true"
  30940. static="false" final="false" visibility="public"
  30941. deprecated="not deprecated">
  30942. <doc>
  30943. <![CDATA[What is the current value of this counter?
  30944. @return the current value]]>
  30945. </doc>
  30946. </method>
  30947. <doc>
  30948. <![CDATA[A counter record, comprising its name and value.]]>
  30949. </doc>
  30950. </class>
  30951. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  30952. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  30953. <class name="Counters.Group" extends="java.lang.Object"
  30954. abstract="false"
  30955. static="true" final="false" visibility="public"
  30956. deprecated="not deprecated">
  30957. <implements name="org.apache.hadoop.io.Writable"/>
  30958. <implements name="java.lang.Iterable"/>
  30959. <method name="getName" return="java.lang.String"
  30960. abstract="false" native="false" synchronized="false"
  30961. static="false" final="false" visibility="public"
  30962. deprecated="not deprecated">
  30963. <doc>
  30964. <![CDATA[Returns raw name of the group. This is the name of the enum class
  30965. for this group of counters.]]>
  30966. </doc>
  30967. </method>
  30968. <method name="getDisplayName" return="java.lang.String"
  30969. abstract="false" native="false" synchronized="false"
  30970. static="false" final="false" visibility="public"
  30971. deprecated="not deprecated">
  30972. <doc>
  30973. <![CDATA[Returns localized name of the group. This is the same as getName() by
  30974. default, but different if an appropriate ResourceBundle is found.]]>
  30975. </doc>
  30976. </method>
  30977. <method name="setDisplayName"
  30978. abstract="false" native="false" synchronized="false"
  30979. static="false" final="false" visibility="public"
  30980. deprecated="not deprecated">
  30981. <param name="displayName" type="java.lang.String"/>
  30982. <doc>
  30983. <![CDATA[Set the display name]]>
  30984. </doc>
  30985. </method>
  30986. <method name="makeEscapedCompactString" return="java.lang.String"
  30987. abstract="false" native="false" synchronized="false"
  30988. static="false" final="false" visibility="public"
  30989. deprecated="not deprecated">
  30990. <doc>
  30991. <![CDATA[Returns the compact stringified version of the group in the format
  30992. {(actual-name)(display-name)(value)[][][]} where [] are compact strings for the
  30993. counters within.]]>
  30994. </doc>
  30995. </method>
  30996. <method name="hashCode" return="int"
  30997. abstract="false" native="false" synchronized="false"
  30998. static="false" final="false" visibility="public"
  30999. deprecated="not deprecated">
  31000. </method>
  31001. <method name="equals" return="boolean"
  31002. abstract="false" native="false" synchronized="true"
  31003. static="false" final="false" visibility="public"
  31004. deprecated="not deprecated">
  31005. <param name="obj" type="java.lang.Object"/>
  31006. <doc>
  31007. <![CDATA[Checks for (content) equality of Groups]]>
  31008. </doc>
  31009. </method>
  31010. <method name="getCounter" return="long"
  31011. abstract="false" native="false" synchronized="true"
  31012. static="false" final="false" visibility="public"
  31013. deprecated="not deprecated">
  31014. <param name="counterName" type="java.lang.String"/>
  31015. <doc>
  31016. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  31017. not exist.]]>
  31018. </doc>
  31019. </method>
  31020. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  31021. abstract="false" native="false" synchronized="true"
  31022. static="false" final="false" visibility="public"
  31023. deprecated="use {@link #getCounter(String)} instead">
  31024. <param name="id" type="int"/>
  31025. <param name="name" type="java.lang.String"/>
  31026. <doc>
  31027. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  31028. @param id the numeric id of the counter within the group
  31029. @param name the internal counter name
  31030. @return the counter
  31031. @deprecated use {@link #getCounter(String)} instead]]>
  31032. </doc>
  31033. </method>
  31034. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  31035. abstract="false" native="false" synchronized="true"
  31036. static="false" final="false" visibility="public"
  31037. deprecated="not deprecated">
  31038. <param name="name" type="java.lang.String"/>
  31039. <doc>
  31040. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  31041. @param name the internal counter name
  31042. @return the counter]]>
  31043. </doc>
  31044. </method>
  31045. <method name="size" return="int"
  31046. abstract="false" native="false" synchronized="true"
  31047. static="false" final="false" visibility="public"
  31048. deprecated="not deprecated">
  31049. <doc>
  31050. <![CDATA[Returns the number of counters in this group.]]>
  31051. </doc>
  31052. </method>
  31053. <method name="write"
  31054. abstract="false" native="false" synchronized="true"
  31055. static="false" final="false" visibility="public"
  31056. deprecated="not deprecated">
  31057. <param name="out" type="java.io.DataOutput"/>
  31058. <exception name="IOException" type="java.io.IOException"/>
  31059. </method>
  31060. <method name="readFields"
  31061. abstract="false" native="false" synchronized="true"
  31062. static="false" final="false" visibility="public"
  31063. deprecated="not deprecated">
  31064. <param name="in" type="java.io.DataInput"/>
  31065. <exception name="IOException" type="java.io.IOException"/>
  31066. </method>
  31067. <method name="iterator" return="java.util.Iterator"
  31068. abstract="false" native="false" synchronized="true"
  31069. static="false" final="false" visibility="public"
  31070. deprecated="not deprecated">
  31071. </method>
  31072. <doc>
  31073. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  31074. counter {@link Enum} class.
  31075. <p><code>Group</code>handles localization of the class name and the
  31076. counter names.</p>]]>
  31077. </doc>
  31078. </class>
  31079. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  31080. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  31081. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  31082. abstract="false"
  31083. static="false" final="false" visibility="public"
  31084. deprecated="not deprecated">
  31085. <constructor name="DefaultJobHistoryParser"
  31086. static="false" final="false" visibility="public"
  31087. deprecated="not deprecated">
  31088. </constructor>
  31089. <method name="parseJobTasks"
  31090. abstract="false" native="false" synchronized="false"
  31091. static="true" final="false" visibility="public"
  31092. deprecated="not deprecated">
  31093. <param name="jobHistoryFile" type="java.lang.String"/>
  31094. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  31095. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  31096. <exception name="IOException" type="java.io.IOException"/>
  31097. <doc>
  31098. <![CDATA[Populates a JobInfo object from the job's history log file.
  31099. @param jobHistoryFile history file for this job.
  31100. @param job a precreated JobInfo object, should be non-null.
  31101. @param fs FileSystem where historyFile is present.
  31102. @throws IOException]]>
  31103. </doc>
  31104. </method>
  31105. <doc>
  31106. <![CDATA[Default parser for job history files. It creates object model from
  31107. job history file.]]>
  31108. </doc>
  31109. </class>
  31110. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  31111. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  31112. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  31113. abstract="false"
  31114. static="false" final="false" visibility="public"
  31115. deprecated="not deprecated">
  31116. <constructor name="FileAlreadyExistsException"
  31117. static="false" final="false" visibility="public"
  31118. deprecated="not deprecated">
  31119. </constructor>
  31120. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  31121. static="false" final="false" visibility="public"
  31122. deprecated="not deprecated">
  31123. </constructor>
  31124. <doc>
  31125. <![CDATA[Used when target file already exists for any operation and
  31126. is not configured to be overwritten.]]>
  31127. </doc>
  31128. </class>
  31129. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  31130. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  31131. <class name="FileInputFormat" extends="java.lang.Object"
  31132. abstract="true"
  31133. static="false" final="false" visibility="public"
  31134. deprecated="Use {@link org.apache.hadoop.mapreduce.lib.input.FileInputFormat}
  31135. instead.">
  31136. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  31137. <constructor name="FileInputFormat"
  31138. static="false" final="false" visibility="public"
  31139. deprecated="not deprecated">
  31140. </constructor>
  31141. <method name="setMinSplitSize"
  31142. abstract="false" native="false" synchronized="false"
  31143. static="false" final="false" visibility="protected"
  31144. deprecated="not deprecated">
  31145. <param name="minSplitSize" type="long"/>
  31146. </method>
  31147. <method name="isSplitable" return="boolean"
  31148. abstract="false" native="false" synchronized="false"
  31149. static="false" final="false" visibility="protected"
  31150. deprecated="not deprecated">
  31151. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  31152. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  31153. <doc>
  31154. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  31155. stream compressed, it will not be.
  31156. <code>FileInputFormat</code> implementations can override this and return
  31157. <code>false</code> to ensure that individual input files are never split-up
  31158. so that {@link Mapper}s process entire files.
  31159. @param fs the file system that the file is on
  31160. @param filename the file name to check
  31161. @return is this file splitable?]]>
  31162. </doc>
  31163. </method>
  31164. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  31165. abstract="true" native="false" synchronized="false"
  31166. static="false" final="false" visibility="public"
  31167. deprecated="not deprecated">
  31168. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  31169. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31170. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  31171. <exception name="IOException" type="java.io.IOException"/>
  31172. </method>
  31173. <method name="setInputPathFilter"
  31174. abstract="false" native="false" synchronized="false"
  31175. static="true" final="false" visibility="public"
  31176. deprecated="not deprecated">
  31177. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31178. <param name="filter" type="java.lang.Class"/>
  31179. <doc>
  31180. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  31181. @param filter the PathFilter class use for filtering the input paths.]]>
  31182. </doc>
  31183. </method>
  31184. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  31185. abstract="false" native="false" synchronized="false"
  31186. static="true" final="false" visibility="public"
  31187. deprecated="not deprecated">
  31188. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31189. <doc>
  31190. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  31191. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  31192. </doc>
  31193. </method>
  31194. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  31195. abstract="false" native="false" synchronized="false"
  31196. static="false" final="false" visibility="protected"
  31197. deprecated="not deprecated">
  31198. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31199. <exception name="IOException" type="java.io.IOException"/>
  31200. <doc>
  31201. <![CDATA[List input directories.
  31202. Subclasses may override to, e.g., select only files matching a regular
  31203. expression.
  31204. @param job the job to list input paths for
  31205. @return array of FileStatus objects
  31206. @throws IOException if zero items.]]>
  31207. </doc>
  31208. </method>
  31209. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  31210. abstract="false" native="false" synchronized="false"
  31211. static="false" final="false" visibility="public"
  31212. deprecated="not deprecated">
  31213. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31214. <param name="numSplits" type="int"/>
  31215. <exception name="IOException" type="java.io.IOException"/>
  31216. <doc>
  31217. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  31218. they're too big.]]>
  31219. </doc>
  31220. </method>
  31221. <method name="computeSplitSize" return="long"
  31222. abstract="false" native="false" synchronized="false"
  31223. static="false" final="false" visibility="protected"
  31224. deprecated="not deprecated">
  31225. <param name="goalSize" type="long"/>
  31226. <param name="minSize" type="long"/>
  31227. <param name="blockSize" type="long"/>
  31228. </method>
  31229. <method name="getBlockIndex" return="int"
  31230. abstract="false" native="false" synchronized="false"
  31231. static="false" final="false" visibility="protected"
  31232. deprecated="not deprecated">
  31233. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  31234. <param name="offset" type="long"/>
  31235. </method>
  31236. <method name="setInputPaths"
  31237. abstract="false" native="false" synchronized="false"
  31238. static="true" final="false" visibility="public"
  31239. deprecated="not deprecated">
  31240. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31241. <param name="commaSeparatedPaths" type="java.lang.String"/>
  31242. <doc>
  31243. <![CDATA[Sets the given comma separated paths as the list of inputs
  31244. for the map-reduce job.
  31245. @param conf Configuration of the job
  31246. @param commaSeparatedPaths Comma separated paths to be set as
  31247. the list of inputs for the map-reduce job.]]>
  31248. </doc>
  31249. </method>
  31250. <method name="addInputPaths"
  31251. abstract="false" native="false" synchronized="false"
  31252. static="true" final="false" visibility="public"
  31253. deprecated="not deprecated">
  31254. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31255. <param name="commaSeparatedPaths" type="java.lang.String"/>
  31256. <doc>
  31257. <![CDATA[Add the given comma separated paths to the list of inputs for
  31258. the map-reduce job.
  31259. @param conf The configuration of the job
  31260. @param commaSeparatedPaths Comma separated paths to be added to
  31261. the list of inputs for the map-reduce job.]]>
  31262. </doc>
  31263. </method>
  31264. <method name="setInputPaths"
  31265. abstract="false" native="false" synchronized="false"
  31266. static="true" final="false" visibility="public"
  31267. deprecated="not deprecated">
  31268. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31269. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  31270. <doc>
  31271. <![CDATA[Set the array of {@link Path}s as the list of inputs
  31272. for the map-reduce job.
  31273. @param conf Configuration of the job.
  31274. @param inputPaths the {@link Path}s of the input directories/files
  31275. for the map-reduce job.]]>
  31276. </doc>
  31277. </method>
  31278. <method name="addInputPath"
  31279. abstract="false" native="false" synchronized="false"
  31280. static="true" final="false" visibility="public"
  31281. deprecated="not deprecated">
  31282. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31283. <param name="path" type="org.apache.hadoop.fs.Path"/>
  31284. <doc>
  31285. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  31286. @param conf The configuration of the job
  31287. @param path {@link Path} to be added to the list of inputs for
  31288. the map-reduce job.]]>
  31289. </doc>
  31290. </method>
  31291. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  31292. abstract="false" native="false" synchronized="false"
  31293. static="true" final="false" visibility="public"
  31294. deprecated="not deprecated">
  31295. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31296. <doc>
  31297. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  31298. @param conf The configuration of the job
  31299. @return the list of input {@link Path}s for the map-reduce job.]]>
  31300. </doc>
  31301. </method>
  31302. <method name="getSplitHosts" return="java.lang.String[]"
  31303. abstract="false" native="false" synchronized="false"
  31304. static="false" final="false" visibility="protected"
  31305. deprecated="not deprecated">
  31306. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  31307. <param name="offset" type="long"/>
  31308. <param name="splitSize" type="long"/>
  31309. <param name="clusterMap" type="org.apache.hadoop.net.NetworkTopology"/>
  31310. <exception name="IOException" type="java.io.IOException"/>
  31311. <doc>
  31312. <![CDATA[This function identifies and returns the hosts that contribute
  31313. most for a given split. For calculating the contribution, rack
  31314. locality is treated on par with host locality, so hosts from racks
  31315. that contribute the most are preferred over hosts on racks that
  31316. contribute less
  31317. @param blkLocations The list of block locations
  31318. @param offset
  31319. @param splitSize
  31320. @return array of hosts that contribute most to this split
  31321. @throws IOException]]>
  31322. </doc>
  31323. </method>
  31324. <field name="LOG" type="org.apache.commons.logging.Log"
  31325. transient="false" volatile="false"
  31326. static="true" final="true" visibility="public"
  31327. deprecated="not deprecated">
  31328. </field>
  31329. <doc>
  31330. <![CDATA[A base class for file-based {@link InputFormat}.
  31331. <p><code>FileInputFormat</code> is the base class for all file-based
  31332. <code>InputFormat</code>s. This provides a generic implementation of
  31333. {@link #getSplits(JobConf, int)}.
  31334. Subclasses of <code>FileInputFormat</code> can also override the
  31335. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  31336. not split-up and are processed as a whole by {@link Mapper}s.
  31337. @deprecated Use {@link org.apache.hadoop.mapreduce.lib.input.FileInputFormat}
  31338. instead.]]>
  31339. </doc>
  31340. </class>
  31341. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  31342. <!-- start class org.apache.hadoop.mapred.FileOutputCommitter -->
  31343. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapred.OutputCommitter"
  31344. abstract="false"
  31345. static="false" final="false" visibility="public"
  31346. deprecated="not deprecated">
  31347. <constructor name="FileOutputCommitter"
  31348. static="false" final="false" visibility="public"
  31349. deprecated="not deprecated">
  31350. </constructor>
  31351. <method name="setupJob"
  31352. abstract="false" native="false" synchronized="false"
  31353. static="false" final="false" visibility="public"
  31354. deprecated="not deprecated">
  31355. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  31356. <exception name="IOException" type="java.io.IOException"/>
  31357. </method>
  31358. <method name="cleanupJob"
  31359. abstract="false" native="false" synchronized="false"
  31360. static="false" final="false" visibility="public"
  31361. deprecated="not deprecated">
  31362. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  31363. <exception name="IOException" type="java.io.IOException"/>
  31364. </method>
  31365. <method name="setupTask"
  31366. abstract="false" native="false" synchronized="false"
  31367. static="false" final="false" visibility="public"
  31368. deprecated="not deprecated">
  31369. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  31370. <exception name="IOException" type="java.io.IOException"/>
  31371. </method>
  31372. <method name="commitTask"
  31373. abstract="false" native="false" synchronized="false"
  31374. static="false" final="false" visibility="public"
  31375. deprecated="not deprecated">
  31376. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  31377. <exception name="IOException" type="java.io.IOException"/>
  31378. </method>
  31379. <method name="abortTask"
  31380. abstract="false" native="false" synchronized="false"
  31381. static="false" final="false" visibility="public"
  31382. deprecated="not deprecated">
  31383. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  31384. <exception name="IOException" type="java.io.IOException"/>
  31385. </method>
  31386. <method name="needsTaskCommit" return="boolean"
  31387. abstract="false" native="false" synchronized="false"
  31388. static="false" final="false" visibility="public"
  31389. deprecated="not deprecated">
  31390. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  31391. <exception name="IOException" type="java.io.IOException"/>
  31392. </method>
  31393. <field name="LOG" type="org.apache.commons.logging.Log"
  31394. transient="false" volatile="false"
  31395. static="true" final="true" visibility="public"
  31396. deprecated="not deprecated">
  31397. </field>
  31398. <field name="TEMP_DIR_NAME" type="java.lang.String"
  31399. transient="false" volatile="false"
  31400. static="true" final="true" visibility="public"
  31401. deprecated="not deprecated">
  31402. <doc>
  31403. <![CDATA[Temporary directory name]]>
  31404. </doc>
  31405. </field>
  31406. <doc>
  31407. <![CDATA[An {@link OutputCommitter} that commits files specified
  31408. in job output directory i.e. ${mapred.output.dir}.]]>
  31409. </doc>
  31410. </class>
  31411. <!-- end class org.apache.hadoop.mapred.FileOutputCommitter -->
  31412. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  31413. <class name="FileOutputFormat" extends="java.lang.Object"
  31414. abstract="true"
  31415. static="false" final="false" visibility="public"
  31416. deprecated="not deprecated">
  31417. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  31418. <constructor name="FileOutputFormat"
  31419. static="false" final="false" visibility="public"
  31420. deprecated="not deprecated">
  31421. </constructor>
  31422. <method name="setCompressOutput"
  31423. abstract="false" native="false" synchronized="false"
  31424. static="true" final="false" visibility="public"
  31425. deprecated="not deprecated">
  31426. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31427. <param name="compress" type="boolean"/>
  31428. <doc>
  31429. <![CDATA[Set whether the output of the job is compressed.
  31430. @param conf the {@link JobConf} to modify
  31431. @param compress should the output of the job be compressed?]]>
  31432. </doc>
  31433. </method>
  31434. <method name="getCompressOutput" return="boolean"
  31435. abstract="false" native="false" synchronized="false"
  31436. static="true" final="false" visibility="public"
  31437. deprecated="not deprecated">
  31438. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31439. <doc>
  31440. <![CDATA[Is the job output compressed?
  31441. @param conf the {@link JobConf} to look in
  31442. @return <code>true</code> if the job output should be compressed,
  31443. <code>false</code> otherwise]]>
  31444. </doc>
  31445. </method>
  31446. <method name="setOutputCompressorClass"
  31447. abstract="false" native="false" synchronized="false"
  31448. static="true" final="false" visibility="public"
  31449. deprecated="not deprecated">
  31450. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31451. <param name="codecClass" type="java.lang.Class"/>
  31452. <doc>
  31453. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  31454. @param conf the {@link JobConf} to modify
  31455. @param codecClass the {@link CompressionCodec} to be used to
  31456. compress the job outputs]]>
  31457. </doc>
  31458. </method>
  31459. <method name="getOutputCompressorClass" return="java.lang.Class"
  31460. abstract="false" native="false" synchronized="false"
  31461. static="true" final="false" visibility="public"
  31462. deprecated="not deprecated">
  31463. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31464. <param name="defaultValue" type="java.lang.Class"/>
  31465. <doc>
  31466. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  31467. @param conf the {@link JobConf} to look in
  31468. @param defaultValue the {@link CompressionCodec} to return if not set
  31469. @return the {@link CompressionCodec} to be used to compress the
  31470. job outputs
  31471. @throws IllegalArgumentException if the class was specified, but not found]]>
  31472. </doc>
  31473. </method>
  31474. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  31475. abstract="true" native="false" synchronized="false"
  31476. static="false" final="false" visibility="public"
  31477. deprecated="not deprecated">
  31478. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  31479. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31480. <param name="name" type="java.lang.String"/>
  31481. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  31482. <exception name="IOException" type="java.io.IOException"/>
  31483. </method>
  31484. <method name="checkOutputSpecs"
  31485. abstract="false" native="false" synchronized="false"
  31486. static="false" final="false" visibility="public"
  31487. deprecated="not deprecated">
  31488. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  31489. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31490. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  31491. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  31492. <exception name="IOException" type="java.io.IOException"/>
  31493. </method>
  31494. <method name="setOutputPath"
  31495. abstract="false" native="false" synchronized="false"
  31496. static="true" final="false" visibility="public"
  31497. deprecated="not deprecated">
  31498. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31499. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  31500. <doc>
  31501. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  31502. @param conf The configuration of the job.
  31503. @param outputDir the {@link Path} of the output directory for
  31504. the map-reduce job.]]>
  31505. </doc>
  31506. </method>
  31507. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  31508. abstract="false" native="false" synchronized="false"
  31509. static="true" final="false" visibility="public"
  31510. deprecated="not deprecated">
  31511. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31512. <doc>
  31513. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  31514. @return the {@link Path} to the output directory for the map-reduce job.
  31515. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  31516. </doc>
  31517. </method>
  31518. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  31519. abstract="false" native="false" synchronized="false"
  31520. static="true" final="false" visibility="public"
  31521. deprecated="not deprecated">
  31522. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31523. <doc>
  31524. <![CDATA[Get the {@link Path} to the task's temporary output directory
  31525. for the map-reduce job
  31526. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  31527. <p><i>Note:</i> The following is valid only if the {@link OutputCommitter}
  31528. is {@link FileOutputCommitter}. If <code>OutputCommitter</code> is not
  31529. a <code>FileOutputCommitter</code>, the task's temporary output
  31530. directory is same as {@link #getOutputPath(JobConf)} i.e.
  31531. <tt>${mapred.output.dir}$</tt></p>
  31532. <p>Some applications need to create/write-to side-files, which differ from
  31533. the actual job-outputs.
  31534. <p>In such cases there could be issues with 2 instances of the same TIP
  31535. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  31536. same file (path) on HDFS. Hence the application-writer will have to pick
  31537. unique names per task-attempt (e.g. using the attemptid, say
  31538. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  31539. <p>To get around this the Map-Reduce framework helps the application-writer
  31540. out by maintaining a special
  31541. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  31542. sub-directory for each task-attempt on HDFS where the output of the
  31543. task-attempt goes. On successful completion of the task-attempt the files
  31544. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  31545. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  31546. framework discards the sub-directory of unsuccessful task-attempts. This
  31547. is completely transparent to the application.</p>
  31548. <p>The application-writer can take advantage of this by creating any
  31549. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  31550. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  31551. framework will move them out similarly - thus she doesn't have to pick
  31552. unique paths per task-attempt.</p>
  31553. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  31554. execution of a particular task-attempt is actually
  31555. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  31556. set by the map-reduce framework. So, just create any side-files in the
  31557. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  31558. task to take advantage of this feature.</p>
  31559. <p>The entire discussion holds true for maps of jobs with
  31560. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  31561. goes directly to HDFS.</p>
  31562. @return the {@link Path} to the task's temporary output directory
  31563. for the map-reduce job.]]>
  31564. </doc>
  31565. </method>
  31566. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  31567. abstract="false" native="false" synchronized="false"
  31568. static="true" final="false" visibility="public"
  31569. deprecated="not deprecated">
  31570. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31571. <param name="name" type="java.lang.String"/>
  31572. <exception name="IOException" type="java.io.IOException"/>
  31573. <doc>
  31574. <![CDATA[Helper function to create the task's temporary output directory and
  31575. return the path to the task's output file.
  31576. @param conf job-configuration
  31577. @param name temporary task-output filename
  31578. @return path to the task's temporary output file
  31579. @throws IOException]]>
  31580. </doc>
  31581. </method>
  31582. <method name="getUniqueName" return="java.lang.String"
  31583. abstract="false" native="false" synchronized="false"
  31584. static="true" final="false" visibility="public"
  31585. deprecated="not deprecated">
  31586. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31587. <param name="name" type="java.lang.String"/>
  31588. <doc>
  31589. <![CDATA[Helper function to generate a name that is unique for the task.
  31590. <p>The generated name can be used to create custom files from within the
  31591. different tasks for the job, the names for different tasks will not collide
  31592. with each other.</p>
  31593. <p>The given name is postfixed with the task type, 'm' for maps, 'r' for
  31594. reduces and the task partition number. For example, give a name 'test'
  31595. running on the first map o the job the generated name will be
  31596. 'test-m-00000'.</p>
  31597. @param conf the configuration for the job.
  31598. @param name the name to make unique.
  31599. @return a unique name accross all tasks of the job.]]>
  31600. </doc>
  31601. </method>
  31602. <method name="getPathForCustomFile" return="org.apache.hadoop.fs.Path"
  31603. abstract="false" native="false" synchronized="false"
  31604. static="true" final="false" visibility="public"
  31605. deprecated="not deprecated">
  31606. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31607. <param name="name" type="java.lang.String"/>
  31608. <doc>
  31609. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  31610. the task within the job output directory.
  31611. <p>The path can be used to create custom files from within the map and
  31612. reduce tasks. The path name will be unique for each task. The path parent
  31613. will be the job output directory.</p>ls
  31614. <p>This method uses the {@link #getUniqueName} method to make the file name
  31615. unique for the task.</p>
  31616. @param conf the configuration for the job.
  31617. @param name the name for the file.
  31618. @return a unique path accross all tasks of the job.]]>
  31619. </doc>
  31620. </method>
  31621. <doc>
  31622. <![CDATA[A base class for {@link OutputFormat}.]]>
  31623. </doc>
  31624. </class>
  31625. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  31626. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  31627. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  31628. abstract="false"
  31629. static="false" final="false" visibility="public"
  31630. deprecated="Use {@link org.apache.hadoop.mapreduce.lib.input.FileSplit}
  31631. instead.">
  31632. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  31633. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  31634. static="false" final="false" visibility="public"
  31635. deprecated="deprecated, no comment">
  31636. <doc>
  31637. <![CDATA[Constructs a split.
  31638. @deprecated
  31639. @param file the file name
  31640. @param start the position of the first byte in the file to process
  31641. @param length the number of bytes in the file to process]]>
  31642. </doc>
  31643. </constructor>
  31644. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  31645. static="false" final="false" visibility="public"
  31646. deprecated="not deprecated">
  31647. <doc>
  31648. <![CDATA[Constructs a split with host information
  31649. @param file the file name
  31650. @param start the position of the first byte in the file to process
  31651. @param length the number of bytes in the file to process
  31652. @param hosts the list of hosts containing the block, possibly null]]>
  31653. </doc>
  31654. </constructor>
  31655. <method name="getPath" return="org.apache.hadoop.fs.Path"
  31656. abstract="false" native="false" synchronized="false"
  31657. static="false" final="false" visibility="public"
  31658. deprecated="not deprecated">
  31659. <doc>
  31660. <![CDATA[The file containing this split's data.]]>
  31661. </doc>
  31662. </method>
  31663. <method name="getStart" return="long"
  31664. abstract="false" native="false" synchronized="false"
  31665. static="false" final="false" visibility="public"
  31666. deprecated="not deprecated">
  31667. <doc>
  31668. <![CDATA[The position of the first byte in the file to process.]]>
  31669. </doc>
  31670. </method>
  31671. <method name="getLength" return="long"
  31672. abstract="false" native="false" synchronized="false"
  31673. static="false" final="false" visibility="public"
  31674. deprecated="not deprecated">
  31675. <doc>
  31676. <![CDATA[The number of bytes in the file to process.]]>
  31677. </doc>
  31678. </method>
  31679. <method name="toString" return="java.lang.String"
  31680. abstract="false" native="false" synchronized="false"
  31681. static="false" final="false" visibility="public"
  31682. deprecated="not deprecated">
  31683. </method>
  31684. <method name="write"
  31685. abstract="false" native="false" synchronized="false"
  31686. static="false" final="false" visibility="public"
  31687. deprecated="not deprecated">
  31688. <param name="out" type="java.io.DataOutput"/>
  31689. <exception name="IOException" type="java.io.IOException"/>
  31690. </method>
  31691. <method name="readFields"
  31692. abstract="false" native="false" synchronized="false"
  31693. static="false" final="false" visibility="public"
  31694. deprecated="not deprecated">
  31695. <param name="in" type="java.io.DataInput"/>
  31696. <exception name="IOException" type="java.io.IOException"/>
  31697. </method>
  31698. <method name="getLocations" return="java.lang.String[]"
  31699. abstract="false" native="false" synchronized="false"
  31700. static="false" final="false" visibility="public"
  31701. deprecated="not deprecated">
  31702. <exception name="IOException" type="java.io.IOException"/>
  31703. </method>
  31704. <doc>
  31705. <![CDATA[A section of an input file. Returned by {@link
  31706. InputFormat#getSplits(JobConf, int)} and passed to
  31707. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.
  31708. @deprecated Use {@link org.apache.hadoop.mapreduce.lib.input.FileSplit}
  31709. instead.]]>
  31710. </doc>
  31711. </class>
  31712. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  31713. <!-- start class org.apache.hadoop.mapred.ID -->
  31714. <class name="ID" extends="org.apache.hadoop.mapreduce.ID"
  31715. abstract="true"
  31716. static="false" final="false" visibility="public"
  31717. deprecated="not deprecated">
  31718. <constructor name="ID" type="int"
  31719. static="false" final="false" visibility="public"
  31720. deprecated="not deprecated">
  31721. <doc>
  31722. <![CDATA[constructs an ID object from the given int]]>
  31723. </doc>
  31724. </constructor>
  31725. <constructor name="ID"
  31726. static="false" final="false" visibility="protected"
  31727. deprecated="not deprecated">
  31728. </constructor>
  31729. <doc>
  31730. <![CDATA[A general identifier, which internally stores the id
  31731. as an integer. This is the super class of {@link JobID},
  31732. {@link TaskID} and {@link TaskAttemptID}.
  31733. @see JobID
  31734. @see TaskID
  31735. @see TaskAttemptID]]>
  31736. </doc>
  31737. </class>
  31738. <!-- end class org.apache.hadoop.mapred.ID -->
  31739. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  31740. <interface name="InputFormat" abstract="true"
  31741. static="false" final="false" visibility="public"
  31742. deprecated="Use {@link org.apache.hadoop.mapreduce.InputFormat} instead.">
  31743. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  31744. abstract="false" native="false" synchronized="false"
  31745. static="false" final="false" visibility="public"
  31746. deprecated="not deprecated">
  31747. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31748. <param name="numSplits" type="int"/>
  31749. <exception name="IOException" type="java.io.IOException"/>
  31750. <doc>
  31751. <![CDATA[Logically split the set of input files for the job.
  31752. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  31753. for processing.</p>
  31754. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  31755. input files are not physically split into chunks. For e.g. a split could
  31756. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  31757. @param job job configuration.
  31758. @param numSplits the desired number of splits, a hint.
  31759. @return an array of {@link InputSplit}s for the job.]]>
  31760. </doc>
  31761. </method>
  31762. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  31763. abstract="false" native="false" synchronized="false"
  31764. static="false" final="false" visibility="public"
  31765. deprecated="not deprecated">
  31766. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  31767. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31768. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  31769. <exception name="IOException" type="java.io.IOException"/>
  31770. <doc>
  31771. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  31772. <p>It is the responsibility of the <code>RecordReader</code> to respect
  31773. record boundaries while processing the logical split to present a
  31774. record-oriented view to the individual task.</p>
  31775. @param split the {@link InputSplit}
  31776. @param job the job that this split belongs to
  31777. @return a {@link RecordReader}]]>
  31778. </doc>
  31779. </method>
  31780. <doc>
  31781. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  31782. Map-Reduce job.
  31783. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  31784. job to:<p>
  31785. <ol>
  31786. <li>
  31787. Validate the input-specification of the job.
  31788. <li>
  31789. Split-up the input file(s) into logical {@link InputSplit}s, each of
  31790. which is then assigned to an individual {@link Mapper}.
  31791. </li>
  31792. <li>
  31793. Provide the {@link RecordReader} implementation to be used to glean
  31794. input records from the logical <code>InputSplit</code> for processing by
  31795. the {@link Mapper}.
  31796. </li>
  31797. </ol>
  31798. <p>The default behavior of file-based {@link InputFormat}s, typically
  31799. sub-classes of {@link FileInputFormat}, is to split the
  31800. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  31801. bytes, of the input files. However, the {@link FileSystem} blocksize of
  31802. the input files is treated as an upper bound for input splits. A lower bound
  31803. on the split size can be set via
  31804. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  31805. mapred.min.split.size</a>.</p>
  31806. <p>Clearly, logical splits based on input-size is insufficient for many
  31807. applications since record boundaries are to respected. In such cases, the
  31808. application has to also implement a {@link RecordReader} on whom lies the
  31809. responsibilty to respect record-boundaries and present a record-oriented
  31810. view of the logical <code>InputSplit</code> to the individual task.
  31811. @see InputSplit
  31812. @see RecordReader
  31813. @see JobClient
  31814. @see FileInputFormat
  31815. @deprecated Use {@link org.apache.hadoop.mapreduce.InputFormat} instead.]]>
  31816. </doc>
  31817. </interface>
  31818. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  31819. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  31820. <interface name="InputSplit" abstract="true"
  31821. static="false" final="false" visibility="public"
  31822. deprecated="Use {@link org.apache.hadoop.mapreduce.InputSplit} instead.">
  31823. <implements name="org.apache.hadoop.io.Writable"/>
  31824. <method name="getLength" return="long"
  31825. abstract="false" native="false" synchronized="false"
  31826. static="false" final="false" visibility="public"
  31827. deprecated="not deprecated">
  31828. <exception name="IOException" type="java.io.IOException"/>
  31829. <doc>
  31830. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  31831. @return the number of bytes in the input split.
  31832. @throws IOException]]>
  31833. </doc>
  31834. </method>
  31835. <method name="getLocations" return="java.lang.String[]"
  31836. abstract="false" native="false" synchronized="false"
  31837. static="false" final="false" visibility="public"
  31838. deprecated="not deprecated">
  31839. <exception name="IOException" type="java.io.IOException"/>
  31840. <doc>
  31841. <![CDATA[Get the list of hostnames where the input split is located.
  31842. @return list of hostnames where data of the <code>InputSplit</code> is
  31843. located as an array of <code>String</code>s.
  31844. @throws IOException]]>
  31845. </doc>
  31846. </method>
  31847. <doc>
  31848. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  31849. individual {@link Mapper}.
  31850. <p>Typically, it presents a byte-oriented view on the input and is the
  31851. responsibility of {@link RecordReader} of the job to process this and present
  31852. a record-oriented view.
  31853. @see InputFormat
  31854. @see RecordReader
  31855. @deprecated Use {@link org.apache.hadoop.mapreduce.InputSplit} instead.]]>
  31856. </doc>
  31857. </interface>
  31858. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  31859. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  31860. <class name="InvalidFileTypeException" extends="java.io.IOException"
  31861. abstract="false"
  31862. static="false" final="false" visibility="public"
  31863. deprecated="not deprecated">
  31864. <constructor name="InvalidFileTypeException"
  31865. static="false" final="false" visibility="public"
  31866. deprecated="not deprecated">
  31867. </constructor>
  31868. <constructor name="InvalidFileTypeException" type="java.lang.String"
  31869. static="false" final="false" visibility="public"
  31870. deprecated="not deprecated">
  31871. </constructor>
  31872. <doc>
  31873. <![CDATA[Used when file type differs from the desired file type. like
  31874. getting a file when a directory is expected. Or a wrong file type.]]>
  31875. </doc>
  31876. </class>
  31877. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  31878. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  31879. <class name="InvalidInputException" extends="java.io.IOException"
  31880. abstract="false"
  31881. static="false" final="false" visibility="public"
  31882. deprecated="not deprecated">
  31883. <constructor name="InvalidInputException" type="java.util.List"
  31884. static="false" final="false" visibility="public"
  31885. deprecated="not deprecated">
  31886. <doc>
  31887. <![CDATA[Create the exception with the given list.
  31888. @param probs the list of problems to report. this list is not copied.]]>
  31889. </doc>
  31890. </constructor>
  31891. <method name="getProblems" return="java.util.List"
  31892. abstract="false" native="false" synchronized="false"
  31893. static="false" final="false" visibility="public"
  31894. deprecated="not deprecated">
  31895. <doc>
  31896. <![CDATA[Get the complete list of the problems reported.
  31897. @return the list of problems, which must not be modified]]>
  31898. </doc>
  31899. </method>
  31900. <method name="getMessage" return="java.lang.String"
  31901. abstract="false" native="false" synchronized="false"
  31902. static="false" final="false" visibility="public"
  31903. deprecated="not deprecated">
  31904. <doc>
  31905. <![CDATA[Get a summary message of the problems found.
  31906. @return the concatenated messages from all of the problems.]]>
  31907. </doc>
  31908. </method>
  31909. <doc>
  31910. <![CDATA[This class wraps a list of problems with the input, so that the user
  31911. can get a list of problems together instead of finding and fixing them one
  31912. by one.]]>
  31913. </doc>
  31914. </class>
  31915. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  31916. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  31917. <class name="InvalidJobConfException" extends="java.io.IOException"
  31918. abstract="false"
  31919. static="false" final="false" visibility="public"
  31920. deprecated="not deprecated">
  31921. <constructor name="InvalidJobConfException"
  31922. static="false" final="false" visibility="public"
  31923. deprecated="not deprecated">
  31924. </constructor>
  31925. <constructor name="InvalidJobConfException" type="java.lang.String"
  31926. static="false" final="false" visibility="public"
  31927. deprecated="not deprecated">
  31928. </constructor>
  31929. <doc>
  31930. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  31931. or value of some attributes is invalid.]]>
  31932. </doc>
  31933. </class>
  31934. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  31935. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  31936. <class name="IsolationRunner" extends="java.lang.Object"
  31937. abstract="false"
  31938. static="false" final="false" visibility="public"
  31939. deprecated="not deprecated">
  31940. <constructor name="IsolationRunner"
  31941. static="false" final="false" visibility="public"
  31942. deprecated="not deprecated">
  31943. </constructor>
  31944. <method name="main"
  31945. abstract="false" native="false" synchronized="false"
  31946. static="true" final="false" visibility="public"
  31947. deprecated="not deprecated">
  31948. <param name="args" type="java.lang.String[]"/>
  31949. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  31950. <exception name="IOException" type="java.io.IOException"/>
  31951. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  31952. <doc>
  31953. <![CDATA[Run a single task
  31954. @param args the first argument is the task directory]]>
  31955. </doc>
  31956. </method>
  31957. </class>
  31958. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  31959. <!-- start class org.apache.hadoop.mapred.JobClient -->
  31960. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  31961. abstract="false"
  31962. static="false" final="false" visibility="public"
  31963. deprecated="not deprecated">
  31964. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  31965. <implements name="org.apache.hadoop.util.Tool"/>
  31966. <constructor name="JobClient"
  31967. static="false" final="false" visibility="public"
  31968. deprecated="not deprecated">
  31969. <doc>
  31970. <![CDATA[Create a job client.]]>
  31971. </doc>
  31972. </constructor>
  31973. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  31974. static="false" final="false" visibility="public"
  31975. deprecated="not deprecated">
  31976. <exception name="IOException" type="java.io.IOException"/>
  31977. <doc>
  31978. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  31979. default {@link JobTracker}.
  31980. @param conf the job configuration.
  31981. @throws IOException]]>
  31982. </doc>
  31983. </constructor>
  31984. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  31985. static="false" final="false" visibility="public"
  31986. deprecated="not deprecated">
  31987. <exception name="IOException" type="java.io.IOException"/>
  31988. <doc>
  31989. <![CDATA[Build a job client, connect to the indicated job tracker.
  31990. @param jobTrackAddr the job tracker to connect to.
  31991. @param conf configuration.]]>
  31992. </doc>
  31993. </constructor>
  31994. <method name="init"
  31995. abstract="false" native="false" synchronized="false"
  31996. static="false" final="false" visibility="public"
  31997. deprecated="not deprecated">
  31998. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31999. <exception name="IOException" type="java.io.IOException"/>
  32000. <doc>
  32001. <![CDATA[Connect to the default {@link JobTracker}.
  32002. @param conf the job configuration.
  32003. @throws IOException]]>
  32004. </doc>
  32005. </method>
  32006. <method name="close"
  32007. abstract="false" native="false" synchronized="true"
  32008. static="false" final="false" visibility="public"
  32009. deprecated="not deprecated">
  32010. <exception name="IOException" type="java.io.IOException"/>
  32011. <doc>
  32012. <![CDATA[Close the <code>JobClient</code>.]]>
  32013. </doc>
  32014. </method>
  32015. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  32016. abstract="false" native="false" synchronized="true"
  32017. static="false" final="false" visibility="public"
  32018. deprecated="not deprecated">
  32019. <exception name="IOException" type="java.io.IOException"/>
  32020. <doc>
  32021. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  32022. for submission to the MapReduce system.
  32023. @return the filesystem handle.]]>
  32024. </doc>
  32025. </method>
  32026. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  32027. abstract="false" native="false" synchronized="false"
  32028. static="false" final="false" visibility="public"
  32029. deprecated="not deprecated">
  32030. <param name="jobFile" type="java.lang.String"/>
  32031. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  32032. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  32033. <exception name="IOException" type="java.io.IOException"/>
  32034. <doc>
  32035. <![CDATA[Submit a job to the MR system.
  32036. This returns a handle to the {@link RunningJob} which can be used to track
  32037. the running-job.
  32038. @param jobFile the job configuration.
  32039. @return a handle to the {@link RunningJob} which can be used to track the
  32040. running-job.
  32041. @throws FileNotFoundException
  32042. @throws InvalidJobConfException
  32043. @throws IOException]]>
  32044. </doc>
  32045. </method>
  32046. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  32047. abstract="false" native="false" synchronized="false"
  32048. static="false" final="false" visibility="public"
  32049. deprecated="not deprecated">
  32050. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32051. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  32052. <exception name="IOException" type="java.io.IOException"/>
  32053. <doc>
  32054. <![CDATA[Submit a job to the MR system.
  32055. This returns a handle to the {@link RunningJob} which can be used to track
  32056. the running-job.
  32057. @param job the job configuration.
  32058. @return a handle to the {@link RunningJob} which can be used to track the
  32059. running-job.
  32060. @throws FileNotFoundException
  32061. @throws IOException]]>
  32062. </doc>
  32063. </method>
  32064. <method name="submitJobInternal" return="org.apache.hadoop.mapred.RunningJob"
  32065. abstract="false" native="false" synchronized="false"
  32066. static="false" final="false" visibility="public"
  32067. deprecated="not deprecated">
  32068. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32069. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  32070. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  32071. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  32072. <exception name="IOException" type="java.io.IOException"/>
  32073. <doc>
  32074. <![CDATA[Internal method for submitting jobs to the system.
  32075. @param job the configuration to submit
  32076. @return a proxy object for the running job
  32077. @throws FileNotFoundException
  32078. @throws ClassNotFoundException
  32079. @throws InterruptedException
  32080. @throws IOException]]>
  32081. </doc>
  32082. </method>
  32083. <method name="isJobDirValid" return="boolean"
  32084. abstract="false" native="false" synchronized="false"
  32085. static="true" final="false" visibility="public"
  32086. deprecated="not deprecated">
  32087. <param name="jobDirPath" type="org.apache.hadoop.fs.Path"/>
  32088. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  32089. <exception name="IOException" type="java.io.IOException"/>
  32090. <doc>
  32091. <![CDATA[Checks if the job directory is clean and has all the required components
  32092. for (re) starting the job]]>
  32093. </doc>
  32094. </method>
  32095. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  32096. abstract="false" native="false" synchronized="false"
  32097. static="false" final="false" visibility="public"
  32098. deprecated="not deprecated">
  32099. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  32100. <exception name="IOException" type="java.io.IOException"/>
  32101. <doc>
  32102. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  32103. null if the id does not correspond to any known job.
  32104. @param jobid the jobid of the job.
  32105. @return the {@link RunningJob} handle to track the job, null if the
  32106. <code>jobid</code> doesn't correspond to any known job.
  32107. @throws IOException]]>
  32108. </doc>
  32109. </method>
  32110. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  32111. abstract="false" native="false" synchronized="false"
  32112. static="false" final="false" visibility="public"
  32113. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  32114. <param name="jobid" type="java.lang.String"/>
  32115. <exception name="IOException" type="java.io.IOException"/>
  32116. <doc>
  32117. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  32118. </doc>
  32119. </method>
  32120. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  32121. abstract="false" native="false" synchronized="false"
  32122. static="false" final="false" visibility="public"
  32123. deprecated="not deprecated">
  32124. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  32125. <exception name="IOException" type="java.io.IOException"/>
  32126. <doc>
  32127. <![CDATA[Get the information of the current state of the map tasks of a job.
  32128. @param jobId the job to query.
  32129. @return the list of all of the map tips.
  32130. @throws IOException]]>
  32131. </doc>
  32132. </method>
  32133. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  32134. abstract="false" native="false" synchronized="false"
  32135. static="false" final="false" visibility="public"
  32136. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  32137. <param name="jobId" type="java.lang.String"/>
  32138. <exception name="IOException" type="java.io.IOException"/>
  32139. <doc>
  32140. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  32141. </doc>
  32142. </method>
  32143. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  32144. abstract="false" native="false" synchronized="false"
  32145. static="false" final="false" visibility="public"
  32146. deprecated="not deprecated">
  32147. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  32148. <exception name="IOException" type="java.io.IOException"/>
  32149. <doc>
  32150. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  32151. @param jobId the job to query.
  32152. @return the list of all of the reduce tips.
  32153. @throws IOException]]>
  32154. </doc>
  32155. </method>
  32156. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  32157. abstract="false" native="false" synchronized="false"
  32158. static="false" final="false" visibility="public"
  32159. deprecated="not deprecated">
  32160. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  32161. <exception name="IOException" type="java.io.IOException"/>
  32162. <doc>
  32163. <![CDATA[Get the information of the current state of the cleanup tasks of a job.
  32164. @param jobId the job to query.
  32165. @return the list of all of the cleanup tips.
  32166. @throws IOException]]>
  32167. </doc>
  32168. </method>
  32169. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  32170. abstract="false" native="false" synchronized="false"
  32171. static="false" final="false" visibility="public"
  32172. deprecated="not deprecated">
  32173. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  32174. <exception name="IOException" type="java.io.IOException"/>
  32175. <doc>
  32176. <![CDATA[Get the information of the current state of the setup tasks of a job.
  32177. @param jobId the job to query.
  32178. @return the list of all of the setup tips.
  32179. @throws IOException]]>
  32180. </doc>
  32181. </method>
  32182. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  32183. abstract="false" native="false" synchronized="false"
  32184. static="false" final="false" visibility="public"
  32185. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  32186. <param name="jobId" type="java.lang.String"/>
  32187. <exception name="IOException" type="java.io.IOException"/>
  32188. <doc>
  32189. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  32190. </doc>
  32191. </method>
  32192. <method name="displayTasks"
  32193. abstract="false" native="false" synchronized="false"
  32194. static="false" final="false" visibility="public"
  32195. deprecated="not deprecated">
  32196. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  32197. <param name="type" type="java.lang.String"/>
  32198. <param name="state" type="java.lang.String"/>
  32199. <exception name="IOException" type="java.io.IOException"/>
  32200. <doc>
  32201. <![CDATA[Display the information about a job's tasks, of a particular type and
  32202. in a particular state
  32203. @param jobId the ID of the job
  32204. @param type the type of the task (map/reduce/setup/cleanup)
  32205. @param state the state of the task
  32206. (pending/running/completed/failed/killed)]]>
  32207. </doc>
  32208. </method>
  32209. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  32210. abstract="false" native="false" synchronized="false"
  32211. static="false" final="false" visibility="public"
  32212. deprecated="not deprecated">
  32213. <exception name="IOException" type="java.io.IOException"/>
  32214. <doc>
  32215. <![CDATA[Get status information about the Map-Reduce cluster.
  32216. @return the status information about the Map-Reduce cluster as an object
  32217. of {@link ClusterStatus}.
  32218. @throws IOException]]>
  32219. </doc>
  32220. </method>
  32221. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  32222. abstract="false" native="false" synchronized="false"
  32223. static="false" final="false" visibility="public"
  32224. deprecated="not deprecated">
  32225. <param name="detailed" type="boolean"/>
  32226. <exception name="IOException" type="java.io.IOException"/>
  32227. <doc>
  32228. <![CDATA[Get status information about the Map-Reduce cluster.
  32229. @param detailed if true then get a detailed status including the
  32230. tracker names
  32231. @return the status information about the Map-Reduce cluster as an object
  32232. of {@link ClusterStatus}.
  32233. @throws IOException]]>
  32234. </doc>
  32235. </method>
  32236. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  32237. abstract="false" native="false" synchronized="false"
  32238. static="false" final="false" visibility="public"
  32239. deprecated="not deprecated">
  32240. <exception name="IOException" type="java.io.IOException"/>
  32241. <doc>
  32242. <![CDATA[Get the jobs that are not completed and not failed.
  32243. @return array of {@link JobStatus} for the running/to-be-run jobs.
  32244. @throws IOException]]>
  32245. </doc>
  32246. </method>
  32247. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  32248. abstract="false" native="false" synchronized="false"
  32249. static="false" final="false" visibility="public"
  32250. deprecated="not deprecated">
  32251. <exception name="IOException" type="java.io.IOException"/>
  32252. <doc>
  32253. <![CDATA[Get the jobs that are submitted.
  32254. @return array of {@link JobStatus} for the submitted jobs.
  32255. @throws IOException]]>
  32256. </doc>
  32257. </method>
  32258. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  32259. abstract="false" native="false" synchronized="false"
  32260. static="true" final="false" visibility="public"
  32261. deprecated="not deprecated">
  32262. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32263. <exception name="IOException" type="java.io.IOException"/>
  32264. <doc>
  32265. <![CDATA[Utility that submits a job, then polls for progress until the job is
  32266. complete.
  32267. @param job the job configuration.
  32268. @throws IOException if the job fails]]>
  32269. </doc>
  32270. </method>
  32271. <method name="monitorAndPrintJob" return="boolean"
  32272. abstract="false" native="false" synchronized="false"
  32273. static="false" final="false" visibility="public"
  32274. deprecated="not deprecated">
  32275. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32276. <param name="job" type="org.apache.hadoop.mapred.RunningJob"/>
  32277. <exception name="IOException" type="java.io.IOException"/>
  32278. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  32279. <doc>
  32280. <![CDATA[Monitor a job and print status in real-time as progress is made and tasks
  32281. fail.
  32282. @param conf the job's configuration
  32283. @param job the job to track
  32284. @return true if the job succeeded
  32285. @throws IOException if communication to the JobTracker fails]]>
  32286. </doc>
  32287. </method>
  32288. <method name="setTaskOutputFilter"
  32289. abstract="false" native="false" synchronized="false"
  32290. static="false" final="false" visibility="public"
  32291. deprecated="not deprecated">
  32292. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  32293. <doc>
  32294. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  32295. output matches the filter.
  32296. @param newValue task filter.]]>
  32297. </doc>
  32298. </method>
  32299. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  32300. abstract="false" native="false" synchronized="false"
  32301. static="true" final="false" visibility="public"
  32302. deprecated="not deprecated">
  32303. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32304. <doc>
  32305. <![CDATA[Get the task output filter out of the JobConf.
  32306. @param job the JobConf to examine.
  32307. @return the filter level.]]>
  32308. </doc>
  32309. </method>
  32310. <method name="setTaskOutputFilter"
  32311. abstract="false" native="false" synchronized="false"
  32312. static="true" final="false" visibility="public"
  32313. deprecated="not deprecated">
  32314. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32315. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  32316. <doc>
  32317. <![CDATA[Modify the JobConf to set the task output filter.
  32318. @param job the JobConf to modify.
  32319. @param newValue the value to set.]]>
  32320. </doc>
  32321. </method>
  32322. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  32323. abstract="false" native="false" synchronized="false"
  32324. static="false" final="false" visibility="public"
  32325. deprecated="not deprecated">
  32326. <doc>
  32327. <![CDATA[Returns task output filter.
  32328. @return task filter.]]>
  32329. </doc>
  32330. </method>
  32331. <method name="run" return="int"
  32332. abstract="false" native="false" synchronized="false"
  32333. static="false" final="false" visibility="public"
  32334. deprecated="not deprecated">
  32335. <param name="argv" type="java.lang.String[]"/>
  32336. <exception name="Exception" type="java.lang.Exception"/>
  32337. </method>
  32338. <method name="getDefaultMaps" return="int"
  32339. abstract="false" native="false" synchronized="false"
  32340. static="false" final="false" visibility="public"
  32341. deprecated="not deprecated">
  32342. <exception name="IOException" type="java.io.IOException"/>
  32343. <doc>
  32344. <![CDATA[Get status information about the max available Maps in the cluster.
  32345. @return the max available Maps in the cluster
  32346. @throws IOException]]>
  32347. </doc>
  32348. </method>
  32349. <method name="getDefaultReduces" return="int"
  32350. abstract="false" native="false" synchronized="false"
  32351. static="false" final="false" visibility="public"
  32352. deprecated="not deprecated">
  32353. <exception name="IOException" type="java.io.IOException"/>
  32354. <doc>
  32355. <![CDATA[Get status information about the max available Reduces in the cluster.
  32356. @return the max available Reduces in the cluster
  32357. @throws IOException]]>
  32358. </doc>
  32359. </method>
  32360. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  32361. abstract="false" native="false" synchronized="false"
  32362. static="false" final="false" visibility="public"
  32363. deprecated="not deprecated">
  32364. <doc>
  32365. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  32366. @return the system directory where job-specific files are to be placed.]]>
  32367. </doc>
  32368. </method>
  32369. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  32370. abstract="false" native="false" synchronized="false"
  32371. static="false" final="false" visibility="public"
  32372. deprecated="not deprecated">
  32373. <exception name="IOException" type="java.io.IOException"/>
  32374. <doc>
  32375. <![CDATA[Return an array of queue information objects about all the Job Queues
  32376. configured.
  32377. @return Array of JobQueueInfo objects
  32378. @throws IOException]]>
  32379. </doc>
  32380. </method>
  32381. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  32382. abstract="false" native="false" synchronized="false"
  32383. static="false" final="false" visibility="public"
  32384. deprecated="not deprecated">
  32385. <param name="queueName" type="java.lang.String"/>
  32386. <exception name="IOException" type="java.io.IOException"/>
  32387. <doc>
  32388. <![CDATA[Gets all the jobs which were added to particular Job Queue
  32389. @param queueName name of the Job Queue
  32390. @return Array of jobs present in the job queue
  32391. @throws IOException]]>
  32392. </doc>
  32393. </method>
  32394. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  32395. abstract="false" native="false" synchronized="false"
  32396. static="false" final="false" visibility="public"
  32397. deprecated="not deprecated">
  32398. <param name="queueName" type="java.lang.String"/>
  32399. <exception name="IOException" type="java.io.IOException"/>
  32400. <doc>
  32401. <![CDATA[Gets the queue information associated to a particular Job Queue
  32402. @param queueName name of the job queue.
  32403. @return Queue information associated to particular queue.
  32404. @throws IOException]]>
  32405. </doc>
  32406. </method>
  32407. <method name="main"
  32408. abstract="false" native="false" synchronized="false"
  32409. static="true" final="false" visibility="public"
  32410. deprecated="not deprecated">
  32411. <param name="argv" type="java.lang.String[]"/>
  32412. <exception name="Exception" type="java.lang.Exception"/>
  32413. </method>
  32414. <doc>
  32415. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  32416. with the {@link JobTracker}.
  32417. <code>JobClient</code> provides facilities to submit jobs, track their
  32418. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  32419. status information etc.
  32420. <p>The job submission process involves:
  32421. <ol>
  32422. <li>
  32423. Checking the input and output specifications of the job.
  32424. </li>
  32425. <li>
  32426. Computing the {@link InputSplit}s for the job.
  32427. </li>
  32428. <li>
  32429. Setup the requisite accounting information for the {@link DistributedCache}
  32430. of the job, if necessary.
  32431. </li>
  32432. <li>
  32433. Copying the job's jar and configuration to the map-reduce system directory
  32434. on the distributed file-system.
  32435. </li>
  32436. <li>
  32437. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  32438. it's status.
  32439. </li>
  32440. </ol></p>
  32441. Normally the user creates the application, describes various facets of the
  32442. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  32443. the job and monitor its progress.
  32444. <p>Here is an example on how to use <code>JobClient</code>:</p>
  32445. <p><blockquote><pre>
  32446. // Create a new JobConf
  32447. JobConf job = new JobConf(new Configuration(), MyJob.class);
  32448. // Specify various job-specific parameters
  32449. job.setJobName("myjob");
  32450. job.setInputPath(new Path("in"));
  32451. job.setOutputPath(new Path("out"));
  32452. job.setMapperClass(MyJob.MyMapper.class);
  32453. job.setReducerClass(MyJob.MyReducer.class);
  32454. // Submit the job, then poll for progress until the job is complete
  32455. JobClient.runJob(job);
  32456. </pre></blockquote></p>
  32457. <h4 id="JobControl">Job Control</h4>
  32458. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  32459. which cannot be done via a single map-reduce job. This is fairly easy since
  32460. the output of the job, typically, goes to distributed file-system and that
  32461. can be used as the input for the next job.</p>
  32462. <p>However, this also means that the onus on ensuring jobs are complete
  32463. (success/failure) lies squarely on the clients. In such situations the
  32464. various job-control options are:
  32465. <ol>
  32466. <li>
  32467. {@link #runJob(JobConf)} : submits the job and returns only after
  32468. the job has completed.
  32469. </li>
  32470. <li>
  32471. {@link #submitJob(JobConf)} : only submits the job, then poll the
  32472. returned handle to the {@link RunningJob} to query status and make
  32473. scheduling decisions.
  32474. </li>
  32475. <li>
  32476. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  32477. on job-completion, thus avoiding polling.
  32478. </li>
  32479. </ol></p>
  32480. @see JobConf
  32481. @see ClusterStatus
  32482. @see Tool
  32483. @see DistributedCache]]>
  32484. </doc>
  32485. </class>
  32486. <!-- end class org.apache.hadoop.mapred.JobClient -->
  32487. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  32488. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum"
  32489. abstract="false"
  32490. static="true" final="true" visibility="public"
  32491. deprecated="not deprecated">
  32492. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  32493. abstract="false" native="false" synchronized="false"
  32494. static="true" final="false" visibility="public"
  32495. deprecated="not deprecated">
  32496. </method>
  32497. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  32498. abstract="false" native="false" synchronized="false"
  32499. static="true" final="false" visibility="public"
  32500. deprecated="not deprecated">
  32501. <param name="name" type="java.lang.String"/>
  32502. </method>
  32503. <field name="NONE" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  32504. transient="false" volatile="false"
  32505. static="true" final="true" visibility="public"
  32506. deprecated="not deprecated">
  32507. </field>
  32508. <field name="KILLED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  32509. transient="false" volatile="false"
  32510. static="true" final="true" visibility="public"
  32511. deprecated="not deprecated">
  32512. </field>
  32513. <field name="FAILED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  32514. transient="false" volatile="false"
  32515. static="true" final="true" visibility="public"
  32516. deprecated="not deprecated">
  32517. </field>
  32518. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  32519. transient="false" volatile="false"
  32520. static="true" final="true" visibility="public"
  32521. deprecated="not deprecated">
  32522. </field>
  32523. <field name="ALL" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  32524. transient="false" volatile="false"
  32525. static="true" final="true" visibility="public"
  32526. deprecated="not deprecated">
  32527. </field>
  32528. </class>
  32529. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  32530. <!-- start class org.apache.hadoop.mapred.JobConf -->
  32531. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  32532. abstract="false"
  32533. static="false" final="false" visibility="public"
  32534. deprecated="Use {@link Configuration} instead">
  32535. <constructor name="JobConf"
  32536. static="false" final="false" visibility="public"
  32537. deprecated="not deprecated">
  32538. <doc>
  32539. <![CDATA[Construct a map/reduce job configuration.]]>
  32540. </doc>
  32541. </constructor>
  32542. <constructor name="JobConf" type="java.lang.Class"
  32543. static="false" final="false" visibility="public"
  32544. deprecated="not deprecated">
  32545. <doc>
  32546. <![CDATA[Construct a map/reduce job configuration.
  32547. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  32548. </doc>
  32549. </constructor>
  32550. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  32551. static="false" final="false" visibility="public"
  32552. deprecated="not deprecated">
  32553. <doc>
  32554. <![CDATA[Construct a map/reduce job configuration.
  32555. @param conf a Configuration whose settings will be inherited.]]>
  32556. </doc>
  32557. </constructor>
  32558. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  32559. static="false" final="false" visibility="public"
  32560. deprecated="not deprecated">
  32561. <doc>
  32562. <![CDATA[Construct a map/reduce job configuration.
  32563. @param conf a Configuration whose settings will be inherited.
  32564. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  32565. </doc>
  32566. </constructor>
  32567. <constructor name="JobConf" type="java.lang.String"
  32568. static="false" final="false" visibility="public"
  32569. deprecated="not deprecated">
  32570. <doc>
  32571. <![CDATA[Construct a map/reduce configuration.
  32572. @param config a Configuration-format XML job description file.]]>
  32573. </doc>
  32574. </constructor>
  32575. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  32576. static="false" final="false" visibility="public"
  32577. deprecated="not deprecated">
  32578. <doc>
  32579. <![CDATA[Construct a map/reduce configuration.
  32580. @param config a Configuration-format XML job description file.]]>
  32581. </doc>
  32582. </constructor>
  32583. <constructor name="JobConf" type="boolean"
  32584. static="false" final="false" visibility="public"
  32585. deprecated="not deprecated">
  32586. <doc>
  32587. <![CDATA[A new map/reduce configuration where the behavior of reading from the
  32588. default resources can be turned off.
  32589. <p/>
  32590. If the parameter {@code loadDefaults} is false, the new instance
  32591. will not load resources from the default files.
  32592. @param loadDefaults specifies whether to load from the default files]]>
  32593. </doc>
  32594. </constructor>
  32595. <method name="getJar" return="java.lang.String"
  32596. abstract="false" native="false" synchronized="false"
  32597. static="false" final="false" visibility="public"
  32598. deprecated="not deprecated">
  32599. <doc>
  32600. <![CDATA[Get the user jar for the map-reduce job.
  32601. @return the user jar for the map-reduce job.]]>
  32602. </doc>
  32603. </method>
  32604. <method name="setJar"
  32605. abstract="false" native="false" synchronized="false"
  32606. static="false" final="false" visibility="public"
  32607. deprecated="not deprecated">
  32608. <param name="jar" type="java.lang.String"/>
  32609. <doc>
  32610. <![CDATA[Set the user jar for the map-reduce job.
  32611. @param jar the user jar for the map-reduce job.]]>
  32612. </doc>
  32613. </method>
  32614. <method name="setJarByClass"
  32615. abstract="false" native="false" synchronized="false"
  32616. static="false" final="false" visibility="public"
  32617. deprecated="not deprecated">
  32618. <param name="cls" type="java.lang.Class"/>
  32619. <doc>
  32620. <![CDATA[Set the job's jar file by finding an example class location.
  32621. @param cls the example class.]]>
  32622. </doc>
  32623. </method>
  32624. <method name="getLocalDirs" return="java.lang.String[]"
  32625. abstract="false" native="false" synchronized="false"
  32626. static="false" final="false" visibility="public"
  32627. deprecated="not deprecated">
  32628. <exception name="IOException" type="java.io.IOException"/>
  32629. </method>
  32630. <method name="deleteLocalFiles"
  32631. abstract="false" native="false" synchronized="false"
  32632. static="false" final="false" visibility="public"
  32633. deprecated="not deprecated">
  32634. <exception name="IOException" type="java.io.IOException"/>
  32635. </method>
  32636. <method name="deleteLocalFiles"
  32637. abstract="false" native="false" synchronized="false"
  32638. static="false" final="false" visibility="public"
  32639. deprecated="not deprecated">
  32640. <param name="subdir" type="java.lang.String"/>
  32641. <exception name="IOException" type="java.io.IOException"/>
  32642. </method>
  32643. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  32644. abstract="false" native="false" synchronized="false"
  32645. static="false" final="false" visibility="public"
  32646. deprecated="not deprecated">
  32647. <param name="pathString" type="java.lang.String"/>
  32648. <exception name="IOException" type="java.io.IOException"/>
  32649. <doc>
  32650. <![CDATA[Constructs a local file name. Files are distributed among configured
  32651. local directories.]]>
  32652. </doc>
  32653. </method>
  32654. <method name="getUser" return="java.lang.String"
  32655. abstract="false" native="false" synchronized="false"
  32656. static="false" final="false" visibility="public"
  32657. deprecated="not deprecated">
  32658. <doc>
  32659. <![CDATA[Get the reported username for this job.
  32660. @return the username]]>
  32661. </doc>
  32662. </method>
  32663. <method name="setUser"
  32664. abstract="false" native="false" synchronized="false"
  32665. static="false" final="false" visibility="public"
  32666. deprecated="not deprecated">
  32667. <param name="user" type="java.lang.String"/>
  32668. <doc>
  32669. <![CDATA[Set the reported username for this job.
  32670. @param user the username for this job.]]>
  32671. </doc>
  32672. </method>
  32673. <method name="setKeepFailedTaskFiles"
  32674. abstract="false" native="false" synchronized="false"
  32675. static="false" final="false" visibility="public"
  32676. deprecated="not deprecated">
  32677. <param name="keep" type="boolean"/>
  32678. <doc>
  32679. <![CDATA[Set whether the framework should keep the intermediate files for
  32680. failed tasks.
  32681. @param keep <code>true</code> if framework should keep the intermediate files
  32682. for failed tasks, <code>false</code> otherwise.]]>
  32683. </doc>
  32684. </method>
  32685. <method name="getKeepFailedTaskFiles" return="boolean"
  32686. abstract="false" native="false" synchronized="false"
  32687. static="false" final="false" visibility="public"
  32688. deprecated="not deprecated">
  32689. <doc>
  32690. <![CDATA[Should the temporary files for failed tasks be kept?
  32691. @return should the files be kept?]]>
  32692. </doc>
  32693. </method>
  32694. <method name="setKeepTaskFilesPattern"
  32695. abstract="false" native="false" synchronized="false"
  32696. static="false" final="false" visibility="public"
  32697. deprecated="not deprecated">
  32698. <param name="pattern" type="java.lang.String"/>
  32699. <doc>
  32700. <![CDATA[Set a regular expression for task names that should be kept.
  32701. The regular expression ".*_m_000123_0" would keep the files
  32702. for the first instance of map 123 that ran.
  32703. @param pattern the java.util.regex.Pattern to match against the
  32704. task names.]]>
  32705. </doc>
  32706. </method>
  32707. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  32708. abstract="false" native="false" synchronized="false"
  32709. static="false" final="false" visibility="public"
  32710. deprecated="not deprecated">
  32711. <doc>
  32712. <![CDATA[Get the regular expression that is matched against the task names
  32713. to see if we need to keep the files.
  32714. @return the pattern as a string, if it was set, othewise null.]]>
  32715. </doc>
  32716. </method>
  32717. <method name="setWorkingDirectory"
  32718. abstract="false" native="false" synchronized="false"
  32719. static="false" final="false" visibility="public"
  32720. deprecated="not deprecated">
  32721. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  32722. <doc>
  32723. <![CDATA[Set the current working directory for the default file system.
  32724. @param dir the new current working directory.]]>
  32725. </doc>
  32726. </method>
  32727. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  32728. abstract="false" native="false" synchronized="false"
  32729. static="false" final="false" visibility="public"
  32730. deprecated="not deprecated">
  32731. <doc>
  32732. <![CDATA[Get the current working directory for the default file system.
  32733. @return the directory name.]]>
  32734. </doc>
  32735. </method>
  32736. <method name="setNumTasksToExecutePerJvm"
  32737. abstract="false" native="false" synchronized="false"
  32738. static="false" final="false" visibility="public"
  32739. deprecated="not deprecated">
  32740. <param name="numTasks" type="int"/>
  32741. <doc>
  32742. <![CDATA[Sets the number of tasks that a spawned task JVM should run
  32743. before it exits
  32744. @param numTasks the number of tasks to execute; defaults to 1;
  32745. -1 signifies no limit]]>
  32746. </doc>
  32747. </method>
  32748. <method name="getNumTasksToExecutePerJvm" return="int"
  32749. abstract="false" native="false" synchronized="false"
  32750. static="false" final="false" visibility="public"
  32751. deprecated="not deprecated">
  32752. <doc>
  32753. <![CDATA[Get the number of tasks that a spawned JVM should execute]]>
  32754. </doc>
  32755. </method>
  32756. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  32757. abstract="false" native="false" synchronized="false"
  32758. static="false" final="false" visibility="public"
  32759. deprecated="not deprecated">
  32760. <doc>
  32761. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  32762. defaults to {@link TextInputFormat} if not specified explicity.
  32763. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  32764. </doc>
  32765. </method>
  32766. <method name="setInputFormat"
  32767. abstract="false" native="false" synchronized="false"
  32768. static="false" final="false" visibility="public"
  32769. deprecated="not deprecated">
  32770. <param name="theClass" type="java.lang.Class"/>
  32771. <doc>
  32772. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  32773. @param theClass the {@link InputFormat} implementation for the map-reduce
  32774. job.]]>
  32775. </doc>
  32776. </method>
  32777. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  32778. abstract="false" native="false" synchronized="false"
  32779. static="false" final="false" visibility="public"
  32780. deprecated="not deprecated">
  32781. <doc>
  32782. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  32783. defaults to {@link TextOutputFormat} if not specified explicity.
  32784. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  32785. </doc>
  32786. </method>
  32787. <method name="getOutputCommitter" return="org.apache.hadoop.mapred.OutputCommitter"
  32788. abstract="false" native="false" synchronized="false"
  32789. static="false" final="false" visibility="public"
  32790. deprecated="not deprecated">
  32791. <doc>
  32792. <![CDATA[Get the {@link OutputCommitter} implementation for the map-reduce job,
  32793. defaults to {@link FileOutputCommitter} if not specified explicitly.
  32794. @return the {@link OutputCommitter} implementation for the map-reduce job.]]>
  32795. </doc>
  32796. </method>
  32797. <method name="setOutputCommitter"
  32798. abstract="false" native="false" synchronized="false"
  32799. static="false" final="false" visibility="public"
  32800. deprecated="not deprecated">
  32801. <param name="theClass" type="java.lang.Class"/>
  32802. <doc>
  32803. <![CDATA[Set the {@link OutputCommitter} implementation for the map-reduce job.
  32804. @param theClass the {@link OutputCommitter} implementation for the map-reduce
  32805. job.]]>
  32806. </doc>
  32807. </method>
  32808. <method name="setOutputFormat"
  32809. abstract="false" native="false" synchronized="false"
  32810. static="false" final="false" visibility="public"
  32811. deprecated="not deprecated">
  32812. <param name="theClass" type="java.lang.Class"/>
  32813. <doc>
  32814. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  32815. @param theClass the {@link OutputFormat} implementation for the map-reduce
  32816. job.]]>
  32817. </doc>
  32818. </method>
  32819. <method name="setCompressMapOutput"
  32820. abstract="false" native="false" synchronized="false"
  32821. static="false" final="false" visibility="public"
  32822. deprecated="not deprecated">
  32823. <param name="compress" type="boolean"/>
  32824. <doc>
  32825. <![CDATA[Should the map outputs be compressed before transfer?
  32826. Uses the SequenceFile compression.
  32827. @param compress should the map outputs be compressed?]]>
  32828. </doc>
  32829. </method>
  32830. <method name="getCompressMapOutput" return="boolean"
  32831. abstract="false" native="false" synchronized="false"
  32832. static="false" final="false" visibility="public"
  32833. deprecated="not deprecated">
  32834. <doc>
  32835. <![CDATA[Are the outputs of the maps be compressed?
  32836. @return <code>true</code> if the outputs of the maps are to be compressed,
  32837. <code>false</code> otherwise.]]>
  32838. </doc>
  32839. </method>
  32840. <method name="setMapOutputCompressorClass"
  32841. abstract="false" native="false" synchronized="false"
  32842. static="false" final="false" visibility="public"
  32843. deprecated="not deprecated">
  32844. <param name="codecClass" type="java.lang.Class"/>
  32845. <doc>
  32846. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  32847. @param codecClass the {@link CompressionCodec} class that will compress
  32848. the map outputs.]]>
  32849. </doc>
  32850. </method>
  32851. <method name="getMapOutputCompressorClass" return="java.lang.Class"
  32852. abstract="false" native="false" synchronized="false"
  32853. static="false" final="false" visibility="public"
  32854. deprecated="not deprecated">
  32855. <param name="defaultValue" type="java.lang.Class"/>
  32856. <doc>
  32857. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  32858. @param defaultValue the {@link CompressionCodec} to return if not set
  32859. @return the {@link CompressionCodec} class that should be used to compress the
  32860. map outputs.
  32861. @throws IllegalArgumentException if the class was specified, but not found]]>
  32862. </doc>
  32863. </method>
  32864. <method name="getMapOutputKeyClass" return="java.lang.Class"
  32865. abstract="false" native="false" synchronized="false"
  32866. static="false" final="false" visibility="public"
  32867. deprecated="not deprecated">
  32868. <doc>
  32869. <![CDATA[Get the key class for the map output data. If it is not set, use the
  32870. (final) output key class. This allows the map output key class to be
  32871. different than the final output key class.
  32872. @return the map output key class.]]>
  32873. </doc>
  32874. </method>
  32875. <method name="setMapOutputKeyClass"
  32876. abstract="false" native="false" synchronized="false"
  32877. static="false" final="false" visibility="public"
  32878. deprecated="not deprecated">
  32879. <param name="theClass" type="java.lang.Class"/>
  32880. <doc>
  32881. <![CDATA[Set the key class for the map output data. This allows the user to
  32882. specify the map output key class to be different than the final output
  32883. value class.
  32884. @param theClass the map output key class.]]>
  32885. </doc>
  32886. </method>
  32887. <method name="getMapOutputValueClass" return="java.lang.Class"
  32888. abstract="false" native="false" synchronized="false"
  32889. static="false" final="false" visibility="public"
  32890. deprecated="not deprecated">
  32891. <doc>
  32892. <![CDATA[Get the value class for the map output data. If it is not set, use the
  32893. (final) output value class This allows the map output value class to be
  32894. different than the final output value class.
  32895. @return the map output value class.]]>
  32896. </doc>
  32897. </method>
  32898. <method name="setMapOutputValueClass"
  32899. abstract="false" native="false" synchronized="false"
  32900. static="false" final="false" visibility="public"
  32901. deprecated="not deprecated">
  32902. <param name="theClass" type="java.lang.Class"/>
  32903. <doc>
  32904. <![CDATA[Set the value class for the map output data. This allows the user to
  32905. specify the map output value class to be different than the final output
  32906. value class.
  32907. @param theClass the map output value class.]]>
  32908. </doc>
  32909. </method>
  32910. <method name="getOutputKeyClass" return="java.lang.Class"
  32911. abstract="false" native="false" synchronized="false"
  32912. static="false" final="false" visibility="public"
  32913. deprecated="not deprecated">
  32914. <doc>
  32915. <![CDATA[Get the key class for the job output data.
  32916. @return the key class for the job output data.]]>
  32917. </doc>
  32918. </method>
  32919. <method name="setOutputKeyClass"
  32920. abstract="false" native="false" synchronized="false"
  32921. static="false" final="false" visibility="public"
  32922. deprecated="not deprecated">
  32923. <param name="theClass" type="java.lang.Class"/>
  32924. <doc>
  32925. <![CDATA[Set the key class for the job output data.
  32926. @param theClass the key class for the job output data.]]>
  32927. </doc>
  32928. </method>
  32929. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  32930. abstract="false" native="false" synchronized="false"
  32931. static="false" final="false" visibility="public"
  32932. deprecated="not deprecated">
  32933. <doc>
  32934. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  32935. @return the {@link RawComparator} comparator used to compare keys.]]>
  32936. </doc>
  32937. </method>
  32938. <method name="setOutputKeyComparatorClass"
  32939. abstract="false" native="false" synchronized="false"
  32940. static="false" final="false" visibility="public"
  32941. deprecated="not deprecated">
  32942. <param name="theClass" type="java.lang.Class"/>
  32943. <doc>
  32944. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  32945. @param theClass the {@link RawComparator} comparator used to
  32946. compare keys.
  32947. @see #setOutputValueGroupingComparator(Class)]]>
  32948. </doc>
  32949. </method>
  32950. <method name="setKeyFieldComparatorOptions"
  32951. abstract="false" native="false" synchronized="false"
  32952. static="false" final="false" visibility="public"
  32953. deprecated="not deprecated">
  32954. <param name="keySpec" type="java.lang.String"/>
  32955. <doc>
  32956. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  32957. @param keySpec the key specification of the form -k pos1[,pos2], where,
  32958. pos is of the form f[.c][opts], where f is the number
  32959. of the key field to use, and c is the number of the first character from
  32960. the beginning of the field. Fields and character posns are numbered
  32961. starting with 1; a character position of zero in pos2 indicates the
  32962. field's last character. If '.c' is omitted from pos1, it defaults to 1
  32963. (the beginning of the field); if omitted from pos2, it defaults to 0
  32964. (the end of the field). opts are ordering options. The supported options
  32965. are:
  32966. -n, (Sort numerically)
  32967. -r, (Reverse the result of comparison)]]>
  32968. </doc>
  32969. </method>
  32970. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  32971. abstract="false" native="false" synchronized="false"
  32972. static="false" final="false" visibility="public"
  32973. deprecated="not deprecated">
  32974. <doc>
  32975. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  32976. </doc>
  32977. </method>
  32978. <method name="setKeyFieldPartitionerOptions"
  32979. abstract="false" native="false" synchronized="false"
  32980. static="false" final="false" visibility="public"
  32981. deprecated="not deprecated">
  32982. <param name="keySpec" type="java.lang.String"/>
  32983. <doc>
  32984. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  32985. {@link Partitioner}
  32986. @param keySpec the key specification of the form -k pos1[,pos2], where,
  32987. pos is of the form f[.c][opts], where f is the number
  32988. of the key field to use, and c is the number of the first character from
  32989. the beginning of the field. Fields and character posns are numbered
  32990. starting with 1; a character position of zero in pos2 indicates the
  32991. field's last character. If '.c' is omitted from pos1, it defaults to 1
  32992. (the beginning of the field); if omitted from pos2, it defaults to 0
  32993. (the end of the field).]]>
  32994. </doc>
  32995. </method>
  32996. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  32997. abstract="false" native="false" synchronized="false"
  32998. static="false" final="false" visibility="public"
  32999. deprecated="not deprecated">
  33000. <doc>
  33001. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  33002. </doc>
  33003. </method>
  33004. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  33005. abstract="false" native="false" synchronized="false"
  33006. static="false" final="false" visibility="public"
  33007. deprecated="not deprecated">
  33008. <doc>
  33009. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  33010. grouping keys of inputs to the reduce.
  33011. @return comparator set by the user for grouping values.
  33012. @see #setOutputValueGroupingComparator(Class) for details.]]>
  33013. </doc>
  33014. </method>
  33015. <method name="setOutputValueGroupingComparator"
  33016. abstract="false" native="false" synchronized="false"
  33017. static="false" final="false" visibility="public"
  33018. deprecated="not deprecated">
  33019. <param name="theClass" type="java.lang.Class"/>
  33020. <doc>
  33021. <![CDATA[Set the user defined {@link RawComparator} comparator for
  33022. grouping keys in the input to the reduce.
  33023. <p>This comparator should be provided if the equivalence rules for keys
  33024. for sorting the intermediates are different from those for grouping keys
  33025. before each call to
  33026. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  33027. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  33028. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  33029. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  33030. how keys are sorted, this can be used in conjunction to simulate
  33031. <i>secondary sort on values</i>.</p>
  33032. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  33033. <i>stable</i> in any sense. (In any case, with the order of available
  33034. map-outputs to the reduce being non-deterministic, it wouldn't make
  33035. that much sense.)</p>
  33036. @param theClass the comparator class to be used for grouping keys.
  33037. It should implement <code>RawComparator</code>.
  33038. @see #setOutputKeyComparatorClass(Class)]]>
  33039. </doc>
  33040. </method>
  33041. <method name="getUseNewMapper" return="boolean"
  33042. abstract="false" native="false" synchronized="false"
  33043. static="false" final="false" visibility="public"
  33044. deprecated="not deprecated">
  33045. <doc>
  33046. <![CDATA[Should the framework use the new context-object code for running
  33047. the mapper?
  33048. @return true, if the new api should be used]]>
  33049. </doc>
  33050. </method>
  33051. <method name="setUseNewMapper"
  33052. abstract="false" native="false" synchronized="false"
  33053. static="false" final="false" visibility="public"
  33054. deprecated="not deprecated">
  33055. <param name="flag" type="boolean"/>
  33056. <doc>
  33057. <![CDATA[Set whether the framework should use the new api for the mapper.
  33058. This is the default for jobs submitted with the new Job api.
  33059. @param flag true, if the new api should be used]]>
  33060. </doc>
  33061. </method>
  33062. <method name="getUseNewReducer" return="boolean"
  33063. abstract="false" native="false" synchronized="false"
  33064. static="false" final="false" visibility="public"
  33065. deprecated="not deprecated">
  33066. <doc>
  33067. <![CDATA[Should the framework use the new context-object code for running
  33068. the reducer?
  33069. @return true, if the new api should be used]]>
  33070. </doc>
  33071. </method>
  33072. <method name="setUseNewReducer"
  33073. abstract="false" native="false" synchronized="false"
  33074. static="false" final="false" visibility="public"
  33075. deprecated="not deprecated">
  33076. <param name="flag" type="boolean"/>
  33077. <doc>
  33078. <![CDATA[Set whether the framework should use the new api for the reducer.
  33079. This is the default for jobs submitted with the new Job api.
  33080. @param flag true, if the new api should be used]]>
  33081. </doc>
  33082. </method>
  33083. <method name="getOutputValueClass" return="java.lang.Class"
  33084. abstract="false" native="false" synchronized="false"
  33085. static="false" final="false" visibility="public"
  33086. deprecated="not deprecated">
  33087. <doc>
  33088. <![CDATA[Get the value class for job outputs.
  33089. @return the value class for job outputs.]]>
  33090. </doc>
  33091. </method>
  33092. <method name="setOutputValueClass"
  33093. abstract="false" native="false" synchronized="false"
  33094. static="false" final="false" visibility="public"
  33095. deprecated="not deprecated">
  33096. <param name="theClass" type="java.lang.Class"/>
  33097. <doc>
  33098. <![CDATA[Set the value class for job outputs.
  33099. @param theClass the value class for job outputs.]]>
  33100. </doc>
  33101. </method>
  33102. <method name="getMapperClass" return="java.lang.Class"
  33103. abstract="false" native="false" synchronized="false"
  33104. static="false" final="false" visibility="public"
  33105. deprecated="not deprecated">
  33106. <doc>
  33107. <![CDATA[Get the {@link Mapper} class for the job.
  33108. @return the {@link Mapper} class for the job.]]>
  33109. </doc>
  33110. </method>
  33111. <method name="setMapperClass"
  33112. abstract="false" native="false" synchronized="false"
  33113. static="false" final="false" visibility="public"
  33114. deprecated="not deprecated">
  33115. <param name="theClass" type="java.lang.Class"/>
  33116. <doc>
  33117. <![CDATA[Set the {@link Mapper} class for the job.
  33118. @param theClass the {@link Mapper} class for the job.]]>
  33119. </doc>
  33120. </method>
  33121. <method name="getMapRunnerClass" return="java.lang.Class"
  33122. abstract="false" native="false" synchronized="false"
  33123. static="false" final="false" visibility="public"
  33124. deprecated="not deprecated">
  33125. <doc>
  33126. <![CDATA[Get the {@link MapRunnable} class for the job.
  33127. @return the {@link MapRunnable} class for the job.]]>
  33128. </doc>
  33129. </method>
  33130. <method name="setMapRunnerClass"
  33131. abstract="false" native="false" synchronized="false"
  33132. static="false" final="false" visibility="public"
  33133. deprecated="not deprecated">
  33134. <param name="theClass" type="java.lang.Class"/>
  33135. <doc>
  33136. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  33137. Typically used to exert greater control on {@link Mapper}s.
  33138. @param theClass the {@link MapRunnable} class for the job.]]>
  33139. </doc>
  33140. </method>
  33141. <method name="getPartitionerClass" return="java.lang.Class"
  33142. abstract="false" native="false" synchronized="false"
  33143. static="false" final="false" visibility="public"
  33144. deprecated="not deprecated">
  33145. <doc>
  33146. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  33147. to be sent to the {@link Reducer}s.
  33148. @return the {@link Partitioner} used to partition map-outputs.]]>
  33149. </doc>
  33150. </method>
  33151. <method name="setPartitionerClass"
  33152. abstract="false" native="false" synchronized="false"
  33153. static="false" final="false" visibility="public"
  33154. deprecated="not deprecated">
  33155. <param name="theClass" type="java.lang.Class"/>
  33156. <doc>
  33157. <![CDATA[Set the {@link Partitioner} class used to partition
  33158. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  33159. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  33160. </doc>
  33161. </method>
  33162. <method name="getReducerClass" return="java.lang.Class"
  33163. abstract="false" native="false" synchronized="false"
  33164. static="false" final="false" visibility="public"
  33165. deprecated="not deprecated">
  33166. <doc>
  33167. <![CDATA[Get the {@link Reducer} class for the job.
  33168. @return the {@link Reducer} class for the job.]]>
  33169. </doc>
  33170. </method>
  33171. <method name="setReducerClass"
  33172. abstract="false" native="false" synchronized="false"
  33173. static="false" final="false" visibility="public"
  33174. deprecated="not deprecated">
  33175. <param name="theClass" type="java.lang.Class"/>
  33176. <doc>
  33177. <![CDATA[Set the {@link Reducer} class for the job.
  33178. @param theClass the {@link Reducer} class for the job.]]>
  33179. </doc>
  33180. </method>
  33181. <method name="getCombinerClass" return="java.lang.Class"
  33182. abstract="false" native="false" synchronized="false"
  33183. static="false" final="false" visibility="public"
  33184. deprecated="not deprecated">
  33185. <doc>
  33186. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  33187. before being sent to the reducers. Typically the combiner is same as the
  33188. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  33189. @return the user-defined combiner class used to combine map-outputs.]]>
  33190. </doc>
  33191. </method>
  33192. <method name="setCombinerClass"
  33193. abstract="false" native="false" synchronized="false"
  33194. static="false" final="false" visibility="public"
  33195. deprecated="not deprecated">
  33196. <param name="theClass" type="java.lang.Class"/>
  33197. <doc>
  33198. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  33199. before being sent to the reducers.
  33200. <p>The combiner is an application-specified aggregation operation, which
  33201. can help cut down the amount of data transferred between the
  33202. {@link Mapper} and the {@link Reducer}, leading to better performance.</p>
  33203. <p>The framework may invoke the combiner 0, 1, or multiple times, in both
  33204. the mapper and reducer tasks. In general, the combiner is called as the
  33205. sort/merge result is written to disk. The combiner must:
  33206. <ul>
  33207. <li> be side-effect free</li>
  33208. <li> have the same input and output key types and the same input and
  33209. output value types</li>
  33210. </ul></p>
  33211. <p>Typically the combiner is same as the <code>Reducer</code> for the
  33212. job i.e. {@link #setReducerClass(Class)}.</p>
  33213. @param theClass the user-defined combiner class used to combine
  33214. map-outputs.]]>
  33215. </doc>
  33216. </method>
  33217. <method name="getSpeculativeExecution" return="boolean"
  33218. abstract="false" native="false" synchronized="false"
  33219. static="false" final="false" visibility="public"
  33220. deprecated="not deprecated">
  33221. <doc>
  33222. <![CDATA[Should speculative execution be used for this job?
  33223. Defaults to <code>true</code>.
  33224. @return <code>true</code> if speculative execution be used for this job,
  33225. <code>false</code> otherwise.]]>
  33226. </doc>
  33227. </method>
  33228. <method name="setSpeculativeExecution"
  33229. abstract="false" native="false" synchronized="false"
  33230. static="false" final="false" visibility="public"
  33231. deprecated="not deprecated">
  33232. <param name="speculativeExecution" type="boolean"/>
  33233. <doc>
  33234. <![CDATA[Turn speculative execution on or off for this job.
  33235. @param speculativeExecution <code>true</code> if speculative execution
  33236. should be turned on, else <code>false</code>.]]>
  33237. </doc>
  33238. </method>
  33239. <method name="getMapSpeculativeExecution" return="boolean"
  33240. abstract="false" native="false" synchronized="false"
  33241. static="false" final="false" visibility="public"
  33242. deprecated="not deprecated">
  33243. <doc>
  33244. <![CDATA[Should speculative execution be used for this job for map tasks?
  33245. Defaults to <code>true</code>.
  33246. @return <code>true</code> if speculative execution be
  33247. used for this job for map tasks,
  33248. <code>false</code> otherwise.]]>
  33249. </doc>
  33250. </method>
  33251. <method name="setMapSpeculativeExecution"
  33252. abstract="false" native="false" synchronized="false"
  33253. static="false" final="false" visibility="public"
  33254. deprecated="not deprecated">
  33255. <param name="speculativeExecution" type="boolean"/>
  33256. <doc>
  33257. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  33258. @param speculativeExecution <code>true</code> if speculative execution
  33259. should be turned on for map tasks,
  33260. else <code>false</code>.]]>
  33261. </doc>
  33262. </method>
  33263. <method name="getReduceSpeculativeExecution" return="boolean"
  33264. abstract="false" native="false" synchronized="false"
  33265. static="false" final="false" visibility="public"
  33266. deprecated="not deprecated">
  33267. <doc>
  33268. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  33269. Defaults to <code>true</code>.
  33270. @return <code>true</code> if speculative execution be used
  33271. for reduce tasks for this job,
  33272. <code>false</code> otherwise.]]>
  33273. </doc>
  33274. </method>
  33275. <method name="setReduceSpeculativeExecution"
  33276. abstract="false" native="false" synchronized="false"
  33277. static="false" final="false" visibility="public"
  33278. deprecated="not deprecated">
  33279. <param name="speculativeExecution" type="boolean"/>
  33280. <doc>
  33281. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  33282. @param speculativeExecution <code>true</code> if speculative execution
  33283. should be turned on for reduce tasks,
  33284. else <code>false</code>.]]>
  33285. </doc>
  33286. </method>
  33287. <method name="getNumMapTasks" return="int"
  33288. abstract="false" native="false" synchronized="false"
  33289. static="false" final="false" visibility="public"
  33290. deprecated="not deprecated">
  33291. <doc>
  33292. <![CDATA[Get configured the number of reduce tasks for this job.
  33293. Defaults to <code>1</code>.
  33294. @return the number of reduce tasks for this job.]]>
  33295. </doc>
  33296. </method>
  33297. <method name="setNumMapTasks"
  33298. abstract="false" native="false" synchronized="false"
  33299. static="false" final="false" visibility="public"
  33300. deprecated="not deprecated">
  33301. <param name="n" type="int"/>
  33302. <doc>
  33303. <![CDATA[Set the number of map tasks for this job.
  33304. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  33305. number of spawned map tasks depends on the number of {@link InputSplit}s
  33306. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  33307. A custom {@link InputFormat} is typically used to accurately control
  33308. the number of map tasks for the job.</p>
  33309. <h4 id="NoOfMaps">How many maps?</h4>
  33310. <p>The number of maps is usually driven by the total size of the inputs
  33311. i.e. total number of blocks of the input files.</p>
  33312. <p>The right level of parallelism for maps seems to be around 10-100 maps
  33313. per-node, although it has been set up to 300 or so for very cpu-light map
  33314. tasks. Task setup takes awhile, so it is best if the maps take at least a
  33315. minute to execute.</p>
  33316. <p>The default behavior of file-based {@link InputFormat}s is to split the
  33317. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  33318. bytes, of input files. However, the {@link FileSystem} blocksize of the
  33319. input files is treated as an upper bound for input splits. A lower bound
  33320. on the split size can be set via
  33321. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  33322. mapred.min.split.size</a>.</p>
  33323. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  33324. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  33325. used to set it even higher.</p>
  33326. @param n the number of map tasks for this job.
  33327. @see InputFormat#getSplits(JobConf, int)
  33328. @see FileInputFormat
  33329. @see FileSystem#getDefaultBlockSize()
  33330. @see FileStatus#getBlockSize()]]>
  33331. </doc>
  33332. </method>
  33333. <method name="getNumReduceTasks" return="int"
  33334. abstract="false" native="false" synchronized="false"
  33335. static="false" final="false" visibility="public"
  33336. deprecated="not deprecated">
  33337. <doc>
  33338. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  33339. <code>1</code>.
  33340. @return the number of reduce tasks for this job.]]>
  33341. </doc>
  33342. </method>
  33343. <method name="setNumReduceTasks"
  33344. abstract="false" native="false" synchronized="false"
  33345. static="false" final="false" visibility="public"
  33346. deprecated="not deprecated">
  33347. <param name="n" type="int"/>
  33348. <doc>
  33349. <![CDATA[Set the requisite number of reduce tasks for this job.
  33350. <h4 id="NoOfReduces">How many reduces?</h4>
  33351. <p>The right number of reduces seems to be <code>0.95</code> or
  33352. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  33353. <a href="{@docRoot}/../mapred-default.html#mapred.tasktracker.reduce.tasks.maximum">
  33354. mapred.tasktracker.reduce.tasks.maximum</a>).
  33355. </p>
  33356. <p>With <code>0.95</code> all of the reduces can launch immediately and
  33357. start transfering map outputs as the maps finish. With <code>1.75</code>
  33358. the faster nodes will finish their first round of reduces and launch a
  33359. second wave of reduces doing a much better job of load balancing.</p>
  33360. <p>Increasing the number of reduces increases the framework overhead, but
  33361. increases load balancing and lowers the cost of failures.</p>
  33362. <p>The scaling factors above are slightly less than whole numbers to
  33363. reserve a few reduce slots in the framework for speculative-tasks, failures
  33364. etc.</p>
  33365. <h4 id="ReducerNone">Reducer NONE</h4>
  33366. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  33367. <p>In this case the output of the map-tasks directly go to distributed
  33368. file-system, to the path set by
  33369. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  33370. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  33371. @param n the number of reduce tasks for this job.]]>
  33372. </doc>
  33373. </method>
  33374. <method name="getMaxMapAttempts" return="int"
  33375. abstract="false" native="false" synchronized="false"
  33376. static="false" final="false" visibility="public"
  33377. deprecated="not deprecated">
  33378. <doc>
  33379. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  33380. map task, as specified by the <code>mapred.map.max.attempts</code>
  33381. property. If this property is not already set, the default is 4 attempts.
  33382. @return the max number of attempts per map task.]]>
  33383. </doc>
  33384. </method>
  33385. <method name="setMaxMapAttempts"
  33386. abstract="false" native="false" synchronized="false"
  33387. static="false" final="false" visibility="public"
  33388. deprecated="not deprecated">
  33389. <param name="n" type="int"/>
  33390. <doc>
  33391. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  33392. map task.
  33393. @param n the number of attempts per map task.]]>
  33394. </doc>
  33395. </method>
  33396. <method name="getMaxReduceAttempts" return="int"
  33397. abstract="false" native="false" synchronized="false"
  33398. static="false" final="false" visibility="public"
  33399. deprecated="not deprecated">
  33400. <doc>
  33401. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  33402. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  33403. property. If this property is not already set, the default is 4 attempts.
  33404. @return the max number of attempts per reduce task.]]>
  33405. </doc>
  33406. </method>
  33407. <method name="setMaxReduceAttempts"
  33408. abstract="false" native="false" synchronized="false"
  33409. static="false" final="false" visibility="public"
  33410. deprecated="not deprecated">
  33411. <param name="n" type="int"/>
  33412. <doc>
  33413. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  33414. reduce task.
  33415. @param n the number of attempts per reduce task.]]>
  33416. </doc>
  33417. </method>
  33418. <method name="getJobName" return="java.lang.String"
  33419. abstract="false" native="false" synchronized="false"
  33420. static="false" final="false" visibility="public"
  33421. deprecated="not deprecated">
  33422. <doc>
  33423. <![CDATA[Get the user-specified job name. This is only used to identify the
  33424. job to the user.
  33425. @return the job's name, defaulting to "".]]>
  33426. </doc>
  33427. </method>
  33428. <method name="setJobName"
  33429. abstract="false" native="false" synchronized="false"
  33430. static="false" final="false" visibility="public"
  33431. deprecated="not deprecated">
  33432. <param name="name" type="java.lang.String"/>
  33433. <doc>
  33434. <![CDATA[Set the user-specified job name.
  33435. @param name the job's new name.]]>
  33436. </doc>
  33437. </method>
  33438. <method name="getSessionId" return="java.lang.String"
  33439. abstract="false" native="false" synchronized="false"
  33440. static="false" final="false" visibility="public"
  33441. deprecated="not deprecated">
  33442. <doc>
  33443. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  33444. The session identifier is used to tag metric data that is reported to some
  33445. performance metrics system via the org.apache.hadoop.metrics API. The
  33446. session identifier is intended, in particular, for use by Hadoop-On-Demand
  33447. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  33448. HOD will set the session identifier by modifying the mapred-site.xml file
  33449. before starting the cluster.
  33450. When not running under HOD, this identifer is expected to remain set to
  33451. the empty string.
  33452. @return the session identifier, defaulting to "".]]>
  33453. </doc>
  33454. </method>
  33455. <method name="setSessionId"
  33456. abstract="false" native="false" synchronized="false"
  33457. static="false" final="false" visibility="public"
  33458. deprecated="not deprecated">
  33459. <param name="sessionId" type="java.lang.String"/>
  33460. <doc>
  33461. <![CDATA[Set the user-specified session identifier.
  33462. @param sessionId the new session id.]]>
  33463. </doc>
  33464. </method>
  33465. <method name="setMaxTaskFailuresPerTracker"
  33466. abstract="false" native="false" synchronized="false"
  33467. static="false" final="false" visibility="public"
  33468. deprecated="not deprecated">
  33469. <param name="noFailures" type="int"/>
  33470. <doc>
  33471. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  33472. If the no. of task failures exceeds <code>noFailures</code>, the
  33473. tasktracker is <i>blacklisted</i> for this job.
  33474. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  33475. </doc>
  33476. </method>
  33477. <method name="getMaxTaskFailuresPerTracker" return="int"
  33478. abstract="false" native="false" synchronized="false"
  33479. static="false" final="false" visibility="public"
  33480. deprecated="not deprecated">
  33481. <doc>
  33482. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  33483. If the no. of task failures exceeds this, the tasktracker is
  33484. <i>blacklisted</i> for this job.
  33485. @return the maximum no. of failures of a given job per tasktracker.]]>
  33486. </doc>
  33487. </method>
  33488. <method name="getMaxMapTaskFailuresPercent" return="int"
  33489. abstract="false" native="false" synchronized="false"
  33490. static="false" final="false" visibility="public"
  33491. deprecated="not deprecated">
  33492. <doc>
  33493. <![CDATA[Get the maximum percentage of map tasks that can fail without
  33494. the job being aborted.
  33495. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  33496. attempts before being declared as <i>failed</i>.
  33497. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  33498. the job being declared as {@link JobStatus#FAILED}.
  33499. @return the maximum percentage of map tasks that can fail without
  33500. the job being aborted.]]>
  33501. </doc>
  33502. </method>
  33503. <method name="setMaxMapTaskFailuresPercent"
  33504. abstract="false" native="false" synchronized="false"
  33505. static="false" final="false" visibility="public"
  33506. deprecated="not deprecated">
  33507. <param name="percent" type="int"/>
  33508. <doc>
  33509. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  33510. job being aborted.
  33511. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  33512. before being declared as <i>failed</i>.
  33513. @param percent the maximum percentage of map tasks that can fail without
  33514. the job being aborted.]]>
  33515. </doc>
  33516. </method>
  33517. <method name="getMaxReduceTaskFailuresPercent" return="int"
  33518. abstract="false" native="false" synchronized="false"
  33519. static="false" final="false" visibility="public"
  33520. deprecated="not deprecated">
  33521. <doc>
  33522. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  33523. the job being aborted.
  33524. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  33525. attempts before being declared as <i>failed</i>.
  33526. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  33527. in the job being declared as {@link JobStatus#FAILED}.
  33528. @return the maximum percentage of reduce tasks that can fail without
  33529. the job being aborted.]]>
  33530. </doc>
  33531. </method>
  33532. <method name="setMaxReduceTaskFailuresPercent"
  33533. abstract="false" native="false" synchronized="false"
  33534. static="false" final="false" visibility="public"
  33535. deprecated="not deprecated">
  33536. <param name="percent" type="int"/>
  33537. <doc>
  33538. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  33539. being aborted.
  33540. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  33541. attempts before being declared as <i>failed</i>.
  33542. @param percent the maximum percentage of reduce tasks that can fail without
  33543. the job being aborted.]]>
  33544. </doc>
  33545. </method>
  33546. <method name="setJobPriority"
  33547. abstract="false" native="false" synchronized="false"
  33548. static="false" final="false" visibility="public"
  33549. deprecated="not deprecated">
  33550. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  33551. <doc>
  33552. <![CDATA[Set {@link JobPriority} for this job.
  33553. @param prio the {@link JobPriority} for this job.]]>
  33554. </doc>
  33555. </method>
  33556. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  33557. abstract="false" native="false" synchronized="false"
  33558. static="false" final="false" visibility="public"
  33559. deprecated="not deprecated">
  33560. <doc>
  33561. <![CDATA[Get the {@link JobPriority} for this job.
  33562. @return the {@link JobPriority} for this job.]]>
  33563. </doc>
  33564. </method>
  33565. <method name="getProfileEnabled" return="boolean"
  33566. abstract="false" native="false" synchronized="false"
  33567. static="false" final="false" visibility="public"
  33568. deprecated="not deprecated">
  33569. <doc>
  33570. <![CDATA[Get whether the task profiling is enabled.
  33571. @return true if some tasks will be profiled]]>
  33572. </doc>
  33573. </method>
  33574. <method name="setProfileEnabled"
  33575. abstract="false" native="false" synchronized="false"
  33576. static="false" final="false" visibility="public"
  33577. deprecated="not deprecated">
  33578. <param name="newValue" type="boolean"/>
  33579. <doc>
  33580. <![CDATA[Set whether the system should collect profiler information for some of
  33581. the tasks in this job? The information is stored in the user log
  33582. directory.
  33583. @param newValue true means it should be gathered]]>
  33584. </doc>
  33585. </method>
  33586. <method name="getProfileParams" return="java.lang.String"
  33587. abstract="false" native="false" synchronized="false"
  33588. static="false" final="false" visibility="public"
  33589. deprecated="not deprecated">
  33590. <doc>
  33591. <![CDATA[Get the profiler configuration arguments.
  33592. The default value for this property is
  33593. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  33594. @return the parameters to pass to the task child to configure profiling]]>
  33595. </doc>
  33596. </method>
  33597. <method name="setProfileParams"
  33598. abstract="false" native="false" synchronized="false"
  33599. static="false" final="false" visibility="public"
  33600. deprecated="not deprecated">
  33601. <param name="value" type="java.lang.String"/>
  33602. <doc>
  33603. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  33604. will be replaced with the name of the profiling output file when the task
  33605. runs.
  33606. This value is passed to the task child JVM on the command line.
  33607. @param value the configuration string]]>
  33608. </doc>
  33609. </method>
  33610. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  33611. abstract="false" native="false" synchronized="false"
  33612. static="false" final="false" visibility="public"
  33613. deprecated="not deprecated">
  33614. <param name="isMap" type="boolean"/>
  33615. <doc>
  33616. <![CDATA[Get the range of maps or reduces to profile.
  33617. @param isMap is the task a map?
  33618. @return the task ranges]]>
  33619. </doc>
  33620. </method>
  33621. <method name="setProfileTaskRange"
  33622. abstract="false" native="false" synchronized="false"
  33623. static="false" final="false" visibility="public"
  33624. deprecated="not deprecated">
  33625. <param name="isMap" type="boolean"/>
  33626. <param name="newValue" type="java.lang.String"/>
  33627. <doc>
  33628. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  33629. must also be called.
  33630. @param newValue a set of integer ranges of the map ids]]>
  33631. </doc>
  33632. </method>
  33633. <method name="setMapDebugScript"
  33634. abstract="false" native="false" synchronized="false"
  33635. static="false" final="false" visibility="public"
  33636. deprecated="not deprecated">
  33637. <param name="mDbgScript" type="java.lang.String"/>
  33638. <doc>
  33639. <![CDATA[Set the debug script to run when the map tasks fail.
  33640. <p>The debug script can aid debugging of failed map tasks. The script is
  33641. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  33642. <p>The debug command, run on the node where the map failed, is:</p>
  33643. <p><pre><blockquote>
  33644. $script $stdout $stderr $syslog $jobconf.
  33645. </blockquote></pre></p>
  33646. <p> The script file is distributed through {@link DistributedCache}
  33647. APIs. The script needs to be symlinked. </p>
  33648. <p>Here is an example on how to submit a script
  33649. <p><blockquote><pre>
  33650. job.setMapDebugScript("./myscript");
  33651. DistributedCache.createSymlink(job);
  33652. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  33653. </pre></blockquote></p>
  33654. @param mDbgScript the script name]]>
  33655. </doc>
  33656. </method>
  33657. <method name="getMapDebugScript" return="java.lang.String"
  33658. abstract="false" native="false" synchronized="false"
  33659. static="false" final="false" visibility="public"
  33660. deprecated="not deprecated">
  33661. <doc>
  33662. <![CDATA[Get the map task's debug script.
  33663. @return the debug Script for the mapred job for failed map tasks.
  33664. @see #setMapDebugScript(String)]]>
  33665. </doc>
  33666. </method>
  33667. <method name="setReduceDebugScript"
  33668. abstract="false" native="false" synchronized="false"
  33669. static="false" final="false" visibility="public"
  33670. deprecated="not deprecated">
  33671. <param name="rDbgScript" type="java.lang.String"/>
  33672. <doc>
  33673. <![CDATA[Set the debug script to run when the reduce tasks fail.
  33674. <p>The debug script can aid debugging of failed reduce tasks. The script
  33675. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  33676. <p>The debug command, run on the node where the map failed, is:</p>
  33677. <p><pre><blockquote>
  33678. $script $stdout $stderr $syslog $jobconf.
  33679. </blockquote></pre></p>
  33680. <p> The script file is distributed through {@link DistributedCache}
  33681. APIs. The script file needs to be symlinked </p>
  33682. <p>Here is an example on how to submit a script
  33683. <p><blockquote><pre>
  33684. job.setReduceDebugScript("./myscript");
  33685. DistributedCache.createSymlink(job);
  33686. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  33687. </pre></blockquote></p>
  33688. @param rDbgScript the script name]]>
  33689. </doc>
  33690. </method>
  33691. <method name="getReduceDebugScript" return="java.lang.String"
  33692. abstract="false" native="false" synchronized="false"
  33693. static="false" final="false" visibility="public"
  33694. deprecated="not deprecated">
  33695. <doc>
  33696. <![CDATA[Get the reduce task's debug Script
  33697. @return the debug script for the mapred job for failed reduce tasks.
  33698. @see #setReduceDebugScript(String)]]>
  33699. </doc>
  33700. </method>
  33701. <method name="getJobEndNotificationURI" return="java.lang.String"
  33702. abstract="false" native="false" synchronized="false"
  33703. static="false" final="false" visibility="public"
  33704. deprecated="not deprecated">
  33705. <doc>
  33706. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  33707. has completed (success/failure).
  33708. @return the job end notification uri, <code>null</code> if it hasn't
  33709. been set.
  33710. @see #setJobEndNotificationURI(String)]]>
  33711. </doc>
  33712. </method>
  33713. <method name="setJobEndNotificationURI"
  33714. abstract="false" native="false" synchronized="false"
  33715. static="false" final="false" visibility="public"
  33716. deprecated="not deprecated">
  33717. <param name="uri" type="java.lang.String"/>
  33718. <doc>
  33719. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  33720. has completed (success/failure).
  33721. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  33722. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  33723. identifier and completion-status respectively.</p>
  33724. <p>This is typically used by application-writers to implement chaining of
  33725. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  33726. @param uri the job end notification uri
  33727. @see JobStatus
  33728. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  33729. </doc>
  33730. </method>
  33731. <method name="getJobLocalDir" return="java.lang.String"
  33732. abstract="false" native="false" synchronized="false"
  33733. static="false" final="false" visibility="public"
  33734. deprecated="not deprecated">
  33735. <doc>
  33736. <![CDATA[Get job-specific shared directory for use as scratch space
  33737. <p>
  33738. When a job starts, a shared directory is created at location
  33739. <code>
  33740. ${mapred.local.dir}/taskTracker/jobcache/$jobid/work/ </code>.
  33741. This directory is exposed to the users through
  33742. <code>job.local.dir </code>.
  33743. So, the tasks can use this space
  33744. as scratch space and share files among them. </p>
  33745. This value is available as System property also.
  33746. @return The localized job specific shared directory]]>
  33747. </doc>
  33748. </method>
  33749. <method name="getMaxVirtualMemoryForTask" return="long"
  33750. abstract="false" native="false" synchronized="false"
  33751. static="false" final="false" visibility="public"
  33752. deprecated="not deprecated">
  33753. <doc>
  33754. <![CDATA[The maximum amount of memory any task of this job will use. See
  33755. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  33756. @return The maximum amount of memory any task of this job will use, in
  33757. bytes.
  33758. @see #setMaxVirtualMemoryForTask(long)]]>
  33759. </doc>
  33760. </method>
  33761. <method name="setMaxVirtualMemoryForTask"
  33762. abstract="false" native="false" synchronized="false"
  33763. static="false" final="false" visibility="public"
  33764. deprecated="not deprecated">
  33765. <param name="vmem" type="long"/>
  33766. <doc>
  33767. <![CDATA[Set the maximum amount of memory any task of this job can use. See
  33768. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  33769. @param vmem Maximum amount of virtual memory in bytes any task of this job
  33770. can use.
  33771. @see #getMaxVirtualMemoryForTask()]]>
  33772. </doc>
  33773. </method>
  33774. <method name="getMaxPhysicalMemoryForTask" return="long"
  33775. abstract="false" native="false" synchronized="false"
  33776. static="false" final="false" visibility="public"
  33777. deprecated="not deprecated">
  33778. <doc>
  33779. <![CDATA[The maximum amount of physical memory any task of this job will use. See
  33780. {@link #MAPRED_TASK_MAXPMEM_PROPERTY}
  33781. @return The maximum amount of physical memory any task of this job will
  33782. use, in bytes.
  33783. @see #setMaxPhysicalMemoryForTask(long)]]>
  33784. </doc>
  33785. </method>
  33786. <method name="setMaxPhysicalMemoryForTask"
  33787. abstract="false" native="false" synchronized="false"
  33788. static="false" final="false" visibility="public"
  33789. deprecated="not deprecated">
  33790. <param name="pmem" type="long"/>
  33791. <doc>
  33792. <![CDATA[Set the maximum amount of physical memory any task of this job can use. See
  33793. {@link #MAPRED_TASK_MAXPMEM_PROPERTY}
  33794. @param pmem Maximum amount of physical memory in bytes any task of this job
  33795. can use.
  33796. @see #getMaxPhysicalMemoryForTask()]]>
  33797. </doc>
  33798. </method>
  33799. <method name="getQueueName" return="java.lang.String"
  33800. abstract="false" native="false" synchronized="false"
  33801. static="false" final="false" visibility="public"
  33802. deprecated="not deprecated">
  33803. <doc>
  33804. <![CDATA[Return the name of the queue to which this job is submitted.
  33805. Defaults to 'default'.
  33806. @return name of the queue]]>
  33807. </doc>
  33808. </method>
  33809. <method name="setQueueName"
  33810. abstract="false" native="false" synchronized="false"
  33811. static="false" final="false" visibility="public"
  33812. deprecated="not deprecated">
  33813. <param name="queueName" type="java.lang.String"/>
  33814. <doc>
  33815. <![CDATA[Set the name of the queue to which this job should be submitted.
  33816. @param queueName Name of the queue]]>
  33817. </doc>
  33818. </method>
  33819. <field name="DISABLED_MEMORY_LIMIT" type="long"
  33820. transient="false" volatile="false"
  33821. static="true" final="true" visibility="public"
  33822. deprecated="not deprecated">
  33823. <doc>
  33824. <![CDATA[A value which if set for memory related configuration options,
  33825. indicates that the options are turned off.]]>
  33826. </doc>
  33827. </field>
  33828. <field name="DEFAULT_QUEUE_NAME" type="java.lang.String"
  33829. transient="false" volatile="false"
  33830. static="true" final="true" visibility="public"
  33831. deprecated="not deprecated">
  33832. <doc>
  33833. <![CDATA[Name of the queue to which jobs will be submitted, if no queue
  33834. name is mentioned.]]>
  33835. </doc>
  33836. </field>
  33837. <field name="MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY" type="java.lang.String"
  33838. transient="false" volatile="false"
  33839. static="true" final="true" visibility="public"
  33840. deprecated="not deprecated">
  33841. <doc>
  33842. <![CDATA[Cluster-wide configuration to be set by the administrators that provides
  33843. default amount of maximum virtual memory for job's tasks. This has to be
  33844. set on both the JobTracker node for the sake of scheduling decisions and on
  33845. the TaskTracker nodes for the sake of memory management.
  33846. <p>
  33847. If a job doesn't specify its virtual memory requirement by setting
  33848. {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to {@link #DISABLED_MEMORY_LIMIT},
  33849. tasks are assured a memory limit set to this property. This property is
  33850. disabled by default, and if not explicitly set to a valid value by the
  33851. administrators and if a job doesn't specify its virtual memory
  33852. requirements, the job's tasks will not be assured anything and may be
  33853. killed by a TT that intends to control the total memory usage of the tasks
  33854. via memory management functionality.
  33855. <p>
  33856. This value should in general be less than the cluster-wide configuration
  33857. {@link #UPPER_LIMIT_ON_TASK_VMEM_PROPERTY} . If not or if it not set,
  33858. TaskTracker's memory management may be disabled and a scheduler's memory
  33859. based scheduling decisions will be affected. Please refer to the
  33860. documentation of the configured scheduler to see how this property is used.]]>
  33861. </doc>
  33862. </field>
  33863. <field name="MAPRED_TASK_MAXVMEM_PROPERTY" type="java.lang.String"
  33864. transient="false" volatile="false"
  33865. static="true" final="true" visibility="public"
  33866. deprecated="not deprecated">
  33867. <doc>
  33868. <![CDATA[The maximum amount of memory any task of this job will use.
  33869. <p>
  33870. This value will be used by TaskTrackers for monitoring the memory usage of
  33871. tasks of this jobs. If a TaskTracker's memory management functionality is
  33872. enabled, each task of this job will be allowed to use a maximum virtual
  33873. memory specified by this property. If the task's memory usage goes over
  33874. this value, the task will be failed by the TT. If not set, the cluster-wide
  33875. configuration {@link #MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY} is used as the
  33876. default value for memory requirements. If this property cascaded with
  33877. {@link #MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY} becomes equal to -1, job's
  33878. tasks will not be assured anything and may be killed by a TT that intends
  33879. to control the total memory usage of the tasks via memory management
  33880. functionality. If the memory management functionality is disabled on a TT,
  33881. this value is ignored.
  33882. <p>
  33883. This value should also be not more than the cluster-wide configuration
  33884. {@link #UPPER_LIMIT_ON_TASK_VMEM_PROPERTY} which has to be set by the site
  33885. administrators.
  33886. <p>
  33887. This value may be used by schedulers that support scheduling based on job's
  33888. memory requirements. In general, a task of this job will be scheduled on a
  33889. TaskTracker only if the amount of virtual memory still unoccupied on the
  33890. TaskTracker is greater than or equal to this value. But different
  33891. schedulers can take different decisions. Please refer to the documentation
  33892. of the scheduler being configured to see if it does memory based scheduling
  33893. and if it does, how this property is used by that scheduler.
  33894. @see #setMaxVirtualMemoryForTask(long)
  33895. @see #getMaxVirtualMemoryForTask()]]>
  33896. </doc>
  33897. </field>
  33898. <field name="MAPRED_TASK_MAXPMEM_PROPERTY" type="java.lang.String"
  33899. transient="false" volatile="false"
  33900. static="true" final="true" visibility="public"
  33901. deprecated="not deprecated">
  33902. <doc>
  33903. <![CDATA[The maximum amount of physical memory any task of a job will use.
  33904. <p>
  33905. This value may be used by schedulers that support scheduling based on job's
  33906. memory requirements. In general, a task of this job will be scheduled on a
  33907. TaskTracker, only if the amount of physical memory still unoccupied on the
  33908. TaskTracker is greater than or equal to this value. But different
  33909. schedulers can take different decisions. Please refer to the documentation
  33910. of the scheduler being configured to see how it does memory based
  33911. scheduling and how this variable is used by that scheduler.
  33912. @see #setMaxPhysicalMemoryForTask(long)
  33913. @see #getMaxPhysicalMemoryForTask()]]>
  33914. </doc>
  33915. </field>
  33916. <field name="UPPER_LIMIT_ON_TASK_VMEM_PROPERTY" type="java.lang.String"
  33917. transient="false" volatile="false"
  33918. static="true" final="true" visibility="public"
  33919. deprecated="not deprecated">
  33920. <doc>
  33921. <![CDATA[Cluster-wide configuration to be set by the site administrators that
  33922. provides an upper limit on the maximum virtual memory that can be specified
  33923. by a job. The job configuration {@link #MAPRED_TASK_MAXVMEM_PROPERTY} and
  33924. the cluster-wide configuration
  33925. {@link #MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY} should, by definition, be
  33926. less than this value. If the job configuration
  33927. {@link #MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY} is more than this value,
  33928. depending on the scheduler being configured, the job may be rejected or the
  33929. job configuration may just be ignored.
  33930. <p>
  33931. If it is not set on a TaskTracker, TaskTracker's memory management will be
  33932. disabled.]]>
  33933. </doc>
  33934. </field>
  33935. <doc>
  33936. <![CDATA[A map/reduce job configuration.
  33937. <p><code>JobConf</code> is the primary interface for a user to describe a
  33938. map-reduce job to the Hadoop framework for execution. The framework tries to
  33939. faithfully execute the job as-is described by <code>JobConf</code>, however:
  33940. <ol>
  33941. <li>
  33942. Some configuration parameters might have been marked as
  33943. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  33944. final</a> by administrators and hence cannot be altered.
  33945. </li>
  33946. <li>
  33947. While some job parameters are straight-forward to set
  33948. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  33949. rest of the framework and/or job-configuration and is relatively more
  33950. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  33951. </li>
  33952. </ol></p>
  33953. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  33954. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  33955. {@link OutputFormat} implementations to be used etc.
  33956. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  33957. of the job such as <code>Comparator</code>s to be used, files to be put in
  33958. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  33959. are to be compressed (and how), debugability via user-provided scripts
  33960. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  33961. for doing post-processing on task logs, task's stdout, stderr, syslog.
  33962. and etc.</p>
  33963. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  33964. <p><blockquote><pre>
  33965. // Create a new JobConf
  33966. JobConf job = new JobConf(new Configuration(), MyJob.class);
  33967. // Specify various job-specific parameters
  33968. job.setJobName("myjob");
  33969. FileInputFormat.setInputPaths(job, new Path("in"));
  33970. FileOutputFormat.setOutputPath(job, new Path("out"));
  33971. job.setMapperClass(MyJob.MyMapper.class);
  33972. job.setCombinerClass(MyJob.MyReducer.class);
  33973. job.setReducerClass(MyJob.MyReducer.class);
  33974. job.setInputFormat(SequenceFileInputFormat.class);
  33975. job.setOutputFormat(SequenceFileOutputFormat.class);
  33976. </pre></blockquote></p>
  33977. @see JobClient
  33978. @see ClusterStatus
  33979. @see Tool
  33980. @see DistributedCache
  33981. @deprecated Use {@link Configuration} instead]]>
  33982. </doc>
  33983. </class>
  33984. <!-- end class org.apache.hadoop.mapred.JobConf -->
  33985. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  33986. <interface name="JobConfigurable" abstract="true"
  33987. static="false" final="false" visibility="public"
  33988. deprecated="not deprecated">
  33989. <method name="configure"
  33990. abstract="false" native="false" synchronized="false"
  33991. static="false" final="false" visibility="public"
  33992. deprecated="not deprecated">
  33993. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  33994. <doc>
  33995. <![CDATA[Initializes a new instance from a {@link JobConf}.
  33996. @param job the configuration]]>
  33997. </doc>
  33998. </method>
  33999. <doc>
  34000. <![CDATA[That what may be configured.]]>
  34001. </doc>
  34002. </interface>
  34003. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  34004. <!-- start class org.apache.hadoop.mapred.JobContext -->
  34005. <class name="JobContext" extends="org.apache.hadoop.mapreduce.JobContext"
  34006. abstract="false"
  34007. static="false" final="false" visibility="public"
  34008. deprecated="Use {@link org.apache.hadoop.mapreduce.JobContext} instead.">
  34009. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  34010. abstract="false" native="false" synchronized="false"
  34011. static="false" final="false" visibility="public"
  34012. deprecated="not deprecated">
  34013. <doc>
  34014. <![CDATA[Get the job Configuration
  34015. @return JobConf]]>
  34016. </doc>
  34017. </method>
  34018. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  34019. abstract="false" native="false" synchronized="false"
  34020. static="false" final="false" visibility="public"
  34021. deprecated="not deprecated">
  34022. <doc>
  34023. <![CDATA[Get the progress mechanism for reporting progress.
  34024. @return progress mechanism]]>
  34025. </doc>
  34026. </method>
  34027. <doc>
  34028. <![CDATA[@deprecated Use {@link org.apache.hadoop.mapreduce.JobContext} instead.]]>
  34029. </doc>
  34030. </class>
  34031. <!-- end class org.apache.hadoop.mapred.JobContext -->
  34032. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  34033. <class name="JobEndNotifier" extends="java.lang.Object"
  34034. abstract="false"
  34035. static="false" final="false" visibility="public"
  34036. deprecated="not deprecated">
  34037. <constructor name="JobEndNotifier"
  34038. static="false" final="false" visibility="public"
  34039. deprecated="not deprecated">
  34040. </constructor>
  34041. <method name="startNotifier"
  34042. abstract="false" native="false" synchronized="false"
  34043. static="true" final="false" visibility="public"
  34044. deprecated="not deprecated">
  34045. </method>
  34046. <method name="stopNotifier"
  34047. abstract="false" native="false" synchronized="false"
  34048. static="true" final="false" visibility="public"
  34049. deprecated="not deprecated">
  34050. </method>
  34051. <method name="registerNotification"
  34052. abstract="false" native="false" synchronized="false"
  34053. static="true" final="false" visibility="public"
  34054. deprecated="not deprecated">
  34055. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  34056. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  34057. </method>
  34058. <method name="localRunnerNotification"
  34059. abstract="false" native="false" synchronized="false"
  34060. static="true" final="false" visibility="public"
  34061. deprecated="not deprecated">
  34062. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34063. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  34064. </method>
  34065. </class>
  34066. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  34067. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  34068. <class name="JobHistory" extends="java.lang.Object"
  34069. abstract="false"
  34070. static="false" final="false" visibility="public"
  34071. deprecated="not deprecated">
  34072. <constructor name="JobHistory"
  34073. static="false" final="false" visibility="public"
  34074. deprecated="not deprecated">
  34075. </constructor>
  34076. <method name="init" return="boolean"
  34077. abstract="false" native="false" synchronized="false"
  34078. static="true" final="false" visibility="public"
  34079. deprecated="not deprecated">
  34080. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34081. <param name="hostname" type="java.lang.String"/>
  34082. <param name="jobTrackerStartTime" type="long"/>
  34083. <doc>
  34084. <![CDATA[Initialize JobHistory files.
  34085. @param conf Jobconf of the job tracker.
  34086. @param hostname jobtracker's hostname
  34087. @param jobTrackerStartTime jobtracker's start time
  34088. @return true if intialized properly
  34089. false otherwise]]>
  34090. </doc>
  34091. </method>
  34092. <method name="parseHistoryFromFS"
  34093. abstract="false" native="false" synchronized="false"
  34094. static="true" final="false" visibility="public"
  34095. deprecated="not deprecated">
  34096. <param name="path" type="java.lang.String"/>
  34097. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  34098. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  34099. <exception name="IOException" type="java.io.IOException"/>
  34100. <doc>
  34101. <![CDATA[Parses history file and invokes Listener.handle() for
  34102. each line of history. It can be used for looking through history
  34103. files for specific items without having to keep whole history in memory.
  34104. @param path path to history file
  34105. @param l Listener for history events
  34106. @param fs FileSystem where history file is present
  34107. @throws IOException]]>
  34108. </doc>
  34109. </method>
  34110. <method name="isDisableHistory" return="boolean"
  34111. abstract="false" native="false" synchronized="false"
  34112. static="true" final="false" visibility="public"
  34113. deprecated="not deprecated">
  34114. <doc>
  34115. <![CDATA[Returns history disable status. by default history is enabled so this
  34116. method returns false.
  34117. @return true if history logging is disabled, false otherwise.]]>
  34118. </doc>
  34119. </method>
  34120. <method name="setDisableHistory"
  34121. abstract="false" native="false" synchronized="false"
  34122. static="true" final="false" visibility="public"
  34123. deprecated="not deprecated">
  34124. <param name="disableHistory" type="boolean"/>
  34125. <doc>
  34126. <![CDATA[Enable/disable history logging. Default value is false, so history
  34127. is enabled by default.
  34128. @param disableHistory true if history should be disabled, false otherwise.]]>
  34129. </doc>
  34130. </method>
  34131. <method name="getTaskLogsUrl" return="java.lang.String"
  34132. abstract="false" native="false" synchronized="false"
  34133. static="true" final="false" visibility="public"
  34134. deprecated="not deprecated">
  34135. <param name="attempt" type="org.apache.hadoop.mapred.JobHistory.TaskAttempt"/>
  34136. <doc>
  34137. <![CDATA[Return the TaskLogsUrl of a particular TaskAttempt
  34138. @param attempt
  34139. @return the taskLogsUrl. null if http-port or tracker-name or
  34140. task-attempt-id are unavailable.]]>
  34141. </doc>
  34142. </method>
  34143. <field name="LOG" type="org.apache.commons.logging.Log"
  34144. transient="false" volatile="false"
  34145. static="true" final="true" visibility="public"
  34146. deprecated="not deprecated">
  34147. </field>
  34148. <field name="JOB_NAME_TRIM_LENGTH" type="int"
  34149. transient="false" volatile="false"
  34150. static="true" final="true" visibility="public"
  34151. deprecated="not deprecated">
  34152. </field>
  34153. <doc>
  34154. <![CDATA[Provides methods for writing to and reading from job history.
  34155. Job History works in an append mode, JobHistory and its inner classes provide methods
  34156. to log job events.
  34157. JobHistory is split into multiple files, format of each file is plain text where each line
  34158. is of the format [type (key=value)*], where type identifies the type of the record.
  34159. Type maps to UID of one of the inner classes of this class.
  34160. Job history is maintained in a master index which contains star/stop times of all jobs with
  34161. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  34162. file. name of job history files follows the format jobtrackerId_jobid
  34163. For parsing the job history it supports a listener based interface where each line is parsed
  34164. and passed to listener. The listener can create an object model of history or look for specific
  34165. events and discard rest of the history.
  34166. CHANGE LOG :
  34167. Version 0 : The history has the following format :
  34168. TAG KEY1="VALUE1" KEY2="VALUE2" and so on.
  34169. TAG can be Job, Task, MapAttempt or ReduceAttempt.
  34170. Note that a '"' is the line delimiter.
  34171. Version 1 : Changes the line delimiter to '.'
  34172. Values are now escaped for unambiguous parsing.
  34173. Added the Meta tag to store version info.]]>
  34174. </doc>
  34175. </class>
  34176. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  34177. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  34178. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  34179. abstract="false"
  34180. static="true" final="false" visibility="public"
  34181. deprecated="not deprecated">
  34182. <implements name="java.lang.Runnable"/>
  34183. <constructor name="JobHistory.HistoryCleaner"
  34184. static="false" final="false" visibility="public"
  34185. deprecated="not deprecated">
  34186. </constructor>
  34187. <method name="run"
  34188. abstract="false" native="false" synchronized="false"
  34189. static="false" final="false" visibility="public"
  34190. deprecated="not deprecated">
  34191. <doc>
  34192. <![CDATA[Cleans up history data.]]>
  34193. </doc>
  34194. </method>
  34195. <doc>
  34196. <![CDATA[Delete history files older than one month. Update master index and remove all
  34197. jobs older than one month. Also if a job tracker has no jobs in last one month
  34198. remove reference to the job tracker.]]>
  34199. </doc>
  34200. </class>
  34201. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  34202. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  34203. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  34204. abstract="false"
  34205. static="true" final="false" visibility="public"
  34206. deprecated="not deprecated">
  34207. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  34208. static="false" final="false" visibility="public"
  34209. deprecated="not deprecated">
  34210. <doc>
  34211. <![CDATA[Create new JobInfo]]>
  34212. </doc>
  34213. </constructor>
  34214. <method name="getAllTasks" return="java.util.Map"
  34215. abstract="false" native="false" synchronized="false"
  34216. static="false" final="false" visibility="public"
  34217. deprecated="not deprecated">
  34218. <doc>
  34219. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  34220. </doc>
  34221. </method>
  34222. <method name="getLocalJobFilePath" return="java.lang.String"
  34223. abstract="false" native="false" synchronized="false"
  34224. static="true" final="false" visibility="public"
  34225. deprecated="not deprecated">
  34226. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  34227. <doc>
  34228. <![CDATA[Get the path of the locally stored job file
  34229. @param jobId id of the job
  34230. @return the path of the job file on the local file system]]>
  34231. </doc>
  34232. </method>
  34233. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  34234. abstract="false" native="false" synchronized="false"
  34235. static="true" final="false" visibility="public"
  34236. deprecated="not deprecated">
  34237. <param name="logFile" type="java.lang.String"/>
  34238. <exception name="IOException" type="java.io.IOException"/>
  34239. <doc>
  34240. <![CDATA[Helper function to encode the URL of the path of the job-history
  34241. log file.
  34242. @param logFile path of the job-history file
  34243. @return URL encoded path
  34244. @throws IOException]]>
  34245. </doc>
  34246. </method>
  34247. <method name="encodeJobHistoryFileName" return="java.lang.String"
  34248. abstract="false" native="false" synchronized="false"
  34249. static="true" final="false" visibility="public"
  34250. deprecated="not deprecated">
  34251. <param name="logFileName" type="java.lang.String"/>
  34252. <exception name="IOException" type="java.io.IOException"/>
  34253. <doc>
  34254. <![CDATA[Helper function to encode the URL of the filename of the job-history
  34255. log file.
  34256. @param logFileName file name of the job-history file
  34257. @return URL encoded filename
  34258. @throws IOException]]>
  34259. </doc>
  34260. </method>
  34261. <method name="decodeJobHistoryFileName" return="java.lang.String"
  34262. abstract="false" native="false" synchronized="false"
  34263. static="true" final="false" visibility="public"
  34264. deprecated="not deprecated">
  34265. <param name="logFileName" type="java.lang.String"/>
  34266. <exception name="IOException" type="java.io.IOException"/>
  34267. <doc>
  34268. <![CDATA[Helper function to decode the URL of the filename of the job-history
  34269. log file.
  34270. @param logFileName file name of the job-history file
  34271. @return URL decoded filename
  34272. @throws IOException]]>
  34273. </doc>
  34274. </method>
  34275. <method name="getUserName" return="java.lang.String"
  34276. abstract="false" native="false" synchronized="false"
  34277. static="true" final="false" visibility="public"
  34278. deprecated="not deprecated">
  34279. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  34280. <doc>
  34281. <![CDATA[Get the user name from the job conf]]>
  34282. </doc>
  34283. </method>
  34284. <method name="getJobHistoryLogLocation" return="org.apache.hadoop.fs.Path"
  34285. abstract="false" native="false" synchronized="false"
  34286. static="true" final="false" visibility="public"
  34287. deprecated="not deprecated">
  34288. <param name="logFileName" type="java.lang.String"/>
  34289. <doc>
  34290. <![CDATA[Get the job history file path given the history filename]]>
  34291. </doc>
  34292. </method>
  34293. <method name="getJobHistoryLogLocationForUser" return="org.apache.hadoop.fs.Path"
  34294. abstract="false" native="false" synchronized="false"
  34295. static="true" final="false" visibility="public"
  34296. deprecated="not deprecated">
  34297. <param name="logFileName" type="java.lang.String"/>
  34298. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  34299. <doc>
  34300. <![CDATA[Get the user job history file path]]>
  34301. </doc>
  34302. </method>
  34303. <method name="getJobHistoryFileName" return="java.lang.String"
  34304. abstract="false" native="false" synchronized="true"
  34305. static="true" final="false" visibility="public"
  34306. deprecated="not deprecated">
  34307. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  34308. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  34309. <exception name="IOException" type="java.io.IOException"/>
  34310. <doc>
  34311. <![CDATA[Recover the job history filename from the history folder.
  34312. Uses the following pattern
  34313. $jt-hostname_[0-9]*_$job-id_$user-$job-name*
  34314. @param jobConf the job conf
  34315. @param id job id]]>
  34316. </doc>
  34317. </method>
  34318. <method name="recoverJobHistoryFile" return="org.apache.hadoop.fs.Path"
  34319. abstract="false" native="false" synchronized="true"
  34320. static="true" final="false" visibility="public"
  34321. deprecated="not deprecated">
  34322. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34323. <param name="logFilePath" type="org.apache.hadoop.fs.Path"/>
  34324. <exception name="IOException" type="java.io.IOException"/>
  34325. <doc>
  34326. <![CDATA[Selects one of the two files generated as a part of recovery.
  34327. The thumb rule is that always select the oldest file.
  34328. This call makes sure that only one file is left in the end.
  34329. @param conf job conf
  34330. @param logFilePath Path of the log file
  34331. @throws IOException]]>
  34332. </doc>
  34333. </method>
  34334. <method name="logSubmitted"
  34335. abstract="false" native="false" synchronized="false"
  34336. static="true" final="false" visibility="public"
  34337. deprecated="not deprecated">
  34338. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  34339. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  34340. <param name="jobConfPath" type="java.lang.String"/>
  34341. <param name="submitTime" type="long"/>
  34342. <exception name="IOException" type="java.io.IOException"/>
  34343. <doc>
  34344. <![CDATA[Log job submitted event to history. Creates a new file in history
  34345. for the job. if history file creation fails, it disables history
  34346. for all other events.
  34347. @param jobId job id assigned by job tracker.
  34348. @param jobConf job conf of the job
  34349. @param jobConfPath path to job conf xml file in HDFS.
  34350. @param submitTime time when job tracker received the job
  34351. @throws IOException]]>
  34352. </doc>
  34353. </method>
  34354. <method name="logInited"
  34355. abstract="false" native="false" synchronized="false"
  34356. static="true" final="false" visibility="public"
  34357. deprecated="not deprecated">
  34358. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  34359. <param name="startTime" type="long"/>
  34360. <param name="totalMaps" type="int"/>
  34361. <param name="totalReduces" type="int"/>
  34362. <doc>
  34363. <![CDATA[Logs launch time of job.
  34364. @param jobId job id, assigned by jobtracker.
  34365. @param startTime start time of job.
  34366. @param totalMaps total maps assigned by jobtracker.
  34367. @param totalReduces total reduces.]]>
  34368. </doc>
  34369. </method>
  34370. <method name="logStarted"
  34371. abstract="false" native="false" synchronized="false"
  34372. static="true" final="false" visibility="public"
  34373. deprecated="Use {@link #logInited(JobID, long, int, int)} and
  34374. {@link #logStarted(JobID)}">
  34375. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  34376. <param name="startTime" type="long"/>
  34377. <param name="totalMaps" type="int"/>
  34378. <param name="totalReduces" type="int"/>
  34379. <doc>
  34380. <![CDATA[Logs the job as RUNNING.
  34381. @param jobId job id, assigned by jobtracker.
  34382. @param startTime start time of job.
  34383. @param totalMaps total maps assigned by jobtracker.
  34384. @param totalReduces total reduces.
  34385. @deprecated Use {@link #logInited(JobID, long, int, int)} and
  34386. {@link #logStarted(JobID)}]]>
  34387. </doc>
  34388. </method>
  34389. <method name="logStarted"
  34390. abstract="false" native="false" synchronized="false"
  34391. static="true" final="false" visibility="public"
  34392. deprecated="not deprecated">
  34393. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  34394. <doc>
  34395. <![CDATA[Logs job as running
  34396. @param jobId job id, assigned by jobtracker.]]>
  34397. </doc>
  34398. </method>
  34399. <method name="logFinished"
  34400. abstract="false" native="false" synchronized="false"
  34401. static="true" final="false" visibility="public"
  34402. deprecated="not deprecated">
  34403. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  34404. <param name="finishTime" type="long"/>
  34405. <param name="finishedMaps" type="int"/>
  34406. <param name="finishedReduces" type="int"/>
  34407. <param name="failedMaps" type="int"/>
  34408. <param name="failedReduces" type="int"/>
  34409. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  34410. <doc>
  34411. <![CDATA[Log job finished. closes the job file in history.
  34412. @param jobId job id, assigned by jobtracker.
  34413. @param finishTime finish time of job in ms.
  34414. @param finishedMaps no of maps successfully finished.
  34415. @param finishedReduces no of reduces finished sucessfully.
  34416. @param failedMaps no of failed map tasks.
  34417. @param failedReduces no of failed reduce tasks.
  34418. @param counters the counters from the job]]>
  34419. </doc>
  34420. </method>
  34421. <method name="logFailed"
  34422. abstract="false" native="false" synchronized="false"
  34423. static="true" final="false" visibility="public"
  34424. deprecated="not deprecated">
  34425. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  34426. <param name="timestamp" type="long"/>
  34427. <param name="finishedMaps" type="int"/>
  34428. <param name="finishedReduces" type="int"/>
  34429. <doc>
  34430. <![CDATA[Logs job failed event. Closes the job history log file.
  34431. @param jobid job id
  34432. @param timestamp time when job failure was detected in ms.
  34433. @param finishedMaps no finished map tasks.
  34434. @param finishedReduces no of finished reduce tasks.]]>
  34435. </doc>
  34436. </method>
  34437. <method name="logKilled"
  34438. abstract="false" native="false" synchronized="false"
  34439. static="true" final="false" visibility="public"
  34440. deprecated="not deprecated">
  34441. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  34442. <param name="timestamp" type="long"/>
  34443. <param name="finishedMaps" type="int"/>
  34444. <param name="finishedReduces" type="int"/>
  34445. <doc>
  34446. <![CDATA[Logs job killed event. Closes the job history log file.
  34447. @param jobid
  34448. job id
  34449. @param timestamp
  34450. time when job killed was issued in ms.
  34451. @param finishedMaps
  34452. no finished map tasks.
  34453. @param finishedReduces
  34454. no of finished reduce tasks.]]>
  34455. </doc>
  34456. </method>
  34457. <method name="logJobPriority"
  34458. abstract="false" native="false" synchronized="false"
  34459. static="true" final="false" visibility="public"
  34460. deprecated="not deprecated">
  34461. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  34462. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  34463. <doc>
  34464. <![CDATA[Log job's priority.
  34465. @param jobid job id
  34466. @param priority Jobs priority]]>
  34467. </doc>
  34468. </method>
  34469. <method name="logJobInfo"
  34470. abstract="false" native="false" synchronized="false"
  34471. static="true" final="false" visibility="public"
  34472. deprecated="Use {@link #logJobInfo(JobID, long, long)} instead.">
  34473. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  34474. <param name="submitTime" type="long"/>
  34475. <param name="launchTime" type="long"/>
  34476. <param name="restartCount" type="int"/>
  34477. <doc>
  34478. <![CDATA[Log job's submit-time/launch-time
  34479. @param jobid job id
  34480. @param submitTime job's submit time
  34481. @param launchTime job's launch time
  34482. @param restartCount number of times the job got restarted
  34483. @deprecated Use {@link #logJobInfo(JobID, long, long)} instead.]]>
  34484. </doc>
  34485. </method>
  34486. <method name="logJobInfo"
  34487. abstract="false" native="false" synchronized="false"
  34488. static="true" final="false" visibility="public"
  34489. deprecated="not deprecated">
  34490. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  34491. <param name="submitTime" type="long"/>
  34492. <param name="launchTime" type="long"/>
  34493. </method>
  34494. <doc>
  34495. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  34496. </doc>
  34497. </class>
  34498. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  34499. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  34500. <class name="JobHistory.Keys" extends="java.lang.Enum"
  34501. abstract="false"
  34502. static="true" final="true" visibility="public"
  34503. deprecated="not deprecated">
  34504. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  34505. abstract="false" native="false" synchronized="false"
  34506. static="true" final="false" visibility="public"
  34507. deprecated="not deprecated">
  34508. </method>
  34509. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  34510. abstract="false" native="false" synchronized="false"
  34511. static="true" final="false" visibility="public"
  34512. deprecated="not deprecated">
  34513. <param name="name" type="java.lang.String"/>
  34514. </method>
  34515. <field name="JOBTRACKERID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34516. transient="false" volatile="false"
  34517. static="true" final="true" visibility="public"
  34518. deprecated="not deprecated">
  34519. </field>
  34520. <field name="START_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34521. transient="false" volatile="false"
  34522. static="true" final="true" visibility="public"
  34523. deprecated="not deprecated">
  34524. </field>
  34525. <field name="FINISH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34526. transient="false" volatile="false"
  34527. static="true" final="true" visibility="public"
  34528. deprecated="not deprecated">
  34529. </field>
  34530. <field name="JOBID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34531. transient="false" volatile="false"
  34532. static="true" final="true" visibility="public"
  34533. deprecated="not deprecated">
  34534. </field>
  34535. <field name="JOBNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34536. transient="false" volatile="false"
  34537. static="true" final="true" visibility="public"
  34538. deprecated="not deprecated">
  34539. </field>
  34540. <field name="USER" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34541. transient="false" volatile="false"
  34542. static="true" final="true" visibility="public"
  34543. deprecated="not deprecated">
  34544. </field>
  34545. <field name="JOBCONF" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34546. transient="false" volatile="false"
  34547. static="true" final="true" visibility="public"
  34548. deprecated="not deprecated">
  34549. </field>
  34550. <field name="SUBMIT_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34551. transient="false" volatile="false"
  34552. static="true" final="true" visibility="public"
  34553. deprecated="not deprecated">
  34554. </field>
  34555. <field name="LAUNCH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34556. transient="false" volatile="false"
  34557. static="true" final="true" visibility="public"
  34558. deprecated="not deprecated">
  34559. </field>
  34560. <field name="TOTAL_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34561. transient="false" volatile="false"
  34562. static="true" final="true" visibility="public"
  34563. deprecated="not deprecated">
  34564. </field>
  34565. <field name="TOTAL_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34566. transient="false" volatile="false"
  34567. static="true" final="true" visibility="public"
  34568. deprecated="not deprecated">
  34569. </field>
  34570. <field name="FAILED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34571. transient="false" volatile="false"
  34572. static="true" final="true" visibility="public"
  34573. deprecated="not deprecated">
  34574. </field>
  34575. <field name="FAILED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34576. transient="false" volatile="false"
  34577. static="true" final="true" visibility="public"
  34578. deprecated="not deprecated">
  34579. </field>
  34580. <field name="FINISHED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34581. transient="false" volatile="false"
  34582. static="true" final="true" visibility="public"
  34583. deprecated="not deprecated">
  34584. </field>
  34585. <field name="FINISHED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34586. transient="false" volatile="false"
  34587. static="true" final="true" visibility="public"
  34588. deprecated="not deprecated">
  34589. </field>
  34590. <field name="JOB_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34591. transient="false" volatile="false"
  34592. static="true" final="true" visibility="public"
  34593. deprecated="not deprecated">
  34594. </field>
  34595. <field name="TASKID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34596. transient="false" volatile="false"
  34597. static="true" final="true" visibility="public"
  34598. deprecated="not deprecated">
  34599. </field>
  34600. <field name="HOSTNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34601. transient="false" volatile="false"
  34602. static="true" final="true" visibility="public"
  34603. deprecated="not deprecated">
  34604. </field>
  34605. <field name="TASK_TYPE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34606. transient="false" volatile="false"
  34607. static="true" final="true" visibility="public"
  34608. deprecated="not deprecated">
  34609. </field>
  34610. <field name="ERROR" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34611. transient="false" volatile="false"
  34612. static="true" final="true" visibility="public"
  34613. deprecated="not deprecated">
  34614. </field>
  34615. <field name="TASK_ATTEMPT_ID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34616. transient="false" volatile="false"
  34617. static="true" final="true" visibility="public"
  34618. deprecated="not deprecated">
  34619. </field>
  34620. <field name="TASK_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34621. transient="false" volatile="false"
  34622. static="true" final="true" visibility="public"
  34623. deprecated="not deprecated">
  34624. </field>
  34625. <field name="COPY_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34626. transient="false" volatile="false"
  34627. static="true" final="true" visibility="public"
  34628. deprecated="not deprecated">
  34629. </field>
  34630. <field name="SORT_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34631. transient="false" volatile="false"
  34632. static="true" final="true" visibility="public"
  34633. deprecated="not deprecated">
  34634. </field>
  34635. <field name="REDUCE_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34636. transient="false" volatile="false"
  34637. static="true" final="true" visibility="public"
  34638. deprecated="not deprecated">
  34639. </field>
  34640. <field name="SHUFFLE_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34641. transient="false" volatile="false"
  34642. static="true" final="true" visibility="public"
  34643. deprecated="not deprecated">
  34644. </field>
  34645. <field name="SORT_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34646. transient="false" volatile="false"
  34647. static="true" final="true" visibility="public"
  34648. deprecated="not deprecated">
  34649. </field>
  34650. <field name="COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34651. transient="false" volatile="false"
  34652. static="true" final="true" visibility="public"
  34653. deprecated="not deprecated">
  34654. </field>
  34655. <field name="SPLITS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34656. transient="false" volatile="false"
  34657. static="true" final="true" visibility="public"
  34658. deprecated="not deprecated">
  34659. </field>
  34660. <field name="JOB_PRIORITY" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34661. transient="false" volatile="false"
  34662. static="true" final="true" visibility="public"
  34663. deprecated="not deprecated">
  34664. </field>
  34665. <field name="HTTP_PORT" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34666. transient="false" volatile="false"
  34667. static="true" final="true" visibility="public"
  34668. deprecated="not deprecated">
  34669. </field>
  34670. <field name="TRACKER_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34671. transient="false" volatile="false"
  34672. static="true" final="true" visibility="public"
  34673. deprecated="not deprecated">
  34674. </field>
  34675. <field name="STATE_STRING" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34676. transient="false" volatile="false"
  34677. static="true" final="true" visibility="public"
  34678. deprecated="not deprecated">
  34679. </field>
  34680. <field name="VERSION" type="org.apache.hadoop.mapred.JobHistory.Keys"
  34681. transient="false" volatile="false"
  34682. static="true" final="true" visibility="public"
  34683. deprecated="not deprecated">
  34684. </field>
  34685. <doc>
  34686. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  34687. It acts as a global namespace for all keys.]]>
  34688. </doc>
  34689. </class>
  34690. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  34691. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  34692. <interface name="JobHistory.Listener" abstract="true"
  34693. static="true" final="false" visibility="public"
  34694. deprecated="not deprecated">
  34695. <method name="handle"
  34696. abstract="false" native="false" synchronized="false"
  34697. static="false" final="false" visibility="public"
  34698. deprecated="not deprecated">
  34699. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  34700. <param name="values" type="java.util.Map"/>
  34701. <exception name="IOException" type="java.io.IOException"/>
  34702. <doc>
  34703. <![CDATA[Callback method for history parser.
  34704. @param recType type of record, which is the first entry in the line.
  34705. @param values a map of key-value pairs as thry appear in history.
  34706. @throws IOException]]>
  34707. </doc>
  34708. </method>
  34709. <doc>
  34710. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  34711. should be implemented and passed to JobHistory.parseHistory()]]>
  34712. </doc>
  34713. </interface>
  34714. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  34715. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  34716. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  34717. abstract="false"
  34718. static="true" final="false" visibility="public"
  34719. deprecated="not deprecated">
  34720. <constructor name="JobHistory.MapAttempt"
  34721. static="false" final="false" visibility="public"
  34722. deprecated="not deprecated">
  34723. </constructor>
  34724. <method name="logStarted"
  34725. abstract="false" native="false" synchronized="false"
  34726. static="true" final="false" visibility="public"
  34727. deprecated="Use
  34728. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  34729. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  34730. <param name="startTime" type="long"/>
  34731. <param name="hostName" type="java.lang.String"/>
  34732. <doc>
  34733. <![CDATA[Log start time of this map task attempt.
  34734. @param taskAttemptId task attempt id
  34735. @param startTime start time of task attempt as reported by task tracker.
  34736. @param hostName host name of the task attempt.
  34737. @deprecated Use
  34738. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  34739. </doc>
  34740. </method>
  34741. <method name="logStarted"
  34742. abstract="false" native="false" synchronized="false"
  34743. static="true" final="false" visibility="public"
  34744. deprecated="not deprecated">
  34745. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  34746. <param name="startTime" type="long"/>
  34747. <param name="trackerName" type="java.lang.String"/>
  34748. <param name="httpPort" type="int"/>
  34749. <param name="taskType" type="java.lang.String"/>
  34750. <doc>
  34751. <![CDATA[Log start time of this map task attempt.
  34752. @param taskAttemptId task attempt id
  34753. @param startTime start time of task attempt as reported by task tracker.
  34754. @param trackerName name of the tracker executing the task attempt.
  34755. @param httpPort http port of the task tracker executing the task attempt
  34756. @param taskType Whether the attempt is cleanup or setup or map]]>
  34757. </doc>
  34758. </method>
  34759. <method name="logFinished"
  34760. abstract="false" native="false" synchronized="false"
  34761. static="true" final="false" visibility="public"
  34762. deprecated="Use
  34763. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}">
  34764. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  34765. <param name="finishTime" type="long"/>
  34766. <param name="hostName" type="java.lang.String"/>
  34767. <doc>
  34768. <![CDATA[Log finish time of map task attempt.
  34769. @param taskAttemptId task attempt id
  34770. @param finishTime finish time
  34771. @param hostName host name
  34772. @deprecated Use
  34773. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}]]>
  34774. </doc>
  34775. </method>
  34776. <method name="logFinished"
  34777. abstract="false" native="false" synchronized="false"
  34778. static="true" final="false" visibility="public"
  34779. deprecated="not deprecated">
  34780. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  34781. <param name="finishTime" type="long"/>
  34782. <param name="hostName" type="java.lang.String"/>
  34783. <param name="taskType" type="java.lang.String"/>
  34784. <param name="stateString" type="java.lang.String"/>
  34785. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  34786. <doc>
  34787. <![CDATA[Log finish time of map task attempt.
  34788. @param taskAttemptId task attempt id
  34789. @param finishTime finish time
  34790. @param hostName host name
  34791. @param taskType Whether the attempt is cleanup or setup or map
  34792. @param stateString state string of the task attempt
  34793. @param counter counters of the task attempt]]>
  34794. </doc>
  34795. </method>
  34796. <method name="logFailed"
  34797. abstract="false" native="false" synchronized="false"
  34798. static="true" final="false" visibility="public"
  34799. deprecated="Use
  34800. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  34801. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  34802. <param name="timestamp" type="long"/>
  34803. <param name="hostName" type="java.lang.String"/>
  34804. <param name="error" type="java.lang.String"/>
  34805. <doc>
  34806. <![CDATA[Log task attempt failed event.
  34807. @param taskAttemptId task attempt id
  34808. @param timestamp timestamp
  34809. @param hostName hostname of this task attempt.
  34810. @param error error message if any for this task attempt.
  34811. @deprecated Use
  34812. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  34813. </doc>
  34814. </method>
  34815. <method name="logFailed"
  34816. abstract="false" native="false" synchronized="false"
  34817. static="true" final="false" visibility="public"
  34818. deprecated="not deprecated">
  34819. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  34820. <param name="timestamp" type="long"/>
  34821. <param name="hostName" type="java.lang.String"/>
  34822. <param name="error" type="java.lang.String"/>
  34823. <param name="taskType" type="java.lang.String"/>
  34824. <doc>
  34825. <![CDATA[Log task attempt failed event.
  34826. @param taskAttemptId task attempt id
  34827. @param timestamp timestamp
  34828. @param hostName hostname of this task attempt.
  34829. @param error error message if any for this task attempt.
  34830. @param taskType Whether the attempt is cleanup or setup or map]]>
  34831. </doc>
  34832. </method>
  34833. <method name="logKilled"
  34834. abstract="false" native="false" synchronized="false"
  34835. static="true" final="false" visibility="public"
  34836. deprecated="Use
  34837. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  34838. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  34839. <param name="timestamp" type="long"/>
  34840. <param name="hostName" type="java.lang.String"/>
  34841. <param name="error" type="java.lang.String"/>
  34842. <doc>
  34843. <![CDATA[Log task attempt killed event.
  34844. @param taskAttemptId task attempt id
  34845. @param timestamp timestamp
  34846. @param hostName hostname of this task attempt.
  34847. @param error error message if any for this task attempt.
  34848. @deprecated Use
  34849. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  34850. </doc>
  34851. </method>
  34852. <method name="logKilled"
  34853. abstract="false" native="false" synchronized="false"
  34854. static="true" final="false" visibility="public"
  34855. deprecated="not deprecated">
  34856. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  34857. <param name="timestamp" type="long"/>
  34858. <param name="hostName" type="java.lang.String"/>
  34859. <param name="error" type="java.lang.String"/>
  34860. <param name="taskType" type="java.lang.String"/>
  34861. <doc>
  34862. <![CDATA[Log task attempt killed event.
  34863. @param taskAttemptId task attempt id
  34864. @param timestamp timestamp
  34865. @param hostName hostname of this task attempt.
  34866. @param error error message if any for this task attempt.
  34867. @param taskType Whether the attempt is cleanup or setup or map]]>
  34868. </doc>
  34869. </method>
  34870. <doc>
  34871. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  34872. a Map Attempt on a node.]]>
  34873. </doc>
  34874. </class>
  34875. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  34876. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  34877. <class name="JobHistory.RecordTypes" extends="java.lang.Enum"
  34878. abstract="false"
  34879. static="true" final="true" visibility="public"
  34880. deprecated="not deprecated">
  34881. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  34882. abstract="false" native="false" synchronized="false"
  34883. static="true" final="false" visibility="public"
  34884. deprecated="not deprecated">
  34885. </method>
  34886. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  34887. abstract="false" native="false" synchronized="false"
  34888. static="true" final="false" visibility="public"
  34889. deprecated="not deprecated">
  34890. <param name="name" type="java.lang.String"/>
  34891. </method>
  34892. <field name="Jobtracker" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  34893. transient="false" volatile="false"
  34894. static="true" final="true" visibility="public"
  34895. deprecated="not deprecated">
  34896. </field>
  34897. <field name="Job" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  34898. transient="false" volatile="false"
  34899. static="true" final="true" visibility="public"
  34900. deprecated="not deprecated">
  34901. </field>
  34902. <field name="Task" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  34903. transient="false" volatile="false"
  34904. static="true" final="true" visibility="public"
  34905. deprecated="not deprecated">
  34906. </field>
  34907. <field name="MapAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  34908. transient="false" volatile="false"
  34909. static="true" final="true" visibility="public"
  34910. deprecated="not deprecated">
  34911. </field>
  34912. <field name="ReduceAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  34913. transient="false" volatile="false"
  34914. static="true" final="true" visibility="public"
  34915. deprecated="not deprecated">
  34916. </field>
  34917. <field name="Meta" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  34918. transient="false" volatile="false"
  34919. static="true" final="true" visibility="public"
  34920. deprecated="not deprecated">
  34921. </field>
  34922. <doc>
  34923. <![CDATA[Record types are identifiers for each line of log in history files.
  34924. A record type appears as the first token in a single line of log.]]>
  34925. </doc>
  34926. </class>
  34927. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  34928. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  34929. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  34930. abstract="false"
  34931. static="true" final="false" visibility="public"
  34932. deprecated="not deprecated">
  34933. <constructor name="JobHistory.ReduceAttempt"
  34934. static="false" final="false" visibility="public"
  34935. deprecated="not deprecated">
  34936. </constructor>
  34937. <method name="logStarted"
  34938. abstract="false" native="false" synchronized="false"
  34939. static="true" final="false" visibility="public"
  34940. deprecated="Use
  34941. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  34942. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  34943. <param name="startTime" type="long"/>
  34944. <param name="hostName" type="java.lang.String"/>
  34945. <doc>
  34946. <![CDATA[Log start time of Reduce task attempt.
  34947. @param taskAttemptId task attempt id
  34948. @param startTime start time
  34949. @param hostName host name
  34950. @deprecated Use
  34951. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  34952. </doc>
  34953. </method>
  34954. <method name="logStarted"
  34955. abstract="false" native="false" synchronized="false"
  34956. static="true" final="false" visibility="public"
  34957. deprecated="not deprecated">
  34958. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  34959. <param name="startTime" type="long"/>
  34960. <param name="trackerName" type="java.lang.String"/>
  34961. <param name="httpPort" type="int"/>
  34962. <param name="taskType" type="java.lang.String"/>
  34963. <doc>
  34964. <![CDATA[Log start time of Reduce task attempt.
  34965. @param taskAttemptId task attempt id
  34966. @param startTime start time
  34967. @param trackerName tracker name
  34968. @param httpPort the http port of the tracker executing the task attempt
  34969. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  34970. </doc>
  34971. </method>
  34972. <method name="logFinished"
  34973. abstract="false" native="false" synchronized="false"
  34974. static="true" final="false" visibility="public"
  34975. deprecated="Use
  34976. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}">
  34977. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  34978. <param name="shuffleFinished" type="long"/>
  34979. <param name="sortFinished" type="long"/>
  34980. <param name="finishTime" type="long"/>
  34981. <param name="hostName" type="java.lang.String"/>
  34982. <doc>
  34983. <![CDATA[Log finished event of this task.
  34984. @param taskAttemptId task attempt id
  34985. @param shuffleFinished shuffle finish time
  34986. @param sortFinished sort finish time
  34987. @param finishTime finish time of task
  34988. @param hostName host name where task attempt executed
  34989. @deprecated Use
  34990. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}]]>
  34991. </doc>
  34992. </method>
  34993. <method name="logFinished"
  34994. abstract="false" native="false" synchronized="false"
  34995. static="true" final="false" visibility="public"
  34996. deprecated="not deprecated">
  34997. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  34998. <param name="shuffleFinished" type="long"/>
  34999. <param name="sortFinished" type="long"/>
  35000. <param name="finishTime" type="long"/>
  35001. <param name="hostName" type="java.lang.String"/>
  35002. <param name="taskType" type="java.lang.String"/>
  35003. <param name="stateString" type="java.lang.String"/>
  35004. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  35005. <doc>
  35006. <![CDATA[Log finished event of this task.
  35007. @param taskAttemptId task attempt id
  35008. @param shuffleFinished shuffle finish time
  35009. @param sortFinished sort finish time
  35010. @param finishTime finish time of task
  35011. @param hostName host name where task attempt executed
  35012. @param taskType Whether the attempt is cleanup or setup or reduce
  35013. @param stateString the state string of the attempt
  35014. @param counter counters of the attempt]]>
  35015. </doc>
  35016. </method>
  35017. <method name="logFailed"
  35018. abstract="false" native="false" synchronized="false"
  35019. static="true" final="false" visibility="public"
  35020. deprecated="Use
  35021. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  35022. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  35023. <param name="timestamp" type="long"/>
  35024. <param name="hostName" type="java.lang.String"/>
  35025. <param name="error" type="java.lang.String"/>
  35026. <doc>
  35027. <![CDATA[Log failed reduce task attempt.
  35028. @param taskAttemptId task attempt id
  35029. @param timestamp time stamp when task failed
  35030. @param hostName host name of the task attempt.
  35031. @param error error message of the task.
  35032. @deprecated Use
  35033. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  35034. </doc>
  35035. </method>
  35036. <method name="logFailed"
  35037. abstract="false" native="false" synchronized="false"
  35038. static="true" final="false" visibility="public"
  35039. deprecated="not deprecated">
  35040. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  35041. <param name="timestamp" type="long"/>
  35042. <param name="hostName" type="java.lang.String"/>
  35043. <param name="error" type="java.lang.String"/>
  35044. <param name="taskType" type="java.lang.String"/>
  35045. <doc>
  35046. <![CDATA[Log failed reduce task attempt.
  35047. @param taskAttemptId task attempt id
  35048. @param timestamp time stamp when task failed
  35049. @param hostName host name of the task attempt.
  35050. @param error error message of the task.
  35051. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  35052. </doc>
  35053. </method>
  35054. <method name="logKilled"
  35055. abstract="false" native="false" synchronized="false"
  35056. static="true" final="false" visibility="public"
  35057. deprecated="Use
  35058. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  35059. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  35060. <param name="timestamp" type="long"/>
  35061. <param name="hostName" type="java.lang.String"/>
  35062. <param name="error" type="java.lang.String"/>
  35063. <doc>
  35064. <![CDATA[Log killed reduce task attempt.
  35065. @param taskAttemptId task attempt id
  35066. @param timestamp time stamp when task failed
  35067. @param hostName host name of the task attempt.
  35068. @param error error message of the task.
  35069. @deprecated Use
  35070. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  35071. </doc>
  35072. </method>
  35073. <method name="logKilled"
  35074. abstract="false" native="false" synchronized="false"
  35075. static="true" final="false" visibility="public"
  35076. deprecated="not deprecated">
  35077. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  35078. <param name="timestamp" type="long"/>
  35079. <param name="hostName" type="java.lang.String"/>
  35080. <param name="error" type="java.lang.String"/>
  35081. <param name="taskType" type="java.lang.String"/>
  35082. <doc>
  35083. <![CDATA[Log killed reduce task attempt.
  35084. @param taskAttemptId task attempt id
  35085. @param timestamp time stamp when task failed
  35086. @param hostName host name of the task attempt.
  35087. @param error error message of the task.
  35088. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  35089. </doc>
  35090. </method>
  35091. <doc>
  35092. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  35093. a Map Attempt on a node.]]>
  35094. </doc>
  35095. </class>
  35096. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  35097. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  35098. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  35099. abstract="false"
  35100. static="true" final="false" visibility="public"
  35101. deprecated="not deprecated">
  35102. <constructor name="JobHistory.Task"
  35103. static="false" final="false" visibility="public"
  35104. deprecated="not deprecated">
  35105. </constructor>
  35106. <method name="logStarted"
  35107. abstract="false" native="false" synchronized="false"
  35108. static="true" final="false" visibility="public"
  35109. deprecated="not deprecated">
  35110. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  35111. <param name="taskType" type="java.lang.String"/>
  35112. <param name="startTime" type="long"/>
  35113. <param name="splitLocations" type="java.lang.String"/>
  35114. <doc>
  35115. <![CDATA[Log start time of task (TIP).
  35116. @param taskId task id
  35117. @param taskType MAP or REDUCE
  35118. @param startTime startTime of tip.]]>
  35119. </doc>
  35120. </method>
  35121. <method name="logFinished"
  35122. abstract="false" native="false" synchronized="false"
  35123. static="true" final="false" visibility="public"
  35124. deprecated="not deprecated">
  35125. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  35126. <param name="taskType" type="java.lang.String"/>
  35127. <param name="finishTime" type="long"/>
  35128. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  35129. <doc>
  35130. <![CDATA[Log finish time of task.
  35131. @param taskId task id
  35132. @param taskType MAP or REDUCE
  35133. @param finishTime finish timeof task in ms]]>
  35134. </doc>
  35135. </method>
  35136. <method name="logUpdates"
  35137. abstract="false" native="false" synchronized="false"
  35138. static="true" final="false" visibility="public"
  35139. deprecated="not deprecated">
  35140. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  35141. <param name="finishTime" type="long"/>
  35142. <doc>
  35143. <![CDATA[Update the finish time of task.
  35144. @param taskId task id
  35145. @param finishTime finish time of task in ms]]>
  35146. </doc>
  35147. </method>
  35148. <method name="logFailed"
  35149. abstract="false" native="false" synchronized="false"
  35150. static="true" final="false" visibility="public"
  35151. deprecated="not deprecated">
  35152. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  35153. <param name="taskType" type="java.lang.String"/>
  35154. <param name="time" type="long"/>
  35155. <param name="error" type="java.lang.String"/>
  35156. <doc>
  35157. <![CDATA[Log job failed event.
  35158. @param taskId task id
  35159. @param taskType MAP or REDUCE.
  35160. @param time timestamp when job failed detected.
  35161. @param error error message for failure.]]>
  35162. </doc>
  35163. </method>
  35164. <method name="logFailed"
  35165. abstract="false" native="false" synchronized="false"
  35166. static="true" final="false" visibility="public"
  35167. deprecated="not deprecated">
  35168. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  35169. <param name="taskType" type="java.lang.String"/>
  35170. <param name="time" type="long"/>
  35171. <param name="error" type="java.lang.String"/>
  35172. <param name="failedDueToAttempt" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  35173. <doc>
  35174. <![CDATA[@param failedDueToAttempt The attempt that caused the failure, if any]]>
  35175. </doc>
  35176. </method>
  35177. <method name="getTaskAttempts" return="java.util.Map"
  35178. abstract="false" native="false" synchronized="false"
  35179. static="false" final="false" visibility="public"
  35180. deprecated="not deprecated">
  35181. <doc>
  35182. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  35183. </doc>
  35184. </method>
  35185. <doc>
  35186. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  35187. All events logged by this class are logged in a separate file per job in
  35188. job tracker history. These events map to TIPs in jobtracker.]]>
  35189. </doc>
  35190. </class>
  35191. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  35192. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  35193. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  35194. abstract="false"
  35195. static="true" final="false" visibility="public"
  35196. deprecated="not deprecated">
  35197. <constructor name="JobHistory.TaskAttempt"
  35198. static="false" final="false" visibility="public"
  35199. deprecated="not deprecated">
  35200. </constructor>
  35201. <doc>
  35202. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  35203. </doc>
  35204. </class>
  35205. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  35206. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  35207. <class name="JobHistory.Values" extends="java.lang.Enum"
  35208. abstract="false"
  35209. static="true" final="true" visibility="public"
  35210. deprecated="not deprecated">
  35211. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  35212. abstract="false" native="false" synchronized="false"
  35213. static="true" final="false" visibility="public"
  35214. deprecated="not deprecated">
  35215. </method>
  35216. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  35217. abstract="false" native="false" synchronized="false"
  35218. static="true" final="false" visibility="public"
  35219. deprecated="not deprecated">
  35220. <param name="name" type="java.lang.String"/>
  35221. </method>
  35222. <field name="SUCCESS" type="org.apache.hadoop.mapred.JobHistory.Values"
  35223. transient="false" volatile="false"
  35224. static="true" final="true" visibility="public"
  35225. deprecated="not deprecated">
  35226. </field>
  35227. <field name="FAILED" type="org.apache.hadoop.mapred.JobHistory.Values"
  35228. transient="false" volatile="false"
  35229. static="true" final="true" visibility="public"
  35230. deprecated="not deprecated">
  35231. </field>
  35232. <field name="KILLED" type="org.apache.hadoop.mapred.JobHistory.Values"
  35233. transient="false" volatile="false"
  35234. static="true" final="true" visibility="public"
  35235. deprecated="not deprecated">
  35236. </field>
  35237. <field name="MAP" type="org.apache.hadoop.mapred.JobHistory.Values"
  35238. transient="false" volatile="false"
  35239. static="true" final="true" visibility="public"
  35240. deprecated="not deprecated">
  35241. </field>
  35242. <field name="REDUCE" type="org.apache.hadoop.mapred.JobHistory.Values"
  35243. transient="false" volatile="false"
  35244. static="true" final="true" visibility="public"
  35245. deprecated="not deprecated">
  35246. </field>
  35247. <field name="CLEANUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  35248. transient="false" volatile="false"
  35249. static="true" final="true" visibility="public"
  35250. deprecated="not deprecated">
  35251. </field>
  35252. <field name="RUNNING" type="org.apache.hadoop.mapred.JobHistory.Values"
  35253. transient="false" volatile="false"
  35254. static="true" final="true" visibility="public"
  35255. deprecated="not deprecated">
  35256. </field>
  35257. <field name="PREP" type="org.apache.hadoop.mapred.JobHistory.Values"
  35258. transient="false" volatile="false"
  35259. static="true" final="true" visibility="public"
  35260. deprecated="not deprecated">
  35261. </field>
  35262. <field name="SETUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  35263. transient="false" volatile="false"
  35264. static="true" final="true" visibility="public"
  35265. deprecated="not deprecated">
  35266. </field>
  35267. <doc>
  35268. <![CDATA[This enum contains some of the values commonly used by history log events.
  35269. since values in history can only be strings - Values.name() is used in
  35270. most places in history file.]]>
  35271. </doc>
  35272. </class>
  35273. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  35274. <!-- start class org.apache.hadoop.mapred.JobID -->
  35275. <class name="JobID" extends="org.apache.hadoop.mapreduce.JobID"
  35276. abstract="false"
  35277. static="false" final="false" visibility="public"
  35278. deprecated="not deprecated">
  35279. <constructor name="JobID" type="java.lang.String, int"
  35280. static="false" final="false" visibility="public"
  35281. deprecated="not deprecated">
  35282. <doc>
  35283. <![CDATA[Constructs a JobID object
  35284. @param jtIdentifier jobTracker identifier
  35285. @param id job number]]>
  35286. </doc>
  35287. </constructor>
  35288. <constructor name="JobID"
  35289. static="false" final="false" visibility="public"
  35290. deprecated="not deprecated">
  35291. </constructor>
  35292. <method name="downgrade" return="org.apache.hadoop.mapred.JobID"
  35293. abstract="false" native="false" synchronized="false"
  35294. static="true" final="false" visibility="public"
  35295. deprecated="not deprecated">
  35296. <param name="old" type="org.apache.hadoop.mapreduce.JobID"/>
  35297. <doc>
  35298. <![CDATA[Downgrade a new JobID to an old one
  35299. @param old a new or old JobID
  35300. @return either old or a new JobID build to match old]]>
  35301. </doc>
  35302. </method>
  35303. <method name="read" return="org.apache.hadoop.mapred.JobID"
  35304. abstract="false" native="false" synchronized="false"
  35305. static="true" final="false" visibility="public"
  35306. deprecated="not deprecated">
  35307. <param name="in" type="java.io.DataInput"/>
  35308. <exception name="IOException" type="java.io.IOException"/>
  35309. </method>
  35310. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  35311. abstract="false" native="false" synchronized="false"
  35312. static="true" final="false" visibility="public"
  35313. deprecated="not deprecated">
  35314. <param name="str" type="java.lang.String"/>
  35315. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  35316. <doc>
  35317. <![CDATA[Construct a JobId object from given string
  35318. @return constructed JobId object or null if the given String is null
  35319. @throws IllegalArgumentException if the given string is malformed]]>
  35320. </doc>
  35321. </method>
  35322. <method name="getJobIDsPattern" return="java.lang.String"
  35323. abstract="false" native="false" synchronized="false"
  35324. static="true" final="false" visibility="public"
  35325. deprecated="not deprecated">
  35326. <param name="jtIdentifier" type="java.lang.String"/>
  35327. <param name="jobId" type="java.lang.Integer"/>
  35328. <doc>
  35329. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  35330. be given null, in which case that part of the regex will be generic.
  35331. For example to obtain a regex matching <i>any job</i>
  35332. run on the jobtracker started at <i>200707121733</i>, we would use :
  35333. <pre>
  35334. JobID.getTaskIDsPattern("200707121733", null);
  35335. </pre>
  35336. which will return :
  35337. <pre> "job_200707121733_[0-9]*" </pre>
  35338. @param jtIdentifier jobTracker identifier, or null
  35339. @param jobId job number, or null
  35340. @return a regex pattern matching JobIDs]]>
  35341. </doc>
  35342. </method>
  35343. <doc>
  35344. <![CDATA[JobID represents the immutable and unique identifier for
  35345. the job. JobID consists of two parts. First part
  35346. represents the jobtracker identifier, so that jobID to jobtracker map
  35347. is defined. For cluster setup this string is the jobtracker
  35348. start time, for local setting, it is "local".
  35349. Second part of the JobID is the job number. <br>
  35350. An example JobID is :
  35351. <code>job_200707121733_0003</code> , which represents the third job
  35352. running at the jobtracker started at <code>200707121733</code>.
  35353. <p>
  35354. Applications should never construct or parse JobID strings, but rather
  35355. use appropriate constructors or {@link #forName(String)} method.
  35356. @see TaskID
  35357. @see TaskAttemptID]]>
  35358. </doc>
  35359. </class>
  35360. <!-- end class org.apache.hadoop.mapred.JobID -->
  35361. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  35362. <class name="JobPriority" extends="java.lang.Enum"
  35363. abstract="false"
  35364. static="false" final="true" visibility="public"
  35365. deprecated="not deprecated">
  35366. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  35367. abstract="false" native="false" synchronized="false"
  35368. static="true" final="false" visibility="public"
  35369. deprecated="not deprecated">
  35370. </method>
  35371. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  35372. abstract="false" native="false" synchronized="false"
  35373. static="true" final="false" visibility="public"
  35374. deprecated="not deprecated">
  35375. <param name="name" type="java.lang.String"/>
  35376. </method>
  35377. <field name="VERY_HIGH" type="org.apache.hadoop.mapred.JobPriority"
  35378. transient="false" volatile="false"
  35379. static="true" final="true" visibility="public"
  35380. deprecated="not deprecated">
  35381. </field>
  35382. <field name="HIGH" type="org.apache.hadoop.mapred.JobPriority"
  35383. transient="false" volatile="false"
  35384. static="true" final="true" visibility="public"
  35385. deprecated="not deprecated">
  35386. </field>
  35387. <field name="NORMAL" type="org.apache.hadoop.mapred.JobPriority"
  35388. transient="false" volatile="false"
  35389. static="true" final="true" visibility="public"
  35390. deprecated="not deprecated">
  35391. </field>
  35392. <field name="LOW" type="org.apache.hadoop.mapred.JobPriority"
  35393. transient="false" volatile="false"
  35394. static="true" final="true" visibility="public"
  35395. deprecated="not deprecated">
  35396. </field>
  35397. <field name="VERY_LOW" type="org.apache.hadoop.mapred.JobPriority"
  35398. transient="false" volatile="false"
  35399. static="true" final="true" visibility="public"
  35400. deprecated="not deprecated">
  35401. </field>
  35402. <doc>
  35403. <![CDATA[Used to describe the priority of the running job.]]>
  35404. </doc>
  35405. </class>
  35406. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  35407. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  35408. <class name="JobProfile" extends="java.lang.Object"
  35409. abstract="false"
  35410. static="false" final="false" visibility="public"
  35411. deprecated="not deprecated">
  35412. <implements name="org.apache.hadoop.io.Writable"/>
  35413. <constructor name="JobProfile"
  35414. static="false" final="false" visibility="public"
  35415. deprecated="not deprecated">
  35416. <doc>
  35417. <![CDATA[Construct an empty {@link JobProfile}.]]>
  35418. </doc>
  35419. </constructor>
  35420. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String"
  35421. static="false" final="false" visibility="public"
  35422. deprecated="not deprecated">
  35423. <doc>
  35424. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  35425. job config-file, job-details url and job name.
  35426. @param user userid of the person who submitted the job.
  35427. @param jobid id of the job.
  35428. @param jobFile job configuration file.
  35429. @param url link to the web-ui for details of the job.
  35430. @param name user-specified job name.]]>
  35431. </doc>
  35432. </constructor>
  35433. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  35434. static="false" final="false" visibility="public"
  35435. deprecated="not deprecated">
  35436. <doc>
  35437. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  35438. job config-file, job-details url and job name.
  35439. @param user userid of the person who submitted the job.
  35440. @param jobid id of the job.
  35441. @param jobFile job configuration file.
  35442. @param url link to the web-ui for details of the job.
  35443. @param name user-specified job name.
  35444. @param queueName name of the queue to which the job is submitted]]>
  35445. </doc>
  35446. </constructor>
  35447. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  35448. static="false" final="false" visibility="public"
  35449. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  35450. <doc>
  35451. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  35452. </doc>
  35453. </constructor>
  35454. <method name="getUser" return="java.lang.String"
  35455. abstract="false" native="false" synchronized="false"
  35456. static="false" final="false" visibility="public"
  35457. deprecated="not deprecated">
  35458. <doc>
  35459. <![CDATA[Get the user id.]]>
  35460. </doc>
  35461. </method>
  35462. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  35463. abstract="false" native="false" synchronized="false"
  35464. static="false" final="false" visibility="public"
  35465. deprecated="not deprecated">
  35466. <doc>
  35467. <![CDATA[Get the job id.]]>
  35468. </doc>
  35469. </method>
  35470. <method name="getJobId" return="java.lang.String"
  35471. abstract="false" native="false" synchronized="false"
  35472. static="false" final="false" visibility="public"
  35473. deprecated="use getJobID() instead">
  35474. <doc>
  35475. <![CDATA[@deprecated use getJobID() instead]]>
  35476. </doc>
  35477. </method>
  35478. <method name="getJobFile" return="java.lang.String"
  35479. abstract="false" native="false" synchronized="false"
  35480. static="false" final="false" visibility="public"
  35481. deprecated="not deprecated">
  35482. <doc>
  35483. <![CDATA[Get the configuration file for the job.]]>
  35484. </doc>
  35485. </method>
  35486. <method name="getURL" return="java.net.URL"
  35487. abstract="false" native="false" synchronized="false"
  35488. static="false" final="false" visibility="public"
  35489. deprecated="not deprecated">
  35490. <doc>
  35491. <![CDATA[Get the link to the web-ui for details of the job.]]>
  35492. </doc>
  35493. </method>
  35494. <method name="getJobName" return="java.lang.String"
  35495. abstract="false" native="false" synchronized="false"
  35496. static="false" final="false" visibility="public"
  35497. deprecated="not deprecated">
  35498. <doc>
  35499. <![CDATA[Get the user-specified job name.]]>
  35500. </doc>
  35501. </method>
  35502. <method name="getQueueName" return="java.lang.String"
  35503. abstract="false" native="false" synchronized="false"
  35504. static="false" final="false" visibility="public"
  35505. deprecated="not deprecated">
  35506. <doc>
  35507. <![CDATA[Get the name of the queue to which the job is submitted.
  35508. @return name of the queue.]]>
  35509. </doc>
  35510. </method>
  35511. <method name="write"
  35512. abstract="false" native="false" synchronized="false"
  35513. static="false" final="false" visibility="public"
  35514. deprecated="not deprecated">
  35515. <param name="out" type="java.io.DataOutput"/>
  35516. <exception name="IOException" type="java.io.IOException"/>
  35517. </method>
  35518. <method name="readFields"
  35519. abstract="false" native="false" synchronized="false"
  35520. static="false" final="false" visibility="public"
  35521. deprecated="not deprecated">
  35522. <param name="in" type="java.io.DataInput"/>
  35523. <exception name="IOException" type="java.io.IOException"/>
  35524. </method>
  35525. <doc>
  35526. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  35527. whether living or dead.]]>
  35528. </doc>
  35529. </class>
  35530. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  35531. <!-- start class org.apache.hadoop.mapred.JobQueueInfo -->
  35532. <class name="JobQueueInfo" extends="java.lang.Object"
  35533. abstract="false"
  35534. static="false" final="false" visibility="public"
  35535. deprecated="not deprecated">
  35536. <implements name="org.apache.hadoop.io.Writable"/>
  35537. <constructor name="JobQueueInfo"
  35538. static="false" final="false" visibility="public"
  35539. deprecated="not deprecated">
  35540. <doc>
  35541. <![CDATA[Default constructor for Job Queue Info.]]>
  35542. </doc>
  35543. </constructor>
  35544. <constructor name="JobQueueInfo" type="java.lang.String, java.lang.String"
  35545. static="false" final="false" visibility="public"
  35546. deprecated="not deprecated">
  35547. <doc>
  35548. <![CDATA[Construct a new JobQueueInfo object using the queue name and the
  35549. scheduling information passed.
  35550. @param queueName Name of the job queue
  35551. @param schedulingInfo Scheduling Information associated with the job
  35552. queue]]>
  35553. </doc>
  35554. </constructor>
  35555. <method name="setQueueName"
  35556. abstract="false" native="false" synchronized="false"
  35557. static="false" final="false" visibility="public"
  35558. deprecated="not deprecated">
  35559. <param name="queueName" type="java.lang.String"/>
  35560. <doc>
  35561. <![CDATA[Set the queue name of the JobQueueInfo
  35562. @param queueName Name of the job queue.]]>
  35563. </doc>
  35564. </method>
  35565. <method name="getQueueName" return="java.lang.String"
  35566. abstract="false" native="false" synchronized="false"
  35567. static="false" final="false" visibility="public"
  35568. deprecated="not deprecated">
  35569. <doc>
  35570. <![CDATA[Get the queue name from JobQueueInfo
  35571. @return queue name]]>
  35572. </doc>
  35573. </method>
  35574. <method name="setSchedulingInfo"
  35575. abstract="false" native="false" synchronized="false"
  35576. static="false" final="false" visibility="public"
  35577. deprecated="not deprecated">
  35578. <param name="schedulingInfo" type="java.lang.String"/>
  35579. <doc>
  35580. <![CDATA[Set the scheduling information associated to particular job queue
  35581. @param schedulingInfo]]>
  35582. </doc>
  35583. </method>
  35584. <method name="getSchedulingInfo" return="java.lang.String"
  35585. abstract="false" native="false" synchronized="false"
  35586. static="false" final="false" visibility="public"
  35587. deprecated="not deprecated">
  35588. <doc>
  35589. <![CDATA[Gets the scheduling information associated to particular job queue.
  35590. If nothing is set would return <b>"N/A"</b>
  35591. @return Scheduling information associated to particular Job Queue]]>
  35592. </doc>
  35593. </method>
  35594. <method name="readFields"
  35595. abstract="false" native="false" synchronized="false"
  35596. static="false" final="false" visibility="public"
  35597. deprecated="not deprecated">
  35598. <param name="in" type="java.io.DataInput"/>
  35599. <exception name="IOException" type="java.io.IOException"/>
  35600. </method>
  35601. <method name="write"
  35602. abstract="false" native="false" synchronized="false"
  35603. static="false" final="false" visibility="public"
  35604. deprecated="not deprecated">
  35605. <param name="out" type="java.io.DataOutput"/>
  35606. <exception name="IOException" type="java.io.IOException"/>
  35607. </method>
  35608. <doc>
  35609. <![CDATA[Class that contains the information regarding the Job Queues which are
  35610. maintained by the Hadoop Map/Reduce framework.]]>
  35611. </doc>
  35612. </class>
  35613. <!-- end class org.apache.hadoop.mapred.JobQueueInfo -->
  35614. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  35615. <class name="JobStatus" extends="java.lang.Object"
  35616. abstract="false"
  35617. static="false" final="false" visibility="public"
  35618. deprecated="not deprecated">
  35619. <implements name="org.apache.hadoop.io.Writable"/>
  35620. <implements name="java.lang.Cloneable"/>
  35621. <constructor name="JobStatus"
  35622. static="false" final="false" visibility="public"
  35623. deprecated="not deprecated">
  35624. </constructor>
  35625. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int"
  35626. static="false" final="false" visibility="public"
  35627. deprecated="not deprecated">
  35628. <doc>
  35629. <![CDATA[Create a job status object for a given jobid.
  35630. @param jobid The jobid of the job
  35631. @param mapProgress The progress made on the maps
  35632. @param reduceProgress The progress made on the reduces
  35633. @param cleanupProgress The progress made on cleanup
  35634. @param runState The current state of the job]]>
  35635. </doc>
  35636. </constructor>
  35637. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  35638. static="false" final="false" visibility="public"
  35639. deprecated="not deprecated">
  35640. <doc>
  35641. <![CDATA[Create a job status object for a given jobid.
  35642. @param jobid The jobid of the job
  35643. @param mapProgress The progress made on the maps
  35644. @param reduceProgress The progress made on the reduces
  35645. @param runState The current state of the job]]>
  35646. </doc>
  35647. </constructor>
  35648. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  35649. static="false" final="false" visibility="public"
  35650. deprecated="not deprecated">
  35651. <doc>
  35652. <![CDATA[Create a job status object for a given jobid.
  35653. @param jobid The jobid of the job
  35654. @param mapProgress The progress made on the maps
  35655. @param reduceProgress The progress made on the reduces
  35656. @param runState The current state of the job
  35657. @param jp Priority of the job.]]>
  35658. </doc>
  35659. </constructor>
  35660. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  35661. static="false" final="false" visibility="public"
  35662. deprecated="not deprecated">
  35663. <doc>
  35664. <![CDATA[Create a job status object for a given jobid.
  35665. @param jobid The jobid of the job
  35666. @param setupProgress The progress made on the setup
  35667. @param mapProgress The progress made on the maps
  35668. @param reduceProgress The progress made on the reduces
  35669. @param cleanupProgress The progress made on the cleanup
  35670. @param runState The current state of the job
  35671. @param jp Priority of the job.]]>
  35672. </doc>
  35673. </constructor>
  35674. <method name="getJobId" return="java.lang.String"
  35675. abstract="false" native="false" synchronized="false"
  35676. static="false" final="false" visibility="public"
  35677. deprecated="use getJobID instead">
  35678. <doc>
  35679. <![CDATA[@deprecated use getJobID instead]]>
  35680. </doc>
  35681. </method>
  35682. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  35683. abstract="false" native="false" synchronized="false"
  35684. static="false" final="false" visibility="public"
  35685. deprecated="not deprecated">
  35686. <doc>
  35687. <![CDATA[@return The jobid of the Job]]>
  35688. </doc>
  35689. </method>
  35690. <method name="mapProgress" return="float"
  35691. abstract="false" native="false" synchronized="true"
  35692. static="false" final="false" visibility="public"
  35693. deprecated="not deprecated">
  35694. <doc>
  35695. <![CDATA[@return Percentage of progress in maps]]>
  35696. </doc>
  35697. </method>
  35698. <method name="cleanupProgress" return="float"
  35699. abstract="false" native="false" synchronized="true"
  35700. static="false" final="false" visibility="public"
  35701. deprecated="not deprecated">
  35702. <doc>
  35703. <![CDATA[@return Percentage of progress in cleanup]]>
  35704. </doc>
  35705. </method>
  35706. <method name="setupProgress" return="float"
  35707. abstract="false" native="false" synchronized="true"
  35708. static="false" final="false" visibility="public"
  35709. deprecated="not deprecated">
  35710. <doc>
  35711. <![CDATA[@return Percentage of progress in setup]]>
  35712. </doc>
  35713. </method>
  35714. <method name="reduceProgress" return="float"
  35715. abstract="false" native="false" synchronized="true"
  35716. static="false" final="false" visibility="public"
  35717. deprecated="not deprecated">
  35718. <doc>
  35719. <![CDATA[@return Percentage of progress in reduce]]>
  35720. </doc>
  35721. </method>
  35722. <method name="getRunState" return="int"
  35723. abstract="false" native="false" synchronized="true"
  35724. static="false" final="false" visibility="public"
  35725. deprecated="not deprecated">
  35726. <doc>
  35727. <![CDATA[@return running state of the job]]>
  35728. </doc>
  35729. </method>
  35730. <method name="setRunState"
  35731. abstract="false" native="false" synchronized="true"
  35732. static="false" final="false" visibility="public"
  35733. deprecated="not deprecated">
  35734. <param name="state" type="int"/>
  35735. <doc>
  35736. <![CDATA[Change the current run state of the job.]]>
  35737. </doc>
  35738. </method>
  35739. <method name="getStartTime" return="long"
  35740. abstract="false" native="false" synchronized="true"
  35741. static="false" final="false" visibility="public"
  35742. deprecated="not deprecated">
  35743. <doc>
  35744. <![CDATA[@return start time of the job]]>
  35745. </doc>
  35746. </method>
  35747. <method name="clone" return="java.lang.Object"
  35748. abstract="false" native="false" synchronized="false"
  35749. static="false" final="false" visibility="public"
  35750. deprecated="not deprecated">
  35751. </method>
  35752. <method name="getUsername" return="java.lang.String"
  35753. abstract="false" native="false" synchronized="true"
  35754. static="false" final="false" visibility="public"
  35755. deprecated="not deprecated">
  35756. <doc>
  35757. <![CDATA[@return the username of the job]]>
  35758. </doc>
  35759. </method>
  35760. <method name="getSchedulingInfo" return="java.lang.String"
  35761. abstract="false" native="false" synchronized="true"
  35762. static="false" final="false" visibility="public"
  35763. deprecated="not deprecated">
  35764. <doc>
  35765. <![CDATA[Gets the Scheduling information associated to a particular Job.
  35766. @return the scheduling information of the job]]>
  35767. </doc>
  35768. </method>
  35769. <method name="setSchedulingInfo"
  35770. abstract="false" native="false" synchronized="true"
  35771. static="false" final="false" visibility="public"
  35772. deprecated="not deprecated">
  35773. <param name="schedulingInfo" type="java.lang.String"/>
  35774. <doc>
  35775. <![CDATA[Used to set the scheduling information associated to a particular Job.
  35776. @param schedulingInfo Scheduling information of the job]]>
  35777. </doc>
  35778. </method>
  35779. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  35780. abstract="false" native="false" synchronized="true"
  35781. static="false" final="false" visibility="public"
  35782. deprecated="not deprecated">
  35783. <doc>
  35784. <![CDATA[Return the priority of the job
  35785. @return job priority]]>
  35786. </doc>
  35787. </method>
  35788. <method name="setJobPriority"
  35789. abstract="false" native="false" synchronized="true"
  35790. static="false" final="false" visibility="public"
  35791. deprecated="not deprecated">
  35792. <param name="jp" type="org.apache.hadoop.mapred.JobPriority"/>
  35793. <doc>
  35794. <![CDATA[Set the priority of the job, defaulting to NORMAL.
  35795. @param jp new job priority]]>
  35796. </doc>
  35797. </method>
  35798. <method name="isJobComplete" return="boolean"
  35799. abstract="false" native="false" synchronized="true"
  35800. static="false" final="false" visibility="public"
  35801. deprecated="not deprecated">
  35802. <doc>
  35803. <![CDATA[Returns true if the status is for a completed job.]]>
  35804. </doc>
  35805. </method>
  35806. <method name="write"
  35807. abstract="false" native="false" synchronized="true"
  35808. static="false" final="false" visibility="public"
  35809. deprecated="not deprecated">
  35810. <param name="out" type="java.io.DataOutput"/>
  35811. <exception name="IOException" type="java.io.IOException"/>
  35812. </method>
  35813. <method name="readFields"
  35814. abstract="false" native="false" synchronized="true"
  35815. static="false" final="false" visibility="public"
  35816. deprecated="not deprecated">
  35817. <param name="in" type="java.io.DataInput"/>
  35818. <exception name="IOException" type="java.io.IOException"/>
  35819. </method>
  35820. <field name="RUNNING" type="int"
  35821. transient="false" volatile="false"
  35822. static="true" final="true" visibility="public"
  35823. deprecated="not deprecated">
  35824. </field>
  35825. <field name="SUCCEEDED" type="int"
  35826. transient="false" volatile="false"
  35827. static="true" final="true" visibility="public"
  35828. deprecated="not deprecated">
  35829. </field>
  35830. <field name="FAILED" type="int"
  35831. transient="false" volatile="false"
  35832. static="true" final="true" visibility="public"
  35833. deprecated="not deprecated">
  35834. </field>
  35835. <field name="PREP" type="int"
  35836. transient="false" volatile="false"
  35837. static="true" final="true" visibility="public"
  35838. deprecated="not deprecated">
  35839. </field>
  35840. <field name="KILLED" type="int"
  35841. transient="false" volatile="false"
  35842. static="true" final="true" visibility="public"
  35843. deprecated="not deprecated">
  35844. </field>
  35845. <doc>
  35846. <![CDATA[Describes the current status of a job. This is
  35847. not intended to be a comprehensive piece of data.
  35848. For that, look at JobProfile.]]>
  35849. </doc>
  35850. </class>
  35851. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  35852. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  35853. <class name="JobTracker" extends="java.lang.Object"
  35854. abstract="false"
  35855. static="false" final="false" visibility="public"
  35856. deprecated="not deprecated">
  35857. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  35858. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  35859. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  35860. <implements name="org.apache.hadoop.mapred.TaskTrackerManager"/>
  35861. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  35862. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  35863. abstract="false" native="false" synchronized="false"
  35864. static="true" final="false" visibility="public"
  35865. deprecated="not deprecated">
  35866. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  35867. <exception name="IOException" type="java.io.IOException"/>
  35868. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35869. <doc>
  35870. <![CDATA[Start the JobTracker with given configuration.
  35871. The conf will be modified to reflect the actual ports on which
  35872. the JobTracker is up and running if the user passes the port as
  35873. <code>zero</code>.
  35874. @param conf configuration for the JobTracker.
  35875. @throws IOException]]>
  35876. </doc>
  35877. </method>
  35878. <method name="stopTracker"
  35879. abstract="false" native="false" synchronized="false"
  35880. static="false" final="false" visibility="public"
  35881. deprecated="not deprecated">
  35882. <exception name="IOException" type="java.io.IOException"/>
  35883. </method>
  35884. <method name="getProtocolVersion" return="long"
  35885. abstract="false" native="false" synchronized="false"
  35886. static="false" final="false" visibility="public"
  35887. deprecated="not deprecated">
  35888. <param name="protocol" type="java.lang.String"/>
  35889. <param name="clientVersion" type="long"/>
  35890. <exception name="IOException" type="java.io.IOException"/>
  35891. </method>
  35892. <method name="hasRestarted" return="boolean"
  35893. abstract="false" native="false" synchronized="false"
  35894. static="false" final="false" visibility="public"
  35895. deprecated="not deprecated">
  35896. <doc>
  35897. <![CDATA[Whether the JT has restarted]]>
  35898. </doc>
  35899. </method>
  35900. <method name="hasRecovered" return="boolean"
  35901. abstract="false" native="false" synchronized="false"
  35902. static="false" final="false" visibility="public"
  35903. deprecated="not deprecated">
  35904. <doc>
  35905. <![CDATA[Whether the JT has recovered upon restart]]>
  35906. </doc>
  35907. </method>
  35908. <method name="getRecoveryDuration" return="long"
  35909. abstract="false" native="false" synchronized="false"
  35910. static="false" final="false" visibility="public"
  35911. deprecated="not deprecated">
  35912. <doc>
  35913. <![CDATA[How long the jobtracker took to recover from restart.]]>
  35914. </doc>
  35915. </method>
  35916. <method name="getInstrumentationClass" return="java.lang.Class"
  35917. abstract="false" native="false" synchronized="false"
  35918. static="true" final="false" visibility="public"
  35919. deprecated="not deprecated">
  35920. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35921. </method>
  35922. <method name="setInstrumentationClass"
  35923. abstract="false" native="false" synchronized="false"
  35924. static="true" final="false" visibility="public"
  35925. deprecated="not deprecated">
  35926. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35927. <param name="t" type="java.lang.Class"/>
  35928. </method>
  35929. <method name="getAddress" return="java.net.InetSocketAddress"
  35930. abstract="false" native="false" synchronized="false"
  35931. static="true" final="false" visibility="public"
  35932. deprecated="not deprecated">
  35933. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35934. </method>
  35935. <method name="offerService"
  35936. abstract="false" native="false" synchronized="false"
  35937. static="false" final="false" visibility="public"
  35938. deprecated="not deprecated">
  35939. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35940. <exception name="IOException" type="java.io.IOException"/>
  35941. <doc>
  35942. <![CDATA[Run forever]]>
  35943. </doc>
  35944. </method>
  35945. <method name="getTotalSubmissions" return="int"
  35946. abstract="false" native="false" synchronized="false"
  35947. static="false" final="false" visibility="public"
  35948. deprecated="not deprecated">
  35949. </method>
  35950. <method name="getJobTrackerMachine" return="java.lang.String"
  35951. abstract="false" native="false" synchronized="false"
  35952. static="false" final="false" visibility="public"
  35953. deprecated="not deprecated">
  35954. </method>
  35955. <method name="getTrackerIdentifier" return="java.lang.String"
  35956. abstract="false" native="false" synchronized="false"
  35957. static="false" final="false" visibility="public"
  35958. deprecated="not deprecated">
  35959. <doc>
  35960. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  35961. @return a string with a unique identifier]]>
  35962. </doc>
  35963. </method>
  35964. <method name="getTrackerPort" return="int"
  35965. abstract="false" native="false" synchronized="false"
  35966. static="false" final="false" visibility="public"
  35967. deprecated="not deprecated">
  35968. </method>
  35969. <method name="getInfoPort" return="int"
  35970. abstract="false" native="false" synchronized="false"
  35971. static="false" final="false" visibility="public"
  35972. deprecated="not deprecated">
  35973. </method>
  35974. <method name="getStartTime" return="long"
  35975. abstract="false" native="false" synchronized="false"
  35976. static="false" final="false" visibility="public"
  35977. deprecated="not deprecated">
  35978. </method>
  35979. <method name="runningJobs" return="java.util.Vector"
  35980. abstract="false" native="false" synchronized="false"
  35981. static="false" final="false" visibility="public"
  35982. deprecated="not deprecated">
  35983. </method>
  35984. <method name="getRunningJobs" return="java.util.List"
  35985. abstract="false" native="false" synchronized="true"
  35986. static="false" final="false" visibility="public"
  35987. deprecated="not deprecated">
  35988. <doc>
  35989. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  35990. careful to synchronize.]]>
  35991. </doc>
  35992. </method>
  35993. <method name="failedJobs" return="java.util.Vector"
  35994. abstract="false" native="false" synchronized="false"
  35995. static="false" final="false" visibility="public"
  35996. deprecated="not deprecated">
  35997. </method>
  35998. <method name="completedJobs" return="java.util.Vector"
  35999. abstract="false" native="false" synchronized="false"
  36000. static="false" final="false" visibility="public"
  36001. deprecated="not deprecated">
  36002. </method>
  36003. <method name="taskTrackers" return="java.util.Collection"
  36004. abstract="false" native="false" synchronized="false"
  36005. static="false" final="false" visibility="public"
  36006. deprecated="not deprecated">
  36007. <doc>
  36008. <![CDATA[Get all the task trackers in the cluster
  36009. @return {@link Collection} of {@link TaskTrackerStatus}]]>
  36010. </doc>
  36011. </method>
  36012. <method name="activeTaskTrackers" return="java.util.Collection"
  36013. abstract="false" native="false" synchronized="false"
  36014. static="false" final="false" visibility="public"
  36015. deprecated="not deprecated">
  36016. <doc>
  36017. <![CDATA[Get the active task tracker statuses in the cluster
  36018. @return {@link Collection} of active {@link TaskTrackerStatus}]]>
  36019. </doc>
  36020. </method>
  36021. <method name="taskTrackerNames" return="java.util.List"
  36022. abstract="false" native="false" synchronized="false"
  36023. static="false" final="false" visibility="public"
  36024. deprecated="not deprecated">
  36025. <doc>
  36026. <![CDATA[Get the active and blacklisted task tracker names in the cluster. The first
  36027. element in the returned list contains the list of active tracker names.
  36028. The second element in the returned list contains the list of blacklisted
  36029. tracker names.]]>
  36030. </doc>
  36031. </method>
  36032. <method name="blacklistedTaskTrackers" return="java.util.Collection"
  36033. abstract="false" native="false" synchronized="false"
  36034. static="false" final="false" visibility="public"
  36035. deprecated="not deprecated">
  36036. <doc>
  36037. <![CDATA[Get the blacklisted task tracker statuses in the cluster
  36038. @return {@link Collection} of blacklisted {@link TaskTrackerStatus}]]>
  36039. </doc>
  36040. </method>
  36041. <method name="isBlacklisted" return="boolean"
  36042. abstract="false" native="false" synchronized="false"
  36043. static="false" final="false" visibility="public"
  36044. deprecated="not deprecated">
  36045. <param name="trackerID" type="java.lang.String"/>
  36046. <doc>
  36047. <![CDATA[Whether the tracker is blacklisted or not
  36048. @param trackerID
  36049. @return true if blacklisted, false otherwise]]>
  36050. </doc>
  36051. </method>
  36052. <method name="getTaskTracker" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  36053. abstract="false" native="false" synchronized="false"
  36054. static="false" final="false" visibility="public"
  36055. deprecated="not deprecated">
  36056. <param name="trackerID" type="java.lang.String"/>
  36057. </method>
  36058. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  36059. abstract="false" native="false" synchronized="false"
  36060. static="false" final="false" visibility="public"
  36061. deprecated="not deprecated">
  36062. <param name="name" type="java.lang.String"/>
  36063. </method>
  36064. <method name="getNodesAtMaxLevel" return="java.util.Collection"
  36065. abstract="false" native="false" synchronized="false"
  36066. static="false" final="false" visibility="public"
  36067. deprecated="not deprecated">
  36068. <doc>
  36069. <![CDATA[Returns a collection of nodes at the max level]]>
  36070. </doc>
  36071. </method>
  36072. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  36073. abstract="false" native="false" synchronized="false"
  36074. static="true" final="false" visibility="public"
  36075. deprecated="not deprecated">
  36076. <param name="node" type="org.apache.hadoop.net.Node"/>
  36077. <param name="level" type="int"/>
  36078. </method>
  36079. <method name="getNode" return="org.apache.hadoop.net.Node"
  36080. abstract="false" native="false" synchronized="false"
  36081. static="false" final="false" visibility="public"
  36082. deprecated="not deprecated">
  36083. <param name="name" type="java.lang.String"/>
  36084. <doc>
  36085. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  36086. </doc>
  36087. </method>
  36088. <method name="getNumTaskCacheLevels" return="int"
  36089. abstract="false" native="false" synchronized="false"
  36090. static="false" final="false" visibility="public"
  36091. deprecated="not deprecated">
  36092. </method>
  36093. <method name="getNumResolvedTaskTrackers" return="int"
  36094. abstract="false" native="false" synchronized="false"
  36095. static="false" final="false" visibility="public"
  36096. deprecated="not deprecated">
  36097. </method>
  36098. <method name="getNumberOfUniqueHosts" return="int"
  36099. abstract="false" native="false" synchronized="false"
  36100. static="false" final="false" visibility="public"
  36101. deprecated="not deprecated">
  36102. </method>
  36103. <method name="addJobInProgressListener"
  36104. abstract="false" native="false" synchronized="false"
  36105. static="false" final="false" visibility="public"
  36106. deprecated="not deprecated">
  36107. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  36108. </method>
  36109. <method name="removeJobInProgressListener"
  36110. abstract="false" native="false" synchronized="false"
  36111. static="false" final="false" visibility="public"
  36112. deprecated="not deprecated">
  36113. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  36114. </method>
  36115. <method name="getQueueManager" return="org.apache.hadoop.mapred.QueueManager"
  36116. abstract="false" native="false" synchronized="false"
  36117. static="false" final="false" visibility="public"
  36118. deprecated="not deprecated">
  36119. <doc>
  36120. <![CDATA[Return the {@link QueueManager} associated with the JobTracker.]]>
  36121. </doc>
  36122. </method>
  36123. <method name="getBuildVersion" return="java.lang.String"
  36124. abstract="false" native="false" synchronized="false"
  36125. static="false" final="false" visibility="public"
  36126. deprecated="not deprecated">
  36127. <exception name="IOException" type="java.io.IOException"/>
  36128. </method>
  36129. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  36130. abstract="false" native="false" synchronized="true"
  36131. static="false" final="false" visibility="public"
  36132. deprecated="not deprecated">
  36133. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  36134. <param name="restarted" type="boolean"/>
  36135. <param name="initialContact" type="boolean"/>
  36136. <param name="acceptNewTasks" type="boolean"/>
  36137. <param name="responseId" type="short"/>
  36138. <exception name="IOException" type="java.io.IOException"/>
  36139. <doc>
  36140. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  36141. the {@link JobTracker}.
  36142. The {@link JobTracker} processes the status information sent by the
  36143. {@link TaskTracker} and responds with instructions to start/stop
  36144. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  36145. </doc>
  36146. </method>
  36147. <method name="getNextHeartbeatInterval" return="int"
  36148. abstract="false" native="false" synchronized="false"
  36149. static="false" final="false" visibility="public"
  36150. deprecated="not deprecated">
  36151. <doc>
  36152. <![CDATA[Calculates next heartbeat interval using cluster size.
  36153. Heartbeat interval is incremented 1second for every 50 nodes.
  36154. @return next heartbeat interval.]]>
  36155. </doc>
  36156. </method>
  36157. <method name="getFilesystemName" return="java.lang.String"
  36158. abstract="false" native="false" synchronized="true"
  36159. static="false" final="false" visibility="public"
  36160. deprecated="not deprecated">
  36161. <exception name="IOException" type="java.io.IOException"/>
  36162. <doc>
  36163. <![CDATA[Grab the local fs name]]>
  36164. </doc>
  36165. </method>
  36166. <method name="reportTaskTrackerError"
  36167. abstract="false" native="false" synchronized="false"
  36168. static="false" final="false" visibility="public"
  36169. deprecated="not deprecated">
  36170. <param name="taskTracker" type="java.lang.String"/>
  36171. <param name="errorClass" type="java.lang.String"/>
  36172. <param name="errorMessage" type="java.lang.String"/>
  36173. <exception name="IOException" type="java.io.IOException"/>
  36174. </method>
  36175. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  36176. abstract="false" native="false" synchronized="true"
  36177. static="false" final="false" visibility="public"
  36178. deprecated="not deprecated">
  36179. <exception name="IOException" type="java.io.IOException"/>
  36180. <doc>
  36181. <![CDATA[Allocates a new JobId string.]]>
  36182. </doc>
  36183. </method>
  36184. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  36185. abstract="false" native="false" synchronized="true"
  36186. static="false" final="false" visibility="public"
  36187. deprecated="not deprecated">
  36188. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  36189. <exception name="IOException" type="java.io.IOException"/>
  36190. <doc>
  36191. <![CDATA[JobTracker.submitJob() kicks off a new job.
  36192. Create a 'JobInProgress' object, which contains both JobProfile
  36193. and JobStatus. Those two sub-objects are sometimes shipped outside
  36194. of the JobTracker. But JobInProgress adds info that's useful for
  36195. the JobTracker alone.]]>
  36196. </doc>
  36197. </method>
  36198. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  36199. abstract="false" native="false" synchronized="true"
  36200. static="false" final="false" visibility="public"
  36201. deprecated="use {@link #getClusterStatus(boolean)}">
  36202. <doc>
  36203. <![CDATA[@deprecated use {@link #getClusterStatus(boolean)}]]>
  36204. </doc>
  36205. </method>
  36206. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  36207. abstract="false" native="false" synchronized="true"
  36208. static="false" final="false" visibility="public"
  36209. deprecated="not deprecated">
  36210. <param name="detailed" type="boolean"/>
  36211. </method>
  36212. <method name="killJob"
  36213. abstract="false" native="false" synchronized="true"
  36214. static="false" final="false" visibility="public"
  36215. deprecated="not deprecated">
  36216. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  36217. <exception name="IOException" type="java.io.IOException"/>
  36218. </method>
  36219. <method name="setJobPriority"
  36220. abstract="false" native="false" synchronized="true"
  36221. static="false" final="false" visibility="public"
  36222. deprecated="not deprecated">
  36223. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  36224. <param name="priority" type="java.lang.String"/>
  36225. <exception name="IOException" type="java.io.IOException"/>
  36226. <doc>
  36227. <![CDATA[Set the priority of a job
  36228. @param jobid id of the job
  36229. @param priority new priority of the job]]>
  36230. </doc>
  36231. </method>
  36232. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  36233. abstract="false" native="false" synchronized="false"
  36234. static="false" final="false" visibility="public"
  36235. deprecated="not deprecated">
  36236. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  36237. </method>
  36238. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  36239. abstract="false" native="false" synchronized="false"
  36240. static="false" final="false" visibility="public"
  36241. deprecated="not deprecated">
  36242. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  36243. </method>
  36244. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  36245. abstract="false" native="false" synchronized="false"
  36246. static="false" final="false" visibility="public"
  36247. deprecated="not deprecated">
  36248. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  36249. </method>
  36250. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  36251. abstract="false" native="false" synchronized="true"
  36252. static="false" final="false" visibility="public"
  36253. deprecated="not deprecated">
  36254. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  36255. </method>
  36256. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  36257. abstract="false" native="false" synchronized="true"
  36258. static="false" final="false" visibility="public"
  36259. deprecated="not deprecated">
  36260. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  36261. </method>
  36262. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  36263. abstract="false" native="false" synchronized="true"
  36264. static="false" final="false" visibility="public"
  36265. deprecated="not deprecated">
  36266. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  36267. </method>
  36268. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  36269. abstract="false" native="false" synchronized="true"
  36270. static="false" final="false" visibility="public"
  36271. deprecated="not deprecated">
  36272. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  36273. </method>
  36274. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  36275. abstract="false" native="false" synchronized="true"
  36276. static="false" final="false" visibility="public"
  36277. deprecated="not deprecated">
  36278. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  36279. <param name="fromEventId" type="int"/>
  36280. <param name="maxEvents" type="int"/>
  36281. <exception name="IOException" type="java.io.IOException"/>
  36282. </method>
  36283. <method name="getTaskDiagnostics" return="java.lang.String[]"
  36284. abstract="false" native="false" synchronized="true"
  36285. static="false" final="false" visibility="public"
  36286. deprecated="not deprecated">
  36287. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  36288. <exception name="IOException" type="java.io.IOException"/>
  36289. <doc>
  36290. <![CDATA[Get the diagnostics for a given task
  36291. @param taskId the id of the task
  36292. @return an array of the diagnostic messages]]>
  36293. </doc>
  36294. </method>
  36295. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  36296. abstract="false" native="false" synchronized="false"
  36297. static="false" final="false" visibility="public"
  36298. deprecated="not deprecated">
  36299. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  36300. <doc>
  36301. <![CDATA[Returns specified TaskInProgress, or null.]]>
  36302. </doc>
  36303. </method>
  36304. <method name="killTask" return="boolean"
  36305. abstract="false" native="false" synchronized="true"
  36306. static="false" final="false" visibility="public"
  36307. deprecated="not deprecated">
  36308. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  36309. <param name="shouldFail" type="boolean"/>
  36310. <exception name="IOException" type="java.io.IOException"/>
  36311. <doc>
  36312. <![CDATA[Mark a Task to be killed]]>
  36313. </doc>
  36314. </method>
  36315. <method name="getAssignedTracker" return="java.lang.String"
  36316. abstract="false" native="false" synchronized="true"
  36317. static="false" final="false" visibility="public"
  36318. deprecated="not deprecated">
  36319. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  36320. <doc>
  36321. <![CDATA[Get tracker name for a given task id.
  36322. @param taskId the name of the task
  36323. @return The name of the task tracker]]>
  36324. </doc>
  36325. </method>
  36326. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  36327. abstract="false" native="false" synchronized="false"
  36328. static="false" final="false" visibility="public"
  36329. deprecated="not deprecated">
  36330. </method>
  36331. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  36332. abstract="false" native="false" synchronized="false"
  36333. static="false" final="false" visibility="public"
  36334. deprecated="not deprecated">
  36335. </method>
  36336. <method name="getSystemDir" return="java.lang.String"
  36337. abstract="false" native="false" synchronized="false"
  36338. static="false" final="false" visibility="public"
  36339. deprecated="not deprecated">
  36340. <doc>
  36341. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  36342. </doc>
  36343. </method>
  36344. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  36345. abstract="false" native="false" synchronized="false"
  36346. static="false" final="false" visibility="public"
  36347. deprecated="not deprecated">
  36348. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  36349. </method>
  36350. <method name="getLocalJobFilePath" return="java.lang.String"
  36351. abstract="false" native="false" synchronized="false"
  36352. static="true" final="false" visibility="public"
  36353. deprecated="not deprecated">
  36354. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  36355. <doc>
  36356. <![CDATA[Get the localized job file path on the job trackers local file system
  36357. @param jobId id of the job
  36358. @return the path of the job conf file on the local file system]]>
  36359. </doc>
  36360. </method>
  36361. <method name="main"
  36362. abstract="false" native="false" synchronized="false"
  36363. static="true" final="false" visibility="public"
  36364. deprecated="not deprecated">
  36365. <param name="argv" type="java.lang.String[]"/>
  36366. <exception name="IOException" type="java.io.IOException"/>
  36367. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  36368. <doc>
  36369. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  36370. JobTracker should be run as part of the DFS Namenode process.]]>
  36371. </doc>
  36372. </method>
  36373. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  36374. abstract="false" native="false" synchronized="false"
  36375. static="false" final="false" visibility="public"
  36376. deprecated="not deprecated">
  36377. <exception name="IOException" type="java.io.IOException"/>
  36378. </method>
  36379. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  36380. abstract="false" native="false" synchronized="false"
  36381. static="false" final="false" visibility="public"
  36382. deprecated="not deprecated">
  36383. <param name="queue" type="java.lang.String"/>
  36384. <exception name="IOException" type="java.io.IOException"/>
  36385. </method>
  36386. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  36387. abstract="false" native="false" synchronized="false"
  36388. static="false" final="false" visibility="public"
  36389. deprecated="not deprecated">
  36390. <param name="queue" type="java.lang.String"/>
  36391. <exception name="IOException" type="java.io.IOException"/>
  36392. </method>
  36393. <method name="refreshServiceAcl"
  36394. abstract="false" native="false" synchronized="false"
  36395. static="false" final="false" visibility="public"
  36396. deprecated="not deprecated">
  36397. <exception name="IOException" type="java.io.IOException"/>
  36398. </method>
  36399. <field name="LOG" type="org.apache.commons.logging.Log"
  36400. transient="false" volatile="false"
  36401. static="true" final="true" visibility="public"
  36402. deprecated="not deprecated">
  36403. </field>
  36404. <doc>
  36405. <![CDATA[JobTracker is the central location for submitting and
  36406. tracking MR jobs in a network environment.]]>
  36407. </doc>
  36408. </class>
  36409. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  36410. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  36411. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  36412. abstract="false"
  36413. static="true" final="false" visibility="public"
  36414. deprecated="not deprecated">
  36415. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  36416. static="false" final="false" visibility="public"
  36417. deprecated="not deprecated">
  36418. </constructor>
  36419. <doc>
  36420. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  36421. </doc>
  36422. </class>
  36423. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  36424. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  36425. <class name="JobTracker.State" extends="java.lang.Enum"
  36426. abstract="false"
  36427. static="true" final="true" visibility="public"
  36428. deprecated="not deprecated">
  36429. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  36430. abstract="false" native="false" synchronized="false"
  36431. static="true" final="false" visibility="public"
  36432. deprecated="not deprecated">
  36433. </method>
  36434. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  36435. abstract="false" native="false" synchronized="false"
  36436. static="true" final="false" visibility="public"
  36437. deprecated="not deprecated">
  36438. <param name="name" type="java.lang.String"/>
  36439. </method>
  36440. <field name="INITIALIZING" type="org.apache.hadoop.mapred.JobTracker.State"
  36441. transient="false" volatile="false"
  36442. static="true" final="true" visibility="public"
  36443. deprecated="not deprecated">
  36444. </field>
  36445. <field name="RUNNING" type="org.apache.hadoop.mapred.JobTracker.State"
  36446. transient="false" volatile="false"
  36447. static="true" final="true" visibility="public"
  36448. deprecated="not deprecated">
  36449. </field>
  36450. </class>
  36451. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  36452. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  36453. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  36454. abstract="false"
  36455. static="false" final="false" visibility="public"
  36456. deprecated="not deprecated">
  36457. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  36458. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  36459. static="false" final="false" visibility="public"
  36460. deprecated="not deprecated">
  36461. <exception name="IOException" type="java.io.IOException"/>
  36462. </constructor>
  36463. <method name="getKeyClass" return="java.lang.Class"
  36464. abstract="false" native="false" synchronized="false"
  36465. static="false" final="false" visibility="public"
  36466. deprecated="not deprecated">
  36467. </method>
  36468. <method name="createKey" return="org.apache.hadoop.io.Text"
  36469. abstract="false" native="false" synchronized="false"
  36470. static="false" final="false" visibility="public"
  36471. deprecated="not deprecated">
  36472. </method>
  36473. <method name="createValue" return="org.apache.hadoop.io.Text"
  36474. abstract="false" native="false" synchronized="false"
  36475. static="false" final="false" visibility="public"
  36476. deprecated="not deprecated">
  36477. </method>
  36478. <method name="findSeparator" return="int"
  36479. abstract="false" native="false" synchronized="false"
  36480. static="true" final="false" visibility="public"
  36481. deprecated="not deprecated">
  36482. <param name="utf" type="byte[]"/>
  36483. <param name="start" type="int"/>
  36484. <param name="length" type="int"/>
  36485. <param name="sep" type="byte"/>
  36486. </method>
  36487. <method name="next" return="boolean"
  36488. abstract="false" native="false" synchronized="true"
  36489. static="false" final="false" visibility="public"
  36490. deprecated="not deprecated">
  36491. <param name="key" type="org.apache.hadoop.io.Text"/>
  36492. <param name="value" type="org.apache.hadoop.io.Text"/>
  36493. <exception name="IOException" type="java.io.IOException"/>
  36494. <doc>
  36495. <![CDATA[Read key/value pair in a line.]]>
  36496. </doc>
  36497. </method>
  36498. <method name="getProgress" return="float"
  36499. abstract="false" native="false" synchronized="false"
  36500. static="false" final="false" visibility="public"
  36501. deprecated="not deprecated">
  36502. </method>
  36503. <method name="getPos" return="long"
  36504. abstract="false" native="false" synchronized="true"
  36505. static="false" final="false" visibility="public"
  36506. deprecated="not deprecated">
  36507. <exception name="IOException" type="java.io.IOException"/>
  36508. </method>
  36509. <method name="close"
  36510. abstract="false" native="false" synchronized="true"
  36511. static="false" final="false" visibility="public"
  36512. deprecated="not deprecated">
  36513. <exception name="IOException" type="java.io.IOException"/>
  36514. </method>
  36515. <doc>
  36516. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  36517. separator character. The separator can be specified in config file
  36518. under the attribute name key.value.separator.in.input.line. The default
  36519. separator is the tab character ('\t').]]>
  36520. </doc>
  36521. </class>
  36522. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  36523. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  36524. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  36525. abstract="false"
  36526. static="false" final="false" visibility="public"
  36527. deprecated="not deprecated">
  36528. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  36529. <constructor name="KeyValueTextInputFormat"
  36530. static="false" final="false" visibility="public"
  36531. deprecated="not deprecated">
  36532. </constructor>
  36533. <method name="configure"
  36534. abstract="false" native="false" synchronized="false"
  36535. static="false" final="false" visibility="public"
  36536. deprecated="not deprecated">
  36537. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  36538. </method>
  36539. <method name="isSplitable" return="boolean"
  36540. abstract="false" native="false" synchronized="false"
  36541. static="false" final="false" visibility="protected"
  36542. deprecated="not deprecated">
  36543. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  36544. <param name="file" type="org.apache.hadoop.fs.Path"/>
  36545. </method>
  36546. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  36547. abstract="false" native="false" synchronized="false"
  36548. static="false" final="false" visibility="public"
  36549. deprecated="not deprecated">
  36550. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  36551. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  36552. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  36553. <exception name="IOException" type="java.io.IOException"/>
  36554. </method>
  36555. <doc>
  36556. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  36557. Either linefeed or carriage-return are used to signal end of line. Each line
  36558. is divided into key and value parts by a separator byte. If no such a byte
  36559. exists, the key will be the entire line and value will be empty.]]>
  36560. </doc>
  36561. </class>
  36562. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  36563. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  36564. <class name="LineRecordReader" extends="java.lang.Object"
  36565. abstract="false"
  36566. static="false" final="false" visibility="public"
  36567. deprecated="Use
  36568. {@link org.apache.hadoop.mapreduce.lib.input.LineRecordReader} instead.">
  36569. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  36570. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  36571. static="false" final="false" visibility="public"
  36572. deprecated="not deprecated">
  36573. <exception name="IOException" type="java.io.IOException"/>
  36574. </constructor>
  36575. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  36576. static="false" final="false" visibility="public"
  36577. deprecated="not deprecated">
  36578. </constructor>
  36579. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  36580. static="false" final="false" visibility="public"
  36581. deprecated="not deprecated">
  36582. <exception name="IOException" type="java.io.IOException"/>
  36583. </constructor>
  36584. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  36585. abstract="false" native="false" synchronized="false"
  36586. static="false" final="false" visibility="public"
  36587. deprecated="not deprecated">
  36588. </method>
  36589. <method name="createValue" return="org.apache.hadoop.io.Text"
  36590. abstract="false" native="false" synchronized="false"
  36591. static="false" final="false" visibility="public"
  36592. deprecated="not deprecated">
  36593. </method>
  36594. <method name="next" return="boolean"
  36595. abstract="false" native="false" synchronized="true"
  36596. static="false" final="false" visibility="public"
  36597. deprecated="not deprecated">
  36598. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  36599. <param name="value" type="org.apache.hadoop.io.Text"/>
  36600. <exception name="IOException" type="java.io.IOException"/>
  36601. <doc>
  36602. <![CDATA[Read a line.]]>
  36603. </doc>
  36604. </method>
  36605. <method name="getProgress" return="float"
  36606. abstract="false" native="false" synchronized="false"
  36607. static="false" final="false" visibility="public"
  36608. deprecated="not deprecated">
  36609. <doc>
  36610. <![CDATA[Get the progress within the split]]>
  36611. </doc>
  36612. </method>
  36613. <method name="getPos" return="long"
  36614. abstract="false" native="false" synchronized="true"
  36615. static="false" final="false" visibility="public"
  36616. deprecated="not deprecated">
  36617. <exception name="IOException" type="java.io.IOException"/>
  36618. </method>
  36619. <method name="close"
  36620. abstract="false" native="false" synchronized="true"
  36621. static="false" final="false" visibility="public"
  36622. deprecated="not deprecated">
  36623. <exception name="IOException" type="java.io.IOException"/>
  36624. </method>
  36625. <doc>
  36626. <![CDATA[Treats keys as offset in file and value as line.
  36627. @deprecated Use
  36628. {@link org.apache.hadoop.mapreduce.lib.input.LineRecordReader} instead.]]>
  36629. </doc>
  36630. </class>
  36631. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  36632. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  36633. <class name="LineRecordReader.LineReader" extends="org.apache.hadoop.util.LineReader"
  36634. abstract="false"
  36635. static="true" final="false" visibility="public"
  36636. deprecated="Use {@link org.apache.hadoop.util.LineReader} instead.">
  36637. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  36638. static="false" final="false" visibility="public"
  36639. deprecated="not deprecated">
  36640. <exception name="IOException" type="java.io.IOException"/>
  36641. </constructor>
  36642. <doc>
  36643. <![CDATA[A class that provides a line reader from an input stream.
  36644. @deprecated Use {@link org.apache.hadoop.util.LineReader} instead.]]>
  36645. </doc>
  36646. </class>
  36647. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  36648. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  36649. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  36650. abstract="false"
  36651. static="false" final="false" visibility="public"
  36652. deprecated="not deprecated">
  36653. <constructor name="MapFileOutputFormat"
  36654. static="false" final="false" visibility="public"
  36655. deprecated="not deprecated">
  36656. </constructor>
  36657. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  36658. abstract="false" native="false" synchronized="false"
  36659. static="false" final="false" visibility="public"
  36660. deprecated="not deprecated">
  36661. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  36662. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  36663. <param name="name" type="java.lang.String"/>
  36664. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  36665. <exception name="IOException" type="java.io.IOException"/>
  36666. </method>
  36667. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  36668. abstract="false" native="false" synchronized="false"
  36669. static="true" final="false" visibility="public"
  36670. deprecated="not deprecated">
  36671. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  36672. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  36673. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36674. <exception name="IOException" type="java.io.IOException"/>
  36675. <doc>
  36676. <![CDATA[Open the output generated by this format.]]>
  36677. </doc>
  36678. </method>
  36679. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  36680. abstract="false" native="false" synchronized="false"
  36681. static="true" final="false" visibility="public"
  36682. deprecated="not deprecated">
  36683. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  36684. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner"/>
  36685. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  36686. <param name="value" type="org.apache.hadoop.io.Writable"/>
  36687. <exception name="IOException" type="java.io.IOException"/>
  36688. <doc>
  36689. <![CDATA[Get an entry from output generated by this class.]]>
  36690. </doc>
  36691. </method>
  36692. <doc>
  36693. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  36694. </doc>
  36695. </class>
  36696. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  36697. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  36698. <interface name="Mapper" abstract="true"
  36699. static="false" final="false" visibility="public"
  36700. deprecated="Use {@link org.apache.hadoop.mapreduce.Mapper} instead.">
  36701. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  36702. <implements name="org.apache.hadoop.io.Closeable"/>
  36703. <method name="map"
  36704. abstract="false" native="false" synchronized="false"
  36705. static="false" final="false" visibility="public"
  36706. deprecated="not deprecated">
  36707. <param name="key" type="java.lang.Object"/>
  36708. <param name="value" type="java.lang.Object"/>
  36709. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  36710. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  36711. <exception name="IOException" type="java.io.IOException"/>
  36712. <doc>
  36713. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  36714. <p>Output pairs need not be of the same types as input pairs. A given
  36715. input pair may map to zero or many output pairs. Output pairs are
  36716. collected with calls to
  36717. {@link OutputCollector#collect(Object,Object)}.</p>
  36718. <p>Applications can use the {@link Reporter} provided to report progress
  36719. or just indicate that they are alive. In scenarios where the application
  36720. takes an insignificant amount of time to process individual key/value
  36721. pairs, this is crucial since the framework might assume that the task has
  36722. timed-out and kill that task. The other way of avoiding this is to set
  36723. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  36724. mapred.task.timeout</a> to a high-enough value (or even zero for no
  36725. time-outs).</p>
  36726. @param key the input key.
  36727. @param value the input value.
  36728. @param output collects mapped keys and values.
  36729. @param reporter facility to report progress.]]>
  36730. </doc>
  36731. </method>
  36732. <doc>
  36733. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  36734. <p>Maps are the individual tasks which transform input records into a
  36735. intermediate records. The transformed intermediate records need not be of
  36736. the same type as the input records. A given input pair may map to zero or
  36737. many output pairs.</p>
  36738. <p>The Hadoop Map-Reduce framework spawns one map task for each
  36739. {@link InputSplit} generated by the {@link InputFormat} for the job.
  36740. <code>Mapper</code> implementations can access the {@link JobConf} for the
  36741. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  36742. themselves. Similarly they can use the {@link Closeable#close()} method for
  36743. de-initialization.</p>
  36744. <p>The framework then calls
  36745. {@link #map(Object, Object, OutputCollector, Reporter)}
  36746. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  36747. <p>All intermediate values associated with a given output key are
  36748. subsequently grouped by the framework, and passed to a {@link Reducer} to
  36749. determine the final output. Users can control the grouping by specifying
  36750. a <code>Comparator</code> via
  36751. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  36752. <p>The grouped <code>Mapper</code> outputs are partitioned per
  36753. <code>Reducer</code>. Users can control which keys (and hence records) go to
  36754. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  36755. <p>Users can optionally specify a <code>combiner</code>, via
  36756. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  36757. intermediate outputs, which helps to cut down the amount of data transferred
  36758. from the <code>Mapper</code> to the <code>Reducer</code>.
  36759. <p>The intermediate, grouped outputs are always stored in
  36760. {@link SequenceFile}s. Applications can specify if and how the intermediate
  36761. outputs are to be compressed and which {@link CompressionCodec}s are to be
  36762. used via the <code>JobConf</code>.</p>
  36763. <p>If the job has
  36764. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  36765. reduces</a> then the output of the <code>Mapper</code> is directly written
  36766. to the {@link FileSystem} without grouping by keys.</p>
  36767. <p>Example:</p>
  36768. <p><blockquote><pre>
  36769. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  36770. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  36771. static enum MyCounters { NUM_RECORDS }
  36772. private String mapTaskId;
  36773. private String inputFile;
  36774. private int noRecords = 0;
  36775. public void configure(JobConf job) {
  36776. mapTaskId = job.get("mapred.task.id");
  36777. inputFile = job.get("map.input.file");
  36778. }
  36779. public void map(K key, V val,
  36780. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  36781. throws IOException {
  36782. // Process the &lt;key, value&gt; pair (assume this takes a while)
  36783. // ...
  36784. // ...
  36785. // Let the framework know that we are alive, and kicking!
  36786. // reporter.progress();
  36787. // Process some more
  36788. // ...
  36789. // ...
  36790. // Increment the no. of &lt;key, value&gt; pairs processed
  36791. ++noRecords;
  36792. // Increment counters
  36793. reporter.incrCounter(NUM_RECORDS, 1);
  36794. // Every 100 records update application-level status
  36795. if ((noRecords%100) == 0) {
  36796. reporter.setStatus(mapTaskId + " processed " + noRecords +
  36797. " from input-file: " + inputFile);
  36798. }
  36799. // Output the result
  36800. output.collect(key, val);
  36801. }
  36802. }
  36803. </pre></blockquote></p>
  36804. <p>Applications may write a custom {@link MapRunnable} to exert greater
  36805. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  36806. @see JobConf
  36807. @see InputFormat
  36808. @see Partitioner
  36809. @see Reducer
  36810. @see MapReduceBase
  36811. @see MapRunnable
  36812. @see SequenceFile
  36813. @deprecated Use {@link org.apache.hadoop.mapreduce.Mapper} instead.]]>
  36814. </doc>
  36815. </interface>
  36816. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  36817. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  36818. <class name="MapReduceBase" extends="java.lang.Object"
  36819. abstract="false"
  36820. static="false" final="false" visibility="public"
  36821. deprecated="not deprecated">
  36822. <implements name="org.apache.hadoop.io.Closeable"/>
  36823. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  36824. <constructor name="MapReduceBase"
  36825. static="false" final="false" visibility="public"
  36826. deprecated="not deprecated">
  36827. </constructor>
  36828. <method name="close"
  36829. abstract="false" native="false" synchronized="false"
  36830. static="false" final="false" visibility="public"
  36831. deprecated="not deprecated">
  36832. <exception name="IOException" type="java.io.IOException"/>
  36833. <doc>
  36834. <![CDATA[Default implementation that does nothing.]]>
  36835. </doc>
  36836. </method>
  36837. <method name="configure"
  36838. abstract="false" native="false" synchronized="false"
  36839. static="false" final="false" visibility="public"
  36840. deprecated="not deprecated">
  36841. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  36842. <doc>
  36843. <![CDATA[Default implementation that does nothing.]]>
  36844. </doc>
  36845. </method>
  36846. <doc>
  36847. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  36848. <p>Provides default no-op implementations for a few methods, most non-trivial
  36849. applications need to override some of them.</p>]]>
  36850. </doc>
  36851. </class>
  36852. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  36853. <!-- start class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  36854. <class name="MapReducePolicyProvider" extends="org.apache.hadoop.security.authorize.PolicyProvider"
  36855. abstract="false"
  36856. static="false" final="false" visibility="public"
  36857. deprecated="not deprecated">
  36858. <constructor name="MapReducePolicyProvider"
  36859. static="false" final="false" visibility="public"
  36860. deprecated="not deprecated">
  36861. </constructor>
  36862. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  36863. abstract="false" native="false" synchronized="false"
  36864. static="false" final="false" visibility="public"
  36865. deprecated="not deprecated">
  36866. </method>
  36867. <doc>
  36868. <![CDATA[{@link PolicyProvider} for Map-Reduce protocols.]]>
  36869. </doc>
  36870. </class>
  36871. <!-- end class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  36872. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  36873. <interface name="MapRunnable" abstract="true"
  36874. static="false" final="false" visibility="public"
  36875. deprecated="Use {@link org.apache.hadoop.mapreduce.Mapper} instead.">
  36876. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  36877. <method name="run"
  36878. abstract="false" native="false" synchronized="false"
  36879. static="false" final="false" visibility="public"
  36880. deprecated="not deprecated">
  36881. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  36882. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  36883. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  36884. <exception name="IOException" type="java.io.IOException"/>
  36885. <doc>
  36886. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  36887. <p>Mapping of input records to output records is complete when this method
  36888. returns.</p>
  36889. @param input the {@link RecordReader} to read the input records.
  36890. @param output the {@link OutputCollector} to collect the outputrecords.
  36891. @param reporter {@link Reporter} to report progress, status-updates etc.
  36892. @throws IOException]]>
  36893. </doc>
  36894. </method>
  36895. <doc>
  36896. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  36897. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  36898. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  36899. @see Mapper
  36900. @deprecated Use {@link org.apache.hadoop.mapreduce.Mapper} instead.]]>
  36901. </doc>
  36902. </interface>
  36903. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  36904. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  36905. <class name="MapRunner" extends="java.lang.Object"
  36906. abstract="false"
  36907. static="false" final="false" visibility="public"
  36908. deprecated="not deprecated">
  36909. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  36910. <constructor name="MapRunner"
  36911. static="false" final="false" visibility="public"
  36912. deprecated="not deprecated">
  36913. </constructor>
  36914. <method name="configure"
  36915. abstract="false" native="false" synchronized="false"
  36916. static="false" final="false" visibility="public"
  36917. deprecated="not deprecated">
  36918. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  36919. </method>
  36920. <method name="run"
  36921. abstract="false" native="false" synchronized="false"
  36922. static="false" final="false" visibility="public"
  36923. deprecated="not deprecated">
  36924. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  36925. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  36926. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  36927. <exception name="IOException" type="java.io.IOException"/>
  36928. </method>
  36929. <method name="getMapper" return="org.apache.hadoop.mapred.Mapper"
  36930. abstract="false" native="false" synchronized="false"
  36931. static="false" final="false" visibility="protected"
  36932. deprecated="not deprecated">
  36933. </method>
  36934. <doc>
  36935. <![CDATA[Default {@link MapRunnable} implementation.]]>
  36936. </doc>
  36937. </class>
  36938. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  36939. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  36940. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  36941. abstract="true"
  36942. static="false" final="false" visibility="public"
  36943. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead">
  36944. <constructor name="MultiFileInputFormat"
  36945. static="false" final="false" visibility="public"
  36946. deprecated="not deprecated">
  36947. </constructor>
  36948. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  36949. abstract="false" native="false" synchronized="false"
  36950. static="false" final="false" visibility="public"
  36951. deprecated="not deprecated">
  36952. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  36953. <param name="numSplits" type="int"/>
  36954. <exception name="IOException" type="java.io.IOException"/>
  36955. </method>
  36956. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  36957. abstract="true" native="false" synchronized="false"
  36958. static="false" final="false" visibility="public"
  36959. deprecated="not deprecated">
  36960. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  36961. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  36962. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  36963. <exception name="IOException" type="java.io.IOException"/>
  36964. </method>
  36965. <doc>
  36966. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  36967. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  36968. the files under the input paths. Each split returned contains <i>nearly</i>
  36969. equal content length. <br>
  36970. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  36971. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  36972. @see MultiFileSplit
  36973. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead]]>
  36974. </doc>
  36975. </class>
  36976. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  36977. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  36978. <class name="MultiFileSplit" extends="org.apache.hadoop.mapred.lib.CombineFileSplit"
  36979. abstract="false"
  36980. static="false" final="false" visibility="public"
  36981. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead">
  36982. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  36983. static="false" final="false" visibility="public"
  36984. deprecated="not deprecated">
  36985. </constructor>
  36986. <method name="getLocations" return="java.lang.String[]"
  36987. abstract="false" native="false" synchronized="false"
  36988. static="false" final="false" visibility="public"
  36989. deprecated="not deprecated">
  36990. <exception name="IOException" type="java.io.IOException"/>
  36991. </method>
  36992. <method name="toString" return="java.lang.String"
  36993. abstract="false" native="false" synchronized="false"
  36994. static="false" final="false" visibility="public"
  36995. deprecated="not deprecated">
  36996. </method>
  36997. <doc>
  36998. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  36999. class does not represent a split of a file, but a split of input files
  37000. into smaller sets. The atomic unit of split is a file. <br>
  37001. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  37002. reading one record per file.
  37003. @see FileSplit
  37004. @see MultiFileInputFormat
  37005. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead]]>
  37006. </doc>
  37007. </class>
  37008. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  37009. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  37010. <interface name="OutputCollector" abstract="true"
  37011. static="false" final="false" visibility="public"
  37012. deprecated="not deprecated">
  37013. <method name="collect"
  37014. abstract="false" native="false" synchronized="false"
  37015. static="false" final="false" visibility="public"
  37016. deprecated="not deprecated">
  37017. <param name="key" type="java.lang.Object"/>
  37018. <param name="value" type="java.lang.Object"/>
  37019. <exception name="IOException" type="java.io.IOException"/>
  37020. <doc>
  37021. <![CDATA[Adds a key/value pair to the output.
  37022. @param key the key to collect.
  37023. @param value to value to collect.
  37024. @throws IOException]]>
  37025. </doc>
  37026. </method>
  37027. <doc>
  37028. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  37029. and {@link Reducer}s.
  37030. <p><code>OutputCollector</code> is the generalization of the facility
  37031. provided by the Map-Reduce framework to collect data output by either the
  37032. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  37033. or the output of the job.</p>]]>
  37034. </doc>
  37035. </interface>
  37036. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  37037. <!-- start class org.apache.hadoop.mapred.OutputCommitter -->
  37038. <class name="OutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  37039. abstract="true"
  37040. static="false" final="false" visibility="public"
  37041. deprecated="Use {@link org.apache.hadoop.mapreduce.OutputCommitter} instead.">
  37042. <constructor name="OutputCommitter"
  37043. static="false" final="false" visibility="public"
  37044. deprecated="not deprecated">
  37045. </constructor>
  37046. <method name="setupJob"
  37047. abstract="true" native="false" synchronized="false"
  37048. static="false" final="false" visibility="public"
  37049. deprecated="not deprecated">
  37050. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  37051. <exception name="IOException" type="java.io.IOException"/>
  37052. <doc>
  37053. <![CDATA[For the framework to setup the job output during initialization
  37054. @param jobContext Context of the job whose output is being written.
  37055. @throws IOException if temporary output could not be created]]>
  37056. </doc>
  37057. </method>
  37058. <method name="cleanupJob"
  37059. abstract="true" native="false" synchronized="false"
  37060. static="false" final="false" visibility="public"
  37061. deprecated="not deprecated">
  37062. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  37063. <exception name="IOException" type="java.io.IOException"/>
  37064. <doc>
  37065. <![CDATA[For cleaning up the job's output after job completion
  37066. @param jobContext Context of the job whose output is being written.
  37067. @throws IOException]]>
  37068. </doc>
  37069. </method>
  37070. <method name="setupTask"
  37071. abstract="true" native="false" synchronized="false"
  37072. static="false" final="false" visibility="public"
  37073. deprecated="not deprecated">
  37074. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  37075. <exception name="IOException" type="java.io.IOException"/>
  37076. <doc>
  37077. <![CDATA[Sets up output for the task.
  37078. @param taskContext Context of the task whose output is being written.
  37079. @throws IOException]]>
  37080. </doc>
  37081. </method>
  37082. <method name="needsTaskCommit" return="boolean"
  37083. abstract="true" native="false" synchronized="false"
  37084. static="false" final="false" visibility="public"
  37085. deprecated="not deprecated">
  37086. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  37087. <exception name="IOException" type="java.io.IOException"/>
  37088. <doc>
  37089. <![CDATA[Check whether task needs a commit
  37090. @param taskContext
  37091. @return true/false
  37092. @throws IOException]]>
  37093. </doc>
  37094. </method>
  37095. <method name="commitTask"
  37096. abstract="true" native="false" synchronized="false"
  37097. static="false" final="false" visibility="public"
  37098. deprecated="not deprecated">
  37099. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  37100. <exception name="IOException" type="java.io.IOException"/>
  37101. <doc>
  37102. <![CDATA[To promote the task's temporary output to final output location
  37103. The task's output is moved to the job's output directory.
  37104. @param taskContext Context of the task whose output is being written.
  37105. @throws IOException if commit is not]]>
  37106. </doc>
  37107. </method>
  37108. <method name="abortTask"
  37109. abstract="true" native="false" synchronized="false"
  37110. static="false" final="false" visibility="public"
  37111. deprecated="not deprecated">
  37112. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  37113. <exception name="IOException" type="java.io.IOException"/>
  37114. <doc>
  37115. <![CDATA[Discard the task output
  37116. @param taskContext
  37117. @throws IOException]]>
  37118. </doc>
  37119. </method>
  37120. <method name="setupJob"
  37121. abstract="false" native="false" synchronized="false"
  37122. static="false" final="true" visibility="public"
  37123. deprecated="not deprecated">
  37124. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  37125. <exception name="IOException" type="java.io.IOException"/>
  37126. <doc>
  37127. <![CDATA[This method implements the new interface by calling the old method. Note
  37128. that the input types are different between the new and old apis and this
  37129. is a bridge between the two.]]>
  37130. </doc>
  37131. </method>
  37132. <method name="cleanupJob"
  37133. abstract="false" native="false" synchronized="false"
  37134. static="false" final="true" visibility="public"
  37135. deprecated="not deprecated">
  37136. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  37137. <exception name="IOException" type="java.io.IOException"/>
  37138. <doc>
  37139. <![CDATA[This method implements the new interface by calling the old method. Note
  37140. that the input types are different between the new and old apis and this
  37141. is a bridge between the two.]]>
  37142. </doc>
  37143. </method>
  37144. <method name="setupTask"
  37145. abstract="false" native="false" synchronized="false"
  37146. static="false" final="true" visibility="public"
  37147. deprecated="not deprecated">
  37148. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  37149. <exception name="IOException" type="java.io.IOException"/>
  37150. <doc>
  37151. <![CDATA[This method implements the new interface by calling the old method. Note
  37152. that the input types are different between the new and old apis and this
  37153. is a bridge between the two.]]>
  37154. </doc>
  37155. </method>
  37156. <method name="needsTaskCommit" return="boolean"
  37157. abstract="false" native="false" synchronized="false"
  37158. static="false" final="true" visibility="public"
  37159. deprecated="not deprecated">
  37160. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  37161. <exception name="IOException" type="java.io.IOException"/>
  37162. <doc>
  37163. <![CDATA[This method implements the new interface by calling the old method. Note
  37164. that the input types are different between the new and old apis and this
  37165. is a bridge between the two.]]>
  37166. </doc>
  37167. </method>
  37168. <method name="commitTask"
  37169. abstract="false" native="false" synchronized="false"
  37170. static="false" final="true" visibility="public"
  37171. deprecated="not deprecated">
  37172. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  37173. <exception name="IOException" type="java.io.IOException"/>
  37174. <doc>
  37175. <![CDATA[This method implements the new interface by calling the old method. Note
  37176. that the input types are different between the new and old apis and this
  37177. is a bridge between the two.]]>
  37178. </doc>
  37179. </method>
  37180. <method name="abortTask"
  37181. abstract="false" native="false" synchronized="false"
  37182. static="false" final="true" visibility="public"
  37183. deprecated="not deprecated">
  37184. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  37185. <exception name="IOException" type="java.io.IOException"/>
  37186. <doc>
  37187. <![CDATA[This method implements the new interface by calling the old method. Note
  37188. that the input types are different between the new and old apis and this
  37189. is a bridge between the two.]]>
  37190. </doc>
  37191. </method>
  37192. <doc>
  37193. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  37194. Map-Reduce job.
  37195. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  37196. the job to:<p>
  37197. <ol>
  37198. <li>
  37199. Setup the job during initialization. For example, create the temporary
  37200. output directory for the job during the initialization of the job.
  37201. </li>
  37202. <li>
  37203. Cleanup the job after the job completion. For example, remove the
  37204. temporary output directory after the job completion.
  37205. </li>
  37206. <li>
  37207. Setup the task temporary output.
  37208. </li>
  37209. <li>
  37210. Check whether a task needs a commit. This is to avoid the commit
  37211. procedure if a task does not need commit.
  37212. </li>
  37213. <li>
  37214. Commit of the task output.
  37215. </li>
  37216. <li>
  37217. Discard the task commit.
  37218. </li>
  37219. </ol>
  37220. @see FileOutputCommitter
  37221. @see JobContext
  37222. @see TaskAttemptContext
  37223. @deprecated Use {@link org.apache.hadoop.mapreduce.OutputCommitter} instead.]]>
  37224. </doc>
  37225. </class>
  37226. <!-- end class org.apache.hadoop.mapred.OutputCommitter -->
  37227. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  37228. <interface name="OutputFormat" abstract="true"
  37229. static="false" final="false" visibility="public"
  37230. deprecated="Use {@link org.apache.hadoop.mapreduce.OutputFormat} instead.">
  37231. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  37232. abstract="false" native="false" synchronized="false"
  37233. static="false" final="false" visibility="public"
  37234. deprecated="not deprecated">
  37235. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  37236. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  37237. <param name="name" type="java.lang.String"/>
  37238. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  37239. <exception name="IOException" type="java.io.IOException"/>
  37240. <doc>
  37241. <![CDATA[Get the {@link RecordWriter} for the given job.
  37242. @param ignored
  37243. @param job configuration for the job whose output is being written.
  37244. @param name the unique name for this part of the output.
  37245. @param progress mechanism for reporting progress while writing to file.
  37246. @return a {@link RecordWriter} to write the output for the job.
  37247. @throws IOException]]>
  37248. </doc>
  37249. </method>
  37250. <method name="checkOutputSpecs"
  37251. abstract="false" native="false" synchronized="false"
  37252. static="false" final="false" visibility="public"
  37253. deprecated="not deprecated">
  37254. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  37255. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  37256. <exception name="IOException" type="java.io.IOException"/>
  37257. <doc>
  37258. <![CDATA[Check for validity of the output-specification for the job.
  37259. <p>This is to validate the output specification for the job when it is
  37260. a job is submitted. Typically checks that it does not already exist,
  37261. throwing an exception when it already exists, so that output is not
  37262. overwritten.</p>
  37263. @param ignored
  37264. @param job job configuration.
  37265. @throws IOException when output should not be attempted]]>
  37266. </doc>
  37267. </method>
  37268. <doc>
  37269. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  37270. Map-Reduce job.
  37271. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  37272. job to:<p>
  37273. <ol>
  37274. <li>
  37275. Validate the output-specification of the job. For e.g. check that the
  37276. output directory doesn't already exist.
  37277. <li>
  37278. Provide the {@link RecordWriter} implementation to be used to write out
  37279. the output files of the job. Output files are stored in a
  37280. {@link FileSystem}.
  37281. </li>
  37282. </ol>
  37283. @see RecordWriter
  37284. @see JobConf
  37285. @deprecated Use {@link org.apache.hadoop.mapreduce.OutputFormat} instead.]]>
  37286. </doc>
  37287. </interface>
  37288. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  37289. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  37290. <class name="OutputLogFilter" extends="java.lang.Object"
  37291. abstract="false"
  37292. static="false" final="false" visibility="public"
  37293. deprecated="not deprecated">
  37294. <implements name="org.apache.hadoop.fs.PathFilter"/>
  37295. <constructor name="OutputLogFilter"
  37296. static="false" final="false" visibility="public"
  37297. deprecated="not deprecated">
  37298. </constructor>
  37299. <method name="accept" return="boolean"
  37300. abstract="false" native="false" synchronized="false"
  37301. static="false" final="false" visibility="public"
  37302. deprecated="not deprecated">
  37303. <param name="path" type="org.apache.hadoop.fs.Path"/>
  37304. </method>
  37305. <doc>
  37306. <![CDATA[This class filters log files from directory given
  37307. It doesnt accept paths having _logs.
  37308. This can be used to list paths of output directory as follows:
  37309. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  37310. new OutputLogFilter()));]]>
  37311. </doc>
  37312. </class>
  37313. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  37314. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  37315. <interface name="Partitioner" abstract="true"
  37316. static="false" final="false" visibility="public"
  37317. deprecated="Use {@link org.apache.hadoop.mapreduce.Partitioner} instead.">
  37318. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  37319. <method name="getPartition" return="int"
  37320. abstract="false" native="false" synchronized="false"
  37321. static="false" final="false" visibility="public"
  37322. deprecated="not deprecated">
  37323. <param name="key" type="java.lang.Object"/>
  37324. <param name="value" type="java.lang.Object"/>
  37325. <param name="numPartitions" type="int"/>
  37326. <doc>
  37327. <![CDATA[Get the paritition number for a given key (hence record) given the total
  37328. number of partitions i.e. number of reduce-tasks for the job.
  37329. <p>Typically a hash function on a all or a subset of the key.</p>
  37330. @param key the key to be paritioned.
  37331. @param value the entry value.
  37332. @param numPartitions the total number of partitions.
  37333. @return the partition number for the <code>key</code>.]]>
  37334. </doc>
  37335. </method>
  37336. <doc>
  37337. <![CDATA[Partitions the key space.
  37338. <p><code>Partitioner</code> controls the partitioning of the keys of the
  37339. intermediate map-outputs. The key (or a subset of the key) is used to derive
  37340. the partition, typically by a hash function. The total number of partitions
  37341. is the same as the number of reduce tasks for the job. Hence this controls
  37342. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  37343. record) is sent for reduction.</p>
  37344. @see Reducer
  37345. @deprecated Use {@link org.apache.hadoop.mapreduce.Partitioner} instead.]]>
  37346. </doc>
  37347. </interface>
  37348. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  37349. <!-- start interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  37350. <interface name="RawKeyValueIterator" abstract="true"
  37351. static="false" final="false" visibility="public"
  37352. deprecated="not deprecated">
  37353. <method name="getKey" return="org.apache.hadoop.io.DataInputBuffer"
  37354. abstract="false" native="false" synchronized="false"
  37355. static="false" final="false" visibility="public"
  37356. deprecated="not deprecated">
  37357. <exception name="IOException" type="java.io.IOException"/>
  37358. <doc>
  37359. <![CDATA[Gets the current raw key.
  37360. @return Gets the current raw key as a DataInputBuffer
  37361. @throws IOException]]>
  37362. </doc>
  37363. </method>
  37364. <method name="getValue" return="org.apache.hadoop.io.DataInputBuffer"
  37365. abstract="false" native="false" synchronized="false"
  37366. static="false" final="false" visibility="public"
  37367. deprecated="not deprecated">
  37368. <exception name="IOException" type="java.io.IOException"/>
  37369. <doc>
  37370. <![CDATA[Gets the current raw value.
  37371. @return Gets the current raw value as a DataInputBuffer
  37372. @throws IOException]]>
  37373. </doc>
  37374. </method>
  37375. <method name="next" return="boolean"
  37376. abstract="false" native="false" synchronized="false"
  37377. static="false" final="false" visibility="public"
  37378. deprecated="not deprecated">
  37379. <exception name="IOException" type="java.io.IOException"/>
  37380. <doc>
  37381. <![CDATA[Sets up the current key and value (for getKey and getValue).
  37382. @return <code>true</code> if there exists a key/value,
  37383. <code>false</code> otherwise.
  37384. @throws IOException]]>
  37385. </doc>
  37386. </method>
  37387. <method name="close"
  37388. abstract="false" native="false" synchronized="false"
  37389. static="false" final="false" visibility="public"
  37390. deprecated="not deprecated">
  37391. <exception name="IOException" type="java.io.IOException"/>
  37392. <doc>
  37393. <![CDATA[Closes the iterator so that the underlying streams can be closed.
  37394. @throws IOException]]>
  37395. </doc>
  37396. </method>
  37397. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  37398. abstract="false" native="false" synchronized="false"
  37399. static="false" final="false" visibility="public"
  37400. deprecated="not deprecated">
  37401. <doc>
  37402. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  37403. indicating the bytes processed by the iterator so far]]>
  37404. </doc>
  37405. </method>
  37406. <doc>
  37407. <![CDATA[<code>RawKeyValueIterator</code> is an iterator used to iterate over
  37408. the raw keys and values during sort/merge of intermediate data.]]>
  37409. </doc>
  37410. </interface>
  37411. <!-- end interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  37412. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  37413. <interface name="RecordReader" abstract="true"
  37414. static="false" final="false" visibility="public"
  37415. deprecated="not deprecated">
  37416. <method name="next" return="boolean"
  37417. abstract="false" native="false" synchronized="false"
  37418. static="false" final="false" visibility="public"
  37419. deprecated="not deprecated">
  37420. <param name="key" type="java.lang.Object"/>
  37421. <param name="value" type="java.lang.Object"/>
  37422. <exception name="IOException" type="java.io.IOException"/>
  37423. <doc>
  37424. <![CDATA[Reads the next key/value pair from the input for processing.
  37425. @param key the key to read data into
  37426. @param value the value to read data into
  37427. @return true iff a key/value was read, false if at EOF]]>
  37428. </doc>
  37429. </method>
  37430. <method name="createKey" return="java.lang.Object"
  37431. abstract="false" native="false" synchronized="false"
  37432. static="false" final="false" visibility="public"
  37433. deprecated="not deprecated">
  37434. <doc>
  37435. <![CDATA[Create an object of the appropriate type to be used as a key.
  37436. @return a new key object.]]>
  37437. </doc>
  37438. </method>
  37439. <method name="createValue" return="java.lang.Object"
  37440. abstract="false" native="false" synchronized="false"
  37441. static="false" final="false" visibility="public"
  37442. deprecated="not deprecated">
  37443. <doc>
  37444. <![CDATA[Create an object of the appropriate type to be used as a value.
  37445. @return a new value object.]]>
  37446. </doc>
  37447. </method>
  37448. <method name="getPos" return="long"
  37449. abstract="false" native="false" synchronized="false"
  37450. static="false" final="false" visibility="public"
  37451. deprecated="not deprecated">
  37452. <exception name="IOException" type="java.io.IOException"/>
  37453. <doc>
  37454. <![CDATA[Returns the current position in the input.
  37455. @return the current position in the input.
  37456. @throws IOException]]>
  37457. </doc>
  37458. </method>
  37459. <method name="close"
  37460. abstract="false" native="false" synchronized="false"
  37461. static="false" final="false" visibility="public"
  37462. deprecated="not deprecated">
  37463. <exception name="IOException" type="java.io.IOException"/>
  37464. <doc>
  37465. <![CDATA[Close this {@link InputSplit} to future operations.
  37466. @throws IOException]]>
  37467. </doc>
  37468. </method>
  37469. <method name="getProgress" return="float"
  37470. abstract="false" native="false" synchronized="false"
  37471. static="false" final="false" visibility="public"
  37472. deprecated="not deprecated">
  37473. <exception name="IOException" type="java.io.IOException"/>
  37474. <doc>
  37475. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  37476. has been processed by?
  37477. @return progress from <code>0.0</code> to <code>1.0</code>.
  37478. @throws IOException]]>
  37479. </doc>
  37480. </method>
  37481. <doc>
  37482. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  37483. {@link InputSplit}.
  37484. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  37485. the input, provided by the <code>InputSplit</code>, and presents a
  37486. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  37487. processing. It thus assumes the responsibility of processing record
  37488. boundaries and presenting the tasks with keys and values.</p>
  37489. @see InputSplit
  37490. @see InputFormat]]>
  37491. </doc>
  37492. </interface>
  37493. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  37494. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  37495. <interface name="RecordWriter" abstract="true"
  37496. static="false" final="false" visibility="public"
  37497. deprecated="not deprecated">
  37498. <method name="write"
  37499. abstract="false" native="false" synchronized="false"
  37500. static="false" final="false" visibility="public"
  37501. deprecated="not deprecated">
  37502. <param name="key" type="java.lang.Object"/>
  37503. <param name="value" type="java.lang.Object"/>
  37504. <exception name="IOException" type="java.io.IOException"/>
  37505. <doc>
  37506. <![CDATA[Writes a key/value pair.
  37507. @param key the key to write.
  37508. @param value the value to write.
  37509. @throws IOException]]>
  37510. </doc>
  37511. </method>
  37512. <method name="close"
  37513. abstract="false" native="false" synchronized="false"
  37514. static="false" final="false" visibility="public"
  37515. deprecated="not deprecated">
  37516. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  37517. <exception name="IOException" type="java.io.IOException"/>
  37518. <doc>
  37519. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  37520. @param reporter facility to report progress.
  37521. @throws IOException]]>
  37522. </doc>
  37523. </method>
  37524. <doc>
  37525. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  37526. to an output file.
  37527. <p><code>RecordWriter</code> implementations write the job outputs to the
  37528. {@link FileSystem}.
  37529. @see OutputFormat]]>
  37530. </doc>
  37531. </interface>
  37532. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  37533. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  37534. <interface name="Reducer" abstract="true"
  37535. static="false" final="false" visibility="public"
  37536. deprecated="Use {@link org.apache.hadoop.mapreduce.Reducer} instead.">
  37537. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  37538. <implements name="org.apache.hadoop.io.Closeable"/>
  37539. <method name="reduce"
  37540. abstract="false" native="false" synchronized="false"
  37541. static="false" final="false" visibility="public"
  37542. deprecated="not deprecated">
  37543. <param name="key" type="java.lang.Object"/>
  37544. <param name="values" type="java.util.Iterator"/>
  37545. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  37546. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  37547. <exception name="IOException" type="java.io.IOException"/>
  37548. <doc>
  37549. <![CDATA[<i>Reduces</i> values for a given key.
  37550. <p>The framework calls this method for each
  37551. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  37552. Output values must be of the same type as input values. Input keys must
  37553. not be altered. The framework will <b>reuse</b> the key and value objects
  37554. that are passed into the reduce, therefore the application should clone
  37555. the objects they want to keep a copy of. In many cases, all values are
  37556. combined into zero or one value.
  37557. </p>
  37558. <p>Output pairs are collected with calls to
  37559. {@link OutputCollector#collect(Object,Object)}.</p>
  37560. <p>Applications can use the {@link Reporter} provided to report progress
  37561. or just indicate that they are alive. In scenarios where the application
  37562. takes an insignificant amount of time to process individual key/value
  37563. pairs, this is crucial since the framework might assume that the task has
  37564. timed-out and kill that task. The other way of avoiding this is to set
  37565. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  37566. mapred.task.timeout</a> to a high-enough value (or even zero for no
  37567. time-outs).</p>
  37568. @param key the key.
  37569. @param values the list of values to reduce.
  37570. @param output to collect keys and combined values.
  37571. @param reporter facility to report progress.]]>
  37572. </doc>
  37573. </method>
  37574. <doc>
  37575. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  37576. values.
  37577. <p>The number of <code>Reducer</code>s for the job is set by the user via
  37578. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  37579. can access the {@link JobConf} for the job via the
  37580. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  37581. Similarly they can use the {@link Closeable#close()} method for
  37582. de-initialization.</p>
  37583. <p><code>Reducer</code> has 3 primary phases:</p>
  37584. <ol>
  37585. <li>
  37586. <h4 id="Shuffle">Shuffle</h4>
  37587. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  37588. In the phase the framework, for each <code>Reducer</code>, fetches the
  37589. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  37590. </p>
  37591. </li>
  37592. <li>
  37593. <h4 id="Sort">Sort</h4>
  37594. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  37595. (since different <code>Mapper</code>s may have output the same key) in this
  37596. stage.</p>
  37597. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  37598. being fetched they are merged.</p>
  37599. <h5 id="SecondarySort">SecondarySort</h5>
  37600. <p>If equivalence rules for keys while grouping the intermediates are
  37601. different from those for grouping keys before reduction, then one may
  37602. specify a <code>Comparator</code> via
  37603. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  37604. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  37605. control how intermediate keys are grouped, these can be used in conjunction
  37606. to simulate <i>secondary sort on values</i>.</p>
  37607. For example, say that you want to find duplicate web pages and tag them
  37608. all with the url of the "best" known example. You would set up the job
  37609. like:
  37610. <ul>
  37611. <li>Map Input Key: url</li>
  37612. <li>Map Input Value: document</li>
  37613. <li>Map Output Key: document checksum, url pagerank</li>
  37614. <li>Map Output Value: url</li>
  37615. <li>Partitioner: by checksum</li>
  37616. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  37617. <li>OutputValueGroupingComparator: by checksum</li>
  37618. </ul>
  37619. </li>
  37620. <li>
  37621. <h4 id="Reduce">Reduce</h4>
  37622. <p>In this phase the
  37623. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  37624. method is called for each <code>&lt;key, (list of values)></code> pair in
  37625. the grouped inputs.</p>
  37626. <p>The output of the reduce task is typically written to the
  37627. {@link FileSystem} via
  37628. {@link OutputCollector#collect(Object, Object)}.</p>
  37629. </li>
  37630. </ol>
  37631. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  37632. <p>Example:</p>
  37633. <p><blockquote><pre>
  37634. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  37635. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  37636. static enum MyCounters { NUM_RECORDS }
  37637. private String reduceTaskId;
  37638. private int noKeys = 0;
  37639. public void configure(JobConf job) {
  37640. reduceTaskId = job.get("mapred.task.id");
  37641. }
  37642. public void reduce(K key, Iterator&lt;V&gt; values,
  37643. OutputCollector&lt;K, V&gt; output,
  37644. Reporter reporter)
  37645. throws IOException {
  37646. // Process
  37647. int noValues = 0;
  37648. while (values.hasNext()) {
  37649. V value = values.next();
  37650. // Increment the no. of values for this key
  37651. ++noValues;
  37652. // Process the &lt;key, value&gt; pair (assume this takes a while)
  37653. // ...
  37654. // ...
  37655. // Let the framework know that we are alive, and kicking!
  37656. if ((noValues%10) == 0) {
  37657. reporter.progress();
  37658. }
  37659. // Process some more
  37660. // ...
  37661. // ...
  37662. // Output the &lt;key, value&gt;
  37663. output.collect(key, value);
  37664. }
  37665. // Increment the no. of &lt;key, list of values&gt; pairs processed
  37666. ++noKeys;
  37667. // Increment counters
  37668. reporter.incrCounter(NUM_RECORDS, 1);
  37669. // Every 100 keys update application-level status
  37670. if ((noKeys%100) == 0) {
  37671. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  37672. }
  37673. }
  37674. }
  37675. </pre></blockquote></p>
  37676. @see Mapper
  37677. @see Partitioner
  37678. @see Reporter
  37679. @see MapReduceBase
  37680. @deprecated Use {@link org.apache.hadoop.mapreduce.Reducer} instead.]]>
  37681. </doc>
  37682. </interface>
  37683. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  37684. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  37685. <interface name="Reporter" abstract="true"
  37686. static="false" final="false" visibility="public"
  37687. deprecated="not deprecated">
  37688. <implements name="org.apache.hadoop.util.Progressable"/>
  37689. <method name="setStatus"
  37690. abstract="false" native="false" synchronized="false"
  37691. static="false" final="false" visibility="public"
  37692. deprecated="not deprecated">
  37693. <param name="status" type="java.lang.String"/>
  37694. <doc>
  37695. <![CDATA[Set the status description for the task.
  37696. @param status brief description of the current status.]]>
  37697. </doc>
  37698. </method>
  37699. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  37700. abstract="false" native="false" synchronized="false"
  37701. static="false" final="false" visibility="public"
  37702. deprecated="not deprecated">
  37703. <param name="name" type="java.lang.Enum"/>
  37704. <doc>
  37705. <![CDATA[Get the {@link Counter} of the given group with the given name.
  37706. @param name counter name
  37707. @return the <code>Counter</code> of the given group/name.]]>
  37708. </doc>
  37709. </method>
  37710. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  37711. abstract="false" native="false" synchronized="false"
  37712. static="false" final="false" visibility="public"
  37713. deprecated="not deprecated">
  37714. <param name="group" type="java.lang.String"/>
  37715. <param name="name" type="java.lang.String"/>
  37716. <doc>
  37717. <![CDATA[Get the {@link Counter} of the given group with the given name.
  37718. @param group counter group
  37719. @param name counter name
  37720. @return the <code>Counter</code> of the given group/name.]]>
  37721. </doc>
  37722. </method>
  37723. <method name="incrCounter"
  37724. abstract="false" native="false" synchronized="false"
  37725. static="false" final="false" visibility="public"
  37726. deprecated="not deprecated">
  37727. <param name="key" type="java.lang.Enum"/>
  37728. <param name="amount" type="long"/>
  37729. <doc>
  37730. <![CDATA[Increments the counter identified by the key, which can be of
  37731. any {@link Enum} type, by the specified amount.
  37732. @param key key to identify the counter to be incremented. The key can be
  37733. be any <code>Enum</code>.
  37734. @param amount A non-negative amount by which the counter is to
  37735. be incremented.]]>
  37736. </doc>
  37737. </method>
  37738. <method name="incrCounter"
  37739. abstract="false" native="false" synchronized="false"
  37740. static="false" final="false" visibility="public"
  37741. deprecated="not deprecated">
  37742. <param name="group" type="java.lang.String"/>
  37743. <param name="counter" type="java.lang.String"/>
  37744. <param name="amount" type="long"/>
  37745. <doc>
  37746. <![CDATA[Increments the counter identified by the group and counter name
  37747. by the specified amount.
  37748. @param group name to identify the group of the counter to be incremented.
  37749. @param counter name to identify the counter within the group.
  37750. @param amount A non-negative amount by which the counter is to
  37751. be incremented.]]>
  37752. </doc>
  37753. </method>
  37754. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  37755. abstract="false" native="false" synchronized="false"
  37756. static="false" final="false" visibility="public"
  37757. deprecated="not deprecated">
  37758. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  37759. <doc>
  37760. <![CDATA[Get the {@link InputSplit} object for a map.
  37761. @return the <code>InputSplit</code> that the map is reading from.
  37762. @throws UnsupportedOperationException if called outside a mapper]]>
  37763. </doc>
  37764. </method>
  37765. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  37766. transient="false" volatile="false"
  37767. static="true" final="true" visibility="public"
  37768. deprecated="not deprecated">
  37769. <doc>
  37770. <![CDATA[A constant of Reporter type that does nothing.]]>
  37771. </doc>
  37772. </field>
  37773. <doc>
  37774. <![CDATA[A facility for Map-Reduce applications to report progress and update
  37775. counters, status information etc.
  37776. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  37777. provided to report progress or just indicate that they are alive. In
  37778. scenarios where the application takes an insignificant amount of time to
  37779. process individual key/value pairs, this is crucial since the framework
  37780. might assume that the task has timed-out and kill that task.
  37781. <p>Applications can also update {@link Counters} via the provided
  37782. <code>Reporter</code> .</p>
  37783. @see Progressable
  37784. @see Counters]]>
  37785. </doc>
  37786. </interface>
  37787. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  37788. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  37789. <interface name="RunningJob" abstract="true"
  37790. static="false" final="false" visibility="public"
  37791. deprecated="not deprecated">
  37792. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  37793. abstract="false" native="false" synchronized="false"
  37794. static="false" final="false" visibility="public"
  37795. deprecated="not deprecated">
  37796. <doc>
  37797. <![CDATA[Get the job identifier.
  37798. @return the job identifier.]]>
  37799. </doc>
  37800. </method>
  37801. <method name="getJobID" return="java.lang.String"
  37802. abstract="false" native="false" synchronized="false"
  37803. static="false" final="false" visibility="public"
  37804. deprecated="This method is deprecated and will be removed. Applications should
  37805. rather use {@link #getID()}.">
  37806. <doc>
  37807. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  37808. rather use {@link #getID()}.]]>
  37809. </doc>
  37810. </method>
  37811. <method name="getJobName" return="java.lang.String"
  37812. abstract="false" native="false" synchronized="false"
  37813. static="false" final="false" visibility="public"
  37814. deprecated="not deprecated">
  37815. <doc>
  37816. <![CDATA[Get the name of the job.
  37817. @return the name of the job.]]>
  37818. </doc>
  37819. </method>
  37820. <method name="getJobFile" return="java.lang.String"
  37821. abstract="false" native="false" synchronized="false"
  37822. static="false" final="false" visibility="public"
  37823. deprecated="not deprecated">
  37824. <doc>
  37825. <![CDATA[Get the path of the submitted job configuration.
  37826. @return the path of the submitted job configuration.]]>
  37827. </doc>
  37828. </method>
  37829. <method name="getTrackingURL" return="java.lang.String"
  37830. abstract="false" native="false" synchronized="false"
  37831. static="false" final="false" visibility="public"
  37832. deprecated="not deprecated">
  37833. <doc>
  37834. <![CDATA[Get the URL where some job progress information will be displayed.
  37835. @return the URL where some job progress information will be displayed.]]>
  37836. </doc>
  37837. </method>
  37838. <method name="mapProgress" return="float"
  37839. abstract="false" native="false" synchronized="false"
  37840. static="false" final="false" visibility="public"
  37841. deprecated="not deprecated">
  37842. <exception name="IOException" type="java.io.IOException"/>
  37843. <doc>
  37844. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  37845. and 1.0. When all map tasks have completed, the function returns 1.0.
  37846. @return the progress of the job's map-tasks.
  37847. @throws IOException]]>
  37848. </doc>
  37849. </method>
  37850. <method name="reduceProgress" return="float"
  37851. abstract="false" native="false" synchronized="false"
  37852. static="false" final="false" visibility="public"
  37853. deprecated="not deprecated">
  37854. <exception name="IOException" type="java.io.IOException"/>
  37855. <doc>
  37856. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  37857. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  37858. @return the progress of the job's reduce-tasks.
  37859. @throws IOException]]>
  37860. </doc>
  37861. </method>
  37862. <method name="cleanupProgress" return="float"
  37863. abstract="false" native="false" synchronized="false"
  37864. static="false" final="false" visibility="public"
  37865. deprecated="not deprecated">
  37866. <exception name="IOException" type="java.io.IOException"/>
  37867. <doc>
  37868. <![CDATA[Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
  37869. and 1.0. When all cleanup tasks have completed, the function returns 1.0.
  37870. @return the progress of the job's cleanup-tasks.
  37871. @throws IOException]]>
  37872. </doc>
  37873. </method>
  37874. <method name="setupProgress" return="float"
  37875. abstract="false" native="false" synchronized="false"
  37876. static="false" final="false" visibility="public"
  37877. deprecated="not deprecated">
  37878. <exception name="IOException" type="java.io.IOException"/>
  37879. <doc>
  37880. <![CDATA[Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
  37881. and 1.0. When all setup tasks have completed, the function returns 1.0.
  37882. @return the progress of the job's setup-tasks.
  37883. @throws IOException]]>
  37884. </doc>
  37885. </method>
  37886. <method name="isComplete" return="boolean"
  37887. abstract="false" native="false" synchronized="false"
  37888. static="false" final="false" visibility="public"
  37889. deprecated="not deprecated">
  37890. <exception name="IOException" type="java.io.IOException"/>
  37891. <doc>
  37892. <![CDATA[Check if the job is finished or not.
  37893. This is a non-blocking call.
  37894. @return <code>true</code> if the job is complete, else <code>false</code>.
  37895. @throws IOException]]>
  37896. </doc>
  37897. </method>
  37898. <method name="isSuccessful" return="boolean"
  37899. abstract="false" native="false" synchronized="false"
  37900. static="false" final="false" visibility="public"
  37901. deprecated="not deprecated">
  37902. <exception name="IOException" type="java.io.IOException"/>
  37903. <doc>
  37904. <![CDATA[Check if the job completed successfully.
  37905. @return <code>true</code> if the job succeeded, else <code>false</code>.
  37906. @throws IOException]]>
  37907. </doc>
  37908. </method>
  37909. <method name="waitForCompletion"
  37910. abstract="false" native="false" synchronized="false"
  37911. static="false" final="false" visibility="public"
  37912. deprecated="not deprecated">
  37913. <exception name="IOException" type="java.io.IOException"/>
  37914. <doc>
  37915. <![CDATA[Blocks until the job is complete.
  37916. @throws IOException]]>
  37917. </doc>
  37918. </method>
  37919. <method name="getJobState" return="int"
  37920. abstract="false" native="false" synchronized="false"
  37921. static="false" final="false" visibility="public"
  37922. deprecated="not deprecated">
  37923. <exception name="IOException" type="java.io.IOException"/>
  37924. <doc>
  37925. <![CDATA[Returns the current state of the Job.
  37926. {@link JobStatus}
  37927. @throws IOException]]>
  37928. </doc>
  37929. </method>
  37930. <method name="killJob"
  37931. abstract="false" native="false" synchronized="false"
  37932. static="false" final="false" visibility="public"
  37933. deprecated="not deprecated">
  37934. <exception name="IOException" type="java.io.IOException"/>
  37935. <doc>
  37936. <![CDATA[Kill the running job. Blocks until all job tasks have been
  37937. killed as well. If the job is no longer running, it simply returns.
  37938. @throws IOException]]>
  37939. </doc>
  37940. </method>
  37941. <method name="setJobPriority"
  37942. abstract="false" native="false" synchronized="false"
  37943. static="false" final="false" visibility="public"
  37944. deprecated="not deprecated">
  37945. <param name="priority" type="java.lang.String"/>
  37946. <exception name="IOException" type="java.io.IOException"/>
  37947. <doc>
  37948. <![CDATA[Set the priority of a running job.
  37949. @param priority the new priority for the job.
  37950. @throws IOException]]>
  37951. </doc>
  37952. </method>
  37953. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  37954. abstract="false" native="false" synchronized="false"
  37955. static="false" final="false" visibility="public"
  37956. deprecated="not deprecated">
  37957. <param name="startFrom" type="int"/>
  37958. <exception name="IOException" type="java.io.IOException"/>
  37959. <doc>
  37960. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  37961. @param startFrom index to start fetching events from
  37962. @return an array of {@link TaskCompletionEvent}s
  37963. @throws IOException]]>
  37964. </doc>
  37965. </method>
  37966. <method name="killTask"
  37967. abstract="false" native="false" synchronized="false"
  37968. static="false" final="false" visibility="public"
  37969. deprecated="not deprecated">
  37970. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  37971. <param name="shouldFail" type="boolean"/>
  37972. <exception name="IOException" type="java.io.IOException"/>
  37973. <doc>
  37974. <![CDATA[Kill indicated task attempt.
  37975. @param taskId the id of the task to be terminated.
  37976. @param shouldFail if true the task is failed and added to failed tasks
  37977. list, otherwise it is just killed, w/o affecting
  37978. job failure status.
  37979. @throws IOException]]>
  37980. </doc>
  37981. </method>
  37982. <method name="killTask"
  37983. abstract="false" native="false" synchronized="false"
  37984. static="false" final="false" visibility="public"
  37985. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  37986. <param name="taskId" type="java.lang.String"/>
  37987. <param name="shouldFail" type="boolean"/>
  37988. <exception name="IOException" type="java.io.IOException"/>
  37989. <doc>
  37990. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  37991. </doc>
  37992. </method>
  37993. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  37994. abstract="false" native="false" synchronized="false"
  37995. static="false" final="false" visibility="public"
  37996. deprecated="not deprecated">
  37997. <exception name="IOException" type="java.io.IOException"/>
  37998. <doc>
  37999. <![CDATA[Gets the counters for this job.
  38000. @return the counters for this job.
  38001. @throws IOException]]>
  38002. </doc>
  38003. </method>
  38004. <method name="getTaskDiagnostics" return="java.lang.String[]"
  38005. abstract="false" native="false" synchronized="false"
  38006. static="false" final="false" visibility="public"
  38007. deprecated="not deprecated">
  38008. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  38009. <exception name="IOException" type="java.io.IOException"/>
  38010. <doc>
  38011. <![CDATA[Gets the diagnostic messages for a given task attempt.
  38012. @param taskid
  38013. @return the list of diagnostic messages for the task
  38014. @throws IOException]]>
  38015. </doc>
  38016. </method>
  38017. <doc>
  38018. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  38019. running Map-Reduce job.
  38020. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  38021. and then query the running-job for details such as name, configuration,
  38022. progress etc.</p>
  38023. @see JobClient]]>
  38024. </doc>
  38025. </interface>
  38026. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  38027. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  38028. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  38029. abstract="false"
  38030. static="false" final="false" visibility="public"
  38031. deprecated="not deprecated">
  38032. <constructor name="SequenceFileAsBinaryInputFormat"
  38033. static="false" final="false" visibility="public"
  38034. deprecated="not deprecated">
  38035. </constructor>
  38036. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  38037. abstract="false" native="false" synchronized="false"
  38038. static="false" final="false" visibility="public"
  38039. deprecated="not deprecated">
  38040. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  38041. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  38042. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  38043. <exception name="IOException" type="java.io.IOException"/>
  38044. </method>
  38045. <doc>
  38046. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  38047. format.]]>
  38048. </doc>
  38049. </class>
  38050. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  38051. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  38052. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  38053. abstract="false"
  38054. static="true" final="false" visibility="public"
  38055. deprecated="not deprecated">
  38056. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  38057. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  38058. static="false" final="false" visibility="public"
  38059. deprecated="not deprecated">
  38060. <exception name="IOException" type="java.io.IOException"/>
  38061. </constructor>
  38062. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  38063. abstract="false" native="false" synchronized="false"
  38064. static="false" final="false" visibility="public"
  38065. deprecated="not deprecated">
  38066. </method>
  38067. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  38068. abstract="false" native="false" synchronized="false"
  38069. static="false" final="false" visibility="public"
  38070. deprecated="not deprecated">
  38071. </method>
  38072. <method name="getKeyClassName" return="java.lang.String"
  38073. abstract="false" native="false" synchronized="false"
  38074. static="false" final="false" visibility="public"
  38075. deprecated="not deprecated">
  38076. <doc>
  38077. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  38078. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  38079. </doc>
  38080. </method>
  38081. <method name="getValueClassName" return="java.lang.String"
  38082. abstract="false" native="false" synchronized="false"
  38083. static="false" final="false" visibility="public"
  38084. deprecated="not deprecated">
  38085. <doc>
  38086. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  38087. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  38088. </doc>
  38089. </method>
  38090. <method name="next" return="boolean"
  38091. abstract="false" native="false" synchronized="true"
  38092. static="false" final="false" visibility="public"
  38093. deprecated="not deprecated">
  38094. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  38095. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  38096. <exception name="IOException" type="java.io.IOException"/>
  38097. <doc>
  38098. <![CDATA[Read raw bytes from a SequenceFile.]]>
  38099. </doc>
  38100. </method>
  38101. <method name="getPos" return="long"
  38102. abstract="false" native="false" synchronized="false"
  38103. static="false" final="false" visibility="public"
  38104. deprecated="not deprecated">
  38105. <exception name="IOException" type="java.io.IOException"/>
  38106. </method>
  38107. <method name="close"
  38108. abstract="false" native="false" synchronized="false"
  38109. static="false" final="false" visibility="public"
  38110. deprecated="not deprecated">
  38111. <exception name="IOException" type="java.io.IOException"/>
  38112. </method>
  38113. <method name="getProgress" return="float"
  38114. abstract="false" native="false" synchronized="false"
  38115. static="false" final="false" visibility="public"
  38116. deprecated="not deprecated">
  38117. <exception name="IOException" type="java.io.IOException"/>
  38118. <doc>
  38119. <![CDATA[Return the progress within the input split
  38120. @return 0.0 to 1.0 of the input byte range]]>
  38121. </doc>
  38122. </method>
  38123. <doc>
  38124. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  38125. </doc>
  38126. </class>
  38127. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  38128. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  38129. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat"
  38130. abstract="false"
  38131. static="false" final="false" visibility="public"
  38132. deprecated="not deprecated">
  38133. <constructor name="SequenceFileAsBinaryOutputFormat"
  38134. static="false" final="false" visibility="public"
  38135. deprecated="not deprecated">
  38136. </constructor>
  38137. <method name="setSequenceFileOutputKeyClass"
  38138. abstract="false" native="false" synchronized="false"
  38139. static="true" final="false" visibility="public"
  38140. deprecated="not deprecated">
  38141. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  38142. <param name="theClass" type="java.lang.Class"/>
  38143. <doc>
  38144. <![CDATA[Set the key class for the {@link SequenceFile}
  38145. <p>This allows the user to specify the key class to be different
  38146. from the actual class ({@link BytesWritable}) used for writing </p>
  38147. @param conf the {@link JobConf} to modify
  38148. @param theClass the SequenceFile output key class.]]>
  38149. </doc>
  38150. </method>
  38151. <method name="setSequenceFileOutputValueClass"
  38152. abstract="false" native="false" synchronized="false"
  38153. static="true" final="false" visibility="public"
  38154. deprecated="not deprecated">
  38155. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  38156. <param name="theClass" type="java.lang.Class"/>
  38157. <doc>
  38158. <![CDATA[Set the value class for the {@link SequenceFile}
  38159. <p>This allows the user to specify the value class to be different
  38160. from the actual class ({@link BytesWritable}) used for writing </p>
  38161. @param conf the {@link JobConf} to modify
  38162. @param theClass the SequenceFile output key class.]]>
  38163. </doc>
  38164. </method>
  38165. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  38166. abstract="false" native="false" synchronized="false"
  38167. static="true" final="false" visibility="public"
  38168. deprecated="not deprecated">
  38169. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  38170. <doc>
  38171. <![CDATA[Get the key class for the {@link SequenceFile}
  38172. @return the key class of the {@link SequenceFile}]]>
  38173. </doc>
  38174. </method>
  38175. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  38176. abstract="false" native="false" synchronized="false"
  38177. static="true" final="false" visibility="public"
  38178. deprecated="not deprecated">
  38179. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  38180. <doc>
  38181. <![CDATA[Get the value class for the {@link SequenceFile}
  38182. @return the value class of the {@link SequenceFile}]]>
  38183. </doc>
  38184. </method>
  38185. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  38186. abstract="false" native="false" synchronized="false"
  38187. static="false" final="false" visibility="public"
  38188. deprecated="not deprecated">
  38189. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  38190. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  38191. <param name="name" type="java.lang.String"/>
  38192. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  38193. <exception name="IOException" type="java.io.IOException"/>
  38194. </method>
  38195. <method name="checkOutputSpecs"
  38196. abstract="false" native="false" synchronized="false"
  38197. static="false" final="false" visibility="public"
  38198. deprecated="not deprecated">
  38199. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  38200. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  38201. <exception name="IOException" type="java.io.IOException"/>
  38202. </method>
  38203. <doc>
  38204. <![CDATA[An {@link OutputFormat} that writes keys, values to
  38205. {@link SequenceFile}s in binary(raw) format]]>
  38206. </doc>
  38207. </class>
  38208. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  38209. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  38210. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  38211. abstract="false"
  38212. static="true" final="false" visibility="protected"
  38213. deprecated="not deprecated">
  38214. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  38215. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  38216. static="false" final="false" visibility="public"
  38217. deprecated="not deprecated">
  38218. </constructor>
  38219. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  38220. static="false" final="false" visibility="public"
  38221. deprecated="not deprecated">
  38222. </constructor>
  38223. <method name="reset"
  38224. abstract="false" native="false" synchronized="false"
  38225. static="false" final="false" visibility="public"
  38226. deprecated="not deprecated">
  38227. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  38228. </method>
  38229. <method name="writeUncompressedBytes"
  38230. abstract="false" native="false" synchronized="false"
  38231. static="false" final="false" visibility="public"
  38232. deprecated="not deprecated">
  38233. <param name="outStream" type="java.io.DataOutputStream"/>
  38234. <exception name="IOException" type="java.io.IOException"/>
  38235. </method>
  38236. <method name="writeCompressedBytes"
  38237. abstract="false" native="false" synchronized="false"
  38238. static="false" final="false" visibility="public"
  38239. deprecated="not deprecated">
  38240. <param name="outStream" type="java.io.DataOutputStream"/>
  38241. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  38242. <exception name="IOException" type="java.io.IOException"/>
  38243. </method>
  38244. <method name="getSize" return="int"
  38245. abstract="false" native="false" synchronized="false"
  38246. static="false" final="false" visibility="public"
  38247. deprecated="not deprecated">
  38248. </method>
  38249. <doc>
  38250. <![CDATA[Inner class used for appendRaw]]>
  38251. </doc>
  38252. </class>
  38253. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  38254. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  38255. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  38256. abstract="false"
  38257. static="false" final="false" visibility="public"
  38258. deprecated="not deprecated">
  38259. <constructor name="SequenceFileAsTextInputFormat"
  38260. static="false" final="false" visibility="public"
  38261. deprecated="not deprecated">
  38262. </constructor>
  38263. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  38264. abstract="false" native="false" synchronized="false"
  38265. static="false" final="false" visibility="public"
  38266. deprecated="not deprecated">
  38267. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  38268. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  38269. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  38270. <exception name="IOException" type="java.io.IOException"/>
  38271. </method>
  38272. <doc>
  38273. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  38274. which converts the input keys and values to their String forms by calling toString() method.]]>
  38275. </doc>
  38276. </class>
  38277. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  38278. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  38279. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  38280. abstract="false"
  38281. static="false" final="false" visibility="public"
  38282. deprecated="not deprecated">
  38283. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  38284. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  38285. static="false" final="false" visibility="public"
  38286. deprecated="not deprecated">
  38287. <exception name="IOException" type="java.io.IOException"/>
  38288. </constructor>
  38289. <method name="createKey" return="org.apache.hadoop.io.Text"
  38290. abstract="false" native="false" synchronized="false"
  38291. static="false" final="false" visibility="public"
  38292. deprecated="not deprecated">
  38293. </method>
  38294. <method name="createValue" return="org.apache.hadoop.io.Text"
  38295. abstract="false" native="false" synchronized="false"
  38296. static="false" final="false" visibility="public"
  38297. deprecated="not deprecated">
  38298. </method>
  38299. <method name="next" return="boolean"
  38300. abstract="false" native="false" synchronized="true"
  38301. static="false" final="false" visibility="public"
  38302. deprecated="not deprecated">
  38303. <param name="key" type="org.apache.hadoop.io.Text"/>
  38304. <param name="value" type="org.apache.hadoop.io.Text"/>
  38305. <exception name="IOException" type="java.io.IOException"/>
  38306. <doc>
  38307. <![CDATA[Read key/value pair in a line.]]>
  38308. </doc>
  38309. </method>
  38310. <method name="getProgress" return="float"
  38311. abstract="false" native="false" synchronized="false"
  38312. static="false" final="false" visibility="public"
  38313. deprecated="not deprecated">
  38314. <exception name="IOException" type="java.io.IOException"/>
  38315. </method>
  38316. <method name="getPos" return="long"
  38317. abstract="false" native="false" synchronized="true"
  38318. static="false" final="false" visibility="public"
  38319. deprecated="not deprecated">
  38320. <exception name="IOException" type="java.io.IOException"/>
  38321. </method>
  38322. <method name="close"
  38323. abstract="false" native="false" synchronized="true"
  38324. static="false" final="false" visibility="public"
  38325. deprecated="not deprecated">
  38326. <exception name="IOException" type="java.io.IOException"/>
  38327. </method>
  38328. <doc>
  38329. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  38330. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  38331. class to TextInputFormat class.]]>
  38332. </doc>
  38333. </class>
  38334. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  38335. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  38336. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  38337. abstract="false"
  38338. static="false" final="false" visibility="public"
  38339. deprecated="not deprecated">
  38340. <constructor name="SequenceFileInputFilter"
  38341. static="false" final="false" visibility="public"
  38342. deprecated="not deprecated">
  38343. </constructor>
  38344. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  38345. abstract="false" native="false" synchronized="false"
  38346. static="false" final="false" visibility="public"
  38347. deprecated="not deprecated">
  38348. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  38349. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  38350. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  38351. <exception name="IOException" type="java.io.IOException"/>
  38352. <doc>
  38353. <![CDATA[Create a record reader for the given split
  38354. @param split file split
  38355. @param job job configuration
  38356. @param reporter reporter who sends report to task tracker
  38357. @return RecordReader]]>
  38358. </doc>
  38359. </method>
  38360. <method name="setFilterClass"
  38361. abstract="false" native="false" synchronized="false"
  38362. static="true" final="false" visibility="public"
  38363. deprecated="not deprecated">
  38364. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38365. <param name="filterClass" type="java.lang.Class"/>
  38366. <doc>
  38367. <![CDATA[set the filter class
  38368. @param conf application configuration
  38369. @param filterClass filter class]]>
  38370. </doc>
  38371. </method>
  38372. <doc>
  38373. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  38374. The sample is decided by the filter class set by the job.]]>
  38375. </doc>
  38376. </class>
  38377. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  38378. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  38379. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  38380. static="true" final="false" visibility="public"
  38381. deprecated="not deprecated">
  38382. <implements name="org.apache.hadoop.conf.Configurable"/>
  38383. <method name="accept" return="boolean"
  38384. abstract="false" native="false" synchronized="false"
  38385. static="false" final="false" visibility="public"
  38386. deprecated="not deprecated">
  38387. <param name="key" type="java.lang.Object"/>
  38388. <doc>
  38389. <![CDATA[filter function
  38390. Decide if a record should be filtered or not
  38391. @param key record key
  38392. @return true if a record is accepted; return false otherwise]]>
  38393. </doc>
  38394. </method>
  38395. <doc>
  38396. <![CDATA[filter interface]]>
  38397. </doc>
  38398. </interface>
  38399. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  38400. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  38401. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  38402. abstract="true"
  38403. static="true" final="false" visibility="public"
  38404. deprecated="not deprecated">
  38405. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  38406. <constructor name="SequenceFileInputFilter.FilterBase"
  38407. static="false" final="false" visibility="public"
  38408. deprecated="not deprecated">
  38409. </constructor>
  38410. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  38411. abstract="false" native="false" synchronized="false"
  38412. static="false" final="false" visibility="public"
  38413. deprecated="not deprecated">
  38414. </method>
  38415. <doc>
  38416. <![CDATA[base class for Filters]]>
  38417. </doc>
  38418. </class>
  38419. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  38420. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  38421. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  38422. abstract="false"
  38423. static="true" final="false" visibility="public"
  38424. deprecated="not deprecated">
  38425. <constructor name="SequenceFileInputFilter.MD5Filter"
  38426. static="false" final="false" visibility="public"
  38427. deprecated="not deprecated">
  38428. </constructor>
  38429. <method name="setFrequency"
  38430. abstract="false" native="false" synchronized="false"
  38431. static="true" final="false" visibility="public"
  38432. deprecated="not deprecated">
  38433. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38434. <param name="frequency" type="int"/>
  38435. <doc>
  38436. <![CDATA[set the filtering frequency in configuration
  38437. @param conf configuration
  38438. @param frequency filtering frequency]]>
  38439. </doc>
  38440. </method>
  38441. <method name="setConf"
  38442. abstract="false" native="false" synchronized="false"
  38443. static="false" final="false" visibility="public"
  38444. deprecated="not deprecated">
  38445. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38446. <doc>
  38447. <![CDATA[configure the filter according to configuration
  38448. @param conf configuration]]>
  38449. </doc>
  38450. </method>
  38451. <method name="accept" return="boolean"
  38452. abstract="false" native="false" synchronized="false"
  38453. static="false" final="false" visibility="public"
  38454. deprecated="not deprecated">
  38455. <param name="key" type="java.lang.Object"/>
  38456. <doc>
  38457. <![CDATA[Filtering method
  38458. If MD5(key) % frequency==0, return true; otherwise return false
  38459. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  38460. </doc>
  38461. </method>
  38462. <field name="MD5_LEN" type="int"
  38463. transient="false" volatile="false"
  38464. static="true" final="true" visibility="public"
  38465. deprecated="not deprecated">
  38466. </field>
  38467. <doc>
  38468. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  38469. key against a filtering frequency <i>f</i>. The filtering criteria is
  38470. MD5(key) % f == 0.]]>
  38471. </doc>
  38472. </class>
  38473. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  38474. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  38475. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  38476. abstract="false"
  38477. static="true" final="false" visibility="public"
  38478. deprecated="not deprecated">
  38479. <constructor name="SequenceFileInputFilter.PercentFilter"
  38480. static="false" final="false" visibility="public"
  38481. deprecated="not deprecated">
  38482. </constructor>
  38483. <method name="setFrequency"
  38484. abstract="false" native="false" synchronized="false"
  38485. static="true" final="false" visibility="public"
  38486. deprecated="not deprecated">
  38487. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38488. <param name="frequency" type="int"/>
  38489. <doc>
  38490. <![CDATA[set the frequency and stores it in conf
  38491. @param conf configuration
  38492. @param frequency filtering frequencey]]>
  38493. </doc>
  38494. </method>
  38495. <method name="setConf"
  38496. abstract="false" native="false" synchronized="false"
  38497. static="false" final="false" visibility="public"
  38498. deprecated="not deprecated">
  38499. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38500. <doc>
  38501. <![CDATA[configure the filter by checking the configuration
  38502. @param conf configuration]]>
  38503. </doc>
  38504. </method>
  38505. <method name="accept" return="boolean"
  38506. abstract="false" native="false" synchronized="false"
  38507. static="false" final="false" visibility="public"
  38508. deprecated="not deprecated">
  38509. <param name="key" type="java.lang.Object"/>
  38510. <doc>
  38511. <![CDATA[Filtering method
  38512. If record# % frequency==0, return true; otherwise return false
  38513. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  38514. </doc>
  38515. </method>
  38516. <doc>
  38517. <![CDATA[This class returns a percentage of records
  38518. The percentage is determined by a filtering frequency <i>f</i> using
  38519. the criteria record# % f == 0.
  38520. For example, if the frequency is 10, one out of 10 records is returned.]]>
  38521. </doc>
  38522. </class>
  38523. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  38524. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  38525. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  38526. abstract="false"
  38527. static="true" final="false" visibility="public"
  38528. deprecated="not deprecated">
  38529. <constructor name="SequenceFileInputFilter.RegexFilter"
  38530. static="false" final="false" visibility="public"
  38531. deprecated="not deprecated">
  38532. </constructor>
  38533. <method name="setPattern"
  38534. abstract="false" native="false" synchronized="false"
  38535. static="true" final="false" visibility="public"
  38536. deprecated="not deprecated">
  38537. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38538. <param name="regex" type="java.lang.String"/>
  38539. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  38540. <doc>
  38541. <![CDATA[Define the filtering regex and stores it in conf
  38542. @param conf where the regex is set
  38543. @param regex regex used as a filter]]>
  38544. </doc>
  38545. </method>
  38546. <method name="setConf"
  38547. abstract="false" native="false" synchronized="false"
  38548. static="false" final="false" visibility="public"
  38549. deprecated="not deprecated">
  38550. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38551. <doc>
  38552. <![CDATA[configure the Filter by checking the configuration]]>
  38553. </doc>
  38554. </method>
  38555. <method name="accept" return="boolean"
  38556. abstract="false" native="false" synchronized="false"
  38557. static="false" final="false" visibility="public"
  38558. deprecated="not deprecated">
  38559. <param name="key" type="java.lang.Object"/>
  38560. <doc>
  38561. <![CDATA[Filtering method
  38562. If key matches the regex, return true; otherwise return false
  38563. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  38564. </doc>
  38565. </method>
  38566. <doc>
  38567. <![CDATA[Records filter by matching key to regex]]>
  38568. </doc>
  38569. </class>
  38570. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  38571. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  38572. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  38573. abstract="false"
  38574. static="false" final="false" visibility="public"
  38575. deprecated="Use
  38576. {@link org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat}
  38577. instead.">
  38578. <constructor name="SequenceFileInputFormat"
  38579. static="false" final="false" visibility="public"
  38580. deprecated="not deprecated">
  38581. </constructor>
  38582. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  38583. abstract="false" native="false" synchronized="false"
  38584. static="false" final="false" visibility="protected"
  38585. deprecated="not deprecated">
  38586. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  38587. <exception name="IOException" type="java.io.IOException"/>
  38588. </method>
  38589. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  38590. abstract="false" native="false" synchronized="false"
  38591. static="false" final="false" visibility="public"
  38592. deprecated="not deprecated">
  38593. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  38594. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  38595. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  38596. <exception name="IOException" type="java.io.IOException"/>
  38597. </method>
  38598. <doc>
  38599. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.
  38600. @deprecated Use
  38601. {@link org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat}
  38602. instead.]]>
  38603. </doc>
  38604. </class>
  38605. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  38606. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  38607. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  38608. abstract="false"
  38609. static="false" final="false" visibility="public"
  38610. deprecated="Use
  38611. {@link org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat}
  38612. instead.">
  38613. <constructor name="SequenceFileOutputFormat"
  38614. static="false" final="false" visibility="public"
  38615. deprecated="not deprecated">
  38616. </constructor>
  38617. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  38618. abstract="false" native="false" synchronized="false"
  38619. static="false" final="false" visibility="public"
  38620. deprecated="not deprecated">
  38621. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  38622. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  38623. <param name="name" type="java.lang.String"/>
  38624. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  38625. <exception name="IOException" type="java.io.IOException"/>
  38626. </method>
  38627. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  38628. abstract="false" native="false" synchronized="false"
  38629. static="true" final="false" visibility="public"
  38630. deprecated="not deprecated">
  38631. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38632. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  38633. <exception name="IOException" type="java.io.IOException"/>
  38634. <doc>
  38635. <![CDATA[Open the output generated by this format.]]>
  38636. </doc>
  38637. </method>
  38638. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  38639. abstract="false" native="false" synchronized="false"
  38640. static="true" final="false" visibility="public"
  38641. deprecated="not deprecated">
  38642. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  38643. <doc>
  38644. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  38645. @param conf the {@link JobConf}
  38646. @return the {@link CompressionType} for the output {@link SequenceFile},
  38647. defaulting to {@link CompressionType#RECORD}]]>
  38648. </doc>
  38649. </method>
  38650. <method name="setOutputCompressionType"
  38651. abstract="false" native="false" synchronized="false"
  38652. static="true" final="false" visibility="public"
  38653. deprecated="not deprecated">
  38654. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  38655. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  38656. <doc>
  38657. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  38658. @param conf the {@link JobConf} to modify
  38659. @param style the {@link CompressionType} for the output
  38660. {@link SequenceFile}]]>
  38661. </doc>
  38662. </method>
  38663. <doc>
  38664. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.
  38665. @deprecated Use
  38666. {@link org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat}
  38667. instead.]]>
  38668. </doc>
  38669. </class>
  38670. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  38671. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  38672. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  38673. abstract="false"
  38674. static="false" final="false" visibility="public"
  38675. deprecated="not deprecated">
  38676. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  38677. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  38678. static="false" final="false" visibility="public"
  38679. deprecated="not deprecated">
  38680. <exception name="IOException" type="java.io.IOException"/>
  38681. </constructor>
  38682. <method name="getKeyClass" return="java.lang.Class"
  38683. abstract="false" native="false" synchronized="false"
  38684. static="false" final="false" visibility="public"
  38685. deprecated="not deprecated">
  38686. <doc>
  38687. <![CDATA[The class of key that must be passed to {@link
  38688. #next(Object, Object)}..]]>
  38689. </doc>
  38690. </method>
  38691. <method name="getValueClass" return="java.lang.Class"
  38692. abstract="false" native="false" synchronized="false"
  38693. static="false" final="false" visibility="public"
  38694. deprecated="not deprecated">
  38695. <doc>
  38696. <![CDATA[The class of value that must be passed to {@link
  38697. #next(Object, Object)}..]]>
  38698. </doc>
  38699. </method>
  38700. <method name="createKey" return="java.lang.Object"
  38701. abstract="false" native="false" synchronized="false"
  38702. static="false" final="false" visibility="public"
  38703. deprecated="not deprecated">
  38704. </method>
  38705. <method name="createValue" return="java.lang.Object"
  38706. abstract="false" native="false" synchronized="false"
  38707. static="false" final="false" visibility="public"
  38708. deprecated="not deprecated">
  38709. </method>
  38710. <method name="next" return="boolean"
  38711. abstract="false" native="false" synchronized="true"
  38712. static="false" final="false" visibility="public"
  38713. deprecated="not deprecated">
  38714. <param name="key" type="java.lang.Object"/>
  38715. <param name="value" type="java.lang.Object"/>
  38716. <exception name="IOException" type="java.io.IOException"/>
  38717. </method>
  38718. <method name="next" return="boolean"
  38719. abstract="false" native="false" synchronized="true"
  38720. static="false" final="false" visibility="protected"
  38721. deprecated="not deprecated">
  38722. <param name="key" type="java.lang.Object"/>
  38723. <exception name="IOException" type="java.io.IOException"/>
  38724. </method>
  38725. <method name="getCurrentValue"
  38726. abstract="false" native="false" synchronized="true"
  38727. static="false" final="false" visibility="protected"
  38728. deprecated="not deprecated">
  38729. <param name="value" type="java.lang.Object"/>
  38730. <exception name="IOException" type="java.io.IOException"/>
  38731. </method>
  38732. <method name="getProgress" return="float"
  38733. abstract="false" native="false" synchronized="false"
  38734. static="false" final="false" visibility="public"
  38735. deprecated="not deprecated">
  38736. <exception name="IOException" type="java.io.IOException"/>
  38737. <doc>
  38738. <![CDATA[Return the progress within the input split
  38739. @return 0.0 to 1.0 of the input byte range]]>
  38740. </doc>
  38741. </method>
  38742. <method name="getPos" return="long"
  38743. abstract="false" native="false" synchronized="true"
  38744. static="false" final="false" visibility="public"
  38745. deprecated="not deprecated">
  38746. <exception name="IOException" type="java.io.IOException"/>
  38747. </method>
  38748. <method name="seek"
  38749. abstract="false" native="false" synchronized="true"
  38750. static="false" final="false" visibility="protected"
  38751. deprecated="not deprecated">
  38752. <param name="pos" type="long"/>
  38753. <exception name="IOException" type="java.io.IOException"/>
  38754. </method>
  38755. <method name="close"
  38756. abstract="false" native="false" synchronized="true"
  38757. static="false" final="false" visibility="public"
  38758. deprecated="not deprecated">
  38759. <exception name="IOException" type="java.io.IOException"/>
  38760. </method>
  38761. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  38762. transient="false" volatile="false"
  38763. static="false" final="false" visibility="protected"
  38764. deprecated="not deprecated">
  38765. </field>
  38766. <doc>
  38767. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  38768. </doc>
  38769. </class>
  38770. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  38771. <!-- start class org.apache.hadoop.mapred.SkipBadRecords -->
  38772. <class name="SkipBadRecords" extends="java.lang.Object"
  38773. abstract="false"
  38774. static="false" final="false" visibility="public"
  38775. deprecated="not deprecated">
  38776. <constructor name="SkipBadRecords"
  38777. static="false" final="false" visibility="public"
  38778. deprecated="not deprecated">
  38779. </constructor>
  38780. <method name="getAttemptsToStartSkipping" return="int"
  38781. abstract="false" native="false" synchronized="false"
  38782. static="true" final="false" visibility="public"
  38783. deprecated="not deprecated">
  38784. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38785. <doc>
  38786. <![CDATA[Get the number of Task attempts AFTER which skip mode
  38787. will be kicked off. When skip mode is kicked off, the
  38788. tasks reports the range of records which it will process
  38789. next to the TaskTracker. So that on failures, TT knows which
  38790. ones are possibly the bad records. On further executions,
  38791. those are skipped.
  38792. Default value is 2.
  38793. @param conf the configuration
  38794. @return attemptsToStartSkipping no of task attempts]]>
  38795. </doc>
  38796. </method>
  38797. <method name="setAttemptsToStartSkipping"
  38798. abstract="false" native="false" synchronized="false"
  38799. static="true" final="false" visibility="public"
  38800. deprecated="not deprecated">
  38801. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38802. <param name="attemptsToStartSkipping" type="int"/>
  38803. <doc>
  38804. <![CDATA[Set the number of Task attempts AFTER which skip mode
  38805. will be kicked off. When skip mode is kicked off, the
  38806. tasks reports the range of records which it will process
  38807. next to the TaskTracker. So that on failures, TT knows which
  38808. ones are possibly the bad records. On further executions,
  38809. those are skipped.
  38810. Default value is 2.
  38811. @param conf the configuration
  38812. @param attemptsToStartSkipping no of task attempts]]>
  38813. </doc>
  38814. </method>
  38815. <method name="getAutoIncrMapperProcCount" return="boolean"
  38816. abstract="false" native="false" synchronized="false"
  38817. static="true" final="false" visibility="public"
  38818. deprecated="not deprecated">
  38819. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38820. <doc>
  38821. <![CDATA[Get the flag which if set to true,
  38822. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  38823. by MapRunner after invoking the map function. This value must be set to
  38824. false for applications which process the records asynchronously
  38825. or buffer the input records. For example streaming.
  38826. In such cases applications should increment this counter on their own.
  38827. Default value is true.
  38828. @param conf the configuration
  38829. @return <code>true</code> if auto increment
  38830. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.
  38831. <code>false</code> otherwise.]]>
  38832. </doc>
  38833. </method>
  38834. <method name="setAutoIncrMapperProcCount"
  38835. abstract="false" native="false" synchronized="false"
  38836. static="true" final="false" visibility="public"
  38837. deprecated="not deprecated">
  38838. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38839. <param name="autoIncr" type="boolean"/>
  38840. <doc>
  38841. <![CDATA[Set the flag which if set to true,
  38842. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  38843. by MapRunner after invoking the map function. This value must be set to
  38844. false for applications which process the records asynchronously
  38845. or buffer the input records. For example streaming.
  38846. In such cases applications should increment this counter on their own.
  38847. Default value is true.
  38848. @param conf the configuration
  38849. @param autoIncr whether to auto increment
  38850. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.]]>
  38851. </doc>
  38852. </method>
  38853. <method name="getAutoIncrReducerProcCount" return="boolean"
  38854. abstract="false" native="false" synchronized="false"
  38855. static="true" final="false" visibility="public"
  38856. deprecated="not deprecated">
  38857. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38858. <doc>
  38859. <![CDATA[Get the flag which if set to true,
  38860. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  38861. by framework after invoking the reduce function. This value must be set to
  38862. false for applications which process the records asynchronously
  38863. or buffer the input records. For example streaming.
  38864. In such cases applications should increment this counter on their own.
  38865. Default value is true.
  38866. @param conf the configuration
  38867. @return <code>true</code> if auto increment
  38868. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.
  38869. <code>false</code> otherwise.]]>
  38870. </doc>
  38871. </method>
  38872. <method name="setAutoIncrReducerProcCount"
  38873. abstract="false" native="false" synchronized="false"
  38874. static="true" final="false" visibility="public"
  38875. deprecated="not deprecated">
  38876. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38877. <param name="autoIncr" type="boolean"/>
  38878. <doc>
  38879. <![CDATA[Set the flag which if set to true,
  38880. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  38881. by framework after invoking the reduce function. This value must be set to
  38882. false for applications which process the records asynchronously
  38883. or buffer the input records. For example streaming.
  38884. In such cases applications should increment this counter on their own.
  38885. Default value is true.
  38886. @param conf the configuration
  38887. @param autoIncr whether to auto increment
  38888. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.]]>
  38889. </doc>
  38890. </method>
  38891. <method name="getSkipOutputPath" return="org.apache.hadoop.fs.Path"
  38892. abstract="false" native="false" synchronized="false"
  38893. static="true" final="false" visibility="public"
  38894. deprecated="not deprecated">
  38895. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38896. <doc>
  38897. <![CDATA[Get the directory to which skipped records are written. By default it is
  38898. the sub directory of the output _logs directory.
  38899. User can stop writing skipped records by setting the value null.
  38900. @param conf the configuration.
  38901. @return path skip output directory. Null is returned if this is not set
  38902. and output directory is also not set.]]>
  38903. </doc>
  38904. </method>
  38905. <method name="setSkipOutputPath"
  38906. abstract="false" native="false" synchronized="false"
  38907. static="true" final="false" visibility="public"
  38908. deprecated="not deprecated">
  38909. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  38910. <param name="path" type="org.apache.hadoop.fs.Path"/>
  38911. <doc>
  38912. <![CDATA[Set the directory to which skipped records are written. By default it is
  38913. the sub directory of the output _logs directory.
  38914. User can stop writing skipped records by setting the value null.
  38915. @param conf the configuration.
  38916. @param path skip output directory path]]>
  38917. </doc>
  38918. </method>
  38919. <method name="getMapperMaxSkipRecords" return="long"
  38920. abstract="false" native="false" synchronized="false"
  38921. static="true" final="false" visibility="public"
  38922. deprecated="not deprecated">
  38923. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38924. <doc>
  38925. <![CDATA[Get the number of acceptable skip records surrounding the bad record PER
  38926. bad record in mapper. The number includes the bad record as well.
  38927. To turn the feature of detection/skipping of bad records off, set the
  38928. value to 0.
  38929. The framework tries to narrow down the skipped range by retrying
  38930. until this threshold is met OR all attempts get exhausted for this task.
  38931. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  38932. narrow down. Whatever records(depends on application) get skipped are
  38933. acceptable.
  38934. Default value is 0.
  38935. @param conf the configuration
  38936. @return maxSkipRecs acceptable skip records.]]>
  38937. </doc>
  38938. </method>
  38939. <method name="setMapperMaxSkipRecords"
  38940. abstract="false" native="false" synchronized="false"
  38941. static="true" final="false" visibility="public"
  38942. deprecated="not deprecated">
  38943. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38944. <param name="maxSkipRecs" type="long"/>
  38945. <doc>
  38946. <![CDATA[Set the number of acceptable skip records surrounding the bad record PER
  38947. bad record in mapper. The number includes the bad record as well.
  38948. To turn the feature of detection/skipping of bad records off, set the
  38949. value to 0.
  38950. The framework tries to narrow down the skipped range by retrying
  38951. until this threshold is met OR all attempts get exhausted for this task.
  38952. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  38953. narrow down. Whatever records(depends on application) get skipped are
  38954. acceptable.
  38955. Default value is 0.
  38956. @param conf the configuration
  38957. @param maxSkipRecs acceptable skip records.]]>
  38958. </doc>
  38959. </method>
  38960. <method name="getReducerMaxSkipGroups" return="long"
  38961. abstract="false" native="false" synchronized="false"
  38962. static="true" final="false" visibility="public"
  38963. deprecated="not deprecated">
  38964. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38965. <doc>
  38966. <![CDATA[Get the number of acceptable skip groups surrounding the bad group PER
  38967. bad group in reducer. The number includes the bad group as well.
  38968. To turn the feature of detection/skipping of bad groups off, set the
  38969. value to 0.
  38970. The framework tries to narrow down the skipped range by retrying
  38971. until this threshold is met OR all attempts get exhausted for this task.
  38972. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  38973. narrow down. Whatever groups(depends on application) get skipped are
  38974. acceptable.
  38975. Default value is 0.
  38976. @param conf the configuration
  38977. @return maxSkipGrps acceptable skip groups.]]>
  38978. </doc>
  38979. </method>
  38980. <method name="setReducerMaxSkipGroups"
  38981. abstract="false" native="false" synchronized="false"
  38982. static="true" final="false" visibility="public"
  38983. deprecated="not deprecated">
  38984. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38985. <param name="maxSkipGrps" type="long"/>
  38986. <doc>
  38987. <![CDATA[Set the number of acceptable skip groups surrounding the bad group PER
  38988. bad group in reducer. The number includes the bad group as well.
  38989. To turn the feature of detection/skipping of bad groups off, set the
  38990. value to 0.
  38991. The framework tries to narrow down the skipped range by retrying
  38992. until this threshold is met OR all attempts get exhausted for this task.
  38993. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  38994. narrow down. Whatever groups(depends on application) get skipped are
  38995. acceptable.
  38996. Default value is 0.
  38997. @param conf the configuration
  38998. @param maxSkipGrps acceptable skip groups.]]>
  38999. </doc>
  39000. </method>
  39001. <field name="COUNTER_GROUP" type="java.lang.String"
  39002. transient="false" volatile="false"
  39003. static="true" final="true" visibility="public"
  39004. deprecated="not deprecated">
  39005. <doc>
  39006. <![CDATA[Special counters which are written by the application and are
  39007. used by the framework for detecting bad records. For detecting bad records
  39008. these counters must be incremented by the application.]]>
  39009. </doc>
  39010. </field>
  39011. <field name="COUNTER_MAP_PROCESSED_RECORDS" type="java.lang.String"
  39012. transient="false" volatile="false"
  39013. static="true" final="true" visibility="public"
  39014. deprecated="not deprecated">
  39015. <doc>
  39016. <![CDATA[Number of processed map records.
  39017. @see SkipBadRecords#getAutoIncrMapperProcCount(Configuration)]]>
  39018. </doc>
  39019. </field>
  39020. <field name="COUNTER_REDUCE_PROCESSED_GROUPS" type="java.lang.String"
  39021. transient="false" volatile="false"
  39022. static="true" final="true" visibility="public"
  39023. deprecated="not deprecated">
  39024. <doc>
  39025. <![CDATA[Number of processed reduce groups.
  39026. @see SkipBadRecords#getAutoIncrReducerProcCount(Configuration)]]>
  39027. </doc>
  39028. </field>
  39029. <doc>
  39030. <![CDATA[Utility class for skip bad records functionality. It contains various
  39031. settings related to skipping of bad records.
  39032. <p>Hadoop provides an optional mode of execution in which the bad records
  39033. are detected and skipped in further attempts.
  39034. <p>This feature can be used when map/reduce tasks crashes deterministically on
  39035. certain input. This happens due to bugs in the map/reduce function. The usual
  39036. course would be to fix these bugs. But sometimes this is not possible;
  39037. perhaps the bug is in third party libraries for which the source code is
  39038. not available. Due to this, the task never reaches to completion even with
  39039. multiple attempts and complete data for that task is lost.</p>
  39040. <p>With this feature, only a small portion of data is lost surrounding
  39041. the bad record, which may be acceptable for some user applications.
  39042. see {@link SkipBadRecords#setMapperMaxSkipRecords(Configuration, long)}</p>
  39043. <p>The skipping mode gets kicked off after certain no of failures
  39044. see {@link SkipBadRecords#setAttemptsToStartSkipping(Configuration, int)}</p>
  39045. <p>In the skipping mode, the map/reduce task maintains the record range which
  39046. is getting processed at all times. Before giving the input to the
  39047. map/reduce function, it sends this record range to the Task tracker.
  39048. If task crashes, the Task tracker knows which one was the last reported
  39049. range. On further attempts that range get skipped.</p>]]>
  39050. </doc>
  39051. </class>
  39052. <!-- end class org.apache.hadoop.mapred.SkipBadRecords -->
  39053. <!-- start class org.apache.hadoop.mapred.TaskAttemptContext -->
  39054. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  39055. abstract="false"
  39056. static="false" final="false" visibility="public"
  39057. deprecated="Use {@link org.apache.hadoop.mapreduce.TaskAttemptContext}
  39058. instead.">
  39059. <method name="getTaskAttemptID" return="org.apache.hadoop.mapred.TaskAttemptID"
  39060. abstract="false" native="false" synchronized="false"
  39061. static="false" final="false" visibility="public"
  39062. deprecated="not deprecated">
  39063. <doc>
  39064. <![CDATA[Get the taskAttemptID.
  39065. @return TaskAttemptID]]>
  39066. </doc>
  39067. </method>
  39068. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  39069. abstract="false" native="false" synchronized="false"
  39070. static="false" final="false" visibility="public"
  39071. deprecated="not deprecated">
  39072. </method>
  39073. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  39074. abstract="false" native="false" synchronized="false"
  39075. static="false" final="false" visibility="public"
  39076. deprecated="not deprecated">
  39077. </method>
  39078. <method name="progress"
  39079. abstract="false" native="false" synchronized="false"
  39080. static="false" final="false" visibility="public"
  39081. deprecated="not deprecated">
  39082. </method>
  39083. <doc>
  39084. <![CDATA[@deprecated Use {@link org.apache.hadoop.mapreduce.TaskAttemptContext}
  39085. instead.]]>
  39086. </doc>
  39087. </class>
  39088. <!-- end class org.apache.hadoop.mapred.TaskAttemptContext -->
  39089. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  39090. <class name="TaskAttemptID" extends="org.apache.hadoop.mapreduce.TaskAttemptID"
  39091. abstract="false"
  39092. static="false" final="false" visibility="public"
  39093. deprecated="not deprecated">
  39094. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  39095. static="false" final="false" visibility="public"
  39096. deprecated="not deprecated">
  39097. <doc>
  39098. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  39099. @param taskId TaskID that this task belongs to
  39100. @param id the task attempt number]]>
  39101. </doc>
  39102. </constructor>
  39103. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  39104. static="false" final="false" visibility="public"
  39105. deprecated="not deprecated">
  39106. <doc>
  39107. <![CDATA[Constructs a TaskId object from given parts.
  39108. @param jtIdentifier jobTracker identifier
  39109. @param jobId job number
  39110. @param isMap whether the tip is a map
  39111. @param taskId taskId number
  39112. @param id the task attempt number]]>
  39113. </doc>
  39114. </constructor>
  39115. <constructor name="TaskAttemptID"
  39116. static="false" final="false" visibility="public"
  39117. deprecated="not deprecated">
  39118. </constructor>
  39119. <method name="downgrade" return="org.apache.hadoop.mapred.TaskAttemptID"
  39120. abstract="false" native="false" synchronized="false"
  39121. static="true" final="false" visibility="public"
  39122. deprecated="not deprecated">
  39123. <param name="old" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  39124. <doc>
  39125. <![CDATA[Downgrade a new TaskAttemptID to an old one
  39126. @param old the new id
  39127. @return either old or a new TaskAttemptID constructed to match old]]>
  39128. </doc>
  39129. </method>
  39130. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  39131. abstract="false" native="false" synchronized="false"
  39132. static="false" final="false" visibility="public"
  39133. deprecated="not deprecated">
  39134. </method>
  39135. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  39136. abstract="false" native="false" synchronized="false"
  39137. static="false" final="false" visibility="public"
  39138. deprecated="not deprecated">
  39139. </method>
  39140. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  39141. abstract="false" native="false" synchronized="false"
  39142. static="true" final="false" visibility="public"
  39143. deprecated="not deprecated">
  39144. <param name="in" type="java.io.DataInput"/>
  39145. <exception name="IOException" type="java.io.IOException"/>
  39146. </method>
  39147. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  39148. abstract="false" native="false" synchronized="false"
  39149. static="true" final="false" visibility="public"
  39150. deprecated="not deprecated">
  39151. <param name="str" type="java.lang.String"/>
  39152. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  39153. <doc>
  39154. <![CDATA[Construct a TaskAttemptID object from given string
  39155. @return constructed TaskAttemptID object or null if the given String is null
  39156. @throws IllegalArgumentException if the given string is malformed]]>
  39157. </doc>
  39158. </method>
  39159. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  39160. abstract="false" native="false" synchronized="false"
  39161. static="true" final="false" visibility="public"
  39162. deprecated="not deprecated">
  39163. <param name="jtIdentifier" type="java.lang.String"/>
  39164. <param name="jobId" type="java.lang.Integer"/>
  39165. <param name="isMap" type="java.lang.Boolean"/>
  39166. <param name="taskId" type="java.lang.Integer"/>
  39167. <param name="attemptId" type="java.lang.Integer"/>
  39168. <doc>
  39169. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  39170. be given null, in which case that part of the regex will be generic.
  39171. For example to obtain a regex matching <i>all task attempt IDs</i>
  39172. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  39173. map task</i>, we would use :
  39174. <pre>
  39175. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  39176. </pre>
  39177. which will return :
  39178. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  39179. @param jtIdentifier jobTracker identifier, or null
  39180. @param jobId job number, or null
  39181. @param isMap whether the tip is a map, or null
  39182. @param taskId taskId number, or null
  39183. @param attemptId the task attempt number, or null
  39184. @return a regex pattern matching TaskAttemptIDs]]>
  39185. </doc>
  39186. </method>
  39187. <doc>
  39188. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  39189. a task attempt. Each task attempt is one particular instance of a Map or
  39190. Reduce Task identified by its TaskID.
  39191. TaskAttemptID consists of 2 parts. First part is the
  39192. {@link TaskID}, that this TaskAttemptID belongs to.
  39193. Second part is the task attempt number. <br>
  39194. An example TaskAttemptID is :
  39195. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  39196. zeroth task attempt for the fifth map task in the third job
  39197. running at the jobtracker started at <code>200707121733</code>.
  39198. <p>
  39199. Applications should never construct or parse TaskAttemptID strings
  39200. , but rather use appropriate constructors or {@link #forName(String)}
  39201. method.
  39202. @see JobID
  39203. @see TaskID]]>
  39204. </doc>
  39205. </class>
  39206. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  39207. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  39208. <class name="TaskCompletionEvent" extends="java.lang.Object"
  39209. abstract="false"
  39210. static="false" final="false" visibility="public"
  39211. deprecated="not deprecated">
  39212. <implements name="org.apache.hadoop.io.Writable"/>
  39213. <constructor name="TaskCompletionEvent"
  39214. static="false" final="false" visibility="public"
  39215. deprecated="not deprecated">
  39216. <doc>
  39217. <![CDATA[Default constructor for Writable.]]>
  39218. </doc>
  39219. </constructor>
  39220. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  39221. static="false" final="false" visibility="public"
  39222. deprecated="not deprecated">
  39223. <doc>
  39224. <![CDATA[Constructor. eventId should be created externally and incremented
  39225. per event for each job.
  39226. @param eventId event id, event id should be unique and assigned in
  39227. incrementally, starting from 0.
  39228. @param taskId task id
  39229. @param status task's status
  39230. @param taskTrackerHttp task tracker's host:port for http.]]>
  39231. </doc>
  39232. </constructor>
  39233. <method name="getEventId" return="int"
  39234. abstract="false" native="false" synchronized="false"
  39235. static="false" final="false" visibility="public"
  39236. deprecated="not deprecated">
  39237. <doc>
  39238. <![CDATA[Returns event Id.
  39239. @return event id]]>
  39240. </doc>
  39241. </method>
  39242. <method name="getTaskId" return="java.lang.String"
  39243. abstract="false" native="false" synchronized="false"
  39244. static="false" final="false" visibility="public"
  39245. deprecated="use {@link #getTaskAttemptId()} instead.">
  39246. <doc>
  39247. <![CDATA[Returns task id.
  39248. @return task id
  39249. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  39250. </doc>
  39251. </method>
  39252. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  39253. abstract="false" native="false" synchronized="false"
  39254. static="false" final="false" visibility="public"
  39255. deprecated="not deprecated">
  39256. <doc>
  39257. <![CDATA[Returns task id.
  39258. @return task id]]>
  39259. </doc>
  39260. </method>
  39261. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  39262. abstract="false" native="false" synchronized="false"
  39263. static="false" final="false" visibility="public"
  39264. deprecated="not deprecated">
  39265. <doc>
  39266. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  39267. @return task tracker status]]>
  39268. </doc>
  39269. </method>
  39270. <method name="getTaskTrackerHttp" return="java.lang.String"
  39271. abstract="false" native="false" synchronized="false"
  39272. static="false" final="false" visibility="public"
  39273. deprecated="not deprecated">
  39274. <doc>
  39275. <![CDATA[http location of the tasktracker where this task ran.
  39276. @return http location of tasktracker user logs]]>
  39277. </doc>
  39278. </method>
  39279. <method name="getTaskRunTime" return="int"
  39280. abstract="false" native="false" synchronized="false"
  39281. static="false" final="false" visibility="public"
  39282. deprecated="not deprecated">
  39283. <doc>
  39284. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  39285. </doc>
  39286. </method>
  39287. <method name="setTaskRunTime"
  39288. abstract="false" native="false" synchronized="false"
  39289. static="false" final="false" visibility="public"
  39290. deprecated="not deprecated">
  39291. <param name="taskCompletionTime" type="int"/>
  39292. <doc>
  39293. <![CDATA[Set the task completion time
  39294. @param taskCompletionTime time (in millisec) the task took to complete]]>
  39295. </doc>
  39296. </method>
  39297. <method name="setEventId"
  39298. abstract="false" native="false" synchronized="false"
  39299. static="false" final="false" visibility="public"
  39300. deprecated="not deprecated">
  39301. <param name="eventId" type="int"/>
  39302. <doc>
  39303. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  39304. @param eventId]]>
  39305. </doc>
  39306. </method>
  39307. <method name="setTaskId"
  39308. abstract="false" native="false" synchronized="false"
  39309. static="false" final="false" visibility="public"
  39310. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  39311. <param name="taskId" type="java.lang.String"/>
  39312. <doc>
  39313. <![CDATA[Sets task id.
  39314. @param taskId
  39315. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  39316. </doc>
  39317. </method>
  39318. <method name="setTaskID"
  39319. abstract="false" native="false" synchronized="false"
  39320. static="false" final="false" visibility="public"
  39321. deprecated="not deprecated">
  39322. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  39323. <doc>
  39324. <![CDATA[Sets task id.
  39325. @param taskId]]>
  39326. </doc>
  39327. </method>
  39328. <method name="setTaskStatus"
  39329. abstract="false" native="false" synchronized="false"
  39330. static="false" final="false" visibility="public"
  39331. deprecated="not deprecated">
  39332. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  39333. <doc>
  39334. <![CDATA[Set task status.
  39335. @param status]]>
  39336. </doc>
  39337. </method>
  39338. <method name="setTaskTrackerHttp"
  39339. abstract="false" native="false" synchronized="false"
  39340. static="false" final="false" visibility="public"
  39341. deprecated="not deprecated">
  39342. <param name="taskTrackerHttp" type="java.lang.String"/>
  39343. <doc>
  39344. <![CDATA[Set task tracker http location.
  39345. @param taskTrackerHttp]]>
  39346. </doc>
  39347. </method>
  39348. <method name="toString" return="java.lang.String"
  39349. abstract="false" native="false" synchronized="false"
  39350. static="false" final="false" visibility="public"
  39351. deprecated="not deprecated">
  39352. </method>
  39353. <method name="equals" return="boolean"
  39354. abstract="false" native="false" synchronized="false"
  39355. static="false" final="false" visibility="public"
  39356. deprecated="not deprecated">
  39357. <param name="o" type="java.lang.Object"/>
  39358. </method>
  39359. <method name="hashCode" return="int"
  39360. abstract="false" native="false" synchronized="false"
  39361. static="false" final="false" visibility="public"
  39362. deprecated="not deprecated">
  39363. </method>
  39364. <method name="isMapTask" return="boolean"
  39365. abstract="false" native="false" synchronized="false"
  39366. static="false" final="false" visibility="public"
  39367. deprecated="not deprecated">
  39368. </method>
  39369. <method name="idWithinJob" return="int"
  39370. abstract="false" native="false" synchronized="false"
  39371. static="false" final="false" visibility="public"
  39372. deprecated="not deprecated">
  39373. </method>
  39374. <method name="write"
  39375. abstract="false" native="false" synchronized="false"
  39376. static="false" final="false" visibility="public"
  39377. deprecated="not deprecated">
  39378. <param name="out" type="java.io.DataOutput"/>
  39379. <exception name="IOException" type="java.io.IOException"/>
  39380. </method>
  39381. <method name="readFields"
  39382. abstract="false" native="false" synchronized="false"
  39383. static="false" final="false" visibility="public"
  39384. deprecated="not deprecated">
  39385. <param name="in" type="java.io.DataInput"/>
  39386. <exception name="IOException" type="java.io.IOException"/>
  39387. </method>
  39388. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  39389. transient="false" volatile="false"
  39390. static="true" final="true" visibility="public"
  39391. deprecated="not deprecated">
  39392. </field>
  39393. <doc>
  39394. <![CDATA[This is used to track task completion events on
  39395. job tracker.]]>
  39396. </doc>
  39397. </class>
  39398. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  39399. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  39400. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum"
  39401. abstract="false"
  39402. static="true" final="true" visibility="public"
  39403. deprecated="not deprecated">
  39404. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  39405. abstract="false" native="false" synchronized="false"
  39406. static="true" final="false" visibility="public"
  39407. deprecated="not deprecated">
  39408. </method>
  39409. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  39410. abstract="false" native="false" synchronized="false"
  39411. static="true" final="false" visibility="public"
  39412. deprecated="not deprecated">
  39413. <param name="name" type="java.lang.String"/>
  39414. </method>
  39415. <field name="FAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  39416. transient="false" volatile="false"
  39417. static="true" final="true" visibility="public"
  39418. deprecated="not deprecated">
  39419. </field>
  39420. <field name="KILLED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  39421. transient="false" volatile="false"
  39422. static="true" final="true" visibility="public"
  39423. deprecated="not deprecated">
  39424. </field>
  39425. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  39426. transient="false" volatile="false"
  39427. static="true" final="true" visibility="public"
  39428. deprecated="not deprecated">
  39429. </field>
  39430. <field name="OBSOLETE" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  39431. transient="false" volatile="false"
  39432. static="true" final="true" visibility="public"
  39433. deprecated="not deprecated">
  39434. </field>
  39435. <field name="TIPFAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  39436. transient="false" volatile="false"
  39437. static="true" final="true" visibility="public"
  39438. deprecated="not deprecated">
  39439. </field>
  39440. </class>
  39441. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  39442. <!-- start class org.apache.hadoop.mapred.TaskGraphServlet -->
  39443. <class name="TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  39444. abstract="false"
  39445. static="false" final="false" visibility="public"
  39446. deprecated="not deprecated">
  39447. <constructor name="TaskGraphServlet"
  39448. static="false" final="false" visibility="public"
  39449. deprecated="not deprecated">
  39450. </constructor>
  39451. <method name="doGet"
  39452. abstract="false" native="false" synchronized="false"
  39453. static="false" final="false" visibility="public"
  39454. deprecated="not deprecated">
  39455. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  39456. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  39457. <exception name="ServletException" type="javax.servlet.ServletException"/>
  39458. <exception name="IOException" type="java.io.IOException"/>
  39459. </method>
  39460. <field name="width" type="int"
  39461. transient="false" volatile="false"
  39462. static="true" final="true" visibility="public"
  39463. deprecated="not deprecated">
  39464. <doc>
  39465. <![CDATA[height of the graph w/o margins]]>
  39466. </doc>
  39467. </field>
  39468. <field name="height" type="int"
  39469. transient="false" volatile="false"
  39470. static="true" final="true" visibility="public"
  39471. deprecated="not deprecated">
  39472. <doc>
  39473. <![CDATA[height of the graph w/o margins]]>
  39474. </doc>
  39475. </field>
  39476. <field name="ymargin" type="int"
  39477. transient="false" volatile="false"
  39478. static="true" final="true" visibility="public"
  39479. deprecated="not deprecated">
  39480. <doc>
  39481. <![CDATA[margin space on y axis]]>
  39482. </doc>
  39483. </field>
  39484. <field name="xmargin" type="int"
  39485. transient="false" volatile="false"
  39486. static="true" final="true" visibility="public"
  39487. deprecated="not deprecated">
  39488. <doc>
  39489. <![CDATA[margin space on x axis]]>
  39490. </doc>
  39491. </field>
  39492. <doc>
  39493. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  39494. statuses]]>
  39495. </doc>
  39496. </class>
  39497. <!-- end class org.apache.hadoop.mapred.TaskGraphServlet -->
  39498. <!-- start class org.apache.hadoop.mapred.TaskID -->
  39499. <class name="TaskID" extends="org.apache.hadoop.mapreduce.TaskID"
  39500. abstract="false"
  39501. static="false" final="false" visibility="public"
  39502. deprecated="not deprecated">
  39503. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  39504. static="false" final="false" visibility="public"
  39505. deprecated="not deprecated">
  39506. <doc>
  39507. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  39508. @param jobId JobID that this tip belongs to
  39509. @param isMap whether the tip is a map
  39510. @param id the tip number]]>
  39511. </doc>
  39512. </constructor>
  39513. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  39514. static="false" final="false" visibility="public"
  39515. deprecated="not deprecated">
  39516. <doc>
  39517. <![CDATA[Constructs a TaskInProgressId object from given parts.
  39518. @param jtIdentifier jobTracker identifier
  39519. @param jobId job number
  39520. @param isMap whether the tip is a map
  39521. @param id the tip number]]>
  39522. </doc>
  39523. </constructor>
  39524. <constructor name="TaskID"
  39525. static="false" final="false" visibility="public"
  39526. deprecated="not deprecated">
  39527. </constructor>
  39528. <method name="downgrade" return="org.apache.hadoop.mapred.TaskID"
  39529. abstract="false" native="false" synchronized="false"
  39530. static="true" final="false" visibility="public"
  39531. deprecated="not deprecated">
  39532. <param name="old" type="org.apache.hadoop.mapreduce.TaskID"/>
  39533. <doc>
  39534. <![CDATA[Downgrade a new TaskID to an old one
  39535. @param old a new or old TaskID
  39536. @return either old or a new TaskID build to match old]]>
  39537. </doc>
  39538. </method>
  39539. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  39540. abstract="false" native="false" synchronized="false"
  39541. static="true" final="false" visibility="public"
  39542. deprecated="not deprecated">
  39543. <param name="in" type="java.io.DataInput"/>
  39544. <exception name="IOException" type="java.io.IOException"/>
  39545. </method>
  39546. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  39547. abstract="false" native="false" synchronized="false"
  39548. static="false" final="false" visibility="public"
  39549. deprecated="not deprecated">
  39550. </method>
  39551. <method name="getTaskIDsPattern" return="java.lang.String"
  39552. abstract="false" native="false" synchronized="false"
  39553. static="true" final="false" visibility="public"
  39554. deprecated="not deprecated">
  39555. <param name="jtIdentifier" type="java.lang.String"/>
  39556. <param name="jobId" type="java.lang.Integer"/>
  39557. <param name="isMap" type="java.lang.Boolean"/>
  39558. <param name="taskId" type="java.lang.Integer"/>
  39559. <doc>
  39560. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  39561. be given null, in which case that part of the regex will be generic.
  39562. For example to obtain a regex matching <i>the first map task</i>
  39563. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  39564. <pre>
  39565. TaskID.getTaskIDsPattern(null, null, true, 1);
  39566. </pre>
  39567. which will return :
  39568. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  39569. @param jtIdentifier jobTracker identifier, or null
  39570. @param jobId job number, or null
  39571. @param isMap whether the tip is a map, or null
  39572. @param taskId taskId number, or null
  39573. @return a regex pattern matching TaskIDs]]>
  39574. </doc>
  39575. </method>
  39576. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  39577. abstract="false" native="false" synchronized="false"
  39578. static="true" final="false" visibility="public"
  39579. deprecated="not deprecated">
  39580. <param name="str" type="java.lang.String"/>
  39581. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  39582. </method>
  39583. <doc>
  39584. <![CDATA[TaskID represents the immutable and unique identifier for
  39585. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  39586. execute the Map or Reduce Task, each of which are uniquely indentified by
  39587. their TaskAttemptID.
  39588. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  39589. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  39590. representing whether the task is a map task or a reduce task.
  39591. And the third part is the task number. <br>
  39592. An example TaskID is :
  39593. <code>task_200707121733_0003_m_000005</code> , which represents the
  39594. fifth map task in the third job running at the jobtracker
  39595. started at <code>200707121733</code>.
  39596. <p>
  39597. Applications should never construct or parse TaskID strings
  39598. , but rather use appropriate constructors or {@link #forName(String)}
  39599. method.
  39600. @see JobID
  39601. @see TaskAttemptID]]>
  39602. </doc>
  39603. </class>
  39604. <!-- end class org.apache.hadoop.mapred.TaskID -->
  39605. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  39606. <class name="TaskLog" extends="java.lang.Object"
  39607. abstract="false"
  39608. static="false" final="false" visibility="public"
  39609. deprecated="not deprecated">
  39610. <constructor name="TaskLog"
  39611. static="false" final="false" visibility="public"
  39612. deprecated="not deprecated">
  39613. </constructor>
  39614. <method name="getTaskLogFile" return="java.io.File"
  39615. abstract="false" native="false" synchronized="false"
  39616. static="true" final="false" visibility="public"
  39617. deprecated="not deprecated">
  39618. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  39619. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  39620. </method>
  39621. <method name="getRealTaskLogFileLocation" return="java.io.File"
  39622. abstract="false" native="false" synchronized="false"
  39623. static="true" final="false" visibility="public"
  39624. deprecated="not deprecated">
  39625. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  39626. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  39627. </method>
  39628. <method name="getIndexFile" return="java.io.File"
  39629. abstract="false" native="false" synchronized="false"
  39630. static="true" final="false" visibility="public"
  39631. deprecated="not deprecated">
  39632. <param name="taskid" type="java.lang.String"/>
  39633. </method>
  39634. <method name="getIndexFile" return="java.io.File"
  39635. abstract="false" native="false" synchronized="false"
  39636. static="true" final="false" visibility="public"
  39637. deprecated="not deprecated">
  39638. <param name="taskid" type="java.lang.String"/>
  39639. <param name="isCleanup" type="boolean"/>
  39640. </method>
  39641. <method name="syncLogs"
  39642. abstract="false" native="false" synchronized="true"
  39643. static="true" final="false" visibility="public"
  39644. deprecated="not deprecated">
  39645. <param name="firstTaskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  39646. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  39647. <exception name="IOException" type="java.io.IOException"/>
  39648. </method>
  39649. <method name="syncLogs"
  39650. abstract="false" native="false" synchronized="true"
  39651. static="true" final="false" visibility="public"
  39652. deprecated="not deprecated">
  39653. <param name="firstTaskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  39654. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  39655. <param name="isCleanup" type="boolean"/>
  39656. <exception name="IOException" type="java.io.IOException"/>
  39657. </method>
  39658. <method name="cleanup"
  39659. abstract="false" native="false" synchronized="true"
  39660. static="true" final="false" visibility="public"
  39661. deprecated="not deprecated">
  39662. <param name="logsRetainHours" type="int"/>
  39663. <exception name="IOException" type="java.io.IOException"/>
  39664. <doc>
  39665. <![CDATA[Purge old user logs.
  39666. @throws IOException]]>
  39667. </doc>
  39668. </method>
  39669. <method name="getTaskLogLength" return="long"
  39670. abstract="false" native="false" synchronized="false"
  39671. static="true" final="false" visibility="public"
  39672. deprecated="not deprecated">
  39673. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  39674. <doc>
  39675. <![CDATA[Get the desired maximum length of task's logs.
  39676. @param conf the job to look in
  39677. @return the number of bytes to cap the log files at]]>
  39678. </doc>
  39679. </method>
  39680. <method name="captureOutAndError" return="java.util.List"
  39681. abstract="false" native="false" synchronized="false"
  39682. static="true" final="false" visibility="public"
  39683. deprecated="not deprecated">
  39684. <param name="cmd" type="java.util.List"/>
  39685. <param name="stdoutFilename" type="java.io.File"/>
  39686. <param name="stderrFilename" type="java.io.File"/>
  39687. <param name="tailLength" type="long"/>
  39688. <exception name="IOException" type="java.io.IOException"/>
  39689. <doc>
  39690. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  39691. If the tailLength is 0, the entire output will be saved.
  39692. @param cmd The command and the arguments that should be run
  39693. @param stdoutFilename The filename that stdout should be saved to
  39694. @param stderrFilename The filename that stderr should be saved to
  39695. @param tailLength The length of the tail to be saved.
  39696. @return the modified command that should be run]]>
  39697. </doc>
  39698. </method>
  39699. <method name="captureOutAndError" return="java.util.List"
  39700. abstract="false" native="false" synchronized="false"
  39701. static="true" final="false" visibility="public"
  39702. deprecated="not deprecated">
  39703. <param name="setup" type="java.util.List"/>
  39704. <param name="cmd" type="java.util.List"/>
  39705. <param name="stdoutFilename" type="java.io.File"/>
  39706. <param name="stderrFilename" type="java.io.File"/>
  39707. <param name="tailLength" type="long"/>
  39708. <exception name="IOException" type="java.io.IOException"/>
  39709. <doc>
  39710. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  39711. Setup commands such as setting memory limit can be passed which
  39712. will be executed before exec.
  39713. If the tailLength is 0, the entire output will be saved.
  39714. @param setup The setup commands for the execed process.
  39715. @param cmd The command and the arguments that should be run
  39716. @param stdoutFilename The filename that stdout should be saved to
  39717. @param stderrFilename The filename that stderr should be saved to
  39718. @param tailLength The length of the tail to be saved.
  39719. @return the modified command that should be run]]>
  39720. </doc>
  39721. </method>
  39722. <method name="captureOutAndError" return="java.util.List"
  39723. abstract="false" native="false" synchronized="false"
  39724. static="true" final="false" visibility="public"
  39725. deprecated="not deprecated">
  39726. <param name="setup" type="java.util.List"/>
  39727. <param name="cmd" type="java.util.List"/>
  39728. <param name="stdoutFilename" type="java.io.File"/>
  39729. <param name="stderrFilename" type="java.io.File"/>
  39730. <param name="tailLength" type="long"/>
  39731. <param name="pidFileName" type="java.lang.String"/>
  39732. <exception name="IOException" type="java.io.IOException"/>
  39733. <doc>
  39734. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  39735. Setup commands such as setting memory limit can be passed which
  39736. will be executed before exec.
  39737. If the tailLength is 0, the entire output will be saved.
  39738. @param setup The setup commands for the execed process.
  39739. @param cmd The command and the arguments that should be run
  39740. @param stdoutFilename The filename that stdout should be saved to
  39741. @param stderrFilename The filename that stderr should be saved to
  39742. @param tailLength The length of the tail to be saved.
  39743. @param pidFileName The name of the pid-file
  39744. @return the modified command that should be run]]>
  39745. </doc>
  39746. </method>
  39747. <method name="addCommand" return="java.lang.String"
  39748. abstract="false" native="false" synchronized="false"
  39749. static="true" final="false" visibility="public"
  39750. deprecated="not deprecated">
  39751. <param name="cmd" type="java.util.List"/>
  39752. <param name="isExecutable" type="boolean"/>
  39753. <exception name="IOException" type="java.io.IOException"/>
  39754. <doc>
  39755. <![CDATA[Add quotes to each of the command strings and
  39756. return as a single string
  39757. @param cmd The command to be quoted
  39758. @param isExecutable makes shell path if the first
  39759. argument is executable
  39760. @return returns The quoted string.
  39761. @throws IOException]]>
  39762. </doc>
  39763. </method>
  39764. <method name="captureDebugOut" return="java.util.List"
  39765. abstract="false" native="false" synchronized="false"
  39766. static="true" final="false" visibility="public"
  39767. deprecated="not deprecated">
  39768. <param name="cmd" type="java.util.List"/>
  39769. <param name="debugoutFilename" type="java.io.File"/>
  39770. <exception name="IOException" type="java.io.IOException"/>
  39771. <doc>
  39772. <![CDATA[Wrap a command in a shell to capture debug script's
  39773. stdout and stderr to debugout.
  39774. @param cmd The command and the arguments that should be run
  39775. @param debugoutFilename The filename that stdout and stderr
  39776. should be saved to.
  39777. @return the modified command that should be run
  39778. @throws IOException]]>
  39779. </doc>
  39780. </method>
  39781. <doc>
  39782. <![CDATA[A simple logger to handle the task-specific user logs.
  39783. This class uses the system property <code>hadoop.log.dir</code>.]]>
  39784. </doc>
  39785. </class>
  39786. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  39787. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  39788. <class name="TaskLog.LogName" extends="java.lang.Enum"
  39789. abstract="false"
  39790. static="true" final="true" visibility="public"
  39791. deprecated="not deprecated">
  39792. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  39793. abstract="false" native="false" synchronized="false"
  39794. static="true" final="false" visibility="public"
  39795. deprecated="not deprecated">
  39796. </method>
  39797. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  39798. abstract="false" native="false" synchronized="false"
  39799. static="true" final="false" visibility="public"
  39800. deprecated="not deprecated">
  39801. <param name="name" type="java.lang.String"/>
  39802. </method>
  39803. <method name="toString" return="java.lang.String"
  39804. abstract="false" native="false" synchronized="false"
  39805. static="false" final="false" visibility="public"
  39806. deprecated="not deprecated">
  39807. </method>
  39808. <field name="STDOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  39809. transient="false" volatile="false"
  39810. static="true" final="true" visibility="public"
  39811. deprecated="not deprecated">
  39812. <doc>
  39813. <![CDATA[Log on the stdout of the task.]]>
  39814. </doc>
  39815. </field>
  39816. <field name="STDERR" type="org.apache.hadoop.mapred.TaskLog.LogName"
  39817. transient="false" volatile="false"
  39818. static="true" final="true" visibility="public"
  39819. deprecated="not deprecated">
  39820. <doc>
  39821. <![CDATA[Log on the stderr of the task.]]>
  39822. </doc>
  39823. </field>
  39824. <field name="SYSLOG" type="org.apache.hadoop.mapred.TaskLog.LogName"
  39825. transient="false" volatile="false"
  39826. static="true" final="true" visibility="public"
  39827. deprecated="not deprecated">
  39828. <doc>
  39829. <![CDATA[Log on the map-reduce system logs of the task.]]>
  39830. </doc>
  39831. </field>
  39832. <field name="PROFILE" type="org.apache.hadoop.mapred.TaskLog.LogName"
  39833. transient="false" volatile="false"
  39834. static="true" final="true" visibility="public"
  39835. deprecated="not deprecated">
  39836. <doc>
  39837. <![CDATA[The java profiler information.]]>
  39838. </doc>
  39839. </field>
  39840. <field name="DEBUGOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  39841. transient="false" volatile="false"
  39842. static="true" final="true" visibility="public"
  39843. deprecated="not deprecated">
  39844. <doc>
  39845. <![CDATA[Log the debug script's stdout]]>
  39846. </doc>
  39847. </field>
  39848. <doc>
  39849. <![CDATA[The filter for userlogs.]]>
  39850. </doc>
  39851. </class>
  39852. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  39853. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  39854. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  39855. abstract="false"
  39856. static="false" final="false" visibility="public"
  39857. deprecated="not deprecated">
  39858. <constructor name="TaskLogAppender"
  39859. static="false" final="false" visibility="public"
  39860. deprecated="not deprecated">
  39861. </constructor>
  39862. <method name="activateOptions"
  39863. abstract="false" native="false" synchronized="false"
  39864. static="false" final="false" visibility="public"
  39865. deprecated="not deprecated">
  39866. </method>
  39867. <method name="append"
  39868. abstract="false" native="false" synchronized="false"
  39869. static="false" final="false" visibility="public"
  39870. deprecated="not deprecated">
  39871. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  39872. </method>
  39873. <method name="flush"
  39874. abstract="false" native="false" synchronized="false"
  39875. static="false" final="false" visibility="public"
  39876. deprecated="not deprecated">
  39877. </method>
  39878. <method name="close"
  39879. abstract="false" native="false" synchronized="true"
  39880. static="false" final="false" visibility="public"
  39881. deprecated="not deprecated">
  39882. </method>
  39883. <method name="getTaskId" return="java.lang.String"
  39884. abstract="false" native="false" synchronized="false"
  39885. static="false" final="false" visibility="public"
  39886. deprecated="not deprecated">
  39887. <doc>
  39888. <![CDATA[Getter/Setter methods for log4j.]]>
  39889. </doc>
  39890. </method>
  39891. <method name="setTaskId"
  39892. abstract="false" native="false" synchronized="false"
  39893. static="false" final="false" visibility="public"
  39894. deprecated="not deprecated">
  39895. <param name="taskId" type="java.lang.String"/>
  39896. </method>
  39897. <method name="getTotalLogFileSize" return="long"
  39898. abstract="false" native="false" synchronized="false"
  39899. static="false" final="false" visibility="public"
  39900. deprecated="not deprecated">
  39901. </method>
  39902. <method name="setTotalLogFileSize"
  39903. abstract="false" native="false" synchronized="false"
  39904. static="false" final="false" visibility="public"
  39905. deprecated="not deprecated">
  39906. <param name="logSize" type="long"/>
  39907. </method>
  39908. <doc>
  39909. <![CDATA[A simple log4j-appender for the task child's
  39910. map-reduce system logs.]]>
  39911. </doc>
  39912. </class>
  39913. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  39914. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  39915. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  39916. abstract="false"
  39917. static="false" final="false" visibility="public"
  39918. deprecated="not deprecated">
  39919. <constructor name="TaskLogServlet"
  39920. static="false" final="false" visibility="public"
  39921. deprecated="not deprecated">
  39922. </constructor>
  39923. <method name="getTaskLogUrl" return="java.lang.String"
  39924. abstract="false" native="false" synchronized="false"
  39925. static="true" final="false" visibility="public"
  39926. deprecated="not deprecated">
  39927. <param name="taskTrackerHostName" type="java.lang.String"/>
  39928. <param name="httpPort" type="java.lang.String"/>
  39929. <param name="taskAttemptID" type="java.lang.String"/>
  39930. <doc>
  39931. <![CDATA[Construct the taskLogUrl
  39932. @param taskTrackerHostName
  39933. @param httpPort
  39934. @param taskAttemptID
  39935. @return the taskLogUrl]]>
  39936. </doc>
  39937. </method>
  39938. <method name="doGet"
  39939. abstract="false" native="false" synchronized="false"
  39940. static="false" final="false" visibility="public"
  39941. deprecated="not deprecated">
  39942. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  39943. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  39944. <exception name="ServletException" type="javax.servlet.ServletException"/>
  39945. <exception name="IOException" type="java.io.IOException"/>
  39946. <doc>
  39947. <![CDATA[Get the logs via http.]]>
  39948. </doc>
  39949. </method>
  39950. <doc>
  39951. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  39952. </doc>
  39953. </class>
  39954. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  39955. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  39956. <class name="TaskReport" extends="java.lang.Object"
  39957. abstract="false"
  39958. static="false" final="false" visibility="public"
  39959. deprecated="not deprecated">
  39960. <implements name="org.apache.hadoop.io.Writable"/>
  39961. <constructor name="TaskReport"
  39962. static="false" final="false" visibility="public"
  39963. deprecated="not deprecated">
  39964. </constructor>
  39965. <method name="getTaskId" return="java.lang.String"
  39966. abstract="false" native="false" synchronized="false"
  39967. static="false" final="false" visibility="public"
  39968. deprecated="use {@link #getTaskID()} instead">
  39969. <doc>
  39970. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  39971. </doc>
  39972. </method>
  39973. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  39974. abstract="false" native="false" synchronized="false"
  39975. static="false" final="false" visibility="public"
  39976. deprecated="not deprecated">
  39977. <doc>
  39978. <![CDATA[The id of the task.]]>
  39979. </doc>
  39980. </method>
  39981. <method name="getProgress" return="float"
  39982. abstract="false" native="false" synchronized="false"
  39983. static="false" final="false" visibility="public"
  39984. deprecated="not deprecated">
  39985. <doc>
  39986. <![CDATA[The amount completed, between zero and one.]]>
  39987. </doc>
  39988. </method>
  39989. <method name="getState" return="java.lang.String"
  39990. abstract="false" native="false" synchronized="false"
  39991. static="false" final="false" visibility="public"
  39992. deprecated="not deprecated">
  39993. <doc>
  39994. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  39995. </doc>
  39996. </method>
  39997. <method name="getDiagnostics" return="java.lang.String[]"
  39998. abstract="false" native="false" synchronized="false"
  39999. static="false" final="false" visibility="public"
  40000. deprecated="not deprecated">
  40001. <doc>
  40002. <![CDATA[A list of error messages.]]>
  40003. </doc>
  40004. </method>
  40005. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  40006. abstract="false" native="false" synchronized="false"
  40007. static="false" final="false" visibility="public"
  40008. deprecated="not deprecated">
  40009. <doc>
  40010. <![CDATA[A table of counters.]]>
  40011. </doc>
  40012. </method>
  40013. <method name="getCurrentStatus" return="org.apache.hadoop.mapred.TIPStatus"
  40014. abstract="false" native="false" synchronized="false"
  40015. static="false" final="false" visibility="public"
  40016. deprecated="not deprecated">
  40017. <doc>
  40018. <![CDATA[The current status]]>
  40019. </doc>
  40020. </method>
  40021. <method name="getFinishTime" return="long"
  40022. abstract="false" native="false" synchronized="false"
  40023. static="false" final="false" visibility="public"
  40024. deprecated="not deprecated">
  40025. <doc>
  40026. <![CDATA[Get finish time of task.
  40027. @return 0, if finish time was not set else returns finish time.]]>
  40028. </doc>
  40029. </method>
  40030. <method name="getStartTime" return="long"
  40031. abstract="false" native="false" synchronized="false"
  40032. static="false" final="false" visibility="public"
  40033. deprecated="not deprecated">
  40034. <doc>
  40035. <![CDATA[Get start time of task.
  40036. @return 0 if start time was not set, else start time.]]>
  40037. </doc>
  40038. </method>
  40039. <method name="setSuccessfulAttempt"
  40040. abstract="false" native="false" synchronized="false"
  40041. static="false" final="false" visibility="public"
  40042. deprecated="not deprecated">
  40043. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  40044. <doc>
  40045. <![CDATA[set successful attempt ID of the task.]]>
  40046. </doc>
  40047. </method>
  40048. <method name="getSuccessfulTaskAttempt" return="org.apache.hadoop.mapred.TaskAttemptID"
  40049. abstract="false" native="false" synchronized="false"
  40050. static="false" final="false" visibility="public"
  40051. deprecated="not deprecated">
  40052. <doc>
  40053. <![CDATA[Get the attempt ID that took this task to completion]]>
  40054. </doc>
  40055. </method>
  40056. <method name="setRunningTaskAttempts"
  40057. abstract="false" native="false" synchronized="false"
  40058. static="false" final="false" visibility="public"
  40059. deprecated="not deprecated">
  40060. <param name="runningAttempts" type="java.util.Collection"/>
  40061. <doc>
  40062. <![CDATA[set running attempt(s) of the task.]]>
  40063. </doc>
  40064. </method>
  40065. <method name="getRunningTaskAttempts" return="java.util.Collection"
  40066. abstract="false" native="false" synchronized="false"
  40067. static="false" final="false" visibility="public"
  40068. deprecated="not deprecated">
  40069. <doc>
  40070. <![CDATA[Get the running task attempt IDs for this task]]>
  40071. </doc>
  40072. </method>
  40073. <method name="equals" return="boolean"
  40074. abstract="false" native="false" synchronized="false"
  40075. static="false" final="false" visibility="public"
  40076. deprecated="not deprecated">
  40077. <param name="o" type="java.lang.Object"/>
  40078. </method>
  40079. <method name="hashCode" return="int"
  40080. abstract="false" native="false" synchronized="false"
  40081. static="false" final="false" visibility="public"
  40082. deprecated="not deprecated">
  40083. </method>
  40084. <method name="write"
  40085. abstract="false" native="false" synchronized="false"
  40086. static="false" final="false" visibility="public"
  40087. deprecated="not deprecated">
  40088. <param name="out" type="java.io.DataOutput"/>
  40089. <exception name="IOException" type="java.io.IOException"/>
  40090. </method>
  40091. <method name="readFields"
  40092. abstract="false" native="false" synchronized="false"
  40093. static="false" final="false" visibility="public"
  40094. deprecated="not deprecated">
  40095. <param name="in" type="java.io.DataInput"/>
  40096. <exception name="IOException" type="java.io.IOException"/>
  40097. </method>
  40098. <doc>
  40099. <![CDATA[A report on the state of a task.]]>
  40100. </doc>
  40101. </class>
  40102. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  40103. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  40104. <class name="TaskTracker" extends="java.lang.Object"
  40105. abstract="false"
  40106. static="false" final="false" visibility="public"
  40107. deprecated="not deprecated">
  40108. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  40109. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  40110. <implements name="java.lang.Runnable"/>
  40111. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  40112. static="false" final="false" visibility="public"
  40113. deprecated="not deprecated">
  40114. <exception name="IOException" type="java.io.IOException"/>
  40115. <doc>
  40116. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  40117. </doc>
  40118. </constructor>
  40119. <method name="getTaskTrackerInstrumentation" return="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  40120. abstract="false" native="false" synchronized="false"
  40121. static="false" final="false" visibility="public"
  40122. deprecated="not deprecated">
  40123. </method>
  40124. <method name="getProtocolVersion" return="long"
  40125. abstract="false" native="false" synchronized="false"
  40126. static="false" final="false" visibility="public"
  40127. deprecated="not deprecated">
  40128. <param name="protocol" type="java.lang.String"/>
  40129. <param name="clientVersion" type="long"/>
  40130. <exception name="IOException" type="java.io.IOException"/>
  40131. </method>
  40132. <method name="getInstrumentationClass" return="java.lang.Class"
  40133. abstract="false" native="false" synchronized="false"
  40134. static="true" final="false" visibility="public"
  40135. deprecated="not deprecated">
  40136. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40137. </method>
  40138. <method name="setInstrumentationClass"
  40139. abstract="false" native="false" synchronized="false"
  40140. static="true" final="false" visibility="public"
  40141. deprecated="not deprecated">
  40142. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40143. <param name="t" type="java.lang.Class"/>
  40144. </method>
  40145. <method name="cleanupStorage"
  40146. abstract="false" native="false" synchronized="false"
  40147. static="false" final="false" visibility="public"
  40148. deprecated="not deprecated">
  40149. <exception name="IOException" type="java.io.IOException"/>
  40150. <doc>
  40151. <![CDATA[Removes all contents of temporary storage. Called upon
  40152. startup, to remove any leftovers from previous run.]]>
  40153. </doc>
  40154. </method>
  40155. <method name="shutdown"
  40156. abstract="false" native="false" synchronized="true"
  40157. static="false" final="false" visibility="public"
  40158. deprecated="not deprecated">
  40159. <exception name="IOException" type="java.io.IOException"/>
  40160. </method>
  40161. <method name="close"
  40162. abstract="false" native="false" synchronized="true"
  40163. static="false" final="false" visibility="public"
  40164. deprecated="not deprecated">
  40165. <exception name="IOException" type="java.io.IOException"/>
  40166. <doc>
  40167. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  40168. any running tasks or threads, and cleanup disk space. A new TaskTracker
  40169. within the same process space might be restarted, so everything must be
  40170. clean.]]>
  40171. </doc>
  40172. </method>
  40173. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  40174. abstract="false" native="false" synchronized="false"
  40175. static="false" final="false" visibility="public"
  40176. deprecated="not deprecated">
  40177. <doc>
  40178. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  40179. for locating remote files.]]>
  40180. </doc>
  40181. </method>
  40182. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  40183. abstract="false" native="false" synchronized="true"
  40184. static="false" final="false" visibility="public"
  40185. deprecated="not deprecated">
  40186. <doc>
  40187. <![CDATA[Return the port at which the tasktracker bound to]]>
  40188. </doc>
  40189. </method>
  40190. <method name="getJvmManagerInstance" return="org.apache.hadoop.mapred.JvmManager"
  40191. abstract="false" native="false" synchronized="false"
  40192. static="false" final="false" visibility="public"
  40193. deprecated="not deprecated">
  40194. </method>
  40195. <method name="run"
  40196. abstract="false" native="false" synchronized="false"
  40197. static="false" final="false" visibility="public"
  40198. deprecated="not deprecated">
  40199. <doc>
  40200. <![CDATA[The server retry loop.
  40201. This while-loop attempts to connect to the JobTracker. It only
  40202. loops when the old TaskTracker has gone bad (its state is
  40203. stale somehow) and we need to reinitialize everything.]]>
  40204. </doc>
  40205. </method>
  40206. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  40207. abstract="false" native="false" synchronized="true"
  40208. static="false" final="false" visibility="public"
  40209. deprecated="not deprecated">
  40210. <param name="jvmId" type="org.apache.hadoop.mapred.JVMId"/>
  40211. <exception name="IOException" type="java.io.IOException"/>
  40212. <doc>
  40213. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  40214. </doc>
  40215. </method>
  40216. <method name="statusUpdate" return="boolean"
  40217. abstract="false" native="false" synchronized="true"
  40218. static="false" final="false" visibility="public"
  40219. deprecated="not deprecated">
  40220. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  40221. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  40222. <exception name="IOException" type="java.io.IOException"/>
  40223. <doc>
  40224. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  40225. </doc>
  40226. </method>
  40227. <method name="reportDiagnosticInfo"
  40228. abstract="false" native="false" synchronized="true"
  40229. static="false" final="false" visibility="public"
  40230. deprecated="not deprecated">
  40231. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  40232. <param name="info" type="java.lang.String"/>
  40233. <exception name="IOException" type="java.io.IOException"/>
  40234. <doc>
  40235. <![CDATA[Called when the task dies before completion, and we want to report back
  40236. diagnostic info]]>
  40237. </doc>
  40238. </method>
  40239. <method name="reportNextRecordRange"
  40240. abstract="false" native="false" synchronized="true"
  40241. static="false" final="false" visibility="public"
  40242. deprecated="not deprecated">
  40243. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  40244. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  40245. <exception name="IOException" type="java.io.IOException"/>
  40246. </method>
  40247. <method name="ping" return="boolean"
  40248. abstract="false" native="false" synchronized="true"
  40249. static="false" final="false" visibility="public"
  40250. deprecated="not deprecated">
  40251. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  40252. <exception name="IOException" type="java.io.IOException"/>
  40253. <doc>
  40254. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  40255. </doc>
  40256. </method>
  40257. <method name="commitPending"
  40258. abstract="false" native="false" synchronized="true"
  40259. static="false" final="false" visibility="public"
  40260. deprecated="not deprecated">
  40261. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  40262. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  40263. <exception name="IOException" type="java.io.IOException"/>
  40264. <doc>
  40265. <![CDATA[Task is reporting that it is in commit_pending
  40266. and it is waiting for the commit Response]]>
  40267. </doc>
  40268. </method>
  40269. <method name="canCommit" return="boolean"
  40270. abstract="false" native="false" synchronized="true"
  40271. static="false" final="false" visibility="public"
  40272. deprecated="not deprecated">
  40273. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  40274. <doc>
  40275. <![CDATA[Child checking whether it can commit]]>
  40276. </doc>
  40277. </method>
  40278. <method name="done"
  40279. abstract="false" native="false" synchronized="true"
  40280. static="false" final="false" visibility="public"
  40281. deprecated="not deprecated">
  40282. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  40283. <exception name="IOException" type="java.io.IOException"/>
  40284. <doc>
  40285. <![CDATA[The task is done.]]>
  40286. </doc>
  40287. </method>
  40288. <method name="shuffleError"
  40289. abstract="false" native="false" synchronized="true"
  40290. static="false" final="false" visibility="public"
  40291. deprecated="not deprecated">
  40292. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  40293. <param name="message" type="java.lang.String"/>
  40294. <exception name="IOException" type="java.io.IOException"/>
  40295. <doc>
  40296. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  40297. </doc>
  40298. </method>
  40299. <method name="fsError"
  40300. abstract="false" native="false" synchronized="true"
  40301. static="false" final="false" visibility="public"
  40302. deprecated="not deprecated">
  40303. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  40304. <param name="message" type="java.lang.String"/>
  40305. <exception name="IOException" type="java.io.IOException"/>
  40306. <doc>
  40307. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  40308. </doc>
  40309. </method>
  40310. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  40311. abstract="false" native="false" synchronized="true"
  40312. static="false" final="false" visibility="public"
  40313. deprecated="not deprecated">
  40314. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  40315. <param name="fromEventId" type="int"/>
  40316. <param name="maxLocs" type="int"/>
  40317. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  40318. <exception name="IOException" type="java.io.IOException"/>
  40319. </method>
  40320. <method name="mapOutputLost"
  40321. abstract="false" native="false" synchronized="true"
  40322. static="false" final="false" visibility="public"
  40323. deprecated="not deprecated">
  40324. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  40325. <param name="errorMsg" type="java.lang.String"/>
  40326. <exception name="IOException" type="java.io.IOException"/>
  40327. <doc>
  40328. <![CDATA[A completed map task's output has been lost.]]>
  40329. </doc>
  40330. </method>
  40331. <method name="isIdle" return="boolean"
  40332. abstract="false" native="false" synchronized="true"
  40333. static="false" final="false" visibility="public"
  40334. deprecated="not deprecated">
  40335. <doc>
  40336. <![CDATA[Is this task tracker idle?
  40337. @return has this task tracker finished and cleaned up all of its tasks?]]>
  40338. </doc>
  40339. </method>
  40340. <method name="main"
  40341. abstract="false" native="false" synchronized="false"
  40342. static="true" final="false" visibility="public"
  40343. deprecated="not deprecated">
  40344. <param name="argv" type="java.lang.String[]"/>
  40345. <exception name="Exception" type="java.lang.Exception"/>
  40346. <doc>
  40347. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  40348. </doc>
  40349. </method>
  40350. <method name="isTaskMemoryManagerEnabled" return="boolean"
  40351. abstract="false" native="false" synchronized="false"
  40352. static="false" final="false" visibility="public"
  40353. deprecated="not deprecated">
  40354. <doc>
  40355. <![CDATA[Is the TaskMemoryManager Enabled on this system?
  40356. @return true if enabled, false otherwise.]]>
  40357. </doc>
  40358. </method>
  40359. <method name="getTaskMemoryManager" return="org.apache.hadoop.mapred.TaskMemoryManagerThread"
  40360. abstract="false" native="false" synchronized="false"
  40361. static="false" final="false" visibility="public"
  40362. deprecated="not deprecated">
  40363. </method>
  40364. <field name="LOG" type="org.apache.commons.logging.Log"
  40365. transient="false" volatile="false"
  40366. static="true" final="true" visibility="public"
  40367. deprecated="not deprecated">
  40368. </field>
  40369. <field name="MR_CLIENTTRACE_FORMAT" type="java.lang.String"
  40370. transient="false" volatile="false"
  40371. static="true" final="true" visibility="public"
  40372. deprecated="not deprecated">
  40373. </field>
  40374. <field name="ClientTraceLog" type="org.apache.commons.logging.Log"
  40375. transient="false" volatile="false"
  40376. static="true" final="true" visibility="public"
  40377. deprecated="not deprecated">
  40378. </field>
  40379. <doc>
  40380. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  40381. in a networked environment. It contacts the JobTracker
  40382. for Task assignments and reporting results.]]>
  40383. </doc>
  40384. </class>
  40385. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  40386. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  40387. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  40388. abstract="false"
  40389. static="true" final="false" visibility="public"
  40390. deprecated="not deprecated">
  40391. <constructor name="TaskTracker.MapOutputServlet"
  40392. static="false" final="false" visibility="public"
  40393. deprecated="not deprecated">
  40394. </constructor>
  40395. <method name="doGet"
  40396. abstract="false" native="false" synchronized="false"
  40397. static="false" final="false" visibility="public"
  40398. deprecated="not deprecated">
  40399. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  40400. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  40401. <exception name="ServletException" type="javax.servlet.ServletException"/>
  40402. <exception name="IOException" type="java.io.IOException"/>
  40403. </method>
  40404. <doc>
  40405. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  40406. to other nodes.]]>
  40407. </doc>
  40408. </class>
  40409. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  40410. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  40411. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  40412. abstract="false"
  40413. static="false" final="false" visibility="public"
  40414. deprecated="Use {@link org.apache.hadoop.mapreduce.lib.input.TextInputFormat}
  40415. instead.">
  40416. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  40417. <constructor name="TextInputFormat"
  40418. static="false" final="false" visibility="public"
  40419. deprecated="not deprecated">
  40420. </constructor>
  40421. <method name="configure"
  40422. abstract="false" native="false" synchronized="false"
  40423. static="false" final="false" visibility="public"
  40424. deprecated="not deprecated">
  40425. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  40426. </method>
  40427. <method name="isSplitable" return="boolean"
  40428. abstract="false" native="false" synchronized="false"
  40429. static="false" final="false" visibility="protected"
  40430. deprecated="not deprecated">
  40431. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  40432. <param name="file" type="org.apache.hadoop.fs.Path"/>
  40433. </method>
  40434. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  40435. abstract="false" native="false" synchronized="false"
  40436. static="false" final="false" visibility="public"
  40437. deprecated="not deprecated">
  40438. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  40439. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  40440. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  40441. <exception name="IOException" type="java.io.IOException"/>
  40442. </method>
  40443. <doc>
  40444. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  40445. Either linefeed or carriage-return are used to signal end of line. Keys are
  40446. the position in the file, and values are the line of text..
  40447. @deprecated Use {@link org.apache.hadoop.mapreduce.lib.input.TextInputFormat}
  40448. instead.]]>
  40449. </doc>
  40450. </class>
  40451. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  40452. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  40453. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  40454. abstract="false"
  40455. static="false" final="false" visibility="public"
  40456. deprecated="Use
  40457. {@link org.apache.hadoop.mapreduce.lib.output.TextOutputFormat} instead.">
  40458. <constructor name="TextOutputFormat"
  40459. static="false" final="false" visibility="public"
  40460. deprecated="not deprecated">
  40461. </constructor>
  40462. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  40463. abstract="false" native="false" synchronized="false"
  40464. static="false" final="false" visibility="public"
  40465. deprecated="not deprecated">
  40466. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  40467. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  40468. <param name="name" type="java.lang.String"/>
  40469. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  40470. <exception name="IOException" type="java.io.IOException"/>
  40471. </method>
  40472. <doc>
  40473. <![CDATA[An {@link OutputFormat} that writes plain text files.
  40474. @deprecated Use
  40475. {@link org.apache.hadoop.mapreduce.lib.output.TextOutputFormat} instead.]]>
  40476. </doc>
  40477. </class>
  40478. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  40479. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  40480. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  40481. abstract="false"
  40482. static="true" final="false" visibility="protected"
  40483. deprecated="not deprecated">
  40484. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  40485. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  40486. static="false" final="false" visibility="public"
  40487. deprecated="not deprecated">
  40488. </constructor>
  40489. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  40490. static="false" final="false" visibility="public"
  40491. deprecated="not deprecated">
  40492. </constructor>
  40493. <method name="write"
  40494. abstract="false" native="false" synchronized="true"
  40495. static="false" final="false" visibility="public"
  40496. deprecated="not deprecated">
  40497. <param name="key" type="java.lang.Object"/>
  40498. <param name="value" type="java.lang.Object"/>
  40499. <exception name="IOException" type="java.io.IOException"/>
  40500. </method>
  40501. <method name="close"
  40502. abstract="false" native="false" synchronized="true"
  40503. static="false" final="false" visibility="public"
  40504. deprecated="not deprecated">
  40505. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  40506. <exception name="IOException" type="java.io.IOException"/>
  40507. </method>
  40508. <field name="out" type="java.io.DataOutputStream"
  40509. transient="false" volatile="false"
  40510. static="false" final="false" visibility="protected"
  40511. deprecated="not deprecated">
  40512. </field>
  40513. </class>
  40514. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  40515. <!-- start class org.apache.hadoop.mapred.TIPStatus -->
  40516. <class name="TIPStatus" extends="java.lang.Enum"
  40517. abstract="false"
  40518. static="false" final="true" visibility="public"
  40519. deprecated="not deprecated">
  40520. <method name="values" return="org.apache.hadoop.mapred.TIPStatus[]"
  40521. abstract="false" native="false" synchronized="false"
  40522. static="true" final="false" visibility="public"
  40523. deprecated="not deprecated">
  40524. </method>
  40525. <method name="valueOf" return="org.apache.hadoop.mapred.TIPStatus"
  40526. abstract="false" native="false" synchronized="false"
  40527. static="true" final="false" visibility="public"
  40528. deprecated="not deprecated">
  40529. <param name="name" type="java.lang.String"/>
  40530. </method>
  40531. <field name="PENDING" type="org.apache.hadoop.mapred.TIPStatus"
  40532. transient="false" volatile="false"
  40533. static="true" final="true" visibility="public"
  40534. deprecated="not deprecated">
  40535. </field>
  40536. <field name="RUNNING" type="org.apache.hadoop.mapred.TIPStatus"
  40537. transient="false" volatile="false"
  40538. static="true" final="true" visibility="public"
  40539. deprecated="not deprecated">
  40540. </field>
  40541. <field name="COMPLETE" type="org.apache.hadoop.mapred.TIPStatus"
  40542. transient="false" volatile="false"
  40543. static="true" final="true" visibility="public"
  40544. deprecated="not deprecated">
  40545. </field>
  40546. <field name="KILLED" type="org.apache.hadoop.mapred.TIPStatus"
  40547. transient="false" volatile="false"
  40548. static="true" final="true" visibility="public"
  40549. deprecated="not deprecated">
  40550. </field>
  40551. <field name="FAILED" type="org.apache.hadoop.mapred.TIPStatus"
  40552. transient="false" volatile="false"
  40553. static="true" final="true" visibility="public"
  40554. deprecated="not deprecated">
  40555. </field>
  40556. <doc>
  40557. <![CDATA[The states of a {@link TaskInProgress} as seen by the JobTracker.]]>
  40558. </doc>
  40559. </class>
  40560. <!-- end class org.apache.hadoop.mapred.TIPStatus -->
  40561. </package>
  40562. <package name="org.apache.hadoop.mapred.jobcontrol">
  40563. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  40564. <class name="Job" extends="java.lang.Object"
  40565. abstract="false"
  40566. static="false" final="false" visibility="public"
  40567. deprecated="not deprecated">
  40568. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList"
  40569. static="false" final="false" visibility="public"
  40570. deprecated="not deprecated">
  40571. <exception name="IOException" type="java.io.IOException"/>
  40572. <doc>
  40573. <![CDATA[Construct a job.
  40574. @param jobConf a mapred job configuration representing a job to be executed.
  40575. @param dependingJobs an array of jobs the current job depends on]]>
  40576. </doc>
  40577. </constructor>
  40578. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  40579. static="false" final="false" visibility="public"
  40580. deprecated="not deprecated">
  40581. <exception name="IOException" type="java.io.IOException"/>
  40582. <doc>
  40583. <![CDATA[Construct a job.
  40584. @param jobConf mapred job configuration representing a job to be executed.
  40585. @throws IOException]]>
  40586. </doc>
  40587. </constructor>
  40588. <method name="toString" return="java.lang.String"
  40589. abstract="false" native="false" synchronized="false"
  40590. static="false" final="false" visibility="public"
  40591. deprecated="not deprecated">
  40592. </method>
  40593. <method name="getJobName" return="java.lang.String"
  40594. abstract="false" native="false" synchronized="false"
  40595. static="false" final="false" visibility="public"
  40596. deprecated="not deprecated">
  40597. <doc>
  40598. <![CDATA[@return the job name of this job]]>
  40599. </doc>
  40600. </method>
  40601. <method name="setJobName"
  40602. abstract="false" native="false" synchronized="false"
  40603. static="false" final="false" visibility="public"
  40604. deprecated="not deprecated">
  40605. <param name="jobName" type="java.lang.String"/>
  40606. <doc>
  40607. <![CDATA[Set the job name for this job.
  40608. @param jobName the job name]]>
  40609. </doc>
  40610. </method>
  40611. <method name="getJobID" return="java.lang.String"
  40612. abstract="false" native="false" synchronized="false"
  40613. static="false" final="false" visibility="public"
  40614. deprecated="not deprecated">
  40615. <doc>
  40616. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  40617. </doc>
  40618. </method>
  40619. <method name="setJobID"
  40620. abstract="false" native="false" synchronized="false"
  40621. static="false" final="false" visibility="public"
  40622. deprecated="not deprecated">
  40623. <param name="id" type="java.lang.String"/>
  40624. <doc>
  40625. <![CDATA[Set the job ID for this job.
  40626. @param id the job ID]]>
  40627. </doc>
  40628. </method>
  40629. <method name="getMapredJobID" return="java.lang.String"
  40630. abstract="false" native="false" synchronized="false"
  40631. static="false" final="false" visibility="public"
  40632. deprecated="use {@link #getAssignedJobID()} instead">
  40633. <doc>
  40634. <![CDATA[@return the mapred ID of this job
  40635. @deprecated use {@link #getAssignedJobID()} instead]]>
  40636. </doc>
  40637. </method>
  40638. <method name="setMapredJobID"
  40639. abstract="false" native="false" synchronized="false"
  40640. static="false" final="false" visibility="public"
  40641. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  40642. <param name="mapredJobID" type="java.lang.String"/>
  40643. <doc>
  40644. <![CDATA[Set the mapred ID for this job.
  40645. @param mapredJobID the mapred job ID for this job.
  40646. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  40647. </doc>
  40648. </method>
  40649. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  40650. abstract="false" native="false" synchronized="false"
  40651. static="false" final="false" visibility="public"
  40652. deprecated="not deprecated">
  40653. <doc>
  40654. <![CDATA[@return the mapred ID of this job as assigned by the
  40655. mapred framework.]]>
  40656. </doc>
  40657. </method>
  40658. <method name="setAssignedJobID"
  40659. abstract="false" native="false" synchronized="false"
  40660. static="false" final="false" visibility="public"
  40661. deprecated="not deprecated">
  40662. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  40663. <doc>
  40664. <![CDATA[Set the mapred ID for this job as assigned by the
  40665. mapred framework.
  40666. @param mapredJobID the mapred job ID for this job.]]>
  40667. </doc>
  40668. </method>
  40669. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  40670. abstract="false" native="false" synchronized="false"
  40671. static="false" final="false" visibility="public"
  40672. deprecated="not deprecated">
  40673. <doc>
  40674. <![CDATA[@return the mapred job conf of this job]]>
  40675. </doc>
  40676. </method>
  40677. <method name="setJobConf"
  40678. abstract="false" native="false" synchronized="false"
  40679. static="false" final="false" visibility="public"
  40680. deprecated="not deprecated">
  40681. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  40682. <doc>
  40683. <![CDATA[Set the mapred job conf for this job.
  40684. @param jobConf the mapred job conf for this job.]]>
  40685. </doc>
  40686. </method>
  40687. <method name="getState" return="int"
  40688. abstract="false" native="false" synchronized="true"
  40689. static="false" final="false" visibility="public"
  40690. deprecated="not deprecated">
  40691. <doc>
  40692. <![CDATA[@return the state of this job]]>
  40693. </doc>
  40694. </method>
  40695. <method name="setState"
  40696. abstract="false" native="false" synchronized="true"
  40697. static="false" final="false" visibility="protected"
  40698. deprecated="not deprecated">
  40699. <param name="state" type="int"/>
  40700. <doc>
  40701. <![CDATA[Set the state for this job.
  40702. @param state the new state for this job.]]>
  40703. </doc>
  40704. </method>
  40705. <method name="getMessage" return="java.lang.String"
  40706. abstract="false" native="false" synchronized="false"
  40707. static="false" final="false" visibility="public"
  40708. deprecated="not deprecated">
  40709. <doc>
  40710. <![CDATA[@return the message of this job]]>
  40711. </doc>
  40712. </method>
  40713. <method name="setMessage"
  40714. abstract="false" native="false" synchronized="false"
  40715. static="false" final="false" visibility="public"
  40716. deprecated="not deprecated">
  40717. <param name="message" type="java.lang.String"/>
  40718. <doc>
  40719. <![CDATA[Set the message for this job.
  40720. @param message the message for this job.]]>
  40721. </doc>
  40722. </method>
  40723. <method name="getJobClient" return="org.apache.hadoop.mapred.JobClient"
  40724. abstract="false" native="false" synchronized="false"
  40725. static="false" final="false" visibility="public"
  40726. deprecated="not deprecated">
  40727. <doc>
  40728. <![CDATA[@return the job client of this job]]>
  40729. </doc>
  40730. </method>
  40731. <method name="getDependingJobs" return="java.util.ArrayList"
  40732. abstract="false" native="false" synchronized="false"
  40733. static="false" final="false" visibility="public"
  40734. deprecated="not deprecated">
  40735. <doc>
  40736. <![CDATA[@return the depending jobs of this job]]>
  40737. </doc>
  40738. </method>
  40739. <method name="addDependingJob" return="boolean"
  40740. abstract="false" native="false" synchronized="true"
  40741. static="false" final="false" visibility="public"
  40742. deprecated="not deprecated">
  40743. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  40744. <doc>
  40745. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  40746. is waiting to run, not during or afterwards.
  40747. @param dependingJob Job that this Job depends on.
  40748. @return <tt>true</tt> if the Job was added.]]>
  40749. </doc>
  40750. </method>
  40751. <method name="isCompleted" return="boolean"
  40752. abstract="false" native="false" synchronized="false"
  40753. static="false" final="false" visibility="public"
  40754. deprecated="not deprecated">
  40755. <doc>
  40756. <![CDATA[@return true if this job is in a complete state]]>
  40757. </doc>
  40758. </method>
  40759. <method name="isReady" return="boolean"
  40760. abstract="false" native="false" synchronized="false"
  40761. static="false" final="false" visibility="public"
  40762. deprecated="not deprecated">
  40763. <doc>
  40764. <![CDATA[@return true if this job is in READY state]]>
  40765. </doc>
  40766. </method>
  40767. <method name="submit"
  40768. abstract="false" native="false" synchronized="true"
  40769. static="false" final="false" visibility="protected"
  40770. deprecated="not deprecated">
  40771. <doc>
  40772. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  40773. is successful, FAILED otherwise.]]>
  40774. </doc>
  40775. </method>
  40776. <field name="SUCCESS" type="int"
  40777. transient="false" volatile="false"
  40778. static="true" final="true" visibility="public"
  40779. deprecated="not deprecated">
  40780. </field>
  40781. <field name="WAITING" type="int"
  40782. transient="false" volatile="false"
  40783. static="true" final="true" visibility="public"
  40784. deprecated="not deprecated">
  40785. </field>
  40786. <field name="RUNNING" type="int"
  40787. transient="false" volatile="false"
  40788. static="true" final="true" visibility="public"
  40789. deprecated="not deprecated">
  40790. </field>
  40791. <field name="READY" type="int"
  40792. transient="false" volatile="false"
  40793. static="true" final="true" visibility="public"
  40794. deprecated="not deprecated">
  40795. </field>
  40796. <field name="FAILED" type="int"
  40797. transient="false" volatile="false"
  40798. static="true" final="true" visibility="public"
  40799. deprecated="not deprecated">
  40800. </field>
  40801. <field name="DEPENDENT_FAILED" type="int"
  40802. transient="false" volatile="false"
  40803. static="true" final="true" visibility="public"
  40804. deprecated="not deprecated">
  40805. </field>
  40806. <doc>
  40807. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  40808. the states of the depending jobs and updates the state of this job.
  40809. A job starts in the WAITING state. If it does not have any depending jobs, or
  40810. all of the depending jobs are in SUCCESS state, then the job state will become
  40811. READY. If any depending jobs fail, the job will fail too.
  40812. When in READY state, the job can be submitted to Hadoop for execution, with
  40813. the state changing into RUNNING state. From RUNNING state, the job can get into
  40814. SUCCESS or FAILED state, depending the status of the job execution.]]>
  40815. </doc>
  40816. </class>
  40817. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  40818. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  40819. <class name="JobControl" extends="java.lang.Object"
  40820. abstract="false"
  40821. static="false" final="false" visibility="public"
  40822. deprecated="not deprecated">
  40823. <implements name="java.lang.Runnable"/>
  40824. <constructor name="JobControl" type="java.lang.String"
  40825. static="false" final="false" visibility="public"
  40826. deprecated="not deprecated">
  40827. <doc>
  40828. <![CDATA[Construct a job control for a group of jobs.
  40829. @param groupName a name identifying this group]]>
  40830. </doc>
  40831. </constructor>
  40832. <method name="getWaitingJobs" return="java.util.ArrayList"
  40833. abstract="false" native="false" synchronized="false"
  40834. static="false" final="false" visibility="public"
  40835. deprecated="not deprecated">
  40836. <doc>
  40837. <![CDATA[@return the jobs in the waiting state]]>
  40838. </doc>
  40839. </method>
  40840. <method name="getRunningJobs" return="java.util.ArrayList"
  40841. abstract="false" native="false" synchronized="false"
  40842. static="false" final="false" visibility="public"
  40843. deprecated="not deprecated">
  40844. <doc>
  40845. <![CDATA[@return the jobs in the running state]]>
  40846. </doc>
  40847. </method>
  40848. <method name="getReadyJobs" return="java.util.ArrayList"
  40849. abstract="false" native="false" synchronized="false"
  40850. static="false" final="false" visibility="public"
  40851. deprecated="not deprecated">
  40852. <doc>
  40853. <![CDATA[@return the jobs in the ready state]]>
  40854. </doc>
  40855. </method>
  40856. <method name="getSuccessfulJobs" return="java.util.ArrayList"
  40857. abstract="false" native="false" synchronized="false"
  40858. static="false" final="false" visibility="public"
  40859. deprecated="not deprecated">
  40860. <doc>
  40861. <![CDATA[@return the jobs in the success state]]>
  40862. </doc>
  40863. </method>
  40864. <method name="getFailedJobs" return="java.util.ArrayList"
  40865. abstract="false" native="false" synchronized="false"
  40866. static="false" final="false" visibility="public"
  40867. deprecated="not deprecated">
  40868. </method>
  40869. <method name="addJob" return="java.lang.String"
  40870. abstract="false" native="false" synchronized="true"
  40871. static="false" final="false" visibility="public"
  40872. deprecated="not deprecated">
  40873. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  40874. <doc>
  40875. <![CDATA[Add a new job.
  40876. @param aJob the new job]]>
  40877. </doc>
  40878. </method>
  40879. <method name="addJobs"
  40880. abstract="false" native="false" synchronized="false"
  40881. static="false" final="false" visibility="public"
  40882. deprecated="not deprecated">
  40883. <param name="jobs" type="java.util.Collection"/>
  40884. <doc>
  40885. <![CDATA[Add a collection of jobs
  40886. @param jobs]]>
  40887. </doc>
  40888. </method>
  40889. <method name="getState" return="int"
  40890. abstract="false" native="false" synchronized="false"
  40891. static="false" final="false" visibility="public"
  40892. deprecated="not deprecated">
  40893. <doc>
  40894. <![CDATA[@return the thread state]]>
  40895. </doc>
  40896. </method>
  40897. <method name="stop"
  40898. abstract="false" native="false" synchronized="false"
  40899. static="false" final="false" visibility="public"
  40900. deprecated="not deprecated">
  40901. <doc>
  40902. <![CDATA[set the thread state to STOPPING so that the
  40903. thread will stop when it wakes up.]]>
  40904. </doc>
  40905. </method>
  40906. <method name="suspend"
  40907. abstract="false" native="false" synchronized="false"
  40908. static="false" final="false" visibility="public"
  40909. deprecated="not deprecated">
  40910. <doc>
  40911. <![CDATA[suspend the running thread]]>
  40912. </doc>
  40913. </method>
  40914. <method name="resume"
  40915. abstract="false" native="false" synchronized="false"
  40916. static="false" final="false" visibility="public"
  40917. deprecated="not deprecated">
  40918. <doc>
  40919. <![CDATA[resume the suspended thread]]>
  40920. </doc>
  40921. </method>
  40922. <method name="allFinished" return="boolean"
  40923. abstract="false" native="false" synchronized="true"
  40924. static="false" final="false" visibility="public"
  40925. deprecated="not deprecated">
  40926. </method>
  40927. <method name="run"
  40928. abstract="false" native="false" synchronized="false"
  40929. static="false" final="false" visibility="public"
  40930. deprecated="not deprecated">
  40931. <doc>
  40932. <![CDATA[The main loop for the thread.
  40933. The loop does the following:
  40934. Check the states of the running jobs
  40935. Update the states of waiting jobs
  40936. Submit the jobs in ready state]]>
  40937. </doc>
  40938. </method>
  40939. <doc>
  40940. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  40941. the states of the jobs by placing them into different tables according to their
  40942. states.
  40943. This class provides APIs for the client app to add a job to the group and to get
  40944. the jobs in the group in different states. When a
  40945. job is added, an ID unique to the group is assigned to the job.
  40946. This class has a thread that submits jobs when they become ready, monitors the
  40947. states of the running jobs, and updates the states of jobs based on the state changes
  40948. of their depending jobs states. The class provides APIs for suspending/resuming
  40949. the thread,and for stopping the thread.]]>
  40950. </doc>
  40951. </class>
  40952. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  40953. </package>
  40954. <package name="org.apache.hadoop.mapred.join">
  40955. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  40956. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  40957. abstract="false"
  40958. static="false" final="false" visibility="public"
  40959. deprecated="not deprecated">
  40960. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  40961. <constructor name="ArrayListBackedIterator"
  40962. static="false" final="false" visibility="public"
  40963. deprecated="not deprecated">
  40964. </constructor>
  40965. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList"
  40966. static="false" final="false" visibility="public"
  40967. deprecated="not deprecated">
  40968. </constructor>
  40969. <method name="hasNext" return="boolean"
  40970. abstract="false" native="false" synchronized="false"
  40971. static="false" final="false" visibility="public"
  40972. deprecated="not deprecated">
  40973. </method>
  40974. <method name="next" return="boolean"
  40975. abstract="false" native="false" synchronized="false"
  40976. static="false" final="false" visibility="public"
  40977. deprecated="not deprecated">
  40978. <param name="val" type="org.apache.hadoop.io.Writable"/>
  40979. <exception name="IOException" type="java.io.IOException"/>
  40980. </method>
  40981. <method name="replay" return="boolean"
  40982. abstract="false" native="false" synchronized="false"
  40983. static="false" final="false" visibility="public"
  40984. deprecated="not deprecated">
  40985. <param name="val" type="org.apache.hadoop.io.Writable"/>
  40986. <exception name="IOException" type="java.io.IOException"/>
  40987. </method>
  40988. <method name="reset"
  40989. abstract="false" native="false" synchronized="false"
  40990. static="false" final="false" visibility="public"
  40991. deprecated="not deprecated">
  40992. </method>
  40993. <method name="add"
  40994. abstract="false" native="false" synchronized="false"
  40995. static="false" final="false" visibility="public"
  40996. deprecated="not deprecated">
  40997. <param name="item" type="org.apache.hadoop.io.Writable"/>
  40998. <exception name="IOException" type="java.io.IOException"/>
  40999. </method>
  41000. <method name="close"
  41001. abstract="false" native="false" synchronized="false"
  41002. static="false" final="false" visibility="public"
  41003. deprecated="not deprecated">
  41004. <exception name="IOException" type="java.io.IOException"/>
  41005. </method>
  41006. <method name="clear"
  41007. abstract="false" native="false" synchronized="false"
  41008. static="false" final="false" visibility="public"
  41009. deprecated="not deprecated">
  41010. </method>
  41011. <doc>
  41012. <![CDATA[This class provides an implementation of ResetableIterator. The
  41013. implementation uses an {@link java.util.ArrayList} to store elements
  41014. added to it, replaying them as requested.
  41015. Prefer {@link StreamBackedIterator}.]]>
  41016. </doc>
  41017. </class>
  41018. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  41019. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  41020. <interface name="ComposableInputFormat" abstract="true"
  41021. static="false" final="false" visibility="public"
  41022. deprecated="not deprecated">
  41023. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  41024. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  41025. abstract="false" native="false" synchronized="false"
  41026. static="false" final="false" visibility="public"
  41027. deprecated="not deprecated">
  41028. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  41029. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  41030. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  41031. <exception name="IOException" type="java.io.IOException"/>
  41032. </method>
  41033. <doc>
  41034. <![CDATA[Refinement of InputFormat requiring implementors to provide
  41035. ComposableRecordReader instead of RecordReader.]]>
  41036. </doc>
  41037. </interface>
  41038. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  41039. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  41040. <interface name="ComposableRecordReader" abstract="true"
  41041. static="false" final="false" visibility="public"
  41042. deprecated="not deprecated">
  41043. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  41044. <implements name="java.lang.Comparable"/>
  41045. <method name="id" return="int"
  41046. abstract="false" native="false" synchronized="false"
  41047. static="false" final="false" visibility="public"
  41048. deprecated="not deprecated">
  41049. <doc>
  41050. <![CDATA[Return the position in the collector this class occupies.]]>
  41051. </doc>
  41052. </method>
  41053. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  41054. abstract="false" native="false" synchronized="false"
  41055. static="false" final="false" visibility="public"
  41056. deprecated="not deprecated">
  41057. <doc>
  41058. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  41059. </doc>
  41060. </method>
  41061. <method name="key"
  41062. abstract="false" native="false" synchronized="false"
  41063. static="false" final="false" visibility="public"
  41064. deprecated="not deprecated">
  41065. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  41066. <exception name="IOException" type="java.io.IOException"/>
  41067. <doc>
  41068. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  41069. </doc>
  41070. </method>
  41071. <method name="hasNext" return="boolean"
  41072. abstract="false" native="false" synchronized="false"
  41073. static="false" final="false" visibility="public"
  41074. deprecated="not deprecated">
  41075. <doc>
  41076. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  41077. a call to next(K,V) will succeed.]]>
  41078. </doc>
  41079. </method>
  41080. <method name="skip"
  41081. abstract="false" native="false" synchronized="false"
  41082. static="false" final="false" visibility="public"
  41083. deprecated="not deprecated">
  41084. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  41085. <exception name="IOException" type="java.io.IOException"/>
  41086. <doc>
  41087. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  41088. </doc>
  41089. </method>
  41090. <method name="accept"
  41091. abstract="false" native="false" synchronized="false"
  41092. static="false" final="false" visibility="public"
  41093. deprecated="not deprecated">
  41094. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  41095. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  41096. <exception name="IOException" type="java.io.IOException"/>
  41097. <doc>
  41098. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  41099. them with the JoinCollector provided.]]>
  41100. </doc>
  41101. </method>
  41102. <doc>
  41103. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  41104. </doc>
  41105. </interface>
  41106. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  41107. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  41108. <class name="CompositeInputFormat" extends="java.lang.Object"
  41109. abstract="false"
  41110. static="false" final="false" visibility="public"
  41111. deprecated="not deprecated">
  41112. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  41113. <constructor name="CompositeInputFormat"
  41114. static="false" final="false" visibility="public"
  41115. deprecated="not deprecated">
  41116. </constructor>
  41117. <method name="setFormat"
  41118. abstract="false" native="false" synchronized="false"
  41119. static="false" final="false" visibility="public"
  41120. deprecated="not deprecated">
  41121. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  41122. <exception name="IOException" type="java.io.IOException"/>
  41123. <doc>
  41124. <![CDATA[Interpret a given string as a composite expression.
  41125. {@code
  41126. func ::= <ident>([<func>,]*<func>)
  41127. func ::= tbl(<class>,"<path>")
  41128. class ::= @see java.lang.Class#forName(java.lang.String)
  41129. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  41130. }
  41131. Reads expression from the <tt>mapred.join.expr</tt> property and
  41132. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  41133. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  41134. InputFormat class listed.
  41135. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  41136. </doc>
  41137. </method>
  41138. <method name="addDefaults"
  41139. abstract="false" native="false" synchronized="false"
  41140. static="false" final="false" visibility="protected"
  41141. deprecated="not deprecated">
  41142. <doc>
  41143. <![CDATA[Adds the default set of identifiers to the parser.]]>
  41144. </doc>
  41145. </method>
  41146. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  41147. abstract="false" native="false" synchronized="false"
  41148. static="false" final="false" visibility="public"
  41149. deprecated="not deprecated">
  41150. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  41151. <param name="numSplits" type="int"/>
  41152. <exception name="IOException" type="java.io.IOException"/>
  41153. <doc>
  41154. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  41155. ith split from each child to the ith composite split.]]>
  41156. </doc>
  41157. </method>
  41158. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  41159. abstract="false" native="false" synchronized="false"
  41160. static="false" final="false" visibility="public"
  41161. deprecated="not deprecated">
  41162. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  41163. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  41164. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  41165. <exception name="IOException" type="java.io.IOException"/>
  41166. <doc>
  41167. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  41168. as defined in the init expression.
  41169. The outermost join need only be composable, not necessarily a composite.
  41170. Mandating TupleWritable isn't strictly correct.]]>
  41171. </doc>
  41172. </method>
  41173. <method name="compose" return="java.lang.String"
  41174. abstract="false" native="false" synchronized="false"
  41175. static="true" final="false" visibility="public"
  41176. deprecated="not deprecated">
  41177. <param name="inf" type="java.lang.Class"/>
  41178. <param name="path" type="java.lang.String"/>
  41179. <doc>
  41180. <![CDATA[Convenience method for constructing composite formats.
  41181. Given InputFormat class (inf), path (p) return:
  41182. {@code tbl(<inf>, <p>) }]]>
  41183. </doc>
  41184. </method>
  41185. <method name="compose" return="java.lang.String"
  41186. abstract="false" native="false" synchronized="false"
  41187. static="true" final="false" visibility="public"
  41188. deprecated="not deprecated">
  41189. <param name="op" type="java.lang.String"/>
  41190. <param name="inf" type="java.lang.Class"/>
  41191. <param name="path" type="java.lang.String[]"/>
  41192. <doc>
  41193. <![CDATA[Convenience method for constructing composite formats.
  41194. Given operation (op), Object class (inf), set of paths (p) return:
  41195. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  41196. </doc>
  41197. </method>
  41198. <method name="compose" return="java.lang.String"
  41199. abstract="false" native="false" synchronized="false"
  41200. static="true" final="false" visibility="public"
  41201. deprecated="not deprecated">
  41202. <param name="op" type="java.lang.String"/>
  41203. <param name="inf" type="java.lang.Class"/>
  41204. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  41205. <doc>
  41206. <![CDATA[Convenience method for constructing composite formats.
  41207. Given operation (op), Object class (inf), set of paths (p) return:
  41208. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  41209. </doc>
  41210. </method>
  41211. <doc>
  41212. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  41213. and partitioned the same way.
  41214. @see #setFormat
  41215. A user may define new join types by setting the property
  41216. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  41217. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  41218. ComposableRecordReader.
  41219. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  41220. in the join.
  41221. @see JoinRecordReader
  41222. @see MultiFilterRecordReader]]>
  41223. </doc>
  41224. </class>
  41225. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  41226. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  41227. <class name="CompositeInputSplit" extends="java.lang.Object"
  41228. abstract="false"
  41229. static="false" final="false" visibility="public"
  41230. deprecated="not deprecated">
  41231. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  41232. <constructor name="CompositeInputSplit"
  41233. static="false" final="false" visibility="public"
  41234. deprecated="not deprecated">
  41235. </constructor>
  41236. <constructor name="CompositeInputSplit" type="int"
  41237. static="false" final="false" visibility="public"
  41238. deprecated="not deprecated">
  41239. </constructor>
  41240. <method name="add"
  41241. abstract="false" native="false" synchronized="false"
  41242. static="false" final="false" visibility="public"
  41243. deprecated="not deprecated">
  41244. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  41245. <exception name="IOException" type="java.io.IOException"/>
  41246. <doc>
  41247. <![CDATA[Add an InputSplit to this collection.
  41248. @throws IOException If capacity was not specified during construction
  41249. or if capacity has been reached.]]>
  41250. </doc>
  41251. </method>
  41252. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  41253. abstract="false" native="false" synchronized="false"
  41254. static="false" final="false" visibility="public"
  41255. deprecated="not deprecated">
  41256. <param name="i" type="int"/>
  41257. <doc>
  41258. <![CDATA[Get ith child InputSplit.]]>
  41259. </doc>
  41260. </method>
  41261. <method name="getLength" return="long"
  41262. abstract="false" native="false" synchronized="false"
  41263. static="false" final="false" visibility="public"
  41264. deprecated="not deprecated">
  41265. <exception name="IOException" type="java.io.IOException"/>
  41266. <doc>
  41267. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  41268. </doc>
  41269. </method>
  41270. <method name="getLength" return="long"
  41271. abstract="false" native="false" synchronized="false"
  41272. static="false" final="false" visibility="public"
  41273. deprecated="not deprecated">
  41274. <param name="i" type="int"/>
  41275. <exception name="IOException" type="java.io.IOException"/>
  41276. <doc>
  41277. <![CDATA[Get the length of ith child InputSplit.]]>
  41278. </doc>
  41279. </method>
  41280. <method name="getLocations" return="java.lang.String[]"
  41281. abstract="false" native="false" synchronized="false"
  41282. static="false" final="false" visibility="public"
  41283. deprecated="not deprecated">
  41284. <exception name="IOException" type="java.io.IOException"/>
  41285. <doc>
  41286. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  41287. </doc>
  41288. </method>
  41289. <method name="getLocation" return="java.lang.String[]"
  41290. abstract="false" native="false" synchronized="false"
  41291. static="false" final="false" visibility="public"
  41292. deprecated="not deprecated">
  41293. <param name="i" type="int"/>
  41294. <exception name="IOException" type="java.io.IOException"/>
  41295. <doc>
  41296. <![CDATA[getLocations from ith InputSplit.]]>
  41297. </doc>
  41298. </method>
  41299. <method name="write"
  41300. abstract="false" native="false" synchronized="false"
  41301. static="false" final="false" visibility="public"
  41302. deprecated="not deprecated">
  41303. <param name="out" type="java.io.DataOutput"/>
  41304. <exception name="IOException" type="java.io.IOException"/>
  41305. <doc>
  41306. <![CDATA[Write splits in the following format.
  41307. {@code
  41308. <count><class1><class2>...<classn><split1><split2>...<splitn>
  41309. }]]>
  41310. </doc>
  41311. </method>
  41312. <method name="readFields"
  41313. abstract="false" native="false" synchronized="false"
  41314. static="false" final="false" visibility="public"
  41315. deprecated="not deprecated">
  41316. <param name="in" type="java.io.DataInput"/>
  41317. <exception name="IOException" type="java.io.IOException"/>
  41318. <doc>
  41319. <![CDATA[{@inheritDoc}
  41320. @throws IOException If the child InputSplit cannot be read, typically
  41321. for faliing access checks.]]>
  41322. </doc>
  41323. </method>
  41324. <doc>
  41325. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  41326. into this collection must have a public default constructor.]]>
  41327. </doc>
  41328. </class>
  41329. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  41330. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  41331. <class name="CompositeRecordReader" extends="java.lang.Object"
  41332. abstract="true"
  41333. static="false" final="false" visibility="public"
  41334. deprecated="not deprecated">
  41335. <implements name="org.apache.hadoop.conf.Configurable"/>
  41336. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class"
  41337. static="false" final="false" visibility="public"
  41338. deprecated="not deprecated">
  41339. <exception name="IOException" type="java.io.IOException"/>
  41340. <doc>
  41341. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  41342. <tt>id</tt> in the parent reader.
  41343. The id of a root CompositeRecordReader is -1 by convention, but relying
  41344. on this is not recommended.]]>
  41345. </doc>
  41346. </constructor>
  41347. <method name="combine" return="boolean"
  41348. abstract="true" native="false" synchronized="false"
  41349. static="false" final="false" visibility="protected"
  41350. deprecated="not deprecated">
  41351. <param name="srcs" type="java.lang.Object[]"/>
  41352. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  41353. </method>
  41354. <method name="id" return="int"
  41355. abstract="false" native="false" synchronized="false"
  41356. static="false" final="false" visibility="public"
  41357. deprecated="not deprecated">
  41358. <doc>
  41359. <![CDATA[Return the position in the collector this class occupies.]]>
  41360. </doc>
  41361. </method>
  41362. <method name="setConf"
  41363. abstract="false" native="false" synchronized="false"
  41364. static="false" final="false" visibility="public"
  41365. deprecated="not deprecated">
  41366. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41367. <doc>
  41368. <![CDATA[{@inheritDoc}]]>
  41369. </doc>
  41370. </method>
  41371. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  41372. abstract="false" native="false" synchronized="false"
  41373. static="false" final="false" visibility="public"
  41374. deprecated="not deprecated">
  41375. <doc>
  41376. <![CDATA[{@inheritDoc}]]>
  41377. </doc>
  41378. </method>
  41379. <method name="getRecordReaderQueue" return="java.util.PriorityQueue"
  41380. abstract="false" native="false" synchronized="false"
  41381. static="false" final="false" visibility="protected"
  41382. deprecated="not deprecated">
  41383. <doc>
  41384. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  41385. </doc>
  41386. </method>
  41387. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  41388. abstract="false" native="false" synchronized="false"
  41389. static="false" final="false" visibility="protected"
  41390. deprecated="not deprecated">
  41391. <doc>
  41392. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  41393. composite.]]>
  41394. </doc>
  41395. </method>
  41396. <method name="add"
  41397. abstract="false" native="false" synchronized="false"
  41398. static="false" final="false" visibility="public"
  41399. deprecated="not deprecated">
  41400. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  41401. <exception name="IOException" type="java.io.IOException"/>
  41402. <doc>
  41403. <![CDATA[Add a RecordReader to this collection.
  41404. The id() of a RecordReader determines where in the Tuple its
  41405. entry will appear. Adding RecordReaders with the same id has
  41406. undefined behavior.]]>
  41407. </doc>
  41408. </method>
  41409. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  41410. abstract="false" native="false" synchronized="false"
  41411. static="false" final="false" visibility="public"
  41412. deprecated="not deprecated">
  41413. <doc>
  41414. <![CDATA[Return the key for the current join or the value at the top of the
  41415. RecordReader heap.]]>
  41416. </doc>
  41417. </method>
  41418. <method name="key"
  41419. abstract="false" native="false" synchronized="false"
  41420. static="false" final="false" visibility="public"
  41421. deprecated="not deprecated">
  41422. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  41423. <exception name="IOException" type="java.io.IOException"/>
  41424. <doc>
  41425. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  41426. </doc>
  41427. </method>
  41428. <method name="hasNext" return="boolean"
  41429. abstract="false" native="false" synchronized="false"
  41430. static="false" final="false" visibility="public"
  41431. deprecated="not deprecated">
  41432. <doc>
  41433. <![CDATA[Return true if it is possible that this could emit more values.]]>
  41434. </doc>
  41435. </method>
  41436. <method name="skip"
  41437. abstract="false" native="false" synchronized="false"
  41438. static="false" final="false" visibility="public"
  41439. deprecated="not deprecated">
  41440. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  41441. <exception name="IOException" type="java.io.IOException"/>
  41442. <doc>
  41443. <![CDATA[Pass skip key to child RRs.]]>
  41444. </doc>
  41445. </method>
  41446. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  41447. abstract="true" native="false" synchronized="false"
  41448. static="false" final="false" visibility="protected"
  41449. deprecated="not deprecated">
  41450. <doc>
  41451. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  41452. ultimately emitted from this join.]]>
  41453. </doc>
  41454. </method>
  41455. <method name="accept"
  41456. abstract="false" native="false" synchronized="false"
  41457. static="false" final="false" visibility="public"
  41458. deprecated="not deprecated">
  41459. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  41460. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  41461. <exception name="IOException" type="java.io.IOException"/>
  41462. <doc>
  41463. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  41464. iterator over values it may emit.]]>
  41465. </doc>
  41466. </method>
  41467. <method name="fillJoinCollector"
  41468. abstract="false" native="false" synchronized="false"
  41469. static="false" final="false" visibility="protected"
  41470. deprecated="not deprecated">
  41471. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  41472. <exception name="IOException" type="java.io.IOException"/>
  41473. <doc>
  41474. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  41475. at that position in the JoinCollector.]]>
  41476. </doc>
  41477. </method>
  41478. <method name="compareTo" return="int"
  41479. abstract="false" native="false" synchronized="false"
  41480. static="false" final="false" visibility="public"
  41481. deprecated="not deprecated">
  41482. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  41483. <doc>
  41484. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  41485. with that of another).]]>
  41486. </doc>
  41487. </method>
  41488. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  41489. abstract="false" native="false" synchronized="false"
  41490. static="false" final="false" visibility="public"
  41491. deprecated="not deprecated">
  41492. <doc>
  41493. <![CDATA[Create a new key value common to all child RRs.
  41494. @throws ClassCastException if key classes differ.]]>
  41495. </doc>
  41496. </method>
  41497. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  41498. abstract="false" native="false" synchronized="false"
  41499. static="false" final="false" visibility="protected"
  41500. deprecated="not deprecated">
  41501. <doc>
  41502. <![CDATA[Create a value to be used internally for joins.]]>
  41503. </doc>
  41504. </method>
  41505. <method name="getPos" return="long"
  41506. abstract="false" native="false" synchronized="false"
  41507. static="false" final="false" visibility="public"
  41508. deprecated="not deprecated">
  41509. <exception name="IOException" type="java.io.IOException"/>
  41510. <doc>
  41511. <![CDATA[Unsupported (returns zero in all cases).]]>
  41512. </doc>
  41513. </method>
  41514. <method name="close"
  41515. abstract="false" native="false" synchronized="false"
  41516. static="false" final="false" visibility="public"
  41517. deprecated="not deprecated">
  41518. <exception name="IOException" type="java.io.IOException"/>
  41519. <doc>
  41520. <![CDATA[Close all child RRs.]]>
  41521. </doc>
  41522. </method>
  41523. <method name="getProgress" return="float"
  41524. abstract="false" native="false" synchronized="false"
  41525. static="false" final="false" visibility="public"
  41526. deprecated="not deprecated">
  41527. <exception name="IOException" type="java.io.IOException"/>
  41528. <doc>
  41529. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  41530. </doc>
  41531. </method>
  41532. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"
  41533. transient="false" volatile="false"
  41534. static="false" final="true" visibility="protected"
  41535. deprecated="not deprecated">
  41536. </field>
  41537. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  41538. transient="false" volatile="false"
  41539. static="false" final="true" visibility="protected"
  41540. deprecated="not deprecated">
  41541. </field>
  41542. <doc>
  41543. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  41544. type and partitioning.]]>
  41545. </doc>
  41546. </class>
  41547. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  41548. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  41549. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  41550. abstract="false"
  41551. static="false" final="false" visibility="public"
  41552. deprecated="not deprecated">
  41553. <method name="combine" return="boolean"
  41554. abstract="false" native="false" synchronized="false"
  41555. static="false" final="false" visibility="protected"
  41556. deprecated="not deprecated">
  41557. <param name="srcs" type="java.lang.Object[]"/>
  41558. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  41559. <doc>
  41560. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  41561. </doc>
  41562. </method>
  41563. <doc>
  41564. <![CDATA[Full inner join.]]>
  41565. </doc>
  41566. </class>
  41567. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  41568. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  41569. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  41570. abstract="true"
  41571. static="false" final="false" visibility="public"
  41572. deprecated="not deprecated">
  41573. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  41574. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  41575. static="false" final="false" visibility="public"
  41576. deprecated="not deprecated">
  41577. <exception name="IOException" type="java.io.IOException"/>
  41578. </constructor>
  41579. <method name="next" return="boolean"
  41580. abstract="false" native="false" synchronized="false"
  41581. static="false" final="false" visibility="public"
  41582. deprecated="not deprecated">
  41583. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  41584. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  41585. <exception name="IOException" type="java.io.IOException"/>
  41586. <doc>
  41587. <![CDATA[Emit the next set of key, value pairs as defined by the child
  41588. RecordReaders and operation associated with this composite RR.]]>
  41589. </doc>
  41590. </method>
  41591. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  41592. abstract="false" native="false" synchronized="false"
  41593. static="false" final="false" visibility="public"
  41594. deprecated="not deprecated">
  41595. <doc>
  41596. <![CDATA[{@inheritDoc}]]>
  41597. </doc>
  41598. </method>
  41599. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  41600. abstract="false" native="false" synchronized="false"
  41601. static="false" final="false" visibility="protected"
  41602. deprecated="not deprecated">
  41603. <doc>
  41604. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  41605. </doc>
  41606. </method>
  41607. <doc>
  41608. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  41609. </doc>
  41610. </class>
  41611. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  41612. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  41613. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  41614. abstract="false"
  41615. static="false" final="false" visibility="protected"
  41616. deprecated="not deprecated">
  41617. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  41618. <constructor name="JoinRecordReader.JoinDelegationIterator"
  41619. static="false" final="false" visibility="protected"
  41620. deprecated="not deprecated">
  41621. </constructor>
  41622. <method name="hasNext" return="boolean"
  41623. abstract="false" native="false" synchronized="false"
  41624. static="false" final="false" visibility="public"
  41625. deprecated="not deprecated">
  41626. </method>
  41627. <method name="next" return="boolean"
  41628. abstract="false" native="false" synchronized="false"
  41629. static="false" final="false" visibility="public"
  41630. deprecated="not deprecated">
  41631. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  41632. <exception name="IOException" type="java.io.IOException"/>
  41633. </method>
  41634. <method name="replay" return="boolean"
  41635. abstract="false" native="false" synchronized="false"
  41636. static="false" final="false" visibility="public"
  41637. deprecated="not deprecated">
  41638. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  41639. <exception name="IOException" type="java.io.IOException"/>
  41640. </method>
  41641. <method name="reset"
  41642. abstract="false" native="false" synchronized="false"
  41643. static="false" final="false" visibility="public"
  41644. deprecated="not deprecated">
  41645. </method>
  41646. <method name="add"
  41647. abstract="false" native="false" synchronized="false"
  41648. static="false" final="false" visibility="public"
  41649. deprecated="not deprecated">
  41650. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  41651. <exception name="IOException" type="java.io.IOException"/>
  41652. </method>
  41653. <method name="close"
  41654. abstract="false" native="false" synchronized="false"
  41655. static="false" final="false" visibility="public"
  41656. deprecated="not deprecated">
  41657. <exception name="IOException" type="java.io.IOException"/>
  41658. </method>
  41659. <method name="clear"
  41660. abstract="false" native="false" synchronized="false"
  41661. static="false" final="false" visibility="public"
  41662. deprecated="not deprecated">
  41663. </method>
  41664. <doc>
  41665. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  41666. provide an iterator proxy wrapping its operation.]]>
  41667. </doc>
  41668. </class>
  41669. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  41670. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  41671. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  41672. abstract="true"
  41673. static="false" final="false" visibility="public"
  41674. deprecated="not deprecated">
  41675. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  41676. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  41677. static="false" final="false" visibility="public"
  41678. deprecated="not deprecated">
  41679. <exception name="IOException" type="java.io.IOException"/>
  41680. </constructor>
  41681. <method name="emit" return="org.apache.hadoop.io.Writable"
  41682. abstract="true" native="false" synchronized="false"
  41683. static="false" final="false" visibility="protected"
  41684. deprecated="not deprecated">
  41685. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  41686. <exception name="IOException" type="java.io.IOException"/>
  41687. <doc>
  41688. <![CDATA[For each tuple emitted, return a value (typically one of the values
  41689. in the tuple).
  41690. Modifying the Writables in the tuple is permitted and unlikely to affect
  41691. join behavior in most cases, but it is not recommended. It's safer to
  41692. clone first.]]>
  41693. </doc>
  41694. </method>
  41695. <method name="combine" return="boolean"
  41696. abstract="false" native="false" synchronized="false"
  41697. static="false" final="false" visibility="protected"
  41698. deprecated="not deprecated">
  41699. <param name="srcs" type="java.lang.Object[]"/>
  41700. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  41701. <doc>
  41702. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  41703. collector (the outer join of child RRs).]]>
  41704. </doc>
  41705. </method>
  41706. <method name="next" return="boolean"
  41707. abstract="false" native="false" synchronized="false"
  41708. static="false" final="false" visibility="public"
  41709. deprecated="not deprecated">
  41710. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  41711. <param name="value" type="org.apache.hadoop.io.Writable"/>
  41712. <exception name="IOException" type="java.io.IOException"/>
  41713. <doc>
  41714. <![CDATA[{@inheritDoc}]]>
  41715. </doc>
  41716. </method>
  41717. <method name="createValue" return="org.apache.hadoop.io.Writable"
  41718. abstract="false" native="false" synchronized="false"
  41719. static="false" final="false" visibility="public"
  41720. deprecated="not deprecated">
  41721. <doc>
  41722. <![CDATA[{@inheritDoc}]]>
  41723. </doc>
  41724. </method>
  41725. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  41726. abstract="false" native="false" synchronized="false"
  41727. static="false" final="false" visibility="protected"
  41728. deprecated="not deprecated">
  41729. <doc>
  41730. <![CDATA[Return an iterator returning a single value from the tuple.
  41731. @see MultiFilterDelegationIterator]]>
  41732. </doc>
  41733. </method>
  41734. <doc>
  41735. <![CDATA[Base class for Composite join returning values derived from multiple
  41736. sources, but generally not tuples.]]>
  41737. </doc>
  41738. </class>
  41739. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  41740. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  41741. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  41742. abstract="false"
  41743. static="false" final="false" visibility="protected"
  41744. deprecated="not deprecated">
  41745. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  41746. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  41747. static="false" final="false" visibility="protected"
  41748. deprecated="not deprecated">
  41749. </constructor>
  41750. <method name="hasNext" return="boolean"
  41751. abstract="false" native="false" synchronized="false"
  41752. static="false" final="false" visibility="public"
  41753. deprecated="not deprecated">
  41754. </method>
  41755. <method name="next" return="boolean"
  41756. abstract="false" native="false" synchronized="false"
  41757. static="false" final="false" visibility="public"
  41758. deprecated="not deprecated">
  41759. <param name="val" type="org.apache.hadoop.io.Writable"/>
  41760. <exception name="IOException" type="java.io.IOException"/>
  41761. </method>
  41762. <method name="replay" return="boolean"
  41763. abstract="false" native="false" synchronized="false"
  41764. static="false" final="false" visibility="public"
  41765. deprecated="not deprecated">
  41766. <param name="val" type="org.apache.hadoop.io.Writable"/>
  41767. <exception name="IOException" type="java.io.IOException"/>
  41768. </method>
  41769. <method name="reset"
  41770. abstract="false" native="false" synchronized="false"
  41771. static="false" final="false" visibility="public"
  41772. deprecated="not deprecated">
  41773. </method>
  41774. <method name="add"
  41775. abstract="false" native="false" synchronized="false"
  41776. static="false" final="false" visibility="public"
  41777. deprecated="not deprecated">
  41778. <param name="item" type="org.apache.hadoop.io.Writable"/>
  41779. <exception name="IOException" type="java.io.IOException"/>
  41780. </method>
  41781. <method name="close"
  41782. abstract="false" native="false" synchronized="false"
  41783. static="false" final="false" visibility="public"
  41784. deprecated="not deprecated">
  41785. <exception name="IOException" type="java.io.IOException"/>
  41786. </method>
  41787. <method name="clear"
  41788. abstract="false" native="false" synchronized="false"
  41789. static="false" final="false" visibility="public"
  41790. deprecated="not deprecated">
  41791. </method>
  41792. <doc>
  41793. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  41794. </doc>
  41795. </class>
  41796. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  41797. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  41798. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  41799. abstract="false"
  41800. static="false" final="false" visibility="public"
  41801. deprecated="not deprecated">
  41802. <method name="combine" return="boolean"
  41803. abstract="false" native="false" synchronized="false"
  41804. static="false" final="false" visibility="protected"
  41805. deprecated="not deprecated">
  41806. <param name="srcs" type="java.lang.Object[]"/>
  41807. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  41808. <doc>
  41809. <![CDATA[Emit everything from the collector.]]>
  41810. </doc>
  41811. </method>
  41812. <doc>
  41813. <![CDATA[Full outer join.]]>
  41814. </doc>
  41815. </class>
  41816. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  41817. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  41818. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader"
  41819. abstract="false"
  41820. static="false" final="false" visibility="public"
  41821. deprecated="not deprecated">
  41822. <method name="emit" return="org.apache.hadoop.io.Writable"
  41823. abstract="false" native="false" synchronized="false"
  41824. static="false" final="false" visibility="protected"
  41825. deprecated="not deprecated">
  41826. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  41827. <doc>
  41828. <![CDATA[Emit the value with the highest position in the tuple.]]>
  41829. </doc>
  41830. </method>
  41831. <method name="fillJoinCollector"
  41832. abstract="false" native="false" synchronized="false"
  41833. static="false" final="false" visibility="protected"
  41834. deprecated="not deprecated">
  41835. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  41836. <exception name="IOException" type="java.io.IOException"/>
  41837. <doc>
  41838. <![CDATA[Instead of filling the JoinCollector with iterators from all
  41839. data sources, fill only the rightmost for this key.
  41840. This not only saves space by discarding the other sources, but
  41841. it also emits the number of key-value pairs in the preferred
  41842. RecordReader instead of repeating that stream n times, where
  41843. n is the cardinality of the cross product of the discarded
  41844. streams for the given key.]]>
  41845. </doc>
  41846. </method>
  41847. <doc>
  41848. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  41849. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  41850. from S3 over S2, and values from S2 over S1 for all keys
  41851. emitted from all sources.]]>
  41852. </doc>
  41853. </class>
  41854. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  41855. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  41856. <class name="Parser" extends="java.lang.Object"
  41857. abstract="false"
  41858. static="false" final="false" visibility="public"
  41859. deprecated="not deprecated">
  41860. <constructor name="Parser"
  41861. static="false" final="false" visibility="public"
  41862. deprecated="not deprecated">
  41863. </constructor>
  41864. <doc>
  41865. <![CDATA[Very simple shift-reduce parser for join expressions.
  41866. This should be sufficient for the user extension permitted now, but ought to
  41867. be replaced with a parser generator if more complex grammars are supported.
  41868. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  41869. of formals requires a different internal node type, which is responsible for
  41870. interpreting the list of tokens it receives. This is sufficient for the
  41871. current grammar, but it has several annoying properties that might inhibit
  41872. extension. In particular, parenthesis are always function calls; an
  41873. algebraic or filter grammar would not only require a node type, but must
  41874. also work around the internals of this parser.
  41875. For most other cases, adding classes to the hierarchy- particularly by
  41876. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  41877. straightforward. One need only override the relevant method(s) (usually only
  41878. {@link CompositeRecordReader#combine}) and include a property to map its
  41879. value to an identifier in the parser.]]>
  41880. </doc>
  41881. </class>
  41882. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  41883. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  41884. <class name="Parser.Node" extends="java.lang.Object"
  41885. abstract="true"
  41886. static="true" final="false" visibility="public"
  41887. deprecated="not deprecated">
  41888. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  41889. <constructor name="Parser.Node" type="java.lang.String"
  41890. static="false" final="false" visibility="protected"
  41891. deprecated="not deprecated">
  41892. </constructor>
  41893. <method name="addIdentifier"
  41894. abstract="false" native="false" synchronized="false"
  41895. static="true" final="false" visibility="protected"
  41896. deprecated="not deprecated">
  41897. <param name="ident" type="java.lang.String"/>
  41898. <param name="mcstrSig" type="java.lang.Class[]"/>
  41899. <param name="nodetype" type="java.lang.Class"/>
  41900. <param name="cl" type="java.lang.Class"/>
  41901. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  41902. <doc>
  41903. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  41904. tree and to the ComposableRecordReader to be created, including the
  41905. formals required to invoke the constructor.
  41906. The nodetype and constructor signature should be filled in from the
  41907. child node.]]>
  41908. </doc>
  41909. </method>
  41910. <method name="setID"
  41911. abstract="false" native="false" synchronized="false"
  41912. static="false" final="false" visibility="protected"
  41913. deprecated="not deprecated">
  41914. <param name="id" type="int"/>
  41915. </method>
  41916. <method name="setKeyComparator"
  41917. abstract="false" native="false" synchronized="false"
  41918. static="false" final="false" visibility="protected"
  41919. deprecated="not deprecated">
  41920. <param name="cmpcl" type="java.lang.Class"/>
  41921. </method>
  41922. <field name="rrCstrMap" type="java.util.Map"
  41923. transient="false" volatile="false"
  41924. static="true" final="true" visibility="protected"
  41925. deprecated="not deprecated">
  41926. </field>
  41927. <field name="id" type="int"
  41928. transient="false" volatile="false"
  41929. static="false" final="false" visibility="protected"
  41930. deprecated="not deprecated">
  41931. </field>
  41932. <field name="ident" type="java.lang.String"
  41933. transient="false" volatile="false"
  41934. static="false" final="false" visibility="protected"
  41935. deprecated="not deprecated">
  41936. </field>
  41937. <field name="cmpcl" type="java.lang.Class"
  41938. transient="false" volatile="false"
  41939. static="false" final="false" visibility="protected"
  41940. deprecated="not deprecated">
  41941. </field>
  41942. </class>
  41943. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  41944. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  41945. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  41946. abstract="false"
  41947. static="true" final="false" visibility="public"
  41948. deprecated="not deprecated">
  41949. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  41950. abstract="false" native="false" synchronized="false"
  41951. static="false" final="false" visibility="public"
  41952. deprecated="not deprecated">
  41953. </method>
  41954. </class>
  41955. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  41956. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  41957. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  41958. abstract="false"
  41959. static="true" final="false" visibility="public"
  41960. deprecated="not deprecated">
  41961. <constructor name="Parser.NumToken" type="double"
  41962. static="false" final="false" visibility="public"
  41963. deprecated="not deprecated">
  41964. </constructor>
  41965. <method name="getNum" return="double"
  41966. abstract="false" native="false" synchronized="false"
  41967. static="false" final="false" visibility="public"
  41968. deprecated="not deprecated">
  41969. </method>
  41970. </class>
  41971. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  41972. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  41973. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  41974. abstract="false"
  41975. static="true" final="false" visibility="public"
  41976. deprecated="not deprecated">
  41977. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  41978. static="false" final="false" visibility="public"
  41979. deprecated="not deprecated">
  41980. </constructor>
  41981. <method name="getStr" return="java.lang.String"
  41982. abstract="false" native="false" synchronized="false"
  41983. static="false" final="false" visibility="public"
  41984. deprecated="not deprecated">
  41985. </method>
  41986. </class>
  41987. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  41988. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  41989. <class name="Parser.Token" extends="java.lang.Object"
  41990. abstract="false"
  41991. static="true" final="false" visibility="public"
  41992. deprecated="not deprecated">
  41993. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  41994. abstract="false" native="false" synchronized="false"
  41995. static="false" final="false" visibility="public"
  41996. deprecated="not deprecated">
  41997. </method>
  41998. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  41999. abstract="false" native="false" synchronized="false"
  42000. static="false" final="false" visibility="public"
  42001. deprecated="not deprecated">
  42002. <exception name="IOException" type="java.io.IOException"/>
  42003. </method>
  42004. <method name="getNum" return="double"
  42005. abstract="false" native="false" synchronized="false"
  42006. static="false" final="false" visibility="public"
  42007. deprecated="not deprecated">
  42008. <exception name="IOException" type="java.io.IOException"/>
  42009. </method>
  42010. <method name="getStr" return="java.lang.String"
  42011. abstract="false" native="false" synchronized="false"
  42012. static="false" final="false" visibility="public"
  42013. deprecated="not deprecated">
  42014. <exception name="IOException" type="java.io.IOException"/>
  42015. </method>
  42016. <doc>
  42017. <![CDATA[Tagged-union type for tokens from the join expression.
  42018. @see Parser.TType]]>
  42019. </doc>
  42020. </class>
  42021. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  42022. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  42023. <class name="Parser.TType" extends="java.lang.Enum"
  42024. abstract="false"
  42025. static="true" final="true" visibility="public"
  42026. deprecated="not deprecated">
  42027. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  42028. abstract="false" native="false" synchronized="false"
  42029. static="true" final="false" visibility="public"
  42030. deprecated="not deprecated">
  42031. </method>
  42032. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  42033. abstract="false" native="false" synchronized="false"
  42034. static="true" final="false" visibility="public"
  42035. deprecated="not deprecated">
  42036. <param name="name" type="java.lang.String"/>
  42037. </method>
  42038. <field name="CIF" type="org.apache.hadoop.mapred.join.Parser.TType"
  42039. transient="false" volatile="false"
  42040. static="true" final="true" visibility="public"
  42041. deprecated="not deprecated">
  42042. </field>
  42043. <field name="IDENT" type="org.apache.hadoop.mapred.join.Parser.TType"
  42044. transient="false" volatile="false"
  42045. static="true" final="true" visibility="public"
  42046. deprecated="not deprecated">
  42047. </field>
  42048. <field name="COMMA" type="org.apache.hadoop.mapred.join.Parser.TType"
  42049. transient="false" volatile="false"
  42050. static="true" final="true" visibility="public"
  42051. deprecated="not deprecated">
  42052. </field>
  42053. <field name="LPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  42054. transient="false" volatile="false"
  42055. static="true" final="true" visibility="public"
  42056. deprecated="not deprecated">
  42057. </field>
  42058. <field name="RPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  42059. transient="false" volatile="false"
  42060. static="true" final="true" visibility="public"
  42061. deprecated="not deprecated">
  42062. </field>
  42063. <field name="QUOT" type="org.apache.hadoop.mapred.join.Parser.TType"
  42064. transient="false" volatile="false"
  42065. static="true" final="true" visibility="public"
  42066. deprecated="not deprecated">
  42067. </field>
  42068. <field name="NUM" type="org.apache.hadoop.mapred.join.Parser.TType"
  42069. transient="false" volatile="false"
  42070. static="true" final="true" visibility="public"
  42071. deprecated="not deprecated">
  42072. </field>
  42073. </class>
  42074. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  42075. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  42076. <interface name="ResetableIterator" abstract="true"
  42077. static="false" final="false" visibility="public"
  42078. deprecated="not deprecated">
  42079. <method name="hasNext" return="boolean"
  42080. abstract="false" native="false" synchronized="false"
  42081. static="false" final="false" visibility="public"
  42082. deprecated="not deprecated">
  42083. <doc>
  42084. <![CDATA[True if a call to next may return a value. This is permitted false
  42085. positives, but not false negatives.]]>
  42086. </doc>
  42087. </method>
  42088. <method name="next" return="boolean"
  42089. abstract="false" native="false" synchronized="false"
  42090. static="false" final="false" visibility="public"
  42091. deprecated="not deprecated">
  42092. <param name="val" type="org.apache.hadoop.io.Writable"/>
  42093. <exception name="IOException" type="java.io.IOException"/>
  42094. <doc>
  42095. <![CDATA[Assign next value to actual.
  42096. It is required that elements added to a ResetableIterator be returned in
  42097. the same order after a call to {@link #reset} (FIFO).
  42098. Note that a call to this may fail for nested joins (i.e. more elements
  42099. available, but none satisfying the constraints of the join)]]>
  42100. </doc>
  42101. </method>
  42102. <method name="replay" return="boolean"
  42103. abstract="false" native="false" synchronized="false"
  42104. static="false" final="false" visibility="public"
  42105. deprecated="not deprecated">
  42106. <param name="val" type="org.apache.hadoop.io.Writable"/>
  42107. <exception name="IOException" type="java.io.IOException"/>
  42108. <doc>
  42109. <![CDATA[Assign last value returned to actual.]]>
  42110. </doc>
  42111. </method>
  42112. <method name="reset"
  42113. abstract="false" native="false" synchronized="false"
  42114. static="false" final="false" visibility="public"
  42115. deprecated="not deprecated">
  42116. <doc>
  42117. <![CDATA[Set iterator to return to the start of its range. Must be called after
  42118. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  42119. </doc>
  42120. </method>
  42121. <method name="add"
  42122. abstract="false" native="false" synchronized="false"
  42123. static="false" final="false" visibility="public"
  42124. deprecated="not deprecated">
  42125. <param name="item" type="org.apache.hadoop.io.Writable"/>
  42126. <exception name="IOException" type="java.io.IOException"/>
  42127. <doc>
  42128. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  42129. </doc>
  42130. </method>
  42131. <method name="close"
  42132. abstract="false" native="false" synchronized="false"
  42133. static="false" final="false" visibility="public"
  42134. deprecated="not deprecated">
  42135. <exception name="IOException" type="java.io.IOException"/>
  42136. <doc>
  42137. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  42138. after calling close has undefined behavior.]]>
  42139. </doc>
  42140. </method>
  42141. <method name="clear"
  42142. abstract="false" native="false" synchronized="false"
  42143. static="false" final="false" visibility="public"
  42144. deprecated="not deprecated">
  42145. <doc>
  42146. <![CDATA[Close datasources, but do not release internal resources. Calling this
  42147. method should permit the object to be reused with a different datasource.]]>
  42148. </doc>
  42149. </method>
  42150. <doc>
  42151. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  42152. added to it directly.
  42153. Note that this does not extend {@link java.util.Iterator}.]]>
  42154. </doc>
  42155. </interface>
  42156. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  42157. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  42158. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  42159. abstract="false"
  42160. static="true" final="false" visibility="public"
  42161. deprecated="not deprecated">
  42162. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  42163. <constructor name="ResetableIterator.EMPTY"
  42164. static="false" final="false" visibility="public"
  42165. deprecated="not deprecated">
  42166. </constructor>
  42167. <method name="hasNext" return="boolean"
  42168. abstract="false" native="false" synchronized="false"
  42169. static="false" final="false" visibility="public"
  42170. deprecated="not deprecated">
  42171. </method>
  42172. <method name="reset"
  42173. abstract="false" native="false" synchronized="false"
  42174. static="false" final="false" visibility="public"
  42175. deprecated="not deprecated">
  42176. </method>
  42177. <method name="close"
  42178. abstract="false" native="false" synchronized="false"
  42179. static="false" final="false" visibility="public"
  42180. deprecated="not deprecated">
  42181. <exception name="IOException" type="java.io.IOException"/>
  42182. </method>
  42183. <method name="clear"
  42184. abstract="false" native="false" synchronized="false"
  42185. static="false" final="false" visibility="public"
  42186. deprecated="not deprecated">
  42187. </method>
  42188. <method name="next" return="boolean"
  42189. abstract="false" native="false" synchronized="false"
  42190. static="false" final="false" visibility="public"
  42191. deprecated="not deprecated">
  42192. <param name="val" type="org.apache.hadoop.io.Writable"/>
  42193. <exception name="IOException" type="java.io.IOException"/>
  42194. </method>
  42195. <method name="replay" return="boolean"
  42196. abstract="false" native="false" synchronized="false"
  42197. static="false" final="false" visibility="public"
  42198. deprecated="not deprecated">
  42199. <param name="val" type="org.apache.hadoop.io.Writable"/>
  42200. <exception name="IOException" type="java.io.IOException"/>
  42201. </method>
  42202. <method name="add"
  42203. abstract="false" native="false" synchronized="false"
  42204. static="false" final="false" visibility="public"
  42205. deprecated="not deprecated">
  42206. <param name="item" type="org.apache.hadoop.io.Writable"/>
  42207. <exception name="IOException" type="java.io.IOException"/>
  42208. </method>
  42209. </class>
  42210. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  42211. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  42212. <class name="StreamBackedIterator" extends="java.lang.Object"
  42213. abstract="false"
  42214. static="false" final="false" visibility="public"
  42215. deprecated="not deprecated">
  42216. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  42217. <constructor name="StreamBackedIterator"
  42218. static="false" final="false" visibility="public"
  42219. deprecated="not deprecated">
  42220. </constructor>
  42221. <method name="hasNext" return="boolean"
  42222. abstract="false" native="false" synchronized="false"
  42223. static="false" final="false" visibility="public"
  42224. deprecated="not deprecated">
  42225. </method>
  42226. <method name="next" return="boolean"
  42227. abstract="false" native="false" synchronized="false"
  42228. static="false" final="false" visibility="public"
  42229. deprecated="not deprecated">
  42230. <param name="val" type="org.apache.hadoop.io.Writable"/>
  42231. <exception name="IOException" type="java.io.IOException"/>
  42232. </method>
  42233. <method name="replay" return="boolean"
  42234. abstract="false" native="false" synchronized="false"
  42235. static="false" final="false" visibility="public"
  42236. deprecated="not deprecated">
  42237. <param name="val" type="org.apache.hadoop.io.Writable"/>
  42238. <exception name="IOException" type="java.io.IOException"/>
  42239. </method>
  42240. <method name="reset"
  42241. abstract="false" native="false" synchronized="false"
  42242. static="false" final="false" visibility="public"
  42243. deprecated="not deprecated">
  42244. </method>
  42245. <method name="add"
  42246. abstract="false" native="false" synchronized="false"
  42247. static="false" final="false" visibility="public"
  42248. deprecated="not deprecated">
  42249. <param name="item" type="org.apache.hadoop.io.Writable"/>
  42250. <exception name="IOException" type="java.io.IOException"/>
  42251. </method>
  42252. <method name="close"
  42253. abstract="false" native="false" synchronized="false"
  42254. static="false" final="false" visibility="public"
  42255. deprecated="not deprecated">
  42256. <exception name="IOException" type="java.io.IOException"/>
  42257. </method>
  42258. <method name="clear"
  42259. abstract="false" native="false" synchronized="false"
  42260. static="false" final="false" visibility="public"
  42261. deprecated="not deprecated">
  42262. </method>
  42263. <doc>
  42264. <![CDATA[This class provides an implementation of ResetableIterator. This
  42265. implementation uses a byte array to store elements added to it.]]>
  42266. </doc>
  42267. </class>
  42268. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  42269. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  42270. <class name="TupleWritable" extends="java.lang.Object"
  42271. abstract="false"
  42272. static="false" final="false" visibility="public"
  42273. deprecated="not deprecated">
  42274. <implements name="org.apache.hadoop.io.Writable"/>
  42275. <implements name="java.lang.Iterable"/>
  42276. <constructor name="TupleWritable"
  42277. static="false" final="false" visibility="public"
  42278. deprecated="not deprecated">
  42279. <doc>
  42280. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  42281. </doc>
  42282. </constructor>
  42283. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  42284. static="false" final="false" visibility="public"
  42285. deprecated="not deprecated">
  42286. <doc>
  42287. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  42288. &quot;written&quot; values.]]>
  42289. </doc>
  42290. </constructor>
  42291. <method name="has" return="boolean"
  42292. abstract="false" native="false" synchronized="false"
  42293. static="false" final="false" visibility="public"
  42294. deprecated="not deprecated">
  42295. <param name="i" type="int"/>
  42296. <doc>
  42297. <![CDATA[Return true if tuple has an element at the position provided.]]>
  42298. </doc>
  42299. </method>
  42300. <method name="get" return="org.apache.hadoop.io.Writable"
  42301. abstract="false" native="false" synchronized="false"
  42302. static="false" final="false" visibility="public"
  42303. deprecated="not deprecated">
  42304. <param name="i" type="int"/>
  42305. <doc>
  42306. <![CDATA[Get ith Writable from Tuple.]]>
  42307. </doc>
  42308. </method>
  42309. <method name="size" return="int"
  42310. abstract="false" native="false" synchronized="false"
  42311. static="false" final="false" visibility="public"
  42312. deprecated="not deprecated">
  42313. <doc>
  42314. <![CDATA[The number of children in this Tuple.]]>
  42315. </doc>
  42316. </method>
  42317. <method name="equals" return="boolean"
  42318. abstract="false" native="false" synchronized="false"
  42319. static="false" final="false" visibility="public"
  42320. deprecated="not deprecated">
  42321. <param name="other" type="java.lang.Object"/>
  42322. <doc>
  42323. <![CDATA[{@inheritDoc}]]>
  42324. </doc>
  42325. </method>
  42326. <method name="hashCode" return="int"
  42327. abstract="false" native="false" synchronized="false"
  42328. static="false" final="false" visibility="public"
  42329. deprecated="not deprecated">
  42330. </method>
  42331. <method name="iterator" return="java.util.Iterator"
  42332. abstract="false" native="false" synchronized="false"
  42333. static="false" final="false" visibility="public"
  42334. deprecated="not deprecated">
  42335. <doc>
  42336. <![CDATA[Return an iterator over the elements in this tuple.
  42337. Note that this doesn't flatten the tuple; one may receive tuples
  42338. from this iterator.]]>
  42339. </doc>
  42340. </method>
  42341. <method name="toString" return="java.lang.String"
  42342. abstract="false" native="false" synchronized="false"
  42343. static="false" final="false" visibility="public"
  42344. deprecated="not deprecated">
  42345. <doc>
  42346. <![CDATA[Convert Tuple to String as in the following.
  42347. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  42348. </doc>
  42349. </method>
  42350. <method name="write"
  42351. abstract="false" native="false" synchronized="false"
  42352. static="false" final="false" visibility="public"
  42353. deprecated="not deprecated">
  42354. <param name="out" type="java.io.DataOutput"/>
  42355. <exception name="IOException" type="java.io.IOException"/>
  42356. <doc>
  42357. <![CDATA[Writes each Writable to <code>out</code>.
  42358. TupleWritable format:
  42359. {@code
  42360. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  42361. }]]>
  42362. </doc>
  42363. </method>
  42364. <method name="readFields"
  42365. abstract="false" native="false" synchronized="false"
  42366. static="false" final="false" visibility="public"
  42367. deprecated="not deprecated">
  42368. <param name="in" type="java.io.DataInput"/>
  42369. <exception name="IOException" type="java.io.IOException"/>
  42370. <doc>
  42371. <![CDATA[{@inheritDoc}]]>
  42372. </doc>
  42373. </method>
  42374. <doc>
  42375. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.
  42376. This is *not* a general-purpose tuple type. In almost all cases, users are
  42377. encouraged to implement their own serializable types, which can perform
  42378. better validation and provide more efficient encodings than this class is
  42379. capable. TupleWritable relies on the join framework for type safety and
  42380. assumes its instances will rarely be persisted, assumptions not only
  42381. incompatible with, but contrary to the general case.
  42382. @see org.apache.hadoop.io.Writable]]>
  42383. </doc>
  42384. </class>
  42385. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  42386. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  42387. <class name="WrappedRecordReader" extends="java.lang.Object"
  42388. abstract="false"
  42389. static="false" final="false" visibility="public"
  42390. deprecated="not deprecated">
  42391. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  42392. <method name="id" return="int"
  42393. abstract="false" native="false" synchronized="false"
  42394. static="false" final="false" visibility="public"
  42395. deprecated="not deprecated">
  42396. <doc>
  42397. <![CDATA[{@inheritDoc}]]>
  42398. </doc>
  42399. </method>
  42400. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  42401. abstract="false" native="false" synchronized="false"
  42402. static="false" final="false" visibility="public"
  42403. deprecated="not deprecated">
  42404. <doc>
  42405. <![CDATA[Return the key at the head of this RR.]]>
  42406. </doc>
  42407. </method>
  42408. <method name="key"
  42409. abstract="false" native="false" synchronized="false"
  42410. static="false" final="false" visibility="public"
  42411. deprecated="not deprecated">
  42412. <param name="qkey" type="org.apache.hadoop.io.WritableComparable"/>
  42413. <exception name="IOException" type="java.io.IOException"/>
  42414. <doc>
  42415. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  42416. </doc>
  42417. </method>
  42418. <method name="hasNext" return="boolean"
  42419. abstract="false" native="false" synchronized="false"
  42420. static="false" final="false" visibility="public"
  42421. deprecated="not deprecated">
  42422. <doc>
  42423. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  42424. is exhausted.]]>
  42425. </doc>
  42426. </method>
  42427. <method name="skip"
  42428. abstract="false" native="false" synchronized="false"
  42429. static="false" final="false" visibility="public"
  42430. deprecated="not deprecated">
  42431. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  42432. <exception name="IOException" type="java.io.IOException"/>
  42433. <doc>
  42434. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  42435. </doc>
  42436. </method>
  42437. <method name="next" return="boolean"
  42438. abstract="false" native="false" synchronized="false"
  42439. static="false" final="false" visibility="protected"
  42440. deprecated="not deprecated">
  42441. <exception name="IOException" type="java.io.IOException"/>
  42442. <doc>
  42443. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  42444. the RR and this are exhausted.]]>
  42445. </doc>
  42446. </method>
  42447. <method name="accept"
  42448. abstract="false" native="false" synchronized="false"
  42449. static="false" final="false" visibility="public"
  42450. deprecated="not deprecated">
  42451. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  42452. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  42453. <exception name="IOException" type="java.io.IOException"/>
  42454. <doc>
  42455. <![CDATA[Add an iterator to the collector at the position occupied by this
  42456. RecordReader over the values in this stream paired with the key
  42457. provided (ie register a stream of values from this source matching K
  42458. with a collector).]]>
  42459. </doc>
  42460. </method>
  42461. <method name="next" return="boolean"
  42462. abstract="false" native="false" synchronized="false"
  42463. static="false" final="false" visibility="public"
  42464. deprecated="not deprecated">
  42465. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  42466. <param name="value" type="org.apache.hadoop.io.Writable"/>
  42467. <exception name="IOException" type="java.io.IOException"/>
  42468. <doc>
  42469. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  42470. get next key-value pair from proxied RR.]]>
  42471. </doc>
  42472. </method>
  42473. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  42474. abstract="false" native="false" synchronized="false"
  42475. static="false" final="false" visibility="public"
  42476. deprecated="not deprecated">
  42477. <doc>
  42478. <![CDATA[Request new key from proxied RR.]]>
  42479. </doc>
  42480. </method>
  42481. <method name="createValue" return="org.apache.hadoop.io.Writable"
  42482. abstract="false" native="false" synchronized="false"
  42483. static="false" final="false" visibility="public"
  42484. deprecated="not deprecated">
  42485. <doc>
  42486. <![CDATA[Request new value from proxied RR.]]>
  42487. </doc>
  42488. </method>
  42489. <method name="getProgress" return="float"
  42490. abstract="false" native="false" synchronized="false"
  42491. static="false" final="false" visibility="public"
  42492. deprecated="not deprecated">
  42493. <exception name="IOException" type="java.io.IOException"/>
  42494. <doc>
  42495. <![CDATA[Request progress from proxied RR.]]>
  42496. </doc>
  42497. </method>
  42498. <method name="getPos" return="long"
  42499. abstract="false" native="false" synchronized="false"
  42500. static="false" final="false" visibility="public"
  42501. deprecated="not deprecated">
  42502. <exception name="IOException" type="java.io.IOException"/>
  42503. <doc>
  42504. <![CDATA[Request position from proxied RR.]]>
  42505. </doc>
  42506. </method>
  42507. <method name="close"
  42508. abstract="false" native="false" synchronized="false"
  42509. static="false" final="false" visibility="public"
  42510. deprecated="not deprecated">
  42511. <exception name="IOException" type="java.io.IOException"/>
  42512. <doc>
  42513. <![CDATA[Forward close request to proxied RR.]]>
  42514. </doc>
  42515. </method>
  42516. <method name="compareTo" return="int"
  42517. abstract="false" native="false" synchronized="false"
  42518. static="false" final="false" visibility="public"
  42519. deprecated="not deprecated">
  42520. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  42521. <doc>
  42522. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  42523. with that of another).]]>
  42524. </doc>
  42525. </method>
  42526. <method name="equals" return="boolean"
  42527. abstract="false" native="false" synchronized="false"
  42528. static="false" final="false" visibility="public"
  42529. deprecated="not deprecated">
  42530. <param name="other" type="java.lang.Object"/>
  42531. <doc>
  42532. <![CDATA[Return true iff compareTo(other) retn true.]]>
  42533. </doc>
  42534. </method>
  42535. <method name="hashCode" return="int"
  42536. abstract="false" native="false" synchronized="false"
  42537. static="false" final="false" visibility="public"
  42538. deprecated="not deprecated">
  42539. </method>
  42540. <doc>
  42541. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  42542. This class keeps track of the &quot;head&quot; key-value pair for the
  42543. provided RecordReader and keeps a store of values matching a key when
  42544. this source is participating in a join.]]>
  42545. </doc>
  42546. </class>
  42547. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  42548. </package>
  42549. <package name="org.apache.hadoop.mapred.lib">
  42550. <!-- start class org.apache.hadoop.mapred.lib.ChainMapper -->
  42551. <class name="ChainMapper" extends="java.lang.Object"
  42552. abstract="false"
  42553. static="false" final="false" visibility="public"
  42554. deprecated="not deprecated">
  42555. <implements name="org.apache.hadoop.mapred.Mapper"/>
  42556. <constructor name="ChainMapper"
  42557. static="false" final="false" visibility="public"
  42558. deprecated="not deprecated">
  42559. <doc>
  42560. <![CDATA[Constructor.]]>
  42561. </doc>
  42562. </constructor>
  42563. <method name="addMapper"
  42564. abstract="false" native="false" synchronized="false"
  42565. static="true" final="false" visibility="public"
  42566. deprecated="not deprecated">
  42567. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  42568. <param name="klass" type="java.lang.Class"/>
  42569. <param name="inputKeyClass" type="java.lang.Class"/>
  42570. <param name="inputValueClass" type="java.lang.Class"/>
  42571. <param name="outputKeyClass" type="java.lang.Class"/>
  42572. <param name="outputValueClass" type="java.lang.Class"/>
  42573. <param name="byValue" type="boolean"/>
  42574. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  42575. <doc>
  42576. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  42577. <p/>
  42578. It has to be specified how key and values are passed from one element of
  42579. the chain to the next, by value or by reference. If a Mapper leverages the
  42580. assumed semantics that the key and values are not modified by the collector
  42581. 'by value' must be used. If the Mapper does not expect this semantics, as
  42582. an optimization to avoid serialization and deserialization 'by reference'
  42583. can be used.
  42584. <p/>
  42585. For the added Mapper the configuration given for it,
  42586. <code>mapperConf</code>, have precedence over the job's JobConf. This
  42587. precedence is in effect when the task is running.
  42588. <p/>
  42589. IMPORTANT: There is no need to specify the output key/value classes for the
  42590. ChainMapper, this is done by the addMapper for the last mapper in the chain
  42591. <p/>
  42592. @param job job's JobConf to add the Mapper class.
  42593. @param klass the Mapper class to add.
  42594. @param inputKeyClass mapper input key class.
  42595. @param inputValueClass mapper input value class.
  42596. @param outputKeyClass mapper output key class.
  42597. @param outputValueClass mapper output value class.
  42598. @param byValue indicates if key/values should be passed by value
  42599. to the next Mapper in the chain, if any.
  42600. @param mapperConf a JobConf with the configuration for the Mapper
  42601. class. It is recommended to use a JobConf without default values using the
  42602. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  42603. </doc>
  42604. </method>
  42605. <method name="configure"
  42606. abstract="false" native="false" synchronized="false"
  42607. static="false" final="false" visibility="public"
  42608. deprecated="not deprecated">
  42609. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  42610. <doc>
  42611. <![CDATA[Configures the ChainMapper and all the Mappers in the chain.
  42612. <p/>
  42613. If this method is overriden <code>super.configure(...)</code> should be
  42614. invoked at the beginning of the overwriter method.]]>
  42615. </doc>
  42616. </method>
  42617. <method name="map"
  42618. abstract="false" native="false" synchronized="false"
  42619. static="false" final="false" visibility="public"
  42620. deprecated="not deprecated">
  42621. <param name="key" type="java.lang.Object"/>
  42622. <param name="value" type="java.lang.Object"/>
  42623. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  42624. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  42625. <exception name="IOException" type="java.io.IOException"/>
  42626. <doc>
  42627. <![CDATA[Chains the <code>map(...)</code> methods of the Mappers in the chain.]]>
  42628. </doc>
  42629. </method>
  42630. <method name="close"
  42631. abstract="false" native="false" synchronized="false"
  42632. static="false" final="false" visibility="public"
  42633. deprecated="not deprecated">
  42634. <exception name="IOException" type="java.io.IOException"/>
  42635. <doc>
  42636. <![CDATA[Closes the ChainMapper and all the Mappers in the chain.
  42637. <p/>
  42638. If this method is overriden <code>super.close()</code> should be
  42639. invoked at the end of the overwriter method.]]>
  42640. </doc>
  42641. </method>
  42642. <doc>
  42643. <![CDATA[The ChainMapper class allows to use multiple Mapper classes within a single
  42644. Map task.
  42645. <p/>
  42646. The Mapper classes are invoked in a chained (or piped) fashion, the output of
  42647. the first becomes the input of the second, and so on until the last Mapper,
  42648. the output of the last Mapper will be written to the task's output.
  42649. <p/>
  42650. The key functionality of this feature is that the Mappers in the chain do not
  42651. need to be aware that they are executed in a chain. This enables having
  42652. reusable specialized Mappers that can be combined to perform composite
  42653. operations within a single task.
  42654. <p/>
  42655. Special care has to be taken when creating chains that the key/values output
  42656. by a Mapper are valid for the following Mapper in the chain. It is assumed
  42657. all Mappers and the Reduce in the chain use maching output and input key and
  42658. value classes as no conversion is done by the chaining code.
  42659. <p/>
  42660. Using the ChainMapper and the ChainReducer classes is possible to compose
  42661. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  42662. immediate benefit of this pattern is a dramatic reduction in disk IO.
  42663. <p/>
  42664. IMPORTANT: There is no need to specify the output key/value classes for the
  42665. ChainMapper, this is done by the addMapper for the last mapper in the chain.
  42666. <p/>
  42667. ChainMapper usage pattern:
  42668. <p/>
  42669. <pre>
  42670. ...
  42671. conf.setJobName("chain");
  42672. conf.setInputFormat(TextInputFormat.class);
  42673. conf.setOutputFormat(TextOutputFormat.class);
  42674. <p/>
  42675. JobConf mapAConf = new JobConf(false);
  42676. ...
  42677. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  42678. Text.class, Text.class, true, mapAConf);
  42679. <p/>
  42680. JobConf mapBConf = new JobConf(false);
  42681. ...
  42682. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  42683. LongWritable.class, Text.class, false, mapBConf);
  42684. <p/>
  42685. JobConf reduceConf = new JobConf(false);
  42686. ...
  42687. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  42688. Text.class, Text.class, true, reduceConf);
  42689. <p/>
  42690. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  42691. LongWritable.class, Text.class, false, null);
  42692. <p/>
  42693. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  42694. LongWritable.class, LongWritable.class, true, null);
  42695. <p/>
  42696. FileInputFormat.setInputPaths(conf, inDir);
  42697. FileOutputFormat.setOutputPath(conf, outDir);
  42698. ...
  42699. <p/>
  42700. JobClient jc = new JobClient(conf);
  42701. RunningJob job = jc.submitJob(conf);
  42702. ...
  42703. </pre>]]>
  42704. </doc>
  42705. </class>
  42706. <!-- end class org.apache.hadoop.mapred.lib.ChainMapper -->
  42707. <!-- start class org.apache.hadoop.mapred.lib.ChainReducer -->
  42708. <class name="ChainReducer" extends="java.lang.Object"
  42709. abstract="false"
  42710. static="false" final="false" visibility="public"
  42711. deprecated="not deprecated">
  42712. <implements name="org.apache.hadoop.mapred.Reducer"/>
  42713. <constructor name="ChainReducer"
  42714. static="false" final="false" visibility="public"
  42715. deprecated="not deprecated">
  42716. <doc>
  42717. <![CDATA[Constructor.]]>
  42718. </doc>
  42719. </constructor>
  42720. <method name="setReducer"
  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.mapred.JobConf"/>
  42725. <param name="klass" type="java.lang.Class"/>
  42726. <param name="inputKeyClass" type="java.lang.Class"/>
  42727. <param name="inputValueClass" type="java.lang.Class"/>
  42728. <param name="outputKeyClass" type="java.lang.Class"/>
  42729. <param name="outputValueClass" type="java.lang.Class"/>
  42730. <param name="byValue" type="boolean"/>
  42731. <param name="reducerConf" type="org.apache.hadoop.mapred.JobConf"/>
  42732. <doc>
  42733. <![CDATA[Sets the Reducer class to the chain job's JobConf.
  42734. <p/>
  42735. It has to be specified how key and values are passed from one element of
  42736. the chain to the next, by value or by reference. If a Reducer leverages the
  42737. assumed semantics that the key and values are not modified by the collector
  42738. 'by value' must be used. If the Reducer does not expect this semantics, as
  42739. an optimization to avoid serialization and deserialization 'by reference'
  42740. can be used.
  42741. <p/>
  42742. For the added Reducer the configuration given for it,
  42743. <code>reducerConf</code>, have precedence over the job's JobConf. This
  42744. precedence is in effect when the task is running.
  42745. <p/>
  42746. IMPORTANT: There is no need to specify the output key/value classes for the
  42747. ChainReducer, this is done by the setReducer or the addMapper for the last
  42748. element in the chain.
  42749. @param job job's JobConf to add the Reducer class.
  42750. @param klass the Reducer class to add.
  42751. @param inputKeyClass reducer input key class.
  42752. @param inputValueClass reducer input value class.
  42753. @param outputKeyClass reducer output key class.
  42754. @param outputValueClass reducer output value class.
  42755. @param byValue indicates if key/values should be passed by value
  42756. to the next Mapper in the chain, if any.
  42757. @param reducerConf a JobConf with the configuration for the Reducer
  42758. class. It is recommended to use a JobConf without default values using the
  42759. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  42760. </doc>
  42761. </method>
  42762. <method name="addMapper"
  42763. abstract="false" native="false" synchronized="false"
  42764. static="true" final="false" visibility="public"
  42765. deprecated="not deprecated">
  42766. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  42767. <param name="klass" type="java.lang.Class"/>
  42768. <param name="inputKeyClass" type="java.lang.Class"/>
  42769. <param name="inputValueClass" type="java.lang.Class"/>
  42770. <param name="outputKeyClass" type="java.lang.Class"/>
  42771. <param name="outputValueClass" type="java.lang.Class"/>
  42772. <param name="byValue" type="boolean"/>
  42773. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  42774. <doc>
  42775. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  42776. <p/>
  42777. It has to be specified how key and values are passed from one element of
  42778. the chain to the next, by value or by reference. If a Mapper leverages the
  42779. assumed semantics that the key and values are not modified by the collector
  42780. 'by value' must be used. If the Mapper does not expect this semantics, as
  42781. an optimization to avoid serialization and deserialization 'by reference'
  42782. can be used.
  42783. <p/>
  42784. For the added Mapper the configuration given for it,
  42785. <code>mapperConf</code>, have precedence over the job's JobConf. This
  42786. precedence is in effect when the task is running.
  42787. <p/>
  42788. IMPORTANT: There is no need to specify the output key/value classes for the
  42789. ChainMapper, this is done by the addMapper for the last mapper in the chain
  42790. .
  42791. @param job chain job's JobConf to add the Mapper class.
  42792. @param klass the Mapper class to add.
  42793. @param inputKeyClass mapper input key class.
  42794. @param inputValueClass mapper input value class.
  42795. @param outputKeyClass mapper output key class.
  42796. @param outputValueClass mapper output value class.
  42797. @param byValue indicates if key/values should be passed by value
  42798. to the next Mapper in the chain, if any.
  42799. @param mapperConf a JobConf with the configuration for the Mapper
  42800. class. It is recommended to use a JobConf without default values using the
  42801. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  42802. </doc>
  42803. </method>
  42804. <method name="configure"
  42805. abstract="false" native="false" synchronized="false"
  42806. static="false" final="false" visibility="public"
  42807. deprecated="not deprecated">
  42808. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  42809. <doc>
  42810. <![CDATA[Configures the ChainReducer, the Reducer and all the Mappers in the chain.
  42811. <p/>
  42812. If this method is overriden <code>super.configure(...)</code> should be
  42813. invoked at the beginning of the overwriter method.]]>
  42814. </doc>
  42815. </method>
  42816. <method name="reduce"
  42817. abstract="false" native="false" synchronized="false"
  42818. static="false" final="false" visibility="public"
  42819. deprecated="not deprecated">
  42820. <param name="key" type="java.lang.Object"/>
  42821. <param name="values" type="java.util.Iterator"/>
  42822. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  42823. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  42824. <exception name="IOException" type="java.io.IOException"/>
  42825. <doc>
  42826. <![CDATA[Chains the <code>reduce(...)</code> method of the Reducer with the
  42827. <code>map(...) </code> methods of the Mappers in the chain.]]>
  42828. </doc>
  42829. </method>
  42830. <method name="close"
  42831. abstract="false" native="false" synchronized="false"
  42832. static="false" final="false" visibility="public"
  42833. deprecated="not deprecated">
  42834. <exception name="IOException" type="java.io.IOException"/>
  42835. <doc>
  42836. <![CDATA[Closes the ChainReducer, the Reducer and all the Mappers in the chain.
  42837. <p/>
  42838. If this method is overriden <code>super.close()</code> should be
  42839. invoked at the end of the overwriter method.]]>
  42840. </doc>
  42841. </method>
  42842. <doc>
  42843. <![CDATA[The ChainReducer class allows to chain multiple Mapper classes after a
  42844. Reducer within the Reducer task.
  42845. <p/>
  42846. For each record output by the Reducer, the Mapper classes are invoked in a
  42847. chained (or piped) fashion, the output of the first becomes the input of the
  42848. second, and so on until the last Mapper, the output of the last Mapper will
  42849. be written to the task's output.
  42850. <p/>
  42851. The key functionality of this feature is that the Mappers in the chain do not
  42852. need to be aware that they are executed after the Reducer or in a chain.
  42853. This enables having reusable specialized Mappers that can be combined to
  42854. perform composite operations within a single task.
  42855. <p/>
  42856. Special care has to be taken when creating chains that the key/values output
  42857. by a Mapper are valid for the following Mapper in the chain. It is assumed
  42858. all Mappers and the Reduce in the chain use maching output and input key and
  42859. value classes as no conversion is done by the chaining code.
  42860. <p/>
  42861. Using the ChainMapper and the ChainReducer classes is possible to compose
  42862. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  42863. immediate benefit of this pattern is a dramatic reduction in disk IO.
  42864. <p/>
  42865. IMPORTANT: There is no need to specify the output key/value classes for the
  42866. ChainReducer, this is done by the setReducer or the addMapper for the last
  42867. element in the chain.
  42868. <p/>
  42869. ChainReducer usage pattern:
  42870. <p/>
  42871. <pre>
  42872. ...
  42873. conf.setJobName("chain");
  42874. conf.setInputFormat(TextInputFormat.class);
  42875. conf.setOutputFormat(TextOutputFormat.class);
  42876. <p/>
  42877. JobConf mapAConf = new JobConf(false);
  42878. ...
  42879. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  42880. Text.class, Text.class, true, mapAConf);
  42881. <p/>
  42882. JobConf mapBConf = new JobConf(false);
  42883. ...
  42884. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  42885. LongWritable.class, Text.class, false, mapBConf);
  42886. <p/>
  42887. JobConf reduceConf = new JobConf(false);
  42888. ...
  42889. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  42890. Text.class, Text.class, true, reduceConf);
  42891. <p/>
  42892. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  42893. LongWritable.class, Text.class, false, null);
  42894. <p/>
  42895. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  42896. LongWritable.class, LongWritable.class, true, null);
  42897. <p/>
  42898. FileInputFormat.setInputPaths(conf, inDir);
  42899. FileOutputFormat.setOutputPath(conf, outDir);
  42900. ...
  42901. <p/>
  42902. JobClient jc = new JobClient(conf);
  42903. RunningJob job = jc.submitJob(conf);
  42904. ...
  42905. </pre>]]>
  42906. </doc>
  42907. </class>
  42908. <!-- end class org.apache.hadoop.mapred.lib.ChainReducer -->
  42909. <!-- start class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  42910. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  42911. abstract="true"
  42912. static="false" final="false" visibility="public"
  42913. deprecated="not deprecated">
  42914. <constructor name="CombineFileInputFormat"
  42915. static="false" final="false" visibility="public"
  42916. deprecated="not deprecated">
  42917. <doc>
  42918. <![CDATA[default constructor]]>
  42919. </doc>
  42920. </constructor>
  42921. <method name="setMaxSplitSize"
  42922. abstract="false" native="false" synchronized="false"
  42923. static="false" final="false" visibility="protected"
  42924. deprecated="not deprecated">
  42925. <param name="maxSplitSize" type="long"/>
  42926. <doc>
  42927. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  42928. approximately equal to the specified size.]]>
  42929. </doc>
  42930. </method>
  42931. <method name="setMinSplitSizeNode"
  42932. abstract="false" native="false" synchronized="false"
  42933. static="false" final="false" visibility="protected"
  42934. deprecated="not deprecated">
  42935. <param name="minSplitSizeNode" type="long"/>
  42936. <doc>
  42937. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  42938. This applies to data that is left over after combining data on a single
  42939. node into splits that are of maximum size specified by maxSplitSize.
  42940. This leftover data will be combined into its own split if its size
  42941. exceeds minSplitSizeNode.]]>
  42942. </doc>
  42943. </method>
  42944. <method name="setMinSplitSizeRack"
  42945. abstract="false" native="false" synchronized="false"
  42946. static="false" final="false" visibility="protected"
  42947. deprecated="not deprecated">
  42948. <param name="minSplitSizeRack" type="long"/>
  42949. <doc>
  42950. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  42951. This applies to data that is left over after combining data on a single
  42952. rack into splits that are of maximum size specified by maxSplitSize.
  42953. This leftover data will be combined into its own split if its size
  42954. exceeds minSplitSizeRack.]]>
  42955. </doc>
  42956. </method>
  42957. <method name="createPool"
  42958. abstract="false" native="false" synchronized="false"
  42959. static="false" final="false" visibility="protected"
  42960. deprecated="not deprecated">
  42961. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  42962. <param name="filters" type="java.util.List"/>
  42963. <doc>
  42964. <![CDATA[Create a new pool and add the filters to it.
  42965. A split cannot have files from different pools.]]>
  42966. </doc>
  42967. </method>
  42968. <method name="createPool"
  42969. abstract="false" native="false" synchronized="false"
  42970. static="false" final="false" visibility="protected"
  42971. deprecated="not deprecated">
  42972. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  42973. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  42974. <doc>
  42975. <![CDATA[Create a new pool and add the filters to it.
  42976. A pathname can satisfy any one of the specified filters.
  42977. A split cannot have files from different pools.]]>
  42978. </doc>
  42979. </method>
  42980. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  42981. abstract="false" native="false" synchronized="false"
  42982. static="false" final="false" visibility="public"
  42983. deprecated="not deprecated">
  42984. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  42985. <param name="numSplits" type="int"/>
  42986. <exception name="IOException" type="java.io.IOException"/>
  42987. </method>
  42988. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  42989. abstract="true" native="false" synchronized="false"
  42990. static="false" final="false" visibility="public"
  42991. deprecated="not deprecated">
  42992. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  42993. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  42994. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  42995. <exception name="IOException" type="java.io.IOException"/>
  42996. <doc>
  42997. <![CDATA[This is not implemented yet.]]>
  42998. </doc>
  42999. </method>
  43000. <doc>
  43001. <![CDATA[An abstract {@link org.apache.hadoop.mapred.InputFormat} that returns {@link CombineFileSplit}'s
  43002. in {@link org.apache.hadoop.mapred.InputFormat#getSplits(JobConf, int)} method.
  43003. Splits are constructed from the files under the input paths.
  43004. A split cannot have files from different pools.
  43005. Each split returned may contain blocks from different files.
  43006. If a maxSplitSize is specified, then blocks on the same node are
  43007. combined to form a single split. Blocks that are left over are
  43008. then combined with other blocks in the same rack.
  43009. If maxSplitSize is not specified, then blocks from the same rack
  43010. are combined in a single split; no attempt is made to create
  43011. node-local splits.
  43012. If the maxSplitSize is equal to the block size, then this class
  43013. is similar to the default spliting behaviour in Hadoop: each
  43014. block is a locally processed split.
  43015. Subclasses implement {@link org.apache.hadoop.mapred.InputFormat#getRecordReader(InputSplit, JobConf, Reporter)}
  43016. to construct <code>RecordReader</code>'s for <code>CombineFileSplit</code>'s.
  43017. @see CombineFileSplit]]>
  43018. </doc>
  43019. </class>
  43020. <!-- end class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  43021. <!-- start class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  43022. <class name="CombineFileRecordReader" extends="java.lang.Object"
  43023. abstract="false"
  43024. static="false" final="false" visibility="public"
  43025. deprecated="not deprecated">
  43026. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  43027. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.CombineFileSplit, org.apache.hadoop.mapred.Reporter, java.lang.Class"
  43028. static="false" final="false" visibility="public"
  43029. deprecated="not deprecated">
  43030. <exception name="IOException" type="java.io.IOException"/>
  43031. <doc>
  43032. <![CDATA[A generic RecordReader that can hand out different recordReaders
  43033. for each chunk in the CombineFileSplit.]]>
  43034. </doc>
  43035. </constructor>
  43036. <method name="next" return="boolean"
  43037. abstract="false" native="false" synchronized="false"
  43038. static="false" final="false" visibility="public"
  43039. deprecated="not deprecated">
  43040. <param name="key" type="java.lang.Object"/>
  43041. <param name="value" type="java.lang.Object"/>
  43042. <exception name="IOException" type="java.io.IOException"/>
  43043. </method>
  43044. <method name="createKey" return="java.lang.Object"
  43045. abstract="false" native="false" synchronized="false"
  43046. static="false" final="false" visibility="public"
  43047. deprecated="not deprecated">
  43048. </method>
  43049. <method name="createValue" return="java.lang.Object"
  43050. abstract="false" native="false" synchronized="false"
  43051. static="false" final="false" visibility="public"
  43052. deprecated="not deprecated">
  43053. </method>
  43054. <method name="getPos" return="long"
  43055. abstract="false" native="false" synchronized="false"
  43056. static="false" final="false" visibility="public"
  43057. deprecated="not deprecated">
  43058. <exception name="IOException" type="java.io.IOException"/>
  43059. <doc>
  43060. <![CDATA[return the amount of data processed]]>
  43061. </doc>
  43062. </method>
  43063. <method name="close"
  43064. abstract="false" native="false" synchronized="false"
  43065. static="false" final="false" visibility="public"
  43066. deprecated="not deprecated">
  43067. <exception name="IOException" type="java.io.IOException"/>
  43068. </method>
  43069. <method name="getProgress" return="float"
  43070. abstract="false" native="false" synchronized="false"
  43071. static="false" final="false" visibility="public"
  43072. deprecated="not deprecated">
  43073. <exception name="IOException" type="java.io.IOException"/>
  43074. <doc>
  43075. <![CDATA[return progress based on the amount of data processed so far.]]>
  43076. </doc>
  43077. </method>
  43078. <method name="initNextRecordReader" return="boolean"
  43079. abstract="false" native="false" synchronized="false"
  43080. static="false" final="false" visibility="protected"
  43081. deprecated="not deprecated">
  43082. <exception name="IOException" type="java.io.IOException"/>
  43083. <doc>
  43084. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  43085. </doc>
  43086. </method>
  43087. <field name="split" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  43088. transient="false" volatile="false"
  43089. static="false" final="false" visibility="protected"
  43090. deprecated="not deprecated">
  43091. </field>
  43092. <field name="jc" type="org.apache.hadoop.mapred.JobConf"
  43093. transient="false" volatile="false"
  43094. static="false" final="false" visibility="protected"
  43095. deprecated="not deprecated">
  43096. </field>
  43097. <field name="reporter" type="org.apache.hadoop.mapred.Reporter"
  43098. transient="false" volatile="false"
  43099. static="false" final="false" visibility="protected"
  43100. deprecated="not deprecated">
  43101. </field>
  43102. <field name="rrClass" type="java.lang.Class"
  43103. transient="false" volatile="false"
  43104. static="false" final="false" visibility="protected"
  43105. deprecated="not deprecated">
  43106. </field>
  43107. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  43108. transient="false" volatile="false"
  43109. static="false" final="false" visibility="protected"
  43110. deprecated="not deprecated">
  43111. </field>
  43112. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  43113. transient="false" volatile="false"
  43114. static="false" final="false" visibility="protected"
  43115. deprecated="not deprecated">
  43116. </field>
  43117. <field name="idx" type="int"
  43118. transient="false" volatile="false"
  43119. static="false" final="false" visibility="protected"
  43120. deprecated="not deprecated">
  43121. </field>
  43122. <field name="progress" type="long"
  43123. transient="false" volatile="false"
  43124. static="false" final="false" visibility="protected"
  43125. deprecated="not deprecated">
  43126. </field>
  43127. <field name="curReader" type="org.apache.hadoop.mapred.RecordReader"
  43128. transient="false" volatile="false"
  43129. static="false" final="false" visibility="protected"
  43130. deprecated="not deprecated">
  43131. </field>
  43132. <doc>
  43133. <![CDATA[A generic RecordReader that can hand out different recordReaders
  43134. for each chunk in a {@link CombineFileSplit}.
  43135. A CombineFileSplit can combine data chunks from multiple files.
  43136. This class allows using different RecordReaders for processing
  43137. these data chunks from different files.
  43138. @see CombineFileSplit]]>
  43139. </doc>
  43140. </class>
  43141. <!-- end class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  43142. <!-- start class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  43143. <class name="CombineFileSplit" extends="java.lang.Object"
  43144. abstract="false"
  43145. static="false" final="false" visibility="public"
  43146. deprecated="not deprecated">
  43147. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  43148. <constructor name="CombineFileSplit"
  43149. static="false" final="false" visibility="public"
  43150. deprecated="not deprecated">
  43151. <doc>
  43152. <![CDATA[default constructor]]>
  43153. </doc>
  43154. </constructor>
  43155. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  43156. static="false" final="false" visibility="public"
  43157. deprecated="not deprecated">
  43158. </constructor>
  43159. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  43160. static="false" final="false" visibility="public"
  43161. deprecated="not deprecated">
  43162. </constructor>
  43163. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  43164. static="false" final="false" visibility="public"
  43165. deprecated="not deprecated">
  43166. <exception name="IOException" type="java.io.IOException"/>
  43167. <doc>
  43168. <![CDATA[Copy constructor]]>
  43169. </doc>
  43170. </constructor>
  43171. <method name="getJob" return="org.apache.hadoop.mapred.JobConf"
  43172. abstract="false" native="false" synchronized="false"
  43173. static="false" final="false" visibility="public"
  43174. deprecated="not deprecated">
  43175. </method>
  43176. <method name="getLength" return="long"
  43177. abstract="false" native="false" synchronized="false"
  43178. static="false" final="false" visibility="public"
  43179. deprecated="not deprecated">
  43180. </method>
  43181. <method name="getStartOffsets" return="long[]"
  43182. abstract="false" native="false" synchronized="false"
  43183. static="false" final="false" visibility="public"
  43184. deprecated="not deprecated">
  43185. <doc>
  43186. <![CDATA[Returns an array containing the startoffsets of the files in the split]]>
  43187. </doc>
  43188. </method>
  43189. <method name="getLengths" return="long[]"
  43190. abstract="false" native="false" synchronized="false"
  43191. static="false" final="false" visibility="public"
  43192. deprecated="not deprecated">
  43193. <doc>
  43194. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  43195. </doc>
  43196. </method>
  43197. <method name="getOffset" return="long"
  43198. abstract="false" native="false" synchronized="false"
  43199. static="false" final="false" visibility="public"
  43200. deprecated="not deprecated">
  43201. <param name="i" type="int"/>
  43202. <doc>
  43203. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  43204. </doc>
  43205. </method>
  43206. <method name="getLength" return="long"
  43207. abstract="false" native="false" synchronized="false"
  43208. static="false" final="false" visibility="public"
  43209. deprecated="not deprecated">
  43210. <param name="i" type="int"/>
  43211. <doc>
  43212. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  43213. </doc>
  43214. </method>
  43215. <method name="getNumPaths" return="int"
  43216. abstract="false" native="false" synchronized="false"
  43217. static="false" final="false" visibility="public"
  43218. deprecated="not deprecated">
  43219. <doc>
  43220. <![CDATA[Returns the number of Paths in the split]]>
  43221. </doc>
  43222. </method>
  43223. <method name="getPath" return="org.apache.hadoop.fs.Path"
  43224. abstract="false" native="false" synchronized="false"
  43225. static="false" final="false" visibility="public"
  43226. deprecated="not deprecated">
  43227. <param name="i" type="int"/>
  43228. <doc>
  43229. <![CDATA[Returns the i<sup>th</sup> Path]]>
  43230. </doc>
  43231. </method>
  43232. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  43233. abstract="false" native="false" synchronized="false"
  43234. static="false" final="false" visibility="public"
  43235. deprecated="not deprecated">
  43236. <doc>
  43237. <![CDATA[Returns all the Paths in the split]]>
  43238. </doc>
  43239. </method>
  43240. <method name="getLocations" return="java.lang.String[]"
  43241. abstract="false" native="false" synchronized="false"
  43242. static="false" final="false" visibility="public"
  43243. deprecated="not deprecated">
  43244. <exception name="IOException" type="java.io.IOException"/>
  43245. <doc>
  43246. <![CDATA[Returns all the Paths where this input-split resides]]>
  43247. </doc>
  43248. </method>
  43249. <method name="readFields"
  43250. abstract="false" native="false" synchronized="false"
  43251. static="false" final="false" visibility="public"
  43252. deprecated="not deprecated">
  43253. <param name="in" type="java.io.DataInput"/>
  43254. <exception name="IOException" type="java.io.IOException"/>
  43255. </method>
  43256. <method name="write"
  43257. abstract="false" native="false" synchronized="false"
  43258. static="false" final="false" visibility="public"
  43259. deprecated="not deprecated">
  43260. <param name="out" type="java.io.DataOutput"/>
  43261. <exception name="IOException" type="java.io.IOException"/>
  43262. </method>
  43263. <method name="toString" return="java.lang.String"
  43264. abstract="false" native="false" synchronized="false"
  43265. static="false" final="false" visibility="public"
  43266. deprecated="not deprecated">
  43267. </method>
  43268. <doc>
  43269. <![CDATA[A sub-collection of input files. Unlike {@link org.apache.hadoop.mapred.FileSplit},
  43270. CombineFileSplit * class does not represent a split of a file, but a split of input files
  43271. into smaller sets. A split may contain blocks from different file but all
  43272. the blocks in the same split are probably local to some rack <br>
  43273. CombineFileSplit can be used to implement {@link org.apache.hadoop.mapred.RecordReader}'s,
  43274. with reading one record per file.
  43275. @see org.apache.hadoop.mapred.FileSplit
  43276. @see CombineFileInputFormat]]>
  43277. </doc>
  43278. </class>
  43279. <!-- end class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  43280. <!-- start class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  43281. <class name="DelegatingInputFormat" extends="java.lang.Object"
  43282. abstract="false"
  43283. static="false" final="false" visibility="public"
  43284. deprecated="not deprecated">
  43285. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  43286. <constructor name="DelegatingInputFormat"
  43287. static="false" final="false" visibility="public"
  43288. deprecated="not deprecated">
  43289. </constructor>
  43290. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  43291. abstract="false" native="false" synchronized="false"
  43292. static="false" final="false" visibility="public"
  43293. deprecated="not deprecated">
  43294. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43295. <param name="numSplits" type="int"/>
  43296. <exception name="IOException" type="java.io.IOException"/>
  43297. </method>
  43298. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  43299. abstract="false" native="false" synchronized="false"
  43300. static="false" final="false" visibility="public"
  43301. deprecated="not deprecated">
  43302. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  43303. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43304. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  43305. <exception name="IOException" type="java.io.IOException"/>
  43306. </method>
  43307. <doc>
  43308. <![CDATA[An {@link InputFormat} that delegates behaviour of paths to multiple other
  43309. InputFormats.
  43310. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  43311. </doc>
  43312. </class>
  43313. <!-- end class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  43314. <!-- start class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  43315. <class name="DelegatingMapper" extends="java.lang.Object"
  43316. abstract="false"
  43317. static="false" final="false" visibility="public"
  43318. deprecated="not deprecated">
  43319. <implements name="org.apache.hadoop.mapred.Mapper"/>
  43320. <constructor name="DelegatingMapper"
  43321. static="false" final="false" visibility="public"
  43322. deprecated="not deprecated">
  43323. </constructor>
  43324. <method name="map"
  43325. abstract="false" native="false" synchronized="false"
  43326. static="false" final="false" visibility="public"
  43327. deprecated="not deprecated">
  43328. <param name="key" type="java.lang.Object"/>
  43329. <param name="value" type="java.lang.Object"/>
  43330. <param name="outputCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  43331. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  43332. <exception name="IOException" type="java.io.IOException"/>
  43333. </method>
  43334. <method name="configure"
  43335. abstract="false" native="false" synchronized="false"
  43336. static="false" final="false" visibility="public"
  43337. deprecated="not deprecated">
  43338. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43339. </method>
  43340. <method name="close"
  43341. abstract="false" native="false" synchronized="false"
  43342. static="false" final="false" visibility="public"
  43343. deprecated="not deprecated">
  43344. <exception name="IOException" type="java.io.IOException"/>
  43345. </method>
  43346. <doc>
  43347. <![CDATA[An {@link Mapper} that delegates behaviour of paths to multiple other
  43348. mappers.
  43349. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  43350. </doc>
  43351. </class>
  43352. <!-- end class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  43353. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  43354. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  43355. abstract="false"
  43356. static="false" final="false" visibility="public"
  43357. deprecated="not deprecated">
  43358. <implements name="org.apache.hadoop.mapred.Mapper"/>
  43359. <implements name="org.apache.hadoop.mapred.Reducer"/>
  43360. <constructor name="FieldSelectionMapReduce"
  43361. static="false" final="false" visibility="public"
  43362. deprecated="not deprecated">
  43363. </constructor>
  43364. <method name="map"
  43365. abstract="false" native="false" synchronized="false"
  43366. static="false" final="false" visibility="public"
  43367. deprecated="not deprecated">
  43368. <param name="key" type="java.lang.Object"/>
  43369. <param name="val" type="java.lang.Object"/>
  43370. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  43371. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  43372. <exception name="IOException" type="java.io.IOException"/>
  43373. <doc>
  43374. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  43375. </doc>
  43376. </method>
  43377. <method name="configure"
  43378. abstract="false" native="false" synchronized="false"
  43379. static="false" final="false" visibility="public"
  43380. deprecated="not deprecated">
  43381. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43382. </method>
  43383. <method name="close"
  43384. abstract="false" native="false" synchronized="false"
  43385. static="false" final="false" visibility="public"
  43386. deprecated="not deprecated">
  43387. <exception name="IOException" type="java.io.IOException"/>
  43388. </method>
  43389. <method name="reduce"
  43390. abstract="false" native="false" synchronized="false"
  43391. static="false" final="false" visibility="public"
  43392. deprecated="not deprecated">
  43393. <param name="key" type="org.apache.hadoop.io.Text"/>
  43394. <param name="values" type="java.util.Iterator"/>
  43395. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  43396. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  43397. <exception name="IOException" type="java.io.IOException"/>
  43398. </method>
  43399. <field name="LOG" type="org.apache.commons.logging.Log"
  43400. transient="false" volatile="false"
  43401. static="true" final="true" visibility="public"
  43402. deprecated="not deprecated">
  43403. </field>
  43404. <doc>
  43405. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  43406. field selections in a manner similar to unix cut. The input data is treated
  43407. as fields separated by a user specified separator (the default value is
  43408. "\t"). The user can specify a list of fields that form the map output keys,
  43409. and a list of fields that form the map output values. If the inputformat is
  43410. TextInputFormat, the mapper will ignore the key to the map function. and the
  43411. fields are from the value only. Otherwise, the fields are the union of those
  43412. from the key and those from the value.
  43413. The field separator is under attribute "mapred.data.field.separator"
  43414. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  43415. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  43416. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  43417. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  43418. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  43419. the fields starting from field 3. The open range field spec applies value fields only.
  43420. They have no effect on the key fields.
  43421. 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,
  43422. and use fields 6,5,1,2,3,7 and above for values.
  43423. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  43424. The reducer extracts output key/value pairs in a similar manner, except that
  43425. the key is never ignored.]]>
  43426. </doc>
  43427. </class>
  43428. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  43429. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  43430. <class name="HashPartitioner" extends="java.lang.Object"
  43431. abstract="false"
  43432. static="false" final="false" visibility="public"
  43433. deprecated="Use
  43434. {@link org.apache.hadoop.mapreduce.lib.partition.HashPartitioner} instead.">
  43435. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  43436. <constructor name="HashPartitioner"
  43437. static="false" final="false" visibility="public"
  43438. deprecated="not deprecated">
  43439. </constructor>
  43440. <method name="configure"
  43441. abstract="false" native="false" synchronized="false"
  43442. static="false" final="false" visibility="public"
  43443. deprecated="not deprecated">
  43444. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43445. </method>
  43446. <method name="getPartition" return="int"
  43447. abstract="false" native="false" synchronized="false"
  43448. static="false" final="false" visibility="public"
  43449. deprecated="not deprecated">
  43450. <param name="key" type="java.lang.Object"/>
  43451. <param name="value" type="java.lang.Object"/>
  43452. <param name="numReduceTasks" type="int"/>
  43453. <doc>
  43454. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  43455. </doc>
  43456. </method>
  43457. <doc>
  43458. <![CDATA[Partition keys by their {@link Object#hashCode()}.
  43459. @deprecated Use
  43460. {@link org.apache.hadoop.mapreduce.lib.partition.HashPartitioner} instead.]]>
  43461. </doc>
  43462. </class>
  43463. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  43464. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  43465. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  43466. abstract="false"
  43467. static="false" final="false" visibility="public"
  43468. deprecated="Use {@link org.apache.hadoop.mapreduce.Mapper} instead.">
  43469. <implements name="org.apache.hadoop.mapred.Mapper"/>
  43470. <constructor name="IdentityMapper"
  43471. static="false" final="false" visibility="public"
  43472. deprecated="not deprecated">
  43473. </constructor>
  43474. <method name="map"
  43475. abstract="false" native="false" synchronized="false"
  43476. static="false" final="false" visibility="public"
  43477. deprecated="not deprecated">
  43478. <param name="key" type="java.lang.Object"/>
  43479. <param name="val" type="java.lang.Object"/>
  43480. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  43481. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  43482. <exception name="IOException" type="java.io.IOException"/>
  43483. <doc>
  43484. <![CDATA[The identify function. Input key/value pair is written directly to
  43485. output.]]>
  43486. </doc>
  43487. </method>
  43488. <doc>
  43489. <![CDATA[Implements the identity function, mapping inputs directly to outputs.
  43490. @deprecated Use {@link org.apache.hadoop.mapreduce.Mapper} instead.]]>
  43491. </doc>
  43492. </class>
  43493. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  43494. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  43495. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  43496. abstract="false"
  43497. static="false" final="false" visibility="public"
  43498. deprecated="Use {@link org.apache.hadoop.mapreduce.Reducer} instead.">
  43499. <implements name="org.apache.hadoop.mapred.Reducer"/>
  43500. <constructor name="IdentityReducer"
  43501. static="false" final="false" visibility="public"
  43502. deprecated="not deprecated">
  43503. </constructor>
  43504. <method name="reduce"
  43505. abstract="false" native="false" synchronized="false"
  43506. static="false" final="false" visibility="public"
  43507. deprecated="not deprecated">
  43508. <param name="key" type="java.lang.Object"/>
  43509. <param name="values" type="java.util.Iterator"/>
  43510. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  43511. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  43512. <exception name="IOException" type="java.io.IOException"/>
  43513. <doc>
  43514. <![CDATA[Writes all keys and values directly to output.]]>
  43515. </doc>
  43516. </method>
  43517. <doc>
  43518. <![CDATA[Performs no reduction, writing all input values directly to the output.
  43519. @deprecated Use {@link org.apache.hadoop.mapreduce.Reducer} instead.]]>
  43520. </doc>
  43521. </class>
  43522. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  43523. <!-- start class org.apache.hadoop.mapred.lib.InputSampler -->
  43524. <class name="InputSampler" extends="java.lang.Object"
  43525. abstract="false"
  43526. static="false" final="false" visibility="public"
  43527. deprecated="not deprecated">
  43528. <implements name="org.apache.hadoop.util.Tool"/>
  43529. <constructor name="InputSampler" type="org.apache.hadoop.mapred.JobConf"
  43530. static="false" final="false" visibility="public"
  43531. deprecated="not deprecated">
  43532. </constructor>
  43533. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  43534. abstract="false" native="false" synchronized="false"
  43535. static="false" final="false" visibility="public"
  43536. deprecated="not deprecated">
  43537. </method>
  43538. <method name="setConf"
  43539. abstract="false" native="false" synchronized="false"
  43540. static="false" final="false" visibility="public"
  43541. deprecated="not deprecated">
  43542. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43543. </method>
  43544. <method name="writePartitionFile"
  43545. abstract="false" native="false" synchronized="false"
  43546. static="true" final="false" visibility="public"
  43547. deprecated="not deprecated">
  43548. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43549. <param name="sampler" type="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  43550. <exception name="IOException" type="java.io.IOException"/>
  43551. <doc>
  43552. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  43553. Queries the sampler for a sample keyset, sorts by the output key
  43554. comparator, selects the keys for each rank, and writes to the destination
  43555. returned from {@link
  43556. org.apache.hadoop.mapred.lib.TotalOrderPartitioner#getPartitionFile}.]]>
  43557. </doc>
  43558. </method>
  43559. <method name="run" return="int"
  43560. abstract="false" native="false" synchronized="false"
  43561. static="false" final="false" visibility="public"
  43562. deprecated="not deprecated">
  43563. <param name="args" type="java.lang.String[]"/>
  43564. <exception name="Exception" type="java.lang.Exception"/>
  43565. <doc>
  43566. <![CDATA[Driver for InputSampler from the command line.
  43567. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  43568. </doc>
  43569. </method>
  43570. <method name="main"
  43571. abstract="false" native="false" synchronized="false"
  43572. static="true" final="false" visibility="public"
  43573. deprecated="not deprecated">
  43574. <param name="args" type="java.lang.String[]"/>
  43575. <exception name="Exception" type="java.lang.Exception"/>
  43576. </method>
  43577. <doc>
  43578. <![CDATA[Utility for collecting samples and writing a partition file for
  43579. {@link org.apache.hadoop.mapred.lib.TotalOrderPartitioner}.]]>
  43580. </doc>
  43581. </class>
  43582. <!-- end class org.apache.hadoop.mapred.lib.InputSampler -->
  43583. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  43584. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  43585. abstract="false"
  43586. static="true" final="false" visibility="public"
  43587. deprecated="not deprecated">
  43588. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  43589. <constructor name="InputSampler.IntervalSampler" type="double"
  43590. static="false" final="false" visibility="public"
  43591. deprecated="not deprecated">
  43592. <doc>
  43593. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  43594. @param freq The frequency with which records will be emitted.]]>
  43595. </doc>
  43596. </constructor>
  43597. <constructor name="InputSampler.IntervalSampler" type="double, int"
  43598. static="false" final="false" visibility="public"
  43599. deprecated="not deprecated">
  43600. <doc>
  43601. <![CDATA[Create a new IntervalSampler.
  43602. @param freq The frequency with which records will be emitted.
  43603. @param maxSplitsSampled The maximum number of splits to examine.
  43604. @see #getSample]]>
  43605. </doc>
  43606. </constructor>
  43607. <method name="getSample" return="java.lang.Object[]"
  43608. abstract="false" native="false" synchronized="false"
  43609. static="false" final="false" visibility="public"
  43610. deprecated="not deprecated">
  43611. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  43612. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43613. <exception name="IOException" type="java.io.IOException"/>
  43614. <doc>
  43615. <![CDATA[For each split sampled, emit when the ratio of the number of records
  43616. retained to the total record count is less than the specified
  43617. frequency.]]>
  43618. </doc>
  43619. </method>
  43620. <doc>
  43621. <![CDATA[Sample from s splits at regular intervals.
  43622. Useful for sorted data.]]>
  43623. </doc>
  43624. </class>
  43625. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  43626. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  43627. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  43628. abstract="false"
  43629. static="true" final="false" visibility="public"
  43630. deprecated="not deprecated">
  43631. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  43632. <constructor name="InputSampler.RandomSampler" type="double, int"
  43633. static="false" final="false" visibility="public"
  43634. deprecated="not deprecated">
  43635. <doc>
  43636. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  43637. This will read every split at the client, which is very expensive.
  43638. @param freq Probability with which a key will be chosen.
  43639. @param numSamples Total number of samples to obtain from all selected
  43640. splits.]]>
  43641. </doc>
  43642. </constructor>
  43643. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  43644. static="false" final="false" visibility="public"
  43645. deprecated="not deprecated">
  43646. <doc>
  43647. <![CDATA[Create a new RandomSampler.
  43648. @param freq Probability with which a key will be chosen.
  43649. @param numSamples Total number of samples to obtain from all selected
  43650. splits.
  43651. @param maxSplitsSampled The maximum number of splits to examine.]]>
  43652. </doc>
  43653. </constructor>
  43654. <method name="getSample" return="java.lang.Object[]"
  43655. abstract="false" native="false" synchronized="false"
  43656. static="false" final="false" visibility="public"
  43657. deprecated="not deprecated">
  43658. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  43659. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43660. <exception name="IOException" type="java.io.IOException"/>
  43661. <doc>
  43662. <![CDATA[Randomize the split order, then take the specified number of keys from
  43663. each split sampled, where each key is selected with the specified
  43664. probability and possibly replaced by a subsequently selected key when
  43665. the quota of keys from that split is satisfied.]]>
  43666. </doc>
  43667. </method>
  43668. <doc>
  43669. <![CDATA[Sample from random points in the input.
  43670. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  43671. each split.]]>
  43672. </doc>
  43673. </class>
  43674. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  43675. <!-- start interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  43676. <interface name="InputSampler.Sampler" abstract="true"
  43677. static="true" final="false" visibility="public"
  43678. deprecated="not deprecated">
  43679. <method name="getSample" return="java.lang.Object[]"
  43680. abstract="false" native="false" synchronized="false"
  43681. static="false" final="false" visibility="public"
  43682. deprecated="not deprecated">
  43683. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  43684. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43685. <exception name="IOException" type="java.io.IOException"/>
  43686. <doc>
  43687. <![CDATA[For a given job, collect and return a subset of the keys from the
  43688. input data.]]>
  43689. </doc>
  43690. </method>
  43691. <doc>
  43692. <![CDATA[Interface to sample using an {@link org.apache.hadoop.mapred.InputFormat}.]]>
  43693. </doc>
  43694. </interface>
  43695. <!-- end interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  43696. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  43697. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  43698. abstract="false"
  43699. static="true" final="false" visibility="public"
  43700. deprecated="not deprecated">
  43701. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  43702. <constructor name="InputSampler.SplitSampler" type="int"
  43703. static="false" final="false" visibility="public"
  43704. deprecated="not deprecated">
  43705. <doc>
  43706. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  43707. Takes the first numSamples / numSplits records from each split.
  43708. @param numSamples Total number of samples to obtain from all selected
  43709. splits.]]>
  43710. </doc>
  43711. </constructor>
  43712. <constructor name="InputSampler.SplitSampler" type="int, int"
  43713. static="false" final="false" visibility="public"
  43714. deprecated="not deprecated">
  43715. <doc>
  43716. <![CDATA[Create a new SplitSampler.
  43717. @param numSamples Total number of samples to obtain from all selected
  43718. splits.
  43719. @param maxSplitsSampled The maximum number of splits to examine.]]>
  43720. </doc>
  43721. </constructor>
  43722. <method name="getSample" return="java.lang.Object[]"
  43723. abstract="false" native="false" synchronized="false"
  43724. static="false" final="false" visibility="public"
  43725. deprecated="not deprecated">
  43726. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  43727. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43728. <exception name="IOException" type="java.io.IOException"/>
  43729. <doc>
  43730. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  43731. </doc>
  43732. </method>
  43733. <doc>
  43734. <![CDATA[Samples the first n records from s splits.
  43735. Inexpensive way to sample random data.]]>
  43736. </doc>
  43737. </class>
  43738. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  43739. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  43740. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  43741. abstract="false"
  43742. static="false" final="false" visibility="public"
  43743. deprecated="Use {@link org.apache.hadoop.mapreduce.lib.map.InverseMapper}
  43744. instead.">
  43745. <implements name="org.apache.hadoop.mapred.Mapper"/>
  43746. <constructor name="InverseMapper"
  43747. static="false" final="false" visibility="public"
  43748. deprecated="not deprecated">
  43749. </constructor>
  43750. <method name="map"
  43751. abstract="false" native="false" synchronized="false"
  43752. static="false" final="false" visibility="public"
  43753. deprecated="not deprecated">
  43754. <param name="key" type="java.lang.Object"/>
  43755. <param name="value" type="java.lang.Object"/>
  43756. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  43757. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  43758. <exception name="IOException" type="java.io.IOException"/>
  43759. <doc>
  43760. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  43761. </doc>
  43762. </method>
  43763. <doc>
  43764. <![CDATA[A {@link Mapper} that swaps keys and values.
  43765. @deprecated Use {@link org.apache.hadoop.mapreduce.lib.map.InverseMapper}
  43766. instead.]]>
  43767. </doc>
  43768. </class>
  43769. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  43770. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  43771. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  43772. abstract="false"
  43773. static="false" final="false" visibility="public"
  43774. deprecated="not deprecated">
  43775. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  43776. <constructor name="KeyFieldBasedComparator"
  43777. static="false" final="false" visibility="public"
  43778. deprecated="not deprecated">
  43779. </constructor>
  43780. <method name="configure"
  43781. abstract="false" native="false" synchronized="false"
  43782. static="false" final="false" visibility="public"
  43783. deprecated="not deprecated">
  43784. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43785. </method>
  43786. <method name="compare" return="int"
  43787. abstract="false" native="false" synchronized="false"
  43788. static="false" final="false" visibility="public"
  43789. deprecated="not deprecated">
  43790. <param name="b1" type="byte[]"/>
  43791. <param name="s1" type="int"/>
  43792. <param name="l1" type="int"/>
  43793. <param name="b2" type="byte[]"/>
  43794. <param name="s2" type="int"/>
  43795. <param name="l2" type="int"/>
  43796. </method>
  43797. <doc>
  43798. <![CDATA[This comparator implementation provides a subset of the features provided
  43799. by the Unix/GNU Sort. In particular, the supported features are:
  43800. -n, (Sort numerically)
  43801. -r, (Reverse the result of comparison)
  43802. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  43803. of the field to use, and c is the number of the first character from the
  43804. beginning of the field. Fields and character posns are numbered starting
  43805. with 1; a character position of zero in pos2 indicates the field's last
  43806. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  43807. of the field); if omitted from pos2, it defaults to 0 (the end of the
  43808. field). opts are ordering options (any of 'nr' as described above).
  43809. We assume that the fields in the key are separated by
  43810. map.output.key.field.separator.]]>
  43811. </doc>
  43812. </class>
  43813. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  43814. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  43815. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  43816. abstract="false"
  43817. static="false" final="false" visibility="public"
  43818. deprecated="not deprecated">
  43819. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  43820. <constructor name="KeyFieldBasedPartitioner"
  43821. static="false" final="false" visibility="public"
  43822. deprecated="not deprecated">
  43823. </constructor>
  43824. <method name="configure"
  43825. abstract="false" native="false" synchronized="false"
  43826. static="false" final="false" visibility="public"
  43827. deprecated="not deprecated">
  43828. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43829. </method>
  43830. <method name="getPartition" return="int"
  43831. abstract="false" native="false" synchronized="false"
  43832. static="false" final="false" visibility="public"
  43833. deprecated="not deprecated">
  43834. <param name="key" type="java.lang.Object"/>
  43835. <param name="value" type="java.lang.Object"/>
  43836. <param name="numReduceTasks" type="int"/>
  43837. </method>
  43838. <method name="hashCode" return="int"
  43839. abstract="false" native="false" synchronized="false"
  43840. static="false" final="false" visibility="protected"
  43841. deprecated="not deprecated">
  43842. <param name="b" type="byte[]"/>
  43843. <param name="start" type="int"/>
  43844. <param name="end" type="int"/>
  43845. <param name="currentHash" type="int"/>
  43846. </method>
  43847. <doc>
  43848. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  43849. {@link KeyFieldBasedComparator}.
  43850. The key specification supported is of the form -k pos1[,pos2], where,
  43851. pos is of the form f[.c][opts], where f is the number
  43852. of the key field to use, and c is the number of the first character from
  43853. the beginning of the field. Fields and character posns are numbered
  43854. starting with 1; a character position of zero in pos2 indicates the
  43855. field's last character. If '.c' is omitted from pos1, it defaults to 1
  43856. (the beginning of the field); if omitted from pos2, it defaults to 0
  43857. (the end of the field).]]>
  43858. </doc>
  43859. </class>
  43860. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  43861. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  43862. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  43863. abstract="false"
  43864. static="false" final="false" visibility="public"
  43865. deprecated="Use {@link org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer}
  43866. instead.">
  43867. <implements name="org.apache.hadoop.mapred.Reducer"/>
  43868. <constructor name="LongSumReducer"
  43869. static="false" final="false" visibility="public"
  43870. deprecated="not deprecated">
  43871. </constructor>
  43872. <method name="reduce"
  43873. abstract="false" native="false" synchronized="false"
  43874. static="false" final="false" visibility="public"
  43875. deprecated="not deprecated">
  43876. <param name="key" type="java.lang.Object"/>
  43877. <param name="values" type="java.util.Iterator"/>
  43878. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  43879. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  43880. <exception name="IOException" type="java.io.IOException"/>
  43881. </method>
  43882. <doc>
  43883. <![CDATA[A {@link Reducer} that sums long values.
  43884. @deprecated Use {@link org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer}
  43885. instead.]]>
  43886. </doc>
  43887. </class>
  43888. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  43889. <!-- start class org.apache.hadoop.mapred.lib.MultipleInputs -->
  43890. <class name="MultipleInputs" extends="java.lang.Object"
  43891. abstract="false"
  43892. static="false" final="false" visibility="public"
  43893. deprecated="not deprecated">
  43894. <constructor name="MultipleInputs"
  43895. static="false" final="false" visibility="public"
  43896. deprecated="not deprecated">
  43897. </constructor>
  43898. <method name="addInputPath"
  43899. abstract="false" native="false" synchronized="false"
  43900. static="true" final="false" visibility="public"
  43901. deprecated="not deprecated">
  43902. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43903. <param name="path" type="org.apache.hadoop.fs.Path"/>
  43904. <param name="inputFormatClass" type="java.lang.Class"/>
  43905. <doc>
  43906. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  43907. inputs for the map-reduce job.
  43908. @param conf The configuration of the job
  43909. @param path {@link Path} to be added to the list of inputs for the job
  43910. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  43911. </doc>
  43912. </method>
  43913. <method name="addInputPath"
  43914. abstract="false" native="false" synchronized="false"
  43915. static="true" final="false" visibility="public"
  43916. deprecated="not deprecated">
  43917. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43918. <param name="path" type="org.apache.hadoop.fs.Path"/>
  43919. <param name="inputFormatClass" type="java.lang.Class"/>
  43920. <param name="mapperClass" type="java.lang.Class"/>
  43921. <doc>
  43922. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  43923. {@link Mapper} to the list of inputs for the map-reduce job.
  43924. @param conf The configuration of the job
  43925. @param path {@link Path} to be added to the list of inputs for the job
  43926. @param inputFormatClass {@link InputFormat} class to use for this path
  43927. @param mapperClass {@link Mapper} class to use for this path]]>
  43928. </doc>
  43929. </method>
  43930. <doc>
  43931. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  43932. a different {@link InputFormat} and {@link Mapper} for each path]]>
  43933. </doc>
  43934. </class>
  43935. <!-- end class org.apache.hadoop.mapred.lib.MultipleInputs -->
  43936. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  43937. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  43938. abstract="true"
  43939. static="false" final="false" visibility="public"
  43940. deprecated="not deprecated">
  43941. <constructor name="MultipleOutputFormat"
  43942. static="false" final="false" visibility="public"
  43943. deprecated="not deprecated">
  43944. </constructor>
  43945. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  43946. abstract="false" native="false" synchronized="false"
  43947. static="false" final="false" visibility="public"
  43948. deprecated="not deprecated">
  43949. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  43950. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43951. <param name="name" type="java.lang.String"/>
  43952. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  43953. <exception name="IOException" type="java.io.IOException"/>
  43954. <doc>
  43955. <![CDATA[Create a composite record writer that can write key/value data to different
  43956. output files
  43957. @param fs
  43958. the file system to use
  43959. @param job
  43960. the job conf for the job
  43961. @param name
  43962. the leaf file name for the output file (such as part-00000")
  43963. @param arg3
  43964. a progressable for reporting progress.
  43965. @return a composite record writer
  43966. @throws IOException]]>
  43967. </doc>
  43968. </method>
  43969. <method name="generateLeafFileName" return="java.lang.String"
  43970. abstract="false" native="false" synchronized="false"
  43971. static="false" final="false" visibility="protected"
  43972. deprecated="not deprecated">
  43973. <param name="name" type="java.lang.String"/>
  43974. <doc>
  43975. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  43976. not change the leaf file name (such as part-00000)
  43977. @param name
  43978. the leaf file name for the output file
  43979. @return the given leaf file name]]>
  43980. </doc>
  43981. </method>
  43982. <method name="generateFileNameForKeyValue" return="java.lang.String"
  43983. abstract="false" native="false" synchronized="false"
  43984. static="false" final="false" visibility="protected"
  43985. deprecated="not deprecated">
  43986. <param name="key" type="java.lang.Object"/>
  43987. <param name="value" type="java.lang.Object"/>
  43988. <param name="name" type="java.lang.String"/>
  43989. <doc>
  43990. <![CDATA[Generate the file output file name based on the given key and the leaf file
  43991. name. The default behavior is that the file name does not depend on the
  43992. key.
  43993. @param key
  43994. the key of the output data
  43995. @param name
  43996. the leaf file name
  43997. @return generated file name]]>
  43998. </doc>
  43999. </method>
  44000. <method name="generateActualKey" return="java.lang.Object"
  44001. abstract="false" native="false" synchronized="false"
  44002. static="false" final="false" visibility="protected"
  44003. deprecated="not deprecated">
  44004. <param name="key" type="java.lang.Object"/>
  44005. <param name="value" type="java.lang.Object"/>
  44006. <doc>
  44007. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  44008. the actual key is equal to the given key
  44009. @param key
  44010. the key of the output data
  44011. @param value
  44012. the value of the output data
  44013. @return the actual key derived from the given key/value]]>
  44014. </doc>
  44015. </method>
  44016. <method name="generateActualValue" return="java.lang.Object"
  44017. abstract="false" native="false" synchronized="false"
  44018. static="false" final="false" visibility="protected"
  44019. deprecated="not deprecated">
  44020. <param name="key" type="java.lang.Object"/>
  44021. <param name="value" type="java.lang.Object"/>
  44022. <doc>
  44023. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  44024. the actual value is equal to the given value
  44025. @param key
  44026. the key of the output data
  44027. @param value
  44028. the value of the output data
  44029. @return the actual value derived from the given key/value]]>
  44030. </doc>
  44031. </method>
  44032. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  44033. abstract="false" native="false" synchronized="false"
  44034. static="false" final="false" visibility="protected"
  44035. deprecated="not deprecated">
  44036. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44037. <param name="name" type="java.lang.String"/>
  44038. <doc>
  44039. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  44040. the map input file does not exists (i.e. this is not for a map only job),
  44041. the given name is returned unchanged. If the config value for
  44042. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  44043. name is returned unchanged. Otherwise, return a file name consisting of the
  44044. N trailing legs of the input file name where N is the config value for
  44045. "num.of.trailing.legs.to.use".
  44046. @param job
  44047. the job config
  44048. @param name
  44049. the output file name
  44050. @return the outfile name based on a given anme and the input file name.]]>
  44051. </doc>
  44052. </method>
  44053. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  44054. abstract="true" native="false" synchronized="false"
  44055. static="false" final="false" visibility="protected"
  44056. deprecated="not deprecated">
  44057. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44058. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44059. <param name="name" type="java.lang.String"/>
  44060. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  44061. <exception name="IOException" type="java.io.IOException"/>
  44062. <doc>
  44063. <![CDATA[@param fs
  44064. the file system to use
  44065. @param job
  44066. a job conf object
  44067. @param name
  44068. the name of the file over which a record writer object will be
  44069. constructed
  44070. @param arg3
  44071. a progressable object
  44072. @return A RecordWriter object over the given file
  44073. @throws IOException]]>
  44074. </doc>
  44075. </method>
  44076. <doc>
  44077. <![CDATA[This abstract class extends the FileOutputFormat, allowing to write the
  44078. output data to different output files. There are three basic use cases for
  44079. this class.
  44080. Case one: This class is used for a map reduce job with at least one reducer.
  44081. The reducer wants to write data to different files depending on the actual
  44082. keys. It is assumed that a key (or value) encodes the actual key (value)
  44083. and the desired location for the actual key (value).
  44084. Case two: This class is used for a map only job. The job wants to use an
  44085. output file name that is either a part of the input file name of the input
  44086. data, or some derivation of it.
  44087. Case three: This class is used for a map only job. The job wants to use an
  44088. output file name that depends on both the keys and the input file name,]]>
  44089. </doc>
  44090. </class>
  44091. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  44092. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  44093. <class name="MultipleOutputs" extends="java.lang.Object"
  44094. abstract="false"
  44095. static="false" final="false" visibility="public"
  44096. deprecated="not deprecated">
  44097. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapred.JobConf"
  44098. static="false" final="false" visibility="public"
  44099. deprecated="not deprecated">
  44100. <doc>
  44101. <![CDATA[Creates and initializes multiple named outputs support, it should be
  44102. instantiated in the Mapper/Reducer configure method.
  44103. @param job the job configuration object]]>
  44104. </doc>
  44105. </constructor>
  44106. <method name="getNamedOutputsList" return="java.util.List"
  44107. abstract="false" native="false" synchronized="false"
  44108. static="true" final="false" visibility="public"
  44109. deprecated="not deprecated">
  44110. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44111. <doc>
  44112. <![CDATA[Returns list of channel names.
  44113. @param conf job conf
  44114. @return List of channel Names]]>
  44115. </doc>
  44116. </method>
  44117. <method name="isMultiNamedOutput" return="boolean"
  44118. abstract="false" native="false" synchronized="false"
  44119. static="true" final="false" visibility="public"
  44120. deprecated="not deprecated">
  44121. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44122. <param name="namedOutput" type="java.lang.String"/>
  44123. <doc>
  44124. <![CDATA[Returns if a named output is multiple.
  44125. @param conf job conf
  44126. @param namedOutput named output
  44127. @return <code>true</code> if the name output is multi, <code>false</code>
  44128. if it is single. If the name output is not defined it returns
  44129. <code>false</code>]]>
  44130. </doc>
  44131. </method>
  44132. <method name="getNamedOutputFormatClass" return="java.lang.Class"
  44133. abstract="false" native="false" synchronized="false"
  44134. static="true" final="false" visibility="public"
  44135. deprecated="not deprecated">
  44136. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44137. <param name="namedOutput" type="java.lang.String"/>
  44138. <doc>
  44139. <![CDATA[Returns the named output OutputFormat.
  44140. @param conf job conf
  44141. @param namedOutput named output
  44142. @return namedOutput OutputFormat]]>
  44143. </doc>
  44144. </method>
  44145. <method name="getNamedOutputKeyClass" return="java.lang.Class"
  44146. abstract="false" native="false" synchronized="false"
  44147. static="true" final="false" visibility="public"
  44148. deprecated="not deprecated">
  44149. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44150. <param name="namedOutput" type="java.lang.String"/>
  44151. <doc>
  44152. <![CDATA[Returns the key class for a named output.
  44153. @param conf job conf
  44154. @param namedOutput named output
  44155. @return class for the named output key]]>
  44156. </doc>
  44157. </method>
  44158. <method name="getNamedOutputValueClass" return="java.lang.Class"
  44159. abstract="false" native="false" synchronized="false"
  44160. static="true" final="false" visibility="public"
  44161. deprecated="not deprecated">
  44162. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44163. <param name="namedOutput" type="java.lang.String"/>
  44164. <doc>
  44165. <![CDATA[Returns the value class for a named output.
  44166. @param conf job conf
  44167. @param namedOutput named output
  44168. @return class of named output value]]>
  44169. </doc>
  44170. </method>
  44171. <method name="addNamedOutput"
  44172. abstract="false" native="false" synchronized="false"
  44173. static="true" final="false" visibility="public"
  44174. deprecated="not deprecated">
  44175. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44176. <param name="namedOutput" type="java.lang.String"/>
  44177. <param name="outputFormatClass" type="java.lang.Class"/>
  44178. <param name="keyClass" type="java.lang.Class"/>
  44179. <param name="valueClass" type="java.lang.Class"/>
  44180. <doc>
  44181. <![CDATA[Adds a named output for the job.
  44182. <p/>
  44183. @param conf job conf to add the named output
  44184. @param namedOutput named output name, it has to be a word, letters
  44185. and numbers only, cannot be the word 'part' as
  44186. that is reserved for the
  44187. default output.
  44188. @param outputFormatClass OutputFormat class.
  44189. @param keyClass key class
  44190. @param valueClass value class]]>
  44191. </doc>
  44192. </method>
  44193. <method name="addMultiNamedOutput"
  44194. abstract="false" native="false" synchronized="false"
  44195. static="true" final="false" visibility="public"
  44196. deprecated="not deprecated">
  44197. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44198. <param name="namedOutput" type="java.lang.String"/>
  44199. <param name="outputFormatClass" type="java.lang.Class"/>
  44200. <param name="keyClass" type="java.lang.Class"/>
  44201. <param name="valueClass" type="java.lang.Class"/>
  44202. <doc>
  44203. <![CDATA[Adds a multi named output for the job.
  44204. <p/>
  44205. @param conf job conf to add the named output
  44206. @param namedOutput named output name, it has to be a word, letters
  44207. and numbers only, cannot be the word 'part' as
  44208. that is reserved for the
  44209. default output.
  44210. @param outputFormatClass OutputFormat class.
  44211. @param keyClass key class
  44212. @param valueClass value class]]>
  44213. </doc>
  44214. </method>
  44215. <method name="setCountersEnabled"
  44216. abstract="false" native="false" synchronized="false"
  44217. static="true" final="false" visibility="public"
  44218. deprecated="not deprecated">
  44219. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44220. <param name="enabled" type="boolean"/>
  44221. <doc>
  44222. <![CDATA[Enables or disables counters for the named outputs.
  44223. <p/>
  44224. By default these counters are disabled.
  44225. <p/>
  44226. MultipleOutputs supports counters, by default the are disabled.
  44227. The counters group is the {@link MultipleOutputs} class name.
  44228. </p>
  44229. The names of the counters are the same as the named outputs. For multi
  44230. named outputs the name of the counter is the concatenation of the named
  44231. output, and underscore '_' and the multiname.
  44232. @param conf job conf to enableadd the named output.
  44233. @param enabled indicates if the counters will be enabled or not.]]>
  44234. </doc>
  44235. </method>
  44236. <method name="getCountersEnabled" return="boolean"
  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. <doc>
  44242. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  44243. <p/>
  44244. By default these counters are disabled.
  44245. <p/>
  44246. MultipleOutputs supports counters, by default the are disabled.
  44247. The counters group is the {@link MultipleOutputs} class name.
  44248. </p>
  44249. The names of the counters are the same as the named outputs. For multi
  44250. named outputs the name of the counter is the concatenation of the named
  44251. output, and underscore '_' and the multiname.
  44252. @param conf job conf to enableadd the named output.
  44253. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  44254. </doc>
  44255. </method>
  44256. <method name="getNamedOutputs" return="java.util.Iterator"
  44257. abstract="false" native="false" synchronized="false"
  44258. static="false" final="false" visibility="public"
  44259. deprecated="not deprecated">
  44260. <doc>
  44261. <![CDATA[Returns iterator with the defined name outputs.
  44262. @return iterator with the defined named outputs]]>
  44263. </doc>
  44264. </method>
  44265. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  44266. abstract="false" native="false" synchronized="false"
  44267. static="false" final="false" visibility="public"
  44268. deprecated="not deprecated">
  44269. <param name="namedOutput" type="java.lang.String"/>
  44270. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  44271. <exception name="IOException" type="java.io.IOException"/>
  44272. <doc>
  44273. <![CDATA[Gets the output collector for a named output.
  44274. <p/>
  44275. @param namedOutput the named output name
  44276. @param reporter the reporter
  44277. @return the output collector for the given named output
  44278. @throws IOException thrown if output collector could not be created]]>
  44279. </doc>
  44280. </method>
  44281. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  44282. abstract="false" native="false" synchronized="false"
  44283. static="false" final="false" visibility="public"
  44284. deprecated="not deprecated">
  44285. <param name="namedOutput" type="java.lang.String"/>
  44286. <param name="multiName" type="java.lang.String"/>
  44287. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  44288. <exception name="IOException" type="java.io.IOException"/>
  44289. <doc>
  44290. <![CDATA[Gets the output collector for a multi named output.
  44291. <p/>
  44292. @param namedOutput the named output name
  44293. @param multiName the multi name part
  44294. @param reporter the reporter
  44295. @return the output collector for the given named output
  44296. @throws IOException thrown if output collector could not be created]]>
  44297. </doc>
  44298. </method>
  44299. <method name="close"
  44300. abstract="false" native="false" synchronized="false"
  44301. static="false" final="false" visibility="public"
  44302. deprecated="not deprecated">
  44303. <exception name="IOException" type="java.io.IOException"/>
  44304. <doc>
  44305. <![CDATA[Closes all the opened named outputs.
  44306. <p/>
  44307. If overriden subclasses must invoke <code>super.close()</code> at the
  44308. end of their <code>close()</code>
  44309. @throws java.io.IOException thrown if any of the MultipleOutput files
  44310. could not be closed properly.]]>
  44311. </doc>
  44312. </method>
  44313. <doc>
  44314. <![CDATA[The MultipleOutputs class simplifies writting to additional outputs other
  44315. than the job default output via the <code>OutputCollector</code> passed to
  44316. the <code>map()</code> and <code>reduce()</code> methods of the
  44317. <code>Mapper</code> and <code>Reducer</code> implementations.
  44318. <p/>
  44319. Each additional output, or named output, may be configured with its own
  44320. <code>OutputFormat</code>, with its own key class and with its own value
  44321. class.
  44322. <p/>
  44323. A named output can be a single file or a multi file. The later is refered as
  44324. a multi named output.
  44325. <p/>
  44326. A multi named output is an unbound set of files all sharing the same
  44327. <code>OutputFormat</code>, key class and value class configuration.
  44328. <p/>
  44329. When named outputs are used within a <code>Mapper</code> implementation,
  44330. key/values written to a name output are not part of the reduce phase, only
  44331. key/values written to the job <code>OutputCollector</code> are part of the
  44332. reduce phase.
  44333. <p/>
  44334. MultipleOutputs supports counters, by default the are disabled. The counters
  44335. group is the {@link MultipleOutputs} class name.
  44336. </p>
  44337. The names of the counters are the same as the named outputs. For multi
  44338. named outputs the name of the counter is the concatenation of the named
  44339. output, and underscore '_' and the multiname.
  44340. <p/>
  44341. Job configuration usage pattern is:
  44342. <pre>
  44343. JobConf conf = new JobConf();
  44344. conf.setInputPath(inDir);
  44345. FileOutputFormat.setOutputPath(conf, outDir);
  44346. conf.setMapperClass(MOMap.class);
  44347. conf.setReducerClass(MOReduce.class);
  44348. ...
  44349. // Defines additional single text based output 'text' for the job
  44350. MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
  44351. LongWritable.class, Text.class);
  44352. // Defines additional multi sequencefile based output 'sequence' for the
  44353. // job
  44354. MultipleOutputs.addMultiNamedOutput(conf, "seq",
  44355. SequenceFileOutputFormat.class,
  44356. LongWritable.class, Text.class);
  44357. ...
  44358. JobClient jc = new JobClient();
  44359. RunningJob job = jc.submitJob(conf);
  44360. ...
  44361. </pre>
  44362. <p/>
  44363. Job configuration usage pattern is:
  44364. <pre>
  44365. public class MOReduce implements
  44366. Reducer&lt;WritableComparable, Writable&gt; {
  44367. private MultipleOutputs mos;
  44368. public void configure(JobConf conf) {
  44369. ...
  44370. mos = new MultipleOutputs(conf);
  44371. }
  44372. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  44373. OutputCollector output, Reporter reporter)
  44374. throws IOException {
  44375. ...
  44376. mos.getCollector("text", reporter).collect(key, new Text("Hello"));
  44377. mos.getCollector("seq", "A", reporter).collect(key, new Text("Bye"));
  44378. mos.getCollector("seq", "B", reporter).collect(key, new Text("Chau"));
  44379. ...
  44380. }
  44381. public void close() throws IOException {
  44382. mos.close();
  44383. ...
  44384. }
  44385. }
  44386. </pre>]]>
  44387. </doc>
  44388. </class>
  44389. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  44390. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  44391. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  44392. abstract="false"
  44393. static="false" final="false" visibility="public"
  44394. deprecated="not deprecated">
  44395. <constructor name="MultipleSequenceFileOutputFormat"
  44396. static="false" final="false" visibility="public"
  44397. deprecated="not deprecated">
  44398. </constructor>
  44399. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  44400. abstract="false" native="false" synchronized="false"
  44401. static="false" final="false" visibility="protected"
  44402. deprecated="not deprecated">
  44403. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44404. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44405. <param name="name" type="java.lang.String"/>
  44406. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  44407. <exception name="IOException" type="java.io.IOException"/>
  44408. </method>
  44409. <doc>
  44410. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  44411. to different output files in sequence file output format.]]>
  44412. </doc>
  44413. </class>
  44414. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  44415. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  44416. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  44417. abstract="false"
  44418. static="false" final="false" visibility="public"
  44419. deprecated="not deprecated">
  44420. <constructor name="MultipleTextOutputFormat"
  44421. static="false" final="false" visibility="public"
  44422. deprecated="not deprecated">
  44423. </constructor>
  44424. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  44425. abstract="false" native="false" synchronized="false"
  44426. static="false" final="false" visibility="protected"
  44427. deprecated="not deprecated">
  44428. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44429. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44430. <param name="name" type="java.lang.String"/>
  44431. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  44432. <exception name="IOException" type="java.io.IOException"/>
  44433. </method>
  44434. <doc>
  44435. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  44436. data to different output files in Text output format.]]>
  44437. </doc>
  44438. </class>
  44439. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  44440. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  44441. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  44442. abstract="false"
  44443. static="false" final="false" visibility="public"
  44444. deprecated="not deprecated">
  44445. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  44446. <constructor name="MultithreadedMapRunner"
  44447. static="false" final="false" visibility="public"
  44448. deprecated="not deprecated">
  44449. </constructor>
  44450. <method name="configure"
  44451. abstract="false" native="false" synchronized="false"
  44452. static="false" final="false" visibility="public"
  44453. deprecated="not deprecated">
  44454. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  44455. </method>
  44456. <method name="run"
  44457. abstract="false" native="false" synchronized="false"
  44458. static="false" final="false" visibility="public"
  44459. deprecated="not deprecated">
  44460. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  44461. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  44462. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  44463. <exception name="IOException" type="java.io.IOException"/>
  44464. </method>
  44465. <doc>
  44466. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  44467. <p>
  44468. It can be used instead of the default implementation,
  44469. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  44470. bound in order to improve throughput.
  44471. <p>
  44472. Map implementations using this MapRunnable must be thread-safe.
  44473. <p>
  44474. The Map-Reduce job has to be configured to use this MapRunnable class (using
  44475. the JobConf.setMapRunnerClass method) and
  44476. the number of thread the thread-pool can use with the
  44477. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  44478. value is 10 threads.
  44479. <p>]]>
  44480. </doc>
  44481. </class>
  44482. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  44483. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  44484. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  44485. abstract="false"
  44486. static="false" final="false" visibility="public"
  44487. deprecated="not deprecated">
  44488. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  44489. <constructor name="NLineInputFormat"
  44490. static="false" final="false" visibility="public"
  44491. deprecated="not deprecated">
  44492. </constructor>
  44493. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  44494. abstract="false" native="false" synchronized="false"
  44495. static="false" final="false" visibility="public"
  44496. deprecated="not deprecated">
  44497. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  44498. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44499. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  44500. <exception name="IOException" type="java.io.IOException"/>
  44501. </method>
  44502. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  44503. abstract="false" native="false" synchronized="false"
  44504. static="false" final="false" visibility="public"
  44505. deprecated="not deprecated">
  44506. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44507. <param name="numSplits" type="int"/>
  44508. <exception name="IOException" type="java.io.IOException"/>
  44509. <doc>
  44510. <![CDATA[Logically splits the set of input files for the job, splits N lines
  44511. of the input as one split.
  44512. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  44513. </doc>
  44514. </method>
  44515. <method name="configure"
  44516. abstract="false" native="false" synchronized="false"
  44517. static="false" final="false" visibility="public"
  44518. deprecated="not deprecated">
  44519. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44520. </method>
  44521. <doc>
  44522. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  44523. In many "pleasantly" parallel applications, each process/mapper
  44524. processes the same input file (s), but with computations are
  44525. controlled by different parameters.(Referred to as "parameter sweeps").
  44526. One way to achieve this, is to specify a set of parameters
  44527. (one set per line) as input in a control file
  44528. (which is the input path to the map-reduce application,
  44529. where as the input dataset is specified
  44530. via a config variable in JobConf.).
  44531. The NLineInputFormat can be used in such applications, that splits
  44532. the input file such that by default, one line is fed as
  44533. a value to one map task, and key is the offset.
  44534. i.e. (k,v) is (LongWritable, Text).
  44535. The location hints will span the whole mapred cluster.]]>
  44536. </doc>
  44537. </class>
  44538. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  44539. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  44540. <class name="NullOutputFormat" extends="java.lang.Object"
  44541. abstract="false"
  44542. static="false" final="false" visibility="public"
  44543. deprecated="Use
  44544. {@link org.apache.hadoop.mapreduce.lib.output.NullOutputFormat} instead.">
  44545. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  44546. <constructor name="NullOutputFormat"
  44547. static="false" final="false" visibility="public"
  44548. deprecated="not deprecated">
  44549. </constructor>
  44550. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  44551. abstract="false" native="false" synchronized="false"
  44552. static="false" final="false" visibility="public"
  44553. deprecated="not deprecated">
  44554. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  44555. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44556. <param name="name" type="java.lang.String"/>
  44557. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  44558. </method>
  44559. <method name="checkOutputSpecs"
  44560. abstract="false" native="false" synchronized="false"
  44561. static="false" final="false" visibility="public"
  44562. deprecated="not deprecated">
  44563. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  44564. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44565. </method>
  44566. <doc>
  44567. <![CDATA[Consume all outputs and put them in /dev/null.
  44568. @deprecated Use
  44569. {@link org.apache.hadoop.mapreduce.lib.output.NullOutputFormat} instead.]]>
  44570. </doc>
  44571. </class>
  44572. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  44573. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  44574. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  44575. abstract="false"
  44576. static="false" final="false" visibility="public"
  44577. deprecated="not deprecated">
  44578. <implements name="org.apache.hadoop.mapred.Mapper"/>
  44579. <constructor name="RegexMapper"
  44580. static="false" final="false" visibility="public"
  44581. deprecated="not deprecated">
  44582. </constructor>
  44583. <method name="configure"
  44584. abstract="false" native="false" synchronized="false"
  44585. static="false" final="false" visibility="public"
  44586. deprecated="not deprecated">
  44587. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44588. </method>
  44589. <method name="map"
  44590. abstract="false" native="false" synchronized="false"
  44591. static="false" final="false" visibility="public"
  44592. deprecated="not deprecated">
  44593. <param name="key" type="java.lang.Object"/>
  44594. <param name="value" type="org.apache.hadoop.io.Text"/>
  44595. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  44596. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  44597. <exception name="IOException" type="java.io.IOException"/>
  44598. </method>
  44599. <doc>
  44600. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  44601. </doc>
  44602. </class>
  44603. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  44604. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  44605. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  44606. abstract="false"
  44607. static="false" final="false" visibility="public"
  44608. deprecated="Use
  44609. {@link org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper} instead.">
  44610. <implements name="org.apache.hadoop.mapred.Mapper"/>
  44611. <constructor name="TokenCountMapper"
  44612. static="false" final="false" visibility="public"
  44613. deprecated="not deprecated">
  44614. </constructor>
  44615. <method name="map"
  44616. abstract="false" native="false" synchronized="false"
  44617. static="false" final="false" visibility="public"
  44618. deprecated="not deprecated">
  44619. <param name="key" type="java.lang.Object"/>
  44620. <param name="value" type="org.apache.hadoop.io.Text"/>
  44621. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  44622. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  44623. <exception name="IOException" type="java.io.IOException"/>
  44624. </method>
  44625. <doc>
  44626. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  44627. {@link StringTokenizer} to break text into tokens.
  44628. @deprecated Use
  44629. {@link org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper} instead.]]>
  44630. </doc>
  44631. </class>
  44632. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  44633. <!-- start class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  44634. <class name="TotalOrderPartitioner" extends="java.lang.Object"
  44635. abstract="false"
  44636. static="false" final="false" visibility="public"
  44637. deprecated="not deprecated">
  44638. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  44639. <constructor name="TotalOrderPartitioner"
  44640. static="false" final="false" visibility="public"
  44641. deprecated="not deprecated">
  44642. </constructor>
  44643. <method name="configure"
  44644. abstract="false" native="false" synchronized="false"
  44645. static="false" final="false" visibility="public"
  44646. deprecated="not deprecated">
  44647. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44648. <doc>
  44649. <![CDATA[Read in the partition file and build indexing data structures.
  44650. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  44651. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  44652. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  44653. will be built. Otherwise, keys will be located using a binary search of
  44654. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  44655. defined for this job. The input file must be sorted with the same
  44656. comparator and contain {@link
  44657. org.apache.hadoop.mapred.JobConf#getNumReduceTasks} - 1 keys.]]>
  44658. </doc>
  44659. </method>
  44660. <method name="getPartition" return="int"
  44661. abstract="false" native="false" synchronized="false"
  44662. static="false" final="false" visibility="public"
  44663. deprecated="not deprecated">
  44664. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  44665. <param name="value" type="java.lang.Object"/>
  44666. <param name="numPartitions" type="int"/>
  44667. </method>
  44668. <method name="setPartitionFile"
  44669. abstract="false" native="false" synchronized="false"
  44670. static="true" final="false" visibility="public"
  44671. deprecated="not deprecated">
  44672. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44673. <param name="p" type="org.apache.hadoop.fs.Path"/>
  44674. <doc>
  44675. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  44676. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  44677. keys in the SequenceFile.]]>
  44678. </doc>
  44679. </method>
  44680. <method name="getPartitionFile" return="java.lang.String"
  44681. abstract="false" native="false" synchronized="false"
  44682. static="true" final="false" visibility="public"
  44683. deprecated="not deprecated">
  44684. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44685. <doc>
  44686. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  44687. @see #setPartitionFile(JobConf,Path)]]>
  44688. </doc>
  44689. </method>
  44690. <field name="DEFAULT_PATH" type="java.lang.String"
  44691. transient="false" volatile="false"
  44692. static="true" final="true" visibility="public"
  44693. deprecated="not deprecated">
  44694. </field>
  44695. <doc>
  44696. <![CDATA[Partitioner effecting a total order by reading split points from
  44697. an externally generated source.]]>
  44698. </doc>
  44699. </class>
  44700. <!-- end class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  44701. </package>
  44702. <package name="org.apache.hadoop.mapred.lib.aggregate">
  44703. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  44704. <class name="DoubleValueSum" extends="java.lang.Object"
  44705. abstract="false"
  44706. static="false" final="false" visibility="public"
  44707. deprecated="not deprecated">
  44708. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  44709. <constructor name="DoubleValueSum"
  44710. static="false" final="false" visibility="public"
  44711. deprecated="not deprecated">
  44712. <doc>
  44713. <![CDATA[The default constructor]]>
  44714. </doc>
  44715. </constructor>
  44716. <method name="addNextValue"
  44717. abstract="false" native="false" synchronized="false"
  44718. static="false" final="false" visibility="public"
  44719. deprecated="not deprecated">
  44720. <param name="val" type="java.lang.Object"/>
  44721. <doc>
  44722. <![CDATA[add a value to the aggregator
  44723. @param val
  44724. an object whose string representation represents a double value.]]>
  44725. </doc>
  44726. </method>
  44727. <method name="addNextValue"
  44728. abstract="false" native="false" synchronized="false"
  44729. static="false" final="false" visibility="public"
  44730. deprecated="not deprecated">
  44731. <param name="val" type="double"/>
  44732. <doc>
  44733. <![CDATA[add a value to the aggregator
  44734. @param val
  44735. a double value.]]>
  44736. </doc>
  44737. </method>
  44738. <method name="getReport" return="java.lang.String"
  44739. abstract="false" native="false" synchronized="false"
  44740. static="false" final="false" visibility="public"
  44741. deprecated="not deprecated">
  44742. <doc>
  44743. <![CDATA[@return the string representation of the aggregated value]]>
  44744. </doc>
  44745. </method>
  44746. <method name="getSum" return="double"
  44747. abstract="false" native="false" synchronized="false"
  44748. static="false" final="false" visibility="public"
  44749. deprecated="not deprecated">
  44750. <doc>
  44751. <![CDATA[@return the aggregated value]]>
  44752. </doc>
  44753. </method>
  44754. <method name="reset"
  44755. abstract="false" native="false" synchronized="false"
  44756. static="false" final="false" visibility="public"
  44757. deprecated="not deprecated">
  44758. <doc>
  44759. <![CDATA[reset the aggregator]]>
  44760. </doc>
  44761. </method>
  44762. <method name="getCombinerOutput" return="java.util.ArrayList"
  44763. abstract="false" native="false" synchronized="false"
  44764. static="false" final="false" visibility="public"
  44765. deprecated="not deprecated">
  44766. <doc>
  44767. <![CDATA[@return return an array of one element. The element is a string
  44768. representation of the aggregated value. The return value is
  44769. expected to be used by the a combiner.]]>
  44770. </doc>
  44771. </method>
  44772. <doc>
  44773. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  44774. values.]]>
  44775. </doc>
  44776. </class>
  44777. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  44778. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  44779. <class name="LongValueMax" extends="java.lang.Object"
  44780. abstract="false"
  44781. static="false" final="false" visibility="public"
  44782. deprecated="not deprecated">
  44783. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  44784. <constructor name="LongValueMax"
  44785. static="false" final="false" visibility="public"
  44786. deprecated="not deprecated">
  44787. <doc>
  44788. <![CDATA[the default constructor]]>
  44789. </doc>
  44790. </constructor>
  44791. <method name="addNextValue"
  44792. abstract="false" native="false" synchronized="false"
  44793. static="false" final="false" visibility="public"
  44794. deprecated="not deprecated">
  44795. <param name="val" type="java.lang.Object"/>
  44796. <doc>
  44797. <![CDATA[add a value to the aggregator
  44798. @param val
  44799. an object whose string representation represents a long value.]]>
  44800. </doc>
  44801. </method>
  44802. <method name="addNextValue"
  44803. abstract="false" native="false" synchronized="false"
  44804. static="false" final="false" visibility="public"
  44805. deprecated="not deprecated">
  44806. <param name="newVal" type="long"/>
  44807. <doc>
  44808. <![CDATA[add a value to the aggregator
  44809. @param newVal
  44810. a long value.]]>
  44811. </doc>
  44812. </method>
  44813. <method name="getVal" return="long"
  44814. abstract="false" native="false" synchronized="false"
  44815. static="false" final="false" visibility="public"
  44816. deprecated="not deprecated">
  44817. <doc>
  44818. <![CDATA[@return the aggregated value]]>
  44819. </doc>
  44820. </method>
  44821. <method name="getReport" return="java.lang.String"
  44822. abstract="false" native="false" synchronized="false"
  44823. static="false" final="false" visibility="public"
  44824. deprecated="not deprecated">
  44825. <doc>
  44826. <![CDATA[@return the string representation of the aggregated value]]>
  44827. </doc>
  44828. </method>
  44829. <method name="reset"
  44830. abstract="false" native="false" synchronized="false"
  44831. static="false" final="false" visibility="public"
  44832. deprecated="not deprecated">
  44833. <doc>
  44834. <![CDATA[reset the aggregator]]>
  44835. </doc>
  44836. </method>
  44837. <method name="getCombinerOutput" return="java.util.ArrayList"
  44838. abstract="false" native="false" synchronized="false"
  44839. static="false" final="false" visibility="public"
  44840. deprecated="not deprecated">
  44841. <doc>
  44842. <![CDATA[@return return an array of one element. The element is a string
  44843. representation of the aggregated value. The return value is
  44844. expected to be used by the a combiner.]]>
  44845. </doc>
  44846. </method>
  44847. <doc>
  44848. <![CDATA[This class implements a value aggregator that maintain the maximum of
  44849. a sequence of long values.]]>
  44850. </doc>
  44851. </class>
  44852. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  44853. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  44854. <class name="LongValueMin" extends="java.lang.Object"
  44855. abstract="false"
  44856. static="false" final="false" visibility="public"
  44857. deprecated="not deprecated">
  44858. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  44859. <constructor name="LongValueMin"
  44860. static="false" final="false" visibility="public"
  44861. deprecated="not deprecated">
  44862. <doc>
  44863. <![CDATA[the default constructor]]>
  44864. </doc>
  44865. </constructor>
  44866. <method name="addNextValue"
  44867. abstract="false" native="false" synchronized="false"
  44868. static="false" final="false" visibility="public"
  44869. deprecated="not deprecated">
  44870. <param name="val" type="java.lang.Object"/>
  44871. <doc>
  44872. <![CDATA[add a value to the aggregator
  44873. @param val
  44874. an object whose string representation represents a long value.]]>
  44875. </doc>
  44876. </method>
  44877. <method name="addNextValue"
  44878. abstract="false" native="false" synchronized="false"
  44879. static="false" final="false" visibility="public"
  44880. deprecated="not deprecated">
  44881. <param name="newVal" type="long"/>
  44882. <doc>
  44883. <![CDATA[add a value to the aggregator
  44884. @param newVal
  44885. a long value.]]>
  44886. </doc>
  44887. </method>
  44888. <method name="getVal" return="long"
  44889. abstract="false" native="false" synchronized="false"
  44890. static="false" final="false" visibility="public"
  44891. deprecated="not deprecated">
  44892. <doc>
  44893. <![CDATA[@return the aggregated value]]>
  44894. </doc>
  44895. </method>
  44896. <method name="getReport" return="java.lang.String"
  44897. abstract="false" native="false" synchronized="false"
  44898. static="false" final="false" visibility="public"
  44899. deprecated="not deprecated">
  44900. <doc>
  44901. <![CDATA[@return the string representation of the aggregated value]]>
  44902. </doc>
  44903. </method>
  44904. <method name="reset"
  44905. abstract="false" native="false" synchronized="false"
  44906. static="false" final="false" visibility="public"
  44907. deprecated="not deprecated">
  44908. <doc>
  44909. <![CDATA[reset the aggregator]]>
  44910. </doc>
  44911. </method>
  44912. <method name="getCombinerOutput" return="java.util.ArrayList"
  44913. abstract="false" native="false" synchronized="false"
  44914. static="false" final="false" visibility="public"
  44915. deprecated="not deprecated">
  44916. <doc>
  44917. <![CDATA[@return return an array of one element. The element is a string
  44918. representation of the aggregated value. The return value is
  44919. expected to be used by the a combiner.]]>
  44920. </doc>
  44921. </method>
  44922. <doc>
  44923. <![CDATA[This class implements a value aggregator that maintain the minimum of
  44924. a sequence of long values.]]>
  44925. </doc>
  44926. </class>
  44927. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  44928. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  44929. <class name="LongValueSum" extends="java.lang.Object"
  44930. abstract="false"
  44931. static="false" final="false" visibility="public"
  44932. deprecated="not deprecated">
  44933. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  44934. <constructor name="LongValueSum"
  44935. static="false" final="false" visibility="public"
  44936. deprecated="not deprecated">
  44937. <doc>
  44938. <![CDATA[the default constructor]]>
  44939. </doc>
  44940. </constructor>
  44941. <method name="addNextValue"
  44942. abstract="false" native="false" synchronized="false"
  44943. static="false" final="false" visibility="public"
  44944. deprecated="not deprecated">
  44945. <param name="val" type="java.lang.Object"/>
  44946. <doc>
  44947. <![CDATA[add a value to the aggregator
  44948. @param val
  44949. an object whose string representation represents a long value.]]>
  44950. </doc>
  44951. </method>
  44952. <method name="addNextValue"
  44953. abstract="false" native="false" synchronized="false"
  44954. static="false" final="false" visibility="public"
  44955. deprecated="not deprecated">
  44956. <param name="val" type="long"/>
  44957. <doc>
  44958. <![CDATA[add a value to the aggregator
  44959. @param val
  44960. a long value.]]>
  44961. </doc>
  44962. </method>
  44963. <method name="getSum" return="long"
  44964. abstract="false" native="false" synchronized="false"
  44965. static="false" final="false" visibility="public"
  44966. deprecated="not deprecated">
  44967. <doc>
  44968. <![CDATA[@return the aggregated value]]>
  44969. </doc>
  44970. </method>
  44971. <method name="getReport" return="java.lang.String"
  44972. abstract="false" native="false" synchronized="false"
  44973. static="false" final="false" visibility="public"
  44974. deprecated="not deprecated">
  44975. <doc>
  44976. <![CDATA[@return the string representation of the aggregated value]]>
  44977. </doc>
  44978. </method>
  44979. <method name="reset"
  44980. abstract="false" native="false" synchronized="false"
  44981. static="false" final="false" visibility="public"
  44982. deprecated="not deprecated">
  44983. <doc>
  44984. <![CDATA[reset the aggregator]]>
  44985. </doc>
  44986. </method>
  44987. <method name="getCombinerOutput" return="java.util.ArrayList"
  44988. abstract="false" native="false" synchronized="false"
  44989. static="false" final="false" visibility="public"
  44990. deprecated="not deprecated">
  44991. <doc>
  44992. <![CDATA[@return return an array of one element. The element is a string
  44993. representation of the aggregated value. The return value is
  44994. expected to be used by the a combiner.]]>
  44995. </doc>
  44996. </method>
  44997. <doc>
  44998. <![CDATA[This class implements a value aggregator that sums up
  44999. a sequence of long values.]]>
  45000. </doc>
  45001. </class>
  45002. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  45003. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  45004. <class name="StringValueMax" extends="java.lang.Object"
  45005. abstract="false"
  45006. static="false" final="false" visibility="public"
  45007. deprecated="not deprecated">
  45008. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  45009. <constructor name="StringValueMax"
  45010. static="false" final="false" visibility="public"
  45011. deprecated="not deprecated">
  45012. <doc>
  45013. <![CDATA[the default constructor]]>
  45014. </doc>
  45015. </constructor>
  45016. <method name="addNextValue"
  45017. abstract="false" native="false" synchronized="false"
  45018. static="false" final="false" visibility="public"
  45019. deprecated="not deprecated">
  45020. <param name="val" type="java.lang.Object"/>
  45021. <doc>
  45022. <![CDATA[add a value to the aggregator
  45023. @param val
  45024. a string.]]>
  45025. </doc>
  45026. </method>
  45027. <method name="getVal" return="java.lang.String"
  45028. abstract="false" native="false" synchronized="false"
  45029. static="false" final="false" visibility="public"
  45030. deprecated="not deprecated">
  45031. <doc>
  45032. <![CDATA[@return the aggregated value]]>
  45033. </doc>
  45034. </method>
  45035. <method name="getReport" return="java.lang.String"
  45036. abstract="false" native="false" synchronized="false"
  45037. static="false" final="false" visibility="public"
  45038. deprecated="not deprecated">
  45039. <doc>
  45040. <![CDATA[@return the string representation of the aggregated value]]>
  45041. </doc>
  45042. </method>
  45043. <method name="reset"
  45044. abstract="false" native="false" synchronized="false"
  45045. static="false" final="false" visibility="public"
  45046. deprecated="not deprecated">
  45047. <doc>
  45048. <![CDATA[reset the aggregator]]>
  45049. </doc>
  45050. </method>
  45051. <method name="getCombinerOutput" return="java.util.ArrayList"
  45052. abstract="false" native="false" synchronized="false"
  45053. static="false" final="false" visibility="public"
  45054. deprecated="not deprecated">
  45055. <doc>
  45056. <![CDATA[@return return an array of one element. The element is a string
  45057. representation of the aggregated value. The return value is
  45058. expected to be used by the a combiner.]]>
  45059. </doc>
  45060. </method>
  45061. <doc>
  45062. <![CDATA[This class implements a value aggregator that maintain the biggest of
  45063. a sequence of strings.]]>
  45064. </doc>
  45065. </class>
  45066. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  45067. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  45068. <class name="StringValueMin" extends="java.lang.Object"
  45069. abstract="false"
  45070. static="false" final="false" visibility="public"
  45071. deprecated="not deprecated">
  45072. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  45073. <constructor name="StringValueMin"
  45074. static="false" final="false" visibility="public"
  45075. deprecated="not deprecated">
  45076. <doc>
  45077. <![CDATA[the default constructor]]>
  45078. </doc>
  45079. </constructor>
  45080. <method name="addNextValue"
  45081. abstract="false" native="false" synchronized="false"
  45082. static="false" final="false" visibility="public"
  45083. deprecated="not deprecated">
  45084. <param name="val" type="java.lang.Object"/>
  45085. <doc>
  45086. <![CDATA[add a value to the aggregator
  45087. @param val
  45088. a string.]]>
  45089. </doc>
  45090. </method>
  45091. <method name="getVal" return="java.lang.String"
  45092. abstract="false" native="false" synchronized="false"
  45093. static="false" final="false" visibility="public"
  45094. deprecated="not deprecated">
  45095. <doc>
  45096. <![CDATA[@return the aggregated value]]>
  45097. </doc>
  45098. </method>
  45099. <method name="getReport" return="java.lang.String"
  45100. abstract="false" native="false" synchronized="false"
  45101. static="false" final="false" visibility="public"
  45102. deprecated="not deprecated">
  45103. <doc>
  45104. <![CDATA[@return the string representation of the aggregated value]]>
  45105. </doc>
  45106. </method>
  45107. <method name="reset"
  45108. abstract="false" native="false" synchronized="false"
  45109. static="false" final="false" visibility="public"
  45110. deprecated="not deprecated">
  45111. <doc>
  45112. <![CDATA[reset the aggregator]]>
  45113. </doc>
  45114. </method>
  45115. <method name="getCombinerOutput" return="java.util.ArrayList"
  45116. abstract="false" native="false" synchronized="false"
  45117. static="false" final="false" visibility="public"
  45118. deprecated="not deprecated">
  45119. <doc>
  45120. <![CDATA[@return return an array of one element. The element is a string
  45121. representation of the aggregated value. The return value is
  45122. expected to be used by the a combiner.]]>
  45123. </doc>
  45124. </method>
  45125. <doc>
  45126. <![CDATA[This class implements a value aggregator that maintain the smallest of
  45127. a sequence of strings.]]>
  45128. </doc>
  45129. </class>
  45130. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  45131. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  45132. <class name="UniqValueCount" extends="java.lang.Object"
  45133. abstract="false"
  45134. static="false" final="false" visibility="public"
  45135. deprecated="not deprecated">
  45136. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  45137. <constructor name="UniqValueCount"
  45138. static="false" final="false" visibility="public"
  45139. deprecated="not deprecated">
  45140. <doc>
  45141. <![CDATA[the default constructor]]>
  45142. </doc>
  45143. </constructor>
  45144. <constructor name="UniqValueCount" type="long"
  45145. static="false" final="false" visibility="public"
  45146. deprecated="not deprecated">
  45147. <doc>
  45148. <![CDATA[constructor
  45149. @param maxNum the limit in the number of unique values to keep.]]>
  45150. </doc>
  45151. </constructor>
  45152. <method name="setMaxItems" return="long"
  45153. abstract="false" native="false" synchronized="false"
  45154. static="false" final="false" visibility="public"
  45155. deprecated="not deprecated">
  45156. <param name="n" type="long"/>
  45157. <doc>
  45158. <![CDATA[Set the limit on the number of unique values
  45159. @param n the desired limit on the number of unique values
  45160. @return the new limit on the number of unique values]]>
  45161. </doc>
  45162. </method>
  45163. <method name="addNextValue"
  45164. abstract="false" native="false" synchronized="false"
  45165. static="false" final="false" visibility="public"
  45166. deprecated="not deprecated">
  45167. <param name="val" type="java.lang.Object"/>
  45168. <doc>
  45169. <![CDATA[add a value to the aggregator
  45170. @param val
  45171. an object.]]>
  45172. </doc>
  45173. </method>
  45174. <method name="getReport" return="java.lang.String"
  45175. abstract="false" native="false" synchronized="false"
  45176. static="false" final="false" visibility="public"
  45177. deprecated="not deprecated">
  45178. <doc>
  45179. <![CDATA[@return return the number of unique objects aggregated]]>
  45180. </doc>
  45181. </method>
  45182. <method name="getUniqueItems" return="java.util.Set"
  45183. abstract="false" native="false" synchronized="false"
  45184. static="false" final="false" visibility="public"
  45185. deprecated="not deprecated">
  45186. <doc>
  45187. <![CDATA[@return the set of the unique objects]]>
  45188. </doc>
  45189. </method>
  45190. <method name="reset"
  45191. abstract="false" native="false" synchronized="false"
  45192. static="false" final="false" visibility="public"
  45193. deprecated="not deprecated">
  45194. <doc>
  45195. <![CDATA[reset the aggregator]]>
  45196. </doc>
  45197. </method>
  45198. <method name="getCombinerOutput" return="java.util.ArrayList"
  45199. abstract="false" native="false" synchronized="false"
  45200. static="false" final="false" visibility="public"
  45201. deprecated="not deprecated">
  45202. <doc>
  45203. <![CDATA[@return return an array of the unique objects. The return value is
  45204. expected to be used by the a combiner.]]>
  45205. </doc>
  45206. </method>
  45207. <doc>
  45208. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  45209. </doc>
  45210. </class>
  45211. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  45212. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  45213. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  45214. abstract="false"
  45215. static="false" final="false" visibility="public"
  45216. deprecated="not deprecated">
  45217. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  45218. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  45219. static="false" final="false" visibility="public"
  45220. deprecated="not deprecated">
  45221. <doc>
  45222. <![CDATA[@param className the class name of the user defined descriptor class
  45223. @param job a configure object used for decriptor configuration]]>
  45224. </doc>
  45225. </constructor>
  45226. <method name="createInstance" return="java.lang.Object"
  45227. abstract="false" native="false" synchronized="false"
  45228. static="true" final="false" visibility="public"
  45229. deprecated="not deprecated">
  45230. <param name="className" type="java.lang.String"/>
  45231. <doc>
  45232. <![CDATA[Create an instance of the given class
  45233. @param className the name of the class
  45234. @return a dynamically created instance of the given class]]>
  45235. </doc>
  45236. </method>
  45237. <method name="generateKeyValPairs" return="java.util.ArrayList"
  45238. abstract="false" native="false" synchronized="false"
  45239. static="false" final="false" visibility="public"
  45240. deprecated="not deprecated">
  45241. <param name="key" type="java.lang.Object"/>
  45242. <param name="val" type="java.lang.Object"/>
  45243. <doc>
  45244. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  45245. by delegating the invocation to the real object.
  45246. @param key
  45247. input key
  45248. @param val
  45249. input value
  45250. @return a list of aggregation id/value pairs. An aggregation id encodes an
  45251. aggregation type which is used to guide the way to aggregate the
  45252. value in the reduce/combiner phrase of an Aggregate based job.]]>
  45253. </doc>
  45254. </method>
  45255. <method name="toString" return="java.lang.String"
  45256. abstract="false" native="false" synchronized="false"
  45257. static="false" final="false" visibility="public"
  45258. deprecated="not deprecated">
  45259. <doc>
  45260. <![CDATA[@return the string representation of this object.]]>
  45261. </doc>
  45262. </method>
  45263. <method name="configure"
  45264. abstract="false" native="false" synchronized="false"
  45265. static="false" final="false" visibility="public"
  45266. deprecated="not deprecated">
  45267. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45268. <doc>
  45269. <![CDATA[Do nothing.]]>
  45270. </doc>
  45271. </method>
  45272. <doc>
  45273. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  45274. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  45275. name of a user defined class that may be dynamically loaded. The other is to
  45276. deligate inviokations of generateKeyValPairs function to the created object.]]>
  45277. </doc>
  45278. </class>
  45279. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  45280. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  45281. <interface name="ValueAggregator" abstract="true"
  45282. static="false" final="false" visibility="public"
  45283. deprecated="not deprecated">
  45284. <method name="addNextValue"
  45285. abstract="false" native="false" synchronized="false"
  45286. static="false" final="false" visibility="public"
  45287. deprecated="not deprecated">
  45288. <param name="val" type="java.lang.Object"/>
  45289. <doc>
  45290. <![CDATA[add a value to the aggregator
  45291. @param val the value to be added]]>
  45292. </doc>
  45293. </method>
  45294. <method name="reset"
  45295. abstract="false" native="false" synchronized="false"
  45296. static="false" final="false" visibility="public"
  45297. deprecated="not deprecated">
  45298. <doc>
  45299. <![CDATA[reset the aggregator]]>
  45300. </doc>
  45301. </method>
  45302. <method name="getReport" return="java.lang.String"
  45303. abstract="false" native="false" synchronized="false"
  45304. static="false" final="false" visibility="public"
  45305. deprecated="not deprecated">
  45306. <doc>
  45307. <![CDATA[@return the string representation of the agregator]]>
  45308. </doc>
  45309. </method>
  45310. <method name="getCombinerOutput" return="java.util.ArrayList"
  45311. abstract="false" native="false" synchronized="false"
  45312. static="false" final="false" visibility="public"
  45313. deprecated="not deprecated">
  45314. <doc>
  45315. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  45316. </doc>
  45317. </method>
  45318. <doc>
  45319. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  45320. </doc>
  45321. </interface>
  45322. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  45323. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  45324. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  45325. abstract="false"
  45326. static="false" final="false" visibility="public"
  45327. deprecated="not deprecated">
  45328. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  45329. <constructor name="ValueAggregatorBaseDescriptor"
  45330. static="false" final="false" visibility="public"
  45331. deprecated="not deprecated">
  45332. </constructor>
  45333. <method name="generateEntry" return="java.util.Map.Entry"
  45334. abstract="false" native="false" synchronized="false"
  45335. static="true" final="false" visibility="public"
  45336. deprecated="not deprecated">
  45337. <param name="type" type="java.lang.String"/>
  45338. <param name="id" type="java.lang.String"/>
  45339. <param name="val" type="org.apache.hadoop.io.Text"/>
  45340. <doc>
  45341. <![CDATA[@param type the aggregation type
  45342. @param id the aggregation id
  45343. @param val the val associated with the id to be aggregated
  45344. @return an Entry whose key is the aggregation id prefixed with
  45345. the aggregation type.]]>
  45346. </doc>
  45347. </method>
  45348. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  45349. abstract="false" native="false" synchronized="false"
  45350. static="true" final="false" visibility="public"
  45351. deprecated="not deprecated">
  45352. <param name="type" type="java.lang.String"/>
  45353. <doc>
  45354. <![CDATA[@param type the aggregation type
  45355. @return a value aggregator of the given type.]]>
  45356. </doc>
  45357. </method>
  45358. <method name="generateKeyValPairs" return="java.util.ArrayList"
  45359. abstract="false" native="false" synchronized="false"
  45360. static="false" final="false" visibility="public"
  45361. deprecated="not deprecated">
  45362. <param name="key" type="java.lang.Object"/>
  45363. <param name="val" type="java.lang.Object"/>
  45364. <doc>
  45365. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  45366. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  45367. its aggregation id. If the input is a file split,
  45368. the second id of the same type will be generated too, with the file name
  45369. as its aggregation id. This achieves the behavior of counting the total number
  45370. of records in the input data, and the number of records in each input file.
  45371. @param key
  45372. input key
  45373. @param val
  45374. input value
  45375. @return a list of aggregation id/value pairs. An aggregation id encodes an
  45376. aggregation type which is used to guide the way to aggregate the
  45377. value in the reduce/combiner phrase of an Aggregate based job.]]>
  45378. </doc>
  45379. </method>
  45380. <method name="configure"
  45381. abstract="false" native="false" synchronized="false"
  45382. static="false" final="false" visibility="public"
  45383. deprecated="not deprecated">
  45384. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45385. <doc>
  45386. <![CDATA[get the input file name.
  45387. @param job a job configuration object]]>
  45388. </doc>
  45389. </method>
  45390. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  45391. transient="false" volatile="false"
  45392. static="true" final="true" visibility="public"
  45393. deprecated="not deprecated">
  45394. </field>
  45395. <field name="LONG_VALUE_SUM" type="java.lang.String"
  45396. transient="false" volatile="false"
  45397. static="true" final="true" visibility="public"
  45398. deprecated="not deprecated">
  45399. </field>
  45400. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  45401. transient="false" volatile="false"
  45402. static="true" final="true" visibility="public"
  45403. deprecated="not deprecated">
  45404. </field>
  45405. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  45406. transient="false" volatile="false"
  45407. static="true" final="true" visibility="public"
  45408. deprecated="not deprecated">
  45409. </field>
  45410. <field name="LONG_VALUE_MAX" type="java.lang.String"
  45411. transient="false" volatile="false"
  45412. static="true" final="true" visibility="public"
  45413. deprecated="not deprecated">
  45414. </field>
  45415. <field name="LONG_VALUE_MIN" type="java.lang.String"
  45416. transient="false" volatile="false"
  45417. static="true" final="true" visibility="public"
  45418. deprecated="not deprecated">
  45419. </field>
  45420. <field name="STRING_VALUE_MAX" type="java.lang.String"
  45421. transient="false" volatile="false"
  45422. static="true" final="true" visibility="public"
  45423. deprecated="not deprecated">
  45424. </field>
  45425. <field name="STRING_VALUE_MIN" type="java.lang.String"
  45426. transient="false" volatile="false"
  45427. static="true" final="true" visibility="public"
  45428. deprecated="not deprecated">
  45429. </field>
  45430. <field name="inputFile" type="java.lang.String"
  45431. transient="false" volatile="false"
  45432. static="false" final="false" visibility="public"
  45433. deprecated="not deprecated">
  45434. </field>
  45435. <doc>
  45436. <![CDATA[This class implements the common functionalities of
  45437. the subclasses of ValueAggregatorDescriptor class.]]>
  45438. </doc>
  45439. </class>
  45440. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  45441. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  45442. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  45443. abstract="false"
  45444. static="false" final="false" visibility="public"
  45445. deprecated="not deprecated">
  45446. <constructor name="ValueAggregatorCombiner"
  45447. static="false" final="false" visibility="public"
  45448. deprecated="not deprecated">
  45449. </constructor>
  45450. <method name="configure"
  45451. abstract="false" native="false" synchronized="false"
  45452. static="false" final="false" visibility="public"
  45453. deprecated="not deprecated">
  45454. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45455. <doc>
  45456. <![CDATA[Combiner does not need to configure.]]>
  45457. </doc>
  45458. </method>
  45459. <method name="reduce"
  45460. abstract="false" native="false" synchronized="false"
  45461. static="false" final="false" visibility="public"
  45462. deprecated="not deprecated">
  45463. <param name="key" type="org.apache.hadoop.io.Text"/>
  45464. <param name="values" type="java.util.Iterator"/>
  45465. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  45466. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  45467. <exception name="IOException" type="java.io.IOException"/>
  45468. <doc>
  45469. <![CDATA[Combines values for a given key.
  45470. @param key the key is expected to be a Text object, whose prefix indicates
  45471. the type of aggregation to aggregate the values.
  45472. @param values the values to combine
  45473. @param output to collect combined values]]>
  45474. </doc>
  45475. </method>
  45476. <method name="close"
  45477. abstract="false" native="false" synchronized="false"
  45478. static="false" final="false" visibility="public"
  45479. deprecated="not deprecated">
  45480. <exception name="IOException" type="java.io.IOException"/>
  45481. <doc>
  45482. <![CDATA[Do nothing.]]>
  45483. </doc>
  45484. </method>
  45485. <method name="map"
  45486. abstract="false" native="false" synchronized="false"
  45487. static="false" final="false" visibility="public"
  45488. deprecated="not deprecated">
  45489. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  45490. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  45491. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  45492. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  45493. <exception name="IOException" type="java.io.IOException"/>
  45494. <doc>
  45495. <![CDATA[Do nothing. Should not be called.]]>
  45496. </doc>
  45497. </method>
  45498. <doc>
  45499. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  45500. </doc>
  45501. </class>
  45502. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  45503. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  45504. <interface name="ValueAggregatorDescriptor" abstract="true"
  45505. static="false" final="false" visibility="public"
  45506. deprecated="not deprecated">
  45507. <method name="generateKeyValPairs" return="java.util.ArrayList"
  45508. abstract="false" native="false" synchronized="false"
  45509. static="false" final="false" visibility="public"
  45510. deprecated="not deprecated">
  45511. <param name="key" type="java.lang.Object"/>
  45512. <param name="val" type="java.lang.Object"/>
  45513. <doc>
  45514. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  45515. This function is usually called by the mapper of an Aggregate based job.
  45516. @param key
  45517. input key
  45518. @param val
  45519. input value
  45520. @return a list of aggregation id/value pairs. An aggregation id encodes an
  45521. aggregation type which is used to guide the way to aggregate the
  45522. value in the reduce/combiner phrase of an Aggregate based job.]]>
  45523. </doc>
  45524. </method>
  45525. <method name="configure"
  45526. abstract="false" native="false" synchronized="false"
  45527. static="false" final="false" visibility="public"
  45528. deprecated="not deprecated">
  45529. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45530. <doc>
  45531. <![CDATA[Configure the object
  45532. @param job
  45533. a JobConf object that may contain the information that can be used
  45534. to configure the object.]]>
  45535. </doc>
  45536. </method>
  45537. <field name="TYPE_SEPARATOR" type="java.lang.String"
  45538. transient="false" volatile="false"
  45539. static="true" final="true" visibility="public"
  45540. deprecated="not deprecated">
  45541. </field>
  45542. <field name="ONE" type="org.apache.hadoop.io.Text"
  45543. transient="false" volatile="false"
  45544. static="true" final="true" visibility="public"
  45545. deprecated="not deprecated">
  45546. </field>
  45547. <doc>
  45548. <![CDATA[This interface defines the contract a value aggregator descriptor must
  45549. support. Such a descriptor can be configured with a JobConf object. Its main
  45550. function is to generate a list of aggregation-id/value pairs. An aggregation
  45551. id encodes an aggregation type which is used to guide the way to aggregate
  45552. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  45553. an Aggregate based map/reduce job may create one or more of
  45554. ValueAggregatorDescriptor objects at configuration time. For each input
  45555. key/value pair, the mapper will use those objects to create aggregation
  45556. id/value pairs.]]>
  45557. </doc>
  45558. </interface>
  45559. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  45560. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  45561. <class name="ValueAggregatorJob" extends="java.lang.Object"
  45562. abstract="false"
  45563. static="false" final="false" visibility="public"
  45564. deprecated="not deprecated">
  45565. <constructor name="ValueAggregatorJob"
  45566. static="false" final="false" visibility="public"
  45567. deprecated="not deprecated">
  45568. </constructor>
  45569. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  45570. abstract="false" native="false" synchronized="false"
  45571. static="true" final="false" visibility="public"
  45572. deprecated="not deprecated">
  45573. <param name="args" type="java.lang.String[]"/>
  45574. <param name="descriptors" type="java.lang.Class[]"/>
  45575. <exception name="IOException" type="java.io.IOException"/>
  45576. </method>
  45577. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  45578. abstract="false" native="false" synchronized="false"
  45579. static="true" final="false" visibility="public"
  45580. deprecated="not deprecated">
  45581. <param name="args" type="java.lang.String[]"/>
  45582. <exception name="IOException" type="java.io.IOException"/>
  45583. </method>
  45584. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  45585. abstract="false" native="false" synchronized="false"
  45586. static="true" final="false" visibility="public"
  45587. deprecated="not deprecated">
  45588. <param name="args" type="java.lang.String[]"/>
  45589. <exception name="IOException" type="java.io.IOException"/>
  45590. <doc>
  45591. <![CDATA[Create an Aggregate based map/reduce job.
  45592. @param args the arguments used for job creation. Generic hadoop
  45593. arguments are accepted.
  45594. @return a JobConf object ready for submission.
  45595. @throws IOException
  45596. @see GenericOptionsParser]]>
  45597. </doc>
  45598. </method>
  45599. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  45600. abstract="false" native="false" synchronized="false"
  45601. static="true" final="false" visibility="public"
  45602. deprecated="not deprecated">
  45603. <param name="args" type="java.lang.String[]"/>
  45604. <param name="descriptors" type="java.lang.Class[]"/>
  45605. <exception name="IOException" type="java.io.IOException"/>
  45606. </method>
  45607. <method name="setAggregatorDescriptors"
  45608. abstract="false" native="false" synchronized="false"
  45609. static="true" final="false" visibility="public"
  45610. deprecated="not deprecated">
  45611. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45612. <param name="descriptors" type="java.lang.Class[]"/>
  45613. </method>
  45614. <method name="main"
  45615. abstract="false" native="false" synchronized="false"
  45616. static="true" final="false" visibility="public"
  45617. deprecated="not deprecated">
  45618. <param name="args" type="java.lang.String[]"/>
  45619. <exception name="IOException" type="java.io.IOException"/>
  45620. <doc>
  45621. <![CDATA[create and run an Aggregate based map/reduce job.
  45622. @param args the arguments used for job creation
  45623. @throws IOException]]>
  45624. </doc>
  45625. </method>
  45626. <doc>
  45627. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  45628. framework. The Aggregate is a specialization of map/reduce framework,
  45629. specilizing for performing various simple aggregations.
  45630. Generally speaking, in order to implement an application using Map/Reduce
  45631. model, the developer is to implement Map and Reduce functions (and possibly
  45632. combine function). However, a lot of applications related to counting and
  45633. statistics computing have very similar characteristics. Aggregate abstracts
  45634. out the general patterns of these functions and implementing those patterns.
  45635. In particular, the package provides generic mapper/redducer/combiner classes,
  45636. and a set of built-in value aggregators, and a generic utility class that
  45637. helps user create map/reduce jobs using the generic class. The built-in
  45638. aggregators include:
  45639. sum over numeric values count the number of distinct values compute the
  45640. histogram of values compute the minimum, maximum, media,average, standard
  45641. deviation of numeric values
  45642. The developer using Aggregate will need only to provide a plugin class
  45643. conforming to the following interface:
  45644. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  45645. generateKeyValPairs(Object key, Object value); public void
  45646. configure(JobConfjob); }
  45647. The package also provides a base class, ValueAggregatorBaseDescriptor,
  45648. implementing the above interface. The user can extend the base class and
  45649. implement generateKeyValPairs accordingly.
  45650. The primary work of generateKeyValPairs is to emit one or more key/value
  45651. pairs based on the input key/value pair. The key in an output key/value pair
  45652. encode two pieces of information: aggregation type and aggregation id. The
  45653. value will be aggregated onto the aggregation id according the aggregation
  45654. type.
  45655. This class offers a function to generate a map/reduce job using Aggregate
  45656. framework. The function takes the following parameters: input directory spec
  45657. input format (text or sequence file) output directory a file specifying the
  45658. user plugin class]]>
  45659. </doc>
  45660. </class>
  45661. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  45662. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  45663. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  45664. abstract="true"
  45665. static="false" final="false" visibility="public"
  45666. deprecated="not deprecated">
  45667. <implements name="org.apache.hadoop.mapred.Mapper"/>
  45668. <implements name="org.apache.hadoop.mapred.Reducer"/>
  45669. <constructor name="ValueAggregatorJobBase"
  45670. static="false" final="false" visibility="public"
  45671. deprecated="not deprecated">
  45672. </constructor>
  45673. <method name="configure"
  45674. abstract="false" native="false" synchronized="false"
  45675. static="false" final="false" visibility="public"
  45676. deprecated="not deprecated">
  45677. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45678. </method>
  45679. <method name="logSpec"
  45680. abstract="false" native="false" synchronized="false"
  45681. static="false" final="false" visibility="protected"
  45682. deprecated="not deprecated">
  45683. </method>
  45684. <method name="close"
  45685. abstract="false" native="false" synchronized="false"
  45686. static="false" final="false" visibility="public"
  45687. deprecated="not deprecated">
  45688. <exception name="IOException" type="java.io.IOException"/>
  45689. </method>
  45690. <field name="aggregatorDescriptorList" type="java.util.ArrayList"
  45691. transient="false" volatile="false"
  45692. static="false" final="false" visibility="protected"
  45693. deprecated="not deprecated">
  45694. </field>
  45695. <doc>
  45696. <![CDATA[This abstract class implements some common functionalities of the
  45697. the generic mapper, reducer and combiner classes of Aggregate.]]>
  45698. </doc>
  45699. </class>
  45700. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  45701. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  45702. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  45703. abstract="false"
  45704. static="false" final="false" visibility="public"
  45705. deprecated="not deprecated">
  45706. <constructor name="ValueAggregatorMapper"
  45707. static="false" final="false" visibility="public"
  45708. deprecated="not deprecated">
  45709. </constructor>
  45710. <method name="map"
  45711. abstract="false" native="false" synchronized="false"
  45712. static="false" final="false" visibility="public"
  45713. deprecated="not deprecated">
  45714. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  45715. <param name="value" type="org.apache.hadoop.io.Writable"/>
  45716. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  45717. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  45718. <exception name="IOException" type="java.io.IOException"/>
  45719. <doc>
  45720. <![CDATA[the map function. It iterates through the value aggregator descriptor
  45721. list to generate aggregation id/value pairs and emit them.]]>
  45722. </doc>
  45723. </method>
  45724. <method name="reduce"
  45725. abstract="false" native="false" synchronized="false"
  45726. static="false" final="false" visibility="public"
  45727. deprecated="not deprecated">
  45728. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  45729. <param name="arg1" type="java.util.Iterator"/>
  45730. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  45731. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  45732. <exception name="IOException" type="java.io.IOException"/>
  45733. <doc>
  45734. <![CDATA[Do nothing. Should not be called.]]>
  45735. </doc>
  45736. </method>
  45737. <doc>
  45738. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  45739. </doc>
  45740. </class>
  45741. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  45742. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  45743. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  45744. abstract="false"
  45745. static="false" final="false" visibility="public"
  45746. deprecated="not deprecated">
  45747. <constructor name="ValueAggregatorReducer"
  45748. static="false" final="false" visibility="public"
  45749. deprecated="not deprecated">
  45750. </constructor>
  45751. <method name="reduce"
  45752. abstract="false" native="false" synchronized="false"
  45753. static="false" final="false" visibility="public"
  45754. deprecated="not deprecated">
  45755. <param name="key" type="org.apache.hadoop.io.Text"/>
  45756. <param name="values" type="java.util.Iterator"/>
  45757. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  45758. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  45759. <exception name="IOException" type="java.io.IOException"/>
  45760. <doc>
  45761. <![CDATA[@param key
  45762. the key is expected to be a Text object, whose prefix indicates
  45763. the type of aggregation to aggregate the values. In effect, data
  45764. driven computing is achieved. It is assumed that each aggregator's
  45765. getReport method emits appropriate output for the aggregator. This
  45766. may be further customiized.
  45767. @value the values to be aggregated]]>
  45768. </doc>
  45769. </method>
  45770. <method name="map"
  45771. abstract="false" native="false" synchronized="false"
  45772. static="false" final="false" visibility="public"
  45773. deprecated="not deprecated">
  45774. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  45775. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  45776. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  45777. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  45778. <exception name="IOException" type="java.io.IOException"/>
  45779. <doc>
  45780. <![CDATA[Do nothing. Should not be called]]>
  45781. </doc>
  45782. </method>
  45783. <doc>
  45784. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  45785. </doc>
  45786. </class>
  45787. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  45788. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  45789. <class name="ValueHistogram" extends="java.lang.Object"
  45790. abstract="false"
  45791. static="false" final="false" visibility="public"
  45792. deprecated="not deprecated">
  45793. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  45794. <constructor name="ValueHistogram"
  45795. static="false" final="false" visibility="public"
  45796. deprecated="not deprecated">
  45797. </constructor>
  45798. <method name="addNextValue"
  45799. abstract="false" native="false" synchronized="false"
  45800. static="false" final="false" visibility="public"
  45801. deprecated="not deprecated">
  45802. <param name="val" type="java.lang.Object"/>
  45803. <doc>
  45804. <![CDATA[add the given val to the aggregator.
  45805. @param val the value to be added. It is expected to be a string
  45806. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  45807. </doc>
  45808. </method>
  45809. <method name="getReport" return="java.lang.String"
  45810. abstract="false" native="false" synchronized="false"
  45811. static="false" final="false" visibility="public"
  45812. deprecated="not deprecated">
  45813. <doc>
  45814. <![CDATA[@return the string representation of this aggregator.
  45815. It includes the following basic statistics of the histogram:
  45816. the number of unique values
  45817. the minimum value
  45818. the media value
  45819. the maximum value
  45820. the average value
  45821. the standard deviation]]>
  45822. </doc>
  45823. </method>
  45824. <method name="getReportDetails" return="java.lang.String"
  45825. abstract="false" native="false" synchronized="false"
  45826. static="false" final="false" visibility="public"
  45827. deprecated="not deprecated">
  45828. <doc>
  45829. <![CDATA[@return a string representation of the list of value/frequence pairs of
  45830. the histogram]]>
  45831. </doc>
  45832. </method>
  45833. <method name="getCombinerOutput" return="java.util.ArrayList"
  45834. abstract="false" native="false" synchronized="false"
  45835. static="false" final="false" visibility="public"
  45836. deprecated="not deprecated">
  45837. <doc>
  45838. <![CDATA[@return a list value/frequence pairs.
  45839. The return value is expected to be used by the reducer.]]>
  45840. </doc>
  45841. </method>
  45842. <method name="getReportItems" return="java.util.TreeMap"
  45843. abstract="false" native="false" synchronized="false"
  45844. static="false" final="false" visibility="public"
  45845. deprecated="not deprecated">
  45846. <doc>
  45847. <![CDATA[@return a TreeMap representation of the histogram]]>
  45848. </doc>
  45849. </method>
  45850. <method name="reset"
  45851. abstract="false" native="false" synchronized="false"
  45852. static="false" final="false" visibility="public"
  45853. deprecated="not deprecated">
  45854. <doc>
  45855. <![CDATA[reset the aggregator]]>
  45856. </doc>
  45857. </method>
  45858. <doc>
  45859. <![CDATA[This class implements a value aggregator that computes the
  45860. histogram of a sequence of strings.]]>
  45861. </doc>
  45862. </class>
  45863. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  45864. </package>
  45865. <package name="org.apache.hadoop.mapred.lib.db">
  45866. <!-- start class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  45867. <class name="DBConfiguration" extends="java.lang.Object"
  45868. abstract="false"
  45869. static="false" final="false" visibility="public"
  45870. deprecated="not deprecated">
  45871. <method name="configureDB"
  45872. abstract="false" native="false" synchronized="false"
  45873. static="true" final="false" visibility="public"
  45874. deprecated="not deprecated">
  45875. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45876. <param name="driverClass" type="java.lang.String"/>
  45877. <param name="dbUrl" type="java.lang.String"/>
  45878. <param name="userName" type="java.lang.String"/>
  45879. <param name="passwd" type="java.lang.String"/>
  45880. <doc>
  45881. <![CDATA[Sets the DB access related fields in the JobConf.
  45882. @param job the job
  45883. @param driverClass JDBC Driver class name
  45884. @param dbUrl JDBC DB access URL.
  45885. @param userName DB access username
  45886. @param passwd DB access passwd]]>
  45887. </doc>
  45888. </method>
  45889. <method name="configureDB"
  45890. abstract="false" native="false" synchronized="false"
  45891. static="true" final="false" visibility="public"
  45892. deprecated="not deprecated">
  45893. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45894. <param name="driverClass" type="java.lang.String"/>
  45895. <param name="dbUrl" type="java.lang.String"/>
  45896. <doc>
  45897. <![CDATA[Sets the DB access related fields in the JobConf.
  45898. @param job the job
  45899. @param driverClass JDBC Driver class name
  45900. @param dbUrl JDBC DB access URL.]]>
  45901. </doc>
  45902. </method>
  45903. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  45904. transient="false" volatile="false"
  45905. static="true" final="true" visibility="public"
  45906. deprecated="not deprecated">
  45907. <doc>
  45908. <![CDATA[The JDBC Driver class name]]>
  45909. </doc>
  45910. </field>
  45911. <field name="URL_PROPERTY" type="java.lang.String"
  45912. transient="false" volatile="false"
  45913. static="true" final="true" visibility="public"
  45914. deprecated="not deprecated">
  45915. <doc>
  45916. <![CDATA[JDBC Database access URL]]>
  45917. </doc>
  45918. </field>
  45919. <field name="USERNAME_PROPERTY" type="java.lang.String"
  45920. transient="false" volatile="false"
  45921. static="true" final="true" visibility="public"
  45922. deprecated="not deprecated">
  45923. <doc>
  45924. <![CDATA[User name to access the database]]>
  45925. </doc>
  45926. </field>
  45927. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  45928. transient="false" volatile="false"
  45929. static="true" final="true" visibility="public"
  45930. deprecated="not deprecated">
  45931. <doc>
  45932. <![CDATA[Password to access the database]]>
  45933. </doc>
  45934. </field>
  45935. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  45936. transient="false" volatile="false"
  45937. static="true" final="true" visibility="public"
  45938. deprecated="not deprecated">
  45939. <doc>
  45940. <![CDATA[Input table name]]>
  45941. </doc>
  45942. </field>
  45943. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  45944. transient="false" volatile="false"
  45945. static="true" final="true" visibility="public"
  45946. deprecated="not deprecated">
  45947. <doc>
  45948. <![CDATA[Field names in the Input table]]>
  45949. </doc>
  45950. </field>
  45951. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  45952. transient="false" volatile="false"
  45953. static="true" final="true" visibility="public"
  45954. deprecated="not deprecated">
  45955. <doc>
  45956. <![CDATA[WHERE clause in the input SELECT statement]]>
  45957. </doc>
  45958. </field>
  45959. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  45960. transient="false" volatile="false"
  45961. static="true" final="true" visibility="public"
  45962. deprecated="not deprecated">
  45963. <doc>
  45964. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  45965. </doc>
  45966. </field>
  45967. <field name="INPUT_QUERY" type="java.lang.String"
  45968. transient="false" volatile="false"
  45969. static="true" final="true" visibility="public"
  45970. deprecated="not deprecated">
  45971. <doc>
  45972. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  45973. </doc>
  45974. </field>
  45975. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  45976. transient="false" volatile="false"
  45977. static="true" final="true" visibility="public"
  45978. deprecated="not deprecated">
  45979. <doc>
  45980. <![CDATA[Input query to get the count of records]]>
  45981. </doc>
  45982. </field>
  45983. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  45984. transient="false" volatile="false"
  45985. static="true" final="true" visibility="public"
  45986. deprecated="not deprecated">
  45987. <doc>
  45988. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  45989. </doc>
  45990. </field>
  45991. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  45992. transient="false" volatile="false"
  45993. static="true" final="true" visibility="public"
  45994. deprecated="not deprecated">
  45995. <doc>
  45996. <![CDATA[Output table name]]>
  45997. </doc>
  45998. </field>
  45999. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  46000. transient="false" volatile="false"
  46001. static="true" final="true" visibility="public"
  46002. deprecated="not deprecated">
  46003. <doc>
  46004. <![CDATA[Field names in the Output table]]>
  46005. </doc>
  46006. </field>
  46007. <doc>
  46008. <![CDATA[A container for configuration property names for jobs with DB input/output.
  46009. <br>
  46010. The job can be configured using the static methods in this class,
  46011. {@link DBInputFormat}, and {@link DBOutputFormat}.
  46012. <p>
  46013. Alternatively, the properties can be set in the configuration with proper
  46014. values.
  46015. @see DBConfiguration#configureDB(JobConf, String, String, String, String)
  46016. @see DBInputFormat#setInput(JobConf, Class, String, String)
  46017. @see DBInputFormat#setInput(JobConf, Class, String, String, String, String...)
  46018. @see DBOutputFormat#setOutput(JobConf, String, String...)]]>
  46019. </doc>
  46020. </class>
  46021. <!-- end class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  46022. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  46023. <class name="DBInputFormat" extends="java.lang.Object"
  46024. abstract="false"
  46025. static="false" final="false" visibility="public"
  46026. deprecated="not deprecated">
  46027. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  46028. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  46029. <constructor name="DBInputFormat"
  46030. static="false" final="false" visibility="public"
  46031. deprecated="not deprecated">
  46032. </constructor>
  46033. <method name="configure"
  46034. abstract="false" native="false" synchronized="false"
  46035. static="false" final="false" visibility="public"
  46036. deprecated="not deprecated">
  46037. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46038. <doc>
  46039. <![CDATA[{@inheritDoc}]]>
  46040. </doc>
  46041. </method>
  46042. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  46043. abstract="false" native="false" synchronized="false"
  46044. static="false" final="false" visibility="public"
  46045. deprecated="not deprecated">
  46046. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  46047. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46048. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  46049. <exception name="IOException" type="java.io.IOException"/>
  46050. <doc>
  46051. <![CDATA[{@inheritDoc}]]>
  46052. </doc>
  46053. </method>
  46054. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  46055. abstract="false" native="false" synchronized="false"
  46056. static="false" final="false" visibility="public"
  46057. deprecated="not deprecated">
  46058. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46059. <param name="chunks" type="int"/>
  46060. <exception name="IOException" type="java.io.IOException"/>
  46061. <doc>
  46062. <![CDATA[{@inheritDoc}]]>
  46063. </doc>
  46064. </method>
  46065. <method name="getCountQuery" return="java.lang.String"
  46066. abstract="false" native="false" synchronized="false"
  46067. static="false" final="false" visibility="protected"
  46068. deprecated="not deprecated">
  46069. <doc>
  46070. <![CDATA[Returns the query for getting the total number of rows,
  46071. subclasses can override this for custom behaviour.]]>
  46072. </doc>
  46073. </method>
  46074. <method name="setInput"
  46075. abstract="false" native="false" synchronized="false"
  46076. static="true" final="false" visibility="public"
  46077. deprecated="not deprecated">
  46078. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46079. <param name="inputClass" type="java.lang.Class"/>
  46080. <param name="tableName" type="java.lang.String"/>
  46081. <param name="conditions" type="java.lang.String"/>
  46082. <param name="orderBy" type="java.lang.String"/>
  46083. <param name="fieldNames" type="java.lang.String[]"/>
  46084. <doc>
  46085. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  46086. @param job The job
  46087. @param inputClass the class object implementing DBWritable, which is the
  46088. Java object holding tuple fields.
  46089. @param tableName The table to read data from
  46090. @param conditions The condition which to select data with, eg. '(updated >
  46091. 20070101 AND length > 0)'
  46092. @param orderBy the fieldNames in the orderBy clause.
  46093. @param fieldNames The field names in the table
  46094. @see #setInput(JobConf, Class, String, String)]]>
  46095. </doc>
  46096. </method>
  46097. <method name="setInput"
  46098. abstract="false" native="false" synchronized="false"
  46099. static="true" final="false" visibility="public"
  46100. deprecated="not deprecated">
  46101. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46102. <param name="inputClass" type="java.lang.Class"/>
  46103. <param name="inputQuery" type="java.lang.String"/>
  46104. <param name="inputCountQuery" type="java.lang.String"/>
  46105. <doc>
  46106. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  46107. @param job The job
  46108. @param inputClass the class object implementing DBWritable, which is the
  46109. Java object holding tuple fields.
  46110. @param inputQuery the input query to select fields. Example :
  46111. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  46112. @param inputCountQuery the input query that returns the number of records in
  46113. the table.
  46114. Example : "SELECT COUNT(f1) FROM Mytable"
  46115. @see #setInput(JobConf, Class, String, String, String, String...)]]>
  46116. </doc>
  46117. </method>
  46118. <doc>
  46119. <![CDATA[A InputFormat that reads input data from an SQL table.
  46120. <p>
  46121. DBInputFormat emits LongWritables containing the record number as
  46122. key and DBWritables as value.
  46123. The SQL query, and input class can be using one of the two
  46124. setInput methods.]]>
  46125. </doc>
  46126. </class>
  46127. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  46128. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  46129. <class name="DBInputFormat.DBInputSplit" extends="java.lang.Object"
  46130. abstract="false"
  46131. static="true" final="false" visibility="protected"
  46132. deprecated="not deprecated">
  46133. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  46134. <constructor name="DBInputFormat.DBInputSplit"
  46135. static="false" final="false" visibility="public"
  46136. deprecated="not deprecated">
  46137. <doc>
  46138. <![CDATA[Default Constructor]]>
  46139. </doc>
  46140. </constructor>
  46141. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  46142. static="false" final="false" visibility="public"
  46143. deprecated="not deprecated">
  46144. <doc>
  46145. <![CDATA[Convenience Constructor
  46146. @param start the index of the first row to select
  46147. @param end the index of the last row to select]]>
  46148. </doc>
  46149. </constructor>
  46150. <method name="getLocations" return="java.lang.String[]"
  46151. abstract="false" native="false" synchronized="false"
  46152. static="false" final="false" visibility="public"
  46153. deprecated="not deprecated">
  46154. <exception name="IOException" type="java.io.IOException"/>
  46155. <doc>
  46156. <![CDATA[{@inheritDoc}]]>
  46157. </doc>
  46158. </method>
  46159. <method name="getStart" return="long"
  46160. abstract="false" native="false" synchronized="false"
  46161. static="false" final="false" visibility="public"
  46162. deprecated="not deprecated">
  46163. <doc>
  46164. <![CDATA[@return The index of the first row to select]]>
  46165. </doc>
  46166. </method>
  46167. <method name="getEnd" return="long"
  46168. abstract="false" native="false" synchronized="false"
  46169. static="false" final="false" visibility="public"
  46170. deprecated="not deprecated">
  46171. <doc>
  46172. <![CDATA[@return The index of the last row to select]]>
  46173. </doc>
  46174. </method>
  46175. <method name="getLength" return="long"
  46176. abstract="false" native="false" synchronized="false"
  46177. static="false" final="false" visibility="public"
  46178. deprecated="not deprecated">
  46179. <exception name="IOException" type="java.io.IOException"/>
  46180. <doc>
  46181. <![CDATA[@return The total row count in this split]]>
  46182. </doc>
  46183. </method>
  46184. <method name="readFields"
  46185. abstract="false" native="false" synchronized="false"
  46186. static="false" final="false" visibility="public"
  46187. deprecated="not deprecated">
  46188. <param name="input" type="java.io.DataInput"/>
  46189. <exception name="IOException" type="java.io.IOException"/>
  46190. <doc>
  46191. <![CDATA[{@inheritDoc}]]>
  46192. </doc>
  46193. </method>
  46194. <method name="write"
  46195. abstract="false" native="false" synchronized="false"
  46196. static="false" final="false" visibility="public"
  46197. deprecated="not deprecated">
  46198. <param name="output" type="java.io.DataOutput"/>
  46199. <exception name="IOException" type="java.io.IOException"/>
  46200. <doc>
  46201. <![CDATA[{@inheritDoc}]]>
  46202. </doc>
  46203. </method>
  46204. <doc>
  46205. <![CDATA[A InputSplit that spans a set of rows]]>
  46206. </doc>
  46207. </class>
  46208. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  46209. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  46210. <class name="DBInputFormat.DBRecordReader" extends="java.lang.Object"
  46211. abstract="false"
  46212. static="false" final="false" visibility="protected"
  46213. deprecated="not deprecated">
  46214. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  46215. <constructor name="DBInputFormat.DBRecordReader" type="org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.mapred.JobConf"
  46216. static="false" final="false" visibility="protected"
  46217. deprecated="not deprecated">
  46218. <exception name="SQLException" type="java.sql.SQLException"/>
  46219. <doc>
  46220. <![CDATA[@param split The InputSplit to read data for
  46221. @throws SQLException]]>
  46222. </doc>
  46223. </constructor>
  46224. <method name="getSelectQuery" return="java.lang.String"
  46225. abstract="false" native="false" synchronized="false"
  46226. static="false" final="false" visibility="protected"
  46227. deprecated="not deprecated">
  46228. <doc>
  46229. <![CDATA[Returns the query for selecting the records,
  46230. subclasses can override this for custom behaviour.]]>
  46231. </doc>
  46232. </method>
  46233. <method name="close"
  46234. abstract="false" native="false" synchronized="false"
  46235. static="false" final="false" visibility="public"
  46236. deprecated="not deprecated">
  46237. <exception name="IOException" type="java.io.IOException"/>
  46238. <doc>
  46239. <![CDATA[{@inheritDoc}]]>
  46240. </doc>
  46241. </method>
  46242. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  46243. abstract="false" native="false" synchronized="false"
  46244. static="false" final="false" visibility="public"
  46245. deprecated="not deprecated">
  46246. <doc>
  46247. <![CDATA[{@inheritDoc}]]>
  46248. </doc>
  46249. </method>
  46250. <method name="createValue" return="org.apache.hadoop.mapred.lib.db.DBWritable"
  46251. abstract="false" native="false" synchronized="false"
  46252. static="false" final="false" visibility="public"
  46253. deprecated="not deprecated">
  46254. <doc>
  46255. <![CDATA[{@inheritDoc}]]>
  46256. </doc>
  46257. </method>
  46258. <method name="getPos" return="long"
  46259. abstract="false" native="false" synchronized="false"
  46260. static="false" final="false" visibility="public"
  46261. deprecated="not deprecated">
  46262. <exception name="IOException" type="java.io.IOException"/>
  46263. <doc>
  46264. <![CDATA[{@inheritDoc}]]>
  46265. </doc>
  46266. </method>
  46267. <method name="getProgress" return="float"
  46268. abstract="false" native="false" synchronized="false"
  46269. static="false" final="false" visibility="public"
  46270. deprecated="not deprecated">
  46271. <exception name="IOException" type="java.io.IOException"/>
  46272. <doc>
  46273. <![CDATA[{@inheritDoc}]]>
  46274. </doc>
  46275. </method>
  46276. <method name="next" return="boolean"
  46277. abstract="false" native="false" synchronized="false"
  46278. static="false" final="false" visibility="public"
  46279. deprecated="not deprecated">
  46280. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  46281. <param name="value" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  46282. <exception name="IOException" type="java.io.IOException"/>
  46283. <doc>
  46284. <![CDATA[{@inheritDoc}]]>
  46285. </doc>
  46286. </method>
  46287. <doc>
  46288. <![CDATA[A RecordReader that reads records from a SQL table.
  46289. Emits LongWritables containing the record number as
  46290. key and DBWritables as value.]]>
  46291. </doc>
  46292. </class>
  46293. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  46294. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  46295. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  46296. abstract="false"
  46297. static="true" final="false" visibility="public"
  46298. deprecated="not deprecated">
  46299. <implements name="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  46300. <implements name="org.apache.hadoop.io.Writable"/>
  46301. <constructor name="DBInputFormat.NullDBWritable"
  46302. static="false" final="false" visibility="public"
  46303. deprecated="not deprecated">
  46304. </constructor>
  46305. <method name="readFields"
  46306. abstract="false" native="false" synchronized="false"
  46307. static="false" final="false" visibility="public"
  46308. deprecated="not deprecated">
  46309. <param name="in" type="java.io.DataInput"/>
  46310. <exception name="IOException" type="java.io.IOException"/>
  46311. </method>
  46312. <method name="readFields"
  46313. abstract="false" native="false" synchronized="false"
  46314. static="false" final="false" visibility="public"
  46315. deprecated="not deprecated">
  46316. <param name="arg0" type="java.sql.ResultSet"/>
  46317. <exception name="SQLException" type="java.sql.SQLException"/>
  46318. </method>
  46319. <method name="write"
  46320. abstract="false" native="false" synchronized="false"
  46321. static="false" final="false" visibility="public"
  46322. deprecated="not deprecated">
  46323. <param name="out" type="java.io.DataOutput"/>
  46324. <exception name="IOException" type="java.io.IOException"/>
  46325. </method>
  46326. <method name="write"
  46327. abstract="false" native="false" synchronized="false"
  46328. static="false" final="false" visibility="public"
  46329. deprecated="not deprecated">
  46330. <param name="arg0" type="java.sql.PreparedStatement"/>
  46331. <exception name="SQLException" type="java.sql.SQLException"/>
  46332. </method>
  46333. <doc>
  46334. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  46335. </doc>
  46336. </class>
  46337. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  46338. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  46339. <class name="DBOutputFormat" extends="java.lang.Object"
  46340. abstract="false"
  46341. static="false" final="false" visibility="public"
  46342. deprecated="not deprecated">
  46343. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  46344. <constructor name="DBOutputFormat"
  46345. static="false" final="false" visibility="public"
  46346. deprecated="not deprecated">
  46347. </constructor>
  46348. <method name="constructQuery" return="java.lang.String"
  46349. abstract="false" native="false" synchronized="false"
  46350. static="false" final="false" visibility="protected"
  46351. deprecated="not deprecated">
  46352. <param name="table" type="java.lang.String"/>
  46353. <param name="fieldNames" type="java.lang.String[]"/>
  46354. <doc>
  46355. <![CDATA[Constructs the query used as the prepared statement to insert data.
  46356. @param table
  46357. the table to insert into
  46358. @param fieldNames
  46359. the fields to insert into. If field names are unknown, supply an
  46360. array of nulls.]]>
  46361. </doc>
  46362. </method>
  46363. <method name="checkOutputSpecs"
  46364. abstract="false" native="false" synchronized="false"
  46365. static="false" final="false" visibility="public"
  46366. deprecated="not deprecated">
  46367. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  46368. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46369. <exception name="IOException" type="java.io.IOException"/>
  46370. <doc>
  46371. <![CDATA[{@inheritDoc}]]>
  46372. </doc>
  46373. </method>
  46374. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  46375. abstract="false" native="false" synchronized="false"
  46376. static="false" final="false" visibility="public"
  46377. deprecated="not deprecated">
  46378. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  46379. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46380. <param name="name" type="java.lang.String"/>
  46381. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  46382. <exception name="IOException" type="java.io.IOException"/>
  46383. <doc>
  46384. <![CDATA[{@inheritDoc}]]>
  46385. </doc>
  46386. </method>
  46387. <method name="setOutput"
  46388. abstract="false" native="false" synchronized="false"
  46389. static="true" final="false" visibility="public"
  46390. deprecated="not deprecated">
  46391. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46392. <param name="tableName" type="java.lang.String"/>
  46393. <param name="fieldNames" type="java.lang.String[]"/>
  46394. <doc>
  46395. <![CDATA[Initializes the reduce-part of the job with the appropriate output settings
  46396. @param job
  46397. The job
  46398. @param tableName
  46399. The table to insert data into
  46400. @param fieldNames
  46401. The field names in the table. If unknown, supply the appropriate
  46402. number of nulls.]]>
  46403. </doc>
  46404. </method>
  46405. <doc>
  46406. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  46407. <p>
  46408. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  46409. key has a type extending DBWritable. Returned {@link RecordWriter}
  46410. writes <b>only the key</b> to the database with a batch SQL query.]]>
  46411. </doc>
  46412. </class>
  46413. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  46414. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  46415. <class name="DBOutputFormat.DBRecordWriter" extends="java.lang.Object"
  46416. abstract="false"
  46417. static="false" final="false" visibility="protected"
  46418. deprecated="not deprecated">
  46419. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  46420. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  46421. static="false" final="false" visibility="protected"
  46422. deprecated="not deprecated">
  46423. <exception name="SQLException" type="java.sql.SQLException"/>
  46424. </constructor>
  46425. <method name="close"
  46426. abstract="false" native="false" synchronized="false"
  46427. static="false" final="false" visibility="public"
  46428. deprecated="not deprecated">
  46429. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  46430. <exception name="IOException" type="java.io.IOException"/>
  46431. <doc>
  46432. <![CDATA[{@inheritDoc}]]>
  46433. </doc>
  46434. </method>
  46435. <method name="write"
  46436. abstract="false" native="false" synchronized="false"
  46437. static="false" final="false" visibility="public"
  46438. deprecated="not deprecated">
  46439. <param name="key" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  46440. <param name="value" type="java.lang.Object"/>
  46441. <exception name="IOException" type="java.io.IOException"/>
  46442. <doc>
  46443. <![CDATA[{@inheritDoc}]]>
  46444. </doc>
  46445. </method>
  46446. <doc>
  46447. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  46448. </doc>
  46449. </class>
  46450. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  46451. <!-- start interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  46452. <interface name="DBWritable" abstract="true"
  46453. static="false" final="false" visibility="public"
  46454. deprecated="not deprecated">
  46455. <method name="write"
  46456. abstract="false" native="false" synchronized="false"
  46457. static="false" final="false" visibility="public"
  46458. deprecated="not deprecated">
  46459. <param name="statement" type="java.sql.PreparedStatement"/>
  46460. <exception name="SQLException" type="java.sql.SQLException"/>
  46461. <doc>
  46462. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  46463. @param statement the statement that the fields are put into.
  46464. @throws SQLException]]>
  46465. </doc>
  46466. </method>
  46467. <method name="readFields"
  46468. abstract="false" native="false" synchronized="false"
  46469. static="false" final="false" visibility="public"
  46470. deprecated="not deprecated">
  46471. <param name="resultSet" type="java.sql.ResultSet"/>
  46472. <exception name="SQLException" type="java.sql.SQLException"/>
  46473. <doc>
  46474. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  46475. @param resultSet the {@link ResultSet} to get the fields from.
  46476. @throws SQLException]]>
  46477. </doc>
  46478. </method>
  46479. <doc>
  46480. <![CDATA[Objects that are read from/written to a database should implement
  46481. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  46482. except that the {@link #write(PreparedStatement)} method takes a
  46483. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  46484. takes a {@link ResultSet}.
  46485. <p>
  46486. Implementations are responsible for writing the fields of the object
  46487. to PreparedStatement, and reading the fields of the object from the
  46488. ResultSet.
  46489. <p>Example:</p>
  46490. If we have the following table in the database :
  46491. <pre>
  46492. CREATE TABLE MyTable (
  46493. counter INTEGER NOT NULL,
  46494. timestamp BIGINT NOT NULL,
  46495. );
  46496. </pre>
  46497. then we can read/write the tuples from/to the table with :
  46498. <p><pre>
  46499. public class MyWritable implements Writable, DBWritable {
  46500. // Some data
  46501. private int counter;
  46502. private long timestamp;
  46503. //Writable#write() implementation
  46504. public void write(DataOutput out) throws IOException {
  46505. out.writeInt(counter);
  46506. out.writeLong(timestamp);
  46507. }
  46508. //Writable#readFields() implementation
  46509. public void readFields(DataInput in) throws IOException {
  46510. counter = in.readInt();
  46511. timestamp = in.readLong();
  46512. }
  46513. public void write(PreparedStatement statement) throws SQLException {
  46514. statement.setInt(1, counter);
  46515. statement.setLong(2, timestamp);
  46516. }
  46517. public void readFields(ResultSet resultSet) throws SQLException {
  46518. counter = resultSet.getInt(1);
  46519. timestamp = resultSet.getLong(2);
  46520. }
  46521. }
  46522. </pre></p>]]>
  46523. </doc>
  46524. </interface>
  46525. <!-- end interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  46526. </package>
  46527. <package name="org.apache.hadoop.mapred.pipes">
  46528. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  46529. <class name="Submitter" extends="org.apache.hadoop.conf.Configured"
  46530. abstract="false"
  46531. static="false" final="false" visibility="public"
  46532. deprecated="not deprecated">
  46533. <implements name="org.apache.hadoop.util.Tool"/>
  46534. <constructor name="Submitter"
  46535. static="false" final="false" visibility="public"
  46536. deprecated="not deprecated">
  46537. </constructor>
  46538. <constructor name="Submitter" type="org.apache.hadoop.conf.Configuration"
  46539. static="false" final="false" visibility="public"
  46540. deprecated="not deprecated">
  46541. </constructor>
  46542. <method name="getExecutable" return="java.lang.String"
  46543. abstract="false" native="false" synchronized="false"
  46544. static="true" final="false" visibility="public"
  46545. deprecated="not deprecated">
  46546. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46547. <doc>
  46548. <![CDATA[Get the URI of the application's executable.
  46549. @param conf
  46550. @return the URI where the application's executable is located]]>
  46551. </doc>
  46552. </method>
  46553. <method name="setExecutable"
  46554. abstract="false" native="false" synchronized="false"
  46555. static="true" final="false" visibility="public"
  46556. deprecated="not deprecated">
  46557. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46558. <param name="executable" type="java.lang.String"/>
  46559. <doc>
  46560. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  46561. location.
  46562. @param conf
  46563. @param executable The URI of the application's executable.]]>
  46564. </doc>
  46565. </method>
  46566. <method name="setIsJavaRecordReader"
  46567. abstract="false" native="false" synchronized="false"
  46568. static="true" final="false" visibility="public"
  46569. deprecated="not deprecated">
  46570. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46571. <param name="value" type="boolean"/>
  46572. <doc>
  46573. <![CDATA[Set whether the job is using a Java RecordReader.
  46574. @param conf the configuration to modify
  46575. @param value the new value]]>
  46576. </doc>
  46577. </method>
  46578. <method name="getIsJavaRecordReader" return="boolean"
  46579. abstract="false" native="false" synchronized="false"
  46580. static="true" final="false" visibility="public"
  46581. deprecated="not deprecated">
  46582. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46583. <doc>
  46584. <![CDATA[Check whether the job is using a Java RecordReader
  46585. @param conf the configuration to check
  46586. @return is it a Java RecordReader?]]>
  46587. </doc>
  46588. </method>
  46589. <method name="setIsJavaMapper"
  46590. abstract="false" native="false" synchronized="false"
  46591. static="true" final="false" visibility="public"
  46592. deprecated="not deprecated">
  46593. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46594. <param name="value" type="boolean"/>
  46595. <doc>
  46596. <![CDATA[Set whether the Mapper is written in Java.
  46597. @param conf the configuration to modify
  46598. @param value the new value]]>
  46599. </doc>
  46600. </method>
  46601. <method name="getIsJavaMapper" return="boolean"
  46602. abstract="false" native="false" synchronized="false"
  46603. static="true" final="false" visibility="public"
  46604. deprecated="not deprecated">
  46605. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46606. <doc>
  46607. <![CDATA[Check whether the job is using a Java Mapper.
  46608. @param conf the configuration to check
  46609. @return is it a Java Mapper?]]>
  46610. </doc>
  46611. </method>
  46612. <method name="setIsJavaReducer"
  46613. abstract="false" native="false" synchronized="false"
  46614. static="true" final="false" visibility="public"
  46615. deprecated="not deprecated">
  46616. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46617. <param name="value" type="boolean"/>
  46618. <doc>
  46619. <![CDATA[Set whether the Reducer is written in Java.
  46620. @param conf the configuration to modify
  46621. @param value the new value]]>
  46622. </doc>
  46623. </method>
  46624. <method name="getIsJavaReducer" return="boolean"
  46625. abstract="false" native="false" synchronized="false"
  46626. static="true" final="false" visibility="public"
  46627. deprecated="not deprecated">
  46628. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46629. <doc>
  46630. <![CDATA[Check whether the job is using a Java Reducer.
  46631. @param conf the configuration to check
  46632. @return is it a Java Reducer?]]>
  46633. </doc>
  46634. </method>
  46635. <method name="setIsJavaRecordWriter"
  46636. abstract="false" native="false" synchronized="false"
  46637. static="true" final="false" visibility="public"
  46638. deprecated="not deprecated">
  46639. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46640. <param name="value" type="boolean"/>
  46641. <doc>
  46642. <![CDATA[Set whether the job will use a Java RecordWriter.
  46643. @param conf the configuration to modify
  46644. @param value the new value to set]]>
  46645. </doc>
  46646. </method>
  46647. <method name="getIsJavaRecordWriter" return="boolean"
  46648. abstract="false" native="false" synchronized="false"
  46649. static="true" final="false" visibility="public"
  46650. deprecated="not deprecated">
  46651. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46652. <doc>
  46653. <![CDATA[Will the reduce use a Java RecordWriter?
  46654. @param conf the configuration to check
  46655. @return true, if the output of the job will be written by Java]]>
  46656. </doc>
  46657. </method>
  46658. <method name="getKeepCommandFile" return="boolean"
  46659. abstract="false" native="false" synchronized="false"
  46660. static="true" final="false" visibility="public"
  46661. deprecated="not deprecated">
  46662. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46663. <doc>
  46664. <![CDATA[Does the user want to keep the command file for debugging? If this is
  46665. true, pipes will write a copy of the command data to a file in the
  46666. task directory named "downlink.data", which may be used to run the C++
  46667. program under the debugger. You probably also want to set
  46668. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  46669. being deleted.
  46670. To run using the data file, set the environment variable
  46671. "hadoop.pipes.command.file" to point to the file.
  46672. @param conf the configuration to check
  46673. @return will the framework save the command file?]]>
  46674. </doc>
  46675. </method>
  46676. <method name="setKeepCommandFile"
  46677. abstract="false" native="false" synchronized="false"
  46678. static="true" final="false" visibility="public"
  46679. deprecated="not deprecated">
  46680. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46681. <param name="keep" type="boolean"/>
  46682. <doc>
  46683. <![CDATA[Set whether to keep the command file for debugging
  46684. @param conf the configuration to modify
  46685. @param keep the new value]]>
  46686. </doc>
  46687. </method>
  46688. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  46689. abstract="false" native="false" synchronized="false"
  46690. static="true" final="false" visibility="public"
  46691. deprecated="Use {@link Submitter#runJob(JobConf)}">
  46692. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46693. <exception name="IOException" type="java.io.IOException"/>
  46694. <doc>
  46695. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  46696. to the job to run under pipes are made to the configuration.
  46697. @param conf the job to submit to the cluster (MODIFIED)
  46698. @throws IOException
  46699. @deprecated Use {@link Submitter#runJob(JobConf)}]]>
  46700. </doc>
  46701. </method>
  46702. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  46703. abstract="false" native="false" synchronized="false"
  46704. static="true" final="false" visibility="public"
  46705. deprecated="not deprecated">
  46706. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46707. <exception name="IOException" type="java.io.IOException"/>
  46708. <doc>
  46709. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  46710. to the job to run under pipes are made to the configuration.
  46711. @param conf the job to submit to the cluster (MODIFIED)
  46712. @throws IOException]]>
  46713. </doc>
  46714. </method>
  46715. <method name="jobSubmit" return="org.apache.hadoop.mapred.RunningJob"
  46716. abstract="false" native="false" synchronized="false"
  46717. static="true" final="false" visibility="public"
  46718. deprecated="not deprecated">
  46719. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46720. <exception name="IOException" type="java.io.IOException"/>
  46721. <doc>
  46722. <![CDATA[Submit a job to the Map-Reduce framework.
  46723. This returns a handle to the {@link RunningJob} which can be used to track
  46724. the running-job.
  46725. @param conf the job configuration.
  46726. @return a handle to the {@link RunningJob} which can be used to track the
  46727. running-job.
  46728. @throws IOException]]>
  46729. </doc>
  46730. </method>
  46731. <method name="run" return="int"
  46732. abstract="false" native="false" synchronized="false"
  46733. static="false" final="false" visibility="public"
  46734. deprecated="not deprecated">
  46735. <param name="args" type="java.lang.String[]"/>
  46736. <exception name="Exception" type="java.lang.Exception"/>
  46737. </method>
  46738. <method name="main"
  46739. abstract="false" native="false" synchronized="false"
  46740. static="true" final="false" visibility="public"
  46741. deprecated="not deprecated">
  46742. <param name="args" type="java.lang.String[]"/>
  46743. <exception name="Exception" type="java.lang.Exception"/>
  46744. <doc>
  46745. <![CDATA[Submit a pipes job based on the command line arguments.
  46746. @param args]]>
  46747. </doc>
  46748. </method>
  46749. <field name="LOG" type="org.apache.commons.logging.Log"
  46750. transient="false" volatile="false"
  46751. static="true" final="true" visibility="protected"
  46752. deprecated="not deprecated">
  46753. </field>
  46754. <doc>
  46755. <![CDATA[The main entry point and job submitter. It may either be used as a command
  46756. line-based or API-based method to launch Pipes jobs.]]>
  46757. </doc>
  46758. </class>
  46759. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  46760. </package>
  46761. <package name="org.apache.hadoop.mapred.tools">
  46762. <!-- start class org.apache.hadoop.mapred.tools.MRAdmin -->
  46763. <class name="MRAdmin" extends="org.apache.hadoop.conf.Configured"
  46764. abstract="false"
  46765. static="false" final="false" visibility="public"
  46766. deprecated="not deprecated">
  46767. <implements name="org.apache.hadoop.util.Tool"/>
  46768. <constructor name="MRAdmin"
  46769. static="false" final="false" visibility="public"
  46770. deprecated="not deprecated">
  46771. </constructor>
  46772. <constructor name="MRAdmin" type="org.apache.hadoop.conf.Configuration"
  46773. static="false" final="false" visibility="public"
  46774. deprecated="not deprecated">
  46775. </constructor>
  46776. <method name="run" return="int"
  46777. abstract="false" native="false" synchronized="false"
  46778. static="false" final="false" visibility="public"
  46779. deprecated="not deprecated">
  46780. <param name="args" type="java.lang.String[]"/>
  46781. <exception name="Exception" type="java.lang.Exception"/>
  46782. </method>
  46783. <method name="main"
  46784. abstract="false" native="false" synchronized="false"
  46785. static="true" final="false" visibility="public"
  46786. deprecated="not deprecated">
  46787. <param name="args" type="java.lang.String[]"/>
  46788. <exception name="Exception" type="java.lang.Exception"/>
  46789. </method>
  46790. <doc>
  46791. <![CDATA[Administrative access to Hadoop Map-Reduce.
  46792. Currently it only provides the ability to connect to the {@link JobTracker}
  46793. and refresh the service-level authorization policy.]]>
  46794. </doc>
  46795. </class>
  46796. <!-- end class org.apache.hadoop.mapred.tools.MRAdmin -->
  46797. </package>
  46798. <package name="org.apache.hadoop.mapreduce">
  46799. <!-- start class org.apache.hadoop.mapreduce.Counter -->
  46800. <class name="Counter" extends="java.lang.Object"
  46801. abstract="false"
  46802. static="false" final="false" visibility="public"
  46803. deprecated="not deprecated">
  46804. <implements name="org.apache.hadoop.io.Writable"/>
  46805. <constructor name="Counter"
  46806. static="false" final="false" visibility="protected"
  46807. deprecated="not deprecated">
  46808. </constructor>
  46809. <constructor name="Counter" type="java.lang.String, java.lang.String"
  46810. static="false" final="false" visibility="protected"
  46811. deprecated="not deprecated">
  46812. </constructor>
  46813. <method name="setDisplayName"
  46814. abstract="false" native="false" synchronized="true"
  46815. static="false" final="false" visibility="protected"
  46816. deprecated="not deprecated">
  46817. <param name="displayName" type="java.lang.String"/>
  46818. </method>
  46819. <method name="readFields"
  46820. abstract="false" native="false" synchronized="true"
  46821. static="false" final="false" visibility="public"
  46822. deprecated="not deprecated">
  46823. <param name="in" type="java.io.DataInput"/>
  46824. <exception name="IOException" type="java.io.IOException"/>
  46825. <doc>
  46826. <![CDATA[Read the binary representation of the counter]]>
  46827. </doc>
  46828. </method>
  46829. <method name="write"
  46830. abstract="false" native="false" synchronized="true"
  46831. static="false" final="false" visibility="public"
  46832. deprecated="not deprecated">
  46833. <param name="out" type="java.io.DataOutput"/>
  46834. <exception name="IOException" type="java.io.IOException"/>
  46835. <doc>
  46836. <![CDATA[Write the binary representation of the counter]]>
  46837. </doc>
  46838. </method>
  46839. <method name="getName" return="java.lang.String"
  46840. abstract="false" native="false" synchronized="true"
  46841. static="false" final="false" visibility="public"
  46842. deprecated="not deprecated">
  46843. </method>
  46844. <method name="getDisplayName" return="java.lang.String"
  46845. abstract="false" native="false" synchronized="true"
  46846. static="false" final="false" visibility="public"
  46847. deprecated="not deprecated">
  46848. <doc>
  46849. <![CDATA[Get the name of the counter.
  46850. @return the user facing name of the counter]]>
  46851. </doc>
  46852. </method>
  46853. <method name="getValue" return="long"
  46854. abstract="false" native="false" synchronized="true"
  46855. static="false" final="false" visibility="public"
  46856. deprecated="not deprecated">
  46857. <doc>
  46858. <![CDATA[What is the current value of this counter?
  46859. @return the current value]]>
  46860. </doc>
  46861. </method>
  46862. <method name="increment"
  46863. abstract="false" native="false" synchronized="true"
  46864. static="false" final="false" visibility="public"
  46865. deprecated="not deprecated">
  46866. <param name="incr" type="long"/>
  46867. <doc>
  46868. <![CDATA[Increment this counter by the given value
  46869. @param incr the value to increase this counter by]]>
  46870. </doc>
  46871. </method>
  46872. <method name="equals" return="boolean"
  46873. abstract="false" native="false" synchronized="true"
  46874. static="false" final="false" visibility="public"
  46875. deprecated="not deprecated">
  46876. <param name="genericRight" type="java.lang.Object"/>
  46877. </method>
  46878. <method name="hashCode" return="int"
  46879. abstract="false" native="false" synchronized="true"
  46880. static="false" final="false" visibility="public"
  46881. deprecated="not deprecated">
  46882. </method>
  46883. <doc>
  46884. <![CDATA[A named counter that tracks the progress of a map/reduce job.
  46885. <p><code>Counters</code> represent global counters, defined either by the
  46886. Map-Reduce framework or applications. Each <code>Counter</code> is named by
  46887. an {@link Enum} and has a long for the value.</p>
  46888. <p><code>Counters</code> are bunched into Groups, each comprising of
  46889. counters from a particular <code>Enum</code> class.]]>
  46890. </doc>
  46891. </class>
  46892. <!-- end class org.apache.hadoop.mapreduce.Counter -->
  46893. <!-- start class org.apache.hadoop.mapreduce.CounterGroup -->
  46894. <class name="CounterGroup" extends="java.lang.Object"
  46895. abstract="false"
  46896. static="false" final="false" visibility="public"
  46897. deprecated="not deprecated">
  46898. <implements name="org.apache.hadoop.io.Writable"/>
  46899. <implements name="java.lang.Iterable"/>
  46900. <constructor name="CounterGroup" type="java.lang.String"
  46901. static="false" final="false" visibility="protected"
  46902. deprecated="not deprecated">
  46903. </constructor>
  46904. <constructor name="CounterGroup" type="java.lang.String, java.lang.String"
  46905. static="false" final="false" visibility="protected"
  46906. deprecated="not deprecated">
  46907. </constructor>
  46908. <method name="getName" return="java.lang.String"
  46909. abstract="false" native="false" synchronized="true"
  46910. static="false" final="false" visibility="public"
  46911. deprecated="not deprecated">
  46912. <doc>
  46913. <![CDATA[Get the internal name of the group
  46914. @return the internal name]]>
  46915. </doc>
  46916. </method>
  46917. <method name="getDisplayName" return="java.lang.String"
  46918. abstract="false" native="false" synchronized="true"
  46919. static="false" final="false" visibility="public"
  46920. deprecated="not deprecated">
  46921. <doc>
  46922. <![CDATA[Get the display name of the group.
  46923. @return the human readable name]]>
  46924. </doc>
  46925. </method>
  46926. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  46927. abstract="false" native="false" synchronized="false"
  46928. static="false" final="false" visibility="protected"
  46929. deprecated="not deprecated">
  46930. <param name="counterName" type="java.lang.String"/>
  46931. <param name="displayName" type="java.lang.String"/>
  46932. <doc>
  46933. <![CDATA[Internal to find a counter in a group.
  46934. @param counterName the name of the counter
  46935. @param displayName the display name of the counter
  46936. @return the counter that was found or added]]>
  46937. </doc>
  46938. </method>
  46939. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  46940. abstract="false" native="false" synchronized="true"
  46941. static="false" final="false" visibility="public"
  46942. deprecated="not deprecated">
  46943. <param name="counterName" type="java.lang.String"/>
  46944. </method>
  46945. <method name="iterator" return="java.util.Iterator"
  46946. abstract="false" native="false" synchronized="true"
  46947. static="false" final="false" visibility="public"
  46948. deprecated="not deprecated">
  46949. </method>
  46950. <method name="write"
  46951. abstract="false" native="false" synchronized="true"
  46952. static="false" final="false" visibility="public"
  46953. deprecated="not deprecated">
  46954. <param name="out" type="java.io.DataOutput"/>
  46955. <exception name="IOException" type="java.io.IOException"/>
  46956. </method>
  46957. <method name="readFields"
  46958. abstract="false" native="false" synchronized="true"
  46959. static="false" final="false" visibility="public"
  46960. deprecated="not deprecated">
  46961. <param name="in" type="java.io.DataInput"/>
  46962. <exception name="IOException" type="java.io.IOException"/>
  46963. </method>
  46964. <method name="size" return="int"
  46965. abstract="false" native="false" synchronized="true"
  46966. static="false" final="false" visibility="public"
  46967. deprecated="not deprecated">
  46968. <doc>
  46969. <![CDATA[Returns the number of counters in this group.]]>
  46970. </doc>
  46971. </method>
  46972. <method name="equals" return="boolean"
  46973. abstract="false" native="false" synchronized="true"
  46974. static="false" final="false" visibility="public"
  46975. deprecated="not deprecated">
  46976. <param name="genericRight" type="java.lang.Object"/>
  46977. </method>
  46978. <method name="hashCode" return="int"
  46979. abstract="false" native="false" synchronized="true"
  46980. static="false" final="false" visibility="public"
  46981. deprecated="not deprecated">
  46982. </method>
  46983. <method name="incrAllCounters"
  46984. abstract="false" native="false" synchronized="true"
  46985. static="false" final="false" visibility="public"
  46986. deprecated="not deprecated">
  46987. <param name="rightGroup" type="org.apache.hadoop.mapreduce.CounterGroup"/>
  46988. </method>
  46989. <doc>
  46990. <![CDATA[A group of {@link Counter}s that logically belong together. Typically,
  46991. it is an {@link Enum} subclass and the counters are the values.]]>
  46992. </doc>
  46993. </class>
  46994. <!-- end class org.apache.hadoop.mapreduce.CounterGroup -->
  46995. <!-- start class org.apache.hadoop.mapreduce.Counters -->
  46996. <class name="Counters" extends="java.lang.Object"
  46997. abstract="false"
  46998. static="false" final="false" visibility="public"
  46999. deprecated="not deprecated">
  47000. <implements name="org.apache.hadoop.io.Writable"/>
  47001. <implements name="java.lang.Iterable"/>
  47002. <constructor name="Counters"
  47003. static="false" final="false" visibility="public"
  47004. deprecated="not deprecated">
  47005. </constructor>
  47006. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  47007. abstract="false" native="false" synchronized="false"
  47008. static="false" final="false" visibility="public"
  47009. deprecated="not deprecated">
  47010. <param name="groupName" type="java.lang.String"/>
  47011. <param name="counterName" type="java.lang.String"/>
  47012. </method>
  47013. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  47014. abstract="false" native="false" synchronized="true"
  47015. static="false" final="false" visibility="public"
  47016. deprecated="not deprecated">
  47017. <param name="key" type="java.lang.Enum"/>
  47018. <doc>
  47019. <![CDATA[Find the counter for the given enum. The same enum will always return the
  47020. same counter.
  47021. @param key the counter key
  47022. @return the matching counter object]]>
  47023. </doc>
  47024. </method>
  47025. <method name="getGroupNames" return="java.util.Collection"
  47026. abstract="false" native="false" synchronized="true"
  47027. static="false" final="false" visibility="public"
  47028. deprecated="not deprecated">
  47029. <doc>
  47030. <![CDATA[Returns the names of all counter classes.
  47031. @return Set of counter names.]]>
  47032. </doc>
  47033. </method>
  47034. <method name="iterator" return="java.util.Iterator"
  47035. abstract="false" native="false" synchronized="false"
  47036. static="false" final="false" visibility="public"
  47037. deprecated="not deprecated">
  47038. </method>
  47039. <method name="getGroup" return="org.apache.hadoop.mapreduce.CounterGroup"
  47040. abstract="false" native="false" synchronized="true"
  47041. static="false" final="false" visibility="public"
  47042. deprecated="not deprecated">
  47043. <param name="groupName" type="java.lang.String"/>
  47044. <doc>
  47045. <![CDATA[Returns the named counter group, or an empty group if there is none
  47046. with the specified name.]]>
  47047. </doc>
  47048. </method>
  47049. <method name="countCounters" return="int"
  47050. abstract="false" native="false" synchronized="true"
  47051. static="false" final="false" visibility="public"
  47052. deprecated="not deprecated">
  47053. <doc>
  47054. <![CDATA[Returns the total number of counters, by summing the number of counters
  47055. in each group.]]>
  47056. </doc>
  47057. </method>
  47058. <method name="write"
  47059. abstract="false" native="false" synchronized="true"
  47060. static="false" final="false" visibility="public"
  47061. deprecated="not deprecated">
  47062. <param name="out" type="java.io.DataOutput"/>
  47063. <exception name="IOException" type="java.io.IOException"/>
  47064. <doc>
  47065. <![CDATA[Write the set of groups.
  47066. The external format is:
  47067. #groups (groupName group)*
  47068. i.e. the number of groups followed by 0 or more groups, where each
  47069. group is of the form:
  47070. groupDisplayName #counters (false | true counter)*
  47071. where each counter is of the form:
  47072. name (false | true displayName) value]]>
  47073. </doc>
  47074. </method>
  47075. <method name="readFields"
  47076. abstract="false" native="false" synchronized="true"
  47077. static="false" final="false" visibility="public"
  47078. deprecated="not deprecated">
  47079. <param name="in" type="java.io.DataInput"/>
  47080. <exception name="IOException" type="java.io.IOException"/>
  47081. <doc>
  47082. <![CDATA[Read a set of groups.]]>
  47083. </doc>
  47084. </method>
  47085. <method name="toString" return="java.lang.String"
  47086. abstract="false" native="false" synchronized="true"
  47087. static="false" final="false" visibility="public"
  47088. deprecated="not deprecated">
  47089. <doc>
  47090. <![CDATA[Return textual representation of the counter values.]]>
  47091. </doc>
  47092. </method>
  47093. <method name="incrAllCounters"
  47094. abstract="false" native="false" synchronized="true"
  47095. static="false" final="false" visibility="public"
  47096. deprecated="not deprecated">
  47097. <param name="other" type="org.apache.hadoop.mapreduce.Counters"/>
  47098. <doc>
  47099. <![CDATA[Increments multiple counters by their amounts in another Counters
  47100. instance.
  47101. @param other the other Counters instance]]>
  47102. </doc>
  47103. </method>
  47104. <method name="equals" return="boolean"
  47105. abstract="false" native="false" synchronized="false"
  47106. static="false" final="false" visibility="public"
  47107. deprecated="not deprecated">
  47108. <param name="genericRight" type="java.lang.Object"/>
  47109. </method>
  47110. <method name="hashCode" return="int"
  47111. abstract="false" native="false" synchronized="false"
  47112. static="false" final="false" visibility="public"
  47113. deprecated="not deprecated">
  47114. </method>
  47115. </class>
  47116. <!-- end class org.apache.hadoop.mapreduce.Counters -->
  47117. <!-- start class org.apache.hadoop.mapreduce.ID -->
  47118. <class name="ID" extends="java.lang.Object"
  47119. abstract="true"
  47120. static="false" final="false" visibility="public"
  47121. deprecated="not deprecated">
  47122. <implements name="org.apache.hadoop.io.WritableComparable"/>
  47123. <constructor name="ID" type="int"
  47124. static="false" final="false" visibility="public"
  47125. deprecated="not deprecated">
  47126. <doc>
  47127. <![CDATA[constructs an ID object from the given int]]>
  47128. </doc>
  47129. </constructor>
  47130. <constructor name="ID"
  47131. static="false" final="false" visibility="protected"
  47132. deprecated="not deprecated">
  47133. </constructor>
  47134. <method name="getId" return="int"
  47135. abstract="false" native="false" synchronized="false"
  47136. static="false" final="false" visibility="public"
  47137. deprecated="not deprecated">
  47138. <doc>
  47139. <![CDATA[returns the int which represents the identifier]]>
  47140. </doc>
  47141. </method>
  47142. <method name="toString" return="java.lang.String"
  47143. abstract="false" native="false" synchronized="false"
  47144. static="false" final="false" visibility="public"
  47145. deprecated="not deprecated">
  47146. </method>
  47147. <method name="hashCode" return="int"
  47148. abstract="false" native="false" synchronized="false"
  47149. static="false" final="false" visibility="public"
  47150. deprecated="not deprecated">
  47151. </method>
  47152. <method name="equals" return="boolean"
  47153. abstract="false" native="false" synchronized="false"
  47154. static="false" final="false" visibility="public"
  47155. deprecated="not deprecated">
  47156. <param name="o" type="java.lang.Object"/>
  47157. </method>
  47158. <method name="compareTo" return="int"
  47159. abstract="false" native="false" synchronized="false"
  47160. static="false" final="false" visibility="public"
  47161. deprecated="not deprecated">
  47162. <param name="that" type="org.apache.hadoop.mapreduce.ID"/>
  47163. <doc>
  47164. <![CDATA[Compare IDs by associated numbers]]>
  47165. </doc>
  47166. </method>
  47167. <method name="readFields"
  47168. abstract="false" native="false" synchronized="false"
  47169. static="false" final="false" visibility="public"
  47170. deprecated="not deprecated">
  47171. <param name="in" type="java.io.DataInput"/>
  47172. <exception name="IOException" type="java.io.IOException"/>
  47173. </method>
  47174. <method name="write"
  47175. abstract="false" native="false" synchronized="false"
  47176. static="false" final="false" visibility="public"
  47177. deprecated="not deprecated">
  47178. <param name="out" type="java.io.DataOutput"/>
  47179. <exception name="IOException" type="java.io.IOException"/>
  47180. </method>
  47181. <field name="SEPARATOR" type="char"
  47182. transient="false" volatile="false"
  47183. static="true" final="true" visibility="protected"
  47184. deprecated="not deprecated">
  47185. </field>
  47186. <field name="id" type="int"
  47187. transient="false" volatile="false"
  47188. static="false" final="false" visibility="protected"
  47189. deprecated="not deprecated">
  47190. </field>
  47191. <doc>
  47192. <![CDATA[A general identifier, which internally stores the id
  47193. as an integer. This is the super class of {@link JobID},
  47194. {@link TaskID} and {@link TaskAttemptID}.
  47195. @see JobID
  47196. @see TaskID
  47197. @see TaskAttemptID]]>
  47198. </doc>
  47199. </class>
  47200. <!-- end class org.apache.hadoop.mapreduce.ID -->
  47201. <!-- start class org.apache.hadoop.mapreduce.InputFormat -->
  47202. <class name="InputFormat" extends="java.lang.Object"
  47203. abstract="true"
  47204. static="false" final="false" visibility="public"
  47205. deprecated="not deprecated">
  47206. <constructor name="InputFormat"
  47207. static="false" final="false" visibility="public"
  47208. deprecated="not deprecated">
  47209. </constructor>
  47210. <method name="getSplits" return="java.util.List"
  47211. abstract="true" native="false" synchronized="false"
  47212. static="false" final="false" visibility="public"
  47213. deprecated="not deprecated">
  47214. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  47215. <exception name="IOException" type="java.io.IOException"/>
  47216. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47217. <doc>
  47218. <![CDATA[Logically split the set of input files for the job.
  47219. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  47220. for processing.</p>
  47221. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  47222. input files are not physically split into chunks. For e.g. a split could
  47223. be <i>&lt;input-file-path, start, offset&gt;</i> tuple. The InputFormat
  47224. also creates the {@link RecordReader} to read the {@link InputSplit}.
  47225. @param context job configuration.
  47226. @return an array of {@link InputSplit}s for the job.]]>
  47227. </doc>
  47228. </method>
  47229. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  47230. abstract="true" native="false" synchronized="false"
  47231. static="false" final="false" visibility="public"
  47232. deprecated="not deprecated">
  47233. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  47234. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  47235. <exception name="IOException" type="java.io.IOException"/>
  47236. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47237. <doc>
  47238. <![CDATA[Create a record reader for a given split. The framework will call
  47239. {@link RecordReader#initialize(InputSplit, TaskAttemptContext)} before
  47240. the split is used.
  47241. @param split the split to be read
  47242. @param context the information about the task
  47243. @return a new record reader
  47244. @throws IOException
  47245. @throws InterruptedException]]>
  47246. </doc>
  47247. </method>
  47248. <doc>
  47249. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  47250. Map-Reduce job.
  47251. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  47252. job to:<p>
  47253. <ol>
  47254. <li>
  47255. Validate the input-specification of the job.
  47256. <li>
  47257. Split-up the input file(s) into logical {@link InputSplit}s, each of
  47258. which is then assigned to an individual {@link Mapper}.
  47259. </li>
  47260. <li>
  47261. Provide the {@link RecordReader} implementation to be used to glean
  47262. input records from the logical <code>InputSplit</code> for processing by
  47263. the {@link Mapper}.
  47264. </li>
  47265. </ol>
  47266. <p>The default behavior of file-based {@link InputFormat}s, typically
  47267. sub-classes of {@link FileInputFormat}, is to split the
  47268. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  47269. bytes, of the input files. However, the {@link FileSystem} blocksize of
  47270. the input files is treated as an upper bound for input splits. A lower bound
  47271. on the split size can be set via
  47272. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  47273. mapred.min.split.size</a>.</p>
  47274. <p>Clearly, logical splits based on input-size is insufficient for many
  47275. applications since record boundaries are to respected. In such cases, the
  47276. application has to also implement a {@link RecordReader} on whom lies the
  47277. responsibility to respect record-boundaries and present a record-oriented
  47278. view of the logical <code>InputSplit</code> to the individual task.
  47279. @see InputSplit
  47280. @see RecordReader
  47281. @see FileInputFormat]]>
  47282. </doc>
  47283. </class>
  47284. <!-- end class org.apache.hadoop.mapreduce.InputFormat -->
  47285. <!-- start class org.apache.hadoop.mapreduce.InputSplit -->
  47286. <class name="InputSplit" extends="java.lang.Object"
  47287. abstract="true"
  47288. static="false" final="false" visibility="public"
  47289. deprecated="not deprecated">
  47290. <constructor name="InputSplit"
  47291. static="false" final="false" visibility="public"
  47292. deprecated="not deprecated">
  47293. </constructor>
  47294. <method name="getLength" return="long"
  47295. abstract="true" native="false" synchronized="false"
  47296. static="false" final="false" visibility="public"
  47297. deprecated="not deprecated">
  47298. <exception name="IOException" type="java.io.IOException"/>
  47299. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47300. <doc>
  47301. <![CDATA[Get the size of the split, so that the input splits can be sorted by size.
  47302. @return the number of bytes in the split
  47303. @throws IOException
  47304. @throws InterruptedException]]>
  47305. </doc>
  47306. </method>
  47307. <method name="getLocations" return="java.lang.String[]"
  47308. abstract="true" native="false" synchronized="false"
  47309. static="false" final="false" visibility="public"
  47310. deprecated="not deprecated">
  47311. <exception name="IOException" type="java.io.IOException"/>
  47312. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47313. <doc>
  47314. <![CDATA[Get the list of nodes by name where the data for the split would be local.
  47315. The locations do not need to be serialized.
  47316. @return a new array of the node nodes.
  47317. @throws IOException
  47318. @throws InterruptedException]]>
  47319. </doc>
  47320. </method>
  47321. <doc>
  47322. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  47323. individual {@link Mapper}.
  47324. <p>Typically, it presents a byte-oriented view on the input and is the
  47325. responsibility of {@link RecordReader} of the job to process this and present
  47326. a record-oriented view.
  47327. @see InputFormat
  47328. @see RecordReader]]>
  47329. </doc>
  47330. </class>
  47331. <!-- end class org.apache.hadoop.mapreduce.InputSplit -->
  47332. <!-- start class org.apache.hadoop.mapreduce.Job -->
  47333. <class name="Job" extends="org.apache.hadoop.mapreduce.JobContext"
  47334. abstract="false"
  47335. static="false" final="false" visibility="public"
  47336. deprecated="not deprecated">
  47337. <constructor name="Job"
  47338. static="false" final="false" visibility="public"
  47339. deprecated="not deprecated">
  47340. <exception name="IOException" type="java.io.IOException"/>
  47341. </constructor>
  47342. <constructor name="Job" type="org.apache.hadoop.conf.Configuration"
  47343. static="false" final="false" visibility="public"
  47344. deprecated="not deprecated">
  47345. <exception name="IOException" type="java.io.IOException"/>
  47346. </constructor>
  47347. <constructor name="Job" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  47348. static="false" final="false" visibility="public"
  47349. deprecated="not deprecated">
  47350. <exception name="IOException" type="java.io.IOException"/>
  47351. </constructor>
  47352. <method name="setNumReduceTasks"
  47353. abstract="false" native="false" synchronized="false"
  47354. static="false" final="false" visibility="public"
  47355. deprecated="not deprecated">
  47356. <param name="tasks" type="int"/>
  47357. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47358. <doc>
  47359. <![CDATA[Set the number of reduce tasks for the job.
  47360. @param tasks the number of reduce tasks
  47361. @throws IllegalStateException if the job is submitted]]>
  47362. </doc>
  47363. </method>
  47364. <method name="setWorkingDirectory"
  47365. abstract="false" native="false" synchronized="false"
  47366. static="false" final="false" visibility="public"
  47367. deprecated="not deprecated">
  47368. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  47369. <exception name="IOException" type="java.io.IOException"/>
  47370. <doc>
  47371. <![CDATA[Set the current working directory for the default file system.
  47372. @param dir the new current working directory.
  47373. @throws IllegalStateException if the job is submitted]]>
  47374. </doc>
  47375. </method>
  47376. <method name="setInputFormatClass"
  47377. abstract="false" native="false" synchronized="false"
  47378. static="false" final="false" visibility="public"
  47379. deprecated="not deprecated">
  47380. <param name="cls" type="java.lang.Class"/>
  47381. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47382. <doc>
  47383. <![CDATA[Set the {@link InputFormat} for the job.
  47384. @param cls the <code>InputFormat</code> to use
  47385. @throws IllegalStateException if the job is submitted]]>
  47386. </doc>
  47387. </method>
  47388. <method name="setOutputFormatClass"
  47389. abstract="false" native="false" synchronized="false"
  47390. static="false" final="false" visibility="public"
  47391. deprecated="not deprecated">
  47392. <param name="cls" type="java.lang.Class"/>
  47393. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47394. <doc>
  47395. <![CDATA[Set the {@link OutputFormat} for the job.
  47396. @param cls the <code>OutputFormat</code> to use
  47397. @throws IllegalStateException if the job is submitted]]>
  47398. </doc>
  47399. </method>
  47400. <method name="setMapperClass"
  47401. abstract="false" native="false" synchronized="false"
  47402. static="false" final="false" visibility="public"
  47403. deprecated="not deprecated">
  47404. <param name="cls" type="java.lang.Class"/>
  47405. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47406. <doc>
  47407. <![CDATA[Set the {@link Mapper} for the job.
  47408. @param cls the <code>Mapper</code> to use
  47409. @throws IllegalStateException if the job is submitted]]>
  47410. </doc>
  47411. </method>
  47412. <method name="setJarByClass"
  47413. abstract="false" native="false" synchronized="false"
  47414. static="false" final="false" visibility="public"
  47415. deprecated="not deprecated">
  47416. <param name="cls" type="java.lang.Class"/>
  47417. <doc>
  47418. <![CDATA[Set the Jar by finding where a given class came from.
  47419. @param cls the example class]]>
  47420. </doc>
  47421. </method>
  47422. <method name="getJar" return="java.lang.String"
  47423. abstract="false" native="false" synchronized="false"
  47424. static="false" final="false" visibility="public"
  47425. deprecated="not deprecated">
  47426. <doc>
  47427. <![CDATA[Get the pathname of the job's jar.
  47428. @return the pathname]]>
  47429. </doc>
  47430. </method>
  47431. <method name="setCombinerClass"
  47432. abstract="false" native="false" synchronized="false"
  47433. static="false" final="false" visibility="public"
  47434. deprecated="not deprecated">
  47435. <param name="cls" type="java.lang.Class"/>
  47436. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47437. <doc>
  47438. <![CDATA[Set the combiner class for the job.
  47439. @param cls the combiner to use
  47440. @throws IllegalStateException if the job is submitted]]>
  47441. </doc>
  47442. </method>
  47443. <method name="setReducerClass"
  47444. abstract="false" native="false" synchronized="false"
  47445. static="false" final="false" visibility="public"
  47446. deprecated="not deprecated">
  47447. <param name="cls" type="java.lang.Class"/>
  47448. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47449. <doc>
  47450. <![CDATA[Set the {@link Reducer} for the job.
  47451. @param cls the <code>Reducer</code> to use
  47452. @throws IllegalStateException if the job is submitted]]>
  47453. </doc>
  47454. </method>
  47455. <method name="setPartitionerClass"
  47456. abstract="false" native="false" synchronized="false"
  47457. static="false" final="false" visibility="public"
  47458. deprecated="not deprecated">
  47459. <param name="cls" type="java.lang.Class"/>
  47460. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47461. <doc>
  47462. <![CDATA[Set the {@link Partitioner} for the job.
  47463. @param cls the <code>Partitioner</code> to use
  47464. @throws IllegalStateException if the job is submitted]]>
  47465. </doc>
  47466. </method>
  47467. <method name="setMapOutputKeyClass"
  47468. abstract="false" native="false" synchronized="false"
  47469. static="false" final="false" visibility="public"
  47470. deprecated="not deprecated">
  47471. <param name="theClass" type="java.lang.Class"/>
  47472. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47473. <doc>
  47474. <![CDATA[Set the key class for the map output data. This allows the user to
  47475. specify the map output key class to be different than the final output
  47476. value class.
  47477. @param theClass the map output key class.
  47478. @throws IllegalStateException if the job is submitted]]>
  47479. </doc>
  47480. </method>
  47481. <method name="setMapOutputValueClass"
  47482. abstract="false" native="false" synchronized="false"
  47483. static="false" final="false" visibility="public"
  47484. deprecated="not deprecated">
  47485. <param name="theClass" type="java.lang.Class"/>
  47486. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47487. <doc>
  47488. <![CDATA[Set the value class for the map output data. This allows the user to
  47489. specify the map output value class to be different than the final output
  47490. value class.
  47491. @param theClass the map output value class.
  47492. @throws IllegalStateException if the job is submitted]]>
  47493. </doc>
  47494. </method>
  47495. <method name="setOutputKeyClass"
  47496. abstract="false" native="false" synchronized="false"
  47497. static="false" final="false" visibility="public"
  47498. deprecated="not deprecated">
  47499. <param name="theClass" type="java.lang.Class"/>
  47500. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47501. <doc>
  47502. <![CDATA[Set the key class for the job output data.
  47503. @param theClass the key class for the job output data.
  47504. @throws IllegalStateException if the job is submitted]]>
  47505. </doc>
  47506. </method>
  47507. <method name="setOutputValueClass"
  47508. abstract="false" native="false" synchronized="false"
  47509. static="false" final="false" visibility="public"
  47510. deprecated="not deprecated">
  47511. <param name="theClass" type="java.lang.Class"/>
  47512. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47513. <doc>
  47514. <![CDATA[Set the value class for job outputs.
  47515. @param theClass the value class for job outputs.
  47516. @throws IllegalStateException if the job is submitted]]>
  47517. </doc>
  47518. </method>
  47519. <method name="setSortComparatorClass"
  47520. abstract="false" native="false" synchronized="false"
  47521. static="false" final="false" visibility="public"
  47522. deprecated="not deprecated">
  47523. <param name="cls" type="java.lang.Class"/>
  47524. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47525. <doc>
  47526. <![CDATA[Define the comparator that controls how the keys are sorted before they
  47527. are passed to the {@link Reducer}.
  47528. @param cls the raw comparator
  47529. @throws IllegalStateException if the job is submitted]]>
  47530. </doc>
  47531. </method>
  47532. <method name="setGroupingComparatorClass"
  47533. abstract="false" native="false" synchronized="false"
  47534. static="false" final="false" visibility="public"
  47535. deprecated="not deprecated">
  47536. <param name="cls" type="java.lang.Class"/>
  47537. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47538. <doc>
  47539. <![CDATA[Define the comparator that controls which keys are grouped together
  47540. for a single call to
  47541. {@link Reducer#reduce(Object, Iterable,
  47542. org.apache.hadoop.mapreduce.Reducer.Context)}
  47543. @param cls the raw comparator to use
  47544. @throws IllegalStateException if the job is submitted]]>
  47545. </doc>
  47546. </method>
  47547. <method name="setJobName"
  47548. abstract="false" native="false" synchronized="false"
  47549. static="false" final="false" visibility="public"
  47550. deprecated="not deprecated">
  47551. <param name="name" type="java.lang.String"/>
  47552. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  47553. <doc>
  47554. <![CDATA[Set the user-specified job name.
  47555. @param name the job's new name.
  47556. @throws IllegalStateException if the job is submitted]]>
  47557. </doc>
  47558. </method>
  47559. <method name="getTrackingURL" return="java.lang.String"
  47560. abstract="false" native="false" synchronized="false"
  47561. static="false" final="false" visibility="public"
  47562. deprecated="not deprecated">
  47563. <doc>
  47564. <![CDATA[Get the URL where some job progress information will be displayed.
  47565. @return the URL where some job progress information will be displayed.]]>
  47566. </doc>
  47567. </method>
  47568. <method name="mapProgress" return="float"
  47569. abstract="false" native="false" synchronized="false"
  47570. static="false" final="false" visibility="public"
  47571. deprecated="not deprecated">
  47572. <exception name="IOException" type="java.io.IOException"/>
  47573. <doc>
  47574. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  47575. and 1.0. When all map tasks have completed, the function returns 1.0.
  47576. @return the progress of the job's map-tasks.
  47577. @throws IOException]]>
  47578. </doc>
  47579. </method>
  47580. <method name="reduceProgress" return="float"
  47581. abstract="false" native="false" synchronized="false"
  47582. static="false" final="false" visibility="public"
  47583. deprecated="not deprecated">
  47584. <exception name="IOException" type="java.io.IOException"/>
  47585. <doc>
  47586. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  47587. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  47588. @return the progress of the job's reduce-tasks.
  47589. @throws IOException]]>
  47590. </doc>
  47591. </method>
  47592. <method name="isComplete" return="boolean"
  47593. abstract="false" native="false" synchronized="false"
  47594. static="false" final="false" visibility="public"
  47595. deprecated="not deprecated">
  47596. <exception name="IOException" type="java.io.IOException"/>
  47597. <doc>
  47598. <![CDATA[Check if the job is finished or not.
  47599. This is a non-blocking call.
  47600. @return <code>true</code> if the job is complete, else <code>false</code>.
  47601. @throws IOException]]>
  47602. </doc>
  47603. </method>
  47604. <method name="isSuccessful" return="boolean"
  47605. abstract="false" native="false" synchronized="false"
  47606. static="false" final="false" visibility="public"
  47607. deprecated="not deprecated">
  47608. <exception name="IOException" type="java.io.IOException"/>
  47609. <doc>
  47610. <![CDATA[Check if the job completed successfully.
  47611. @return <code>true</code> if the job succeeded, else <code>false</code>.
  47612. @throws IOException]]>
  47613. </doc>
  47614. </method>
  47615. <method name="killJob"
  47616. abstract="false" native="false" synchronized="false"
  47617. static="false" final="false" visibility="public"
  47618. deprecated="not deprecated">
  47619. <exception name="IOException" type="java.io.IOException"/>
  47620. <doc>
  47621. <![CDATA[Kill the running job. Blocks until all job tasks have been
  47622. killed as well. If the job is no longer running, it simply returns.
  47623. @throws IOException]]>
  47624. </doc>
  47625. </method>
  47626. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  47627. abstract="false" native="false" synchronized="false"
  47628. static="false" final="false" visibility="public"
  47629. deprecated="not deprecated">
  47630. <param name="startFrom" type="int"/>
  47631. <exception name="IOException" type="java.io.IOException"/>
  47632. <doc>
  47633. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  47634. @param startFrom index to start fetching events from
  47635. @return an array of {@link TaskCompletionEvent}s
  47636. @throws IOException]]>
  47637. </doc>
  47638. </method>
  47639. <method name="killTask"
  47640. abstract="false" native="false" synchronized="false"
  47641. static="false" final="false" visibility="public"
  47642. deprecated="not deprecated">
  47643. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  47644. <exception name="IOException" type="java.io.IOException"/>
  47645. <doc>
  47646. <![CDATA[Kill indicated task attempt.
  47647. @param taskId the id of the task to be terminated.
  47648. @throws IOException]]>
  47649. </doc>
  47650. </method>
  47651. <method name="failTask"
  47652. abstract="false" native="false" synchronized="false"
  47653. static="false" final="false" visibility="public"
  47654. deprecated="not deprecated">
  47655. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  47656. <exception name="IOException" type="java.io.IOException"/>
  47657. <doc>
  47658. <![CDATA[Fail indicated task attempt.
  47659. @param taskId the id of the task to be terminated.
  47660. @throws IOException]]>
  47661. </doc>
  47662. </method>
  47663. <method name="getCounters" return="org.apache.hadoop.mapreduce.Counters"
  47664. abstract="false" native="false" synchronized="false"
  47665. static="false" final="false" visibility="public"
  47666. deprecated="not deprecated">
  47667. <exception name="IOException" type="java.io.IOException"/>
  47668. <doc>
  47669. <![CDATA[Gets the counters for this job.
  47670. @return the counters for this job.
  47671. @throws IOException]]>
  47672. </doc>
  47673. </method>
  47674. <method name="submit"
  47675. abstract="false" native="false" synchronized="false"
  47676. static="false" final="false" visibility="public"
  47677. deprecated="not deprecated">
  47678. <exception name="IOException" type="java.io.IOException"/>
  47679. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47680. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  47681. <doc>
  47682. <![CDATA[Submit the job to the cluster and return immediately.
  47683. @throws IOException]]>
  47684. </doc>
  47685. </method>
  47686. <method name="waitForCompletion" return="boolean"
  47687. abstract="false" native="false" synchronized="false"
  47688. static="false" final="false" visibility="public"
  47689. deprecated="not deprecated">
  47690. <param name="verbose" type="boolean"/>
  47691. <exception name="IOException" type="java.io.IOException"/>
  47692. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47693. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  47694. <doc>
  47695. <![CDATA[Submit the job to the cluster and wait for it to finish.
  47696. @param verbose print the progress to the user
  47697. @return true if the job succeeded
  47698. @throws IOException thrown if the communication with the
  47699. <code>JobTracker</code> is lost]]>
  47700. </doc>
  47701. </method>
  47702. <doc>
  47703. <![CDATA[The job submitter's view of the Job. It allows the user to configure the
  47704. job, submit it, control its execution, and query the state. The set methods
  47705. only work until the job is submitted, afterwards they will throw an
  47706. IllegalStateException.]]>
  47707. </doc>
  47708. </class>
  47709. <!-- end class org.apache.hadoop.mapreduce.Job -->
  47710. <!-- start class org.apache.hadoop.mapreduce.Job.JobState -->
  47711. <class name="Job.JobState" extends="java.lang.Enum"
  47712. abstract="false"
  47713. static="true" final="true" visibility="public"
  47714. deprecated="not deprecated">
  47715. <method name="values" return="org.apache.hadoop.mapreduce.Job.JobState[]"
  47716. abstract="false" native="false" synchronized="false"
  47717. static="true" final="false" visibility="public"
  47718. deprecated="not deprecated">
  47719. </method>
  47720. <method name="valueOf" return="org.apache.hadoop.mapreduce.Job.JobState"
  47721. abstract="false" native="false" synchronized="false"
  47722. static="true" final="false" visibility="public"
  47723. deprecated="not deprecated">
  47724. <param name="name" type="java.lang.String"/>
  47725. </method>
  47726. <field name="DEFINE" type="org.apache.hadoop.mapreduce.Job.JobState"
  47727. transient="false" volatile="false"
  47728. static="true" final="true" visibility="public"
  47729. deprecated="not deprecated">
  47730. </field>
  47731. <field name="RUNNING" type="org.apache.hadoop.mapreduce.Job.JobState"
  47732. transient="false" volatile="false"
  47733. static="true" final="true" visibility="public"
  47734. deprecated="not deprecated">
  47735. </field>
  47736. </class>
  47737. <!-- end class org.apache.hadoop.mapreduce.Job.JobState -->
  47738. <!-- start class org.apache.hadoop.mapreduce.JobContext -->
  47739. <class name="JobContext" extends="java.lang.Object"
  47740. abstract="false"
  47741. static="false" final="false" visibility="public"
  47742. deprecated="not deprecated">
  47743. <constructor name="JobContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.JobID"
  47744. static="false" final="false" visibility="public"
  47745. deprecated="not deprecated">
  47746. </constructor>
  47747. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  47748. abstract="false" native="false" synchronized="false"
  47749. static="false" final="false" visibility="public"
  47750. deprecated="not deprecated">
  47751. <doc>
  47752. <![CDATA[Return the configuration for the job.
  47753. @return the shared configuration object]]>
  47754. </doc>
  47755. </method>
  47756. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  47757. abstract="false" native="false" synchronized="false"
  47758. static="false" final="false" visibility="public"
  47759. deprecated="not deprecated">
  47760. <doc>
  47761. <![CDATA[Get the unique ID for the job.
  47762. @return the object with the job id]]>
  47763. </doc>
  47764. </method>
  47765. <method name="getNumReduceTasks" return="int"
  47766. abstract="false" native="false" synchronized="false"
  47767. static="false" final="false" visibility="public"
  47768. deprecated="not deprecated">
  47769. <doc>
  47770. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  47771. <code>1</code>.
  47772. @return the number of reduce tasks for this job.]]>
  47773. </doc>
  47774. </method>
  47775. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  47776. abstract="false" native="false" synchronized="false"
  47777. static="false" final="false" visibility="public"
  47778. deprecated="not deprecated">
  47779. <exception name="IOException" type="java.io.IOException"/>
  47780. <doc>
  47781. <![CDATA[Get the current working directory for the default file system.
  47782. @return the directory name.]]>
  47783. </doc>
  47784. </method>
  47785. <method name="getOutputKeyClass" return="java.lang.Class"
  47786. abstract="false" native="false" synchronized="false"
  47787. static="false" final="false" visibility="public"
  47788. deprecated="not deprecated">
  47789. <doc>
  47790. <![CDATA[Get the key class for the job output data.
  47791. @return the key class for the job output data.]]>
  47792. </doc>
  47793. </method>
  47794. <method name="getOutputValueClass" return="java.lang.Class"
  47795. abstract="false" native="false" synchronized="false"
  47796. static="false" final="false" visibility="public"
  47797. deprecated="not deprecated">
  47798. <doc>
  47799. <![CDATA[Get the value class for job outputs.
  47800. @return the value class for job outputs.]]>
  47801. </doc>
  47802. </method>
  47803. <method name="getMapOutputKeyClass" return="java.lang.Class"
  47804. abstract="false" native="false" synchronized="false"
  47805. static="false" final="false" visibility="public"
  47806. deprecated="not deprecated">
  47807. <doc>
  47808. <![CDATA[Get the key class for the map output data. If it is not set, use the
  47809. (final) output key class. This allows the map output key class to be
  47810. different than the final output key class.
  47811. @return the map output key class.]]>
  47812. </doc>
  47813. </method>
  47814. <method name="getMapOutputValueClass" return="java.lang.Class"
  47815. abstract="false" native="false" synchronized="false"
  47816. static="false" final="false" visibility="public"
  47817. deprecated="not deprecated">
  47818. <doc>
  47819. <![CDATA[Get the value class for the map output data. If it is not set, use the
  47820. (final) output value class This allows the map output value class to be
  47821. different than the final output value class.
  47822. @return the map output value class.]]>
  47823. </doc>
  47824. </method>
  47825. <method name="getJobName" return="java.lang.String"
  47826. abstract="false" native="false" synchronized="false"
  47827. static="false" final="false" visibility="public"
  47828. deprecated="not deprecated">
  47829. <doc>
  47830. <![CDATA[Get the user-specified job name. This is only used to identify the
  47831. job to the user.
  47832. @return the job's name, defaulting to "".]]>
  47833. </doc>
  47834. </method>
  47835. <method name="getInputFormatClass" return="java.lang.Class"
  47836. abstract="false" native="false" synchronized="false"
  47837. static="false" final="false" visibility="public"
  47838. deprecated="not deprecated">
  47839. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  47840. <doc>
  47841. <![CDATA[Get the {@link InputFormat} class for the job.
  47842. @return the {@link InputFormat} class for the job.]]>
  47843. </doc>
  47844. </method>
  47845. <method name="getMapperClass" return="java.lang.Class"
  47846. abstract="false" native="false" synchronized="false"
  47847. static="false" final="false" visibility="public"
  47848. deprecated="not deprecated">
  47849. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  47850. <doc>
  47851. <![CDATA[Get the {@link Mapper} class for the job.
  47852. @return the {@link Mapper} class for the job.]]>
  47853. </doc>
  47854. </method>
  47855. <method name="getCombinerClass" return="java.lang.Class"
  47856. abstract="false" native="false" synchronized="false"
  47857. static="false" final="false" visibility="public"
  47858. deprecated="not deprecated">
  47859. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  47860. <doc>
  47861. <![CDATA[Get the combiner class for the job.
  47862. @return the combiner class for the job.]]>
  47863. </doc>
  47864. </method>
  47865. <method name="getReducerClass" return="java.lang.Class"
  47866. abstract="false" native="false" synchronized="false"
  47867. static="false" final="false" visibility="public"
  47868. deprecated="not deprecated">
  47869. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  47870. <doc>
  47871. <![CDATA[Get the {@link Reducer} class for the job.
  47872. @return the {@link Reducer} class for the job.]]>
  47873. </doc>
  47874. </method>
  47875. <method name="getOutputFormatClass" return="java.lang.Class"
  47876. abstract="false" native="false" synchronized="false"
  47877. static="false" final="false" visibility="public"
  47878. deprecated="not deprecated">
  47879. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  47880. <doc>
  47881. <![CDATA[Get the {@link OutputFormat} class for the job.
  47882. @return the {@link OutputFormat} class for the job.]]>
  47883. </doc>
  47884. </method>
  47885. <method name="getPartitionerClass" return="java.lang.Class"
  47886. abstract="false" native="false" synchronized="false"
  47887. static="false" final="false" visibility="public"
  47888. deprecated="not deprecated">
  47889. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  47890. <doc>
  47891. <![CDATA[Get the {@link Partitioner} class for the job.
  47892. @return the {@link Partitioner} class for the job.]]>
  47893. </doc>
  47894. </method>
  47895. <method name="getSortComparator" return="org.apache.hadoop.io.RawComparator"
  47896. abstract="false" native="false" synchronized="false"
  47897. static="false" final="false" visibility="public"
  47898. deprecated="not deprecated">
  47899. <doc>
  47900. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  47901. @return the {@link RawComparator} comparator used to compare keys.]]>
  47902. </doc>
  47903. </method>
  47904. <method name="getJar" return="java.lang.String"
  47905. abstract="false" native="false" synchronized="false"
  47906. static="false" final="false" visibility="public"
  47907. deprecated="not deprecated">
  47908. <doc>
  47909. <![CDATA[Get the pathname of the job's jar.
  47910. @return the pathname]]>
  47911. </doc>
  47912. </method>
  47913. <method name="getGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  47914. abstract="false" native="false" synchronized="false"
  47915. static="false" final="false" visibility="public"
  47916. deprecated="not deprecated">
  47917. <doc>
  47918. <![CDATA[Get the user defined {@link RawComparator} comparator for
  47919. grouping keys of inputs to the reduce.
  47920. @return comparator set by the user for grouping values.
  47921. @see Job#setGroupingComparatorClass(Class) for details.]]>
  47922. </doc>
  47923. </method>
  47924. <field name="INPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  47925. transient="false" volatile="false"
  47926. static="true" final="true" visibility="protected"
  47927. deprecated="not deprecated">
  47928. </field>
  47929. <field name="MAP_CLASS_ATTR" type="java.lang.String"
  47930. transient="false" volatile="false"
  47931. static="true" final="true" visibility="protected"
  47932. deprecated="not deprecated">
  47933. </field>
  47934. <field name="COMBINE_CLASS_ATTR" type="java.lang.String"
  47935. transient="false" volatile="false"
  47936. static="true" final="true" visibility="protected"
  47937. deprecated="not deprecated">
  47938. </field>
  47939. <field name="REDUCE_CLASS_ATTR" type="java.lang.String"
  47940. transient="false" volatile="false"
  47941. static="true" final="true" visibility="protected"
  47942. deprecated="not deprecated">
  47943. </field>
  47944. <field name="OUTPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  47945. transient="false" volatile="false"
  47946. static="true" final="true" visibility="protected"
  47947. deprecated="not deprecated">
  47948. </field>
  47949. <field name="PARTITIONER_CLASS_ATTR" type="java.lang.String"
  47950. transient="false" volatile="false"
  47951. static="true" final="true" visibility="protected"
  47952. deprecated="not deprecated">
  47953. </field>
  47954. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  47955. transient="false" volatile="false"
  47956. static="false" final="true" visibility="protected"
  47957. deprecated="not deprecated">
  47958. </field>
  47959. <doc>
  47960. <![CDATA[A read-only view of the job that is provided to the tasks while they
  47961. are running.]]>
  47962. </doc>
  47963. </class>
  47964. <!-- end class org.apache.hadoop.mapreduce.JobContext -->
  47965. <!-- start class org.apache.hadoop.mapreduce.JobID -->
  47966. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  47967. abstract="false"
  47968. static="false" final="false" visibility="public"
  47969. deprecated="not deprecated">
  47970. <implements name="java.lang.Comparable"/>
  47971. <constructor name="JobID" type="java.lang.String, int"
  47972. static="false" final="false" visibility="public"
  47973. deprecated="not deprecated">
  47974. <doc>
  47975. <![CDATA[Constructs a JobID object
  47976. @param jtIdentifier jobTracker identifier
  47977. @param id job number]]>
  47978. </doc>
  47979. </constructor>
  47980. <constructor name="JobID"
  47981. static="false" final="false" visibility="public"
  47982. deprecated="not deprecated">
  47983. </constructor>
  47984. <method name="getJtIdentifier" return="java.lang.String"
  47985. abstract="false" native="false" synchronized="false"
  47986. static="false" final="false" visibility="public"
  47987. deprecated="not deprecated">
  47988. </method>
  47989. <method name="equals" return="boolean"
  47990. abstract="false" native="false" synchronized="false"
  47991. static="false" final="false" visibility="public"
  47992. deprecated="not deprecated">
  47993. <param name="o" type="java.lang.Object"/>
  47994. </method>
  47995. <method name="compareTo" return="int"
  47996. abstract="false" native="false" synchronized="false"
  47997. static="false" final="false" visibility="public"
  47998. deprecated="not deprecated">
  47999. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  48000. <doc>
  48001. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  48002. </doc>
  48003. </method>
  48004. <method name="appendTo" return="java.lang.StringBuilder"
  48005. abstract="false" native="false" synchronized="false"
  48006. static="false" final="false" visibility="public"
  48007. deprecated="not deprecated">
  48008. <param name="builder" type="java.lang.StringBuilder"/>
  48009. <doc>
  48010. <![CDATA[Add the stuff after the "job" prefix to the given builder. This is useful,
  48011. because the sub-ids use this substring at the start of their string.
  48012. @param builder the builder to append to
  48013. @return the builder that was passed in]]>
  48014. </doc>
  48015. </method>
  48016. <method name="hashCode" return="int"
  48017. abstract="false" native="false" synchronized="false"
  48018. static="false" final="false" visibility="public"
  48019. deprecated="not deprecated">
  48020. </method>
  48021. <method name="toString" return="java.lang.String"
  48022. abstract="false" native="false" synchronized="false"
  48023. static="false" final="false" visibility="public"
  48024. deprecated="not deprecated">
  48025. </method>
  48026. <method name="readFields"
  48027. abstract="false" native="false" synchronized="false"
  48028. static="false" final="false" visibility="public"
  48029. deprecated="not deprecated">
  48030. <param name="in" type="java.io.DataInput"/>
  48031. <exception name="IOException" type="java.io.IOException"/>
  48032. </method>
  48033. <method name="write"
  48034. abstract="false" native="false" synchronized="false"
  48035. static="false" final="false" visibility="public"
  48036. deprecated="not deprecated">
  48037. <param name="out" type="java.io.DataOutput"/>
  48038. <exception name="IOException" type="java.io.IOException"/>
  48039. </method>
  48040. <method name="forName" return="org.apache.hadoop.mapreduce.JobID"
  48041. abstract="false" native="false" synchronized="false"
  48042. static="true" final="false" visibility="public"
  48043. deprecated="not deprecated">
  48044. <param name="str" type="java.lang.String"/>
  48045. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  48046. <doc>
  48047. <![CDATA[Construct a JobId object from given string
  48048. @return constructed JobId object or null if the given String is null
  48049. @throws IllegalArgumentException if the given string is malformed]]>
  48050. </doc>
  48051. </method>
  48052. <field name="JOB" type="java.lang.String"
  48053. transient="false" volatile="false"
  48054. static="true" final="true" visibility="protected"
  48055. deprecated="not deprecated">
  48056. </field>
  48057. <field name="idFormat" type="java.text.NumberFormat"
  48058. transient="false" volatile="false"
  48059. static="true" final="true" visibility="protected"
  48060. deprecated="not deprecated">
  48061. </field>
  48062. <doc>
  48063. <![CDATA[JobID represents the immutable and unique identifier for
  48064. the job. JobID consists of two parts. First part
  48065. represents the jobtracker identifier, so that jobID to jobtracker map
  48066. is defined. For cluster setup this string is the jobtracker
  48067. start time, for local setting, it is "local".
  48068. Second part of the JobID is the job number. <br>
  48069. An example JobID is :
  48070. <code>job_200707121733_0003</code> , which represents the third job
  48071. running at the jobtracker started at <code>200707121733</code>.
  48072. <p>
  48073. Applications should never construct or parse JobID strings, but rather
  48074. use appropriate constructors or {@link #forName(String)} method.
  48075. @see TaskID
  48076. @see TaskAttemptID
  48077. @see org.apache.hadoop.mapred.JobTracker#getNewJobId()
  48078. @see org.apache.hadoop.mapred.JobTracker#getStartTime()]]>
  48079. </doc>
  48080. </class>
  48081. <!-- end class org.apache.hadoop.mapreduce.JobID -->
  48082. <!-- start class org.apache.hadoop.mapreduce.MapContext -->
  48083. <class name="MapContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  48084. abstract="false"
  48085. static="false" final="false" visibility="public"
  48086. deprecated="not deprecated">
  48087. <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"
  48088. static="false" final="false" visibility="public"
  48089. deprecated="not deprecated">
  48090. </constructor>
  48091. <method name="getInputSplit" return="org.apache.hadoop.mapreduce.InputSplit"
  48092. abstract="false" native="false" synchronized="false"
  48093. static="false" final="false" visibility="public"
  48094. deprecated="not deprecated">
  48095. <doc>
  48096. <![CDATA[Get the input split for this map.]]>
  48097. </doc>
  48098. </method>
  48099. <method name="getCurrentKey" return="java.lang.Object"
  48100. abstract="false" native="false" synchronized="false"
  48101. static="false" final="false" visibility="public"
  48102. deprecated="not deprecated">
  48103. <exception name="IOException" type="java.io.IOException"/>
  48104. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48105. </method>
  48106. <method name="getCurrentValue" return="java.lang.Object"
  48107. abstract="false" native="false" synchronized="false"
  48108. static="false" final="false" visibility="public"
  48109. deprecated="not deprecated">
  48110. <exception name="IOException" type="java.io.IOException"/>
  48111. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48112. </method>
  48113. <method name="nextKeyValue" return="boolean"
  48114. abstract="false" native="false" synchronized="false"
  48115. static="false" final="false" visibility="public"
  48116. deprecated="not deprecated">
  48117. <exception name="IOException" type="java.io.IOException"/>
  48118. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48119. </method>
  48120. <doc>
  48121. <![CDATA[The context that is given to the {@link Mapper}.
  48122. @param <KEYIN> the key input type to the Mapper
  48123. @param <VALUEIN> the value input type to the Mapper
  48124. @param <KEYOUT> the key output type from the Mapper
  48125. @param <VALUEOUT> the value output type from the Mapper]]>
  48126. </doc>
  48127. </class>
  48128. <!-- end class org.apache.hadoop.mapreduce.MapContext -->
  48129. <!-- start class org.apache.hadoop.mapreduce.Mapper -->
  48130. <class name="Mapper" extends="java.lang.Object"
  48131. abstract="false"
  48132. static="false" final="false" visibility="public"
  48133. deprecated="not deprecated">
  48134. <constructor name="Mapper"
  48135. static="false" final="false" visibility="public"
  48136. deprecated="not deprecated">
  48137. </constructor>
  48138. <method name="setup"
  48139. abstract="false" native="false" synchronized="false"
  48140. static="false" final="false" visibility="protected"
  48141. deprecated="not deprecated">
  48142. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  48143. <exception name="IOException" type="java.io.IOException"/>
  48144. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48145. <doc>
  48146. <![CDATA[Called once at the beginning of the task.]]>
  48147. </doc>
  48148. </method>
  48149. <method name="map"
  48150. abstract="false" native="false" synchronized="false"
  48151. static="false" final="false" visibility="protected"
  48152. deprecated="not deprecated">
  48153. <param name="key" type="java.lang.Object"/>
  48154. <param name="value" type="java.lang.Object"/>
  48155. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  48156. <exception name="IOException" type="java.io.IOException"/>
  48157. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48158. <doc>
  48159. <![CDATA[Called once for each key/value pair in the input split. Most applications
  48160. should override this, but the default is the identity function.]]>
  48161. </doc>
  48162. </method>
  48163. <method name="cleanup"
  48164. abstract="false" native="false" synchronized="false"
  48165. static="false" final="false" visibility="protected"
  48166. deprecated="not deprecated">
  48167. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  48168. <exception name="IOException" type="java.io.IOException"/>
  48169. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48170. <doc>
  48171. <![CDATA[Called once at the end of the task.]]>
  48172. </doc>
  48173. </method>
  48174. <method name="run"
  48175. abstract="false" native="false" synchronized="false"
  48176. static="false" final="false" visibility="public"
  48177. deprecated="not deprecated">
  48178. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  48179. <exception name="IOException" type="java.io.IOException"/>
  48180. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48181. <doc>
  48182. <![CDATA[Expert users can override this method for more complete control over the
  48183. execution of the Mapper.
  48184. @param context
  48185. @throws IOException]]>
  48186. </doc>
  48187. </method>
  48188. <doc>
  48189. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  48190. <p>Maps are the individual tasks which transform input records into a
  48191. intermediate records. The transformed intermediate records need not be of
  48192. the same type as the input records. A given input pair may map to zero or
  48193. many output pairs.</p>
  48194. <p>The Hadoop Map-Reduce framework spawns one map task for each
  48195. {@link InputSplit} generated by the {@link InputFormat} for the job.
  48196. <code>Mapper</code> implementations can access the {@link Configuration} for
  48197. the job via the {@link JobContext#getConfiguration()}.
  48198. <p>The framework first calls
  48199. {@link #setup(org.apache.hadoop.mapreduce.Mapper.Context)}, followed by
  48200. {@link #map(Object, Object, Context)}
  48201. for each key/value pair in the <code>InputSplit</code>. Finally
  48202. {@link #cleanup(Context)} is called.</p>
  48203. <p>All intermediate values associated with a given output key are
  48204. subsequently grouped by the framework, and passed to a {@link Reducer} to
  48205. determine the final output. Users can control the sorting and grouping by
  48206. specifying two key {@link RawComparator} classes.</p>
  48207. <p>The <code>Mapper</code> outputs are partitioned per
  48208. <code>Reducer</code>. Users can control which keys (and hence records) go to
  48209. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  48210. <p>Users can optionally specify a <code>combiner</code>, via
  48211. {@link Job#setCombinerClass(Class)}, to perform local aggregation of the
  48212. intermediate outputs, which helps to cut down the amount of data transferred
  48213. from the <code>Mapper</code> to the <code>Reducer</code>.
  48214. <p>Applications can specify if and how the intermediate
  48215. outputs are to be compressed and which {@link CompressionCodec}s are to be
  48216. used via the <code>Configuration</code>.</p>
  48217. <p>If the job has zero
  48218. reduces then the output of the <code>Mapper</code> is directly written
  48219. to the {@link OutputFormat} without sorting by keys.</p>
  48220. <p>Example:</p>
  48221. <p><blockquote><pre>
  48222. public class TokenCounterMapper
  48223. extends Mapper<Object, Text, Text, IntWritable>{
  48224. private final static IntWritable one = new IntWritable(1);
  48225. private Text word = new Text();
  48226. public void map(Object key, Text value, Context context) throws IOException {
  48227. StringTokenizer itr = new StringTokenizer(value.toString());
  48228. while (itr.hasMoreTokens()) {
  48229. word.set(itr.nextToken());
  48230. context.collect(word, one);
  48231. }
  48232. }
  48233. }
  48234. </pre></blockquote></p>
  48235. <p>Applications may override the {@link #run(Context)} method to exert
  48236. greater control on map processing e.g. multi-threaded <code>Mapper</code>s
  48237. etc.</p>
  48238. @see InputFormat
  48239. @see JobContext
  48240. @see Partitioner
  48241. @see Reducer]]>
  48242. </doc>
  48243. </class>
  48244. <!-- end class org.apache.hadoop.mapreduce.Mapper -->
  48245. <!-- start class org.apache.hadoop.mapreduce.Mapper.Context -->
  48246. <class name="Mapper.Context" extends="org.apache.hadoop.mapreduce.MapContext"
  48247. abstract="false"
  48248. static="false" final="false" visibility="public"
  48249. deprecated="not deprecated">
  48250. <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"
  48251. static="false" final="false" visibility="public"
  48252. deprecated="not deprecated">
  48253. <exception name="IOException" type="java.io.IOException"/>
  48254. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48255. </constructor>
  48256. </class>
  48257. <!-- end class org.apache.hadoop.mapreduce.Mapper.Context -->
  48258. <!-- start class org.apache.hadoop.mapreduce.OutputCommitter -->
  48259. <class name="OutputCommitter" extends="java.lang.Object"
  48260. abstract="true"
  48261. static="false" final="false" visibility="public"
  48262. deprecated="not deprecated">
  48263. <constructor name="OutputCommitter"
  48264. static="false" final="false" visibility="public"
  48265. deprecated="not deprecated">
  48266. </constructor>
  48267. <method name="setupJob"
  48268. abstract="true" native="false" synchronized="false"
  48269. static="false" final="false" visibility="public"
  48270. deprecated="not deprecated">
  48271. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  48272. <exception name="IOException" type="java.io.IOException"/>
  48273. <doc>
  48274. <![CDATA[For the framework to setup the job output during initialization
  48275. @param jobContext Context of the job whose output is being written.
  48276. @throws IOException if temporary output could not be created]]>
  48277. </doc>
  48278. </method>
  48279. <method name="cleanupJob"
  48280. abstract="true" native="false" synchronized="false"
  48281. static="false" final="false" visibility="public"
  48282. deprecated="not deprecated">
  48283. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  48284. <exception name="IOException" type="java.io.IOException"/>
  48285. <doc>
  48286. <![CDATA[For cleaning up the job's output after job completion
  48287. @param jobContext Context of the job whose output is being written.
  48288. @throws IOException]]>
  48289. </doc>
  48290. </method>
  48291. <method name="setupTask"
  48292. abstract="true" native="false" synchronized="false"
  48293. static="false" final="false" visibility="public"
  48294. deprecated="not deprecated">
  48295. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  48296. <exception name="IOException" type="java.io.IOException"/>
  48297. <doc>
  48298. <![CDATA[Sets up output for the task.
  48299. @param taskContext Context of the task whose output is being written.
  48300. @throws IOException]]>
  48301. </doc>
  48302. </method>
  48303. <method name="needsTaskCommit" return="boolean"
  48304. abstract="true" native="false" synchronized="false"
  48305. static="false" final="false" visibility="public"
  48306. deprecated="not deprecated">
  48307. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  48308. <exception name="IOException" type="java.io.IOException"/>
  48309. <doc>
  48310. <![CDATA[Check whether task needs a commit
  48311. @param taskContext
  48312. @return true/false
  48313. @throws IOException]]>
  48314. </doc>
  48315. </method>
  48316. <method name="commitTask"
  48317. abstract="true" native="false" synchronized="false"
  48318. static="false" final="false" visibility="public"
  48319. deprecated="not deprecated">
  48320. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  48321. <exception name="IOException" type="java.io.IOException"/>
  48322. <doc>
  48323. <![CDATA[To promote the task's temporary output to final output location
  48324. The task's output is moved to the job's output directory.
  48325. @param taskContext Context of the task whose output is being written.
  48326. @throws IOException if commit is not]]>
  48327. </doc>
  48328. </method>
  48329. <method name="abortTask"
  48330. abstract="true" native="false" synchronized="false"
  48331. static="false" final="false" visibility="public"
  48332. deprecated="not deprecated">
  48333. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  48334. <exception name="IOException" type="java.io.IOException"/>
  48335. <doc>
  48336. <![CDATA[Discard the task output
  48337. @param taskContext
  48338. @throws IOException]]>
  48339. </doc>
  48340. </method>
  48341. <doc>
  48342. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  48343. Map-Reduce job.
  48344. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  48345. the job to:<p>
  48346. <ol>
  48347. <li>
  48348. Setup the job during initialization. For example, create the temporary
  48349. output directory for the job during the initialization of the job.
  48350. </li>
  48351. <li>
  48352. Cleanup the job after the job completion. For example, remove the
  48353. temporary output directory after the job completion.
  48354. </li>
  48355. <li>
  48356. Setup the task temporary output.
  48357. </li>
  48358. <li>
  48359. Check whether a task needs a commit. This is to avoid the commit
  48360. procedure if a task does not need commit.
  48361. </li>
  48362. <li>
  48363. Commit of the task output.
  48364. </li>
  48365. <li>
  48366. Discard the task commit.
  48367. </li>
  48368. </ol>
  48369. @see org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
  48370. @see JobContext
  48371. @see TaskAttemptContext]]>
  48372. </doc>
  48373. </class>
  48374. <!-- end class org.apache.hadoop.mapreduce.OutputCommitter -->
  48375. <!-- start class org.apache.hadoop.mapreduce.OutputFormat -->
  48376. <class name="OutputFormat" extends="java.lang.Object"
  48377. abstract="true"
  48378. static="false" final="false" visibility="public"
  48379. deprecated="not deprecated">
  48380. <constructor name="OutputFormat"
  48381. static="false" final="false" visibility="public"
  48382. deprecated="not deprecated">
  48383. </constructor>
  48384. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  48385. abstract="true" native="false" synchronized="false"
  48386. static="false" final="false" visibility="public"
  48387. deprecated="not deprecated">
  48388. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  48389. <exception name="IOException" type="java.io.IOException"/>
  48390. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48391. <doc>
  48392. <![CDATA[Get the {@link RecordWriter} for the given task.
  48393. @param context the information about the current task.
  48394. @return a {@link RecordWriter} to write the output for the job.
  48395. @throws IOException]]>
  48396. </doc>
  48397. </method>
  48398. <method name="checkOutputSpecs"
  48399. abstract="true" native="false" synchronized="false"
  48400. static="false" final="false" visibility="public"
  48401. deprecated="not deprecated">
  48402. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  48403. <exception name="IOException" type="java.io.IOException"/>
  48404. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48405. <doc>
  48406. <![CDATA[Check for validity of the output-specification for the job.
  48407. <p>This is to validate the output specification for the job when it is
  48408. a job is submitted. Typically checks that it does not already exist,
  48409. throwing an exception when it already exists, so that output is not
  48410. overwritten.</p>
  48411. @param context information about the job
  48412. @throws IOException when output should not be attempted]]>
  48413. </doc>
  48414. </method>
  48415. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  48416. abstract="true" native="false" synchronized="false"
  48417. static="false" final="false" visibility="public"
  48418. deprecated="not deprecated">
  48419. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  48420. <exception name="IOException" type="java.io.IOException"/>
  48421. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48422. <doc>
  48423. <![CDATA[Get the output committer for this output format. This is responsible
  48424. for ensuring the output is committed correctly.
  48425. @param context the task context
  48426. @return an output committer
  48427. @throws IOException
  48428. @throws InterruptedException]]>
  48429. </doc>
  48430. </method>
  48431. <doc>
  48432. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  48433. Map-Reduce job.
  48434. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  48435. job to:<p>
  48436. <ol>
  48437. <li>
  48438. Validate the output-specification of the job. For e.g. check that the
  48439. output directory doesn't already exist.
  48440. <li>
  48441. Provide the {@link RecordWriter} implementation to be used to write out
  48442. the output files of the job. Output files are stored in a
  48443. {@link FileSystem}.
  48444. </li>
  48445. </ol>
  48446. @see RecordWriter]]>
  48447. </doc>
  48448. </class>
  48449. <!-- end class org.apache.hadoop.mapreduce.OutputFormat -->
  48450. <!-- start class org.apache.hadoop.mapreduce.Partitioner -->
  48451. <class name="Partitioner" extends="java.lang.Object"
  48452. abstract="true"
  48453. static="false" final="false" visibility="public"
  48454. deprecated="not deprecated">
  48455. <constructor name="Partitioner"
  48456. static="false" final="false" visibility="public"
  48457. deprecated="not deprecated">
  48458. </constructor>
  48459. <method name="getPartition" return="int"
  48460. abstract="true" native="false" synchronized="false"
  48461. static="false" final="false" visibility="public"
  48462. deprecated="not deprecated">
  48463. <param name="key" type="java.lang.Object"/>
  48464. <param name="value" type="java.lang.Object"/>
  48465. <param name="numPartitions" type="int"/>
  48466. <doc>
  48467. <![CDATA[Get the partition number for a given key (hence record) given the total
  48468. number of partitions i.e. number of reduce-tasks for the job.
  48469. <p>Typically a hash function on a all or a subset of the key.</p>
  48470. @param key the key to be partioned.
  48471. @param value the entry value.
  48472. @param numPartitions the total number of partitions.
  48473. @return the partition number for the <code>key</code>.]]>
  48474. </doc>
  48475. </method>
  48476. <doc>
  48477. <![CDATA[Partitions the key space.
  48478. <p><code>Partitioner</code> controls the partitioning of the keys of the
  48479. intermediate map-outputs. The key (or a subset of the key) is used to derive
  48480. the partition, typically by a hash function. The total number of partitions
  48481. is the same as the number of reduce tasks for the job. Hence this controls
  48482. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  48483. record) is sent for reduction.</p>
  48484. @see Reducer]]>
  48485. </doc>
  48486. </class>
  48487. <!-- end class org.apache.hadoop.mapreduce.Partitioner -->
  48488. <!-- start class org.apache.hadoop.mapreduce.RecordReader -->
  48489. <class name="RecordReader" extends="java.lang.Object"
  48490. abstract="true"
  48491. static="false" final="false" visibility="public"
  48492. deprecated="not deprecated">
  48493. <implements name="java.io.Closeable"/>
  48494. <constructor name="RecordReader"
  48495. static="false" final="false" visibility="public"
  48496. deprecated="not deprecated">
  48497. </constructor>
  48498. <method name="initialize"
  48499. abstract="true" native="false" synchronized="false"
  48500. static="false" final="false" visibility="public"
  48501. deprecated="not deprecated">
  48502. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  48503. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  48504. <exception name="IOException" type="java.io.IOException"/>
  48505. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48506. <doc>
  48507. <![CDATA[Called once at initialization.
  48508. @param split the split that defines the range of records to read
  48509. @param context the information about the task
  48510. @throws IOException
  48511. @throws InterruptedException]]>
  48512. </doc>
  48513. </method>
  48514. <method name="nextKeyValue" return="boolean"
  48515. abstract="true" native="false" synchronized="false"
  48516. static="false" final="false" visibility="public"
  48517. deprecated="not deprecated">
  48518. <exception name="IOException" type="java.io.IOException"/>
  48519. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48520. <doc>
  48521. <![CDATA[Read the next key, value pair.
  48522. @return true if a key/value pair was read
  48523. @throws IOException
  48524. @throws InterruptedException]]>
  48525. </doc>
  48526. </method>
  48527. <method name="getCurrentKey" return="java.lang.Object"
  48528. abstract="true" native="false" synchronized="false"
  48529. static="false" final="false" visibility="public"
  48530. deprecated="not deprecated">
  48531. <exception name="IOException" type="java.io.IOException"/>
  48532. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48533. <doc>
  48534. <![CDATA[Get the current key
  48535. @return the current key or null if there is no current key
  48536. @throws IOException
  48537. @throws InterruptedException]]>
  48538. </doc>
  48539. </method>
  48540. <method name="getCurrentValue" return="java.lang.Object"
  48541. abstract="true" native="false" synchronized="false"
  48542. static="false" final="false" visibility="public"
  48543. deprecated="not deprecated">
  48544. <exception name="IOException" type="java.io.IOException"/>
  48545. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48546. <doc>
  48547. <![CDATA[Get the current value.
  48548. @return the object that was read
  48549. @throws IOException
  48550. @throws InterruptedException]]>
  48551. </doc>
  48552. </method>
  48553. <method name="getProgress" return="float"
  48554. abstract="true" native="false" synchronized="false"
  48555. static="false" final="false" visibility="public"
  48556. deprecated="not deprecated">
  48557. <exception name="IOException" type="java.io.IOException"/>
  48558. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48559. <doc>
  48560. <![CDATA[The current progress of the record reader through its data.
  48561. @return a number between 0.0 and 1.0 that is the fraction of the data read
  48562. @throws IOException
  48563. @throws InterruptedException]]>
  48564. </doc>
  48565. </method>
  48566. <method name="close"
  48567. abstract="true" native="false" synchronized="false"
  48568. static="false" final="false" visibility="public"
  48569. deprecated="not deprecated">
  48570. <exception name="IOException" type="java.io.IOException"/>
  48571. <doc>
  48572. <![CDATA[Close the record reader.]]>
  48573. </doc>
  48574. </method>
  48575. <doc>
  48576. <![CDATA[The record reader breaks the data into key/value pairs for input to the
  48577. {@link Mapper}.
  48578. @param <KEYIN>
  48579. @param <VALUEIN>]]>
  48580. </doc>
  48581. </class>
  48582. <!-- end class org.apache.hadoop.mapreduce.RecordReader -->
  48583. <!-- start class org.apache.hadoop.mapreduce.RecordWriter -->
  48584. <class name="RecordWriter" extends="java.lang.Object"
  48585. abstract="true"
  48586. static="false" final="false" visibility="public"
  48587. deprecated="not deprecated">
  48588. <constructor name="RecordWriter"
  48589. static="false" final="false" visibility="public"
  48590. deprecated="not deprecated">
  48591. </constructor>
  48592. <method name="write"
  48593. abstract="true" native="false" synchronized="false"
  48594. static="false" final="false" visibility="public"
  48595. deprecated="not deprecated">
  48596. <param name="key" type="java.lang.Object"/>
  48597. <param name="value" type="java.lang.Object"/>
  48598. <exception name="IOException" type="java.io.IOException"/>
  48599. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48600. <doc>
  48601. <![CDATA[Writes a key/value pair.
  48602. @param key the key to write.
  48603. @param value the value to write.
  48604. @throws IOException]]>
  48605. </doc>
  48606. </method>
  48607. <method name="close"
  48608. abstract="true" native="false" synchronized="false"
  48609. static="false" final="false" visibility="public"
  48610. deprecated="not deprecated">
  48611. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  48612. <exception name="IOException" type="java.io.IOException"/>
  48613. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48614. <doc>
  48615. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  48616. @param context the context of the task
  48617. @throws IOException]]>
  48618. </doc>
  48619. </method>
  48620. <doc>
  48621. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  48622. to an output file.
  48623. <p><code>RecordWriter</code> implementations write the job outputs to the
  48624. {@link FileSystem}.
  48625. @see OutputFormat]]>
  48626. </doc>
  48627. </class>
  48628. <!-- end class org.apache.hadoop.mapreduce.RecordWriter -->
  48629. <!-- start class org.apache.hadoop.mapreduce.ReduceContext -->
  48630. <class name="ReduceContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  48631. abstract="false"
  48632. static="false" final="false" visibility="public"
  48633. deprecated="not deprecated">
  48634. <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.RecordWriter, org.apache.hadoop.mapreduce.OutputCommitter, org.apache.hadoop.mapreduce.StatusReporter, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class"
  48635. static="false" final="false" visibility="public"
  48636. deprecated="not deprecated">
  48637. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48638. <exception name="IOException" type="java.io.IOException"/>
  48639. </constructor>
  48640. <method name="nextKey" return="boolean"
  48641. abstract="false" native="false" synchronized="false"
  48642. static="false" final="false" visibility="public"
  48643. deprecated="not deprecated">
  48644. <exception name="IOException" type="java.io.IOException"/>
  48645. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48646. <doc>
  48647. <![CDATA[Start processing next unique key.]]>
  48648. </doc>
  48649. </method>
  48650. <method name="nextKeyValue" return="boolean"
  48651. abstract="false" native="false" synchronized="false"
  48652. static="false" final="false" visibility="public"
  48653. deprecated="not deprecated">
  48654. <exception name="IOException" type="java.io.IOException"/>
  48655. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48656. <doc>
  48657. <![CDATA[Advance to the next key/value pair.]]>
  48658. </doc>
  48659. </method>
  48660. <method name="getCurrentKey" return="java.lang.Object"
  48661. abstract="false" native="false" synchronized="false"
  48662. static="false" final="false" visibility="public"
  48663. deprecated="not deprecated">
  48664. </method>
  48665. <method name="getCurrentValue" return="java.lang.Object"
  48666. abstract="false" native="false" synchronized="false"
  48667. static="false" final="false" visibility="public"
  48668. deprecated="not deprecated">
  48669. </method>
  48670. <method name="getValues" return="java.lang.Iterable"
  48671. abstract="false" native="false" synchronized="false"
  48672. static="false" final="false" visibility="public"
  48673. deprecated="not deprecated">
  48674. <exception name="IOException" type="java.io.IOException"/>
  48675. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48676. <doc>
  48677. <![CDATA[Iterate through the values for the current key, reusing the same value
  48678. object, which is stored in the context.
  48679. @return the series of values associated with the current key. All of the
  48680. objects returned directly and indirectly from this method are reused.]]>
  48681. </doc>
  48682. </method>
  48683. <field name="reporter" type="org.apache.hadoop.util.Progressable"
  48684. transient="false" volatile="false"
  48685. static="false" final="false" visibility="protected"
  48686. deprecated="not deprecated">
  48687. </field>
  48688. <doc>
  48689. <![CDATA[The context passed to the {@link Reducer}.
  48690. @param <KEYIN> the class of the input keys
  48691. @param <VALUEIN> the class of the input values
  48692. @param <KEYOUT> the class of the output keys
  48693. @param <VALUEOUT> the class of the output values]]>
  48694. </doc>
  48695. </class>
  48696. <!-- end class org.apache.hadoop.mapreduce.ReduceContext -->
  48697. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  48698. <class name="ReduceContext.ValueIterable" extends="java.lang.Object"
  48699. abstract="false"
  48700. static="false" final="false" visibility="protected"
  48701. deprecated="not deprecated">
  48702. <implements name="java.lang.Iterable"/>
  48703. <constructor name="ReduceContext.ValueIterable"
  48704. static="false" final="false" visibility="protected"
  48705. deprecated="not deprecated">
  48706. </constructor>
  48707. <method name="iterator" return="java.util.Iterator"
  48708. abstract="false" native="false" synchronized="false"
  48709. static="false" final="false" visibility="public"
  48710. deprecated="not deprecated">
  48711. </method>
  48712. </class>
  48713. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  48714. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  48715. <class name="ReduceContext.ValueIterator" extends="java.lang.Object"
  48716. abstract="false"
  48717. static="false" final="false" visibility="protected"
  48718. deprecated="not deprecated">
  48719. <implements name="java.util.Iterator"/>
  48720. <constructor name="ReduceContext.ValueIterator"
  48721. static="false" final="false" visibility="protected"
  48722. deprecated="not deprecated">
  48723. </constructor>
  48724. <method name="hasNext" return="boolean"
  48725. abstract="false" native="false" synchronized="false"
  48726. static="false" final="false" visibility="public"
  48727. deprecated="not deprecated">
  48728. </method>
  48729. <method name="next" return="java.lang.Object"
  48730. abstract="false" native="false" synchronized="false"
  48731. static="false" final="false" visibility="public"
  48732. deprecated="not deprecated">
  48733. </method>
  48734. <method name="remove"
  48735. abstract="false" native="false" synchronized="false"
  48736. static="false" final="false" visibility="public"
  48737. deprecated="not deprecated">
  48738. </method>
  48739. </class>
  48740. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  48741. <!-- start class org.apache.hadoop.mapreduce.Reducer -->
  48742. <class name="Reducer" extends="java.lang.Object"
  48743. abstract="true"
  48744. static="false" final="false" visibility="public"
  48745. deprecated="not deprecated">
  48746. <constructor name="Reducer"
  48747. static="false" final="false" visibility="public"
  48748. deprecated="not deprecated">
  48749. </constructor>
  48750. <method name="setup"
  48751. abstract="false" native="false" synchronized="false"
  48752. static="false" final="false" visibility="protected"
  48753. deprecated="not deprecated">
  48754. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  48755. <exception name="IOException" type="java.io.IOException"/>
  48756. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48757. <doc>
  48758. <![CDATA[Called once at the start of the task.]]>
  48759. </doc>
  48760. </method>
  48761. <method name="reduce"
  48762. abstract="false" native="false" synchronized="false"
  48763. static="false" final="false" visibility="protected"
  48764. deprecated="not deprecated">
  48765. <param name="key" type="java.lang.Object"/>
  48766. <param name="values" type="java.lang.Iterable"/>
  48767. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  48768. <exception name="IOException" type="java.io.IOException"/>
  48769. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48770. <doc>
  48771. <![CDATA[This method is called once for each key. Most applications will define
  48772. their reduce class by overriding this method. The default implementation
  48773. is an identity function.]]>
  48774. </doc>
  48775. </method>
  48776. <method name="cleanup"
  48777. abstract="false" native="false" synchronized="false"
  48778. static="false" final="false" visibility="protected"
  48779. deprecated="not deprecated">
  48780. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  48781. <exception name="IOException" type="java.io.IOException"/>
  48782. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48783. <doc>
  48784. <![CDATA[Called once at the end of the task.]]>
  48785. </doc>
  48786. </method>
  48787. <method name="run"
  48788. abstract="false" native="false" synchronized="false"
  48789. static="false" final="false" visibility="public"
  48790. deprecated="not deprecated">
  48791. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  48792. <exception name="IOException" type="java.io.IOException"/>
  48793. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48794. <doc>
  48795. <![CDATA[Advanced application writers can use the
  48796. {@link #run(org.apache.hadoop.mapreduce.Reducer.Context)} method to
  48797. control how the reduce task works.]]>
  48798. </doc>
  48799. </method>
  48800. <doc>
  48801. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  48802. values.
  48803. <p><code>Reducer</code> implementations
  48804. can access the {@link Configuration} for the job via the
  48805. {@link JobContext#getConfiguration()} method.</p>
  48806. <p><code>Reducer</code> has 3 primary phases:</p>
  48807. <ol>
  48808. <li>
  48809. <h4 id="Shuffle">Shuffle</h4>
  48810. <p>The <code>Reducer</code> copies the sorted output from each
  48811. {@link Mapper} using HTTP across the network.</p>
  48812. </li>
  48813. <li>
  48814. <h4 id="Sort">Sort</h4>
  48815. <p>The framework merge sorts <code>Reducer</code> inputs by
  48816. <code>key</code>s
  48817. (since different <code>Mapper</code>s may have output the same key).</p>
  48818. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  48819. being fetched they are merged.</p>
  48820. <h5 id="SecondarySort">SecondarySort</h5>
  48821. <p>To achieve a secondary sort on the values returned by the value
  48822. iterator, the application should extend the key with the secondary
  48823. key and define a grouping comparator. The keys will be sorted using the
  48824. entire key, but will be grouped using the grouping comparator to decide
  48825. which keys and values are sent in the same call to reduce.The grouping
  48826. comparator is specified via
  48827. {@link Job#setGroupingComparatorClass(Class)}. The sort order is
  48828. controlled by
  48829. {@link Job#setSortComparatorClass(Class)}.</p>
  48830. For example, say that you want to find duplicate web pages and tag them
  48831. all with the url of the "best" known example. You would set up the job
  48832. like:
  48833. <ul>
  48834. <li>Map Input Key: url</li>
  48835. <li>Map Input Value: document</li>
  48836. <li>Map Output Key: document checksum, url pagerank</li>
  48837. <li>Map Output Value: url</li>
  48838. <li>Partitioner: by checksum</li>
  48839. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  48840. <li>OutputValueGroupingComparator: by checksum</li>
  48841. </ul>
  48842. </li>
  48843. <li>
  48844. <h4 id="Reduce">Reduce</h4>
  48845. <p>In this phase the
  48846. {@link #reduce(Object, Iterable, Context)}
  48847. method is called for each <code>&lt;key, (collection of values)></code> in
  48848. the sorted inputs.</p>
  48849. <p>The output of the reduce task is typically written to a
  48850. {@link RecordWriter} via
  48851. {@link Context#write(Object, Object)}.</p>
  48852. </li>
  48853. </ol>
  48854. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  48855. <p>Example:</p>
  48856. <p><blockquote><pre>
  48857. public class IntSumReducer<Key> extends Reducer<Key,IntWritable,
  48858. Key,IntWritable> {
  48859. private IntWritable result = new IntWritable();
  48860. public void reduce(Key key, Iterable<IntWritable> values,
  48861. Context context) throws IOException {
  48862. int sum = 0;
  48863. for (IntWritable val : values) {
  48864. sum += val.get();
  48865. }
  48866. result.set(sum);
  48867. context.collect(key, result);
  48868. }
  48869. }
  48870. </pre></blockquote></p>
  48871. @see Mapper
  48872. @see Partitioner]]>
  48873. </doc>
  48874. </class>
  48875. <!-- end class org.apache.hadoop.mapreduce.Reducer -->
  48876. <!-- start class org.apache.hadoop.mapreduce.Reducer.Context -->
  48877. <class name="Reducer.Context" extends="org.apache.hadoop.mapreduce.ReduceContext"
  48878. abstract="false"
  48879. static="false" final="false" visibility="public"
  48880. deprecated="not deprecated">
  48881. <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.RecordWriter, org.apache.hadoop.mapreduce.OutputCommitter, org.apache.hadoop.mapreduce.StatusReporter, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class"
  48882. static="false" final="false" visibility="public"
  48883. deprecated="not deprecated">
  48884. <exception name="IOException" type="java.io.IOException"/>
  48885. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48886. </constructor>
  48887. </class>
  48888. <!-- end class org.apache.hadoop.mapreduce.Reducer.Context -->
  48889. <!-- start class org.apache.hadoop.mapreduce.StatusReporter -->
  48890. <class name="StatusReporter" extends="java.lang.Object"
  48891. abstract="true"
  48892. static="false" final="false" visibility="public"
  48893. deprecated="not deprecated">
  48894. <constructor name="StatusReporter"
  48895. static="false" final="false" visibility="public"
  48896. deprecated="not deprecated">
  48897. </constructor>
  48898. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  48899. abstract="true" native="false" synchronized="false"
  48900. static="false" final="false" visibility="public"
  48901. deprecated="not deprecated">
  48902. <param name="name" type="java.lang.Enum"/>
  48903. </method>
  48904. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  48905. abstract="true" native="false" synchronized="false"
  48906. static="false" final="false" visibility="public"
  48907. deprecated="not deprecated">
  48908. <param name="group" type="java.lang.String"/>
  48909. <param name="name" type="java.lang.String"/>
  48910. </method>
  48911. <method name="progress"
  48912. abstract="true" native="false" synchronized="false"
  48913. static="false" final="false" visibility="public"
  48914. deprecated="not deprecated">
  48915. </method>
  48916. <method name="setStatus"
  48917. abstract="true" native="false" synchronized="false"
  48918. static="false" final="false" visibility="public"
  48919. deprecated="not deprecated">
  48920. <param name="status" type="java.lang.String"/>
  48921. </method>
  48922. </class>
  48923. <!-- end class org.apache.hadoop.mapreduce.StatusReporter -->
  48924. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  48925. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.JobContext"
  48926. abstract="false"
  48927. static="false" final="false" visibility="public"
  48928. deprecated="not deprecated">
  48929. <implements name="org.apache.hadoop.util.Progressable"/>
  48930. <constructor name="TaskAttemptContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID"
  48931. static="false" final="false" visibility="public"
  48932. deprecated="not deprecated">
  48933. </constructor>
  48934. <method name="getTaskAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  48935. abstract="false" native="false" synchronized="false"
  48936. static="false" final="false" visibility="public"
  48937. deprecated="not deprecated">
  48938. <doc>
  48939. <![CDATA[Get the unique name for this task attempt.]]>
  48940. </doc>
  48941. </method>
  48942. <method name="setStatus"
  48943. abstract="false" native="false" synchronized="false"
  48944. static="false" final="false" visibility="public"
  48945. deprecated="not deprecated">
  48946. <param name="msg" type="java.lang.String"/>
  48947. <exception name="IOException" type="java.io.IOException"/>
  48948. <doc>
  48949. <![CDATA[Set the current status of the task to the given string.]]>
  48950. </doc>
  48951. </method>
  48952. <method name="getStatus" return="java.lang.String"
  48953. abstract="false" native="false" synchronized="false"
  48954. static="false" final="false" visibility="public"
  48955. deprecated="not deprecated">
  48956. <doc>
  48957. <![CDATA[Get the last set status message.
  48958. @return the current status message]]>
  48959. </doc>
  48960. </method>
  48961. <method name="progress"
  48962. abstract="false" native="false" synchronized="false"
  48963. static="false" final="false" visibility="public"
  48964. deprecated="not deprecated">
  48965. <doc>
  48966. <![CDATA[Report progress. The subtypes actually do work in this method.]]>
  48967. </doc>
  48968. </method>
  48969. <doc>
  48970. <![CDATA[The context for task attempts.]]>
  48971. </doc>
  48972. </class>
  48973. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  48974. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptID -->
  48975. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  48976. abstract="false"
  48977. static="false" final="false" visibility="public"
  48978. deprecated="not deprecated">
  48979. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapreduce.TaskID, int"
  48980. static="false" final="false" visibility="public"
  48981. deprecated="not deprecated">
  48982. <doc>
  48983. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  48984. @param taskId TaskID that this task belongs to
  48985. @param id the task attempt number]]>
  48986. </doc>
  48987. </constructor>
  48988. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  48989. static="false" final="false" visibility="public"
  48990. deprecated="not deprecated">
  48991. <doc>
  48992. <![CDATA[Constructs a TaskId object from given parts.
  48993. @param jtIdentifier jobTracker identifier
  48994. @param jobId job number
  48995. @param isMap whether the tip is a map
  48996. @param taskId taskId number
  48997. @param id the task attempt number]]>
  48998. </doc>
  48999. </constructor>
  49000. <constructor name="TaskAttemptID"
  49001. static="false" final="false" visibility="public"
  49002. deprecated="not deprecated">
  49003. </constructor>
  49004. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  49005. abstract="false" native="false" synchronized="false"
  49006. static="false" final="false" visibility="public"
  49007. deprecated="not deprecated">
  49008. <doc>
  49009. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  49010. </doc>
  49011. </method>
  49012. <method name="getTaskID" return="org.apache.hadoop.mapreduce.TaskID"
  49013. abstract="false" native="false" synchronized="false"
  49014. static="false" final="false" visibility="public"
  49015. deprecated="not deprecated">
  49016. <doc>
  49017. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  49018. </doc>
  49019. </method>
  49020. <method name="isMap" return="boolean"
  49021. abstract="false" native="false" synchronized="false"
  49022. static="false" final="false" visibility="public"
  49023. deprecated="not deprecated">
  49024. <doc>
  49025. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  49026. </doc>
  49027. </method>
  49028. <method name="equals" return="boolean"
  49029. abstract="false" native="false" synchronized="false"
  49030. static="false" final="false" visibility="public"
  49031. deprecated="not deprecated">
  49032. <param name="o" type="java.lang.Object"/>
  49033. </method>
  49034. <method name="appendTo" return="java.lang.StringBuilder"
  49035. abstract="false" native="false" synchronized="false"
  49036. static="false" final="false" visibility="protected"
  49037. deprecated="not deprecated">
  49038. <param name="builder" type="java.lang.StringBuilder"/>
  49039. <doc>
  49040. <![CDATA[Add the unique string to the StringBuilder
  49041. @param builder the builder to append ot
  49042. @return the builder that was passed in.]]>
  49043. </doc>
  49044. </method>
  49045. <method name="readFields"
  49046. abstract="false" native="false" synchronized="false"
  49047. static="false" final="false" visibility="public"
  49048. deprecated="not deprecated">
  49049. <param name="in" type="java.io.DataInput"/>
  49050. <exception name="IOException" type="java.io.IOException"/>
  49051. </method>
  49052. <method name="write"
  49053. abstract="false" native="false" synchronized="false"
  49054. static="false" final="false" visibility="public"
  49055. deprecated="not deprecated">
  49056. <param name="out" type="java.io.DataOutput"/>
  49057. <exception name="IOException" type="java.io.IOException"/>
  49058. </method>
  49059. <method name="hashCode" return="int"
  49060. abstract="false" native="false" synchronized="false"
  49061. static="false" final="false" visibility="public"
  49062. deprecated="not deprecated">
  49063. </method>
  49064. <method name="compareTo" return="int"
  49065. abstract="false" native="false" synchronized="false"
  49066. static="false" final="false" visibility="public"
  49067. deprecated="not deprecated">
  49068. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  49069. <doc>
  49070. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  49071. </doc>
  49072. </method>
  49073. <method name="toString" return="java.lang.String"
  49074. abstract="false" native="false" synchronized="false"
  49075. static="false" final="false" visibility="public"
  49076. deprecated="not deprecated">
  49077. </method>
  49078. <method name="forName" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  49079. abstract="false" native="false" synchronized="false"
  49080. static="true" final="false" visibility="public"
  49081. deprecated="not deprecated">
  49082. <param name="str" type="java.lang.String"/>
  49083. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  49084. <doc>
  49085. <![CDATA[Construct a TaskAttemptID object from given string
  49086. @return constructed TaskAttemptID object or null if the given String is null
  49087. @throws IllegalArgumentException if the given string is malformed]]>
  49088. </doc>
  49089. </method>
  49090. <field name="ATTEMPT" type="java.lang.String"
  49091. transient="false" volatile="false"
  49092. static="true" final="true" visibility="protected"
  49093. deprecated="not deprecated">
  49094. </field>
  49095. <doc>
  49096. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  49097. a task attempt. Each task attempt is one particular instance of a Map or
  49098. Reduce Task identified by its TaskID.
  49099. TaskAttemptID consists of 2 parts. First part is the
  49100. {@link TaskID}, that this TaskAttemptID belongs to.
  49101. Second part is the task attempt number. <br>
  49102. An example TaskAttemptID is :
  49103. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  49104. zeroth task attempt for the fifth map task in the third job
  49105. running at the jobtracker started at <code>200707121733</code>.
  49106. <p>
  49107. Applications should never construct or parse TaskAttemptID strings
  49108. , but rather use appropriate constructors or {@link #forName(String)}
  49109. method.
  49110. @see JobID
  49111. @see TaskID]]>
  49112. </doc>
  49113. </class>
  49114. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptID -->
  49115. <!-- start class org.apache.hadoop.mapreduce.TaskID -->
  49116. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  49117. abstract="false"
  49118. static="false" final="false" visibility="public"
  49119. deprecated="not deprecated">
  49120. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  49121. static="false" final="false" visibility="public"
  49122. deprecated="not deprecated">
  49123. <doc>
  49124. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  49125. @param jobId JobID that this tip belongs to
  49126. @param isMap whether the tip is a map
  49127. @param id the tip number]]>
  49128. </doc>
  49129. </constructor>
  49130. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  49131. static="false" final="false" visibility="public"
  49132. deprecated="not deprecated">
  49133. <doc>
  49134. <![CDATA[Constructs a TaskInProgressId object from given parts.
  49135. @param jtIdentifier jobTracker identifier
  49136. @param jobId job number
  49137. @param isMap whether the tip is a map
  49138. @param id the tip number]]>
  49139. </doc>
  49140. </constructor>
  49141. <constructor name="TaskID"
  49142. static="false" final="false" visibility="public"
  49143. deprecated="not deprecated">
  49144. </constructor>
  49145. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  49146. abstract="false" native="false" synchronized="false"
  49147. static="false" final="false" visibility="public"
  49148. deprecated="not deprecated">
  49149. <doc>
  49150. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  49151. </doc>
  49152. </method>
  49153. <method name="isMap" return="boolean"
  49154. abstract="false" native="false" synchronized="false"
  49155. static="false" final="false" visibility="public"
  49156. deprecated="not deprecated">
  49157. <doc>
  49158. <![CDATA[Returns whether this TaskID is a map ID]]>
  49159. </doc>
  49160. </method>
  49161. <method name="equals" return="boolean"
  49162. abstract="false" native="false" synchronized="false"
  49163. static="false" final="false" visibility="public"
  49164. deprecated="not deprecated">
  49165. <param name="o" type="java.lang.Object"/>
  49166. </method>
  49167. <method name="compareTo" return="int"
  49168. abstract="false" native="false" synchronized="false"
  49169. static="false" final="false" visibility="public"
  49170. deprecated="not deprecated">
  49171. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  49172. <doc>
  49173. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  49174. defined as greater then maps.]]>
  49175. </doc>
  49176. </method>
  49177. <method name="toString" return="java.lang.String"
  49178. abstract="false" native="false" synchronized="false"
  49179. static="false" final="false" visibility="public"
  49180. deprecated="not deprecated">
  49181. </method>
  49182. <method name="appendTo" return="java.lang.StringBuilder"
  49183. abstract="false" native="false" synchronized="false"
  49184. static="false" final="false" visibility="protected"
  49185. deprecated="not deprecated">
  49186. <param name="builder" type="java.lang.StringBuilder"/>
  49187. <doc>
  49188. <![CDATA[Add the unique string to the given builder.
  49189. @param builder the builder to append to
  49190. @return the builder that was passed in]]>
  49191. </doc>
  49192. </method>
  49193. <method name="hashCode" return="int"
  49194. abstract="false" native="false" synchronized="false"
  49195. static="false" final="false" visibility="public"
  49196. deprecated="not deprecated">
  49197. </method>
  49198. <method name="readFields"
  49199. abstract="false" native="false" synchronized="false"
  49200. static="false" final="false" visibility="public"
  49201. deprecated="not deprecated">
  49202. <param name="in" type="java.io.DataInput"/>
  49203. <exception name="IOException" type="java.io.IOException"/>
  49204. </method>
  49205. <method name="write"
  49206. abstract="false" native="false" synchronized="false"
  49207. static="false" final="false" visibility="public"
  49208. deprecated="not deprecated">
  49209. <param name="out" type="java.io.DataOutput"/>
  49210. <exception name="IOException" type="java.io.IOException"/>
  49211. </method>
  49212. <method name="forName" return="org.apache.hadoop.mapreduce.TaskID"
  49213. abstract="false" native="false" synchronized="false"
  49214. static="true" final="false" visibility="public"
  49215. deprecated="not deprecated">
  49216. <param name="str" type="java.lang.String"/>
  49217. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  49218. <doc>
  49219. <![CDATA[Construct a TaskID object from given string
  49220. @return constructed TaskID object or null if the given String is null
  49221. @throws IllegalArgumentException if the given string is malformed]]>
  49222. </doc>
  49223. </method>
  49224. <field name="TASK" type="java.lang.String"
  49225. transient="false" volatile="false"
  49226. static="true" final="true" visibility="protected"
  49227. deprecated="not deprecated">
  49228. </field>
  49229. <field name="idFormat" type="java.text.NumberFormat"
  49230. transient="false" volatile="false"
  49231. static="true" final="true" visibility="protected"
  49232. deprecated="not deprecated">
  49233. </field>
  49234. <doc>
  49235. <![CDATA[TaskID represents the immutable and unique identifier for
  49236. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  49237. execute the Map or Reduce Task, each of which are uniquely indentified by
  49238. their TaskAttemptID.
  49239. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  49240. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  49241. representing whether the task is a map task or a reduce task.
  49242. And the third part is the task number. <br>
  49243. An example TaskID is :
  49244. <code>task_200707121733_0003_m_000005</code> , which represents the
  49245. fifth map task in the third job running at the jobtracker
  49246. started at <code>200707121733</code>.
  49247. <p>
  49248. Applications should never construct or parse TaskID strings
  49249. , but rather use appropriate constructors or {@link #forName(String)}
  49250. method.
  49251. @see JobID
  49252. @see TaskAttemptID]]>
  49253. </doc>
  49254. </class>
  49255. <!-- end class org.apache.hadoop.mapreduce.TaskID -->
  49256. <!-- start class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  49257. <class name="TaskInputOutputContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  49258. abstract="true"
  49259. static="false" final="false" visibility="public"
  49260. deprecated="not deprecated">
  49261. <implements name="org.apache.hadoop.util.Progressable"/>
  49262. <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"
  49263. static="false" final="false" visibility="public"
  49264. deprecated="not deprecated">
  49265. </constructor>
  49266. <method name="nextKeyValue" return="boolean"
  49267. abstract="true" native="false" synchronized="false"
  49268. static="false" final="false" visibility="public"
  49269. deprecated="not deprecated">
  49270. <exception name="IOException" type="java.io.IOException"/>
  49271. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49272. <doc>
  49273. <![CDATA[Advance to the next key, value pair, returning null if at end.
  49274. @return the key object that was read into, or null if no more]]>
  49275. </doc>
  49276. </method>
  49277. <method name="getCurrentKey" return="java.lang.Object"
  49278. abstract="true" native="false" synchronized="false"
  49279. static="false" final="false" visibility="public"
  49280. deprecated="not deprecated">
  49281. <exception name="IOException" type="java.io.IOException"/>
  49282. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49283. <doc>
  49284. <![CDATA[Get the current key.
  49285. @return the current key object or null if there isn't one
  49286. @throws IOException
  49287. @throws InterruptedException]]>
  49288. </doc>
  49289. </method>
  49290. <method name="getCurrentValue" return="java.lang.Object"
  49291. abstract="true" native="false" synchronized="false"
  49292. static="false" final="false" visibility="public"
  49293. deprecated="not deprecated">
  49294. <exception name="IOException" type="java.io.IOException"/>
  49295. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49296. <doc>
  49297. <![CDATA[Get the current value.
  49298. @return the value object that was read into
  49299. @throws IOException
  49300. @throws InterruptedException]]>
  49301. </doc>
  49302. </method>
  49303. <method name="write"
  49304. abstract="false" native="false" synchronized="false"
  49305. static="false" final="false" visibility="public"
  49306. deprecated="not deprecated">
  49307. <param name="key" type="java.lang.Object"/>
  49308. <param name="value" type="java.lang.Object"/>
  49309. <exception name="IOException" type="java.io.IOException"/>
  49310. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49311. <doc>
  49312. <![CDATA[Generate an output key/value pair.]]>
  49313. </doc>
  49314. </method>
  49315. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  49316. abstract="false" native="false" synchronized="false"
  49317. static="false" final="false" visibility="public"
  49318. deprecated="not deprecated">
  49319. <param name="counterName" type="java.lang.Enum"/>
  49320. </method>
  49321. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  49322. abstract="false" native="false" synchronized="false"
  49323. static="false" final="false" visibility="public"
  49324. deprecated="not deprecated">
  49325. <param name="groupName" type="java.lang.String"/>
  49326. <param name="counterName" type="java.lang.String"/>
  49327. </method>
  49328. <method name="progress"
  49329. abstract="false" native="false" synchronized="false"
  49330. static="false" final="false" visibility="public"
  49331. deprecated="not deprecated">
  49332. </method>
  49333. <method name="setStatus"
  49334. abstract="false" native="false" synchronized="false"
  49335. static="false" final="false" visibility="public"
  49336. deprecated="not deprecated">
  49337. <param name="status" type="java.lang.String"/>
  49338. </method>
  49339. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  49340. abstract="false" native="false" synchronized="false"
  49341. static="false" final="false" visibility="public"
  49342. deprecated="not deprecated">
  49343. </method>
  49344. <doc>
  49345. <![CDATA[A context object that allows input and output from the task. It is only
  49346. supplied to the {@link Mapper} or {@link Reducer}.
  49347. @param <KEYIN> the input key type for the task
  49348. @param <VALUEIN> the input value type for the task
  49349. @param <KEYOUT> the output key type for the task
  49350. @param <VALUEOUT> the output value type for the task]]>
  49351. </doc>
  49352. </class>
  49353. <!-- end class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  49354. </package>
  49355. <package name="org.apache.hadoop.mapreduce.lib.input">
  49356. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  49357. <class name="FileInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  49358. abstract="true"
  49359. static="false" final="false" visibility="public"
  49360. deprecated="not deprecated">
  49361. <constructor name="FileInputFormat"
  49362. static="false" final="false" visibility="public"
  49363. deprecated="not deprecated">
  49364. </constructor>
  49365. <method name="getFormatMinSplitSize" return="long"
  49366. abstract="false" native="false" synchronized="false"
  49367. static="false" final="false" visibility="protected"
  49368. deprecated="not deprecated">
  49369. <doc>
  49370. <![CDATA[Get the lower bound on split size imposed by the format.
  49371. @return the number of bytes of the minimal split for this format]]>
  49372. </doc>
  49373. </method>
  49374. <method name="isSplitable" return="boolean"
  49375. abstract="false" native="false" synchronized="false"
  49376. static="false" final="false" visibility="protected"
  49377. deprecated="not deprecated">
  49378. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  49379. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  49380. <doc>
  49381. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  49382. stream compressed, it will not be.
  49383. <code>FileInputFormat</code> implementations can override this and return
  49384. <code>false</code> to ensure that individual input files are never split-up
  49385. so that {@link Mapper}s process entire files.
  49386. @param context the job context
  49387. @param filename the file name to check
  49388. @return is this file splitable?]]>
  49389. </doc>
  49390. </method>
  49391. <method name="setInputPathFilter"
  49392. abstract="false" native="false" synchronized="false"
  49393. static="true" final="false" visibility="public"
  49394. deprecated="not deprecated">
  49395. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  49396. <param name="filter" type="java.lang.Class"/>
  49397. <doc>
  49398. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  49399. @param job the job to modify
  49400. @param filter the PathFilter class use for filtering the input paths.]]>
  49401. </doc>
  49402. </method>
  49403. <method name="setMinInputSplitSize"
  49404. abstract="false" native="false" synchronized="false"
  49405. static="true" final="false" visibility="public"
  49406. deprecated="not deprecated">
  49407. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  49408. <param name="size" type="long"/>
  49409. <doc>
  49410. <![CDATA[Set the minimum input split size
  49411. @param job the job to modify
  49412. @param size the minimum size]]>
  49413. </doc>
  49414. </method>
  49415. <method name="getMinSplitSize" return="long"
  49416. abstract="false" native="false" synchronized="false"
  49417. static="true" final="false" visibility="public"
  49418. deprecated="not deprecated">
  49419. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  49420. <doc>
  49421. <![CDATA[Get the minimum split size
  49422. @param job the job
  49423. @return the minimum number of bytes that can be in a split]]>
  49424. </doc>
  49425. </method>
  49426. <method name="setMaxInputSplitSize"
  49427. abstract="false" native="false" synchronized="false"
  49428. static="true" final="false" visibility="public"
  49429. deprecated="not deprecated">
  49430. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  49431. <param name="size" type="long"/>
  49432. <doc>
  49433. <![CDATA[Set the maximum split size
  49434. @param job the job to modify
  49435. @param size the maximum split size]]>
  49436. </doc>
  49437. </method>
  49438. <method name="getMaxSplitSize" return="long"
  49439. abstract="false" native="false" synchronized="false"
  49440. static="true" final="false" visibility="public"
  49441. deprecated="not deprecated">
  49442. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  49443. <doc>
  49444. <![CDATA[Get the maximum split size.
  49445. @param context the job to look at.
  49446. @return the maximum number of bytes a split can include]]>
  49447. </doc>
  49448. </method>
  49449. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  49450. abstract="false" native="false" synchronized="false"
  49451. static="true" final="false" visibility="public"
  49452. deprecated="not deprecated">
  49453. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  49454. <doc>
  49455. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  49456. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  49457. </doc>
  49458. </method>
  49459. <method name="listStatus" return="java.util.List"
  49460. abstract="false" native="false" synchronized="false"
  49461. static="false" final="false" visibility="protected"
  49462. deprecated="not deprecated">
  49463. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  49464. <exception name="IOException" type="java.io.IOException"/>
  49465. <doc>
  49466. <![CDATA[List input directories.
  49467. Subclasses may override to, e.g., select only files matching a regular
  49468. expression.
  49469. @param job the job to list input paths for
  49470. @return array of FileStatus objects
  49471. @throws IOException if zero items.]]>
  49472. </doc>
  49473. </method>
  49474. <method name="getSplits" return="java.util.List"
  49475. abstract="false" native="false" synchronized="false"
  49476. static="false" final="false" visibility="public"
  49477. deprecated="not deprecated">
  49478. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  49479. <exception name="IOException" type="java.io.IOException"/>
  49480. <doc>
  49481. <![CDATA[Generate the list of files and make them into FileSplits.]]>
  49482. </doc>
  49483. </method>
  49484. <method name="computeSplitSize" return="long"
  49485. abstract="false" native="false" synchronized="false"
  49486. static="false" final="false" visibility="protected"
  49487. deprecated="not deprecated">
  49488. <param name="blockSize" type="long"/>
  49489. <param name="minSize" type="long"/>
  49490. <param name="maxSize" type="long"/>
  49491. </method>
  49492. <method name="getBlockIndex" return="int"
  49493. abstract="false" native="false" synchronized="false"
  49494. static="false" final="false" visibility="protected"
  49495. deprecated="not deprecated">
  49496. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  49497. <param name="offset" type="long"/>
  49498. </method>
  49499. <method name="setInputPaths"
  49500. abstract="false" native="false" synchronized="false"
  49501. static="true" final="false" visibility="public"
  49502. deprecated="not deprecated">
  49503. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  49504. <param name="commaSeparatedPaths" type="java.lang.String"/>
  49505. <exception name="IOException" type="java.io.IOException"/>
  49506. <doc>
  49507. <![CDATA[Sets the given comma separated paths as the list of inputs
  49508. for the map-reduce job.
  49509. @param job the job
  49510. @param commaSeparatedPaths Comma separated paths to be set as
  49511. the list of inputs for the map-reduce job.]]>
  49512. </doc>
  49513. </method>
  49514. <method name="addInputPaths"
  49515. abstract="false" native="false" synchronized="false"
  49516. static="true" final="false" visibility="public"
  49517. deprecated="not deprecated">
  49518. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  49519. <param name="commaSeparatedPaths" type="java.lang.String"/>
  49520. <exception name="IOException" type="java.io.IOException"/>
  49521. <doc>
  49522. <![CDATA[Add the given comma separated paths to the list of inputs for
  49523. the map-reduce job.
  49524. @param job The job to modify
  49525. @param commaSeparatedPaths Comma separated paths to be added to
  49526. the list of inputs for the map-reduce job.]]>
  49527. </doc>
  49528. </method>
  49529. <method name="setInputPaths"
  49530. abstract="false" native="false" synchronized="false"
  49531. static="true" final="false" visibility="public"
  49532. deprecated="not deprecated">
  49533. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  49534. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  49535. <exception name="IOException" type="java.io.IOException"/>
  49536. <doc>
  49537. <![CDATA[Set the array of {@link Path}s as the list of inputs
  49538. for the map-reduce job.
  49539. @param job The job to modify
  49540. @param inputPaths the {@link Path}s of the input directories/files
  49541. for the map-reduce job.]]>
  49542. </doc>
  49543. </method>
  49544. <method name="addInputPath"
  49545. abstract="false" native="false" synchronized="false"
  49546. static="true" final="false" visibility="public"
  49547. deprecated="not deprecated">
  49548. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  49549. <param name="path" type="org.apache.hadoop.fs.Path"/>
  49550. <exception name="IOException" type="java.io.IOException"/>
  49551. <doc>
  49552. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  49553. @param job The {@link Job} to modify
  49554. @param path {@link Path} to be added to the list of inputs for
  49555. the map-reduce job.]]>
  49556. </doc>
  49557. </method>
  49558. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  49559. abstract="false" native="false" synchronized="false"
  49560. static="true" final="false" visibility="public"
  49561. deprecated="not deprecated">
  49562. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  49563. <doc>
  49564. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  49565. @param context The job
  49566. @return the list of input {@link Path}s for the map-reduce job.]]>
  49567. </doc>
  49568. </method>
  49569. <doc>
  49570. <![CDATA[A base class for file-based {@link InputFormat}s.
  49571. <p><code>FileInputFormat</code> is the base class for all file-based
  49572. <code>InputFormat</code>s. This provides a generic implementation of
  49573. {@link #getSplits(JobContext)}.
  49574. Subclasses of <code>FileInputFormat</code> can also override the
  49575. {@link #isSplitable(JobContext, Path)} method to ensure input-files are
  49576. not split-up and are processed as a whole by {@link Mapper}s.]]>
  49577. </doc>
  49578. </class>
  49579. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  49580. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  49581. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  49582. abstract="false"
  49583. static="false" final="false" visibility="public"
  49584. deprecated="not deprecated">
  49585. <implements name="org.apache.hadoop.io.Writable"/>
  49586. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  49587. static="false" final="false" visibility="public"
  49588. deprecated="not deprecated">
  49589. <doc>
  49590. <![CDATA[Constructs a split with host information
  49591. @param file the file name
  49592. @param start the position of the first byte in the file to process
  49593. @param length the number of bytes in the file to process
  49594. @param hosts the list of hosts containing the block, possibly null]]>
  49595. </doc>
  49596. </constructor>
  49597. <method name="getPath" return="org.apache.hadoop.fs.Path"
  49598. abstract="false" native="false" synchronized="false"
  49599. static="false" final="false" visibility="public"
  49600. deprecated="not deprecated">
  49601. <doc>
  49602. <![CDATA[The file containing this split's data.]]>
  49603. </doc>
  49604. </method>
  49605. <method name="getStart" return="long"
  49606. abstract="false" native="false" synchronized="false"
  49607. static="false" final="false" visibility="public"
  49608. deprecated="not deprecated">
  49609. <doc>
  49610. <![CDATA[The position of the first byte in the file to process.]]>
  49611. </doc>
  49612. </method>
  49613. <method name="getLength" return="long"
  49614. abstract="false" native="false" synchronized="false"
  49615. static="false" final="false" visibility="public"
  49616. deprecated="not deprecated">
  49617. <doc>
  49618. <![CDATA[The number of bytes in the file to process.]]>
  49619. </doc>
  49620. </method>
  49621. <method name="toString" return="java.lang.String"
  49622. abstract="false" native="false" synchronized="false"
  49623. static="false" final="false" visibility="public"
  49624. deprecated="not deprecated">
  49625. </method>
  49626. <method name="write"
  49627. abstract="false" native="false" synchronized="false"
  49628. static="false" final="false" visibility="public"
  49629. deprecated="not deprecated">
  49630. <param name="out" type="java.io.DataOutput"/>
  49631. <exception name="IOException" type="java.io.IOException"/>
  49632. </method>
  49633. <method name="readFields"
  49634. abstract="false" native="false" synchronized="false"
  49635. static="false" final="false" visibility="public"
  49636. deprecated="not deprecated">
  49637. <param name="in" type="java.io.DataInput"/>
  49638. <exception name="IOException" type="java.io.IOException"/>
  49639. </method>
  49640. <method name="getLocations" return="java.lang.String[]"
  49641. abstract="false" native="false" synchronized="false"
  49642. static="false" final="false" visibility="public"
  49643. deprecated="not deprecated">
  49644. <exception name="IOException" type="java.io.IOException"/>
  49645. </method>
  49646. <doc>
  49647. <![CDATA[A section of an input file. Returned by {@link
  49648. InputFormat#getSplits(JobContext)} and passed to
  49649. {@link InputFormat#createRecordReader(InputSplit,TaskAttemptContext)}.]]>
  49650. </doc>
  49651. </class>
  49652. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  49653. <!-- start class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  49654. <class name="InvalidInputException" extends="java.io.IOException"
  49655. abstract="false"
  49656. static="false" final="false" visibility="public"
  49657. deprecated="not deprecated">
  49658. <constructor name="InvalidInputException" type="java.util.List"
  49659. static="false" final="false" visibility="public"
  49660. deprecated="not deprecated">
  49661. <doc>
  49662. <![CDATA[Create the exception with the given list.
  49663. @param probs the list of problems to report. this list is not copied.]]>
  49664. </doc>
  49665. </constructor>
  49666. <method name="getProblems" return="java.util.List"
  49667. abstract="false" native="false" synchronized="false"
  49668. static="false" final="false" visibility="public"
  49669. deprecated="not deprecated">
  49670. <doc>
  49671. <![CDATA[Get the complete list of the problems reported.
  49672. @return the list of problems, which must not be modified]]>
  49673. </doc>
  49674. </method>
  49675. <method name="getMessage" return="java.lang.String"
  49676. abstract="false" native="false" synchronized="false"
  49677. static="false" final="false" visibility="public"
  49678. deprecated="not deprecated">
  49679. <doc>
  49680. <![CDATA[Get a summary message of the problems found.
  49681. @return the concatenated messages from all of the problems.]]>
  49682. </doc>
  49683. </method>
  49684. <doc>
  49685. <![CDATA[This class wraps a list of problems with the input, so that the user
  49686. can get a list of problems together instead of finding and fixing them one
  49687. by one.]]>
  49688. </doc>
  49689. </class>
  49690. <!-- end class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  49691. <!-- start class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  49692. <class name="LineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  49693. abstract="false"
  49694. static="false" final="false" visibility="public"
  49695. deprecated="not deprecated">
  49696. <constructor name="LineRecordReader"
  49697. static="false" final="false" visibility="public"
  49698. deprecated="not deprecated">
  49699. </constructor>
  49700. <method name="initialize"
  49701. abstract="false" native="false" synchronized="false"
  49702. static="false" final="false" visibility="public"
  49703. deprecated="not deprecated">
  49704. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  49705. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  49706. <exception name="IOException" type="java.io.IOException"/>
  49707. </method>
  49708. <method name="nextKeyValue" return="boolean"
  49709. abstract="false" native="false" synchronized="false"
  49710. static="false" final="false" visibility="public"
  49711. deprecated="not deprecated">
  49712. <exception name="IOException" type="java.io.IOException"/>
  49713. </method>
  49714. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  49715. abstract="false" native="false" synchronized="false"
  49716. static="false" final="false" visibility="public"
  49717. deprecated="not deprecated">
  49718. </method>
  49719. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  49720. abstract="false" native="false" synchronized="false"
  49721. static="false" final="false" visibility="public"
  49722. deprecated="not deprecated">
  49723. </method>
  49724. <method name="getProgress" return="float"
  49725. abstract="false" native="false" synchronized="false"
  49726. static="false" final="false" visibility="public"
  49727. deprecated="not deprecated">
  49728. <doc>
  49729. <![CDATA[Get the progress within the split]]>
  49730. </doc>
  49731. </method>
  49732. <method name="close"
  49733. abstract="false" native="false" synchronized="true"
  49734. static="false" final="false" visibility="public"
  49735. deprecated="not deprecated">
  49736. <exception name="IOException" type="java.io.IOException"/>
  49737. </method>
  49738. <doc>
  49739. <![CDATA[Treats keys as offset in file and value as line.]]>
  49740. </doc>
  49741. </class>
  49742. <!-- end class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  49743. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  49744. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  49745. abstract="false"
  49746. static="false" final="false" visibility="public"
  49747. deprecated="not deprecated">
  49748. <constructor name="SequenceFileInputFormat"
  49749. static="false" final="false" visibility="public"
  49750. deprecated="not deprecated">
  49751. </constructor>
  49752. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  49753. abstract="false" native="false" synchronized="false"
  49754. static="false" final="false" visibility="public"
  49755. deprecated="not deprecated">
  49756. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  49757. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  49758. <exception name="IOException" type="java.io.IOException"/>
  49759. </method>
  49760. <method name="getFormatMinSplitSize" return="long"
  49761. abstract="false" native="false" synchronized="false"
  49762. static="false" final="false" visibility="protected"
  49763. deprecated="not deprecated">
  49764. </method>
  49765. <method name="listStatus" return="java.util.List"
  49766. abstract="false" native="false" synchronized="false"
  49767. static="false" final="false" visibility="protected"
  49768. deprecated="not deprecated">
  49769. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  49770. <exception name="IOException" type="java.io.IOException"/>
  49771. </method>
  49772. <doc>
  49773. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  49774. </doc>
  49775. </class>
  49776. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  49777. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  49778. <class name="SequenceFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  49779. abstract="false"
  49780. static="false" final="false" visibility="public"
  49781. deprecated="not deprecated">
  49782. <constructor name="SequenceFileRecordReader"
  49783. static="false" final="false" visibility="public"
  49784. deprecated="not deprecated">
  49785. </constructor>
  49786. <method name="initialize"
  49787. abstract="false" native="false" synchronized="false"
  49788. static="false" final="false" visibility="public"
  49789. deprecated="not deprecated">
  49790. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  49791. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  49792. <exception name="IOException" type="java.io.IOException"/>
  49793. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49794. </method>
  49795. <method name="nextKeyValue" return="boolean"
  49796. abstract="false" native="false" synchronized="false"
  49797. static="false" final="false" visibility="public"
  49798. deprecated="not deprecated">
  49799. <exception name="IOException" type="java.io.IOException"/>
  49800. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49801. </method>
  49802. <method name="getCurrentKey" return="java.lang.Object"
  49803. abstract="false" native="false" synchronized="false"
  49804. static="false" final="false" visibility="public"
  49805. deprecated="not deprecated">
  49806. </method>
  49807. <method name="getCurrentValue" return="java.lang.Object"
  49808. abstract="false" native="false" synchronized="false"
  49809. static="false" final="false" visibility="public"
  49810. deprecated="not deprecated">
  49811. </method>
  49812. <method name="getProgress" return="float"
  49813. abstract="false" native="false" synchronized="false"
  49814. static="false" final="false" visibility="public"
  49815. deprecated="not deprecated">
  49816. <exception name="IOException" type="java.io.IOException"/>
  49817. <doc>
  49818. <![CDATA[Return the progress within the input split
  49819. @return 0.0 to 1.0 of the input byte range]]>
  49820. </doc>
  49821. </method>
  49822. <method name="close"
  49823. abstract="false" native="false" synchronized="true"
  49824. static="false" final="false" visibility="public"
  49825. deprecated="not deprecated">
  49826. <exception name="IOException" type="java.io.IOException"/>
  49827. </method>
  49828. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  49829. transient="false" volatile="false"
  49830. static="false" final="false" visibility="protected"
  49831. deprecated="not deprecated">
  49832. </field>
  49833. <doc>
  49834. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  49835. </doc>
  49836. </class>
  49837. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  49838. <!-- start class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  49839. <class name="TextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  49840. abstract="false"
  49841. static="false" final="false" visibility="public"
  49842. deprecated="not deprecated">
  49843. <constructor name="TextInputFormat"
  49844. static="false" final="false" visibility="public"
  49845. deprecated="not deprecated">
  49846. </constructor>
  49847. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  49848. abstract="false" native="false" synchronized="false"
  49849. static="false" final="false" visibility="public"
  49850. deprecated="not deprecated">
  49851. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  49852. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  49853. </method>
  49854. <method name="isSplitable" return="boolean"
  49855. abstract="false" native="false" synchronized="false"
  49856. static="false" final="false" visibility="protected"
  49857. deprecated="not deprecated">
  49858. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  49859. <param name="file" type="org.apache.hadoop.fs.Path"/>
  49860. </method>
  49861. <doc>
  49862. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  49863. Either linefeed or carriage-return are used to signal end of line. Keys are
  49864. the position in the file, and values are the line of text..]]>
  49865. </doc>
  49866. </class>
  49867. <!-- end class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  49868. </package>
  49869. <package name="org.apache.hadoop.mapreduce.lib.map">
  49870. <!-- start class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  49871. <class name="InverseMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  49872. abstract="false"
  49873. static="false" final="false" visibility="public"
  49874. deprecated="not deprecated">
  49875. <constructor name="InverseMapper"
  49876. static="false" final="false" visibility="public"
  49877. deprecated="not deprecated">
  49878. </constructor>
  49879. <method name="map"
  49880. abstract="false" native="false" synchronized="false"
  49881. static="false" final="false" visibility="public"
  49882. deprecated="not deprecated">
  49883. <param name="key" type="java.lang.Object"/>
  49884. <param name="value" type="java.lang.Object"/>
  49885. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  49886. <exception name="IOException" type="java.io.IOException"/>
  49887. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49888. <doc>
  49889. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  49890. </doc>
  49891. </method>
  49892. <doc>
  49893. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  49894. </doc>
  49895. </class>
  49896. <!-- end class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  49897. <!-- start class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  49898. <class name="MultithreadedMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  49899. abstract="false"
  49900. static="false" final="false" visibility="public"
  49901. deprecated="not deprecated">
  49902. <constructor name="MultithreadedMapper"
  49903. static="false" final="false" visibility="public"
  49904. deprecated="not deprecated">
  49905. </constructor>
  49906. <method name="getNumberOfThreads" return="int"
  49907. abstract="false" native="false" synchronized="false"
  49908. static="true" final="false" visibility="public"
  49909. deprecated="not deprecated">
  49910. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  49911. <doc>
  49912. <![CDATA[The number of threads in the thread pool that will run the map function.
  49913. @param job the job
  49914. @return the number of threads]]>
  49915. </doc>
  49916. </method>
  49917. <method name="setNumberOfThreads"
  49918. abstract="false" native="false" synchronized="false"
  49919. static="true" final="false" visibility="public"
  49920. deprecated="not deprecated">
  49921. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  49922. <param name="threads" type="int"/>
  49923. <doc>
  49924. <![CDATA[Set the number of threads in the pool for running maps.
  49925. @param job the job to modify
  49926. @param threads the new number of threads]]>
  49927. </doc>
  49928. </method>
  49929. <method name="getMapperClass" return="java.lang.Class"
  49930. abstract="false" native="false" synchronized="false"
  49931. static="true" final="false" visibility="public"
  49932. deprecated="not deprecated">
  49933. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  49934. <doc>
  49935. <![CDATA[Get the application's mapper class.
  49936. @param <K1> the map's input key type
  49937. @param <V1> the map's input value type
  49938. @param <K2> the map's output key type
  49939. @param <V2> the map's output value type
  49940. @param job the job
  49941. @return the mapper class to run]]>
  49942. </doc>
  49943. </method>
  49944. <method name="setMapperClass"
  49945. abstract="false" native="false" synchronized="false"
  49946. static="true" final="false" visibility="public"
  49947. deprecated="not deprecated">
  49948. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  49949. <param name="cls" type="java.lang.Class"/>
  49950. <doc>
  49951. <![CDATA[Set the application's mapper class.
  49952. @param <K1> the map input key type
  49953. @param <V1> the map input value type
  49954. @param <K2> the map output key type
  49955. @param <V2> the map output value type
  49956. @param job the job to modify
  49957. @param cls the class to use as the mapper]]>
  49958. </doc>
  49959. </method>
  49960. <method name="run"
  49961. abstract="false" native="false" synchronized="false"
  49962. static="false" final="false" visibility="public"
  49963. deprecated="not deprecated">
  49964. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  49965. <exception name="IOException" type="java.io.IOException"/>
  49966. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49967. <doc>
  49968. <![CDATA[Run the application's maps using a thread pool.]]>
  49969. </doc>
  49970. </method>
  49971. <doc>
  49972. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapreduce.Mapper.
  49973. <p>
  49974. It can be used instead of the default implementation,
  49975. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  49976. bound in order to improve throughput.
  49977. <p>
  49978. Mapper implementations using this MapRunnable must be thread-safe.
  49979. <p>
  49980. The Map-Reduce job has to be configured with the mapper to use via
  49981. {@link #setMapperClass(Configuration, Class)} and
  49982. the number of thread the thread-pool can use with the
  49983. {@link #getNumberOfThreads(Configuration) method. The default
  49984. value is 10 threads.
  49985. <p>]]>
  49986. </doc>
  49987. </class>
  49988. <!-- end class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  49989. <!-- start class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  49990. <class name="TokenCounterMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  49991. abstract="false"
  49992. static="false" final="false" visibility="public"
  49993. deprecated="not deprecated">
  49994. <constructor name="TokenCounterMapper"
  49995. static="false" final="false" visibility="public"
  49996. deprecated="not deprecated">
  49997. </constructor>
  49998. <method name="map"
  49999. abstract="false" native="false" synchronized="false"
  50000. static="false" final="false" visibility="public"
  50001. deprecated="not deprecated">
  50002. <param name="key" type="java.lang.Object"/>
  50003. <param name="value" type="org.apache.hadoop.io.Text"/>
  50004. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  50005. <exception name="IOException" type="java.io.IOException"/>
  50006. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50007. </method>
  50008. <doc>
  50009. <![CDATA[Tokenize the input values and emit each word with a count of 1.]]>
  50010. </doc>
  50011. </class>
  50012. <!-- end class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  50013. </package>
  50014. <package name="org.apache.hadoop.mapreduce.lib.output">
  50015. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  50016. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  50017. abstract="false"
  50018. static="false" final="false" visibility="public"
  50019. deprecated="not deprecated">
  50020. <constructor name="FileOutputCommitter" type="org.apache.hadoop.fs.Path, org.apache.hadoop.mapreduce.TaskAttemptContext"
  50021. static="false" final="false" visibility="public"
  50022. deprecated="not deprecated">
  50023. <exception name="IOException" type="java.io.IOException"/>
  50024. <doc>
  50025. <![CDATA[Create a file output committer
  50026. @param outputPath the job's output path
  50027. @param context the task's context
  50028. @throws IOException]]>
  50029. </doc>
  50030. </constructor>
  50031. <method name="setupJob"
  50032. abstract="false" native="false" synchronized="false"
  50033. static="false" final="false" visibility="public"
  50034. deprecated="not deprecated">
  50035. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  50036. <exception name="IOException" type="java.io.IOException"/>
  50037. <doc>
  50038. <![CDATA[Create the temporary directory that is the root of all of the task
  50039. work directories.
  50040. @param context the job's context]]>
  50041. </doc>
  50042. </method>
  50043. <method name="cleanupJob"
  50044. abstract="false" native="false" synchronized="false"
  50045. static="false" final="false" visibility="public"
  50046. deprecated="not deprecated">
  50047. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  50048. <exception name="IOException" type="java.io.IOException"/>
  50049. <doc>
  50050. <![CDATA[Delete the temporary directory, including all of the work directories.
  50051. @param context the job's context]]>
  50052. </doc>
  50053. </method>
  50054. <method name="setupTask"
  50055. abstract="false" native="false" synchronized="false"
  50056. static="false" final="false" visibility="public"
  50057. deprecated="not deprecated">
  50058. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50059. <exception name="IOException" type="java.io.IOException"/>
  50060. <doc>
  50061. <![CDATA[No task setup required.]]>
  50062. </doc>
  50063. </method>
  50064. <method name="commitTask"
  50065. abstract="false" native="false" synchronized="false"
  50066. static="false" final="false" visibility="public"
  50067. deprecated="not deprecated">
  50068. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50069. <exception name="IOException" type="java.io.IOException"/>
  50070. <doc>
  50071. <![CDATA[Move the files from the work directory to the job output directory
  50072. @param context the task context]]>
  50073. </doc>
  50074. </method>
  50075. <method name="abortTask"
  50076. abstract="false" native="false" synchronized="false"
  50077. static="false" final="false" visibility="public"
  50078. deprecated="not deprecated">
  50079. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50080. <doc>
  50081. <![CDATA[Delete the work directory]]>
  50082. </doc>
  50083. </method>
  50084. <method name="needsTaskCommit" return="boolean"
  50085. abstract="false" native="false" synchronized="false"
  50086. static="false" final="false" visibility="public"
  50087. deprecated="not deprecated">
  50088. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50089. <exception name="IOException" type="java.io.IOException"/>
  50090. <doc>
  50091. <![CDATA[Did this task write any files in the work directory?
  50092. @param context the task's context]]>
  50093. </doc>
  50094. </method>
  50095. <method name="getWorkPath" return="org.apache.hadoop.fs.Path"
  50096. abstract="false" native="false" synchronized="false"
  50097. static="false" final="false" visibility="public"
  50098. deprecated="not deprecated">
  50099. <exception name="IOException" type="java.io.IOException"/>
  50100. <doc>
  50101. <![CDATA[Get the directory that the task should write results into
  50102. @return the work directory
  50103. @throws IOException]]>
  50104. </doc>
  50105. </method>
  50106. <field name="TEMP_DIR_NAME" type="java.lang.String"
  50107. transient="false" volatile="false"
  50108. static="true" final="true" visibility="protected"
  50109. deprecated="not deprecated">
  50110. <doc>
  50111. <![CDATA[Temporary directory name]]>
  50112. </doc>
  50113. </field>
  50114. <doc>
  50115. <![CDATA[An {@link OutputCommitter} that commits files specified
  50116. in job output directory i.e. ${mapred.output.dir}.]]>
  50117. </doc>
  50118. </class>
  50119. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  50120. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  50121. <class name="FileOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  50122. abstract="true"
  50123. static="false" final="false" visibility="public"
  50124. deprecated="not deprecated">
  50125. <constructor name="FileOutputFormat"
  50126. static="false" final="false" visibility="public"
  50127. deprecated="not deprecated">
  50128. </constructor>
  50129. <method name="setCompressOutput"
  50130. abstract="false" native="false" synchronized="false"
  50131. static="true" final="false" visibility="public"
  50132. deprecated="not deprecated">
  50133. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  50134. <param name="compress" type="boolean"/>
  50135. <doc>
  50136. <![CDATA[Set whether the output of the job is compressed.
  50137. @param job the job to modify
  50138. @param compress should the output of the job be compressed?]]>
  50139. </doc>
  50140. </method>
  50141. <method name="getCompressOutput" return="boolean"
  50142. abstract="false" native="false" synchronized="false"
  50143. static="true" final="false" visibility="public"
  50144. deprecated="not deprecated">
  50145. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  50146. <doc>
  50147. <![CDATA[Is the job output compressed?
  50148. @param job the Job to look in
  50149. @return <code>true</code> if the job output should be compressed,
  50150. <code>false</code> otherwise]]>
  50151. </doc>
  50152. </method>
  50153. <method name="setOutputCompressorClass"
  50154. abstract="false" native="false" synchronized="false"
  50155. static="true" final="false" visibility="public"
  50156. deprecated="not deprecated">
  50157. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  50158. <param name="codecClass" type="java.lang.Class"/>
  50159. <doc>
  50160. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  50161. @param job the job to modify
  50162. @param codecClass the {@link CompressionCodec} to be used to
  50163. compress the job outputs]]>
  50164. </doc>
  50165. </method>
  50166. <method name="getOutputCompressorClass" return="java.lang.Class"
  50167. abstract="false" native="false" synchronized="false"
  50168. static="true" final="false" visibility="public"
  50169. deprecated="not deprecated">
  50170. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  50171. <param name="defaultValue" type="java.lang.Class"/>
  50172. <doc>
  50173. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  50174. @param job the {@link Job} to look in
  50175. @param defaultValue the {@link CompressionCodec} to return if not set
  50176. @return the {@link CompressionCodec} to be used to compress the
  50177. job outputs
  50178. @throws IllegalArgumentException if the class was specified, but not found]]>
  50179. </doc>
  50180. </method>
  50181. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  50182. abstract="true" native="false" synchronized="false"
  50183. static="false" final="false" visibility="public"
  50184. deprecated="not deprecated">
  50185. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50186. <exception name="IOException" type="java.io.IOException"/>
  50187. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50188. </method>
  50189. <method name="checkOutputSpecs"
  50190. abstract="false" native="false" synchronized="false"
  50191. static="false" final="false" visibility="public"
  50192. deprecated="not deprecated">
  50193. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  50194. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  50195. <exception name="IOException" type="java.io.IOException"/>
  50196. </method>
  50197. <method name="setOutputPath"
  50198. abstract="false" native="false" synchronized="false"
  50199. static="true" final="false" visibility="public"
  50200. deprecated="not deprecated">
  50201. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  50202. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  50203. <doc>
  50204. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  50205. @param job The job to modify
  50206. @param outputDir the {@link Path} of the output directory for
  50207. the map-reduce job.]]>
  50208. </doc>
  50209. </method>
  50210. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  50211. abstract="false" native="false" synchronized="false"
  50212. static="true" final="false" visibility="public"
  50213. deprecated="not deprecated">
  50214. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  50215. <doc>
  50216. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  50217. @return the {@link Path} to the output directory for the map-reduce job.
  50218. @see FileOutputFormat#getWorkOutputPath(TaskInputOutputContext)]]>
  50219. </doc>
  50220. </method>
  50221. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  50222. abstract="false" native="false" synchronized="false"
  50223. static="true" final="false" visibility="public"
  50224. deprecated="not deprecated">
  50225. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  50226. <exception name="IOException" type="java.io.IOException"/>
  50227. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50228. <doc>
  50229. <![CDATA[Get the {@link Path} to the task's temporary output directory
  50230. for the map-reduce job
  50231. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  50232. <p>Some applications need to create/write-to side-files, which differ from
  50233. the actual job-outputs.
  50234. <p>In such cases there could be issues with 2 instances of the same TIP
  50235. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  50236. same file (path) on HDFS. Hence the application-writer will have to pick
  50237. unique names per task-attempt (e.g. using the attemptid, say
  50238. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  50239. <p>To get around this the Map-Reduce framework helps the application-writer
  50240. out by maintaining a special
  50241. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  50242. sub-directory for each task-attempt on HDFS where the output of the
  50243. task-attempt goes. On successful completion of the task-attempt the files
  50244. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  50245. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  50246. framework discards the sub-directory of unsuccessful task-attempts. This
  50247. is completely transparent to the application.</p>
  50248. <p>The application-writer can take advantage of this by creating any
  50249. side-files required in a work directory during execution
  50250. of his task i.e. via
  50251. {@link #getWorkOutputPath(TaskInputOutputContext)}, and
  50252. the framework will move them out similarly - thus she doesn't have to pick
  50253. unique paths per task-attempt.</p>
  50254. <p>The entire discussion holds true for maps of jobs with
  50255. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  50256. goes directly to HDFS.</p>
  50257. @return the {@link Path} to the task's temporary output directory
  50258. for the map-reduce job.]]>
  50259. </doc>
  50260. </method>
  50261. <method name="getPathForWorkFile" return="org.apache.hadoop.fs.Path"
  50262. abstract="false" native="false" synchronized="false"
  50263. static="true" final="false" visibility="public"
  50264. deprecated="not deprecated">
  50265. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  50266. <param name="name" type="java.lang.String"/>
  50267. <param name="extension" type="java.lang.String"/>
  50268. <exception name="IOException" type="java.io.IOException"/>
  50269. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50270. <doc>
  50271. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  50272. the task within the job output directory.
  50273. <p>The path can be used to create custom files from within the map and
  50274. reduce tasks. The path name will be unique for each task. The path parent
  50275. will be the job output directory.</p>ls
  50276. <p>This method uses the {@link #getUniqueFile} method to make the file name
  50277. unique for the task.</p>
  50278. @param context the context for the task.
  50279. @param name the name for the file.
  50280. @param extension the extension for the file
  50281. @return a unique path accross all tasks of the job.]]>
  50282. </doc>
  50283. </method>
  50284. <method name="getUniqueFile" return="java.lang.String"
  50285. abstract="false" native="false" synchronized="true"
  50286. static="true" final="false" visibility="public"
  50287. deprecated="not deprecated">
  50288. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50289. <param name="name" type="java.lang.String"/>
  50290. <param name="extension" type="java.lang.String"/>
  50291. <doc>
  50292. <![CDATA[Generate a unique filename, based on the task id, name, and extension
  50293. @param context the task that is calling this
  50294. @param name the base filename
  50295. @param extension the filename extension
  50296. @return a string like $name-[mr]-$id$extension]]>
  50297. </doc>
  50298. </method>
  50299. <method name="getDefaultWorkFile" return="org.apache.hadoop.fs.Path"
  50300. abstract="false" native="false" synchronized="false"
  50301. static="false" final="false" visibility="public"
  50302. deprecated="not deprecated">
  50303. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50304. <param name="extension" type="java.lang.String"/>
  50305. <exception name="IOException" type="java.io.IOException"/>
  50306. <doc>
  50307. <![CDATA[Get the default path and filename for the output format.
  50308. @param context the task context
  50309. @param extension an extension to add to the filename
  50310. @return a full path $output/_temporary/$taskid/part-[mr]-$id
  50311. @throws IOException]]>
  50312. </doc>
  50313. </method>
  50314. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  50315. abstract="false" native="false" synchronized="true"
  50316. static="false" final="false" visibility="public"
  50317. deprecated="not deprecated">
  50318. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50319. <exception name="IOException" type="java.io.IOException"/>
  50320. </method>
  50321. <doc>
  50322. <![CDATA[A base class for {@link OutputFormat}s that read from {@link FileSystem}s.]]>
  50323. </doc>
  50324. </class>
  50325. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  50326. <!-- start class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  50327. <class name="NullOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  50328. abstract="false"
  50329. static="false" final="false" visibility="public"
  50330. deprecated="not deprecated">
  50331. <constructor name="NullOutputFormat"
  50332. static="false" final="false" visibility="public"
  50333. deprecated="not deprecated">
  50334. </constructor>
  50335. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  50336. abstract="false" native="false" synchronized="false"
  50337. static="false" final="false" visibility="public"
  50338. deprecated="not deprecated">
  50339. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50340. </method>
  50341. <method name="checkOutputSpecs"
  50342. abstract="false" native="false" synchronized="false"
  50343. static="false" final="false" visibility="public"
  50344. deprecated="not deprecated">
  50345. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  50346. </method>
  50347. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  50348. abstract="false" native="false" synchronized="false"
  50349. static="false" final="false" visibility="public"
  50350. deprecated="not deprecated">
  50351. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50352. </method>
  50353. <doc>
  50354. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  50355. </doc>
  50356. </class>
  50357. <!-- end class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  50358. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  50359. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  50360. abstract="false"
  50361. static="false" final="false" visibility="public"
  50362. deprecated="not deprecated">
  50363. <constructor name="SequenceFileOutputFormat"
  50364. static="false" final="false" visibility="public"
  50365. deprecated="not deprecated">
  50366. </constructor>
  50367. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  50368. abstract="false" native="false" synchronized="false"
  50369. static="false" final="false" visibility="public"
  50370. deprecated="not deprecated">
  50371. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50372. <exception name="IOException" type="java.io.IOException"/>
  50373. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50374. </method>
  50375. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  50376. abstract="false" native="false" synchronized="false"
  50377. static="true" final="false" visibility="public"
  50378. deprecated="not deprecated">
  50379. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  50380. <doc>
  50381. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  50382. @param job the {@link Job}
  50383. @return the {@link CompressionType} for the output {@link SequenceFile},
  50384. defaulting to {@link CompressionType#RECORD}]]>
  50385. </doc>
  50386. </method>
  50387. <method name="setOutputCompressionType"
  50388. abstract="false" native="false" synchronized="false"
  50389. static="true" final="false" visibility="public"
  50390. deprecated="not deprecated">
  50391. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  50392. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  50393. <doc>
  50394. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  50395. @param job the {@link Job} to modify
  50396. @param style the {@link CompressionType} for the output
  50397. {@link SequenceFile}]]>
  50398. </doc>
  50399. </method>
  50400. <doc>
  50401. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  50402. </doc>
  50403. </class>
  50404. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  50405. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  50406. <class name="TextOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  50407. abstract="false"
  50408. static="false" final="false" visibility="public"
  50409. deprecated="not deprecated">
  50410. <constructor name="TextOutputFormat"
  50411. static="false" final="false" visibility="public"
  50412. deprecated="not deprecated">
  50413. </constructor>
  50414. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  50415. abstract="false" native="false" synchronized="false"
  50416. static="false" final="false" visibility="public"
  50417. deprecated="not deprecated">
  50418. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50419. <exception name="IOException" type="java.io.IOException"/>
  50420. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50421. </method>
  50422. <doc>
  50423. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  50424. </doc>
  50425. </class>
  50426. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  50427. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  50428. <class name="TextOutputFormat.LineRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  50429. abstract="false"
  50430. static="true" final="false" visibility="protected"
  50431. deprecated="not deprecated">
  50432. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  50433. static="false" final="false" visibility="public"
  50434. deprecated="not deprecated">
  50435. </constructor>
  50436. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  50437. static="false" final="false" visibility="public"
  50438. deprecated="not deprecated">
  50439. </constructor>
  50440. <method name="write"
  50441. abstract="false" native="false" synchronized="true"
  50442. static="false" final="false" visibility="public"
  50443. deprecated="not deprecated">
  50444. <param name="key" type="java.lang.Object"/>
  50445. <param name="value" type="java.lang.Object"/>
  50446. <exception name="IOException" type="java.io.IOException"/>
  50447. </method>
  50448. <method name="close"
  50449. abstract="false" native="false" synchronized="true"
  50450. static="false" final="false" visibility="public"
  50451. deprecated="not deprecated">
  50452. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  50453. <exception name="IOException" type="java.io.IOException"/>
  50454. </method>
  50455. <field name="out" type="java.io.DataOutputStream"
  50456. transient="false" volatile="false"
  50457. static="false" final="false" visibility="protected"
  50458. deprecated="not deprecated">
  50459. </field>
  50460. </class>
  50461. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  50462. </package>
  50463. <package name="org.apache.hadoop.mapreduce.lib.partition">
  50464. <!-- start class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  50465. <class name="HashPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  50466. abstract="false"
  50467. static="false" final="false" visibility="public"
  50468. deprecated="not deprecated">
  50469. <constructor name="HashPartitioner"
  50470. static="false" final="false" visibility="public"
  50471. deprecated="not deprecated">
  50472. </constructor>
  50473. <method name="getPartition" return="int"
  50474. abstract="false" native="false" synchronized="false"
  50475. static="false" final="false" visibility="public"
  50476. deprecated="not deprecated">
  50477. <param name="key" type="java.lang.Object"/>
  50478. <param name="value" type="java.lang.Object"/>
  50479. <param name="numReduceTasks" type="int"/>
  50480. <doc>
  50481. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  50482. </doc>
  50483. </method>
  50484. <doc>
  50485. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  50486. </doc>
  50487. </class>
  50488. <!-- end class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  50489. </package>
  50490. <package name="org.apache.hadoop.mapreduce.lib.reduce">
  50491. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  50492. <class name="IntSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  50493. abstract="false"
  50494. static="false" final="false" visibility="public"
  50495. deprecated="not deprecated">
  50496. <constructor name="IntSumReducer"
  50497. static="false" final="false" visibility="public"
  50498. deprecated="not deprecated">
  50499. </constructor>
  50500. <method name="reduce"
  50501. abstract="false" native="false" synchronized="false"
  50502. static="false" final="false" visibility="public"
  50503. deprecated="not deprecated">
  50504. <param name="key" type="java.lang.Object"/>
  50505. <param name="values" type="java.lang.Iterable"/>
  50506. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  50507. <exception name="IOException" type="java.io.IOException"/>
  50508. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50509. </method>
  50510. </class>
  50511. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  50512. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  50513. <class name="LongSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  50514. abstract="false"
  50515. static="false" final="false" visibility="public"
  50516. deprecated="not deprecated">
  50517. <constructor name="LongSumReducer"
  50518. static="false" final="false" visibility="public"
  50519. deprecated="not deprecated">
  50520. </constructor>
  50521. <method name="reduce"
  50522. abstract="false" native="false" synchronized="false"
  50523. static="false" final="false" visibility="public"
  50524. deprecated="not deprecated">
  50525. <param name="key" type="java.lang.Object"/>
  50526. <param name="values" type="java.lang.Iterable"/>
  50527. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  50528. <exception name="IOException" type="java.io.IOException"/>
  50529. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50530. </method>
  50531. </class>
  50532. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  50533. </package>
  50534. <package name="org.apache.hadoop.tools">
  50535. <!-- start class org.apache.hadoop.tools.DistCh -->
  50536. <class name="DistCh" extends="org.apache.hadoop.tools.DistTool"
  50537. abstract="false"
  50538. static="false" final="false" visibility="public"
  50539. deprecated="not deprecated">
  50540. <method name="run" return="int"
  50541. abstract="false" native="false" synchronized="false"
  50542. static="false" final="false" visibility="public"
  50543. deprecated="not deprecated">
  50544. <param name="args" type="java.lang.String[]"/>
  50545. <exception name="Exception" type="java.lang.Exception"/>
  50546. <doc>
  50547. <![CDATA[This is the main driver for recursively changing files properties.]]>
  50548. </doc>
  50549. </method>
  50550. <method name="main"
  50551. abstract="false" native="false" synchronized="false"
  50552. static="true" final="false" visibility="public"
  50553. deprecated="not deprecated">
  50554. <param name="args" type="java.lang.String[]"/>
  50555. <exception name="Exception" type="java.lang.Exception"/>
  50556. </method>
  50557. <doc>
  50558. <![CDATA[A Map-reduce program to recursively change files properties
  50559. such as owner, group and permission.]]>
  50560. </doc>
  50561. </class>
  50562. <!-- end class org.apache.hadoop.tools.DistCh -->
  50563. <!-- start class org.apache.hadoop.tools.DistCp -->
  50564. <class name="DistCp" extends="java.lang.Object"
  50565. abstract="false"
  50566. static="false" final="false" visibility="public"
  50567. deprecated="not deprecated">
  50568. <implements name="org.apache.hadoop.util.Tool"/>
  50569. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  50570. static="false" final="false" visibility="public"
  50571. deprecated="not deprecated">
  50572. </constructor>
  50573. <method name="setConf"
  50574. abstract="false" native="false" synchronized="false"
  50575. static="false" final="false" visibility="public"
  50576. deprecated="not deprecated">
  50577. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  50578. </method>
  50579. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  50580. abstract="false" native="false" synchronized="false"
  50581. static="false" final="false" visibility="public"
  50582. deprecated="not deprecated">
  50583. </method>
  50584. <method name="copy"
  50585. abstract="false" native="false" synchronized="false"
  50586. static="true" final="false" visibility="public"
  50587. deprecated="not deprecated">
  50588. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  50589. <param name="srcPath" type="java.lang.String"/>
  50590. <param name="destPath" type="java.lang.String"/>
  50591. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  50592. <param name="srcAsList" type="boolean"/>
  50593. <param name="ignoreReadFailures" type="boolean"/>
  50594. <exception name="IOException" type="java.io.IOException"/>
  50595. </method>
  50596. <method name="run" return="int"
  50597. abstract="false" native="false" synchronized="false"
  50598. static="false" final="false" visibility="public"
  50599. deprecated="not deprecated">
  50600. <param name="args" type="java.lang.String[]"/>
  50601. <doc>
  50602. <![CDATA[This is the main driver for recursively copying directories
  50603. across file systems. It takes at least two cmdline parameters. A source
  50604. URL and a destination URL. It then essentially does an "ls -lR" on the
  50605. source URL, and writes the output in a round-robin manner to all the map
  50606. input files. The mapper actually copies the files allotted to it. The
  50607. reduce is empty.]]>
  50608. </doc>
  50609. </method>
  50610. <method name="main"
  50611. abstract="false" native="false" synchronized="false"
  50612. static="true" final="false" visibility="public"
  50613. deprecated="not deprecated">
  50614. <param name="args" type="java.lang.String[]"/>
  50615. <exception name="Exception" type="java.lang.Exception"/>
  50616. </method>
  50617. <method name="getRandomId" return="java.lang.String"
  50618. abstract="false" native="false" synchronized="false"
  50619. static="true" final="false" visibility="public"
  50620. deprecated="not deprecated">
  50621. </method>
  50622. <field name="LOG" type="org.apache.commons.logging.Log"
  50623. transient="false" volatile="false"
  50624. static="true" final="true" visibility="public"
  50625. deprecated="not deprecated">
  50626. </field>
  50627. <doc>
  50628. <![CDATA[A Map-reduce program to recursively copy directories between
  50629. different file-systems.]]>
  50630. </doc>
  50631. </class>
  50632. <!-- end class org.apache.hadoop.tools.DistCp -->
  50633. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  50634. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  50635. abstract="false"
  50636. static="true" final="false" visibility="public"
  50637. deprecated="not deprecated">
  50638. <field name="ERROR_CODE" type="int"
  50639. transient="false" volatile="false"
  50640. static="true" final="true" visibility="public"
  50641. deprecated="not deprecated">
  50642. <doc>
  50643. <![CDATA[Error code for this exception]]>
  50644. </doc>
  50645. </field>
  50646. <doc>
  50647. <![CDATA[An exception class for duplicated source files.]]>
  50648. </doc>
  50649. </class>
  50650. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  50651. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  50652. <class name="HadoopArchives" extends="java.lang.Object"
  50653. abstract="false"
  50654. static="false" final="false" visibility="public"
  50655. deprecated="not deprecated">
  50656. <implements name="org.apache.hadoop.util.Tool"/>
  50657. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  50658. static="false" final="false" visibility="public"
  50659. deprecated="not deprecated">
  50660. </constructor>
  50661. <method name="setConf"
  50662. abstract="false" native="false" synchronized="false"
  50663. static="false" final="false" visibility="public"
  50664. deprecated="not deprecated">
  50665. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  50666. </method>
  50667. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  50668. abstract="false" native="false" synchronized="false"
  50669. static="false" final="false" visibility="public"
  50670. deprecated="not deprecated">
  50671. </method>
  50672. <method name="archive"
  50673. abstract="false" native="false" synchronized="false"
  50674. static="false" final="false" visibility="public"
  50675. deprecated="not deprecated">
  50676. <param name="srcPaths" type="java.util.List"/>
  50677. <param name="archiveName" type="java.lang.String"/>
  50678. <param name="dest" type="org.apache.hadoop.fs.Path"/>
  50679. <exception name="IOException" type="java.io.IOException"/>
  50680. <doc>
  50681. <![CDATA[archive the given source paths into
  50682. the dest
  50683. @param srcPaths the src paths to be archived
  50684. @param dest the dest dir that will contain the archive]]>
  50685. </doc>
  50686. </method>
  50687. <method name="run" return="int"
  50688. abstract="false" native="false" synchronized="false"
  50689. static="false" final="false" visibility="public"
  50690. deprecated="not deprecated">
  50691. <param name="args" type="java.lang.String[]"/>
  50692. <exception name="Exception" type="java.lang.Exception"/>
  50693. <doc>
  50694. <![CDATA[the main driver for creating the archives
  50695. it takes at least two command line parameters. The src and the
  50696. dest. It does an lsr on the source paths.
  50697. The mapper created archuves and the reducer creates
  50698. the archive index.]]>
  50699. </doc>
  50700. </method>
  50701. <method name="main"
  50702. abstract="false" native="false" synchronized="false"
  50703. static="true" final="false" visibility="public"
  50704. deprecated="not deprecated">
  50705. <param name="args" type="java.lang.String[]"/>
  50706. <doc>
  50707. <![CDATA[the main functions]]>
  50708. </doc>
  50709. </method>
  50710. <doc>
  50711. <![CDATA[a archive creation utility.
  50712. This class provides methods that can be used
  50713. to create hadoop archives. For understanding of
  50714. Hadoop archives look at {@link HarFileSystem}.]]>
  50715. </doc>
  50716. </class>
  50717. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  50718. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  50719. <class name="Logalyzer" extends="java.lang.Object"
  50720. abstract="false"
  50721. static="false" final="false" visibility="public"
  50722. deprecated="not deprecated">
  50723. <constructor name="Logalyzer"
  50724. static="false" final="false" visibility="public"
  50725. deprecated="not deprecated">
  50726. </constructor>
  50727. <method name="doArchive"
  50728. abstract="false" native="false" synchronized="false"
  50729. static="false" final="false" visibility="public"
  50730. deprecated="not deprecated">
  50731. <param name="logListURI" type="java.lang.String"/>
  50732. <param name="archiveDirectory" type="java.lang.String"/>
  50733. <exception name="IOException" type="java.io.IOException"/>
  50734. <doc>
  50735. <![CDATA[doArchive: Workhorse function to archive log-files.
  50736. @param logListURI : The uri which will serve list of log-files to archive.
  50737. @param archiveDirectory : The directory to store archived logfiles.
  50738. @throws IOException]]>
  50739. </doc>
  50740. </method>
  50741. <method name="doAnalyze"
  50742. abstract="false" native="false" synchronized="false"
  50743. static="false" final="false" visibility="public"
  50744. deprecated="not deprecated">
  50745. <param name="inputFilesDirectory" type="java.lang.String"/>
  50746. <param name="outputDirectory" type="java.lang.String"/>
  50747. <param name="grepPattern" type="java.lang.String"/>
  50748. <param name="sortColumns" type="java.lang.String"/>
  50749. <param name="columnSeparator" type="java.lang.String"/>
  50750. <exception name="IOException" type="java.io.IOException"/>
  50751. <doc>
  50752. <![CDATA[doAnalyze:
  50753. @param inputFilesDirectory : Directory containing the files to be analyzed.
  50754. @param outputDirectory : Directory to store analysis (output).
  50755. @param grepPattern : Pattern to *grep* for.
  50756. @param sortColumns : Sort specification for output.
  50757. @param columnSeparator : Column separator.
  50758. @throws IOException]]>
  50759. </doc>
  50760. </method>
  50761. <method name="main"
  50762. abstract="false" native="false" synchronized="false"
  50763. static="true" final="false" visibility="public"
  50764. deprecated="not deprecated">
  50765. <param name="args" type="java.lang.String[]"/>
  50766. </method>
  50767. <doc>
  50768. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  50769. <p>
  50770. This tool supports archiving and anaylzing (sort/grep) of log-files.
  50771. It takes as input
  50772. a) Input uri which will serve uris of the logs to be archived.
  50773. b) Output directory (not mandatory).
  50774. b) Directory on dfs to archive the logs.
  50775. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  50776. Usage:
  50777. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  50778. <p>]]>
  50779. </doc>
  50780. </class>
  50781. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  50782. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  50783. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  50784. abstract="false"
  50785. static="true" final="false" visibility="public"
  50786. deprecated="not deprecated">
  50787. <implements name="org.apache.hadoop.conf.Configurable"/>
  50788. <constructor name="Logalyzer.LogComparator"
  50789. static="false" final="false" visibility="public"
  50790. deprecated="not deprecated">
  50791. </constructor>
  50792. <method name="setConf"
  50793. abstract="false" native="false" synchronized="false"
  50794. static="false" final="false" visibility="public"
  50795. deprecated="not deprecated">
  50796. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  50797. </method>
  50798. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  50799. abstract="false" native="false" synchronized="false"
  50800. static="false" final="false" visibility="public"
  50801. deprecated="not deprecated">
  50802. </method>
  50803. <method name="compare" return="int"
  50804. abstract="false" native="false" synchronized="false"
  50805. static="false" final="false" visibility="public"
  50806. deprecated="not deprecated">
  50807. <param name="b1" type="byte[]"/>
  50808. <param name="s1" type="int"/>
  50809. <param name="l1" type="int"/>
  50810. <param name="b2" type="byte[]"/>
  50811. <param name="s2" type="int"/>
  50812. <param name="l2" type="int"/>
  50813. </method>
  50814. <doc>
  50815. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  50816. </doc>
  50817. </class>
  50818. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  50819. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  50820. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  50821. abstract="false"
  50822. static="true" final="false" visibility="public"
  50823. deprecated="not deprecated">
  50824. <implements name="org.apache.hadoop.mapred.Mapper"/>
  50825. <constructor name="Logalyzer.LogRegexMapper"
  50826. static="false" final="false" visibility="public"
  50827. deprecated="not deprecated">
  50828. </constructor>
  50829. <method name="configure"
  50830. abstract="false" native="false" synchronized="false"
  50831. static="false" final="false" visibility="public"
  50832. deprecated="not deprecated">
  50833. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  50834. </method>
  50835. <method name="map"
  50836. abstract="false" native="false" synchronized="false"
  50837. static="false" final="false" visibility="public"
  50838. deprecated="not deprecated">
  50839. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  50840. <param name="value" type="org.apache.hadoop.io.Text"/>
  50841. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  50842. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  50843. <exception name="IOException" type="java.io.IOException"/>
  50844. </method>
  50845. <doc>
  50846. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  50847. </doc>
  50848. </class>
  50849. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  50850. </package>
  50851. </api>